Commit graph

1948 commits

Author SHA1 Message Date
Peiyong Lin
fd05d13edc [HWC] Add setLayerFloatColor API.
This patch adds the struct of float color, and setLayerFloatColor API so that
SurfaceFlinger can set the layer color with more bits on each channel.
Currently the display calibration tool require 10-bits support.

BUG: 69970838
Test: make locally and applied on device
Change-Id: I8bab335cc4fbc41a3eb18306a8831d1e9a9a219a
2018-01-24 18:12:41 +00:00
Kevin Rocard
52a0dad79c Merge "Revert "Audio V4: Split system and vendor Audio.h"" 2018-01-24 06:26:16 +00:00
Kevin Rocard
c6ec9486d8 Revert "Audio V4: Split system and vendor Audio.h"
This reverts commit fc9e212f01.

Reason for revert: Breaks multiple devices

Change-Id: I816671fd92246f85c97d00819858a74e36e2929d
2018-01-24 06:04:27 +00:00
TreeHugger Robot
a03b72961d Merge "Camera3: Add new MOTION_TRACKING template enums" 2018-01-24 04:36:33 +00:00
Kevin Rocard
904511aaa2 Merge "Audio V4: Split system and vendor Audio.h" 2018-01-24 04:04:47 +00:00
Eino-Ville Talvala
cc1aa87b19 Camera3: Add new MOTION_TRACKING template enums
Bug: 70565622
Bug: 63629224
Test: Builds, CTS passes
Change-Id: I927776d042b74013cf24c342b107a5aee1ad26a2
2018-01-23 00:23:32 -08:00
Kevin Rocard
fc9e212f01 Audio V4: Split system and vendor Audio.h
audio.h and its dependencies (audio-effect.h, sound_trigger.h...)
used to be shared between system and vendor code.

This led to multiple problems:

1) Such sharing contradicts the Treble policy of
strict independence of framework and vendor code.

2) When audio.h was changed, every vendor needed to update
its code in the next release. This meant that audio*.h
headers were mostly changed in backward compatible manner.
Nevertheless, for P the HIDL interface and thus the audio.h
interface are changed in backward incompatible way.
(Some enum are becoming 64 bit long).

3) As the headers were common, some API used only by the framework
needed to be visible to the vendors (mostly enum values).

4) Treble policy is to support at least one previous HAL version

As a result the audio*.h headers are now duplicated,
one set for the framework, and one for the vendor.

Each set will evolve independently. After this split,
the framework-only APIs will be removed from the vendor headers
and vice versa.

The split is implements as such:

 + for system code

    - NOT moving the libaudio_system_headers
      Eg: system/audio.h and system/audio_effects/effect_equalizer.h
          are still in system/media/audio

    - the legacy audio HAL API that were in libhardware headers
          are now in libaudiohal_legacy_headers
      Eg: hardware/audio.h and hardware/audio_effect.h
          are now in frameworks/av/media/libaudiohal/legacy/

 + for vendor code

    - moving libaudio_system_headers and the legacy audio HAL API
          that were in libhardware_headers in
          android.hardware.audio.common.legacy@2.0
      Note that those headers are now versioned, so migrating to a @4.0
          HIDL HAL will mean changing the legacy dependency too.
      Eg: system/audio.h, system/audio-effect.h, hardware/audio.h
          are now in hardware/interfaces/audio/common/2.0/legacy

    - the legacy audio effect HAL API that was in libaudioeffects
          is now moved in android.hardware.audio.effect.legacy@2.0
      Eg: audio_effects/effect*.h are now in
          hardware/interfaces/audio/effect/2.0/legacy

    - the legacy sound trigger HAL API that were in libhardware_headers
          is now moved in android.hardware.soundtrigger.legacy@2.0
      Eg: hardware/sound_trigger.h is now in
          hardware/interfaces/audio/effect/2.0/legacy

libaudioutil being used by both system and vendor, had
to be renamed for system to libaudioutil_system.

Vendor libs that now depend on the audio.h of a specific
version and are not extensively referenced in non google code,
append @2.0 to their name.

Note that headers that are not expected to change in the 4.0 HAL are
left in all-versions folder to avoid duplication.
This is an implementation detail as the versioned libraries export
the all-versions headers.

Note that strict vendor-system separation is enforced by the
build-system. The system headers are not available for vendor
libs and vice-versa.

Note that this patch is split between numerous git repository (>10),
all the commits having the same Change-id for searchability.

Note that audio_policy.h is no longer exposed to vendors
as the legacy audio policy HAL API was never officially supported.
As a result the audiopolicy stub implementation has been removed.

Test: compile taimen-userdebug walleye-userdebug
              sailfish-userdebug marlin-userdebug
              gce_x86_phone-userdebug gce_x86_phone
              full-eng aosp_arm aosp_x86-eng
Test: check that the emulator booted and played audio
Test: full QA on sailfish-userdebug and taimen-userdebug
Bug: 38184704
Change-Id: I950f4e0a55613d72e32eba31bd563cb5bafe2d1a
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-20 21:39:40 -08:00
Emilian Peev
92261ffa2e camera3: Extend camera capture request for multiple cameras
The legacy camera 3.5 API should allow clients to set individual
settings for specific physical cameras that are part of
a logical multi-camera. 'camera3_capture_request_t' must
include additional arrays containing the required settings
and corresponding camera ids.

Test: Manual using camera application,
camera_client_test
Bug: 64691172

Change-Id: I634f1d5b87a6d97c5a35b8ea633c7a6c22793eaf
2018-01-19 17:28:28 +00:00
Shuzhen Wang
bf39eb54de camera3: Add logical camera support in HAL 3.5
- Add ability to specify the camera id to which a particular camera3_stream belongs.
- Update documentation about the camera characteristics of logical camera.

Test: Camera2.apk and GoogleCamera.apk
Bug: 64691172
Change-Id: Ie2e235e8bc8124596785db8dad25549bec4232aa
2018-01-18 16:53:49 -08:00
Hongwei Wang
1a9044eded Removes deprecated audio property in vehicle hal
Bug: 72054677
Test: lunch gcar_emu-x86 && m -j
Change-Id: Ia70bf17e0343704c5ca3468ad86145e7078696f7
2018-01-18 21:01:13 +00:00
TreeHugger Robot
b11abc155b Merge "Add KM_ALGORITHM_TRIPLE_DES to keymaster_defs.h" 2018-01-17 23:14:11 +00:00
Frank Salim
343f309e0a Add KM_PURPOSE_WRAP to keymaster_defs for wrapped key import
AndroidKeymaster depends on keymaster_defs and needs the new
purpose for secure key import.

Test: system/keymaster/tests/android_keymaster_tests

Change-Id: I8ab6d9756689342bc5865861c89c5ccc87179454
2018-01-16 13:43:29 -07:00
Shawn Willden
2b55708fbb Add KM_ALGORITHM_TRIPLE_DES to keymaster_defs.h
Test: system/keymaster unit tests
Change-Id: I1ed56e543b657155c9194bc30616747d51aef7df
2018-01-16 09:08:51 -07:00
Emilian Peev
eec2ee9633 camera: Bump device version to 3.5
This version update adds support for session keys and
session parameters.

Bug: 64450664
Test: Camera CTS

Change-Id: Id14dbde5083c974b86b942dfd6e904dbe85e0ee5
2017-12-11 15:06:34 +00:00
Jakub Pawlowski
4d64b603db Move Bluetooth headers to system/bt (2/3)
Bug: 67853426
Test: run Bluetooth
Change-Id: If99fc83e08294cfc26608dcef88a5c3836d88863
2017-10-17 16:02:13 -07:00
Jakub Pawlowski
5d5996a069 Remove hw_module_t dependency in Bluetooth (2/3)
Bug: 67853426
Test: run Bluetooth
Change-Id: I0b144544b99a4e7fea74800d3bd44b45f446d02f
2017-10-17 20:02:54 +00:00
Jakub Pawlowski
eab6b6eda9 Use one type for UUID (2/5)
Currently, we have few different representations for UUID in stack:
tBT_UUID, tSDP_UUID, bt_uuid_t, bluetooth:UUID, or uint8_t*.

