Commit graph

18006 commits

Author SHA1 Message Date
Miao Wang
2b5c4cda77 Add VTS tests for NNAPI IPreparedModel::executeFenced
- Validation tests
  - Generated tests to exercise executeFenced path

Bug: 142778241
Test: mm
Change-Id: I509f0b5713fc86885d597940aae5ade0502c97ad
Merged-In: I509f0b5713fc86885d597940aae5ade0502c97ad
(cherry picked from commit 2c4e02329b)
2020-01-27 12:58:50 -08:00
Miao Wang
12ea0d4ed6 Support sync fence in NNAPI
- Add IPreparedModel::dispatchRequest to NNAPI 1.3 HAL
  - Add IDispatchExecutionCallback to allow clients query information
  related to the actual evaluation.

Bug: 142778241
Test: mm
Change-Id: I87cbb7f2aee87342b0418fce04eb4050e2bc1920
Merged-In: I87cbb7f2aee87342b0418fce04eb4050e2bc1920
(cherry picked from commit 90cf3dd37c)
2020-01-27 12:58:31 -08:00
Lev Proleev
53a51cb352 Add FILL and RANK ops
Bug: 148050168
Bug: 148049333
Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Iebdfa600d84e31532807740c21d95cae41c76ad5
Merged-In: Iebdfa600d84e31532807740c21d95cae41c76ad5
(cherry picked from commit 8b3f240ea3)
2020-01-27 12:58:14 -08:00
Lev Proleev
503d850369 Add ELU and HARD_SWISH
Bug: 147482068
Bug: 147481241
Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Iab8da2a666ad9775dfb53d9297e94962fb651353
Merged-In: Iab8da2a666ad9775dfb53d9297e94962fb651353
(cherry picked from commit aee67f83f9)
2020-01-27 12:57:58 -08:00
Lev Proleev
e4f1583337 NNAPI: Regenerate types.hal to sync with types.spec
Bug: 147765446
Test: mma
Change-Id: I2b41bd959b7084ecb89674c659c66ebb158ac77d
Merged-In: I2b41bd959b7084ecb89674c659c66ebb158ac77d
(cherry picked from commit 2d7c489f67)
2020-01-27 12:57:05 -08:00
Michael Butler
95899b3d39 Create VTS tests for QoS in NNAPI
Bug: 136739795
Bug: 142902514
Bug: 145300530
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: If3ab91cfb3158e4c33e809ff3b149dff47cda76f
Merged-In: If3ab91cfb3158e4c33e809ff3b149dff47cda76f
(cherry picked from commit 616701d3cd)
2020-01-27 12:51:42 -08:00
Michael Butler
79a41d77c0 Update NNAPI 1.3 VTS tests with new types
Bug: 136739795
Bug: 142902514
Bug: 145300530
Test: mma
Test: atest VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ie76da9dc9d6993a56bf644cfe20c5f5b421672c9
Merged-In: Ie76da9dc9d6993a56bf644cfe20c5f5b421672c9
(cherry picked from commit 9449a28b2f)
2020-01-27 12:51:34 -08:00
Michael Butler
ed8e77bf12 Add Quality of Service to NNAPI HAL
This CL makes the following changes:
* introduces a new Priority enum
* extends ErrorStatus with new error codes
* adds "supportsDeadline" method to IDevice
* adds priority and deadline arguments to IDevice::prepareModel*
* adds deadline argument to IPreparedModel::execute*
* updates IExecutionCallback with new ErrorStatus
* updates current.txt accordingly

Bug: 136739795
Bug: 142902514
Bug: 145300530
Test: mma
Change-Id: Iaa7877bde1f463635b8bbdb4e8a001d7b79b9c65
Merged-In: Iaa7877bde1f463635b8bbdb4e8a001d7b79b9c65
(cherry picked from commit c2499ecda1)
2020-01-27 12:51:25 -08:00
Slava Shklyaev
f8124a861f Add NNAPI control flow
Bug: 136735929
Bug: 139181916
Test: m
Change-Id: I7a75175f00fc98df626c40ea669021ccd40130e0
Merged-In: I7a75175f00fc98df626c40ea669021ccd40130e0
(cherry picked from commit a785a3faac)
2020-01-27 12:51:09 -08:00
Slava Shklyaev
351ca59582 Remove neuralnetworks@1.3::Model.Extension* in favor of 1.2 counterparts
The types are the same as in 1.2. No changes are expected.

