Commit graph

10319 commits

Author SHA1 Message Date
sqian
c0e2e2b071 Fix missed refactor of serial
Bug: 109822806
Test: run vts
Change-Id: If88384699dbb4c2ddd1c580d2b35be38afd0f8e8
2018-06-27 12:12:26 -07:00
TreeHugger Robot
1e757749fb Merge "Handle radio API in low version VTS for high version service" into pi-dev 2018-06-26 20:08:32 +00:00
TreeHugger Robot
9d114dbf88 Merge "Allow getCapturePosition to return 0 frames for unprepared streams" into pi-dev 2018-06-26 19:15:33 +00:00
sqian
cabe101cd2 Handle radio API in low version VTS for high version service
There are some request/response pair that could be replaced in
higher-version hal. Radio service need to handle
these request/response pair specific to version number. For example,
e.g. getVoiceRegistrationStateResponse_1_2 replaces
getVoiceRegistrationStateResponse for getVoiceRegistrationState
in 1.2 radio service. We need to add util and update version number
of IRadio service to check the version for testing the correct
behavior.

Bug: 109839239
Test: run vts
Change-Id: I291690e77ea0e6e37fe75219e550f79fa44fb840
2018-06-26 12:03:22 -07:00
Kevin Rocard
6c9c6e62c1 Allow getCapturePosition to return 0 frames for unprepared streams
For device supporting getCapturePosition,
VTS only allowed unprepared stream to return INVALID_STATE.
Now also allow for the stream to return 0 frames similarly to the other
non started states.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target
Bug: 110367728
Cherry-piked from: d01dc3edac9e92981e7ae419d0e7622f753acf94
Change-Id: Ibdf8df8cb8809e98c40a50035371df6893fe4da4
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-06-26 10:29:12 -07:00
TreeHugger Robot
e4722f92dd Merge "Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN." into pi-dev 2018-06-26 00:05:19 +00:00
TreeHugger Robot
be04f192e9 Merge "Fix attestation test." into pi-dev 2018-06-25 23:40:02 +00:00
Amit Mahajan
c7896501db Allow NOT_SUPPORTED for setLinkCapacityReportingCriteria on GERAN.
Test: run vts -m VtsHalRadioV1_2Target
Bug: 110716988
Change-Id: I9a5f014d498db00d818870cbd73e119f66562ef1
2018-06-25 14:18:15 -07:00
TreeHugger Robot
7dab610c36 Merge "Call notify for voiceReg and dataReg VTS tests" into pi-dev 2018-06-25 20:52:42 +00:00
TreeHugger Robot
a0ff82f781 Merge "Add setIndicationFilter response notification in 1.2 VTS" into pi-dev 2018-06-25 20:06:25 +00:00
Shawn Willden
d898d0a422 Fix attestation test.
Bug: 77588764
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: Ibe264d08ae7b3333a6949761a92759f5305b3fcb
2018-06-25 06:36:02 -06:00
TreeHugger Robot
d33b77a194 Merge "Fixed VTS failure in no SIM case" into pi-dev 2018-06-22 23:53:09 +00:00
TreeHugger Robot
2aae65f844 Merge "Add VTS test to verify scheduling capability" into pi-dev 2018-06-22 23:45:38 +00:00
Peiyong Lin
d8725d1521 Merge "Update power HAL to version 1.3." into pi-dev 2018-06-22 23:40:28 +00:00
Shuo Qian
dfe1131c97 Merge "Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp" into pi-dev 2018-06-22 23:29:14 +00:00
Jack Yu
431eb118f8 Fixed VTS failure in no SIM case
Added RadioError::NONE as a possible return value for data call
setup API. The data call could be setup for emergency purposes
when no SIM inserted.

Test: VTS
Bug: 109767888
Change-Id: I4469c371f999b99d35f4078df000f05ee1f3c84d
2018-06-22 13:31:09 -07:00
Michael Wright
07eabef427 Update power HAL to version 1.3.
Adds new EXPENSIVE_RENDERING power hint.

This adds a new library which does not affect any pre-existing
targets unless they create and add a new binary which uses this.

BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I5fb33abbbe4c4958882a106dfa400ad74013e40d
2018-06-22 19:36:58 +00:00
TreeHugger Robot
ab0704aed2 Merge "Allow REQUEST_NOT_SUPPORTED as an error for startNetworkScan" into pi-dev 2018-06-21 20:25:00 +00:00
Amit Mahajan
a7587b5a7f Allow REQUEST_NOT_SUPPORTED as an error for startNetworkScan
We are trying to tighten the APIs. However for this case since the
documentation was not updated, we are allowing NOT_SUPPORTED for
now and will be cleaned up in a later release.