Additionally, tBT_UUID and bt_uuid_t are used to hold UUID as 128bit
as Little Endian or Big Endian, depending on which part of stack (GATT
or SDP) is using it.

This patch is creating one type, bluetooth::Uuid, that will replace all
other types.

Bug: 66912853
Test: all sl4a tests for GATT and RFCOMM
Change-Id: Ic9048a6c1f32a16034485b6185f5349e6bac0ff6
2017-09-25 21:24:08 +00:00
Jakub Pawlowski
24b6f65d5a Merge "Remove unused BT_STACK_TEST_MODULE_ID" am: 5dd2b50699 am: 27bf3239fa
am: 14cab0e6c0

Change-Id: I3b727ffc25633034cc714b0a28a23da602d364ff
2017-09-20 23:27:42 +00:00
Jakub Pawlowski
27bf3239fa Merge "Remove unused BT_STACK_TEST_MODULE_ID"
am: 5dd2b50699

Change-Id: I81a6108ba36a0b81762e91912ecba065685eca4b
2017-09-20 23:23:19 +00:00
Jakub Pawlowski
7a859c0314 Remove unused BT_STACK_TEST_MODULE_ID
Test: compilation
Change-Id: I0aa9edd7e7d15df53bdd729cd4d0f0e424b13eab
2017-09-18 15:18:01 -07:00
Jiyong Park
888b1351c8 Merge "Don't rely on transitively included headers" am: 1363159d74 am: 6d76606405
am: 873a4a5494

Change-Id: I11b097faac8eb82c3672b18fe2ad581964cd3023
2017-09-06 16:03:56 +00:00
Jiyong Park
6d76606405 Merge "Don't rely on transitively included headers"
am: 1363159d74

Change-Id: I0325773d80680928d47750937e2f4bc6a69b1bf9
2017-09-06 15:56:28 +00:00
Jiyong Park
439eb0f241 Don't rely on transitively included headers
One must explicitly include what it need.
time.h for clock_gettime
float.h for FLT_MAX
string.h for memset

Bug: 37629934
Test: build

Merged-In: I1030a9c9ff3c2de4c5febabc3064d6976e9535cf
Change-Id: I5a8fd84a10aeeab2258f78a0ac992de0afa33d00
2017-09-06 15:28:18 +09:00
Jiyong Park
32dde03332 Don't rely on transitively included headers
One must explicitly include what it need.
time.h for clock_gettime
float.h for FLT_MAX
string.h for memset

Bug: 37629934
Test: build

Change-Id: I1030a9c9ff3c2de4c5febabc3064d6976e9535cf
2017-09-06 12:17:06 +09:00
Peng Xu
a7219a3697 Merge "Sensor: HAL guideline clarification upon activation request" am: 0b2872c784 am: 3a35beab7d
am: 94ff6fab1a

Change-Id: Ic4c97a521fb8e294c45f1fe15bcfee0a61b53c64
2017-08-29 21:08:16 +00:00
Peng Xu
3a35beab7d Merge "Sensor: HAL guideline clarification upon activation request"
am: 0b2872c784

Change-Id: I4efbd97fd1782ef18cd62c70c994a33e65ddfce3
2017-08-29 20:57:13 +00:00
Aniroop Mathur
443a4acbf7 Sensor: HAL guideline clarification upon activation request
Sensor events can be generated even after completion of sensor deactivation
request so the correct time to abandon the stale events is before making new
activation request instead after sensor deactivation request.

For example: In data injection mode which make sensor deactivation request,
sensor events are generated in sensor deactivation state. These events may
not have been picked up by poll before completion of switching to normal mode.
So it is necessary to abandon stale events at the time of activation request
so that in normal mode, application will not get injected events generated
during data injection mode.

Test: Inject sensor events at fastest possible sensor rate in data injection
mode and check whether there is any injected event received by application
after switching to normal mode.

Change-Id: I3a2c8a76946569a12e9416ac20ad2389f914d6e2
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
2017-08-25 16:42:29 +00:00
Brian Duddie
7069aa8fa8 context_hub: Define target version bytes
Define that the first two previously-reserved bytes in the nanoapp
header are used to indicate the target CHRE API version.

Bug: 64852297
Test: run CHQTS on Nanohub, rebuild test app targeting 1.2 and confirm
      it's interpreted correctly
Change-Id: I0582f718bb641cc9c4e1f013578dc2dd50e6d3ec
2017-08-23 19:57:02 -07:00
Jack He
c00d8ae936 Merge "GATT: Expose opportunistic client API to Java" am: 3fca77cec8 am: e046029d08
am: 037bf66399

Change-Id: I2ffbb7d2e89400675c7278c855f84e1ee1f24c35
2017-07-11 20:46:05 +00:00
Jack He
e046029d08 Merge "GATT: Expose opportunistic client API to Java"
am: 3fca77cec8

Change-Id: I2f41880853b910857a96af9b6db1be97ef8b64af
2017-07-11 20:23:58 +00:00
Jack He
56f19a1f11 GATT: Expose opportunistic client API to Java
* Opportunistic GATT connection allows system service to subscribe to
  characteristic notifications without holding the BLE connection
* Exposing this flag to Java allows Android applications to use it

Bug: 35874078
Test: make, test on Android App
Change-Id: If4683b2281d743dacdece6b08db49ec539af3b18
2017-07-07 19:07:54 -07:00
Jakub Pawlowski
e822a28a53 Merge "Make RawAddress into a class (2/3)" am: 31e94c57e9 am: d188655a38
am: 2ccda30985

Change-Id: I4940ae77f7e334c4784c2ce35ef8588317b6e9a0
2017-07-07 01:40:35 +00:00
Jakub Pawlowski
d188655a38 Merge "Make RawAddress into a class (2/3)"
am: 31e94c57e9

Change-Id: I7991262e2c1b8b1c48e6eda5373ac608f0ed845b
2017-07-07 01:34:50 +00:00
Jakub Pawlowski
bec70c64ce Make RawAddress into a class (2/3)
* Add libbluetooth-types - library containing types implementation, that
is common between stystem/bt and packages/apps/Bluetooth. It must be
included in every project using btif interface.
* Put Raw Address implementation into libbluetooth-types
* Unify all "to/from string" helper methods into ToString and FromString
* bd_addr_empty -> RawAddress::kEmpty
* bd_addr_any -> RawAddress::kAny

Also fix leaks in jni str2addr by adding ReleaseStringUTFChars

Test: types_unittest
Change-Id: I2a0eb8d50ff777f494eed26bd58b5c502d2a0716
Merged-In: I2a0eb8d50ff777f494eed26bd58b5c502d2a0716
2017-07-06 22:39:27 +00:00
Jakub Pawlowski
cd3f371169 Merge "Rename bt_bdaddr_t into RawAddress (1/3)" am: f12e85e1d3 am: 04551f4036
am: 98d9ea8ede

Change-Id: I3ad0d173dc37ac2cccdfa5fedbd36abc13a894d4
2017-06-29 07:17:14 +00:00
Jakub Pawlowski
04551f4036 Merge "Rename bt_bdaddr_t into RawAddress (1/3)"
am: f12e85e1d3

Change-Id: I9a9254552a6904b1fbcbd91dedcc065220c975c7
2017-06-29 07:09:16 +00:00
Jakub Pawlowski
5a852006a6 Rename bt_bdaddr_t into RawAddress (1/3)
Test: compilation test
Change-Id: I80288013ce1c75538c45949815660cbb66ffed2e
2017-06-28 22:32:03 +00:00
Jakub Pawlowski
39b3307673 Merge "Use references in GATT client/server API (1/3)" am: 3e175f653f am: 681c247fd2
am: 33972ecee0

Change-Id: Ic770418eb343ca264f1de21a0d05bb3714311974
2017-06-22 00:05:17 +00:00
Jakub Pawlowski
33972ecee0 Merge "Use references in GATT client/server API (1/3)" am: 3e175f653f
am: 681c247fd2

Change-Id: Ic519bf97121259a6c9bf81eb4e35e8a5e7ea1e07
2017-06-21 23:58:19 +00:00
Jakub Pawlowski
37cb8d7610 Use references in GATT client/server API (1/3)
This allows to get rid of some unnecessary null checks, and guarantee
proper values are passed.

