Commit graph

12218 commits

Author SHA1 Message Date
Steven Moreland
7231bbe737 neuralnetworks: Update makefiles.
am: e694cb2dad

Change-Id: I25be410843c9a3194340688d13a94a73ab206bd1
2019-02-12 19:27:10 -08:00
Steven Moreland
fdc43e10f5 Merge "Sync docs between NeuralNetworks.h and HAL file"
am: 11c5c3a4a2

Change-Id: I2b857cb3375402fefd6df56e186a1bd7525d8692
2019-02-12 18:53:29 -08:00
Guang Zhu
1c30397dc1 Merge "update OWNERS for vts related projects"
am: 5b27c23298

Change-Id: Iccaaf0fe270b418cef2a320a86c9ac4cb17cd6a2
2019-02-12 18:37:15 -08:00
Nathan Harold
4e8aae0591 Merge "Add NR Cell Identity to CellIdentityNr"
am: 2db4a029a8

Change-Id: Ic1dda29a9b69630672eba78ced9885df33322bde
2019-02-12 18:18:39 -08:00
Steven Moreland
e694cb2dad neuralnetworks: Update makefiles.
Bug: N/A
Test: N/A
Change-Id: I83a920c646cf03dcc161a6fbc928a6dc09b2d7f1
Merged-In: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
2019-02-12 17:10:15 -08:00
Steven Moreland
11c5c3a4a2 Merge "Sync docs between NeuralNetworks.h and HAL file" 2019-02-13 01:07:08 +00:00
Treehugger Robot
5b27c23298 Merge "update OWNERS for vts related projects" 2019-02-13 00:46:11 +00:00
Nathan Harold
2db4a029a8 Merge "Add NR Cell Identity to CellIdentityNr" 2019-02-12 23:18:15 +00:00
Lev Proleev
2756283e30 Sync docs between NeuralNetworks.h and HAL file
Test: VtsHalNeuralnetworksV1_2TargetTest
Bug: 116445845
Fixes: 124246635
(cherry picked from commit 5d2ec0f5f0)
Merged-In: I4287a947faa260f69ba50c746bd40a0981548e50
Change-Id: I4287a947faa260f69ba50c746bd40a0981548e50
2019-02-12 13:49:56 -08:00
Jayant Chowdhary
cf1fd4de74 Documentation updates to camera HAL interfaces.
am: 48f3952ffc

Change-Id: Ie058b9f3d7ce531363a848d3319ccf95b64bd3c8
2019-02-12 13:30:58 -08:00
Nathan Harold
a579346d26 Add NR Cell Identity to CellIdentityNr
Add the NR Cell Identity field to the NrCellIdentity
struct.

Bug: 124126359
Test: compilation on goog/master; VTS currently infeasible
      pending other changes.
Change-Id: Ie7082a7dc1737cb613ab178e86016fa0d09c24d3
2019-02-12 21:02:33 +00:00
Guang Zhu
02d5e3a322 update OWNERS for vts related projects
Bug: none
Test: none
Change-Id: Ief57a5e6924f71ca6b2a9b54496cd4b5f315f373
2019-02-12 11:25:14 -08:00
Jayant Chowdhary
48f3952ffc Documentation updates to camera HAL interfaces.
Bug: 124248114

Test: mm -j64

Change-Id: If1cf0e2d464ac62e5897b8faaf4835d06c12edd8
Merged-In: Ibc2415531a16e42ae81e33c3bdb28aca08e6a5fe
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2019-02-12 11:16:17 -08:00
Slava Shklyaev
c586261217 Deprecate OEM types in NNAPI
am: 7081726008

Change-Id: I5b459d312b8c297abaefd4524041180f842660f1
2019-02-12 10:16:08 -08:00
Slava Shklyaev
f953e45c6a Update NNAPI Extensions documentation
am: e94dc72150

