mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Camera: fix first launch api level logic" into pi-dev
am: 3d5a641122
Change-Id: I5c1d0aef8c88fb5ef0299b280cac825ef7e40035
This commit is contained in:
committed by
android-build-merger
commit
bf2862e724
@@ -1157,6 +1157,9 @@ hidl_vec<hidl_string> CameraHidlTest::getCameraDeviceNames(sp<ICameraProvider> p
|
||||
TEST_F(CameraHidlTest, noHal1AfterP) {
|
||||
constexpr int32_t HAL1_PHASE_OUT_API_LEVEL = 28;
|
||||
int32_t firstApiLevel = property_get_int32("ro.product.first_api_level", /*default*/-1);
|
||||
if (firstApiLevel < 0) {
|
||||
firstApiLevel = property_get_int32("ro.build.version.sdk", /*default*/-1);
|
||||
}
|
||||
ASSERT_GT(firstApiLevel, 0); // first_api_level must exist
|
||||
|
||||
if (firstApiLevel >= HAL1_PHASE_OUT_API_LEVEL) {
|
||||
|
||||
Reference in New Issue
Block a user