Commit graph

12815 commits

Author SHA1 Message Date
Michael Butler
60a2253bfb NNAPI Burst object cleanup -- VTS update
This CL adapts the VTS code to the corresponding changes made in the NN
utility library.

Bug: 119570067
Test: mma
Test: atest VtsHalNeuralnetworksV1_0Target
Test: atest VtsHalNeuralnetworksV1_1Target
Test: atest VtsHalNeuralnetworksV1_2Target
Change-Id: I7cbc1d7025c0352aa1ed29d71dc84c2fcfc20a4f
Merged-In: I7cbc1d7025c0352aa1ed29d71dc84c2fcfc20a4f
(cherry picked from commit e68668f65b)
2019-04-02 20:17:31 +00:00
Amruth Ramachandran
af32ed1e54 Add VTS test for getDataRegistrationState
am: 7c06193d09

Change-Id: I921a0f34176dec715ac1c8e50610aad461d2066a
2019-04-01 18:28:07 -07:00
Jack Yu
cefbec0e9b Added VTS tests for setDataProfile and setInitialAttachApn
am: 7885653276

Change-Id: I56598e9ba5dd72363bb64d4f69edb9b824cbb22e
2019-04-01 12:41:38 -07:00
Amruth Ramachandran
7c06193d09 Add VTS test for getDataRegistrationState
Bug:112194535
Test: VTS test

Change-Id: I32b335c8407a6884216aa1b80216a87e94b6cba6
2019-04-01 10:17:07 -07:00
Jack Yu
7885653276 Added VTS tests for setDataProfile and setInitialAttachApn
Test: VTS
Bug: 121345833

