android/platform-hardware-interfaces.git
2 years agoMerge "Emergency Function HAL (continued)" android-o-mr1-iot-release-1.0.5
Shuo Qian [Wed, 3 Oct 2018 01:36:17 +0000 (01:36 +0000)]
Merge "Emergency Function HAL (continued)"

2 years agoMerge "health VTS: split Properties test"
Yifan Hong [Tue, 2 Oct 2018 23:37:43 +0000 (23:37 +0000)]
Merge "health VTS: split Properties test"

2 years agohealth VTS: split Properties test
Yifan Hong [Tue, 2 Oct 2018 21:52:02 +0000 (14:52 -0700)]
health VTS: split Properties test

... into multiple test cases.
Test: run test

Change-Id: I2a03a7ab01d2918b746e06f55c2ee6d733ab4021

2 years agohealth: registerCallback() and getHealthInfo() does not notify all callbacks
Yifan Hong [Tue, 2 Oct 2018 21:11:35 +0000 (14:11 -0700)]
health: registerCallback() and getHealthInfo() does not notify all callbacks

registerCallback() and getHealthInfo() unintentionally broadcast
health info to all callbacks, which has a performance impact.

* registerCallback() still invokes the new callback immediately
* getHealthInfo() does not call any callbacks at all.

Test: VTS test call getHealthInfo does not invoke update()
Bug: 117167903
Change-Id: Ida99fdd73831e747fbf2d65089c7c0e7661fe7c4

2 years agohealth: use recursive_mutex.
Yifan Hong [Tue, 2 Oct 2018 21:06:51 +0000 (14:06 -0700)]
health: use recursive_mutex.

Need to use an reentrant lock.

Bug: 117167903
Test: vts
Change-Id: I25a366e06ed9d983823f7276668b7f45ddcf1c2b

2 years agoSkip hal v1 check after p on low ram devices
Ng Zhi An [Tue, 2 Oct 2018 21:02:09 +0000 (14:02 -0700)]
Skip hal v1 check after p on low ram devices
am: a0eb7e415c

Change-Id: I7e60e9faf24be23bf08ef65c5f0c074d4e7da2a4

2 years agoMerge "Revert "Set vendor: true for boot control HAL""
Hridya Valsaraju [Tue, 2 Oct 2018 20:43:12 +0000 (20:43 +0000)]
Merge "Revert "Set vendor: true for boot control HAL""

2 years agoRevert "Set vendor: true for boot control HAL"
Hridya Valsaraju [Tue, 2 Oct 2018 20:09:17 +0000 (20:09 +0000)]
Revert "Set vendor: true for boot control HAL"

This reverts commit f009da1bf51087cc33ae81101e3bf50df7683ecd.

Reason for revert: Breaking presubmit boot test on walleye

Change-Id: Ibeebb94b22cf81087b2ee60407a33e9d7e8a4d18

2 years agoSkip hal v1 check after p on low ram devices
Ng Zhi An [Thu, 27 Sep 2018 23:55:47 +0000 (16:55 -0700)]
Skip hal v1 check after p on low ram devices

Bug: 116546417
Test: vts-tradefed run commandAndExit vts
-m VtsHalCameraProviderV2_4Target
-t VtsHalCameraProviderV2_4Target#CameraHidlTest.noHal1AfterP

Change-Id: I28782b560975b49e20d6b42d599d689f819a9383

2 years agoEmergency Function HAL (continued)
sqian [Wed, 19 Sep 2018 21:10:42 +0000 (14:10 -0700)]
Emergency Function HAL (continued)

- Add Emergency Number source for Emergency number, which is critical for
management and display priority.
- Remove solicited request for getting emergency number list.
- Rephrasing the documentations.

Test: Treehugger (will add VTS later)
Bug: 112657134
Change-Id: Idbfebf8d246de06fd91e8de89088f5cc2c70227b

2 years agoMerge "Initialize healthd_mode_ops in recovery default Health HAL impl."
Treehugger Robot [Tue, 2 Oct 2018 05:21:45 +0000 (05:21 +0000)]
Merge "Initialize healthd_mode_ops in recovery default Health HAL impl."

2 years agoMerge "Set vendor: true for boot control HAL"
Treehugger Robot [Tue, 2 Oct 2018 00:20:16 +0000 (00:20 +0000)]
Merge "Set vendor: true for boot control HAL"

2 years agoSet vendor: true for boot control HAL
Hridya Valsaraju [Mon, 1 Oct 2018 22:50:50 +0000 (15:50 -0700)]
Set vendor: true for boot control HAL

Test: make boot image and check if boot contol HAL implementation
is present in vendor and recovery.
Bug: 117072247

Change-Id: Id05563fc3b4bdf135bf7e1ae75d23f34a98845ab

2 years agoAdd noexcept to move constructors and assignment operators.
Chih-Hung Hsieh [Tue, 25 Sep 2018 19:01:51 +0000 (12:01 -0700)]
Add noexcept to move constructors and assignment operators.

Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: Ib50ced82d650737cf99a9757133119945a3409f3