Change-Id: I9b7254ff09c53fe8c8c80afbb79f6ebd97ddd4c3
2019-02-12 04:14:40 -08:00
Slava Shklyaev
7081726008 Deprecate OEM types in NNAPI
Fix: 119856868
Test: N/A
Change-Id: I12e0c98324c1310815e150d24e0b25e26073a424
Merged-In: I12e0c98324c1310815e150d24e0b25e26073a424
(cherry picked from commit 341f6b335d)
2019-02-12 10:23:16 +00:00
Slava Shklyaev
e94dc72150 Update NNAPI Extensions documentation
This is a follow-up to change Ia9b99015eec7a48bbf969cbe503862271f09adca

Bug: 118605927
Test: mma
Change-Id: I7ddafca04bce6fd37a9c0877270cee325111d833
Merged-In: I7ddafca04bce6fd37a9c0877270cee325111d833
(cherry picked from commit 1ffe69a8e9)
2019-02-12 10:09:51 +00:00
Herv Guihot
0155efaa60 Added TENSOR_QUANT8_SYMM type.
am: 86a9fa0900

Change-Id: I1ad094b24f79440c277f53c2f002ea6dc9a25b10
2019-02-11 20:18:21 -08:00
Xusong Wang
7415376d16 Add new OperandType TENSOR_QUANT16_ASYMM.
am: cf6a9111cc

Change-Id: I37cc329995ec116853cf99f7e09460e83c91c506
2019-02-11 20:18:10 -08:00
Xusong Wang
1380933846 Add VTS tests for NNAPI compilation caching.
am: 96e68dc8e0

Change-Id: If2c8d1fd88ab92c8ec6dfe8fb5ab73f59d9b4e01
2019-02-11 20:17:59 -08:00
Slava Shklyaev
0fdf341379 Add getSupportedExtensions to NNAPI IDevice
am: c9ff099c01

Change-Id: I4ac95ad431703cda1d8ca44bb7ac77b27ba2ca6b
2019-02-11 20:17:49 -08:00
Slava Shklyaev
fbddd27c3a Define NNAPI Extensions types
am: bbcdc42abb

Change-Id: Ia6b121a5a29b64955008a91a5e665e76a9eded9b
2019-02-11 20:16:51 -08:00
Xin Li
50497956e2 DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master
Bug: 124234733
Change-Id: I9423eaccaf28fd94eb295fee4749fa3109c7d4aa
2019-02-11 15:54:43 -08:00
android-build-team Robot
b683609c98 Snap for 5180536 from 412352b37a to pi-platform-release
Change-Id: I378cf141149edc38d0e65749085821427b973578
2019-02-09 02:18:40 +00:00
Hervé Guihot
86a9fa0900 Added TENSOR_QUANT8_SYMM type.
Test: none
Change-Id: I02fc8698b3f80e1ae2a318e5cde593c6d7222bac
Merged-In: I02fc8698b3f80e1ae2a318e5cde593c6d7222bac
(cherry picked from commit bae91697b5)
2019-02-08 10:35:43 -08:00
Xusong Wang
cf6a9111cc Add new OperandType TENSOR_QUANT16_ASYMM.
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I8fcd6b30c32f8fbc181d2b43f9ac0b94fdc57e2f
Merged-In: I8fcd6b30c32f8fbc181d2b43f9ac0b94fdc57e2f
(cherry picked from commit d49f665c42)
2019-02-08 10:17:17 -08:00
Xusong Wang
96e68dc8e0 Add VTS tests for NNAPI compilation caching.
Add the following tests for compilation caching:
- validation tests
  - Test isCachingSupported
  - Test prepareModelFromCache with invalid numFd and invalid access mode
  - Test saveToCache with invalid numFd, invalid access mode,
    invalid file size, and invalid fd offset
- execution test
  - Save a mobilenet model to cache and then retrieve and run accuracy
    evaluation.
  - The same test but the file offsets for prepareModelFromCache is not at zero.
- security test
  - CompilationCachingSecurityTest.CorruptedSecuritySensitiveCache
    Randomly flip one bit of security-sensitive cache.
  - CompilationCachingSecurityTest.WrongLengthSecuritySensitiveCache
    Randomly append bytes to security-sensitive cache.
  - CompilationCachingSecurityTest.WrongToken
    Randomly flip one bit of cache token.