Merged-In: Ia7a260f5bbf9463c96b53656bcbe031af5208cbb
Change-Id: Ia7a260f5bbf9463c96b53656bcbe031af5208cbb
(cherry picked from commit 7948a04d01)
2019-04-01 10:05:23 -07:00
Eran Messeri
04a7045117 Test importing EC P-256 keys with multiple encodings
Test importing of an Elliptic Curve P-256 key, encoded using the RFC5915
specification (which requires the curve OID in key in addition to the
wrapper) and the same key encoded using SEC1 (which allows omitting the
OID if it's known from the wrapper).

Test: atest VtsHalKeymasterV4_0TargetTest ImportKeyTest
Bug: 124437839
Bug: 127799174
Bug: 129398850
Change-Id: I5f5df86e55a758ed739403d830baa5c7308813a3
Merged-In: I5f5df86e55a758ed739403d830baa5c7308813a3
2019-04-01 14:54:00 +01:00
Wei Wang
422c18cc03 Merge "Make ion trace point optional"
am: 22fe9b3c90

Change-Id: Ia7d3fae07dd242eda5337d1f25d0eb1ee95cae9f
2019-03-29 01:14:34 -07:00
Treehugger Robot
22fe9b3c90 Merge "Make ion trace point optional" 2019-03-29 08:02:25 +00:00
Wei Wang
f0f5788406 Make ion trace point optional
Bug: 129485781
Test: Build
Change-Id: I90fc0868df85887e542372cd55dc76be14c9d420
2019-03-28 19:31:07 -07:00
Yifan Hong
fb7ad2ba14 Update health@1.0 batteryVoltage units.
am: 54f20b6256

Change-Id: Ie698e461ca8273010fbb4b8bd658bd19b9331adf
2019-03-28 11:13:02 -07:00
Yifan Hong
54f20b6256 Update health@1.0 batteryVoltage units.
Both framework BatteryService and all implementations (that uses
BatteryMonitor) uses millivolts for batteryVoltage.

maxChargingVoltage is microvolts and that is correct.

Fixes: 115881119
Test: treehugger

Change-Id: I64044489fe6d56e0d211085d9536fe5cfd95efc4
2019-03-27 16:25:37 -07:00
Janis Danisevskis
36b364abfb Merge "Fix strict weak ordering requirement of less than operation"
am: e82263dd74

Change-Id: I56d837bd4429d13fd9a77ce43b0cafecfc243ee5
2019-03-26 09:25:41 -07:00
Treehugger Robot
e82263dd74 Merge "Fix strict weak ordering requirement of less than operation" 2019-03-26 16:18:32 +00:00
Emil Jahshan
0e8d2cb6dd Merge "Y16 format enablement for external provider"
am: 44968dc629

Change-Id: I7057b359c7fe4bd76eba480486871fbb88d0eba2
2019-03-25 13:32:28 -07:00
Treehugger Robot
44968dc629 Merge "Y16 format enablement for external provider" 2019-03-25 20:19:44 +00:00
Xusong Wang
e265b746b9 Sync operation docs between NeuralNetworks.h and HAL file
am: 66baf74114

Change-Id: I2473a12afe7fdf86cf7a2d567bf659424c26601e
2019-03-22 17:18:41 -07:00
Xusong Wang
2688f8fbfb Fix caching interface according to vendor feedback.
am: ed0822bc78

Change-Id: I239c9b30560a965610c89ad01e2c80c4553b1166
2019-03-22 15:16:03 -07:00
Viet Dang
de5183ff14 BidirectionalSequenceLSTM op: Adds layer norm support.
am: ed5c004915

Change-Id: Ie8cf293d937f63a610bd0e2c526e3a3a98de1ecd
2019-03-22 15:15:49 -07:00
David Gross
8a8a9dfe29 Add @V1_2::Capabilities to support all non extension operand types.
am: 2d47c80c8e

Change-Id: Ibfbad70244b78f82a5e938f8f94e3034d1aff987
2019-03-22 13:18:54 -07:00
Xusong Wang
66baf74114 Sync operation docs between NeuralNetworks.h and HAL file
Test: mma
Change-Id: I0fb44d734216e2f40a9a2d4efc3640acd923f932
2019-03-22 13:11:25 -07:00
Xusong Wang
ed0822bc78 Fix caching interface according to vendor feedback.
- Instead of isCachingSupport returning a single boolean, switch to
  getNumberOfCacheFilesNeeded returning the number of cache files. This
  is to support use cases when driver needs more than one cache file for
  each type, or when driver does not need data cache.

- Instead of a separate saveToCache, pass cache info along with
  prepareModel_1_2 to save into cache as well as perform compilation.
  This is to avoid a potential additional copy of cache files.

Bug: 123780248
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Change-Id: I921b7b8ccc3c66af19f6589f7213c6870d6f07bf
Merged-In: I921b7b8ccc3c66af19f6589f7213c6870d6f07bf
(cherry picked from commit b61ba1ed0b)
2019-03-22 13:10:54 -07:00
Viet Dang
ed5c004915 BidirectionalSequenceLSTM op: Adds layer norm support.
Also updates documentation for this op and UnidirectionalSequenceLSTM
op.

Bug: 123644584

Test: in ag/6758764

Change-Id: I72d029fef6d890eb1771c21814b028b09af280c7
Merged-In: I72d029fef6d890eb1771c21814b028b09af280c7
(cherry picked from commit f404a1e894)
2019-03-22 13:10:17 -07:00
David Gross
2d47c80c8e Add @V1_2::Capabilities to support all non extension operand types.
Performance information in Capabilities is used by the runtime when
it selects the appropriate processor to distribute work to.  Prior to
this CL, Capabilities can only distinguish between float and non-float
data types -- so, for example, float16 and float32 performance is
considered to be the same, and performance for all non-float data types is
considered to be the same.

Bug: 124041010

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_2TargetTest --hal_service_instance=android.hardware.neuralnetworks@1.2::IDevice/sample-all

Change-Id: I83fb5920c1c75afbd7750d793a0b8f3e72a0552c
Merged-In: I83fb5920c1c75afbd7750d793a0b8f3e72a0552c
(cherry picked from commit 632b4bd9b0)
2019-03-22 10:43:47 -07:00
Lev Proleev
28c60ff868 Update scale restrictions in NN API ops docs
am: c8b3d162c2

Change-Id: I177700ef60e2966e62d9b4704a2483396ddd6ecd
2019-03-21 07:00:54 -07:00
Lev Proleev
c8b3d162c2 Update scale restrictions in NN API ops docs
NN API relaxed scale restrictions to improve compatibility with TF Lite.

Updated ops:
- CONV_2D
- DEPTHWISE_CONV_2D
- TRANSPOSE_CONV_2D
- GROUPED_CONV_2D
- FULLY_CONNECTED

Test: mma
Bug: 127427474
Change-Id: I9dabd27b21679b99d638c364464d815e1c199787
2019-03-21 10:26:26 +00:00
Xusong Wang
47841b4de8 Fix condition in mutateOperationOperandTypeSkip for conv ops.
am: f80e3e7826

Change-Id: Ic6bf0ce3c425f709e6c2edd33f7432af7e59d5be
2019-03-20 15:02:37 -07:00
Xusong Wang
384fcd1eb2 Skip OUTPUT_INSUFFICIENT_SIZE test for zero-sized output.
am: 0237edd144

Change-Id: Id4bb88abf59778144eec98f6af1bc117e041092c
2019-03-20 15:02:22 -07:00
Xusong Wang
f80e3e7826 Fix condition in mutateOperationOperandTypeSkip for conv ops.
The filter tensor is not always operand 1 if there are multiple
operations in the model.

Test: 1.2 VTS tests with sample driver
Change-Id: I8925dfd18072ae5579657e8aa13128e7d9f58324
Merged-In: I8925dfd18072ae5579657e8aa13128e7d9f58324
(cherry picked from commit 8804423ca1)
2019-03-20 13:02:48 -07:00
Xusong Wang
0237edd144 Skip OUTPUT_INSUFFICIENT_SIZE test for zero-sized output.
Bug: 126737477
Test: 1.2 VTS with sample driver
Change-Id: I04afd962ed45eac16aacfa9664ad80ba0d4f5855
Merged-In: I04afd962ed45eac16aacfa9664ad80ba0d4f5855
(cherry picked from commit d293315d93)
2019-03-20 13:02:32 -07:00
Janis Danisevskis
93c7276e3a Fix strict weak ordering requirement of less than operation
operator< on hidl_vec<uint8_t> violates strict weak ordering in the case
that one oparand is shorter that the other and the shorter is a prefix
of the longer.

if x and y are incomparable, i.e., neither x < y nor y < x and
   y and z are incomparable, i.e., neither y < z nor z < y, then
   x and z must be incomparable.
As for the current implementation the first two statements are true but
the third is not given the following example input:
x:="aa", y:="a", z:="ab".

This patch fixes the issue by defining a < b if a is a prefix of b.

As this relation is used in a std::sort algorithm which demands strict
weak ordering this bug leads to undefined behavior.

Change-Id: I4961bb35e2fd4f5fcf561ec0c7c536f81830aab8
2019-03-19 09:54:04 -07:00
Steven Moreland
23b126f4d1 Remove import comment on camera metadata HAL.
am: 41be3682a3

Change-Id: I2d42b5fb5f40c1baa8c682ed8279c0b53b8bbe77
2019-03-14 17:44:05 -07:00
Emil Jahshan
a759713ca1 Y16 format enablement for external provider
added Y16 (depth) support for the external provider.
refactored initOutputCharsKeys to support both depth and color metadata according to the connected camera.
the VTS changes will be pushed to pie-vts-dev

Test: tested on intel depth camera D415 manually in addition to the VTS tests.

Change-Id: I358686e7c4330bb180dec4a9cce3bc1cf5475260
Merged-In: I358686e7c4330bb180dec4a9cce3bc1cf5475260
Signed-off-by: Emil Jahshan <emil.jahshan@intel.com>
2019-03-14 14:27:07 -07:00
Steven Moreland
41be3682a3 Remove import comment on camera metadata HAL.
No good place in generated docs.

Bug: 124382459
Test: ./update-makefiles.sh
Change-Id: I7802d12c34b33be192c83fc46ffed5a6a7385a0a
Merged-In: I7802d12c34b33be192c83fc46ffed5a6a7385a0a
2019-03-13 02:34:29 +00:00
Miao Wang
f29553e3e1 Fix the documentation about paddings for SPACE_TO_BATCH_ND
am: 9c9fea329e

Change-Id: I03557411882f45b0151291cfcf010f7000d21278
2019-03-12 15:18:37 -07:00
Miao Wang
9c9fea329e Fix the documentation about paddings for SPACE_TO_BATCH_ND
Bug: 123929388
Test: mm
Change-Id: I3acbfc7b1205774d9852ce8dd8c3144f250c793c
2019-03-12 15:08:08 -07:00
Steven Moreland
1b7da8b6bb Merge "bufferqueue@1.0: remove comment in function def"
am: 5418f17004

Change-Id: I16a36e4a98a38f0e2a014f927c4e51e034216519
2019-03-12 13:45:13 -07:00
Steven Moreland
5418f17004 Merge "bufferqueue@1.0: remove comment in function def" 2019-03-12 20:29:27 +00:00
Elliott Hughes
6d37b594a8 Merge "wifi: use PLOG rather than LOG strerror."
am: fba8a08e6f

Change-Id: Ifdc51d50362da0742cac8b5dcd5272f0be18e803
2019-03-12 08:04:30 -07:00
Elliott Hughes
fba8a08e6f Merge "wifi: use PLOG rather than LOG strerror." 2019-03-12 14:54:05 +00:00
Steven Moreland
6acd292bf5 Merge "Remove VehicleApPowerStateConfigFlag comment."
am: 336bba076f

Change-Id: Ic6a5b6c9e7f60dcf3263f599047f0925f9d7fdc8
2019-03-11 19:35:40 -07:00
Treehugger Robot
336bba076f Merge "Remove VehicleApPowerStateConfigFlag comment." 2019-03-12 02:18:57 +00:00
Yifan Hong
795ebcf3df Merge "health vts: implement GTEST_SKIP if not defined."
am: 73970c9437

Change-Id: I7d41e93b4a1f5d2c6b325721897d73c54816a181
2019-03-08 19:34:56 -08:00
Treehugger Robot
73970c9437 Merge "health vts: implement GTEST_SKIP if not defined." 2019-03-09 03:22:33 +00:00
Steven Moreland
62355801ca bufferqueue@1.0: remove comment in function def
Bug: 124382459
Test: manual
Change-Id: Ia99990d6ba3d50d81eb58735212142ec88a74293
2019-03-09 01:00:01 +00:00
Steven Moreland
4bd35050c3 Remove VehicleApPowerStateConfigFlag comment.
Since interface is unfrozen, removing comment.

Bug: 124382459
Test: N/A

Change-Id: I7cbae55f2d34c794be3d38d61181eda0d7dbaeac
2019-03-08 16:37:13 -08:00
Elliott Hughes
1d58b00848 Fix "tranpose" typo.
am: 7b303e1670

Change-Id: I5ff315f65eded19f72fb300849eccf199b624766
2019-03-08 15:51:00 -08:00
Yifan Hong
03b2a3477b health vts: implement GTEST_SKIP if not defined.
gtest in Android P tree does not have GTEST_SKIP. Implement
a naive version of it.

Bug: 118852225
Test: manually undefine GTEST_SKIP, test with and without --force
Change-Id: I8df1154d8a94a67ae28e8024de6022fcfe76384d
2019-03-08 15:00:48 -08:00
Elliott Hughes
4db4add8da wifi: use PLOG rather than LOG strerror.
Test: builds
Change-Id: I1a508dbb47fed3a1c1e5166b9b32d33ed0d246fe
2019-03-08 12:42:57 -08:00
Slava Shklyaev
f6bdc6a983 Specify NNAPI extension name format
am: 1d2cd43476

Change-Id: I4881c24997bbd9132f78b493e11dcf9a91bfeeb3
2019-03-08 12:22:42 -08:00
Elliott Hughes
7b303e1670 Fix "tranpose" typo.
Test: N/A
Change-Id: I5c02f66b1fdf4ee77564809b5610ba53d93273af
2019-03-08 12:15:39 -08:00