Commit graph

17408 commits

Author SHA1 Message Date
Dan Shi
4d93ff01c6 Merge "Convert VtsHalContexthubV1_0Target to be parameterized test" 2019-12-16 20:57:14 +00:00
Yu-Han Yang
d5560c4d41 Stop location to avoid timing issue
Before setting constellation blacklist, the location report should
be stopped first. Otherwise, the sv status which contains blacklist
constellation is still reporting and may be counted in checking
SvList. According to the comments of this case, location should be
turned off as 2a step.

Also adding another test that a blacklist request that comes in
while tracking is started, takes effect after a stop/start cycle.

Bug: 144675840
Test: on device
Change-Id: I975d6036c742b8b825c742dca8fdcfe1dc1c1ee9
Merged-In: I04894426e8384d25f2b5e269961a9cf051cab40f
2019-12-16 20:45:13 +00:00
Dan Shi
e10b1d6ea5 Convert VtsHalContexthubV1_0Target to be parameterized test
Removing dependency from VTS infrastructure so that test can run
standalone, for instance with atest/TEST_MAPPING. Once this is
done for every test, VTS can use the core testing infra.

Bug: 142397658
Test: atest VtsHalContexthubV1_0TargetTest
Change-Id: Ib2da09dc2898f4f0503fa7c5003a19421fbeef91
2019-12-16 09:45:19 -08:00
Treehugger Robot
fe4644ddff Merge "vibrator: Support Always-On Effects" 2019-12-14 00:08:55 +00:00
Treehugger Robot
a659ab610b Merge "audio: Ignore ENOSYS from optional legacy HAL methods" 2019-12-13 17:23:44 +00:00
Jooyung Han
9bce98b45a vibrator: Use enum_range<Enum>
to avoid accidental omission of Effect/EffectStrength in test

Bug: 143992652
Test: VtsHalVibratorTargetTest
Change-Id: I0894a7bb426d134b052d43ef9a9f55ace8146a44
2019-12-13 15:39:19 +09:00
Dan Shi
c757fd8874 Merge "Convert VtsHalBroadcastradioV2_0TargetTest to be parameterized test" 2019-12-12 22:55:29 +00:00
Sarah Chin
126564a371 Merge "Add APN type XCAP" 2019-12-12 22:39:01 +00:00
Dan Shi
27506e64f1 Convert VtsHalBroadcastradioV2_0TargetTest to be parameterized test
Removing dependency from VTS infrastructure so that test can run
standalone, for instance with atest/TEST_MAPPING. Once this is
done for every test, VTS can use the core testing infra.

Bug: 142397658
Test: atest VtsHalBroadcastradioV2_0TargetTest
Change-Id: I0298bb78bc37c99dacca0bc6a0d42e41e40b52c0
2019-12-12 12:58:54 -08:00
Sarah Chin
039d542f95 Add APN type XCAP
Add XCAP and update DataProfileInfo

Test: build
Bug: 73792201
Change-Id: I7cb450c91a458d66eec558265a8d9f48792cfa77
Merged-In: I7cb450c91a458d66eec558265a8d9f48792cfa77
2019-12-12 11:56:46 -08:00
Treehugger Robot
74033a720b Merge "graphics: hwc2on1adapter: Buffer hotplug event after display creation" 2019-12-12 18:28:05 +00:00
Dan Shi
5712f78910 Merge "Convert VtsHalRenderscriptV1_0TargetTest to be parameterized test" 2019-12-12 04:11:16 +00:00
Treehugger Robot
6c9fea5040 Merge "[vts-core] add VtsHalUsbV1_1TargetTest to vts-core" 2019-12-12 03:02:35 +00:00
Treehugger Robot
7053c7c97f Merge "[vts-core] add VtsHalTetheroffloadControlV1_0TargetTest to vts-core" 2019-12-12 02:20:45 +00:00
Treehugger Robot
91815d7f1c Merge "[vts-core] add VtsHalHealthV2_0TargetTest to vts-core" 2019-12-12 02:20:35 +00:00
Harpreet \"Eli\" Sangha
63624099e3 vibrator: Support Always-On Effects
Bug: 138909021
Test: Verify always-on haptics are configured on boot and settings
      change.
Change-Id: I11ce5f2b974267c6e84b1843a750847492a7de15
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-12-12 11:09:06 +09:00
Mikhail Naganov
4135fa4e59 audio: Ignore ENOSYS from optional legacy HAL methods
Some methods of legacy HALs are optional. The legacy HAL
can avoid implementing them either by setting the function
entry in the interface table to NULL or by setting it
to a stub function returning -ENOSYS. In the latter case
the default implementation was spamming syslog with
warnings. Specify that ENOSYS returned from optional legacy
HAL methods must be ignored.