Test: compilation test
Change-Id: Id5508477809a5c0b038eed71403a8bf93bd03203
2017-06-21 09:55:56 -07:00
Fabien Sanglard
ceb1d546c6 Add Skip Validate capability to hwc2 interface am: 4ab926a39e
am: 347ebe20ed

Change-Id: I239a3664e6dc1ee0e75926bb5ed79c122eee0aaa
2017-06-20 01:46:07 +00:00
Fabien Sanglard
c62a6f60b9 Add Skip Validate capability to hwc2 interface
am: 4ab926a39e

Change-Id: Ibbbfa07349a16fd26949e86d0040c81a8238a2d8
2017-06-20 01:43:07 +00:00
Fabien Sanglard
347ebe20ed Add Skip Validate capability to hwc2 interface
am: 4ab926a39e

Change-Id: Ie5d0595acb62989085e1a38e2e82f35999bd190d
2017-06-20 01:43:07 +00:00
Fabien Sanglard
4ab926a39e Add Skip Validate capability to hwc2 interface
Change-Id: I716100780f820574440abc5a247ea7071b630113
2017-06-19 23:22:23 +00:00
Avish Shah
81b53af391 Merge "Bluetooth 5: Update LE2M implementation through DM (2/3)" am: 1cde649b04 am: 4f60242707
am: 379a7de04a

Change-Id: I74104b96ab7a1269e01d395da72255c9eb3ed8c5
2017-06-15 18:00:54 +00:00
Avish Shah
379a7de04a Merge "Bluetooth 5: Update LE2M implementation through DM (2/3)" am: 1cde649b04
am: 4f60242707

Change-Id: Ia893070f8f48cea328fd83c6a6ea39e19d5e512b
2017-06-15 17:58:00 +00:00
Avish Shah
21227dfc6e Bluetooth 5: Update LE2M implementation through DM (2/3)
This patch moves LE2M implementation to the DM instead of tied to GATT.

Below are the reasons to make this change:
1) Per link setting usually be done under DM, such as link policy etc.
2) In the future, if LECOC is coming to use in more profile/apps,
   we can not rely on GATT API for these. Separate API should be required.
3) we could have multiple logical GATT user on top of the same link.
4) Also this will avoid duplicating all the APIs on GATTC and GATTS.

Bug: 37586939
Test: manual
Change-Id: I71579d6160fb16fb891e75cca64fe3cf9745116a
2017-06-14 12:26:01 +05:30
Zach Johnson
e7ddea95a8 Merge "Provide HFP API to set AG SCO policy" am: 2d2b5fb5bc am: 686ddad419
am: 3bb112c340

Change-Id: I34dfd733d7464ac16b32831968d21a4495cf2fe3
2017-06-08 18:42:53 +00:00
Zach Johnson
3bb112c340 Merge "Provide HFP API to set AG SCO policy" am: 2d2b5fb5bc
am: 686ddad419

Change-Id: Iec89be852a10c8176e14204bb89e649a93e1cf3f
2017-06-08 18:39:07 +00:00
Zach Johnson
9a773fe3e5 Provide HFP API to set AG SCO policy
Bug: 32958838
Test: manual
Change-Id: I744c964e85dc78347a5d9bd69c1acc970774ecb6
2017-06-07 17:37:48 -07:00
Jack He
5aa83c0c09 MCAP: Add test interface ID (1/2)
* Some PTS tests requires protocols and profiles to be accessed at stack
  API level
* This CL creates an ID for the MCAP protocol
* An application must be able to reference stack headers in order to use
  such an interface

Bug: 37867299
Test: make, no user visible effect
Change-Id: Ice654321cdeb11f93b1c8fc4a0753fe86bd82a56
(cherry picked from commit 9213f5b043)
2017-05-24 14:50:03 -07:00
Jack He
ac90000da3 Merge "MCAP: Add test interface ID (1/2)" am: 9dbf14a312 am: d7d66b117d am: 1495e0996e
am: e2e64dff91

Change-Id: Iabbc56ba033d7262aa7d694de479b8baebb760cc
2017-05-24 20:56:25 +00:00
Jack He
e2e64dff91 Merge "MCAP: Add test interface ID (1/2)" am: 9dbf14a312 am: d7d66b117d
am: 1495e0996e

Change-Id: I5dd6875e8ead5733bebea25daa2c7fb97f5b81e6
2017-05-24 20:48:18 +00:00
Jack He
9213f5b043 MCAP: Add test interface ID (1/2)
* Some PTS tests requires protocols and profiles to be accessed at stack
  API level
* This CL creates an ID for the MCAP protocol
* An application must be able to reference stack headers in order to use
  such an interface

Bug: 37867299
Test: make, no user visible effect
Change-Id: Ice654321cdeb11f93b1c8fc4a0753fe86bd82a56
2017-05-23 15:56:35 -07:00
Jakub Pawlowski
58b5453e5f Merge "Discover primary service by UUID for PTS tests (2/4)" am: cd35fa4509 am: 2a183763c7 am: ddd71ffa6e
am: a4e387d39d

Change-Id: If20f6b08ac973d621f6f9deff1895b4537666ae1
2017-05-16 21:16:24 +00:00
Jakub Pawlowski
a4e387d39d Merge "Discover primary service by UUID for PTS tests (2/4)" am: cd35fa4509 am: 2a183763c7
am: ddd71ffa6e

Change-Id: I8643a5b47a3a89bf64984aa600ca51db4d66843d
2017-05-16 20:55:44 +00:00
Jakub Pawlowski
a7c9c69ad4 Discover primary service by UUID for PTS tests (2/4)
Bug: 38123054
Test: manual
Change-Id: Idaeac24005ff4521096b4849f976c69e530d800d
(cherry picked from commit 560f2d97cd)
2017-05-16 13:52:58 -07:00
Jakub Pawlowski
560f2d97cd Discover primary service by UUID for PTS tests (2/4)
Bug: 38123054
Test: manual
Change-Id: Idaeac24005ff4521096b4849f976c69e530d800d
2017-05-16 10:53:36 -07:00
Andre Eisenbach
6d7e952b56 Merge "Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)" am: 4ea8183f5f am: ae85bca70a am: fda14c6da2
am: 73610a7850

Change-Id: I508588948fb870fd8d529068be3500c538c4d59a
2017-05-11 01:46:53 +00:00
Andre Eisenbach
73610a7850 Merge "Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)" am: 4ea8183f5f am: ae85bca70a
am: fda14c6da2

Change-Id: I3a311ba2b1bc27a94d6513904bc7104791bb99b9
2017-05-11 01:19:42 +00:00
Mathias Agopian
c4068c8a32 fix circular dependency libnativewindow <-> libui
Bug: 37647680
Bug: 37648355
Test: compile, manual
Change-Id: Iadbccdcfe68792e3b5543963a5e81f985f87de09
2017-05-09 22:46:27 -07:00
Mathias Agopian
d8108ab504 fix circular dependency libnativewindow <-> libui
Bug: 37647680, 37648355
Test: compile, manual
Change-Id: I5aaf07dd76d0d8f5294fb4133c7a0b5e6df3bebc
2017-05-05 14:08:40 -07:00
Hemant Gupta
9ec149f022 Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)
Provides an interface for application to send Set Idle
and Get Idle commands to remote HID Device. Support for these
two commands was missing from existing code, so existing code
design is reused to add support for these two commands.

Without this support following mandatory PTS test cases for HID 1.0
cannot be passed, TC_HOS_HID_BV_05/06

Test: Executed PTS tests TC_HOS_HID_BV_05/06 and confirmed if they can
pass

Bug: 34344715
Change-Id: I4c528a510edd847bc6121ce0b875ae313f090b9c
2017-05-05 13:19:23 +00:00
Ajay Panicker
ed5b29d32f Merge "Limit btsnoop file size (1/9)" into oc-dev 2017-05-04 22:56:21 +00:00
Ajay Panicker
15b70a56fb Limit btsnoop file size (1/9)
Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: Ic43600b10435d34a0528e28bd523187a6c311f61
Change-Id: Ic43600b10435d34a0528e28bd523187a6c311f61
2017-04-27 13:45:08 -07:00
Jakub Pawlowski
43346aad01 Expose LE advertiser address for easier PTS tests (3/6)
This patchset adds a hidden method getOwnAddress, that lets app with
BLUETOOTH_PRIVILEGED permission to lear their own addreess. This is done
exclusively for PTS tests.