2 years agoMerge "Allow more time to un-blacklist strongest satelite" into pie-vts-dev
WyattRiley [Mon, 1 Oct 2018 15:45:04 +0000 (08:45 -0700)]
Merge "Allow more time to un-blacklist strongest satelite" into pie-vts-dev
am: 23874c7ae9

Change-Id: I957af82082f7e3dbff01159740455c71b5aaddcb

2 years agoMerge "Allow more time to un-blacklist strongest satelite" into pie-vts-dev
Treehugger Robot [Mon, 1 Oct 2018 15:38:05 +0000 (15:38 +0000)]
Merge "Allow more time to un-blacklist strongest satelite" into pie-vts-dev

2 years agoInitialize healthd_mode_ops in recovery default Health HAL impl.
Hridya Valsaraju [Fri, 28 Sep 2018 17:44:02 +0000 (10:44 -0700)]
Initialize healthd_mode_ops in recovery default Health HAL impl.

This is required for correct functioning of getHealthInfo() API
in recovery since BatteryMonitor requires healthd_mode_ops to be
initialized to update battery properties.

Bug: 78793464
Test: fastboot getvar battery-voltage
Change-Id: I9ff77664cada22e4aa3668bfb7d28d5f1d45590b

2 years agoAdd command to check whether off-mode-charging is enabled.
Hridya Valsaraju [Thu, 27 Sep 2018 17:21:07 +0000 (10:21 -0700)]
Add command to check whether off-mode-charging is enabled.

Bug: 78793464
Bug: 79480454
Test: fastboot getvar off-mode-charge
Change-Id: I1bd4148ff3476acf110e4aa95a40084300608875
Merged-In: I1bd4148ff3476acf110e4aa95a40084300608875
(cherry picked from commit 3d76cf0d8e6abe52e459bb7bc741e58b34b9790d)

2 years agoAdd command to read fastboot variable 'variant'
Hridya Valsaraju [Wed, 26 Sep 2018 20:06:21 +0000 (13:06 -0700)]
Add command to read fastboot variable 'variant'

Bug: 79480454
Test: fastboot getvar variant
Change-Id: I04f588f09d03e121c066449b0a7223f51d2e59af
Merged-In: I04f588f09d03e121c066449b0a7223f51d2e59af
(cherry picked from commit 3f27a7b373305f98117607f159eeb3c4e1fe4f6f)

2 years agoAllow more time to un-blacklist strongest satelite
WyattRiley [Fri, 21 Sep 2018 21:33:31 +0000 (14:33 -0700)]
Allow more time to un-blacklist strongest satelite

Also fixes a few intermediate values and confusing
logging discovered during weak GPS signal testing.

Change-Id: I2d3c5113956132ef4b60e28653aacf89f1159d83
Fixes: 116170859
Test: Deep indoor fail and windowledge pass of VTS on
test phone, and logcat values check.

2 years agoAdd atrace HAL 1.0
Wei Wang [Fri, 21 Sep 2018 22:44:31 +0000 (15:44 -0700)]
Add atrace HAL 1.0

Bug: 111098596
Test: vts, atrace and systrace

(cherry picked from commit db895ad8da1008082521146eac3647907a56a2b1)

Change-Id: Iea4ee4bff7509031a6daaf7c9570d0583a59affa

2 years agoTest getActiveMicrophones API when mic is found on the device.
jiabin [Thu, 27 Sep 2018 18:39:22 +0000 (11:39 -0700)]
Test getActiveMicrophones API when mic is found on the device.
am: 497edcc026

Change-Id: I55a1ab98ef141b9834ec22491b31e09f581fca1a

2 years agoTest getActiveMicrophones API when mic is found on the device.
jiabin [Wed, 15 Aug 2018 23:57:54 +0000 (16:57 -0700)]
Test getActiveMicrophones API when mic is found on the device.

Before this patch the default microphone was required to have characteristics
although it is not always an attached device, thus its characteristics can not
be known by the HAL. Additionally, the HAL might not know the active
microphone info of a input stream if it has not been started yet.

This patch only tests microphones which characteristics are reported by the HAL
and start the input stream before requesting active microphones.

Bug: 109787938
Test: vts-tradefed run vts --module VtsHalAudioV4_0Target
Change-Id: If55bfc8210d4f9443d34951f717c6772b46dde04
Merged-In: If55bfc8210d4f9443d34951f717c6772b46dde04

2 years agoFixed minor comment typos in IKeymasterDevice.hal
Rob Barnes [Mon, 24 Sep 2018 16:35:29 +0000 (10:35 -0600)]
Fixed minor comment typos in IKeymasterDevice.hal

Test: 'make checkbuild' finished successfully.
Change-Id: I4ceb39475fff176bfcd57e10335aa1af64849739

2 years agoReland "Add command to pass oem commands to HAL"
Hridya Valsaraju [Fri, 21 Sep 2018 23:06:30 +0000 (16:06 -0700)]
Reland "Add command to pass oem commands to HAL"

Test: make

This reverts commit 2e880493d6a227b050dabc6caa294eea408338ca.
Change-Id: I7cdfa6a01b5d776659dd4e7595915574b341cd9c
Merged-In: I7cdfa6a01b5d776659dd4e7595915574b341cd9c
(cherry picked from commit 3c2443ec29984c7c003e8b21a26fc25ad519475d)