Bug: 141989952
Test: check logcat
Change-Id: Idbdff8d88e3303a0181cb5629ab82485148e6d8e
2019-12-11 15:57:53 -08:00
Treehugger Robot
e82bfc646f Merge "audio VTS: Fix call to IDevice::close in V6 tests" 2019-12-11 23:36:37 +00:00
Treehugger Robot
423c61de7a Merge "Convert VtsHalOemLockV1_0TargetTest to be parameterized test" 2019-12-11 23:17:28 +00:00
Xiangyu/Malcolm Chen
e5c19d9bb3 Merge "Remove HAL API of whether enabling uicc applications are enabled." 2019-12-11 23:00:41 +00:00
Mikhail Naganov
777a4d473c audio VTS: Fix call to IDevice::close in V6 tests
The result of RPC calls of HAL methods must be checked.
Added a check of result of calling IDevice::close added
for V6.

Bug: 114451103
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ib6276382f15f122b43f314cf64cac2c3242bb76c
2019-12-11 14:39:01 -08:00
Treehugger Robot
e995668691 Merge "vibrator: aidl: Add Descriptions for Primitives" 2019-12-11 22:19:46 +00:00
Dan Shi
aae9ff2315 Merge "Convert VtsHalKeymasterV*_0TargetTest to be parameterized test" 2019-12-11 21:48:51 +00:00
Dan Shi
9e277af150 Convert VtsHalOemLockV1_0TargetTest to be parameterized test
emoving dependency from VTS infrastructure so that test can run
standalone, for instance with atest/TEST_MAPPING. Once this is
done for every test, VTS can use the core testing infra.

Bug: 142397658
Test: atest VtsHalOemLockV1_0TargetTest
Change-Id: I8a40c38901755d6ac628cce21b60b49182dfbfdf
2019-12-11 21:45:01 +00:00
Dan Shi
116375fd42 Merge "Convert VtsHalSecureElementV1_*TargetTest to be parameterized test" 2019-12-11 21:40:57 +00:00
Malcolm Chen
2e7b82a2c0 Remove HAL API of whether enabling uicc applications are enabled.
This API is no longer needed as enabling / disabling uicc applications
are no longer an optional operation in IRadio 1.5.

Bug: 141018421
Test: sanity
Change-Id: Ia72a8f97ff0d192fb421fdc6c096513f36a69f5a
2019-12-11 11:44:07 -08:00
Steven Moreland
97247c42bd Merge "PREUPLOAD.cfg: enable bpfmt" 2019-12-11 18:50:23 +00:00
Dan Shi
ac4058a721 Convert VtsHalSecureElementV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalSecureElementV1_0TargetTest \
  VtsHalSecureElementV1_1TargetTest

Change-Id: Ied7b7b8ad53ac0f79cceb567257c14cd3bd221f1
2019-12-11 10:48:54 -08:00
Dan Shi
bc404e6c80 Convert VtsHalRenderscriptV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalRenderscriptV1_0TargetTest
Change-Id: I319f113d2c80afc75a28a480e3dd1c7739c5f2d7
2019-12-11 10:23:35 -08:00
Dan Shi
3bacd7f634 Convert VtsHalKeymasterV*_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalKeymasterV3_0TargetTest \
  VtsHalKeymasterV4_0TargetTest

Change-Id: I0fbda4d9ab810a4ef616f8741919c522d5d58cc0
2019-12-11 09:46:54 -08:00
nelsonli
822b82d454 [vts-core] add VtsHalUsbV1_1TargetTest to vts-core
Convert VtsHalUsbV1_1TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalUsbV1_1TargetTest
Change-Id: I317319b9b07fcc10a324bcbbe7d7aef24f2cd058
2019-12-11 16:20:02 +08:00
Harpreet "Eli" Sangha
aa4af6bf03 Merge "vibrator: vts: Utilize New toString() Support" 2019-12-11 06:39:35 +00:00
nelsonli
4da3ca57ab [vts-core] add VtsHalHealthV2_0TargetTest to vts-core
Convert VtsHalHealthV2_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalHealthV2_0TargetTest
Change-Id: I415a494243536f931f168665e1b9196fc83c8de7
2019-12-11 14:32:55 +08:00
Dan Shi
c81f9c9958 Merge "Convert VtsHalSensorsV*_0TargetTest to be parameterized." 2019-12-11 00:02:28 +00:00
Steven Moreland
f0b1faac16 PREUPLOAD.cfg: enable bpfmt
Bug: N/A
Test: N/A
Change-Id: I4a168950b56a6ead0658ded94caa8eb9f15df1d9
2019-12-10 09:51:58 -08:00
nelsonli
c0343613cd [vts-core] add VtsHalTetheroffloadControlV1_0TargetTest to vts-core
Convert VtsHalTetheroffloadControlV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $ atest VtsHalTetheroffloadControlV1_0TargetTest
Change-Id: I54a5f0324df88d0e058a31f03d12cc6b6f8292a3
2019-12-10 16:43:53 +08:00
Harpreet \"Eli\" Sangha
63c06d62d7 vibrator: aidl: Add Descriptions for Primitives
Test: Build
Change-Id: I05d43cb75d6c7cf9ece95a3c7d1ee9ce9980cebb
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-12-10 15:44:19 +09:00
Harpreet \"Eli\" Sangha
e1723a49df vibrator: vts: Utilize New toString() Support
Use the new toString() support for AIDL enums for improved logging.

