Commit graph

14963 commits

Author SHA1 Message Date
Lev Proleev
0480af9aa8 LSTM: require input layer norm weights to be omitted in case CIFG is used.
In case of CIFG LSTM, input layer norm weights are not used in the
computation.

Bug: 129126572
Test: mma
Change-Id: I57bc578606132a2c44c71ab63dd7645dcc001302
2019-03-28 15:56:33 +00: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
TreeHugger Robot
1b3049e56c Merge "Adding negative slot index check in ComposerResources" 2019-03-27 22:31:39 +00:00
Roshan Pius
6036c02d83 wifi(implementation): Use the active iface for chip operation
For the chip level operations, the actual interface itself does not
matter. So, instead of hard-coding these operations to wlan0 interface,
find the first active interface to use. This will still return wlan0 if
it's active, but if only AP is up (& pinned to wlan1), then it will use
wlan1 instead.

Bug: 129358937
Test: ./data/android.hardware.wifi@1.0-service-tests
Test: Verified manually that SAR commands are now correctly sent down.
Change-Id: I5a6175579027cbb45c09d32633ed81b9f72224dd
2019-03-27 12:30:03 -07:00
TreeHugger Robot
300fc770e9 Merge "Test importing EC P-256 keys with multiple encodings" 2019-03-27 18:29:46 +00:00
Roshan Pius
a3e5b7fce7 wifi(implementation): Pin primary STA iface to wlan0
The primary STA iface will always be pinned to wlan0.
The primary AP iface will be pinned to wlan0 for devices not supporting
STA + AP concurrency & wlan1 for devices supporting STA + AP concurrency.

All secondary STA or AP ifaces will be allocated on a first come first
service basis (the current logic).

Also, refactored/renamed some of the iface combo selection logic methods
to help check whether concurrency is allowed in the current mode.

Bug: 128946563
Test: ./data/android.hardware.wifi@1.0-service-tests
Test: Will send for full regression tests.
Test: On crosshatch, ensured that STA always comes up on wlan0 & AP
comes up on wlan1 regardless of the sequence of toggle followed.
Change-Id: Idca8de42ce819240bf0fac2a9039d15ed4bcaf90
2019-03-27 10:48:10 -07:00
Valerie Hau
ef77263b2f Adding negative slot index check in ComposerResources
Bug: N/A
Test: build, boot
Change-Id: I8ab18ed8f7c322ee995abc534309b51e796276fe
2019-03-27 10:06:12 -07:00
Roshan Pius
17b3a4f60f wifi(vts): Don't enforce interface combination in VTS tests am: f638d0a43a am: 1905955baf
am: 9f0bb1815c

Change-Id: I086016e07ae0d2dd37b11424039ec44f978e58e8
2019-03-27 09:17:32 -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
TreeHugger Robot
a7ea00e6d3 Merge "vibrator: example: Initial OWNERS" 2019-03-27 02:55:32 +00:00
TreeHugger Robot
0a6281e802 Merge "Use safe_union in FieldSupportedValues" 2019-03-26 22:33:21 +00: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
TreeHugger Robot
d158ed14da Merge "wifi(implementation): Fix unit test failures" 2019-03-26 18:21:30 +00:00
Janis Danisevskis
f6f522c525 Merge "Fix strict weak ordering requirement of less than operation" am: e82263dd74 am: 36b364abfb
am: 22368369f7

Change-Id: I2301e7fec1c5c28516dafff483a8a0f2a2e00b0a
2019-03-26 09:34:44 -07: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
Eran Messeri
68289f76f2 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
Change-Id: I5f5df86e55a758ed739403d830baa5c7308813a3
2019-03-26 12:01:03 +00:00
Harpreet "Eli" Sangha
1f3a3a995b vibrator: example: Initial OWNERS
Test: N/A
Change-Id: I2db5a52493af92a7f134e736c68cfd748ef0e721
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-03-26 13:46:00 +09:00
TreeHugger Robot
d1be2d36b2 Merge changes Ib5745709,I64685e6e
* changes:
  vibrator: example: Fix New Test Failures
  vibrator: example: Fix out-of-scope memory access.
