Commit Graph

11334 Commits

Author SHA1 Message Date
Yi Kong
fa8dfc724e Merge "Don't use initializer_list as return type"
am: 9c6b9bf7c3

Change-Id: Ided6c9a8952938912bf036b4c83544a568088e42
2018-09-24 14:32:46 -07:00
Treehugger Robot
9c6b9bf7c3 Merge "Don't use initializer_list as return type" 2018-09-24 21:24:33 +00:00
Slava Shklyaev
75ba0bfc0b Sync docs with NeuralNetworks.h
am: af528bc51c

Change-Id: I0944a6d69463ede34dbee21e52423229909a457f
2018-09-24 08:45:54 -07:00
Przemyslaw Szczepaniak
fdf9aed0ec Merge changes from topic "nnapisync_1.2"
am: 96e08aa749

Change-Id: I7b8cd7d7329bbaf722e55fb6c0db45cd5fc6568d
2018-09-24 05:48:31 -07:00
Slava Shklyaev
f3a3ad8ab8 Create NeuralNetworks HAL v1.2 for new OperationTypes
am: 8e139a7a11

Change-Id: I1090607733e23da2b554fe7fe3e590e1ea5516fa
2018-09-24 05:48:09 -07:00
Slava Shklyaev
af528bc51c Sync docs with NeuralNetworks.h
Bug: 115855152
Test: none
Change-Id: I15b5207f3ffbea57a4c8313ce744a22ce72b402e
2018-09-24 12:31:03 +00:00
Przemyslaw Szczepaniak
96e08aa749 Merge changes from topic "nnapisync_1.2"
* changes:
  Add VTS tests for NeuralNetworks v1.2
  Create NeuralNetworks HAL v1.2 for new OperationTypes
2018-09-24 12:25:55 +00:00
Hridya Valsaraju
14e750b80a Merge "Revert "Add command to pass oem commands to HAL""
am: 8f8c756522

Change-Id: Ic498179e19cc4c2c19e82b5cbd7699bfce67279d
2018-09-21 17:15:52 -07:00
Treehugger Robot
8f8c756522 Merge "Revert "Add command to pass oem commands to HAL"" 2018-09-22 00:05:37 +00:00
Hridya Valsaraju
d604080c58 Revert "Add command to pass oem commands to HAL"
This reverts commit ddaa8ecb37.

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

Change-Id: I6418f1ba5dab492dc11b8c24e5d83ea7257d9699
2018-09-21 22:38:57 +00:00
Yi Kong
7392175ccd 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
2018-09-21 15:36:57 -07:00
Yifan Hong
d24a61d2cf Merge "health.storage: Add VTS test."
am: 10becafa1e

Change-Id: I33e74dc916ffdddb3e9c22a3de2d50d902705774
2018-09-21 15:34:41 -07:00
Yifan Hong
10becafa1e Merge "health.storage: Add VTS test." 2018-09-21 22:20:24 +00:00
Yifan Hong
14eea6bb3f health.storage: Add VTS test.
Test: run test
Bug: 111655771
Change-Id: I353026bcf882fcdafa9986e4f60d5853abac7e54
2018-09-21 12:25:24 -07:00
Slava Shklyaev
feb87a9cf8 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 871be94770)
2018-09-21 14:46:24 +01:00
Slava Shklyaev
8e139a7a11 Create NeuralNetworks HAL v1.2 for new OperationTypes
Bug: 114365802
Test: mm
Change-Id: I86b9261729a64d02ed30dc822a0226de11473ac8
Merged-In: I86b9261729a64d02ed30dc822a0226de11473ac8
(cherry-picked from 060a9acb3b)
2018-09-21 14:41:55 +01:00
Yifan Hong
0e2070f74a health.storage: Add default implementation.
am: c0263aa0e4

Change-Id: I7e47cfe344bbd018b8bfdee0cfe284882f8007e5
2018-09-20 23:30:35 -07:00
Amruth Ramachandran
81644fa141 Merge "Radio HAL: Add VoPS network support"
am: c922f43176

Change-Id: Id9401c3d9972702754e7839ebf6f9273967b386a
2018-09-20 23:22:54 -07:00
Kevin Rocard
8fe2bf8075 Audio VTS: Workaround async HIDL destructor by sleeping am: d87a288e82
am: 921724c2c9

Change-Id: I9ab85b9f46cc7daf0a9414594654d0dded10307c
2018-09-20 23:14:18 -07:00
Yifan Hong
d590b2357d Merge "health.filesystem::IFileSystem -> health.storage::IStorage"
am: b670abc941

Change-Id: Ifa3a8c0d7e1a5d0c6b4092d0b65abd3ea5497390
2018-09-20 22:38:20 -07:00
Hridya Valsaraju
be52e964a2 Merge "Add command to pass oem commands to HAL"
am: c369d81965

Change-Id: Ib49b90b70c3864cb1777a79ccd5d73893937ba2f
2018-09-20 22:37:56 -07:00
Yifan Hong
c0263aa0e4 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
2018-09-20 17:18:53 -07:00
Amruth Ramachandran
c922f43176 Merge "Radio HAL: Add VoPS network support" 2018-09-20 18:11:22 +00:00
Kevin Rocard
921724c2c9 Audio VTS: Workaround async HIDL destructor by sleeping
am: d87a288e82