Bug: 136735929
Test: m
Change-Id: I7431d2e9263fafa0e63b8b1b40f6715e3832d17c
Merged-In: I7431d2e9263fafa0e63b8b1b40f6715e3832d17c
(cherry picked from commit 8a179f3499)
2020-01-27 12:50:50 -08:00
Robert Shih
f2fd4adece drm vts: introduce helper library
The helper library includes
* gtest parameter structure (hal instance name, drm scheme uuid)
* existing vendor module APIs

Bug: 142397658
Test: VtsHalDrmV1_0TargetTest
Change-Id: Ifbb443fcb1414e45de2a2073ec545ddd422b9a4d
2020-01-27 20:16:43 +00:00
Harpreet \"Eli\" Sangha
fe5d3986e9 vibrator: Add "Light Tick" Primitive
Bug: 147844633
Test: adb shell idlcli vibrator compose 0 7 1.0
Change-Id: I208e56011f790c095afe734fd4326de10078525a
Merged-In: I208e56011f790c095afe734fd4326de10078525a
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-01-27 07:20:10 +00:00
Harpreet \"Eli\" Sangha
523e29603b vibrator: Compose API Related Improvements
- Allow querying duration of each primitive.
- Allow querying of supported primitives.
- Enforce all-of-nothing requirement for supported primitives via VTS.
- Enforce callback support requirement via VTS.

Bug: 139762802
Bug: 147852209
Test: atest VtsHalVibratorTargetTest
Change-Id: I9009e38d446ed9ea38b3a9d6eb8dd55e6be2792f
Merged-In: I9009e38d446ed9ea38b3a9d6eb8dd55e6be2792f
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-01-27 07:19:29 +00:00
Nathan Harold
8f0d8b1840 Add Multi-PLMN and CSG support
Non-functional changes:
-Clarify that the MCC+MNC in the CellIdentity should be used to
 report the Primary PLMN only; (this PLMN is globally unique, and
 can be used to construct a CGI/ECGI whereas other PLMN-IDs cannot).
-Add clarification for the reporting of multi-PLMN 5G networks.

Functional changes:
-Add a list of PLMNs for MOCN Networks. This allows cells that are
 shared by multiple operators to be properly reported.
-Add support for Closed Subscriber Group reporting to allow
 identification of small-cell deployments.

Bug: 135921133
Test: make VtsHalRadioV1_5Target
      && make aosp_cf_x86_64_phone-userdebug
Change-Id: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
Merged-In: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
2020-01-26 11:18:59 -08:00
Nathan Harold
caee79f174 Add Support for RPLMN to Voice and Data RegState
-Define RegistrationFailCause as an enum
-Combine voice and data reg state into a single struct
-Define a safe-union for AN-specific registration info

Bug: 73629308
Test: make && make VtsHalRadioV1_5TargetTest
      && make cf_x86_64_phone-userdebug

Change-Id: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
Merged-In: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
2020-01-25 00:39:23 -08:00
Sarah Chin
e1d1b0b92c PhoneCapabilities changes for device capabilities
Change PhoneCapability structure to contain static capabilities for:
* the entire device
* each modem/radio
* each SIM slot

Created SimSlotCapability and SlotType to hold information about
device SIM slot capabilities (separate from SimSlotStatus).

Created ModemFeatures to express modem capabilities as a bitfield
of concurrently supportable modem features.

PhoneCapability has fields for UE categories, bands, access networks,
and modem switching linger time. It also contains a lists of logical
modem UUIDs, SIM slot capabilities, and all possible concurrently
supportable modem features.

TelephonyManager will have an API that returns
* the PhoneCapability for the device
* active set of ModemFeatures

Apps with CARRIER_PRIVILEGE can use these APIs to access all
capabilities of a device (eg. 5G capable, DSDS capable, etc.) and
use them to make decisions based on what the device can support.

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I424ef176086d2308a4bf53b2c79407eabafb3178
Merged-In: I424ef176086d2308a4bf53b2c79407eabafb3178
2020-01-25 00:39:04 -08:00
Sarah Chin
44eaabad25 Merge "CDMA MO SMS follow on DC feature"
am: 80da44e958

Change-Id: I133c60baf131a5d0762090334afd8449279794a6
2020-01-24 22:06:50 -08:00
Jack Yu
5b971bfa50 Added TD-SCDMA bands for network scanning
Added TD-SCDMA bands defined in 3GPP TS 25.102.