2019-03-26 02:31:39 +00:00
Roshan Pius
1cd82a8cf2 wifi(implementation): Fix unit test failures
ag/6722341 caused some unit test failures. Fixing them.

Bug: 127715974
Test: ./data/android.hardware.wifi@1.0-service-tests
Change-Id: Ib504cf55b9990dba081eb1b07bc32508e09ad0a6
2019-03-25 13:51:28 -07:00
Emil Jahshan
8cafc5dc63 [automerger skipped] Merge "Y16 format enablement for external provider" am: 44968dc629 am: 0e8d2cb6dd
am: e076865454 -s ours
am skip reason: change_id I358686e7c4330bb180dec4a9cce3bc1cf5475260 with SHA1 eed0040e21 is in history

Change-Id: I4a4e4131abd1e0297beb87099fc6bd464e61452e
2019-03-25 13:40:26 -07: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
Harpreet "Eli" Sangha
79755bc570 vibrator: example: Fix New Test Failures
Bug: 129091875
Test: VTS
Change-Id: Ib57457095c8ff30aff45a5909f2408d144980976
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-03-25 16:43:48 +09:00
Harpreet "Eli" Sangha
a244321f72 vibrator: example: Fix out-of-scope memory access.
Bug: 129091875
Test: VTS
Change-Id: I64685e6e8982db1a33c8322e1df7d266fa367eaf
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-03-25 14:21:07 +09:00
Xusong Wang
7b277acbd0 Sync operation docs between NeuralNetworks.h and HAL file am: 66baf74114 am: e265b746b9
am: 094a06c28e

Change-Id: I34c9eba2b4fa207486416a2b0a04c569aac76a69
2019-03-22 17:37:30 -07: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
TreeHugger Robot
4c8c6251ce Merge "API changes in MicrophoneDirection" 2019-03-22 23:43:43 +00:00
Xusong Wang
1f6750e7b1 [automerger skipped] Fix caching interface according to vendor feedback. am: ed0822bc78 am: 2688f8fbfb
am: a8c6a9c87c -s ours
am skip reason: change_id I921b7b8ccc3c66af19f6589f7213c6870d6f07bf with SHA1 b61ba1ed0b is in history

Change-Id: I3067372c437a1df7600f0a2e8fcd2ef54e97647f
2019-03-22 15:28:10 -07:00
Viet Dang
61fbf54e98 [automerger skipped] BidirectionalSequenceLSTM op: Adds layer norm support. am: ed5c004915 am: de5183ff14
am: 889b52c305 -s ours
am skip reason: change_id I72d029fef6d890eb1771c21814b028b09af280c7 with SHA1 f404a1e894 is in history

Change-Id: I8f702728d68a9dd5999ef53686b17bbccb68fe1a
2019-03-22 15:27:49 -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
0a94e28517 [automerger skipped] Add @V1_2::Capabilities to support all non extension operand types. am: 2d47c80c8e am: 8a8a9dfe29
am: 397361141f -s ours
am skip reason: change_id I83fb5920c1c75afbd7750d793a0b8f3e72a0552c with SHA1 632b4bd9b0 is in history

Change-Id: I403622d9292d84e075d93db31bc1792a4702e876
2019-03-22 13:27:09 -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
Paul McLean
8c394f0fb1 API changes in MicrophoneDirection
Bug: 128523813
Test: build, flash, testbed app.
Change-Id: I1bcc9bb667224cebb401d9506853d5c650e7d68d
2019-03-22 11:58:07 -06: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
Xusong Wang
c1ebcb1f94 Merge "Add @V1_2::Capabilities to support all non extension operand types." 2019-03-22 15:40:11 +00:00
Pawin Vongmasa
4b5dce8bb5 Use safe_union in FieldSupportedValues
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 129084824
Change-Id: I9ae77a6a6697dcc508415090640a21841caba345
2019-03-22 07:45:36 -07:00
Ahmed ElArabawy
24b937ec80 Merge "Wifi: Update the Latency mode API documentation" 2019-03-22 07:24:50 +00:00
TreeHugger Robot
8ee0a26fdc Merge "Adjust mock thermal HAL 2.0 mock data" 2019-03-22 04:34:05 +00:00