Home
last modified time | relevance | path

Searched refs:GetIntProperty (Results 1 – 25 of 63) sorted by relevance

123

/aosp12/hardware/google/pixel/health/test/
H A DTestBatteryDefender.cpp68 T GetIntProperty(const std::string &key, T default_value, T min, T max) { in GetIntProperty() function
69 return (T)(mock->GetIntProperty(key, default_value, min, max)); in GetIntProperty()
76 template int8_t GetIntProperty(const std::string &, int8_t, int8_t, int8_t);
142 EXPECT_CALL(*mock, GetIntProperty(_, _, _, _)).Times(AnyNumber()); in SetUp()
188 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in defaultThresholds()
196 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStartSOC, _, _, _)) in defaultThresholds()
198 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStopSOC, _, _, _)) in defaultThresholds()
380 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in TEST_F()
390 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderCtrlStopSOC, _, _, _)) in TEST_F()
405 ON_CALL(*mock, GetIntProperty(kPropBatteryDefenderThreshold, _, _, _)) in TEST_F()
[all …]
/aosp12/hardware/google/pixel/health/
H A DBatteryDefender.cpp130 const int newDefenderLevelStart = android::base::GetIntProperty( in writeChargeLevelsToFile()
132 const int newDefenderLevelStop = android::base::GetIntProperty( in writeChargeLevelsToFile()
201 android::base::GetIntProperty(kPropBatteryDefenderThreshold, kTimeToActivateSecs, in getTimeToActivate()
210 return android::base::GetIntProperty(kPropBatteryDefenderCtrlActivateTime, in getTimeToActivate()
235 const int triggerLevel = android::base::GetIntProperty( in stateMachine_runAction()
291 const int timeToClear = android::base::GetIntProperty( in stateMachine_getNextState()
294 const int bdClear = android::base::GetIntProperty(kPropBatteryDefenderCtrlClear, 0); in stateMachine_getNextState()
394 android::base::GetIntProperty(kPropChargeLevelVendorStart, kChargeLevelDefaultStart); in update()
396 android::base::GetIntProperty(kPropChargeLevelVendorStop, kChargeLevelDefaultStop); in update()
H A DBatteryThermalControl.cpp24 using android::base::GetIntProperty;
46 int bcl_disable = GetIntProperty("persist.vendor.disable.bcl.control", 0); in updateThermalState()
/aosp12/system/memory/libmeminfo/vts/
H A Dvts_meminfo_test.cpp42 if (android::base::GetIntProperty("ro.product.first_api_level", 0) < __ANDROID_API_R__) { in TEST()
54 if (android::base::GetIntProperty("ro.product.first_api_level", 0) < __ANDROID_API_R__) { in TEST()
75 if (android::base::GetIntProperty("ro.product.first_api_level", 0) < __ANDROID_API_R__) { in TEST()
97 if (android::base::GetIntProperty("ro.product.first_api_level", 0) < __ANDROID_API_S__) { in TEST()
/aosp12/system/libbase/
H A Dproperties_test.cpp112 EXPECT_EQ(T(-12), android::base::GetIntProperty<T>("debug.libbase.property_test", 45)); in CheckGetIntProperty()
114 EXPECT_EQ(T(12), android::base::GetIntProperty<T>("debug.libbase.property_test", 45)); in CheckGetIntProperty()
118 EXPECT_EQ(T(45), android::base::GetIntProperty<T>("debug.libbase.property_test", 45)); in CheckGetIntProperty()
122 EXPECT_EQ(T(45), android::base::GetIntProperty<T>("debug.libbase.property_test", 45, 1, 2)); in CheckGetIntProperty()
124 EXPECT_EQ(T(1), android::base::GetIntProperty<T>("debug.libbase.property_test", 45, 1, 2)); in CheckGetIntProperty()
126 EXPECT_EQ(T(2), android::base::GetIntProperty<T>("debug.libbase.property_test", 45, 1, 2)); in CheckGetIntProperty()
128 EXPECT_EQ(T(45), android::base::GetIntProperty<T>("debug.libbase.property_test", 45, 1, 2)); in CheckGetIntProperty()
H A Dproperties.cpp84 T GetIntProperty(const std::string& key, T default_value, T min, T max) { in GetIntProperty() function
99 template int8_t GetIntProperty(const std::string&, int8_t, int8_t, int8_t);
100 template int16_t GetIntProperty(const std::string&, int16_t, int16_t, int16_t);
101 template int32_t GetIntProperty(const std::string&, int32_t, int32_t, int32_t);
102 template int64_t GetIntProperty(const std::string&, int64_t, int64_t, int64_t);
/aosp12/frameworks/base/libs/hwui/
H A DProperties.cpp43 return base::GetIntProperty("ro.hwui.render_ahead", 0); in render_ahead()
125 debugLevel = (DebugLevel)base::GetIntProperty(PROPERTY_DEBUG, (int)kDebugDisabled); in load()
141 targetCpuTimePercentage = base::GetIntProperty(PROPERTY_TARGET_CPU_TIME_PERCENTAGE, 70); in load()
/aosp12/bootable/recovery/recovery_ui/
H A Dwear_ui.cpp33 progress_bar_baseline_(android::base::GetIntProperty("ro.recovery.ui.progress_bar_baseline", in WearRecoveryUI()
35 menu_unusable_rows_(android::base::GetIntProperty("ro.recovery.ui.menu_unusable_rows", in WearRecoveryUI()
H A Dvr_ui.cpp27 android::base::GetIntProperty("ro.recovery.ui.stereo_offset", kDefaultStereoOffset)) {} in VrRecoveryUI()
H A Dui.cpp66 touch_low_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_low_threshold", in RecoveryUI()
68 touch_high_threshold_(android::base::GetIntProperty("ro.recovery.ui.touch_high_threshold", in RecoveryUI()
/aosp12/system/libbase/include/android-base/
H A Dproperties.h42 template <typename T> T GetIntProperty(const std::string& key,
101 return android::base::GetIntProperty("ro.hw_timeout_multiplier", 1); in HwTimeoutMultiplier()
/aosp12/packages/modules/SdkExtensions/derive_sdk/
H A Dderive_sdk_test.cpp76 int R = android::base::GetIntProperty("build.version.extensions.r", -1); in EXPECT_R()
81 int S = android::base::GetIntProperty("build.version.extensions.s", -1); in EXPECT_S()
/aosp12/system/libvintf/xsd/compatibilityMatrix/vts/
H A DValidateCompatibilityMatrix.cpp24 if (android::base::GetIntProperty("ro.product.first_api_level", 0) <= 28) { in TEST()
/aosp12/system/update_engine/aosp/
H A Dhardware_android.cc45 using android::base::GetIntProperty;
254 return GetIntProperty<int64_t>(kPropBuildDateUTC, 0); in GetBuildTimestamp()
/aosp12/system/core/init/
H A Dinit_test.cpp37 using android::base::GetIntProperty;
247 if (GetIntProperty("ro.product.first_api_level", 10000) < 30) { in TEST()
/aosp12/frameworks/av/media/mtp/
H A DMtpFfsCompatHandle.cpp123 mMaxWrite = android::base::GetIntProperty("sys.usb.ffs.max_write", USB_FFS_MAX_WRITE); in start()
124 mMaxRead = android::base::GetIntProperty("sys.usb.ffs.max_read", USB_FFS_MAX_READ); in start()
/aosp12/system/libvintf/xsd/halManifest/vts/
H A DValidateHalManifest.cpp45 if (android::base::GetIntProperty("ro.product.first_api_level", INT64_MAX) <= 28) { in TEST()
/aosp12/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp48 using android::base::GetIntProperty;
130 GetIntProperty("tombstoned.max_tombstone_count", 32), in for_tombstones()
137 GetIntProperty("tombstoned.max_anr_count", 64), in for_anrs()
/aosp12/bionic/tests/
H A Dgrp_pwd_test.cpp80 if (android::base::GetIntProperty("ro.product.first_api_level", 0) >= 30) { in check_passwd()
414 if (android::base::GetIntProperty("ro.product.first_api_level", 0) <= 29) { in expect_ids()
860 if (android::base::GetIntProperty("ro.product.first_api_level", 0) <= 28) { in TEST()
872 if (android::base::GetIntProperty("ro.product.first_api_level", 0) <= 28) { in TEST()
/aosp12/hardware/google/pixel/power-libperfmgr/aidl/
H A Dservice.cpp75 if (::android::base::GetIntProperty("vendor.powerhal.adpf.rate", -1) != -1) { in main()
H A DPowerHintSession.cpp105 : static_cast<int64_t>(::android::base::GetIntProperty<int64_t>(
110 : static_cast<int64_t>(::android::base::GetIntProperty<int64_t>(
115 : static_cast<int64_t>(::android::base::GetIntProperty<int64_t>(
/aosp12/system/server_configurable_flags/libflags/
H A Dserver_configurable_flags.cc102 int fail_count = android::base::GetIntProperty(ATTEMPTED_BOOT_COUNT_PROPERTY, 0); in ServerConfigurableFlagsReset()
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp865 android::base::GetIntProperty("ro.product.first_api_level", in halSupportsGpuPrivateMemory()
866 android::base::GetIntProperty("ro.build.version.sdk", in halSupportsGpuPrivateMemory()
869 android::base::GetIntProperty("ro.board.api_level", in halSupportsGpuPrivateMemory()
870 android::base::GetIntProperty("ro.board.first_api_level", in halSupportsGpuPrivateMemory()
/aosp12/frameworks/native/libs/renderengine/skia/debug/
H A DSkiaCapture.cpp50 base::GetIntProperty(PROPERTY_DEBUG_RENDERENGINE_CAPTURE_SKIA_MS, 0)); in tryCapture()
/aosp12/frameworks/av/media/libstagefright/omx/
H A DOMXStore.cpp71 if (::android::base::GetIntProperty("vendor.media.omx", int64_t(1)) == 0) { in addPlugin()

123