Bug: 35147497
Test: manual
Change-Id: I39a6395d589d0ea801fd771bf3313ed6212a6349
(cherry picked from commit 788847a61a)
2017-04-27 12:55:46 -07:00
Jakub Pawlowski
1fb9687349 Read by UUID for PTS tests (3/5)
Add a hidden api for reading characteristic by UUID for PTS.

Bug: 35150313
Test: sl4a GattReadTest.byUuid
Change-Id: Ia429895abf38b504975af5d53ec4c5adf5a01a9d
(cherry picked from commit f6833f45c3)
2017-04-27 12:55:34 -07:00
Ajay Panicker
7c4b9b1e48 Merge "Limit btsnoop file size (1/8)" am: d81f127986 am: 5e7d617059
am: 4cb3b7232b

Change-Id: I854251294e8a0d470fdcd6fc0e269e5473f4be8f
2017-04-27 18:20:56 +00:00
Ajay Panicker
6992397ce6 Limit btsnoop file size (1/8)
Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: Ic43600b10435d34a0528e28bd523187a6c311f61
Change-Id: Ic43600b10435d34a0528e28bd523187a6c311f61
2017-04-27 00:04:25 +00:00
Ajay Panicker
2bfc5d5d53 Limit btsnoop file size (1/8)
Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Change-Id: Ic43600b10435d34a0528e28bd523187a6c311f61
2017-04-24 10:43:21 -07:00
Ashutosh Joshi
5fd1b38299 Merge "Ensure that LLOB sensor is names similr to other android sensors." into oc-dev
am: c87b15a224

Change-Id: Ib3656593fffaf04653e73b919c3178cc9b73ab44
2017-04-20 03:17:58 +00:00
Jakub Pawlowski
d9b477653b Merge "Expose LE advertiser address for easier PTS tests (3/6)" am: 004ea22c72 am: 8591015632
am: 7fc1975f94

Change-Id: Iece8ab1e125636a39d3e80d0d544aeb5b4db7c75
2017-04-19 21:50:46 +00:00
Jakub Pawlowski
096a2c55c5 Merge "Read by UUID for PTS tests (3/5)" am: 421643aab5 am: 5c2213d7cf
am: 09adc1c554

Change-Id: Ice4c287e682cc4d10e4fe25ab5a5f32666d0fce3
2017-04-19 16:20:46 +00:00
Jakub Pawlowski
788847a61a Expose LE advertiser address for easier PTS tests (3/6)
This patchset adds a hidden method getOwnAddress, that lets app with
BLUETOOTH_PRIVILEGED permission to lear their own addreess. This is done
exclusively for PTS tests.

Bug: 35147497
Test: manual
Change-Id: I39a6395d589d0ea801fd771bf3313ed6212a6349
2017-04-19 07:03:51 -07:00
Jakub Pawlowski
f6833f45c3 Read by UUID for PTS tests (3/5)
Add a hidden api for reading characteristic by UUID for PTS.

Bug: 35150313
Test: sl4a GattReadTest.byUuid
Change-Id: Ia429895abf38b504975af5d53ec4c5adf5a01a9d
2017-04-18 20:46:03 +00:00
Ashutosh Joshi
d14335b8a6 Ensure that LLOB sensor is names similr to other android sensors.
Ensuring that the LLOB sensos naming style is consistent with other
sensor naming styles.

Bug: 36554362
Test: Verify that the sensor shows up with the appropriate name
      string.

Change-Id: Ic91d13e7c1c6652179d3259509682f3c19cd89dc
2017-04-15 01:08:08 +00:00
Jack He
b2baa5d54a Merge "Modify native stack calls for in-band ringing" into oc-dev 2017-04-13 19:43:54 +00:00
Peng Xu
cd6957ec3e Merge "Clarify that reserved function pointers has to be set to null" into oc-dev
am: 6b6f3f7aa6

Change-Id: Ic7ebe4af8e500089b2737c60d7406d7475e24dc1
2017-04-13 02:27:29 +00:00
TreeHugger Robot
6b6f3f7aa6 Merge "Clarify that reserved function pointers has to be set to null" into oc-dev 2017-04-13 02:23:39 +00:00
Jack He
95a608c119 Modify native stack calls for in-band ringing
* Update init to accept inband_ringing_supported flag

Bug: 19171297
Test: mm -j 40, regression on HFP, testplans/82144
Change-Id: I3bbf8e370ffb4d893c4bb6ad0d3c09ef3f00d6bd
(cherry picked from commit 5c1ac6882c)
2017-04-12 22:23:57 +00:00
Brian C. Anderson
efbe569057 Merge "Add PRESENT_FENCE_IS_NOT_RELIABLE" into oc-dev
am: 13cb2045ee

Change-Id: Id26f95946677cd2f4a8cd865bc982ad2155813f4
2017-04-12 21:40:10 +00:00
Brian C. Anderson
13cb2045ee Merge "Add PRESENT_FENCE_IS_NOT_RELIABLE" into oc-dev 2017-04-12 21:26:23 +00:00
Mark Salyzyn
1ae7379baa resolve merge conflicts of 7c451a93 to oc-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: 34250038
Change-Id: I4196a6d5a1365106643ac6c1548fd86faffead6f
2017-04-12 09:11:38 -07:00
Brian Anderson
49018a55ae Add PRESENT_FENCE_IS_NOT_RELIABLE
Test: adb shell /data/nativetest/libgui_test/libgui_test
  --gtest_filter=*GetFrameTimestamps*
Bug: 36730849, 36887025

Change-Id: I09a543e7143542a4ed2952e7af1add17d864e3f2
2017-04-11 14:29:54 -07:00
Mark Salyzyn
d88dfe8607 libhardware: deprecate cutils/log.h
Replace cutils/log.h with log/log.h. Sort headers. Minimize conflicts.
Add missing required headers.

Test: compile
Bug: 34250038
Change-Id: I5c0f231cbfed90b73e0538c9d32ad3226c7cc5e4
2017-04-11 10:50:06 -07:00
Chia-I Wu
c1947c9e60 gralloc1: add a capability to fix release semantics
am: 5cbf8f8297

Change-Id: Icd12b8929ca653dfe41fd281ec863959cc7c7528
2017-04-11 01:14:25 +00:00
Jack He
0d75292ec8 Merge "Modify native stack calls for in-band ringing" am: f08d9dff19 am: 3de5bc5fe8
am: 0dd6f81579

Change-Id: Ic2f741080aef4bd0dd7e41b4812f112ba6f564f5
2017-04-10 23:20:12 +00:00
Jack He
5c1ac6882c Modify native stack calls for in-band ringing
* Update init to accept inband_ringing_supported flag

Bug: 19171297
Test: mm -j 40, regression on HFP, testplans/82144
Change-Id: I3bbf8e370ffb4d893c4bb6ad0d3c09ef3f00d6bd
2017-04-10 19:50:07 +00:00
Chia-I Wu
5cbf8f8297 gralloc1: add a capability to fix release semantics
Bug: 36355756
Test: manual
Change-Id: Ideaada0cb0b642501667c8854403f412ee8ef107
2017-04-07 11:14:28 -07:00
Peng Xu
bed42d4c2b Clarify that reserved function pointers has to be set to null
Test: no, comment change
Change-Id: I2b295c721cf199bcec779c8606ee1deb9fdf0a5c
2017-04-06 17:52:29 -07:00
Scott Randolph
477913b9aa Remove deprecated vehicle_camera.h
This interface has been removed in favor of the EVS HAL in
hardware/interfaces/automotive/evs

Test:  build tree
Bug:  36900851
Topic:  RetireVehicleCamera
Change-Id: I1594839ce86d860c4aad6f4d0d922505311ab3c1
(cherry picked from commit d49b3655e3)
2017-04-04 23:01:42 +00:00
Jakub Pawlowski
784d6f1a88 Bluetooth 5 advertising duration refactoring (2/4)
Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: Id5a7246b1d3e937d5c462315c157b320d659a52d
(cherry picked from commit dd3e64f258)
2017-03-31 22:34:24 -07:00
Jakub Pawlowski
097032a21b Bluetooth 5 periodic scan (3/3)
This patch wires calls/callbacks through stack to prepare for actual
implementation.

