Commit Graph

12849 Commits

Author SHA1 Message Date
Yifan Hong
26ff91b22f Update health@1.0 batteryVoltage units. am: 54f20b6256
am: fb7ad2ba14

Change-Id: I9c6291b56fc76a62d868d0fe3a64ef0f2a96bde4
2019-03-28 11:24:25 -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
9f0bb1815c wifi(vts): Don't enforce interface combination in VTS tests am: f638d0a43a
am: 1905955baf

Change-Id: I792ae076ad6bb968601972854e7e0e49a388de40
2019-03-27 09:14:28 -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
22368369f7 Merge "Fix strict weak ordering requirement of less than operation" am: e82263dd74
am: 36b364abfb

Change-Id: I7a97aaecd25f3a78a3f9508388a88ace9c97642e
2019-03-26 09:30:01 -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
e076865454 Merge "Y16 format enablement for external provider" am: 44968dc629
am: 0e8d2cb6dd

Change-Id: Iff5ae7adfec1b047ca400cb0e018987d1b31f7ad
2019-03-25 13:36:14 -07: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
094a06c28e Sync operation docs between NeuralNetworks.h and HAL file am: 66baf74114
am: e265b746b9

Change-Id: Iafbf27f0c06886f934bb9e3faaa72f0ea76f1312
2019-03-22 17:27:53 -07: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
a8c6a9c87c Fix caching interface according to vendor feedback. am: ed0822bc78
am: 2688f8fbfb

Change-Id: I2570eee9de88f62025805c9666619592e7f872c7
2019-03-22 15:23:00 -07:00
Viet Dang
889b52c305 BidirectionalSequenceLSTM op: Adds layer norm support. am: ed5c004915
am: de5183ff14

Change-Id: I9ce3ac8a4569913161f2c6f3f3bcaae276036ffc
2019-03-22 15:22: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
397361141f Add @V1_2::Capabilities to support all non extension operand types. am: 2d47c80c8e
am: 8a8a9dfe29

Change-Id: Ib9131fce81360e7fbe3288453c6e059ecc126334
2019-03-22 13:23:04 -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
1c94eb7c5d Update scale restrictions in NN API ops docs am: c8b3d162c2
am: 28c60ff868

Change-Id: I51e1bc73407042c9ca0e3ddc1b32762371ce973a
2019-03-21 07:06:06 -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
207844312a Fix condition in mutateOperationOperandTypeSkip for conv ops. am: f80e3e7826
am: 47841b4de8

Change-Id: I6c567bc7d4513480bb4581af9c5e48d7065de42c
2019-03-20 15:11:55 -07:00
Xusong Wang
43e4a63ec3 Skip OUTPUT_INSUFFICIENT_SIZE test for zero-sized output. am: 0237edd144
am: 384fcd1eb2

Change-Id: I46925696191753150085968f26b749fe720cd86c
2019-03-20 15:11:31 -07: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
21492d8e1d Remove import comment on camera metadata HAL. am: 41be3682a3
am: 23b126f4d1

Change-Id: I95cd9ddeb9cd135de3cafef10fd4c04642c19936
2019-03-14 17:49:03 -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
sqian
ed62130b14 Merge "Sleep one second after connect." into pie-vts-dev am: e1704f3fd6
am: e3c3d56907

Change-Id: Ic8322a888f04dfa29bca109f5dc43f6978021da5
2019-03-13 10:02:48 -07: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
e9100c8b88 Fix the documentation about paddings for SPACE_TO_BATCH_ND am: 9c9fea329e
am: f29553e3e1

Change-Id: I599a87bc9a6b9f5e33c46d29b10b97da2c9abfa9
2019-03-12 15:21:50 -07: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
00236ffa71 Merge "VTS tests to work with depth Y16" into pie-vts-dev am: 0e802961e2
am: cbeda28395

Change-Id: Iac2b34c3ede77f1919ddce045a92f70991ae26e9
2019-03-12 14:43:32 -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
Steven Moreland
095414578e Merge "bufferqueue@1.0: remove comment in function def" am: 5418f17004
am: 1b7da8b6bb

Change-Id: I2569c0cc1b56cc92d1cfcded2672d22326a81284
2019-03-12 13:50:15 -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