Test: run vts -m VtsHalRadioV1_2Target
Bug: 110118713
Change-Id: Id9dd3d7bac99bed36ceb9c906189f1fea78d5a2c
2018-06-20 15:56:16 -07:00
Janis Danisevskis
b6093dccf0 Merge "Relax HMAC computation check" into pi-dev 2018-06-20 22:32:13 +00:00
Janis Danisevskis
a1c4e0ec5d Relax HMAC computation check
This KM4 key agreement check is causing some pain on early units
that aren't completely provisioned in both locked and non-Green
(unlocked) states.

This doesn't impact KM3 devices (Pixel 2016/2017 etc.)

Bug: 110301629
Change-Id: I5a737ac8a335863b1099c29cf3c0496adeb41e15
2018-06-20 05:25:22 +00:00
TreeHugger Robot
f053b3de23 Merge "Add hwcomposer to the system-background cpuset for hal v2.2" into pi-dev 2018-06-20 00:05:56 +00:00
Yu-Han Yang
4f0d19ebff Set the floor value of time estimate as 2017 Jan 01 00:00:00 GMT
- The VTS test checks if the time estimate is a sane value. Thus, any
arbitrary sane value is acceptable. Here we make it consistent to
IGnssDebug.hal, where a comment mentions 2017 Jan 1 as an example of
the value.

Bug: 110094003
Test: make vts, and tested on device.
Merged-In: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224
Change-Id: Ic4f6b597a718ea3e98a67c7939f9e6930d44d224
(cherry picked from commit 5fa43c83e9)
2018-06-19 22:51:10 +00:00
sqian
7470cbd04d Add REQUEST_NOT_SUPPORTED for changeIccPinForApp and changeIccPin2ForApp
Bug: 110037298
Test: run vts -m VtsHalRadioV1_0Target
Change-Id: Iaba800814c5a6950d086a2f105714d01fdaa14a4
2018-06-19 10:30:58 -07:00
Carmen Jackson
76fa88e7a0 Add hwcomposer to the system-background cpuset for hal v2.2
This change was made for hal v2.1 but not cross-ported to 2.2.

Bug: 110167043
Test: $ adb shell ps -A | grep composer
system  630 ...  android.hardware.graphics.composer@2.2-service
$ adb shell cat /proc/630/cpuset
/system-background

Change-Id: I40b8a0386a7cf67fe64b1e0e40d81b78891faaca
2018-06-18 17:32:28 -07:00
TreeHugger Robot
db94365e73 Merge "health: Update README to remove .override [DO NOT MERGE]" into pi-dev 2018-06-18 23:35:25 +00:00
Yifan Hong
eb159af994 health: Update README to remove .override [DO NOT MERGE]
The .override module does not have correct rc and
sepolicy file_contexts configured, so let's allow
OEMs to keep healthd. If an OEM does want to remove
healthd they can provide a device-specific
health service impl.

Test: none
Bug: 110228707
Change-Id: I9ba32ae366df4ba58994ef0e3f9eb57cab5626f7
2018-06-18 14:40:52 -07:00
sqian
e70531a92e Fix setBandMode. am: ab2b8bf919 am: d88330667d am: ea34bd6a05
am: 2d6e238637

Change-Id: Ieb380a674df9d73fac14a30dc084251c7db3f3e9
2018-06-18 14:33:01 -07:00
sqian
6e78709381 [automerger skipped] Fix setBandMode. am: ab2b8bf919 -s ours am: d1e489c94c
am: b24e51a892

Change-Id: Ia2929b679bd5f6d0244876a725e4ea334355835c
2018-06-18 14:28:31 -07:00
sqian
2d6e238637 Fix setBandMode. am: ab2b8bf919 am: d88330667d
am: ea34bd6a05

Change-Id: I58bf1b67184a14f70d49b46c5da8c225406ed1ed
2018-06-18 14:28:30 -07:00
sqian
b24e51a892 [automerger skipped] Fix setBandMode. am: ab2b8bf919 -s ours
am: d1e489c94c

Change-Id: I26809cbc6614c4dc71dfe76e5df24ac06ed8946a
2018-06-18 14:24:00 -07:00
sqian
ea34bd6a05 Fix setBandMode. am: ab2b8bf919
am: d88330667d

Change-Id: Ibf1c624c097956ec0a769f98a3cf5abe74ecc020
2018-06-18 14:23:56 -07:00
sqian
d88330667d Fix setBandMode.
am: ab2b8bf919

Change-Id: Ie8bbd67d2d0ffe1af57672fd4990cfabb751ef7a
2018-06-18 14:20:24 -07:00
sqian
d1e489c94c [automerger skipped] Fix setBandMode.
am: ab2b8bf919  -s ours

