summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge cherrypicks of [3134552, 3130583, 3131953, 3131954, 3131955, 3131956, ↵android-cts-8.1_r2android-cts-8.1_r1android-8.1.0_r6android-8.1.0_r5android-8.1.0_r4android-8.1.0_r3android-8.1.0_r1android-build-team Robot2017-10-271-25/+43
|\ | | | | | | | | | | 3131957, 3131958, 3131959, 3132062, 3132336, 3131074, 3133939, 3131024, 3131025, 3131026, 3130584, 3130879, 3130880] into oc-mr1-release Change-Id: I06faeaf1e282dbf73aaa082e2944c5ea563f45fa
| * Don't expect stopOffload to succeed if interface doesn't exist.Lorenzo Colitti2017-10-271-25/+43
|/ | | | | | | | | | | | | | | | The AdditionalStopsWithInitReturnFalse test inits offload and then checks that stopOffload returns true. However, the HAL is allowed to return false to stopOffload if no upstream was ever successfully programmed. To ensure this test doesn't fail in the common case that the interface is not up, don't expect stopOffload to return true in this case. Bug: 67439856 Test: VtsHalTetheroffloadControlV1_0TargetTest passes with and without mobile data connection Change-Id: I245f9e3e4376a7799572a3b3967e2bf6c52b5e4d (cherry picked from commit 3189d9de81c937d495482fa3dacc196878cfcda1)
* Snap for 4411005 from d97f8714f07a762efe5a48747454fb4bdd51be8b to oc-mr1-releaseandroid-build-team Robot2017-10-222-4/+4
|\ | | | | | | Change-Id: I51e8c1630d4e0f432237b3c6a093754828723122
| * Fixup netlink socket creation to make corresponding fix in JNIErik Kline2017-10-202-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corresponding JNI fix is: aosp/516339 oc-mr1-dev:3102743 Test: as follows - built - flashed - booted - make vts -j30 BUILD_GOOGLE_VTS=true && \ vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalTetherOffloadControlV1_0Target -l DEBUG 10-20 17:48:28 I/ResultReporter: Invocation finished in 5m 32s. PASSED: 38, FAILED: 0, MODULES: 1 of 1 Bug: 68018148 Change-Id: I5aa019d708abaff61387b83a857e9e8226709842
* | Snap for 4404534 from a555e04f8c37db86c5016218d5b7ab37cccc29c6 to oc-mr1-releaseandroid-build-team Robot2017-10-190-0/+0
|\| | | | | | | Change-Id: Ie01a467265b5abca5b1b4795e79d384adf35321a
| * Fix VTS test which turns off radio. am: 536818d17aSanket Padawe2017-10-180-0/+0
| |\ | | | | | | | | | | | | | | | am: 340619c703 -s ours Change-Id: I4d4c0998ac28fabef207dfb0ce8fae8f08c0afd4
| | * Fix VTS test which turns off radio.Sanket Padawe2017-10-181-1/+1
| | |\ | | | | | | | | | | | | | | | | | | | | am: 536818d17a Change-Id: I74ebfa3894e27bdf0e02671cbeccac83b1917424
| | | * Fix VTS test which turns off radio.Sanket Padawe2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the purpose of most of the test cases in current VTS is to check if proper errors are returned and there is no crash seen in vendor code, updating setRadioPower test case to turn on the radio instead of turning off. We want to avoid test cases which turn off radio or leads to modem shut down as those test cases affect other tests. Test: VTS Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025 Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025 Bug: 65230472 (cherry picked from commit 9a721b808743069fc26d6cf226595e2823e347a6)
* | | | Snap for 4402249 from b70f1bda1f34fd63a9c9f5ad8307c8677a2f1f4d to oc-mr1-releaseandroid-build-team Robot2017-10-1810-11/+56
|\| | | | | | | | | | | | | | | Change-Id: Ibfb2886719cbdebb901dbf908e9826fcb66a5819
| * | | Merge "Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts tests" into oc-mr1-devTreeHugger Robot2017-10-175-11/+36
| |\ \ \
| | * | | Add REQUEST_NOT_SUPPORTED / SIM_ABSENT for vts testssqian2017-10-175-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 65230472 Test: run vts Change-Id: I1fab6f49f04a04a7f1cd3b613fe7049f927171d1
| * | | | Merge "bug fix: during fatal fails bypass freeNode() calls" into oc-mr1-devTreeHugger Robot2017-10-175-0/+20
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | bug fix: during fatal fails bypass freeNode() callsRam Mohan M2017-10-175-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If test application undergoes a fatal failure bypass all the omx api calls till the application safely returns. Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \ && vts-tradefed run commandAndExit vts \ --skip-all-system-status-check --primary-abi-only \ --skip-preconditions --module VtsHalMediaOmxV1_0Host \ -l INFO Bug: 63796949 Change-Id: If5a33672a31665db913e53c6f8ba8bea6cfd3ebd
* | | | | Snap for 4399693 from 15e945976b2d8a7047c2a8b87fd639c97423cf51 to oc-mr1-releaseandroid-build-team Robot2017-10-171-1/+8
|\| | | | | | | | | | | | | | | | | | | Change-Id: Icf8e4608c71a03f30cf0a2ae4fd9524bfacc8c73
| * | | | tetheroffload VTS: fix stopOffload test conditionsErik Kline2017-10-161-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tetheroffload HAL is somewhat...and over- and under-specified. A not unreasonable interpretation is that stopOffload() doesn't have return success unless offload was actually started (via a call to setUpstreamParameters()), and that after initOffload() and before setUpstreamParameters() not actual "offload" has been engaged. Precision in this matter is not required for the test case: OffloadControlHidlTestBase.AdditionalInitsWithoutStopReturnFalse But for the test case: OffloadControlHidlTestBase.AdditionalStopsWithInitReturnFalse we want to ensure the "matching" stopOffload call succeeds. For this test we add in a call to setUpstreamParameters() for good measure. Test: as follows prompt$ make vts -j30 BUILD_GOOGLE_VTS=true && \ vts-tradefed run commandAndExit vts \ --skip-all-system-status-check \ --primary-abi-only \ --skip-preconditions \ --module VtsHalTetherOffloadControlV1_0Target \ -l DEBUG Observed: 10-16 19:17:17 I/ResultReporter: Invocation finished in 1m 2s. PASSED: 38, FAILED: 0, MODULES: 1 of 1 Bug: 65270149 Bug: 65612227 Bug: 65612332 Change-Id: I924d41f5a20f07707e3d6991cb59d9c6b2b02339
* | | | | Snap for 4393674 from 213c36d71d099b53e9846d320968a36d56b12ef3 to oc-mr1-releaseandroid-build-team Robot2017-10-131-1/+1
|\| | | | | | | | | | | | | | | | | | | Change-Id: I89cf086fca843d73ea1c4dd2fbc56ac8d5581e7b
| * | | | Enlarge buffer size for direct report testing am: 3c01fef56cPeng Xu2017-10-121-1/+1
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: b0fe06a06b Change-Id: I06edfcd55eaa52c962f5ff6bda4060d3df9c4efe
| | * | | Enlarge buffer size for direct report testingPeng Xu2017-10-121-1/+1
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: 3c01fef56c Change-Id: I9fce07b88a1ddb12a91554b823d9290c2571eaef
| | | * | Enlarge buffer size for direct report testingPeng Xu2017-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is part of "Sensor direct report test - gralloc support". Bug: 67439052 Test: vts test no longer fail on sailfish device Change-Id: Id67a2a181b2d8847e2b1b9dbe46f5186e97e8563 Merged-In: Ibe1d076c24dc2cfe61dfd19aa5055c9075aa9e14
* | | | | Snap for 4391495 from 2528c405f3164c24f6dbf351b904f27265a5e9a8 to oc-mr1-releaseandroid-build-team Robot2017-10-121-0/+16
|\| | | | | | | | | | | | | | | | | | | Change-Id: Ia14cba21c9fc20ab05d5ee78091a1855251d7fda
| * | | | Merge "Added VTS tests for requiresSecureDecoderComponent and release API" ↵TreeHugger Robot2017-10-111-0/+16
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into oc-mr1-dev
| | * | | | Added VTS tests for requiresSecureDecoderComponent and release APISuresh Sivaraman2017-10-091-0/+16
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63914034 Bug: 65593293 Test: Build & test vts: > make vts -j64 > vts-tradefed run vts -m VtsHalCasV1_0Target Change-Id: I465735768239f2d53427a18e5ad1fa0069f6e35c
* | | | | Snap for 4388906 from 0b9f25d5c9eadb5eda353f5cc01a8bd2d05cf5f2 to oc-mr1-releaseandroid-build-team Robot2017-10-116-49/+63
|\| | | | | | | | | | | | | | | | | | | Change-Id: I4d9f66c09a4eaa9bb2237ab1cceddc5914e18f76
| * | | | Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: ↵Mikhail Naganov2017-10-100-0/+0
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | ce607879ba am: 5b122a7408 -s ours Change-Id: Ib60918524329e9ab8c4d07a0c52f5cb2f79c7dd5
| | * | | Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bitsMikhail Naganov2017-10-101-16/+32
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: ce607879ba Change-Id: I6869d49ab5ceb12e1b0d3e50e0952094c34b3c07
| | | * | Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bitsMikhail Naganov2017-10-101-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because on oc-dev the runtime image can not be modified and that this is not a bug but a test and implementation misalignment, allow prepareForWrite/Read(UINT32_MAX, UINT32_MAX) to succeed on oc-dev. MR1 will have a better fix where the HAL will always reject > 1GiB buffers independently of the architecture. Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target Bug: 67030516 Change-Id: I10a5ee3868c67c45ed5297d9c5c89129d762c7cd Merged-In: I4cc3efda9bb66e6dae8b4e6785f52d9e51440aee Signed-off-by: Kevin Rocard <krocard@google.com>
| * | | | Merge "cas-vts: use MemoryDealer to allocate shared memory" into oc-mr1-devTreeHugger Robot2017-10-102-29/+43
| |\ \ \ \
| | * | | | cas-vts: use MemoryDealer to allocate shared memoryChong Zhang2017-10-102-29/+43
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cas hal can't (and doesn't need to) use hidl_memory allocated by hidl allocator. All real clients (MediaDescrambler jni, ACodec) are using MemoryDealer-allocated ashmem only. Modify the test to cover these cases. bug: 67603039 test: > make vts -j64 > vts-tradefed run vts -m VtsHalCasV1_0Target Change-Id: Ib9563abc1a14c34781a28d15c7766c6c160d288a
| * | | | Merge "Legacy wrapper: Use arbitrary limit on buffer size" into oc-mr1-devTreeHugger Robot2017-10-103-16/+14
| |\ \ \ \
| | * | | | Legacy wrapper: Use arbitrary limit on buffer sizeKevin Rocard2017-10-103-16/+14
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The legacy HAL wrapper prepareForWrite and prepareForRead used to return INVALID_ARGUMENTS if the computed buffer size just under SIZE_MAX. This meant that the limitation depended on the architecture (32 vs 64 bit size_t). This caused VTS test failure on 64 bits. Instead of dynamically calculating an arbitrary max size, choose a fixed one. This max buffer size has been chosen at 1GiB. It should be enough for the foreseeable future and not too close from the 4GiB max on 32 bit. Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target Bug: 67030516 Change-Id: I4cc3efda9bb66e6dae8b4e6785f52d9e51440aee Signed-off-by: Kevin Rocard <krocard@google.com>
| * | | | VTS: fix VtsHalKeymasterV3_0Target issue am: 926a8e7440Iris Chang2017-10-101-4/+6
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | am: 7b770a8d70 Change-Id: I0bee7c1bdf4e40a2024fadc0b510ca002806c65e
| | * | | VTS: fix VtsHalKeymasterV3_0Target issueIris Chang2017-10-101-4/+6
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | am: 926a8e7440 Change-Id: I762f63b3f239169d93b33f7164d4eb3f9bd8f3d9
| | | * | VTS: fix VtsHalKeymasterV3_0Target issueIris Chang2017-10-051-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failed cases: AttestationTest.RsaAttestation AttestationTest.EcAttestation Analysis: The verify_attestation_record() in Keymaster_hidl_hal_test.cpp calls parse_attestation_record() to set the value of att_challenge. It fails to compare att_challenge with challenge by memcmp. Because setToExternal() method uses buffer pointer to local variable (record), not use memcpy to copy into itself buffer in parse_attestation_record(). When it leaves the parse_attestation_record(), we will get the att_challenge which is null buffer to compare with challenge incorrectly. Fix: use memcpy to copy the buffer. Bug: 65039571 Test: build passed. VtsHalKeymasterV3_0Target -> PASSED: 106, FAILED: 0. Change-Id: I700a9242cc9a5f4cb196b62860823601e4088531 Merged-In: I700a9242cc9a5f4cb196b62860823601e4088531 (cherry picked from 54ca32a130a0450b444848046199d62876b55301)
* | | | | Snap for 4386596 from e5e339d2a5a5a98fc6fd3643ced6fa938e5bdc44 to oc-mr1-releaseandroid-build-team Robot2017-10-101-7/+5
|\| | | | | | | | | | | | | | | | | | | Change-Id: Id2551559c381d67cba9357665497f5e58560e592
| * | | | Merge "Refactor test harness for generated VTS tests" into oc-mr1-devTreeHugger Robot2017-10-091-7/+5
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | Refactor test harness for generated VTS testsI-Jui (Ray) Sung2017-10-091-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Address comments in ag/2926388 Test: VtsHalNeuralnetworksV1_0TargetTest on Angler with sample driver Bug: 67597726 Change-Id: Ie3118dcbfb11c25dbc84d2becdefbbae868ff28f
* | | | | Snap for 4383937 from 3021f1fafbfb1a4b464effa543aee381f42d8080 to oc-mr1-releaseandroid-build-team Robot2017-10-0810-440/+1030
|\| | | | | | | | | | | | | | | | | | | Change-Id: Ia2f03abe28796187082d7d7a71f79e42a8eb6640
| * | | | Merge "omxvts: exit gracefully during fatal fails" into oc-mr1-devTreeHugger Robot2017-10-068-415/+550
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | omxvts: exit gracefully during fatal failsRam Mohan M2017-10-058-415/+550
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63796949 Change-Id: I735db42f7de6926adddd328db1a48de35faaa608
| * | | | Merge "Added VTS tests for MediaCas - II" into oc-mr1-devTreeHugger Robot2017-10-062-25/+480
| |\ \ \ \
| | * | | | Added VTS tests for MediaCas - IISuresh Sivaraman2017-10-052-25/+480
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63914034 Bug: 65593293 Test: Build & test vts: > make vts -j64 > vts-tradefed run vts -m VtsHalCasV1_0Target Change-Id: If5a0e7cb3d520843ba45147a085c43b94027e584
* | | | | | Snap for 4380782 from 38cfeee30c4b6ff8d8feed57e721b5d0c0fdf4de to oc-mr1-releaseandroid-build-team Robot2017-10-062-2/+11
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0daa56402c8dc6483971c440e241bb1490b98792
| * | | | | Add neuralnetworks HAL to the current.txtMichael Butler2017-10-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63905942 Test: None Change-Id: I7c247381e8fd97b91d11531d3db595408d8f1b74
| * | | | | Corrected performanceInfo documentationJean-Luc Brouillet2017-10-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'll be using relative numbers, change the doc to reflect that. Bug: 63905942 Test: Compiled Change-Id: Iad67621cfc76490c2dc471865a3f82cebf175440
* | | | | | Snap for 4378450 from 0c7d0a9d0dba6f8d879b8b61cbc1c5b56a5cfd99 to oc-mr1-releaseandroid-build-team Robot2017-10-053-35/+93
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7a709f6418fb267d2c4aad0d6cfd14e458181b71
| * | | | | Merge "Fix VTS failures on tests with optional inputs" into oc-mr1-devTreeHugger Robot2017-10-051-2/+5
| |\ \ \ \ \
| | * | | | | Fix VTS failures on tests with optional inputsI-Jui (Ray) Sung2017-10-041-2/+5
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RequestArgument for optional inputs should have its .hasNoValue set and other fields left empty. The test harness was incorrectly ignoring the hasNoValue field and initializing the offset field even for missing arguments. That inconsistency was caught by the sample driver and caused an invalid argument error. With this CL the test harness now populates requests correctly for tests with intentionally missing inputs, and that fixes lstm* and lsh_projection. Test: VtsHalNeuralnetworksV1_0TargetTest on Angler Bug: 63905942 Change-Id: I8729124b720f0d4163f4b9efd452f82b825b0885
| * / | | | Early test termination for unsupported modelsMichael Butler2017-10-041-11/+11
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some service drivers won't be able to support all operations. In those cases, try to prepare the model anyway. If it works, proceed with the test; if it fails, terminate the test early. For example, the hvx nn service does not support svdf, so it should attempt to prepare the model, but the test should not fail if the hvx driver reports an error. Bug: 63905942 Test: mm, expected behavior when running on hvx service Change-Id: I51aa1911145f0d17590906c21314d2bdc24cffea
| * | | | Merge "Only verify output of models a vendor nn service fully supports" into ↵Michael Butler2017-10-041-1/+31
| |\ \ \ \ | | | | | | | | | | | | | | | | | | oc-mr1-dev
| | * | | | Only verify output of models a vendor nn service fully supportsMichael Butler2017-10-041-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some service drivers won't be able to support all operations. In those cases, run the test as far as it can go, but ignore the output data. For example, the hvx nn service does not support svdf, so it should attempt to prepare and execute the model, but the test should not fail if the hvx driver reports an error. However, hvx indicates it is able to run MAX_POOL_2D, so the test should fail if that output is incorrect. Bug: 63905942 Test: mm Test: run vts binary on hvx service Change-Id: I3ebc05836c8e070b66daa2e38b107f96637ca812