Bug: 119616526
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Change-Id: Iae9211cb28ce972b29572dfedd45d1ade4dfdaf5
Merged-In: Iae9211cb28ce972b29572dfedd45d1ade4dfdaf5
(cherry picked from commit 3405878e5e)
2019-02-08 10:17:17 -08:00
Slava Shklyaev
c9ff099c01 Add getSupportedExtensions to NNAPI IDevice
Bug: 118603011
Test: mma
Change-Id: I5bd1cf2dfd8c4700819d52a87931df2959ef6929
Merged-In: I5bd1cf2dfd8c4700819d52a87931df2959ef6929
(cherry picked from commit 6148d0f446)
2019-02-08 10:17:17 -08:00
Slava Shklyaev
bbcdc42abb Define NNAPI Extensions types
Machine Learning is a fast moving domain: new operations and data types
are introduced at a staggering speed. The Android API, on the other
hand, evolves on a yearly cycle. Many application developers, OEMs, and
SoC vendors would like to be able to define new operations at a faster
cycle.

In OC-MR1, NNAPI provided a simple mechanism to mitigate this problem:
two OEM data types and an OEM operation. The downside of this mechanism is that
it is simplistic: There’s no guarantee of consistency between vendors.

Examples of features that are required by the first parties' use cases
that we would like to be able to define outside of the normal Android
release cycle:
- New data types:
  - Sparse tensor (used by some speech generation models).
  - 16 bit int tensor (needed by OCR).
  - 16 bit float tensor.
- New operations:
  - 16 bit quantized LSTM (needed by OCR).
  - Basic primitives like sqrt and floor.
  - Logical operations.
  - Complex neural network layers.
  - Control flow.
- Enhancement to existing operations:
  - Concatenate supporting different scales/zeroPoints for arguments.
  - High-dimensional tensors.
  - Ordering of dimensions.

We are going to provide support for two types of extensions:
- NNAPI Platform extension. This is functionality that will become part of
  future releases of NNAPI. These extensions provide generic,
  non-vendor-specific functionality. Only the Android team can define new
  platform extensions. These extensions will be defined in the master
  branch of AOSP. Each extension comes with:
  - Documentation defining the extension,
  - A header file for the new constants,
  - A parameter validation library to be used by drivers, and
  - Validation tests akin to the CTS and VTS tests.
- Vendor extension. A vendor-specific extension is an alternative to OEM
  operation and data types. Its usage will be limited only to first party apps
  preinstalled on the /vendor or /odm partition.
  Each vendor will be identified by a specific value to
  prevent collisions between multiple IPs found on the same SoC. This
  effectively creates a vendor-specific namespace. These identifiers are
  assigned by Google.

This change only defines the new interface. The implementation follows
in changes Ie4e2530e4c81fabe4eb59b7a6ba4a3b4bb483bd1,
I02aa12f4a8444012ddf3b20c2bfbba6a21ce9ce9, and
Icf59ed04e602aa7a730eb1eb45e5f6b1204fafb3.

Bug: 118605927
Test: mma
Change-Id: Ia9b99015eec7a48bbf969cbe503862271f09adca
Merged-In: Ia9b99015eec7a48bbf969cbe503862271f09adca
(cherry picked from commit 9212018558)
2019-02-08 10:17:17 -08:00
Pengquan Meng
18cb6559bc Merge "Fix doc on 1.4 IRadioIndication.cellInfoList1_4"
am: e0298925ce

Change-Id: I8bfc9cc15856f627cd0b84fb7e63064fe9ffa211
2019-02-07 10:13:51 -08:00
Pengquan Meng
e0298925ce Merge "Fix doc on 1.4 IRadioIndication.cellInfoList1_4" 2019-02-07 18:01:24 +00:00
Cheney Ni
6cef9b0a49 Merge "Register Bluetooth Audio Hal v2 within Audio HAL"
am: f7b6c73725

