Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ed14d6d authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10330433 from 620ead5f to udc-qpr1-release

Change-Id: I5a34231d77d52c723806207fe80aaf1a3cfb0bf7
parents 5fa6a055 620ead5f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -255,11 +255,10 @@ TEST_P(PowerAidl, setThreads) {
    }
    ASSERT_TRUE(status.isOk());

    if (mApiLevel < kCompatibilityMatrix8ApiLevel) {
    status = session->setThreads(kEmptyTids);
    if (mApiLevel < kCompatibilityMatrix8ApiLevel && isUnknownOrUnsupported(status)) {
        GTEST_SKIP() << "DEVICE not launching with Android 14 and beyond.";
    }

    status = session->setThreads(kEmptyTids);
    ASSERT_FALSE(status.isOk());
    ASSERT_EQ(EX_ILLEGAL_ARGUMENT, status.getExceptionCode());

+14 −0
Original line number Diff line number Diff line
# Vendor HAL gTest Suite

## Overview
Rather than testing an active instance of the service like the VTS tests,
this test suite will test individual files from the Vendor HAL.
This is especially useful for testing conversion methods (see `aidl_struct_util_unit_tests.cpp`),
but can also be used to test things like `wifi_chip`.

## Usage
Run the test script with a device connected:

```
./runtests.sh
```
+2 −1
Original line number Diff line number Diff line
@@ -20,7 +20,8 @@ if [ -z $ANDROID_BUILD_TOP ]; then
fi
set -e

$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode android.hardware.wifi-service-tests
adb root
adb wait-for-device
$ANDROID_BUILD_TOP/build/soong/soong_ui.bash --make-mode android.hardware.wifi-service-tests
adb sync data
adb shell /data/nativetest64/vendor/android.hardware.wifi-service-tests/android.hardware.wifi-service-tests