Test: manual
Bug: 30622771
Change-Id: I30ed67e9975d5207bbe037328e4d7cbdcaf69e5c
(cherry picked from commit 5a074af6b8)
2017-03-31 22:33:48 -07:00
Jakub Pawlowski
d1169df562 Merge "Bluetooth 5 advertising duration refactoring (2/4)"
am: 1b14e03289

Change-Id: I075474969edaaefc03bb4174332ce125ebf26a53
2017-04-01 04:39:29 +00:00
Andy Hung
7e1b97e4ff Fix endian define
Test: compilation
Bug: 36815380
Change-Id: I6a1a89dfcf8339faa07509b1e058250ad2e86f1d
2017-03-31 14:12:17 -07:00
Jakub Pawlowski
dd3e64f258 Bluetooth 5 advertising duration refactoring (2/4)
Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: Id5a7246b1d3e937d5c462315c157b320d659a52d
2017-03-30 20:53:45 -07:00
Jakub Pawlowski
e5a2eafaff Merge "Bluetooth 5 periodic scan (3/3)"
am: e077d6fa76

Change-Id: Iad2757ef4b803c0aab7abc640579f1dba7650832
2017-03-30 03:30:03 +00:00
Jakub Pawlowski
5a074af6b8 Bluetooth 5 periodic scan (3/3)
This patch wires calls/callbacks through stack to prepare for actual
implementation.

Test: manual
Bug: 30622771
Change-Id: I30ed67e9975d5207bbe037328e4d7cbdcaf69e5c
2017-03-29 16:41:05 -07:00
Jakub Pawlowski
254c20585d Merge "Add option to specify initial LE connection PHY (1/3)" am: f11f4db5ad am: 5e4ebcab38
am: b5fe4bdc72

Change-Id: I24dcf2eae37abe50425c909e286f791f7838326f
2017-03-27 20:54:11 +00:00
Jakub Pawlowski
5e4ebcab38 Merge "Add option to specify initial LE connection PHY (1/3)"
am: f11f4db5ad

Change-Id: I4e051af08c8efa8c1e2e2ef8fb4f53ee8eca6280
2017-03-27 20:48:11 +00:00
Jakub Pawlowski
cc99bc54ec Add option to specify initial LE connection PHY (1/3)
For whitelist connections we always use all possible PHYs, for direct
connection use PHY specified by client.

Test: manual
Bug: 30622771
Change-Id: I13242608385230371e8a9170fc21e3f1b0a74c78
2017-03-27 11:40:18 -07:00
Jakub Pawlowski
b75531444d Merge "Expose connection update callback (2/3)" am: b1def383da am: 6cf186eb6b
am: 85ccdb8629

Change-Id: I24b390caa55284ab96601fbe7cd8418943036bb1
2017-03-24 20:47:03 +00:00
Jakub Pawlowski
6cf186eb6b Merge "Expose connection update callback (2/3)"
am: b1def383da

Change-Id: I05a6427ed162e767e126e20572279801688c2ad2
2017-03-24 20:35:27 +00:00
Jakub Pawlowski
6f0c6f1874 Expose connection update callback (2/3)
Test: manual
Bug: 30622771
Change-Id: I5ed4fe503ba3212af808b759b67d71b895395bd3
2017-03-23 19:08:11 -07:00
Jakub Pawlowski
fd0bae5d4f Merge "Set preferred PHY and read PHY implementation (2/3)" am: 4929629d91 am: d71003fef1
am: 03aca19360

Change-Id: I3ed5db0d6ec9cca251bc2462a7bd7a5c37031da6
2017-03-24 01:16:51 +00:00
Jakub Pawlowski
d71003fef1 Merge "Set preferred PHY and read PHY implementation (2/3)"
am: 4929629d91

Change-Id: I5e4087a0661b18b6eb0910d7de9b50ed467e0524
2017-03-24 01:12:50 +00:00
Jakub Pawlowski
f3eb55825c Set preferred PHY and read PHY implementation (2/3)
Test: manual
Bug: 30622771
Change-Id: I26d64e8f0a2d881ddd648b3c7786ada25c72b455
2017-03-23 13:27:30 -07:00
TreeHugger Robot
bfea8ae78c Merge "implemented enumerate method in fingerprintservice fixes bug 35358801 Test: ran enumeration in template with 1) more fingerprints in fingerprintd 2) more fingerprints in framework 3) no fingerprints in fingerprintd, but fingerprints in framework 4) no fingerprints in framework, but fingerprints in fingerprintd" 2017-03-23 18:07:05 +00:00
TreeHugger Robot
e51a6dd308 Merge "camera3: Add doc for combined stream use flags" 2017-03-23 02:21:29 +00:00
TreeHugger Robot
e90bc93d73 Merge "Add manufacturer and model to device ID attestation" 2017-03-23 00:01:39 +00:00
Jakub Pawlowski
38d71533ee Merge "Bluetooth 5 AdvertisingSet implementation (3/4)" am: ecb7fc5332 am: 00a91f290b
am: 9673fcf99c

Change-Id: I89b90208e2df3ab971e02736b43a63f8c34e9943
2017-03-20 22:41:10 +00:00
Jakub Pawlowski
00a91f290b Merge "Bluetooth 5 AdvertisingSet implementation (3/4)"
am: ecb7fc5332

Change-Id: I13dfd19877828eac02532a44fe8f6ba35418929b
2017-03-20 22:26:46 +00:00
Jakub Pawlowski
a4bd8a61cb Bluetooth 5 AdvertisingSet implementation (3/4)
Test: manual
Bug: 30622771
Change-Id: I8dc3b0ee85a6a449838a61bab86be5a2ea40b0ab
2017-03-20 12:26:33 -07:00
Shuzhen Wang
07a5cd5650 camera3: Add doc for combined stream use flags
Specify the HAL behavior when stream usage flag is combination for
multiple consumers.

Test: Compile
Bug: 33777818
Change-Id: If11de5d249b1a8366dad7ec14e5e35f9cfc06ce4
2017-03-20 09:26:42 -07:00
Bartosz Fabianowski
81b7b5f68c Add manufacturer and model to device ID attestation
Discussions have shown that in addition to brand, device and product,
we should also allow devices to attest their manufacturer and model.

Bug: 36433192
Test: GTS com.google.android.gts.security.DeviceIdAttestationHostTest

Change-Id: I126003420a93241e04bf18ee7ff8e6aefa5599a8
2017-03-20 14:01:40 +01:00
Jakub Pawlowski
2ea3c31f31 Merge "LE Maximum Advertising Data Length (3/4)" am: d7c37e7235 am: c25f4d202e
am: 4d437176ee

Change-Id: I6c37e5fb9c0d4c5aad5439ca56bd7a0aa7a3d145
2017-03-17 05:29:52 +00:00
Jakub Pawlowski
c25f4d202e Merge "LE Maximum Advertising Data Length (3/4)"
am: d7c37e7235

Change-Id: I99c507e4a65c51dcdfadd146593ed194a83826e8
2017-03-17 05:20:02 +00:00
Jakub Pawlowski
696f69966c LE Maximum Advertising Data Length (3/4)
Add ability to check maximum advertising data length.

Bug: 30622771
Test: manual
Change-Id: I14a66a906a3f6133eea87c538de854bbfab056f5
2017-03-16 18:28:59 -07:00
Jakub Pawlowski
db18196a52 Merge "Bluetooth 5 AdvertisingSet implementation (4/4)" am: 1317fe40e0 am: b2475c5afa
am: ff005ba330

Change-Id: I423311e19bead2f0fd8c9d54600be0917049f372
2017-03-17 01:21:43 +00:00
Jakub Pawlowski
b2475c5afa Merge "Bluetooth 5 AdvertisingSet implementation (4/4)"
am: 1317fe40e0

Change-Id: I6642bb6214f9d23e9a2a9b6c6bb3a690e9d69112
2017-03-17 01:08:05 +00:00
TreeHugger Robot
3876eecb59 Merge "Camera: Update camera3.h doc for high speed video batching" 2017-03-17 00:32:50 +00:00
Jakub Pawlowski
0d0b7d1757 Bluetooth 5 AdvertisingSet implementation (4/4)
This patch wires up fist methods of AdvertisingSet, making it possible
to start advertising and stop advertising. It also replaces legacy
implemementation with calls to new implementation.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest

