OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoRemove PowerHint::DISABLE_TOUCH
Michael Wright [Wed, 18 Jan 2017 22:36:23 +0000 (22:36 +0000)]
Remove PowerHint::DISABLE_TOUCH

This isn't really a power hint and doesn't given the opportunity for the
input system to clean up any on going input streams or input fusion, so
shouldn't be part of the power HAL.

Test: run vts, play with device
Bug: 30143923
Change-Id: I7b63a2f07a7851739d90099af45773acead58548

7 years agoAdd missing 'offset' parameter to decrypt.
Jeff Tinker [Thu, 12 Jan 2017 03:45:23 +0000 (19:45 -0800)]
Add missing 'offset' parameter to decrypt.

Required for functionality

Test: gtests passing

Change-Id: I9e368c146092512dfa42230be0e05848044d2df5
related-to-bug: 32815560

7 years agoMerge "Implement services for crypto+drm HALs"
TreeHugger Robot [Thu, 19 Jan 2017 07:01:59 +0000 (07:01 +0000)]
Merge "Implement services for crypto+drm HALs"

7 years agoMerge "DYNAMIC_SENSOR_META should be wake up sensor type"
Peng Xu [Thu, 19 Jan 2017 06:01:14 +0000 (06:01 +0000)]
Merge "DYNAMIC_SENSOR_META should be wake up sensor type"

7 years agoImplement services for crypto+drm HALs
Jeff Tinker [Fri, 16 Dec 2016 09:34:52 +0000 (01:34 -0800)]
Implement services for crypto+drm HALs

Test: service runs, basic gtests pass

bug:32815560
Change-Id: I9642f20d11805c56c46ddede64e776df5314f089

7 years agoMerge "consumerir HAL uses "default" service name"
TreeHugger Robot [Thu, 19 Jan 2017 05:02:10 +0000 (05:02 +0000)]
Merge "consumerir HAL uses "default" service name"

7 years agoReplace ICryptoPlugin's detailed error message
Jeff Tinker [Thu, 12 Jan 2017 17:22:18 +0000 (09:22 -0800)]
Replace ICryptoPlugin's detailed error message

It had been removed since it didn't appear to be needed,
but was found to be necessary for functionality.

Test: gtests pass

Change-Id: Ib716a04218e8d5c81f5d7889a53dfa17beccecef
related-to-bug: 32815560

7 years agoMerge "Ran update-makefiles.sh."
Steven Moreland [Thu, 19 Jan 2017 03:32:24 +0000 (03:32 +0000)]
Merge "Ran update-makefiles.sh."

7 years agoMerge "Add boot profiling tests."
TreeHugger Robot [Thu, 19 Jan 2017 02:29:14 +0000 (02:29 +0000)]
Merge "Add boot profiling tests."

7 years agoMerge "add target-side profiling test for multimedia HIDL HALs"
Keun Soo Yim [Thu, 19 Jan 2017 02:25:34 +0000 (02:25 +0000)]
Merge "add target-side profiling test for multimedia HIDL HALs"

7 years agoRan update-makefiles.sh.
Steven Moreland [Wed, 18 Jan 2017 20:13:38 +0000 (12:13 -0800)]
Ran update-makefiles.sh.

GNSS/Fingerprint/Graphics have all gotten out of sync.

Bug: 34397031
Test: compiles
Change-Id: Ie0a081a4574fd617d5d97ca30ba879f5284efd64

7 years agoDYNAMIC_SENSOR_META should be wake up sensor type
Peng Xu [Thu, 19 Jan 2017 01:49:24 +0000 (17:49 -0800)]
DYNAMIC_SENSOR_META should be wake up sensor type

This change is done in AOSP hardware/libhardware and have to be manually
merged into hardware/interfaces after comments are moved to HIDL.

Test: comment change

Change-Id: I8dd5abd0c03eec7ef6bfef107b4b04404144627e

7 years agoNfc HAL uses "default" service name am: 3b06b22ed4 am: 1d51e903f6 am: 636a0a646e
Chris Phoenix [Thu, 19 Jan 2017 01:41:03 +0000 (01:41 +0000)]
Nfc HAL uses "default" service name am: 3b06b22ed4 am: 1d51e903f6 am: 636a0a646e
am: 2b731c6a78

Change-Id: I2f541e753653080390a5393e9df4c1f2451d8d3a