2 years agoMerge changes from topic "current-on-aosp"
Steven Moreland [Tue, 25 Sep 2018 17:49:56 +0000 (17:49 +0000)]
Merge changes from topic "current-on-aosp"

* changes:
  Add health filesystem HAL to compatibility matrix
  Update power hidl to version 1.3 in compatibility_matrix.current.xml.
  Add configstore@1.1 to current matrix.
  Add compatibility_matrix.current.xml for Android Q.

2 years agoRemove NNAPI 1.2 HAL hash
Miao Wang [Tue, 25 Sep 2018 01:01:44 +0000 (18:01 -0700)]
Remove NNAPI 1.2 HAL hash

The interface is not finalized yet, and so it isn't frozen.

Test: mm
Change-Id: Ib4925afe2c3230c8727b3122ab21780b2f22489c

2 years agoAdd health filesystem HAL to compatibility matrix
Yifan Hong [Thu, 9 Aug 2018 20:32:04 +0000 (13:32 -0700)]
Add health filesystem HAL to compatibility matrix

Test: no build errors
Bug: 111655771
Change-Id: I4cc6308f969840996560ac65143744d37cbf0b14
(cherry picked from commit 62ca53926e2af578fcca3ce649d621aec39971ec)
Merged-In: I4cc6308f969840996560ac65143744d37cbf0b14

2 years agoUpdate power hidl to version 1.3 in compatibility_matrix.current.xml.
Peiyong Lin [Thu, 21 Jun 2018 21:02:13 +0000 (14:02 -0700)]
Update power hidl to version 1.3 in compatibility_matrix.current.xml.

BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I397a30044850ffa8d078dce7ef201073ae65c940
(cherry picked from commit 9475cc240b11a120a7d0762aa63df362e0bcbf0d)
Merged-In: I397a30044850ffa8d078dce7ef201073ae65c940

2 years agoAdd configstore@1.1 to current matrix.
Steven Moreland [Wed, 23 May 2018 20:35:08 +0000 (13:35 -0700)]
Add configstore@1.1 to current matrix.

This was added late in P. Go ahead and require
configstore@1.1 since it is built from a universal source
for all devices as well.

Bug: 69691076
Test: N/A
Change-Id: I0203ecc2e70127c11f596896f71c869d12cd3973
(cherry picked from commit 74274cfbc61dc396c5588adf52ac557086a2134f)
Merged-In: I0203ecc2e70127c11f596896f71c869d12cd3973

2 years agoAdd compatibility_matrix.current.xml for Android Q.
Steven Moreland [Mon, 30 Apr 2018 20:02:02 +0000 (13:02 -0700)]
Add compatibility_matrix.current.xml for Android Q.

HAL development is starting for Andorid Q, so we need this.

Test: m compatibility_matrix.current.xml
Test: assemble_vintf (but b/78895849)
Test: boot a Pixel device after setting its target-level to 4
    and verify that the compatibility check passes, and the
    file is in the correct location (system/etc/vintf) and that
    the dependencies are setup properly.
Change-Id: I42426d0145a97c719092306abc4f7ce8fa2b51bd
(cherry picked from commit 2d2e2d5c05cd53572805a4cd1a1d6af893d05b5a)
Merged-In: I42426d0145a97c719092306abc4f7ce8fa2b51bd

2 years agoMerge "Don't use initializer_list as return type"
Treehugger Robot [Mon, 24 Sep 2018 21:24:33 +0000 (21:24 +0000)]
Merge "Don't use initializer_list as return type"

2 years agoSync docs with NeuralNetworks.h
Slava Shklyaev [Mon, 17 Sep 2018 11:03:42 +0000 (12:03 +0100)]
Sync docs with NeuralNetworks.h

Bug: 115855152
Test: none
Change-Id: I15b5207f3ffbea57a4c8313ce744a22ce72b402e

2 years agoMerge changes from topic "nnapisync_1.2"
Przemyslaw Szczepaniak [Mon, 24 Sep 2018 12:25:55 +0000 (12:25 +0000)]
Merge changes from topic "nnapisync_1.2"

* changes:
  Add VTS tests for NeuralNetworks v1.2
  Create NeuralNetworks HAL v1.2 for new OperationTypes

2 years agoMerge "Revert "Add command to pass oem commands to HAL""
Treehugger Robot [Sat, 22 Sep 2018 00:05:37 +0000 (00:05 +0000)]
Merge "Revert "Add command to pass oem commands to HAL""

2 years agoRevert "Add command to pass oem commands to HAL"
Hridya Valsaraju [Fri, 21 Sep 2018 22:38:57 +0000 (22:38 +0000)]
Revert "Add command to pass oem commands to HAL"

This reverts commit ddaa8ecb379479a3450c954161df33fda1348685.

Reason for revert: This needs to go to master first to prevent build breaks.

Change-Id: I6418f1ba5dab492dc11b8c24e5d83ea7257d9699

2 years agoDon't use initializer_list as return type
Yi Kong [Fri, 21 Sep 2018 22:30:45 +0000 (15:30 -0700)]
Don't use initializer_list as return type