Change-Id: I4a2739528fe114547f747d9719a4d47de7ce5589
2017-03-16 16:18:46 -07:00
Shuzhen Wang
13a19e11e6 Camera: Update camera3.h doc for high speed video batching
Now cameraservice only sends one shutter notify and capture result to
the application per batch.  Update the HAL interface doc to reflect this.

Test: Compiles
Bug: 35775704
Change-Id: I290ef93f842f4a02e5bdaeb0e50298f79fcef602
2017-03-14 14:06:59 -07:00
Jakub Pawlowski
fa41f8684f Merge "Bluetooth 5 feature check implementation (2/3)" am: 69606698b2 am: 3aa949fad0
am: c2d188fd62

Change-Id: I00034a0a2c1eb0d527634725affb9cf2b95ff8a7
2017-03-11 02:20:14 +00:00
Jakub Pawlowski
3aa949fad0 Merge "Bluetooth 5 feature check implementation (2/3)"
am: 69606698b2

Change-Id: Iab12da0e5f36e9e1878028e50e0218200e654b9f
2017-03-11 02:13:14 +00:00
Jakub Pawlowski
0a660af26a Bluetooth 5 feature check implementation (2/3)
Wire the new feature check API to actual values received from the
controller.

Test: manual
Bug: 30622771
Change-Id: I76d373b94fd3d4d637ddae637a8424d463286837
2017-03-09 18:19:24 -08:00
Steven Moreland
70818770a3 Merge "Update nfc-base.h" am: 879e1607d7 am: 4eae4eea23
am: 93e8efb14b

Change-Id: Id00fd572d0184c4490c38315ea00d03594a526de
2017-03-08 06:44:52 +00:00
Steven Moreland
4eae4eea23 Merge "Update nfc-base.h"
am: 879e1607d7

Change-Id: I1c388070b7ffc0f664c10bc0756eaf287013029c
2017-03-08 06:39:22 +00:00
TreeHugger Robot
2e643b42ad Merge "Revert (nfc part of) "Ran hardware/interfaces/update-base-files.sh."" 2017-03-08 01:30:56 +00:00
Steven Moreland
50e8f45ca8 Revert (nfc part of) "Ran hardware/interfaces/update-base-files.sh."
(commit: 54925f4636)

Reason for revert: nfc changes should go in AOSP:
https://android-review.googlesource.com/c/343935/

Change-Id: I3cc8c520c15c3b88ba5fceeb2e59ae44b8f887c4
2017-03-07 18:14:19 +00:00
TreeHugger Robot
88202b943f Merge "Update gnss-base.h" 2017-02-27 20:43:54 +00:00
Steven Moreland
364ed97bc0 Update gnss-base.h
Test: pass
Bug: 33541458
Change-Id: Ib22daeddbd1de79210ff6f356ea4465b920bfe74
2017-02-24 16:27:50 -08:00
Steven Moreland
c293b01f04 Update sensors-base.h
Test: pass
Bug: 33541458
Change-Id: I9e29be69a3903ee5ec213ebc8e2e40e24f6ec755
2017-02-24 13:14:19 -08:00
Steven Moreland
2b335affb8 Update nfc-base.h
Test: pass
Bug: 33541458
Change-Id: Iacbbd553871028ea174fa97c87a36ee2bae50805
2017-02-24 13:11:01 -08:00
Jakub Pawlowski
c222f7f6f2 Merge "Use base::Callbacks in BleScannerInterface (1/3)" am: d3b3ea65c5 am: 45f56948fe
am: be8b526c78

Change-Id: I05dcd291b16575d0602d538bae0e858ab455e0a2
2017-02-21 18:19:17 +00:00
Jakub Pawlowski
45f56948fe Merge "Use base::Callbacks in BleScannerInterface (1/3)"
am: d3b3ea65c5

Change-Id: If8f63018e33ad39621c47bac9b0ff8f670b2a875
2017-02-21 18:06:47 +00:00
Jakub Pawlowski
62ddb5d520 Use base::Callbacks in BleScannerInterface (1/3)
The remaining four native callbacks need more internal refactoring
before they can be turned into a callbacks.

Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I5aea0485c88605d34ccf8e0a27202469bb5c0ff4
2017-02-17 17:26:46 -08:00
Frank Salim
38925770ef Revert "Add new purpose to the HAL layer."
This reverts commit ee2f29de40.

Reason for revert: Remove partial support for wrapped key import

Change-Id: Iefb57c910a3d05fa9e2c9660c2ac236c2ecc9cc0
2017-02-16 19:18:19 +00:00
Kevin Chyn
ba8e932d1f implemented enumerate method in fingerprintservice
fixes bug 35358801
Test: ran enumeration in template with
1) more fingerprints in fingerprintd
2) more fingerprints in framework
3) no fingerprints in fingerprintd, but fingerprints in framework
4) no fingerprints in framework, but fingerprints in fingerprintd

Change-Id: Id150f0225d597939cf1af6bac218fe0fdeeca93d
2017-02-14 14:45:04 -08:00
Jakub Pawlowski
239cdb26c0 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710 am: 57a17f0269 am: d8c958cefa
am: 00aeb15b9d

Change-Id: I0abda9e46bad50a5483d5516e74bd39bb8b73aea
2017-02-07 14:08:02 +00:00
Pavlin Radoslavov
d39b7b4050 Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92 am: adf704ce29 am: e44d2b2804
am: 77ee9182aa

Change-Id: I9c3f98572c7aecea5196793d055c61aaad4b994d
2017-02-07 14:05:48 +00:00
Jakub Pawlowski
00aeb15b9d Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710 am: 57a17f0269
am: d8c958cefa

Change-Id: Ie9d6730bc5770a9b9a3000e4a5a8c56d5329038c
2017-02-07 01:37:34 +00:00
Jakub Pawlowski
d8c958cefa Merge "Propagate BT5 specific scan result properties up the stack (1/3)" am: a0ce42c710
am: 57a17f0269

Change-Id: If237457e9c5b7f2784ceae1c8acdbab5d2263aed
2017-02-07 01:35:03 +00:00
Jakub Pawlowski
a0ce42c710 Merge "Propagate BT5 specific scan result properties up the stack (1/3)" 2017-02-07 01:29:26 +00:00
Pavlin Radoslavov
77ee9182aa Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92 am: adf704ce29
am: e44d2b2804

Change-Id: I1fcc37af08200d7898be2da7f85b45abb4177e78
2017-02-07 00:18:43 +00:00
Pavlin Radoslavov
e44d2b2804 Merge "Add a mechanism to configure the default A2DP codec priorities" am: a82ee04b92
am: adf704ce29

Change-Id: I9ebe63d07e486f0033765236a1d61e8a16989595
2017-02-07 00:10:26 +00:00
Jakub Pawlowski
701ab73a50 Propagate BT5 specific scan result properties up the stack (1/3)
Bug: 30622771
Test: sl4a FilteringTest
Change-Id: I740447921d2964559b5fa8c8d7dcc32975352b61
2017-02-06 14:05:37 -08:00
Pavlin Radoslavov
310d0f5979 Add a mechanism to configure the default A2DP codec priorities
Previously, the relative codec priorities were hard-codec internally.
The new mechanism uses the following configurable resources in
packages/apps/Bluetooth/res/values/config.xml to re-assign the
default codec priorities per device, or to explicitly disable a codec.

 - a2dp_source_codec_priority_sbc
 - a2dp_source_codec_priority_aac
 - a2dp_source_codec_priority_aptx
 - a2dp_source_codec_priority_aptx_hd
 - a2dp_source_codec_priority_ldac

Those values are assigned on startup.
Also, they can be changed per device by using an overlay:
device/<VENDOR>/<DEVICE>/overlay/packages/apps/Bluetooth/res/values/config.xml

Test: Manually streaming to a headset
Change-Id: I432174975d7afbecb8f27cb0e55f5aa816c6e64e
2017-02-06 13:10:38 -08:00
Pavlin Radoslavov
4f24afa81f Merge "Update the A2DP Codec Config API" am: 451a32cb56 am: 6c3ad4427f am: 28124d4384
am: 9c5d5e2347