7 years agoNfc HAL uses "default" service name am: 3b06b22ed4 am: 1d51e903f6
Chris Phoenix [Thu, 19 Jan 2017 01:34:00 +0000 (01:34 +0000)]
Nfc HAL uses "default" service name am: 3b06b22ed4 am: 1d51e903f6
am: 636a0a646e

Change-Id: Idc2fbabc2ffd05526344ffdf69889249ba2617ff

7 years agoNfc HAL uses "default" service name am: 3b06b22ed4
Chris Phoenix [Thu, 19 Jan 2017 01:31:59 +0000 (01:31 +0000)]
Nfc HAL uses "default" service name am: 3b06b22ed4
am: 1d51e903f6

Change-Id: Ib0000338ba5b35b1784776ae147c44264f0d98e9

7 years agoNfc HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 01:29:59 +0000 (01:29 +0000)]
Nfc HAL uses "default" service name
am: 3b06b22ed4

Change-Id: Ia826e0e8f01766f2a1395ba742f798b42af99b23

7 years agoconsumerir HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 01:13:17 +0000 (17:13 -0800)]
consumerir HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: I1b3b021aaa98ce99560126ddd277caa427ddf151

7 years agoAdd boot profiling tests.
Ryan Campbell [Wed, 18 Jan 2017 16:37:36 +0000 (08:37 -0800)]
Add boot profiling tests.

Create boot profiling tests.

Bug: 34177792
Test: make vts, run vts -m HalBootHidlTargetProfilingTest
Change-Id: I65f85e9f4681323187fc263cbf93bd8cc2f29b9b

7 years agoMerge "[sensors] Default implementation and vts of direct report"
Peng Xu [Thu, 19 Jan 2017 00:56:04 +0000 (00:56 +0000)]
Merge "[sensors] Default implementation and vts of direct report"

7 years agoMerge "[sensors] Add parameter check to poll()"
Peng Xu [Thu, 19 Jan 2017 00:55:53 +0000 (00:55 +0000)]
Merge "[sensors] Add parameter check to poll()"

7 years agoNfc HAL uses "default" service name
Chris Phoenix [Wed, 18 Jan 2017 23:51:05 +0000 (15:51 -0800)]
Nfc HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Id7b76e1df98e1ecacb530a1b5fec76bf14ba6eb7

7 years agoMerge "Add soundtrigger's driver/profiler build targets."
Keun Soo Yim [Wed, 18 Jan 2017 23:31:09 +0000 (23:31 +0000)]
Merge "Add soundtrigger's driver/profiler build targets."

7 years agoadd target-side profiling test for multimedia HIDL HALs
Keun Soo Yim [Wed, 4 Jan 2017 23:46:25 +0000 (15:46 -0800)]
add target-side profiling test for multimedia HIDL HALs

Test: mma
Change-Id: I14aeb000e2a17381c28ea2115d67a7e8eb84e375

7 years agoAdd soundtrigger's driver/profiler build targets.
Keun Soo Yim [Wed, 18 Jan 2017 22:02:15 +0000 (14:02 -0800)]
Add soundtrigger's driver/profiler build targets.

results of running update-makefiles.sh

Test: mma
Bug: 34178561
Change-Id: I317a968571104deabce6b1c73ad3e50786659957

7 years agoMerge "Bluetooth HAL uses "default" service name" am: 742c4db343 am: df335ff2d1...
Andre Eisenbach [Wed, 18 Jan 2017 22:54:24 +0000 (22:54 +0000)]
Merge "Bluetooth  HAL uses "default" service name" am: 742c4db343 am: df335ff2d1 am: d7eeed3d8d
am: ea617172c2

Change-Id: I2f163cb0a6684f6dd4a90369265684b81e261976

7 years agoMerge "supplicant(vts): Add gtest framework" am: ae548da7d4 am: f913bff35f am: dd010e40c4
Roshan Pius [Wed, 18 Jan 2017 22:54:15 +0000 (22:54 +0000)]
Merge "supplicant(vts): Add gtest framework" am: ae548da7d4 am: f913bff35f am: dd010e40c4
am: 3ec4709239

Change-Id: Idf1d0f89443cb20623cede2720b5e5ca1835da40

7 years agoMerge "Adding all nfc vts related things back." am: 42e5d322af am: dea82a2d4f am...
Steven Moreland [Wed, 18 Jan 2017 22:54:05 +0000 (22:54 +0000)]
Merge "Adding all nfc vts related things back." am: 42e5d322af am: dea82a2d4f am: b4b7d62c0b
am: 6aae3d2d31  -s ours