The underlying array may be cleaned up once its lifetime has ended,
the initializer_list would become ill-formed. Return as std::vector
instead.

This fixes "-Wreturn-stack-address" (clang) / "-Winit-list-lifetime"
(gcc) warning.

Test: mma
Bug: 111998531
Change-Id: Ie5bb6bc3d0d7689744fd573c5683b22e6fb6b178

2 years agoMerge "health.storage: Add VTS test."
Yifan Hong [Fri, 21 Sep 2018 22:20:24 +0000 (22:20 +0000)]
Merge "health.storage: Add VTS test."

2 years agohealth.storage: Add VTS test.
Yifan Hong [Thu, 9 Aug 2018 00:51:10 +0000 (17:51 -0700)]
health.storage: Add VTS test.

Test: run test
Bug: 111655771
Change-Id: I353026bcf882fcdafa9986e4f60d5853abac7e54

2 years agoAdd VTS tests for NeuralNetworks v1.2
Slava Shklyaev [Wed, 12 Sep 2018 13:52:02 +0000 (14:52 +0100)]
Add VTS tests for NeuralNetworks v1.2

This is a copy the v1.1 tests since we don't have any new ops
implemented in v1.2 yet.

Bug: 114365802
Test: mm
Test: NNAPI VTS
Change-Id: Ida7525fcd3ae0fd6f88ff9591e06aba922bdae64
Merged-In: Ida7525fcd3ae0fd6f88ff9591e06aba922bdae64
(cherry-picked from 871be9477032e595f685e02f256b2909ea524fc0)

2 years agoCreate NeuralNetworks HAL v1.2 for new OperationTypes
Slava Shklyaev [Fri, 7 Sep 2018 14:27:24 +0000 (15:27 +0100)]
Create NeuralNetworks HAL v1.2 for new OperationTypes

Bug: 114365802
Test: mm
Change-Id: I86b9261729a64d02ed30dc822a0226de11473ac8
Merged-In: I86b9261729a64d02ed30dc822a0226de11473ac8
(cherry-picked from 060a9acb3b982a51b4ae79f9456b3589229ba805)

2 years agohealth.storage: Add default implementation.
Yifan Hong [Thu, 9 Aug 2018 00:50:48 +0000 (17:50 -0700)]
health.storage: Add default implementation.

Test: lshal show default implementation when installed
Test: `lshal debug` (read and write successfully)
Test: `adb shell sm idle-maint run`
Bug: 111655771
Change-Id: Ibb09836b99310b6bc21e87be9c0177175efa29df

2 years agoMerge "Radio HAL: Add VoPS network support"
Amruth Ramachandran [Thu, 20 Sep 2018 18:11:22 +0000 (18:11 +0000)]
Merge "Radio HAL: Add VoPS network support"

2 years agoAudio VTS: Workaround async HIDL destructor by sleeping
Kevin Rocard [Thu, 20 Sep 2018 17:48:42 +0000 (10:48 -0700)]
Audio VTS: Workaround async HIDL destructor by sleeping
am: d87a288e82

Change-Id: I6af4b725b9917d99c450287ba4bfce864371a104

2 years agoMerge "health.filesystem::IFileSystem -> health.storage::IStorage"
Yifan Hong [Thu, 20 Sep 2018 17:26:53 +0000 (17:26 +0000)]
Merge "health.filesystem::IFileSystem -> health.storage::IStorage"

2 years agoRadio HAL: Add VoPS network support
Amruth Ramachandran [Tue, 11 Sep 2018 03:48:49 +0000 (20:48 -0700)]
Radio HAL: Add VoPS network support

 Update 1.3 HAL:
 - Added DataRegStateResult
 - Added LteVopsInfo
 - Added getDataRegistrationStateResponse_1_3

Bug:112194535
Test: Compiled. VTS tests to be added in separate gerrit

Change-Id: I1996bb0dbfb1c585668b097c206296d5d8e3c8d0

2 years agoMerge "Add command to pass oem commands to HAL"
Treehugger Robot [Thu, 20 Sep 2018 04:19:12 +0000 (04:19 +0000)]
Merge "Add command to pass oem commands to HAL"

2 years agohealth.filesystem::IFileSystem -> health.storage::IStorage
Yifan Hong [Wed, 19 Sep 2018 17:17:40 +0000 (10:17 -0700)]
health.filesystem::IFileSystem -> health.storage::IStorage

Rename the HAL because it is regarding 'storage health',
not 'filesystem health'.

Bug: 111655771
Test: compiles
Change-Id: I07072c876fb07c88be8bd74cf6b84aec6020a697
Merged-In: I07072c876fb07c88be8bd74cf6b84aec6020a697

2 years agoAudio VTS: Workaround async HIDL destructor by sleeping
Kevin Rocard [Wed, 29 Aug 2018 23:22:52 +0000 (16:22 -0700)]
Audio VTS: Workaround async HIDL destructor by sleeping

The test creates an instance of the Audio HAL then destroys it and create it again.
The test assumed that the destruction was synchronous when in fact it is async with
no way of knowing when the object has been destroyed.

As a result, until a better solution is found, sleep for 100ms to hopefully let enouth
time for the HAL destructor to return.