Change-Id: I7f72fc918aea916f3e4aba813abda9003280a1e0
2019-02-06 19:02:43 -08:00
Treehugger Robot
f7b6c73725 Merge "Register Bluetooth Audio Hal v2 within Audio HAL" 2019-02-07 02:51:28 +00:00
Cheney Ni
4f6882ff4b Register Bluetooth Audio Hal v2 within Audio HAL
Register Bluetooth Audio Hal v2 by Audio HAL service so Bluetooth stack
can fetch the service interface as well.

Bug: 111519504
Test: manual

Change-Id: I3ac8c0472c58dd4d8a9b1ad8408313b80282cc85
2019-02-06 23:30:26 +00:00
Pengquan Meng
16ad3c25df Fix doc on 1.4 IRadioIndication.cellInfoList1_4
Bug: 123959296
Test: build
Change-Id: Ia12ad593ab33fbaec36b6ce95e1108550f8ff52c
2019-02-06 22:55:12 +00:00
Peiyong Lin
30e7ab464d Merge "[ConfigStore] Slient log spam."
am: 925f06e87b

Change-Id: Iabe789a6f00b5462248939e868ecc21de6bf2180
2019-02-06 14:28:49 -08:00
Peiyong Lin
925f06e87b Merge "[ConfigStore] Slient log spam." 2019-02-06 22:04:11 +00:00
Steven Moreland
b37145e08e Merge "Update makefiles."
am: b35c23e70c

Change-Id: I297b14fdb0971efcbacf301f8527fd469b33cc14
2019-02-06 11:28:36 -08:00
Steven Moreland
b35c23e70c Merge "Update makefiles." 2019-02-06 19:20:31 +00:00
Peiyong Lin
09dbd3df37 [ConfigStore] Slient log spam.
Previously ConfigStore keeps logging info of each function, this patch moves it
to verbose to avoid log spam.

BUG: 123312783
Test: Build, flash and boot. Verify with adb logcat
Change-Id: I8dce745122ca05d18cd899c536342521432f5325
2019-02-06 11:05:14 -08:00
Steven Moreland
18494b89b2 Merge "Test ...libhwbinder-impl static."
am: 06adbd75e5

Change-Id: I3262166d3a15ce3dc25337be2bf1cc83d58189c6
2019-02-06 10:27:31 -08:00
Steven Moreland
06adbd75e5 Merge "Test ...libhwbinder-impl static." 2019-02-06 18:16:54 +00:00
Wei Wang
446597a2cc Make atrace HAL optional
am: 892624d06d

Change-Id: I8a9e478e600e6721ecca91e6286637265665d2cd
2019-02-05 20:21:35 -08:00
Wei Wang
892624d06d Make atrace HAL optional
Bug: 111098596
Test: build
Change-Id: I2a18f004926e4488b87dd1d830490717908de963
2019-02-05 16:55:04 -08:00
Steven Moreland
941f105b60 Update makefiles.
Some of these are out of date.

Bug: N/A
Test: N/A
Change-Id: Ibf87fad9981d4e430a0bf797feadbb0bede232fc
2019-02-05 13:14:26 -08:00
Steven Moreland
532c05a3ec Test ...libhwbinder-impl static.
So that it can be included in tests.

Bug: 122456128
Test: libhwbinder_benchmark, hwbinderThroughputTest, libhwbinder_latency
Change-Id: I4c77c04252c7d6f0c2215ee052d747561db181e0
2019-02-01 15:13:32 -08:00
Pengquan Meng
e2d75f8b22 Merge "Add 5G cellInfo & signal strength"
am: 7ac99ae365

Change-Id: I1b60e98a9be7a3f3816fe471487d2374d64bdbf8
2019-02-01 13:23:29 -08:00
Pengquan Meng
7ac99ae365 Merge "Add 5G cellInfo & signal strength" 2019-02-01 21:09:46 +00:00
Sasha Smundak
4a1f714ed0 Merge "Explicitly include log/log.h or android/log.h instead of cutils/log.h"
am: b5db125860

Change-Id: I55fd176e62326df38194486d86a9d3a8f72270ea
2019-02-01 12:22:43 -08:00
Treehugger Robot
b5db125860 Merge "Explicitly include log/log.h or android/log.h instead of cutils/log.h" 2019-02-01 19:12:35 +00:00