Change-Id: I4e4a7bb3117d06429d0ca9a94e227134c71ed5f2

7 years agobluetooth: Add initialization completed callback am: 9041d97812 am: 023d49adfd am...
Andre Eisenbach [Wed, 18 Jan 2017 22:53:55 +0000 (22:53 +0000)]
bluetooth: Add initialization completed callback am: 9041d97812 am: 023d49adfd am: e0788953ac
am: 28fcf1a371

Change-Id: I3e120c2fcba338522db738c7725155342ba06fcf

7 years ago[sensors] Default implementation and vts of direct report
Peng Xu [Tue, 10 Jan 2017 03:12:42 +0000 (19:12 -0800)]
[sensors] Default implementation and vts of direct report

Added support for newly added HAL function for sensor event direct
report feature, replace dummy implementation with funtional ones for
the following:

  * registerDirectChannel
  * unregisterDirectChannel
  * configDirectReport

Added a vts test case for direct report.

Added new offset definition to types.hal. This will not affect
existing client/calling code.

Bug: 30985702
Bug: 32022776

Test: vts pass

Change-Id: Ie5e3cddd7c37664e8c59d69cf70aaa1310fd3f58

7 years agoMerge "Bluetooth HAL uses "default" service name" am: 742c4db343 am: df335ff2d1
Andre Eisenbach [Wed, 18 Jan 2017 21:53:24 +0000 (21:53 +0000)]
Merge "Bluetooth  HAL uses "default" service name" am: 742c4db343 am: df335ff2d1
am: d7eeed3d8d

Change-Id: I88c33f29318ec58c6a9686c8f941acc881f58d90

7 years agoMerge "supplicant(vts): Add gtest framework" am: ae548da7d4 am: f913bff35f
Roshan Pius [Wed, 18 Jan 2017 21:53:16 +0000 (21:53 +0000)]
Merge "supplicant(vts): Add gtest framework" am: ae548da7d4 am: f913bff35f
am: dd010e40c4

Change-Id: I89f145f6cd43ba882a33d0845dc8bb66edd9a109

7 years agoMerge "Bluetooth HAL uses "default" service name" am: 742c4db343
Andre Eisenbach [Wed, 18 Jan 2017 21:50:53 +0000 (21:50 +0000)]
Merge "Bluetooth  HAL uses "default" service name" am: 742c4db343
am: df335ff2d1

Change-Id: Ie4463c29ccfac02d0535af75cdde0dc63c4ce54f

7 years agoMerge "supplicant(vts): Add gtest framework" am: ae548da7d4
Roshan Pius [Wed, 18 Jan 2017 21:50:44 +0000 (21:50 +0000)]
Merge "supplicant(vts): Add gtest framework" am: ae548da7d4
am: f913bff35f

Change-Id: Ia5e7e3d3180ebda1590d8450418769f663d1a1b7

7 years agoMerge "Bluetooth HAL uses "default" service name"
Andre Eisenbach [Wed, 18 Jan 2017 21:48:54 +0000 (21:48 +0000)]
Merge "Bluetooth  HAL uses "default" service name"
am: 742c4db343

Change-Id: Ia952591516474e0b0899e5043ccfb3f9ce5520af

7 years agoMerge "supplicant(vts): Add gtest framework"
Roshan Pius [Wed, 18 Jan 2017 21:48:44 +0000 (21:48 +0000)]
Merge "supplicant(vts): Add gtest framework"
am: ae548da7d4

Change-Id: I6f64a7c308e2a36991dc60d71722c49f7f6fc635

7 years agoMerge "Bluetooth HAL uses "default" service name"
Andre Eisenbach [Wed, 18 Jan 2017 21:48:00 +0000 (21:48 +0000)]
Merge "Bluetooth  HAL uses "default" service name"

7 years agoMerge "supplicant(vts): Add gtest framework"
Treehugger Robot [Wed, 18 Jan 2017 21:44:50 +0000 (21:44 +0000)]
Merge "supplicant(vts): Add gtest framework"

7 years agoMerge "Adding all nfc vts related things back." am: 42e5d322af am: dea82a2d4f
Steven Moreland [Wed, 18 Jan 2017 21:37:43 +0000 (21:37 +0000)]
Merge "Adding all nfc vts related things back." am: 42e5d322af am: dea82a2d4f
am: b4b7d62c0b

Change-Id: Ib4973a85bd0ae73cb9d2512ab9e210ca919305f2

