Commit graph

12888 commits

Author SHA1 Message Date
Michael Butler
1e447c7528 Merge "Propagate ANNMemory_free to IBurstContext::freeMemory -- VTS update" 2019-04-03 23:38:56 +00:00
Michael Butler
51c72186ce Propagate ANNMemory_free to IBurstContext::freeMemory -- VTS update
This CL adapts the VTS code to the corresponding changes made in the NN
utility library.

Bug: 128319484
Test: mma
Test: atest VtsHalNeuralnetworksV1_0Target
Test: atest VtsHalNeuralnetworksV1_1Target
Test: atest VtsHalNeuralnetworksV1_2Target
Change-Id: I470e8228cde2b75620ad851e4fe408f8e8329e7c
Merged-In: I470e8228cde2b75620ad851e4fe408f8e8329e7c
(cherry picked from commit 102e0442d8)
2019-04-03 22:48:35 +00:00
Eran Messeri
f9f432812d Merge "Test importing EC P-256 keys with multiple encodings"
am: 72ff236669

Change-Id: If39e10780df7237d81055834a4e0d717c121dedd
2019-04-03 11:30:55 -07:00
Treehugger Robot
72ff236669 Merge "Test importing EC P-256 keys with multiple encodings" 2019-04-03 18:04:01 +00:00
Michael Butler
12b4bc7634 NNAPI Burst object cleanup -- VTS update
am: 60a2253bfb

Change-Id: I9a83a290c7f52a5e8babb229aa781ef189651918
2019-04-02 16:27:03 -07:00
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
android-build-team Robot
3a1916e9db Snap for 5422807 from 1905955baf to pi-qpr3-b-release
Change-Id: I4003a6be50d9df2df53045240e3f3f847c8f1d3d
2019-03-31 21:04:28 +00: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
Roshan Pius
1905955baf wifi(vts): Don't enforce interface combination in VTS tests
am: f638d0a43a

Change-Id: I1186e55eda42bc383107669d21821540969670ee
2019-03-27 09:09:23 -07:00
Roshan Pius
f638d0a43a wifi(vts): Don't enforce interface combination in VTS tests
Devices are allowed to expose multiple AP or STA interfaces, fix the VTS
tests to allow this.

Bug: 112123615
Test: Compiles
Change-Id: I6cf60b3cb0429ca78fe5a54d9e42ba144d7609e9
2019-03-26 20:52:38 +00: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
android-build-team Robot
6ae4f1e7f9 Snap for 5375030 from e3c3d56907 to pi-qpr3-b-release
Change-Id: I9b860d5d64f1f83972ce952b28a8884441741fb8
2019-03-14 06:45:16 +00:00
sqian
e3c3d56907 Merge "Sleep one second after connect." into pie-vts-dev
am: e1704f3fd6

Change-Id: I426c3cc7a90e8c40bbf99e0f2104ca9431bb2423
2019-03-13 09:58:51 -07:00
Treehugger Robot
e1704f3fd6 Merge "Sleep one second after connect." into pie-vts-dev 2019-03-13 16:53:23 +00: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
Emil Jahshan
cbeda28395 Merge "VTS tests to work with depth Y16" into pie-vts-dev
am: 0e802961e2

Change-Id: I0a42e16b82c60c0c36e1809b9839b73226b22660
2019-03-12 14:39:33 -07:00
Treehugger Robot
0e802961e2 Merge "VTS tests to work with depth Y16" into pie-vts-dev 2019-03-12 21:24:59 +00:00
android-build-team Robot
f0047a84c0 Snap for 5369966 from b77950c850 to pi-qpr3-b-release
Change-Id: I820cbb35ab661e983ac3305bdd38c28346c9514b
2019-03-12 21:02:22 +00: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