Change-Id: I6af4b725b9917d99c450287ba4bfce864371a104
2018-09-20 10:48:42 -07:00
Yifan Hong
b670abc941 Merge "health.filesystem::IFileSystem -> health.storage::IStorage" 2018-09-20 17:26:53 +00:00
Amruth Ramachandran
d146a72e2f 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
2018-09-20 09:37:01 -07:00
Treehugger Robot
c369d81965 Merge "Add command to pass oem commands to HAL" 2018-09-20 04:19:12 +00:00
Yifan Hong
ec75d33d9c 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
2018-09-19 13:11:59 -07:00
Kevin Rocard
d87a288e82 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>
2018-09-19 18:27:15 +00:00
Kevin Rocard
89425b1e86 Merge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev am: 2070f8b0b8
am: c23b3a5dda

Change-Id: I736d5d3749a57569cee362e1b627ad9ac695b5d0
2018-09-18 11:12:54 -07:00
Kevin Rocard
c23b3a5dda Merge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev
am: 2070f8b0b8

Change-Id: Icf4a294d1fef7626b8248500dffc6bcd0189571e
2018-09-18 10:57:50 -07:00
Treehugger Robot
2070f8b0b8 Merge "Audio VTS: Always check for Result::isOk()" into pie-vts-dev 2018-09-18 17:49:08 +00:00
Hridya Valsaraju
ddaa8ecb37 Add command to pass oem commands to HAL
Bug: 79480454
Bug: 78793464
Test: fastboot oem command

Change-Id: Ifa20badace91550812742702f3b16f5abe56be72
2018-09-17 15:37:42 -07:00
Steven Moreland
e37197c3fd Merge "ISafeUnion: add case w/ enum"
am: 9667078a6c

Change-Id: I81f84490d7b0949c4949c00ec0e0c81af5403102
2018-09-13 20:01:50 -07:00
Treehugger Robot
9667078a6c Merge "ISafeUnion: add case w/ enum" 2018-09-14 02:50:22 +00:00
Steven Moreland
429faabc73 ISafeUnion: add case w/ enum
Bug: 115638948
Test: hidl_test
Test: hidl_test_java
Change-Id: I26b5cc25bd29c420160686b5572a005a7629784c
2018-09-13 16:38:25 -07:00
Jeff Tinker
04f664a094 Merge "Fix failing drm 1.0 vts tests"
am: 9367cc5918

Change-Id: I970d19127c44e5e84108153fbed170fed11eed5c
2018-09-13 12:49:14 -07:00
Treehugger Robot
9367cc5918 Merge "Fix failing drm 1.0 vts tests" 2018-09-13 18:58:19 +00:00
Yifan Hong
bb51a7cfe9 Merge "health filesystem: update garbageCollect() function."
am: e1ca153525

Change-Id: I11cc775092927e93a75db411bd47035d14598d14
2018-09-13 10:07:38 -07:00
Yifan Hong
e1ca153525 Merge "health filesystem: update garbageCollect() function." 2018-09-13 16:22:25 +00:00
Jeff Tinker
5c2e29de11 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
2018-09-13 00:39:42 +00:00
Yifan Hong
a0082b80ba health filesystem: update garbageCollect() function.
Bug: 111655771
Test: run dev gc on vold

Change-Id: I2cef404f9e2720c1be7822895187a590837763c8
2018-09-12 10:43:49 -07:00
Xusong Wang
d7843fad9c Fix logics for floating-point comparision in VTS test. am: 39c865b3aa
am: fff86f4b4b

Change-Id: Iba6339e63dba2c74806d0b73faf21ea137d1a1e9
2018-09-11 17:17:11 -07:00
Xusong Wang
fff86f4b4b Fix logics for floating-point comparision in VTS test.
am: 39c865b3aa

Change-Id: Iccb497fc3aa87e05a361427e350a3f51dd6f273c
2018-09-11 17:03:51 -07:00
Roberto Pereira
fdea589ea0 keymaster 3.0: make service use nobody as user and remove system group
am: 848607a121

Change-Id: Ib91c3acfb7ba8c0bd6b4864dedb7c92e09f5f8d2
2018-09-10 14:44:54 -07:00
Roberto Pereira
848607a121 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
2018-09-10 12:44:42 -07:00
Steven Moreland
a8b9438aae Merge "Note confusion-causing breaks in HIDL convention."
am: 27b09c2cd9

Change-Id: I24f174a09e599e9a8760eba75290d1c925337f6a
2018-09-10 07:10:02 -07:00
Treehugger Robot
27b09c2cd9 Merge "Note confusion-causing breaks in HIDL convention." 2018-09-10 14:00:13 +00:00
Steven Moreland
146405b58a 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
2018-09-09 12:31:05 -07:00
Hridya Valsaraju
130bf82eb7 Merge "Get partition file system type from Fastboot HAL"
am: 6d9109f18e

Change-Id: Ib4907a642a669eab2241bd083eced2da6f112adc
2018-09-07 19:55:56 -07:00