Bug: 112566489
Test: adb shell /data/nativetest64/VtsHalAudioV4_0TargetTest/VtsHalAudioV4_0TargetTest --gtest_filter=*OpenPrimaryDeviceUsingGetDevice
      atest VtsHalAudioV4_0TargetTest
Change-Id: I0ec75c12007d39060232632708722df5bf0f99d7
Signed-off-by: Kevin Rocard <krocard@google.com>
2 years agoMerge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev
Kevin Rocard [Tue, 18 Sep 2018 17:57:50 +0000 (10:57 -0700)]
Merge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev
am: 2070f8b0b8

Change-Id: Icf4a294d1fef7626b8248500dffc6bcd0189571e

2 years agoMerge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev
Treehugger Robot [Tue, 18 Sep 2018 17:49:08 +0000 (17:49 +0000)]
Merge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev

2 years agoAdd command to pass oem commands to HAL
Hridya Valsaraju [Fri, 14 Sep 2018 22:37:40 +0000 (15:37 -0700)]
Add command to pass oem commands to HAL

Bug: 79480454
Bug: 78793464
Test: fastboot oem command

Change-Id: Ifa20badace91550812742702f3b16f5abe56be72

2 years agoMerge "ISafeUnion: add case w/ enum"
Treehugger Robot [Fri, 14 Sep 2018 02:50:22 +0000 (02:50 +0000)]
Merge "ISafeUnion: add case w/ enum"

2 years agoISafeUnion: add case w/ enum
Steven Moreland [Thu, 13 Sep 2018 23:05:44 +0000 (16:05 -0700)]
ISafeUnion: add case w/ enum

Bug: 115638948
Test: hidl_test
Test: hidl_test_java
Change-Id: I26b5cc25bd29c420160686b5572a005a7629784c

2 years agoMerge "Fix failing drm 1.0 vts tests"
Treehugger Robot [Thu, 13 Sep 2018 18:58:19 +0000 (18:58 +0000)]
Merge "Fix failing drm 1.0 vts tests"

2 years agoMerge "health filesystem: update garbageCollect() function."
Yifan Hong [Thu, 13 Sep 2018 16:22:25 +0000 (16:22 +0000)]
Merge "health filesystem: update garbageCollect() function."

2 years agoFix failing drm 1.0 vts tests
Jeff Tinker [Thu, 19 Jul 2018 23:31:56 +0000 (16:31 -0700)]
Fix failing drm 1.0 vts tests

The shared library path was incorrectly set based on
the drm.64bit.enabled flag. It should be set based
on whether the drm service is running as 32-bit or
64-bit.

Test: vts-tradefed run commandAndExit vts -m VtsHalDrmV1_0Target

bug:111289939
Change-Id: I388dc87bd4566211dc2901feccf1e6e1c90bfe67
Merged-In: I388dc87bd4566211dc2901feccf1e6e1c90bfe67

2 years agohealth filesystem: update garbageCollect() function.
Yifan Hong [Wed, 15 Aug 2018 21:41:01 +0000 (14:41 -0700)]
health filesystem: update garbageCollect() function.

Bug: 111655771
Test: run dev gc on vold

Change-Id: I2cef404f9e2720c1be7822895187a590837763c8

2 years agoFix logics for floating-point comparision in VTS test.
Xusong Wang [Wed, 12 Sep 2018 00:03:51 +0000 (17:03 -0700)]
Fix logics for floating-point comparision in VTS test.
am: 39c865b3aa

Change-Id: Iccb497fc3aa87e05a361427e350a3f51dd6f273c

2 years agokeymaster 3.0: make service use nobody as user and remove system group
Roberto Pereira [Mon, 10 Sep 2018 19:44:42 +0000 (12:44 -0700)]
keymaster 3.0: make service use nobody as user and remove system group

Only the drmrpc group is necessary

Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I2be255215df827c9f17ecaffcb9d0ba402dd3405

2 years agoMerge "Note confusion-causing breaks in HIDL convention."
Treehugger Robot [Mon, 10 Sep 2018 14:00:13 +0000 (14:00 +0000)]
Merge "Note confusion-causing breaks in HIDL convention."

2 years agoNote confusion-causing breaks in HIDL convention.
Steven Moreland [Fri, 7 Sep 2018 00:58:16 +0000 (17:58 -0700)]
Note confusion-causing breaks in HIDL convention.

These were either made at a time when the convention was not fully
formed or missed during review.

It is somewhat misleading since method overloading isn't supported
and method names need this kind of prefix, but nothing else does.

The reason for this is that everything is namespaced, but methods are
all in the same namespace. The reason method overloading is not supported
in HIDL is because the HIDL types may map to types that collide in the
target languages, and this would cause any sort of overloading rules
to require complicated machinery.

Bug: N/A
Test: hidl-gen -Lcheck android.hardware.usb@1.1 android.hardware.vibrator@1.1 && echo ":)"
:)

Change-Id: Iac23c9311925ed140ff1e15d1366829b078c8866

2 years agoMerge "Get partition file system type from Fastboot HAL"
Treehugger Robot [Sat, 8 Sep 2018 02:47:41 +0000 (02:47 +0000)]
Merge "Get partition file system type from Fastboot HAL"