Test: Telephony sanity tests
Bug: 144939345
Change-Id: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
Merged-In: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
2020-01-24 19:37:58 -08:00
Sarah Chin
80da44e958 Merge "CDMA MO SMS follow on DC feature" 2020-01-25 03:21:40 +00:00
Mikhail Naganov
fb2270818c Merge "[vts-core] add VtsHalAudioV6_0TargetTest to vts-core"
am: a64681e3c1

Change-Id: I9a936d4f59df7effa0ba15ad94856fff1f912061
2020-01-24 19:13:43 -08:00
Mikhail Naganov
71e883282e Merge "audio: Require Audio HAL V6 for level 5"
am: b3149c34fc

Change-Id: I5c353914896420f140de8970612c260583ef29fe
2020-01-24 19:05:32 -08:00
Treehugger Robot
a64681e3c1 Merge "[vts-core] add VtsHalAudioV6_0TargetTest to vts-core" 2020-01-25 02:56:57 +00:00
Nazish Tabassum
c448718602 CDMA MO SMS follow on DC feature
Add new API in @1.5 IRadio and IRadioResponse interfaces
to send MO CDMA SMS with expectMore option

Bug: 72613248
Change-Id: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
Merged-In: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
2020-01-25 01:51:11 +00:00
Treehugger Robot
b3149c34fc Merge "audio: Require Audio HAL V6 for level 5" 2020-01-25 01:05:43 +00:00
Stan Rokita
1ffb992d29 Merge "Fix the format specifier in assert log statements"
am: ddc10d848a

Change-Id: I79f81bbd4c0b4ff22496a0ade4e6cec155965a6a
2020-01-24 16:48:50 -08:00
Treehugger Robot
ddc10d848a Merge "Fix the format specifier in assert log statements" 2020-01-24 23:21:11 +00:00
Xusong Wang
e9da9852a5 Add memory domain VTS generated tests.
Bug: 141353602
Bug: 141363565
Test: 1.3 VTS
Change-Id: Ifc7eb3fd6f15e28ba403f02bdf66b4568bddcb64
Merged-In: Ifc7eb3fd6f15e28ba403f02bdf66b4568bddcb64
(cherry picked from commit 1f50e54cf8)
2020-01-24 14:25:32 -08:00
Steven Moreland
464c9cd3ba Merge "~Memtrack: don't delete hw_module_t*"
am: fb9821c8f0

Change-Id: I76e17c917fb574516266711bd5f20f7554dc5732
2020-01-24 13:14:20 -08:00
Treehugger Robot
fb9821c8f0 Merge "~Memtrack: don't delete hw_module_t*" 2020-01-24 21:07:36 +00:00
Automerger Merge Worker
ba9bfb7b30 Merge "Convert VtsHalTvTunerV1_0TargetTest to be parameterized test" am: 9c057f1e79
Change-Id: I98b624edac759b8bdcb4cfb39ae12ed1a220134e
2020-01-24 02:48:48 +00:00
Amy Zhang
9c057f1e79 Merge "Convert VtsHalTvTunerV1_0TargetTest to be parameterized test" 2020-01-24 02:40:20 +00:00
Automerger Merge Worker
e4156656aa Merge "Delete BUILT_SYSTEM_MATRIX." am: c08c4d873f
Change-Id: Ib72412d98e9a9059069ccd6dd4943086fc2b3ffb
2020-01-24 01:29:19 +00:00
Yifan Hong
c08c4d873f Merge "Delete BUILT_SYSTEM_MATRIX." 2020-01-24 01:12:40 +00:00
Mikhail Naganov
6b6325ef09 audio: Require Audio HAL V6 for level 5
Match GMS requirements.

Bug: 143257085
Test: N/A
Change-Id: I514ec4756b3d24d12c9156a04a45d01cbf2227c3
2020-01-23 16:11:33 -08:00
Automerger Merge Worker
fa38b7bfa1 drm@1.2 vts: force provision multiple security levels am: ab61b8024e
Change-Id: Ibe5a94665e5c7cf77dc40c48896160d7ea1497dd
2020-01-23 23:32:44 +00:00
Steven Moreland
a65d2972f9 AIDL vibrator required for launching devices.
Deprecating vibrator HIDL for launching devices so that we can remove
HIDL support after ~3+ years.