Change-Id: Ib050779118c162f4de44f17274369400dba79a11
2017-01-31 19:25:14 +00:00
Pavlin Radoslavov
9c5d5e2347 Merge "Update the A2DP Codec Config API" am: 451a32cb56 am: 6c3ad4427f
am: 28124d4384

Change-Id: I8912291f2ae40c4cf654cbf2cc1ff53fe2908c29
2017-01-31 19:17:24 +00:00
Pavlin Radoslavov
28124d4384 Merge "Update the A2DP Codec Config API" am: 451a32cb56
am: 6c3ad4427f

Change-Id: I17b6e5618ae01e96f94685c131e1008e6e942f33
2017-01-31 19:13:07 +00:00
Pavlin Radoslavov
1f103a4b6c Update the A2DP Codec Config API
Previously, the JNI upcall would contain only the current codec config.
In the new API, the upcall contains:
 1. The current codec config
 2. The list of codecs containing the local codecs capabilities
 3. The list of codecs containing the selectable codecs capabilities.
    This list is the intersection of the local codecs capabilities
    and the capabilities of the paired device.

Also, changed the btav_a2dp_codec_priority_t type to enum.

Test: A2DP streaming with headsets and switching the codecs
Change-Id: Icb1c7e0ac6a81e4283fb5353ec2c36712587e0e1
2017-01-27 17:15:52 -08:00
Pavlin Radoslavov
5394b2669e Merge "Integration of the AAC codec for A2DP source" am: 314f08379f am: 428b764c7a am: b39dfc5954
am: b3f85b06bc

Change-Id: I660a6bf63940d5702e8c71e3a7387604470e343f
2017-01-26 19:42:20 +00:00
Pavlin Radoslavov
b3f85b06bc Merge "Integration of the AAC codec for A2DP source" am: 314f08379f am: 428b764c7a
am: b39dfc5954

Change-Id: I0f112ef179e78afca1a3659ed450bac5fedd2ad2
2017-01-26 19:31:10 +00:00
Pavlin Radoslavov
b39dfc5954 Merge "Integration of the AAC codec for A2DP source" am: 314f08379f
am: 428b764c7a

Change-Id: Ib47915bc6839dffa1f0e5d84965799f17326dd69
2017-01-26 19:25:41 +00:00
Pavlin Radoslavov
f9b17fed4b Integration of the AAC codec for A2DP source
Test: A2DP streaming to AAC headsets
Bug: 30958229

Change-Id: If019f9df71d4c3cab868c1d8749592aac4a87aa3
2017-01-26 00:16:00 +00:00
TreeHugger Robot
ec9df01278 Merge "Add device id attestation tags" 2017-01-25 05:03:50 +00:00
Bartosz Fabianowski
9d2f5b911e Add device id attestation tags
This syncs the keymaster defs with the Keymaster 3.0 HAL definition
after the addition of device id attestation.

Bug: 34597337
Test: CTS CtsKeystoreTestCases and GTS DeviceIdAttestationHostTest

Change-Id: I75a4b7cca6da83b239fba97964415788dbcd8862
2017-01-24 23:07:23 +01:00
TreeHugger Robot
28f52775eb Merge "Add gnss-base.h" 2017-01-24 15:51:57 +00:00
Crystal Qin
d6a95dacdb Merge "Add new purpose to the HAL layer." 2017-01-20 18:13:50 +00:00
Peng Xu
a984e56b86 Merge "[sensors] SENSOR_TYPE_DYNAMIC_SENSOR_META should be wake up" am: 28764df8a3 am: 889c710408
am: 091cb5ba7e

Change-Id: Ifa8afd97b47e8a3d0e0e2accfac4b8e76e871029
2017-01-19 01:27:00 +00:00
Peng Xu
091cb5ba7e Merge "[sensors] SENSOR_TYPE_DYNAMIC_SENSOR_META should be wake up" am: 28764df8a3
am: 889c710408

Change-Id: Iea420792fe3ec68d34fbba43afa1bcc366680951
2017-01-19 01:22:26 +00:00
Peng Xu
28764df8a3 Merge "[sensors] SENSOR_TYPE_DYNAMIC_SENSOR_META should be wake up" 2017-01-19 01:11:49 +00:00
Peng Xu
f26095e809 Merge "[sensor] Sync automatically generated code after interface change" 2017-01-19 00:37:03 +00:00
Hridya Valsaraju
bd0aa25859 Add gnss-base.h
Test: make -j32

Change-Id: I9dea63ff745735a9785a4fb9fd214c11e95df6f6
2017-01-18 15:09:35 -08:00
Peng Xu
7d17b580ac [sensor] Sync automatically generated code after interface change
Sync up the automatically generated sensors-base.h after changes
to hardware/interfaces.

Test: compiles
Change-Id: I5d4e9f8b39bcbe8f62a4a0c20c70e637827f9146
2017-01-18 14:17:30 -08:00
Peng Xu
cc7cf04068 Merge "[sensors] clarify sensor and direct channel handle size" 2017-01-18 00:57:17 +00:00
Peng Xu
f144435ef4 [sensors] clarify sensor and direct channel handle size
* clarify direct channel handle must be less than INT32_MAX.
* sensor handle should fit in int32_t and positive.

Test: compiles ok
Change-Id: Iaf4573cf3a66b992fd354217096140a6001c4078
2017-01-17 15:14:49 -08:00
Jim Miller
e392a54071 Add missing lockout code to fingerprint.h
This is already in the framework, but wasn't visible in HAL 2.1. Required to
properly enforce HIDL 2.1 compliance.

Bug: 33199080

Test: Fingerprint enroll, remove, unlock, fingerprint arbitration.
Change-Id: I3400005df57fe6ac0f42f70fa17786876202be1f
2017-01-17 11:45:41 -08:00
Peng Xu
ea2bf36c08 Merge "Add gralloc1 flags for direct mode sensors and SSBO/UBO buffers." 2017-01-14 09:48:17 +00:00
Peng Xu
95f79b1879 [sensors] Minor tuning of hal definition
* Swap GEOMAGNETIC_FIELD with MAGNETIC_FIELD for more accurate
    definition.
  * Clarify that string type will be omitted for well defined sensor
    types.
  * Remove legacy 8-bit restriction to sensor handle. This is an
    unnecessary limit for since long time ago. Still leave the define
    for code compatibility and change the value to 32.
  * update sensors-base.h with companion .hal file change.

Test: test with sensorlogger, all sensor works
Change-Id: I6ff7022146eb25f7efdce87b70bf5ed488a70c6d
2017-01-13 10:58:23 -08:00
Ashutosh Joshi
da8827a283 Merge "Add an uncalibrated accelerometer type." 2017-01-13 17:47:33 +00:00
Craig Donner
ce40541781 Add gralloc1 flags for direct mode sensors and SSBO/UBO buffers.
Bug: 30985702
Test: non-functional change
Change-Id: I9703f6ae81b95b65d0fc822a06a53b6f2318ef29
2017-01-12 15:52:02 -08:00
Peng Xu
08a4dd9e89 [sensors] Adding HAL API support for direct report mode
Added HAL function and constant definition for sensor direct
report mode. This new mode allows sensor hardware to communicate
with application directly via a lock-free queue based on shared
memory to achieve low latency and high report frequency.

Test: compiles and runs
Bug: 30985702
Change-Id: I79c73bcdcc45d43b5a236d65874e5071a589cecd
2017-01-12 12:19:12 -08:00
Ashutosh Joshi
d1e2562a79 Add an uncalibrated accelerometer type.
Add an uncalibrated accelerometer sensor type.

Test: Build compiles.

Change-Id: Iddc3b03abf0ba9beeec542eecf138b06d08355f2
2017-01-11 11:11:11 -08:00
Eino-Ville Talvala
18782aa54e Camera: Update for service changes, part 2
- Indicate that HALv3.0 and v3.1 are no longer supported
- Update tests that reuse camera service plumbing to match
  service code changes