2 years agoMerge "[Graphics] Only validate display in PresentOrValidateDisplay."
Treehugger Robot [Fri, 7 Sep 2018 06:28:37 +0000 (06:28 +0000)]
Merge "[Graphics] Only validate display in PresentOrValidateDisplay."

2 years agoSkip NoUserConfirmation VTS test for Strongbox
Baranidharan Muthukumaran [Fri, 24 Aug 2018 20:41:49 +0000 (13:41 -0700)]
Skip NoUserConfirmation VTS test for Strongbox

Since Confirmation UI is optional for Strongbox
implementation, skipping the test.

Bug: 112189538
Test: This is an update to the vts test
Change-Id: Ie3485a1de92444b0c49670b198de30ea25e0673e
Signed-off-by: Max Bires <jbires@google.com>
2 years agoGet partition file system type from Fastboot HAL
Hridya Valsaraju [Tue, 8 May 2018 22:38:00 +0000 (15:38 -0700)]
Get partition file system type from Fastboot HAL

Partition type is required for fastbootd to
format partitions.

Test: make
Bug: 79480454
Change-Id: I49f21fe6f1626cf3da566b33cc84131b3e3c85ff

2 years agoFix logics for floating-point comparision in VTS test.
Xusong Wang [Tue, 28 Aug 2018 23:50:01 +0000 (16:50 -0700)]
Fix logics for floating-point comparision in VTS test.

Set the acceptable error range based on both absolute tolerance and
relative tolerance.

Currently, absolute tolerance is set to 1e-5 for FP32 and 5 epsilon
(~5e-3) for FP16 relaxed computation. The relative tolerance is set to
5ULP of the corresponding precision. Add a TODO mark for potential
future adjustment on error limit based on testing.

Bug: 111768023

Test: none
Change-Id: Idedcec3e09fd7de9696811b93c81d0f180e896ef

2 years agoFix logics for floating-point comparision in VTS test.
Xusong Wang [Tue, 28 Aug 2018 23:50:01 +0000 (16:50 -0700)]
Fix logics for floating-point comparision in VTS test.

Set the acceptable error range based on both absolute tolerance and
relative tolerance.

Currently, absolute tolerance is set to 1e-5 for FP32 and 5 epsilon
(~5e-3) for FP16 relaxed computation. The relative tolerance is set to
5ULP of the corresponding precision. Add a TODO mark for potential
future adjustment on error limit based on testing.

Bug: 111768023

Test: none
Change-Id: Idedcec3e09fd7de9696811b93c81d0f180e896ef

2 years agoAudio VTS: Always check for Result::isOk()
Kevin Rocard [Thu, 6 Sep 2018 17:28:51 +0000 (10:28 -0700)]
Audio VTS: Always check for Result::isOk()

A test was not checking for the Result::isOk() resulting
in an assert being triggered in HIDL code if the HAL crashed.

Test: (sleep 0.3; adb shell pkill audio) &
      adb shell /data/nativetest64/VtsHalAudioV4_0TargetTest/VtsHalAudioV4_0TargetTest
      # Test finishes in failure but does not crash
Signed-off-by: Kevin Rocard <krocard@google.com>
Change-Id: I97a6213fe82a5e9a6eb333dc1dc2476102610b58

2 years agoMerge "Add IRadioResponse/Indication 1.3 and Emergency Function HAL" android-o-mr1-iot-release-1.0.4
Shuo Qian [Wed, 5 Sep 2018 18:44:31 +0000 (18:44 +0000)]
Merge "Add IRadioResponse/Indication 1.3 and Emergency Function HAL"

2 years agoMerge "Correct the comments for radio hal types"
Youming Ye [Wed, 5 Sep 2018 16:53:27 +0000 (16:53 +0000)]
Merge "Correct the comments for radio hal types"

2 years agoAdd IRadioResponse/Indication 1.3 and Emergency Function HAL
sqian [Thu, 30 Aug 2018 03:26:03 +0000 (20:26 -0700)]
Add IRadioResponse/Indication 1.3 and Emergency Function HAL

- Add IRadioResponse/Indication in 1.3
- Add Emergency Functions:
1) getCurrentEmergencyNumberList/getCurrentEmergencyNumberListResponse
2) emergencyDial/emergencyDialResponse
3) currentEmergencyNumberList
4) EmergencyNumber/EmergencyServiceCategory

Test: compile (will add VTS later)
Bug: 112657134
Change-Id: Iafe12d5fd0e4c28fcf6e4d8e61cfb954db7fa68a

2 years agoCorrect the comments for radio hal types
Youming Ye [Fri, 17 Aug 2018 20:53:52 +0000 (13:53 -0700)]
Correct the comments for radio hal types

The type of mcc and mnc is String instead of Int now. They should be an
empty string if unknown. Also added a test case for their values.

Bug: 111703979
Test: Vts
Change-Id: Ie0426453dc426ccc6cf203b315806e78511ce14d

2 years agoMerge "Fix KM VTS tests for Strongbox implementations"
Treehugger Robot [Tue, 4 Sep 2018 10:44:18 +0000 (10:44 +0000)]
Merge "Fix KM VTS tests for Strongbox implementations"