7 years agoMerge "Adding all nfc vts related things back." am: 42e5d322af
Steven Moreland [Wed, 18 Jan 2017 21:36:14 +0000 (21:36 +0000)]
Merge "Adding all nfc vts related things back." am: 42e5d322af
am: dea82a2d4f

Change-Id: Ia0cb9f018e16523ceda39f4475f395e37f92e1f6

7 years agoMerge "Adding all nfc vts related things back."
Steven Moreland [Wed, 18 Jan 2017 21:34:14 +0000 (21:34 +0000)]
Merge "Adding all nfc vts related things back."
am: 42e5d322af

Change-Id: I9f08cea7cef1bb317f7fe4b8913e317f3770b892

7 years agoBluetooth HAL uses "default" service name
Chris Phoenix [Wed, 18 Jan 2017 06:47:52 +0000 (22:47 -0800)]
Bluetooth  HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

In support of b/33844934

Change-Id: Icc006a71b41bcd03fe4a04ee92503e76ff07cd77

7 years agoMerge "Adding all nfc vts related things back."
Steven Moreland [Wed, 18 Jan 2017 21:29:11 +0000 (21:29 +0000)]
Merge "Adding all nfc vts related things back."

7 years ago[sensors] Add parameter check to poll()
Peng Xu [Mon, 16 Jan 2017 11:10:40 +0000 (03:10 -0800)]
[sensors] Add parameter check to poll()

Check maxCount parameter so that it will not allocate overly large
amount of memory if input parameter is bad.

Bug: 32953589
Test: build and pass vts
Change-Id: Ia19e0315ab1623b8b6580889c1e058a19e6c9670

7 years agoMerge changes from topic 'nfc-vts-split'
TreeHugger Robot [Wed, 18 Jan 2017 21:24:33 +0000 (21:24 +0000)]
Merge changes from topic 'nfc-vts-split'

* changes:
  Adding all nfc vts related things back.
  Remove all vts nfc related things.

7 years agobluetooth: Add initialization completed callback am: 9041d97812 am: 023d49adfd
Andre Eisenbach [Wed, 18 Jan 2017 21:21:42 +0000 (21:21 +0000)]
bluetooth: Add initialization completed callback am: 9041d97812 am: 023d49adfd
am: e0788953ac

Change-Id: I6ddc6af17b25f2d1e2cad9d4374a98469c34c345

7 years agobluetooth: Add initialization completed callback am: 9041d97812
Andre Eisenbach [Wed, 18 Jan 2017 21:19:42 +0000 (21:19 +0000)]
bluetooth: Add initialization completed callback am: 9041d97812
am: 023d49adfd

Change-Id: I076f9ce654acd0e392508c8ff09e9f18f369595e

7 years agobluetooth: Add initialization completed callback
Andre Eisenbach [Wed, 18 Jan 2017 21:17:42 +0000 (21:17 +0000)]
bluetooth: Add initialization completed callback
am: 9041d97812

Change-Id: Ic8a79944bd2d5f24e1800246132cf297b53e7879

7 years agoMerge changes from topics 'cam-hidl-fence', 'camera-hidl-bufId'
Yin-Chia Yeh [Wed, 18 Jan 2017 20:35:35 +0000 (20:35 +0000)]
Merge changes from topics 'cam-hidl-fence', 'camera-hidl-bufId'

* changes:
  Camera: make fence import agnostic to hidl transport
  Camera: add bufferId field to StreamBuffer

7 years agosupplicant(vts): Add gtest framework
Roshan Pius [Fri, 16 Dec 2016 16:39:23 +0000 (08:39 -0800)]
supplicant(vts): Add gtest framework

Bug: 33457575
Test: adb push
out/target/product/angler/data/nativetest/supplicant_hidl_test/supplicant_hidl_test
/data/ &&  adb shell /data/supplicant_hidl_test
Change-Id: I8b560483166822a33b8d81433178fdbc6077ec11

7 years agobluetooth: Add initialization completed callback
Andre Eisenbach [Wed, 18 Jan 2017 02:23:12 +0000 (18:23 -0800)]
bluetooth: Add initialization completed callback

Test: bluetooth_hidl_hal_test
Bug: 31972505
Change-Id: I64c19a7fe7299079c5daf74e7b238b0d71d65db2

7 years agoAdding all nfc vts related things back.
Steven Moreland [Wed, 18 Jan 2017 19:01:01 +0000 (11:01 -0800)]
Adding all nfc vts related things back.

