diff options
author | Ng Zhi An <zhin@google.com> | 2018-09-27 16:55:47 -0700 |
---|---|---|
committer | Zhi An Ng <zhin@google.com> | 2018-10-02 19:52:50 +0000 |
commit | a0eb7e415c231b90a507e7758b55075019871b94 (patch) | |
tree | 2ebba8d017c56f95d469c9656e1d716f1357d553 /camera/provider | |
parent | 23874c7ae9b535c8e1f679d31c8bf3ff00cad3c6 (diff) | |
download | android_hardware_interfaces-a0eb7e415c231b90a507e7758b55075019871b94.tar.gz android_hardware_interfaces-a0eb7e415c231b90a507e7758b55075019871b94.tar.bz2 android_hardware_interfaces-a0eb7e415c231b90a507e7758b55075019871b94.zip |
Skip hal v1 check after p on low ram devices
Bug: 116546417
Test: vts-tradefed run commandAndExit vts
-m VtsHalCameraProviderV2_4Target
-t VtsHalCameraProviderV2_4Target#CameraHidlTest.noHal1AfterP
Change-Id: I28782b560975b49e20d6b42d599d689f819a9383
Diffstat (limited to 'camera/provider')
-rw-r--r-- | camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp index 439333d9c..71b78f492 100644 --- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp @@ -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) { |