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

Commit 5300745f authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5045641 from f8f519f4 to pi-qpr2-release

Change-Id: I755c90f7e3ff9fb1c93444e801fdd271a2b3ec6a
parents 245013f9 f8f519f4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1172,6 +1172,14 @@ TEST_F(CameraHidlTest, noHal1AfterP) {
    }
    ASSERT_GT(firstApiLevel, 0); // first_api_level must exist

    // all devices with first API level == 28 and <= 1GB of RAM must set low_ram
    // and thus be allowed to continue using HAL1
    if ((firstApiLevel == HAL1_PHASE_OUT_API_LEVEL) &&
        (property_get_bool("ro.config.low_ram", /*default*/ false))) {
        ALOGI("Hal1 allowed for low ram device");
        return;
    }

    if (firstApiLevel >= HAL1_PHASE_OUT_API_LEVEL) {
        hidl_vec<hidl_string> cameraDeviceNames = getCameraDeviceNames(mProvider);
        for (const auto& name : cameraDeviceNames) {