Commit Graph

14699 Commits

Author SHA1 Message Date
Xusong Wang
b61ba1ed0b 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
2019-03-21 14:17:08 -07:00
TreeHugger Robot
b6ab74810a Merge "BidirectionalSequenceLSTM op: Adds layer norm support." 2019-03-21 19:17:49 +00:00
Viet Dang
f404a1e894 BidirectionalSequenceLSTM op: Adds layer norm support.
Also updates documentation for this op and UnidirectionalSequenceLSTM
op.

Bug: 123644584

Test: in ag/6758764

Change-Id: I72d029fef6d890eb1771c21814b028b09af280c7
2019-03-21 18:23:30 +00:00
Donghui Han
f11a86fd9d Merge "Revert "Update GNSS Batching to use new GnssLocation with elapsed realtime (HAL)"" 2019-03-21 17:45:10 +00:00
Donghui Han
b3721a68f2 Revert "Update GNSS Batching to use new GnssLocation with elapsed realtime (HAL)"
This reverts commit 992cdabf3a.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I0215f172f2d37654937ca72522e110a33c2f63c7
2019-03-21 17:42:42 +00:00
Anil Admal
d51789aef9 Merge "Update GNSS Batching to use new GnssLocation with elapsed realtime (HAL)" 2019-03-21 16:40:12 +00:00
Lev Proleev
0b074a9ba5 Update scale restrictions in NN API ops docs am: c8b3d162c2 am: 28c60ff868
am: 1c94eb7c5d

Change-Id: Ie6e9cbe78a4182dc23d8916dcd220c5c51064b0a
2019-03-21 07:11:00 -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
562a07a6cd [automerger skipped] Fix condition in mutateOperationOperandTypeSkip for conv ops. am: f80e3e7826 am: 47841b4de8
am: 207844312a -s ours
am skip reason: change_id I8925dfd18072ae5579657e8aa13128e7d9f58324 with SHA1 8804423ca1 is in history

Change-Id: I5ef220ea45322c3763418ec3431b7cedd993a9ab
2019-03-20 15:16:48 -07:00
Xusong Wang
46d6d34587 [automerger skipped] Skip OUTPUT_INSUFFICIENT_SIZE test for zero-sized output. am: 0237edd144 am: 384fcd1eb2
am: 43e4a63ec3 -s ours
am skip reason: change_id I04afd962ed45eac16aacfa9664ad80ba0d4f5855 with SHA1 d293315d93 is in history

Change-Id: Ibd6152942f2b391bfd872136be5413140f946f78
2019-03-20 15:16:27 -07: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
Anil Admal
992cdabf3a Update GNSS Batching to use new GnssLocation with elapsed realtime (HAL)
The ElapsedRealTime field was added to the GnssLocation in
gnss@2.0 HAL to additionally report elapsed time since boot.
The IGnssBatchingCallback.hal@1.0 must be extended to use this
new version of GnssLocation so that the location reported in
gnssLocationBatchCb() method includes the ElapsedRealTime field.

Fixes: 128034260
Test: Tested the new GNSS Batching extension using default
      implementation, VTS test, and cuttlefish.
Change-Id: I326655130782a04fbe168d4582462a123edd9ac2
2019-03-20 14:21:54 -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
TreeHugger Robot
b3e29358cf Merge "Add IRNSS to GnssConstellationType (HAL)" 2019-03-20 19:18:22 +00:00
Kai Wang
ba464daf31 Merge "Add VHAL params for fuel economy and units" 2019-03-20 18:19:54 +00:00
Allie Abad
caee9505e5 Merge "Initial change to add mock DAB stations (hardcoded for now)." 2019-03-20 17:03:17 +00:00
Janis Danisevskis
fc020e8bbe Merge "Keymaster support: Verbose vendor errors" 2019-03-20 16:15:09 +00:00
Janis Danisevskis
c7a8b863cd Keymaster support: Verbose vendor errors
Added function for verbosely logging Keymaster vendor errors.

Bug: 123562864
Test: atest android.keystore.cts
Change-Id: Ida093941d3b76b3d2e953439229081345909c16b
2019-03-20 16:13:53 +00:00
Yu-Han Yang
6999a0f547 Add IRNSS to GnssConstellationType (HAL)
Bug: 119270132
Test: atest VtsHalGnssV2_0TestTarget
Change-Id: I3a5da40412a1e5dbe9410573ae2bc263643c585c
2019-03-19 22:00:17 -07:00
TreeHugger Robot
6ce6ad3fc7 Merge "Use @2.0::IGraphicBufferProducer in media.c2" 2019-03-20 03:51:23 +00:00
Mikhail Naganov
f3283809e8 Merge "audio: Add APTX_TWSP audio format" 2019-03-19 23:18:03 +00:00
Anil Admal
996b0b19d0 Merge "Add new GNSS capabilities for year of hardware deprecation (HAL)" 2019-03-19 21:44:35 +00:00
Kai
8675df05d7 Add VHAL params for fuel economy and units
Add Units: US_GALLON and IMPERIAL_GALLON
Add property: FUEL_CONSUMPTION_UNITES_DISTANCE_OVER_VOLUME