2 years agoMerge "Camera: support torch control on external camera"
Treehugger Robot [Thu, 30 Aug 2018 19:02:26 +0000 (19:02 +0000)]
Merge "Camera: support torch control on external camera"

2 years agoMerge "Camera: Allow 3% ISO tolerance during ISO burst VTS" into pie-vts-dev
Emilian Peev [Thu, 30 Aug 2018 17:23:00 +0000 (10:23 -0700)]
Merge "Camera: Allow 3% ISO tolerance during ISO burst VTS" into pie-vts-dev
am: 391eb588cf

Change-Id: Id897eee2251eee92267b4e32f7d245aca3eb1e88

2 years agoMerge "Allow getCapturePosition to return 0 frames for unprepared streams" into pie...
Kevin Rocard [Thu, 30 Aug 2018 17:22:35 +0000 (10:22 -0700)]
Merge "Allow getCapturePosition to return 0 frames for unprepared streams" into pie-vts-dev
am: 137194ef5e

Change-Id: Ibef9acb447f71a94c27ad62ffd93b87126637143

2 years agoMerge "Camera: Allow 3% ISO tolerance during ISO burst VTS" into pie-vts-dev
Treehugger Robot [Thu, 30 Aug 2018 17:15:35 +0000 (17:15 +0000)]
Merge "Camera: Allow 3% ISO tolerance during ISO burst VTS" into pie-vts-dev

2 years agoMerge "Allow getCapturePosition to return 0 frames for unprepared streams" into pie...
Treehugger Robot [Thu, 30 Aug 2018 17:15:19 +0000 (17:15 +0000)]
Merge "Allow getCapturePosition to return 0 frames for unprepared streams" into pie-vts-dev

2 years agoMerge "Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT" into pie...
Yu-Han Yang [Thu, 30 Aug 2018 00:11:15 +0000 (17:11 -0700)]
Merge "Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT" into pie-vts-dev
am: 4e0c7c1760

Change-Id: Ia8b0d2e61772da26e399d5a6d029159eb70b88d7

2 years agoMerge "Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT" into pie...
Treehugger Robot [Wed, 29 Aug 2018 23:59:34 +0000 (23:59 +0000)]
Merge "Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT" into pie-vts-dev

2 years agoMerge "[ConfigStore] Clarify hasHDRDisplay spec."
Treehugger Robot [Wed, 29 Aug 2018 22:34:02 +0000 (22:34 +0000)]
Merge "[ConfigStore] Clarify hasHDRDisplay spec."

2 years ago[Graphics] Only validate display in PresentOrValidateDisplay.
Peiyong Lin [Wed, 11 Jul 2018 22:43:59 +0000 (15:43 -0700)]
[Graphics] Only validate display in PresentOrValidateDisplay.

Previously we require display to be validated in onRefresh, however, onRefresh
can be called while validateDisplay is executing, results in next
presentDisplay being skipped. This patch makes sure we don't check validation
state when presentDisplay is called.

BUG: 80063800
Test: build, flash, boot and play Youtube videos.
Change-Id: I3d8686db3274436afb6605812641768296f1af0e
Merged-In: I3d8686db3274436afb6605812641768296f1af0e

2 years ago[automerger skipped] Merge "Fix setAllowedCarrier" into pie-vts-dev
sqian [Wed, 29 Aug 2018 18:54:50 +0000 (11:54 -0700)]
[automerger skipped] Merge "Fix setAllowedCarrier" into pie-vts-dev
am: 052f207b42  -s ours

Change-Id: Ic6f3763761f13361d21d14594042011e797099f1

2 years agoMerge "Fix setAllowedCarrier" into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 18:44:58 +0000 (18:44 +0000)]
Merge "Fix setAllowedCarrier" into pie-vts-dev

2 years agoCamera: Allow 3% ISO tolerance during ISO burst VTS
Emilian Peev [Tue, 26 Jun 2018 08:17:33 +0000 (09:17 +0100)]
Camera: Allow 3% ISO tolerance during ISO burst VTS

The advertised ISO ranges may not be entirely supported on
some devices. Expect a 3% tolerance when comparing the applied
results versus the expected ISO value.

Bug: 80025874
Test: run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO

Merged-In: Ibd2758e48a0924e81877e35dd27433669274fdb3
Change-Id: Ibd2758e48a0924e81877e35dd27433669274fdb3
(cherry picked from commit 0fdd7cdc0eab249e0f0615fad1034231c09987dd)

2 years agoSet the floor value of time estimate as 2017 Jan 01 00:00:00 GMT
Yu-Han Yang [Thu, 14 Jun 2018 21:17:58 +0000 (14:17 -0700)]
Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT

- The VTS test checks if the time estimate is a sane value. Thus, any
arbitrary sane value is acceptable. Here we make it consistent to
IGnssDebug.hal, where a comment mentions 2017 Jan 1 as an example of
the value.

Bug: 110094003
Test: make vts, and tested on device.
Merged-In: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224
Change-Id: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224
(cherry picked from commit 5fa43c83e90ccd0f852c89feb0e071aad195d7b2)
(cherry picked from commit 4f0d19ebff1f4a3eb565d8432f44b561ebd4abe2)