Bug: 141828236
Test: passes on cuttlefish (TH check)
Change-Id: I2c8b35882a51af0defe8466b28272cff9b3cd151
2020-01-23 15:11:06 -08:00
Steven Moreland
d66d0ddaf3 ~Memtrack: don't delete hw_module_t*
mModule here is from a dlsym from libhardware, so this was crashing
here, if hwservicemanager crashes.

Bug: N/A
Test: N/A
Change-Id: I42aa35df0eafd791465f6e099dc1945bd0f763ea
2020-01-23 14:29:29 -08:00
Mikhail Naganov
0debfc3cc7 [vts-core] add VtsHalAudioV6_0TargetTest to vts-core
Add necessary configuration to VtsHalAudioV6_0TargetTest.

Bug: 146015418
Bug: 146104851
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: I3e1bac38598ba5909c8eeb4f83e00bfd0bbbb058
2020-01-23 13:42:15 -08:00
Robert Shih
ab61b8024e drm@1.2 vts: force provision multiple security levels
Bug: 145112387
Bug: 145482532
Bug: 146190325
Bug: 146390725
Bug: 146401147
Bug: 146849109
Bug: 147314842
Bug: 147467803
Bug: 147704960
Test: DrmHalTest.OfflineLicenseTest
Change-Id: I705507101b051ee6ac56fec36ca45d476bf82630
2020-01-23 10:27:53 -08:00
Amy Zhang
0d0f895e71 Merge "Disable Tuner HAL VTS test cases that use un-licensed stream."
am: 116a7e2ed4

Change-Id: Ica3909c2f4c5aee47831498e96f42f9f46be51c5
2020-01-23 08:53:03 -08:00
Amy
fa94a2ca46 Convert VtsHalTvTunerV1_0TargetTest to be parameterized test
Bug: 139309306
Test: atest VtsHalTvTunerV1_0TargetTest
Change-Id: I02cd4b7c58b8339bc2fdc69ecb8fc0e88f5baa3f
(cherry picked from commit a29bfaf17a)
2020-01-23 08:47:31 -08:00
Amy Zhang
116a7e2ed4 Merge "Disable Tuner HAL VTS test cases that use un-licensed stream." 2020-01-23 16:42:19 +00:00
Steven Moreland
00b1d20208 Merge "identity: regenerate makefiles"
am: b90d0a684b

Change-Id: I105b14ea286ae94fcbb35658c99d0da852850f70
2020-01-22 19:29:38 -08:00
Jack Yu
6ee646adc4 Merge "Add android.hardware.secure_element@1.2"
am: 5b7f7d0b67

Change-Id: I2ad0a963620b71b8d20c95b37b311a2890df82f6
2020-01-22 19:22:21 -08:00
Michele Berionne
58073a8f2a Merge "Add SIM Depersonalisation interface"
am: 81626dc493

Change-Id: I42521bfbf79e98b89100655cf0de3b8f1c4bd074
2020-01-22 19:19:56 -08:00
Stephane Lee
32234ee7fa Merge "Initialize paths for health 2.1 + batteryCapacityLevelPath + batteryChargeTimeToFullNowPath"
am: 0e7081d5ed

Change-Id: Ic092adf7ae14b10ef56aa97d1d37a69c62ce1422
2020-01-22 19:17:00 -08:00
Treehugger Robot
b90d0a684b Merge "identity: regenerate makefiles" 2020-01-23 02:40:32 +00:00
Hunter Knepshield
7b20bd7733 Minor style fixes for IDumpstateDevice@1.1 VTS test
Test: make && atest VtsHalDumpstateV1_1TargetTest on cuttlefish
Change-Id: I96401270106b856cdde687c0f30c7b940d996cee
2020-01-22 18:26:52 -08:00
Treehugger Robot
5b7f7d0b67 Merge "Add android.hardware.secure_element@1.2" 2020-01-23 02:00:02 +00:00
Hunter Knepshield
1b92d26c08 Make IDumpstateDevice 1.1
Add dumpstateBoard_1_1 to accept a mode parameter (e.g. for limiting
vendor logs to the right bug reports).

Add setDeviceLoggingEnabled for the user to toggle vendor logging on and
off.

Bug: 143183758
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest
Change-Id: I5420e5e4ce88619c7e40cf967382f98babc3c3d5
Merged-In: I5420e5e4ce88619c7e40cf967382f98babc3c3d5
(cherry picked from commit c9e2c6d319)
2020-01-22 17:25:24 -08:00