Bug: 127734378
Test: make and flash
Change-Id: Id11501e6dd6ea43fdbda29cccc10ec954e5c3cc4
2019-03-19 12:08:16 -07:00
Aniket Kumar Lata
aa5d491075 audio: Add APTX_TWSP audio format
Add APTX_TWSP audio format support.

Bug: 111812273
Bug: 128825638
Test: make
Change-Id: Id8ba35d8aeea3d0c02be6c63ed3d05b039b0bb4f
2019-03-19 10:39:56 -07:00
Pawin Vongmasa
d9dcc1752e Use @2.0::IGraphicBufferProducer in media.c2
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 33350696
Bug: 112362730
Change-Id: I561b96b4a416a92649bd1de174d55c6317d9b40a
2019-03-19 07:48:15 -07:00
Pawin Vongmasa
d80b5bb7dd Accompany HardwareBuffer with generation number
attachBuffer() should take a generation number and requestBuffer()
should return a generation number because AHardwareBuffer does not carry
the generation number.

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 127778192
Change-Id: I201f84cf66f0e19b794a05c5ba88066360a37d96
2019-03-19 06:39:49 -07:00
Anil Admal
86450fa579 Add new GNSS capabilities for year of hardware deprecation (HAL)
The following capabilities need to be added to the GNSS HAL interface
to enforce support through the CTS/VTS tests.

-Add low power mode capability.
-Add satellite blacklisting capability.
-Add measurement corrections capability and move capabilities in
 IGnssCallback.hal that are specific to measurement correctons
 to its own sub-HAL measurement_corrections@1.0.

Bug: 128028791
Bug: 127434062
Bug: 128309220
Test: Tested on cuttlefish using default implementation and VTS tests
Change-Id: I60dbd2ce3cce3cb871aa5f6b690ef881f8dc5705
2019-03-18 19:09:48 -07:00
Allie
f62374d024 Initial change to add mock DAB stations (hardcoded for now).
Test: VtsHalBroadcastradioV2_0TargetTest

Change-Id: Ice8923490728402ed945e8cc0891fd8b2c5bf9dd
2019-03-18 15:08:04 -07:00
TreeHugger Robot
469b3ac3d4 Merge "Camera: Add recommended low latency use case id" 2019-03-18 22:02:53 +00:00
TreeHugger Robot
9cc43c58a4 Merge "Camera: cleanup external camera HAL fence FD logic" 2019-03-15 18:17:50 +00:00
Xusong Wang
cd83160e6c Merge "Fix condition in mutateOperationOperandTypeSkip for conv ops." 2019-03-15 03:59:24 +00:00
TreeHugger Robot
2781b3675e Merge "wifi - Add wlan driver/fw version when device boot up" 2019-03-15 02:28:07 +00:00
TreeHugger Robot
f3fd496636 Merge "Change CodeType from enum to string (HAL)" 2019-03-15 02:07:12 +00:00
TreeHugger Robot
cccae8396b Merge "Y16 format enablement for external provider" 2019-03-15 01:23:16 +00:00
Steven Moreland
7883157ffd [automerger skipped] Remove import comment on camera metadata HAL. am: 41be3682a3 am: 23b126f4d1
am: 21492d8e1d -s ours
am skip reason: change_id I7802d12c34b33be192c83fc46ffed5a6a7385a0a with SHA1 f8230e060c is in history

Change-Id: I5ea6d0911714aa5ab7df0ac7b7c617a7e90e3fad
2019-03-14 17:53:08 -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
Kevin Chyn
f700b79bc5 Merge changes from topic "face-hidl"
* changes:
  Address HIDL review comments
  Add SENSOR_DIRTY constant
2019-03-14 21:53:31 +00:00
Yin-Chia Yeh
965d9dd821 Camera: cleanup external camera HAL fence FD logic
Treat all non-negative integers as valid FD.

Test: webcam smoke test
Bug: N/A
Change-Id: I5fd52c0d195d2d4b63d70d66f10bd2a3ea99985c
2019-03-14 14:21:01 -07:00
Emil Jahshan
eed0040e21 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
Signed-off-by: Emil Jahshan <emil.jahshan@intel.com>
2019-03-14 14:06:17 -07:00
Steven Moreland
785f27e892 Merge "Remove import comment on camera metadata HAL." 2019-03-14 20:42:37 +00:00
Eino-Ville Talvala
ee2fb713b7 Merge "Camera: Centralize OWNERS" 2019-03-14 17:13:47 +00:00
chenpaul
f5eca2949b wifi - Add wlan driver/fw version when device boot up
Bug: 127715974
Test: Property with wlan driver/fw version when device boot up
Change-Id: Idf1215ceb2c34502ed5eac6c8900350e511732fc
2019-03-14 12:33:29 +00:00
Xusong Wang
8804423ca1 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
2019-03-13 16:27:05 -07:00