Test: none
Merged-In: I84a42ae27d36a5479f2ca859849bb1b4536bdbad
Change-Id: I84a42ae27d36a5479f2ca859849bb1b4536bdbad

7 years agoAdding all nfc vts related things back.
Steven Moreland [Wed, 18 Jan 2017 19:01:01 +0000 (11:01 -0800)]
Adding all nfc vts related things back.

Test: none
Change-Id: I84a42ae27d36a5479f2ca859849bb1b4536bdbad

7 years agoRemove all vts nfc related things.
Steven Moreland [Wed, 18 Jan 2017 18:59:36 +0000 (10:59 -0800)]
Remove all vts nfc related things.

These are immediately added back. This is to split the CL into two
pieces so that only the currently public piece can be moved to aosp.

Test: none
Change-Id: If1ee4a4b4b2d276daf922831a6b919b4c7a236bb

7 years agoMerge "contexthub: Explicitly pass nanoapp binary header data"
Brian Duddie [Wed, 18 Jan 2017 17:16:02 +0000 (17:16 +0000)]
Merge "contexthub: Explicitly pass nanoapp binary header data"

7 years agoMerge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4 am: b6eeb57609 am...
Roshan Pius [Wed, 18 Jan 2017 16:41:14 +0000 (16:41 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4 am: b6eeb57609 am: b252cbc915
am: 033a7f0d26

Change-Id: I0ced9f8cbd94c0e06962f043e74fc7841f1915c1

7 years agoMerge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4 am: b6eeb57609
Roshan Pius [Wed, 18 Jan 2017 16:37:25 +0000 (16:37 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4 am: b6eeb57609
am: b252cbc915

Change-Id: I12889a9ed29d4e5be9ab523f11926fe77e753e2f

7 years agoMerge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4
Roshan Pius [Wed, 18 Jan 2017 15:52:07 +0000 (15:52 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload" am: ab16b319f4
am: b6eeb57609

Change-Id: I9935aa3b423acb24dbb5075d4ee0547aa495b872

7 years agoMerge "wifi: Add capabilitiy flag for ND offload"
Roshan Pius [Wed, 18 Jan 2017 15:45:46 +0000 (15:45 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload"
am: ab16b319f4

Change-Id: I8719aefe23ba1c21029107ff4b75f52c4c63aacf

7 years agoMerge "wifi: Add capabilitiy flag for ND offload"
Roshan Pius [Wed, 18 Jan 2017 15:33:47 +0000 (15:33 +0000)]
Merge "wifi: Add capabilitiy flag for ND offload"

7 years agoMerge "Fix log message using undeclared variable"
Daniel Nicoara [Wed, 18 Jan 2017 15:11:54 +0000 (15:11 +0000)]
Merge "Fix log message using undeclared variable"

7 years agoMerge "thermal: add getUndefinedTemperature function."
TreeHugger Robot [Wed, 18 Jan 2017 14:56:32 +0000 (14:56 +0000)]
Merge "thermal: add getUndefinedTemperature function."

7 years agothermal: add getUndefinedTemperature function.
Polina Bondarenko [Thu, 12 Jan 2017 21:32:57 +0000 (22:32 +0100)]
thermal: add getUndefinedTemperature function.

Bug: 34107726
Test: cts, vts
Change-Id: I8a3794158fbc0c9518a26f4616263aa464b43924

7 years agoMerge "Update profiling code for host-side tests."
TreeHugger Robot [Wed, 18 Jan 2017 09:52:04 +0000 (09:52 +0000)]
Merge "Update profiling code for host-side tests."

7 years agoMerge "supplicant(interface): Add interface for WPS" am: 342658139f am: 8499d6b3e0...
Roshan Pius [Wed, 18 Jan 2017 06:09:09 +0000 (06:09 +0000)]
Merge "supplicant(interface): Add interface for WPS" am: 342658139f am: 8499d6b3e0 am: 743687e99f
am: cba87abd63

Change-Id: I8f6acc762b6c16e9541f8e058d6907b835e89a94

7 years agoMerge "supplicant(interface): Add interface for WPS" am: 342658139f am: 8499d6b3e0
Roshan Pius [Wed, 18 Jan 2017 06:06:38 +0000 (06:06 +0000)]
Merge "supplicant(interface): Add interface for WPS" am: 342658139f am: 8499d6b3e0
am: 743687e99f

Change-Id: Ie169602e2d1950288453823d4abe9b2612ce627a

7 years agoMerge "supplicant(interface): Add interface for WPS" am: 342658139f
Roshan Pius [Wed, 18 Jan 2017 06:04:08 +0000 (06:04 +0000)]
Merge "supplicant(interface): Add interface for WPS" am: 342658139f
am: 8499d6b3e0

Change-Id: I26a48d05041199d6e78d40881fb10fae12233980

7 years agoMerge "supplicant(interface): Add interface for WPS"
Roshan Pius [Wed, 18 Jan 2017 06:01:38 +0000 (06:01 +0000)]
Merge "supplicant(interface): Add interface for WPS"
am: 342658139f

Change-Id: Idc1c9debdf176a842a5e83d55acaa1f4415e8bc3

7 years agoMerge "supplicant(interface): Add interface for WPS"
Treehugger Robot [Wed, 18 Jan 2017 05:58:36 +0000 (05:58 +0000)]
Merge "supplicant(interface): Add interface for WPS"

7 years agoFix LightHidlTargetProfilingTest
Zhuoyao Zhang [Wed, 18 Jan 2017 02:30:04 +0000 (18:30 -0800)]
Fix LightHidlTargetProfilingTest

* Remove test-configure-path as no configure file is available.

Bug:34364437
Test: run vts -m Remove LightHidlTargetProfilingTest

Change-Id: I5fa6876d93bb0f2ee33c35d07bbe6ebe4ac5603e

7 years agoUpdate profiling code for host-side tests.
Zhuoyao Zhang [Wed, 18 Jan 2017 02:07:23 +0000 (18:07 -0800)]
Update profiling code for host-side tests.

* Parse profiling data for each test case.
* Merge the profiling data for each test case at the end of test
  and upload the profiling info to web.

Bug:34226555
Test: run vts -m VibratorHidlProfilingTest

Change-Id: I9e13eada8e7db338a29c6943868d12e76844e2c4

7 years agoCamera: make fence import agnostic to hidl transport
Yin-Chia Yeh [Tue, 10 Jan 2017 21:15:38 +0000 (13:15 -0800)]
Camera: make fence import agnostic to hidl transport

This will introduce one more FD dup/close in passthrough mode, but
we have no other choice as camera server will not know whether
it is running in passthrough or binderized mode.

Test: running Camera2 API CTS
Bug: 30985004
Change-Id: I407d54a51c51fc09477dfb6236ab1b53bb1e0a21

7 years agoCamera: add bufferId field to StreamBuffer
Yin-Chia Yeh [Mon, 9 Jan 2017 23:21:11 +0000 (15:21 -0800)]
Camera: add bufferId field to StreamBuffer

This gives each buffer a unique identifier and allow camera server
to only send one unique to HAL process once.

Bug: 30985004
Change-Id: I6aff498c5667dd71fd70b3881fd60b0ecc366e0a

7 years agoRemove empty Android.mk files for 3 test projects
Yuexi Ma [Sat, 14 Jan 2017 04:00:29 +0000 (20:00 -0800)]
Remove empty Android.mk files for 3 test projects

Removing empty intermediate Android.mk files for vehicle, tv cec, and tv input vts test projects.
Replaced with direct pointing to the Android.mk file under functional/vts/testcases/hal

Test: make vts
Change-Id: I64a0a7c236f2ef6a2019cbde3b93ac2324df3752

7 years agocontexthub: Explicitly pass nanoapp binary header data
Brian Duddie [Thu, 12 Jan 2017 22:47:58 +0000 (14:47 -0800)]
contexthub: Explicitly pass nanoapp binary header data

Parse the nanoapp binary header in the framework and pass the relevant
data to the HAL explicitly in the NanoAppBinary structure. Note that not
all fields from the header are carried forward into NanoAppBinary, as
they are either implied by the HAL API (version, magic), or inherent in
the implementation-specific data (hwHubType), or unused and will only be
added via a future HAL version bump (second reserved field).

Also, convert the flags field in struct MemRange to a bitmask, which is
the proper representation for its use.

Bug: 34182159
Test: run hello world context hub GTS test
Change-Id: I13da9883b851e978d760548ec4265094ce81510a

7 years agoMerge "Unset Vertical Accuracy, Speed Accruacy and Bearing Accuracy fields as some...
Mohammed Khider [Wed, 18 Jan 2017 00:04:00 +0000 (00:04 +0000)]
Merge "Unset Vertical Accuracy, Speed Accruacy and Bearing Accuracy fields as some chipsets set them in pre-Android-O devices. Test: Existing unit tests still pass."

7 years agoMerge "Add build rule of driver/profier for graphics allocator hal."
Zhuoyao Zhang [Tue, 17 Jan 2017 23:35:44 +0000 (23:35 +0000)]
Merge "Add build rule of driver/profier for graphics allocator hal."

7 years agoMerge "Stub out VTS testing for OBD2 sensors"
TreeHugger Robot [Tue, 17 Jan 2017 23:30:22 +0000 (23:30 +0000)]
Merge "Stub out VTS testing for OBD2 sensors"

7 years agoMerge "Add test for type resolution." am: 5835d9ea59 am: 168bb896b7 am: 6cc9f50bd3
Yifan Hong [Tue, 17 Jan 2017 21:12:01 +0000 (21:12 +0000)]
Merge "Add test for type resolution." am: 5835d9ea59 am: 168bb896b7 am: 6cc9f50bd3
am: 63a36d7b62

Change-Id: I0477b4dc3e782752a556003ddaced227d2271b06

7 years agoMerge "Add test for type resolution." am: 5835d9ea59 am: 168bb896b7
Yifan Hong [Tue, 17 Jan 2017 21:10:01 +0000 (21:10 +0000)]
Merge "Add test for type resolution." am: 5835d9ea59 am: 168bb896b7
am: 6cc9f50bd3

Change-Id: I3b0b96e0b46e3dda87c1441146ece36376eec092

7 years agoMerge "Add test for type resolution." am: 5835d9ea59
Yifan Hong [Tue, 17 Jan 2017 21:07:32 +0000 (21:07 +0000)]
Merge "Add test for type resolution." am: 5835d9ea59
am: 168bb896b7

Change-Id: I3d4b9a1da6678341d09da06e1e1ae13c2adae11c

7 years agoMerge "Add test for type resolution."
Yifan Hong [Tue, 17 Jan 2017 21:05:00 +0000 (21:05 +0000)]
Merge "Add test for type resolution."
am: 5835d9ea59

Change-Id: I5e267d4f2e05c1441d5c5edcb5d635bc9b7b79b0

7 years agoMerge "Add test for type resolution."
Yifan Hong [Tue, 17 Jan 2017 21:03:04 +0000 (21:03 +0000)]
Merge "Add test for type resolution."

7 years agowifi: Add capabilitiy flag for ND offload
Roshan Pius [Tue, 17 Jan 2017 20:58:05 +0000 (12:58 -0800)]
wifi: Add capabilitiy flag for ND offload

Bug: 34224734
Test: Compiles
Change-Id: If4e6303fdff792a9dd576551fd84a741d8183798

7 years agohave hal2.1 register as the fingerprint service
Jim Miller [Fri, 16 Dec 2016 03:42:19 +0000 (19:42 -0800)]
have hal2.1 register as the fingerprint service

Test: fingerprint's should be add-able.
Bug: 33199080
Change-Id: I30dd26c484848163ad63ee9bbd45f1d1ae869a14

7 years agoStub out VTS testing for OBD2 sensors
Enrico Granata [Wed, 11 Jan 2017 19:47:37 +0000 (11:47 -0800)]
Stub out VTS testing for OBD2 sensors

This commit adds support to VHAL for returning a live and a freeze OBD2 frame filled in with default placeholder values
It also adds a VTS test to check for OBD2 support. Doing anything more interesting is currently blocked.

Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO
Change-Id: I4aad71f7bb65a690841e74d06fefc5fb2076ce5e

7 years agoMerge "Fix HalPowerHidlTargetProfilingTest"
Zhuoyao Zhang [Tue, 17 Jan 2017 17:51:45 +0000 (17:51 +0000)]
Merge "Fix HalPowerHidlTargetProfilingTest"

7 years agosupplicant(interface): Add interface for WPS
Roshan Pius [Tue, 10 Jan 2017 22:10:19 +0000 (14:10 -0800)]
supplicant(interface): Add interface for WPS

Add the methods/callbacks required for WPS functionality through
wpa_supplicant.

Bug: 34198758
Test: Compiles
Change-Id: Iff1450621a4b039307ad6098f98326c35e53d4c6

7 years agoMerge "Testing struct that has vector of other struct" am: 0bb0ba5f79 am: a69c3034fa...
Martijn Coenen [Tue, 17 Jan 2017 06:50:54 +0000 (06:50 +0000)]
Merge "Testing struct that has vector of other struct" am: 0bb0ba5f79 am: a69c3034fa am: dabf160073
am: 98d537ec95

Change-Id: Ia384675237edd335e117991607e1a39f6f46dd74

7 years agoFix HalPowerHidlTargetProfilingTest
Zhuoyao Zhang [Mon, 16 Jan 2017 20:11:16 +0000 (12:11 -0800)]
Fix HalPowerHidlTargetProfilingTest

* Remove test-configure-path as no configure file is available.

Test: run vts -m HalPowerHidlTargetProfilingTest
Change-Id: I49f10b5c82a4e0cef3bb58d16741ca850a79e677

7 years agoMerge "Testing struct that has vector of other struct" am: 0bb0ba5f79 am: a69c3034fa
Martijn Coenen [Mon, 16 Jan 2017 15:06:04 +0000 (15:06 +0000)]
Merge "Testing struct that has vector of other struct" am: 0bb0ba5f79 am: a69c3034fa
am: dabf160073

Change-Id: I111b1a26e04ed0ebee5b2eed481d054de64b132d

7 years agoMerge "Testing struct that has vector of other struct" am: 0bb0ba5f79
Martijn Coenen [Mon, 16 Jan 2017 15:01:34 +0000 (15:01 +0000)]
Merge "Testing struct that has vector of other struct" am: 0bb0ba5f79
am: a69c3034fa

Change-Id: I572f7e9f9fd84373390a82e7180814291cdad5e5

7 years agoMerge "Testing struct that has vector of other struct"
Martijn Coenen [Mon, 16 Jan 2017 14:56:04 +0000 (14:56 +0000)]
Merge "Testing struct that has vector of other struct"
am: 0bb0ba5f79

Change-Id: I7c3143bd046a98c4a2e13706bd1af43a8d0ab164

7 years agoMerge "Testing struct that has vector of other struct"
Martijn Coenen [Mon, 16 Jan 2017 14:48:09 +0000 (14:48 +0000)]
Merge "Testing struct that has vector of other struct"

7 years agoUnset Vertical Accuracy, Speed Accruacy and Bearing Accuracy fields as some chipsets
gomo [Mon, 16 Jan 2017 04:08:59 +0000 (20:08 -0800)]
Unset Vertical Accuracy, Speed Accruacy and Bearing Accuracy fields as some chipsets
set them in pre-Android-O devices.
Test: Existing unit tests still pass.

Change-Id: I542a2d82d16c1017859ad08060f30a0187664ffd

7 years agoMerge "GNSS O Features according to go/o-gps-hal"
TreeHugger Robot [Mon, 16 Jan 2017 03:38:56 +0000 (03:38 +0000)]
Merge "GNSS O Features according to go/o-gps-hal"

7 years agoGNSS O Features according to go/o-gps-hal
gomo [Wed, 11 Jan 2017 22:04:21 +0000 (14:04 -0800)]
GNSS O Features according to go/o-gps-hal

Added "Tow Known" as a possible gnss measurement state. As well added Automatic Gain Control (AGC)
to allow jammer detection. Also added the GNSS carrier frequeny to SV status. Also adedd vertical
GPS position uncertainty, speed uncertainty and bearing uncertainty. Also propagate locaton new
fields to geofence engine.
Test: Existing unit tests still pass.

Change-Id: I26784a17e82c044002395e1929f8862cc9de63cb

7 years agoMerge "soundtrigger: initialize mHwDevice member in constructor"
TreeHugger Robot [Sun, 15 Jan 2017 18:55:57 +0000 (18:55 +0000)]
Merge "soundtrigger: initialize mHwDevice member in constructor"

7 years agoMerge "Add gralloc1 flags for direct mode sensors and SSBO/UBO buffers."
Peng Xu [Sat, 14 Jan 2017 09:48:16 +0000 (09:48 +0000)]
Merge "Add gralloc1 flags for direct mode sensors and SSBO/UBO buffers."

7 years agoMerge "[sensors] Minor tuning of hal definition"
Peng Xu [Sat, 14 Jan 2017 08:50:53 +0000 (08:50 +0000)]
Merge "[sensors] Minor tuning of hal definition"

7 years agoMerge "Add a new method to trigger a blocking read." am: 31265c5312 am: ba6c8445b1...
Hridya Valsaraju [Sat, 14 Jan 2017 08:26:42 +0000 (08:26 +0000)]
Merge "Add a new method to trigger a blocking read." am: 31265c5312 am: ba6c8445b1 am: 134cb728f7
am: 5cb077fac0

Change-Id: Iff0bac56b002082e1f037ccd1b2ff5650de90902