2 years agoAllow getCapturePosition to return 0 frames for unprepared streams
Kevin Rocard [Thu, 21 Jun 2018 21:10:58 +0000 (14:10 -0700)]
Allow getCapturePosition to return 0 frames for unprepared streams

For device supporting getCapturePosition,
VTS only allowed unprepared stream to return INVALID_STATE.
Now also allow for the stream to return 0 frames similarly to the other
non started states.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
Bug: 110367728
Cherry-piked from: d01dc3edac9e92981e7ae419d0e7622f753acf94
Merged-In: Ibdf8df8cb8809e98c40a50035371df6893fe4da4
Change-Id: Ibdf8df8cb8809e98c40a50035371df6893fe4da4
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 6c9c6e62c193461ed0de4666d0995631ba39e009)

2 years ago[automerger skipped] Merge "Change ImportWrappedKeyTest back to SHA1" into pie-vts-dev
Shawn Willden [Wed, 29 Aug 2018 08:13:11 +0000 (01:13 -0700)]
[automerger skipped] Merge "Change ImportWrappedKeyTest back to SHA1" into pie-vts-dev
am: e7300721a0  -s ours

Change-Id: Ie8af40cfea7a0893f9f90d4c42a7cf8513e38818

2 years ago[automerger skipped] Merge "Require keymaster4 attestations to contain the right...
Shawn Willden [Wed, 29 Aug 2018 08:12:55 +0000 (01:12 -0700)]
[automerger skipped] Merge "Require keymaster4 attestations to contain the right version." into pie-vts-dev
am: 516718071b  -s ours

Change-Id: I15537d95bc28ff14aa3942d932378e99d5793f42

2 years ago[automerger skipped] Merge "keymaster: skip SHA2 digest tests for strongbox" into...
nagendra modadugu [Wed, 29 Aug 2018 08:12:38 +0000 (01:12 -0700)]
[automerger skipped] Merge "keymaster: skip SHA2 digest tests for strongbox" into pie-vts-dev
am: 86104dcc18  -s ours

Change-Id: Ib420f757159aaf8bbf462f98d88be3808d84c7d1

2 years ago[automerger skipped] Merge changes Ic41afbd0,Ibe264d08 into pie-vts-dev
nagendra modadugu [Wed, 29 Aug 2018 08:12:17 +0000 (01:12 -0700)]
[automerger skipped] Merge changes Ic41afbd0,Ibe264d08 into pie-vts-dev
am: e101aa87a3  -s ours

Change-Id: Ifff697b20cb2e0c9f89594fe965dde3545447175

2 years agoMerge "Fixing Keymaster documentation." into pie-vts-dev
Eran Messeri [Wed, 29 Aug 2018 08:11:55 +0000 (01:11 -0700)]
Merge "Fixing Keymaster documentation." into pie-vts-dev
am: 33f7970672

Change-Id: I0bd196af03f96817cbd23620b109e7665456f586

2 years agoMerge "Change ImportWrappedKeyTest back to SHA1" into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 08:07:09 +0000 (08:07 +0000)]
Merge "Change ImportWrappedKeyTest back to SHA1" into pie-vts-dev

2 years agoMerge "Require keymaster4 attestations to contain the right version." into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 08:06:55 +0000 (08:06 +0000)]
Merge "Require keymaster4 attestations to contain the right version." into pie-vts-dev

2 years agoMerge "keymaster: skip SHA2 digest tests for strongbox" into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 08:06:40 +0000 (08:06 +0000)]
Merge "keymaster: skip SHA2 digest tests for strongbox" into pie-vts-dev

2 years agoMerge changes Ic41afbd0,Ibe264d08 into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 08:06:38 +0000 (08:06 +0000)]
Merge changes Ic41afbd0,Ibe264d08 into pie-vts-dev

* changes:
  keymaster: spec does not require that update produce output
  Fix attestation test.

2 years agoMerge "Fixing Keymaster documentation." into pie-vts-dev
Treehugger Robot [Wed, 29 Aug 2018 08:06:31 +0000 (08:06 +0000)]
Merge "Fixing Keymaster documentation." into pie-vts-dev

2 years ago[automerger skipped] Allow general errors for getImsiForApp().
Amit Mahajan [Wed, 29 Aug 2018 02:51:27 +0000 (19:51 -0700)]
[automerger skipped] Allow general errors for getImsiForApp().
am: 1f3d0a68a4  -s ours

Change-Id: I2b7df276429ce16a63e00ed5f3e2654bbb9c63ed

2 years agoFix setAllowedCarrier
sqian [Tue, 31 Jul 2018 16:23:24 +0000 (09:23 -0700)]
Fix setAllowedCarrier

If function is not supported or executed successfully, do not
expect its effect on cardStatus.

Bug: 112008372
Test: run vts
Change-Id: I4532a39af2cfcf0e44eafe29c3c7f6779ae101f5
Merged-In: I4532a39af2cfcf0e44eafe29c3c7f6779ae101f5
(cherry picked from commit 44b129f7288016a4113f5e6ff059d63987d63385)