Change-Id: Ibbdfad48f943c35419a91ccf8b3d4651bfab88f1
2018-06-18 14:10:59 -07:00
TreeHugger Robot
17be71d397 Merge "Respect limited requirements for Strongbox KM implementations" into pi-dev 2018-06-18 17:26:22 +00:00
sqian
ab2b8bf919 Fix setBandMode.
Bug: 67834975
Test: sanity

Merged-In: Ie907cdb464a44d92be47d898151d71eb2d83a11c
2018-06-18 17:10:08 +00:00
nagendra modadugu
3a7e2cade3 Respect limited requirements for Strongbox KM implementations
With this patch the KM VTS test apply the restricted requirements on
supported key sizes, EC curves, and Digests to Strongbox keymaster
implementations.

Also amend tests to use Update().

Test: Yes it is
Bug: 74519020
Change-Id: Ibec9c3398671f81dbc0ecf78e554726276160579
2018-06-18 09:20:56 -07:00
Vishal Agarwal
e3ff41fc12 Add VTS test to verify scheduling capability
2018+ devices must support GNSS capability scheduling
Test results: go/vts-review-bucket/pi-dev/4267645

Bug: 109642198
Test: atest VtsHalGnssV1_0TargetTest
Change-Id: I7394674abca8f8c40ab30403be6b41bbbb279956
2018-06-14 17:49:05 +00:00
TreeHugger Robot
f3d1d3aed3 Merge "Allow general errors for getImsiForApp()." into pi-dev 2018-06-14 17:16:03 +00:00
Amit Mahajan
817848e59e Allow general errors for getImsiForApp().
This is to match it with other 1.0 tests where general errors are
allowed. For newer tests we have decided to not allow these errors,
but a failure for this old test is reported when run with SIM
present.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 109889468
Change-Id: If36083b7832706a50805932e8ba08e4eb397f3fe
2018-06-12 15:28:05 -07:00
Hung-ying Tyan
79db3ec849 Fix free() in keymaster VTS
The buffer is allocated by OPENSSL_malloc() in X509_NAME_oneline(name, nullptr, 0).
Should be reclaimed by OPENSSL_free() instead of free().

The patch is provided by vink.shen@mediatek.corp-partner.google.com

Bug: 109708231
Test: build pass
Change-Id: I66a864e3e28905eebac2e7d3a4517d4d5aaa39df
2018-06-08 17:53:48 +08:00
TreeHugger Robot
2c82288f49 Merge "Fix comments and internal names about SEEK operation." into pi-dev 2018-06-07 23:47:59 +00:00
Tomasz Wasilczyk
b557e0b748 Fix comments and internal names about SEEK operation.
Legacy radio HAL named it SCAN and the name slipped through HAL 1.x
into HAL 2.0. I finally noticed it after HAL 2.0 was locked down.

Bug: 109740376
Test: build ow
Change-Id: I5ca4147227a7dd0c32248a279f03fb632d97258e
2018-06-07 15:19:27 -07:00
TreeHugger Robot
8303aca729 Merge "secure_element: vts: Fix openBasicChannel and transmit test case" into pi-dev 2018-06-07 21:49:07 +00:00
sqian
0ff41b94b3 Add setIndicationFilter response notification in 1.2 VTS
Test: compile
Bug: 109822806
Change-Id: I95102a148a26cab80235cc68ad83143a9bb6eb39
2018-06-07 21:05:30 +00:00
Emilian Peev
e0c4c497b3 Camera: Add only physical ids during multi-camera configuration
Per API specification "physicalCameraId" must not
contain any logical camera ids. The test case
should only use the physical ids it receives from the
camera static metadata.

Bug:109874630
Test:run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO

Change-Id: I82c5bf44f4572b3a6abdbb3101a11140907b1c9e
2018-06-07 18:21:25 +01:00
Ruchi Kandoi
147ec30076 secure_element: vts: Fix openBasicChannel and transmit test case
Status Response for basic channel can be only 2 bytes as well.
Update the test to test for 2 or more bytes.
Basic Channel if opened successfully should be closed.

Transmit test case should specify the channel number in the command.

Test: atest VtsHalSecureElementV1_0TargetTest
Bug: 109833790
Change-Id: I91c943b4297067f6ae6872efb038f1295f92f5c8
(cherry picked from commit d7700d216f0d854405bb9d99972c79f1af5b1b68)
2018-06-07 08:30:13 -07:00
Eric Schwarzenbach
2bb626a297 Call notify for voiceReg and dataReg VTS tests
Bug: 80554443
Test: vts
Change-Id: I19f7131f7b65323065f3c283a89668ff761815e3
2018-06-06 16:09:58 -07:00
David Gross
0be954949d Merge "Document unspecified dimensions." into pi-dev 2018-06-06 18:22:50 +00:00
TreeHugger Robot
62e310cbfd Merge "Camera: Avoid Metadata re-allocation during shrinkCaptureResult" into pi-dev 2018-06-06 16:25:51 +00:00