Test: atest VtsHalVibratorTargetTest
Change-Id: Ie9d98f6b9f367dec9e6f0b9b0ed18dab0a32c742
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-12-10 14:52:59 +09:00
Shuo Qian
511264a552 Support isEnabled feature in reporting criteria for SignalStrenghth
Test: build
Bug: 135717625
Change-Id: Ia56b54f44345650117f884942ef917e3547277a9
Merged-In: Ia56b54f44345650117f884942ef917e3547277a9
(cherry picked from commit d5ae42e540)
2019-12-10 00:56:07 +00:00
Dan Shi
f78d7734d1 Merge "Convert VtsHalGraphicsMapperV*TargetTest to be parameterized test" 2019-12-10 00:19:36 +00:00
Max Bires
3d5713851e Adding sanity check for VBMeta device state
This test should will flag builds running as eng or userdebug that
report back the device is locked during development. This will also
catch the case where the device is a user build but reporting that it
isn't locked. This should help to avoid instances in the future where
userdebug builds report a locked device in the VBMeta information.

This patch also does a little bit of cleanup of the surrounding VBMeta
checking code.

Test: atest VtsHalKeymasterV4_0TargetTest
Change-Id: I3b387ade5eeee6a68b9ff307e503417d264ecbfe
2019-12-09 15:01:29 -08:00
Dan Shi
395288173d Convert VtsHalSensorsV*_0TargetTest to be parameterized.
Bug: 142397658
Test: atest VtsHalSensorsV1_0TargetTest VtsHalSensorsV2_0TargetTest
Change-Id: I76bf0b68abf8c8a1c79afabbc26242e33778bd25
2019-12-09 10:10:44 -08:00
Lev Proleev
56cda83f8c Fix use-after-free error in NNAPI VTS tests
Replace std::initializer_list with std::vector.

Fix: 145705114
Test: VtsHalNeuralnetworksV1_[23]TargetTest
Change-Id: I92cbc56b2b8fbb36b3f3225e7cd0d4b05c84041e
2019-12-09 14:56:09 +00:00
Dan Shi
5a955bc176 Convert VtsHalGraphicsMapperV*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGraphicsMapperV2_0TargetTest \
  VtsHalGraphicsMapperV2_1TargetTest \
  VtsHalGraphicsMapperV3_0TargetTest

Change-Id: I1d4e222f3a04882ae8d74e79201c2751d1d22ea4
2019-12-06 16:05:11 -08:00
Sarah Chin
ca0e5aa890 Merge changes from topics "ngran", "update_ngran"
* changes:
  Update NGRAN bands
  Add HAL for 5G bands
2019-12-05 21:37:37 +00:00
Treehugger Robot
d3a2bdfc63 Merge "Refactor for audio device type in conversion." 2019-12-05 20:17:59 +00:00
Yifan Hong
b161c42905 Merge changes from topic "no_hal_static_libs"
* changes:
  health 1.0: add helper library for -impl
  health 1.0 default -> Soong
  health 1.0 does not use HAL_STATIC_LIBS
2019-12-05 20:11:32 +00:00
jiabin
f17047d892 Refactor for audio device type in conversion.
As audio device type can not be used as bit mask any more, refactoring
audio device type usages in conversion from/to HAL. Use a set of audio
device types instead of bit mask.

Bug: 135621476
Test: atest VtsHalAudioV5_0TargetTest
Change-Id: I1a0f574744f855bb1684cd28613571399781abbc
Merged-In: I1a0f574744f855bb1684cd28613571399781abbc
2019-12-04 17:51:05 -08:00
Mikhail Naganov
532240f4eb Audio HAL: Fix UAF if the effect is removed after close
Effect::close in V6 releases the underlying HAL effect.
It was not removing the effect entry from the effects
map, thus a call to Stream::removeEffect was retrieving
a stale handle.

Bug: 145656878
Test: start and stop recording for VOICE_COMMUNICATION
Change-Id: I47f486d3b6b4b0dc29acd1e3a2093e421b28d90b
2019-12-04 16:21:28 -08:00
Henry Fang
e7044daa5b Merge "Add TEMI filter, releasing AV handle and CI-CAM" 2019-12-04 23:42:27 +00:00