Test: Builds
Bug: 32991422
Change-Id: I13b800aea6f65270a2a621bd8a61705160fb2dc8
2017-01-05 15:23:54 -08:00
Pavlin Radoslavov
8e3a480c90 Merge "Integration of the LDAC codec for A2DP source" am: c231e02492 am: 1f7df5e41d am: ca8d1cc38f
am: 7098b958c8

Change-Id: I3c168e2538ff462e6757dabf1cc25a79e3a9f808
2017-01-05 08:04:30 +00:00
Pavlin Radoslavov
7098b958c8 Merge "Integration of the LDAC codec for A2DP source" am: c231e02492 am: 1f7df5e41d
am: ca8d1cc38f

Change-Id: If8bf63107aaffb666c8fb16cb7b81317abfa4bf5
2017-01-05 08:00:03 +00:00
Pavlin Radoslavov
ca8d1cc38f Merge "Integration of the LDAC codec for A2DP source" am: c231e02492
am: 1f7df5e41d

Change-Id: I648dc4daf0380e827d1f121624b073873a81a66c
2017-01-05 07:55:30 +00:00
Pavlin Radoslavov
5a261e8371 Merge "Integration of the aptX and aptX-HD codecs for A2DP source" am: 0184b42499 am: 4122ca2593 am: c9c5e3f7ce
am: 419fa989e6

Change-Id: I879aea49003eaf3ab65c4d40149e2b61922f1e98
2017-01-05 02:17:39 +00:00
Pavlin Radoslavov
419fa989e6 Merge "Integration of the aptX and aptX-HD codecs for A2DP source" am: 0184b42499 am: 4122ca2593
am: c9c5e3f7ce

Change-Id: I6aea107b5bd522e871cc97f965da0317edfc3c8c
2017-01-05 02:12:07 +00:00
Pavlin Radoslavov
c9c5e3f7ce Merge "Integration of the aptX and aptX-HD codecs for A2DP source" am: 0184b42499
am: 4122ca2593

Change-Id: Id6fae01022be55f9df1fd07554a6698cf2af4a11
2017-01-05 02:07:08 +00:00
Pavlin Radoslavov
be1bfcea29 Integration of the LDAC codec for A2DP source
The codec can be used if the encoding shared library is installed
on the device:
 libldacBT_enc.so

Test: A2DP streaming to LDAC headsets
Bug: 30958229
Change-Id: I53917bb3cc18630a34d39c80425cdf80a1221793
2017-01-04 18:05:49 -08:00
Pavlin Radoslavov
b2543a2f8e Integration of the aptX and aptX-HD codecs for A2DP source
Each of the codecs can be used if the corresponding encoding
shared library is installed on the device:
 - aptX: libaptX.so
 - aptX-HD: libaptXHD.so

Test: A2DP streaming to aptX and aptX-HD headsets
Bug: 30958229
Change-Id: If827933e4ea5d9d55eadff369db0eeeeb27a03ce
2017-01-04 16:31:14 -08:00
Ivan Podogov
d97310688e Merge "Allow HID Device to connect to a specific device" am: 0c45c105a5 am: 176b7ce269 am: 28281b652b
am: 79bc7ebb24

Change-Id: I1143cccfb204478ba28842a2d7007029a8078b93
2017-01-04 13:06:56 +00:00
Ivan Podogov
79bc7ebb24 Merge "Allow HID Device to connect to a specific device" am: 0c45c105a5 am: 176b7ce269
am: 28281b652b

Change-Id: Ie7510611b3fed966e4e4cc57b8fed91610a8bc1d
2017-01-04 13:04:26 +00:00
Ivan Podogov
28281b652b Merge "Allow HID Device to connect to a specific device" am: 0c45c105a5
am: 176b7ce269

Change-Id: I5436a00ae735089f712ec4dabfee5ef90f83a637
2017-01-04 13:02:25 +00:00
Treehugger Robot
0c45c105a5 Merge "Allow HID Device to connect to a specific device" 2017-01-04 12:56:52 +00:00
Pavlin Radoslavov
a230f1225a Merge "Add a mechanism for configuring the A2DP Source codecs" am: 2b4315b859 am: 44df1b76e6 am: a7cb1a9e3f
am: ccfaecd80f

Change-Id: Ifd88121512c1366adeb7d5671be1d438052dedcf
2017-01-04 03:54:25 +00:00
Pavlin Radoslavov
ccfaecd80f Merge "Add a mechanism for configuring the A2DP Source codecs" am: 2b4315b859 am: 44df1b76e6
am: a7cb1a9e3f

Change-Id: Ifc9f057be559ad961ab7fbd2273eccace24792ef
2017-01-04 03:49:14 +00:00
Pavlin Radoslavov
a7cb1a9e3f Merge "Add a mechanism for configuring the A2DP Source codecs" am: 2b4315b859
am: 44df1b76e6

Change-Id: I20b2d9ad0b1d45767098bbca39ba0219df9175e5
2017-01-04 03:44:46 +00:00
Pavlin Radoslavov
3c6e4eb659 Add a mechanism for configuring the A2DP Source codecs
* Introduced new generic API for representing A2DP codec configuration
  or capability: codec type, priority, sample rate, bits per sample,
  channel mode, and codec-specific fields.
  The new structure is btav_a2dp_codec_config_t

* Split the A2DP callback structure into two: one for A2DP Source callbacks,
  and one for A2DP Sink callbacks:
  OLD: btav_callbacks_t
  NEW: btav_source_callbacks_t and btav_sink_callbacks_t

* Split the A2DP BT-AV interface into two: one for A2DP Source, and one for
  A2DP Sink:
  OLD: btav_interface_t
  NEW: btav_source_interface_t and btav_sink_interface_t

Test: A2DP streaming to headsets, TestPlans/71390
Bug: 30958229
Change-Id: If6a10bb95eb0fa4106123283b934d372aebad2bc
2017-01-03 17:34:14 -08:00
Crystal Qin
ee2f29de40 Add new purpose to the HAL layer.
Test: There will be a CTS test CL.
Change-Id: Ic623b7be8949fe0adb3706958a9be59f267057c4
2017-01-03 16:57:21 -08:00
Ivan Podogov
7c8a3ef8f4 Allow HID Device to connect to a specific device
Test: make
Change-Id: If923a2ed8a4b0b58ecce4a1f60090adb91a0d3c6
2016-12-30 15:05:26 +00:00
Hemant Gupta
88b23ba5c1 Merge "Bluetooth: Add support for HID Device Role" am: 73ff921aa7 am: c5aaad19c7 am: e2ab0ac96c
am: 16efc12fe1

Change-Id: I954d1a0e0008eaa00daeaed0d1c93fc1af73f4cd
2016-12-29 20:10:08 +00:00
Hemant Gupta
16efc12fe1 Merge "Bluetooth: Add support for HID Device Role" am: 73ff921aa7 am: c5aaad19c7
am: e2ab0ac96c

Change-Id: Ifb14c7f982393278acc16d682efbd5ebc920e032
2016-12-29 20:00:57 +00:00
Hemant Gupta
e2ab0ac96c Merge "Bluetooth: Add support for HID Device Role" am: 73ff921aa7
am: c5aaad19c7

Change-Id: I8e4a304aaacd3d5956eaf042832da40f32e7422e
2016-12-29 19:47:52 +00:00
Hemant Gupta
7ed5a7f0e6 Bluetooth: Add support for HID Device Role
This patch adds support for HID Device Role in HAL so that jni
layer can communicate wtih Bluedroid Stack when calling HID Device
API's and callbacks.

Bug: 33011576
Change-Id: I591f477ee58924a9003d6e733dcbbc4e8a7d3202
2016-12-27 22:29:56 +00:00
Jakub Pawlowski
928bb6bd3a Merge "Modernize BLE Scanner implementation (1/3)" am: 6cab9cb65a am: ad7024a4f1 am: 80fc5e29d0
am: b1b48e8490

Change-Id: Id459da0eb191020bdeb926f0aaebf4c735e0681b
2016-12-20 00:56:32 +00:00
Jakub Pawlowski
b1b48e8490 Merge "Modernize BLE Scanner implementation (1/3)" am: 6cab9cb65a am: ad7024a4f1
am: 80fc5e29d0

Change-Id: I5f7de66fc08a945d8078c17cac39415ddc76fc42
2016-12-20 00:52:32 +00:00