/frameworks/base/core/tests/systemproperties/src/android/os/ |
D | SystemPropertiesTest.java | 35 SystemProperties.set(PERSIST_KEY, Long.toString(i)); in testStressPersistPropertyConsistency() 36 long ret = SystemProperties.getLong(PERSIST_KEY, -1); in testStressPersistPropertyConsistency() 44 SystemProperties.set(KEY, Long.toString(i)); in testStressMemoryPropertyConsistency() 45 long ret = SystemProperties.getLong(KEY, -1); in testStressMemoryPropertyConsistency() 54 SystemProperties.set(KEY, ""); in testProperties() 55 value = SystemProperties.get(KEY, "default"); in testProperties() 59 SystemProperties.set(KEY, null); in testProperties() 60 value = SystemProperties.get(KEY, "default"); in testProperties() 63 SystemProperties.set(KEY, "SA"); in testProperties() 64 value = SystemProperties.get(KEY, "default"); in testProperties() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | RoSystemProperties.java | 19 import android.os.SystemProperties; 28 SystemProperties.getInt("ro.debuggable", 0) == 1; 30 SystemProperties.getInt("ro.factorytest", 0); 32 SystemProperties.get("ro.control_privapp_permissions"); 40 SystemProperties.getBoolean( 53 SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false); 55 SystemProperties.getBoolean("ro.config.low_ram", false); 57 SystemProperties.getBoolean("ro.config.small_battery", false); 61 SystemProperties.getBoolean("ro.fw.system_user_split", false); 63 SystemProperties.getBoolean("ro.fw.mu.headless_system_user", false);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | LogpersistPreferenceControllerTest.java | 25 import android.os.SystemProperties; 58 SystemProperties.set("ro.debuggable", "1"); in setUp() 83 SystemProperties.set("ro.debuggable", ""); in testAvailable() 85 SystemProperties.set("ro.debuggable", "1"); in testAvailable() 87 SystemProperties.set("ro.debuggable", "0"); in testAvailable() 93 SystemProperties.set( in testUpdateLogpersistValues_null() 102 SystemProperties.set( in testUpdateLogpersistValues_all() 105 SystemProperties.set( in testUpdateLogpersistValues_all() 114 SystemProperties.set( in testUpdateLogpersistValues_defaultSecurityKernel() 117 SystemProperties.set( in testUpdateLogpersistValues_defaultSecurityKernel() [all …]
|
D | LogdSizePreferenceControllerTest.java | 42 import android.os.SystemProperties; 96 SystemProperties.set(LOW_RAM_CONFIG_PROPERTY_KEY, "true"); in testUpdateLogdSizeValues_lowRamEntries() 103 SystemProperties.set( in testUpdateLogdSizeValues_silence() 106 SystemProperties.set( in testUpdateLogdSizeValues_silence() 118 final String tag = SystemProperties.get(SELECT_LOGD_TAG_PROPERTY); in onPreferenceChange_noTagsSizeValueOff_shouldSetTagAndSnetTagAndSet64KSize() 119 final String logSize = SystemProperties.get(SELECT_LOGD_SIZE_PROPERTY); in onPreferenceChange_noTagsSizeValueOff_shouldSetTagAndSnetTagAndSet64KSize() 120 final String snetTag = SystemProperties.get(SELECT_LOGD_SNET_TAG_PROPERTY); in onPreferenceChange_noTagsSizeValueOff_shouldSetTagAndSnetTagAndSet64KSize() 131 final String tag = SystemProperties.get(SELECT_LOGD_TAG_PROPERTY); in onPreferenceChange_noTagsSizeValue64K_shouldNotSetTagAndSet64KSize() 132 final String logSize = SystemProperties.get(SELECT_LOGD_SIZE_PROPERTY); in onPreferenceChange_noTagsSizeValue64K_shouldNotSetTagAndSet64KSize() 133 final String snetTag = SystemProperties.get(SELECT_LOGD_SNET_TAG_PROPERTY); in onPreferenceChange_noTagsSizeValue64K_shouldNotSetTagAndSet64KSize() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | RescuePartyTest.java | 41 import android.os.SystemProperties; 107 .spyStatic(SystemProperties.class) in setUp() 130 ).when(() -> SystemProperties.set(anyString(), anyString())); in setUp() 139 ).when(() -> SystemProperties.getBoolean(anyString(), anyBoolean())); in setUp() 148 ).when(() -> SystemProperties.getInt(anyString(), anyInt())); in setUp() 157 ).when(() -> SystemProperties.getLong(anyString(), anyLong())); in setUp() 172 SystemProperties.set(RescueParty.PROP_RESCUE_LEVEL, in setUp() 174 SystemProperties.set(RescueParty.PROP_RESCUE_BOOT_COUNT, Integer.toString(0)); in setUp() 175 SystemProperties.set(RescueParty.PROP_ENABLE_RESCUE, Boolean.toString(true)); in setUp() 176 SystemProperties.set(PROP_DEVICE_CONFIG_DISABLE_FLAG, Boolean.toString(false)); in setUp() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Build.java | 263 public static final String BASE_OS = SystemProperties.get("ro.build.version.base_os", ""); 269 public static final String SECURITY_PATCH = SystemProperties.get( 288 public static final int SDK_INT = SystemProperties.getInt( 303 public static final int FIRST_SDK_INT = SystemProperties 324 public static final int PREVIEW_SDK_INT = SystemProperties.getInt( 344 @NonNull public static final String PREVIEW_SDK_FINGERPRINT = SystemProperties.get( 380 public static final int MIN_SUPPORTED_TARGET_SDK_INT = SystemProperties.getInt( 1036 String finger = SystemProperties.get("ro.build.fingerprint"); in deriveFingerprint() 1058 if (TextUtils.isEmpty(SystemProperties.get("ro.build.fingerprint"))) { in ensureFingerprintProperty() 1060 SystemProperties.set("ro.build.fingerprint", FINGERPRINT); in ensureFingerprintProperty() [all …]
|
D | SystemService.java | 52 SystemProperties.addChangeCallback(new Runnable() { in SystemProperties.addChangeCallback() 65 SystemProperties.set("ctl.start", name); in start() 71 SystemProperties.set("ctl.stop", name); in stop() 76 SystemProperties.set("ctl.restart", name); in restart() 83 final String rawState = SystemProperties.get("init.svc." + service); in getState()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/ |
D | AbstractLogpersistPreferenceController.java | 24 import android.os.SystemProperties; 79 return TextUtils.equals(SystemProperties.get("ro.debuggable", "0"), "1"); in isAvailable() 125 = SystemProperties.get(ACTUAL_LOGPERSIST_PROPERTY_ENABLE); in onLogdSizeSettingUpdate() 142 String currentValue = SystemProperties.get(ACTUAL_LOGPERSIST_PROPERTY); in updateLogpersistValues() 146 String currentBuffers = SystemProperties.get(ACTUAL_LOGPERSIST_PROPERTY_BUFFER); in updateLogpersistValues() 179 SystemProperties.set(ACTUAL_LOGPERSIST_PROPERTY, SELECT_LOGPERSIST_PROPERTY_CLEAR); in updateLogpersistValues() 186 SystemProperties.set(SELECT_LOGPERSIST_PROPERTY_BUFFER, ""); in setLogpersistOff() 188 SystemProperties.set(ACTUAL_LOGPERSIST_PROPERTY_BUFFER, ""); in setLogpersistOff() 189 SystemProperties.set(SELECT_LOGPERSIST_PROPERTY, ""); in setLogpersistOff() 190 SystemProperties.set(ACTUAL_LOGPERSIST_PROPERTY, in setLogpersistOff() [all …]
|
D | AbstractLogdSizePreferenceController.java | 21 import android.os.SystemProperties; 95 String defaultValue = SystemProperties.get(SELECT_LOGD_DEFAULT_SIZE_PROPERTY); in defaultLogdSizeValue() 97 if (SystemProperties.get("ro.config.low_ram").equals("true")) { in defaultLogdSizeValue() 108 String currentTag = SystemProperties.get(SELECT_LOGD_TAG_PROPERTY); in updateLogdSizeValues() 109 String currentValue = SystemProperties.get(SELECT_LOGD_SIZE_PROPERTY); in updateLogdSizeValues() 124 if (SystemProperties.get("ro.config.low_ram").equals("true")) { in updateLogdSizeValues() 147 String currentTag = SystemProperties.get(SELECT_LOGD_TAG_PROPERTY); in writeLogdSizeOption() 160 String snetValue = SystemProperties.get(SELECT_LOGD_SNET_TAG_PROPERTY); in writeLogdSizeOption() 162 snetValue = SystemProperties.get(SELECT_LOGD_RUNTIME_SNET_TAG_PROPERTY); in writeLogdSizeOption() 164 SystemProperties.set(SELECT_LOGD_SNET_TAG_PROPERTY, DEFAULT_SNET_TAG); in writeLogdSizeOption() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteGlobal.java | 22 import android.os.SystemProperties; 80 return SystemProperties.getInt("debug.sqlite.pagesize", sDefaultPageSize); in getDefaultPageSize() 88 return SystemProperties.get("debug.sqlite.journalmode", in getDefaultJournalMode() 97 return SystemProperties.getInt("debug.sqlite.journalsizelimit", in getJournalSizeLimit() 111 return SystemProperties.get("debug.sqlite.syncmode", in getDefaultSyncMode() 125 return SystemProperties.get("debug.sqlite.wal.syncmode", in getWALSyncMode() 134 int value = SystemProperties.getInt("debug.sqlite.wal.autocheckpoint", in getWALAutoCheckpoint() 144 int value = SystemProperties.getInt("debug.sqlite.wal.poolsize", in getWALConnectionPoolSize() 155 return SystemProperties.getInt("debug.sqlite.idle_connection_timeout", in getIdleConnectionTimeout() 172 return SystemProperties.getInt("debug.sqlite.wal.truncatesize", in getWALTruncateSize()
|
D | SQLiteDebug.java | 23 import android.os.SystemProperties; 84 && SystemProperties.getBoolean("db.log.detailed", false); 107 SystemProperties.getInt(NoPreloadHolder.SLOW_QUERY_THRESHOLD_PROP, in shouldLogSlowQuery() 109 SystemProperties.getInt(NoPreloadHolder.SLOW_QUERY_THRESHOLD_UID_PROP, in shouldLogSlowQuery()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UserspaceRebootLogger.java | 29 import android.os.SystemProperties; 66 SystemProperties.set(USERSPACE_REBOOT_SHOULD_LOG_PROPERTY, "1"); in noteUserspaceRebootWasRequested() 67 SystemProperties.set(USERSPACE_REBOOT_LAST_STARTED_PROPERTY, in noteUserspaceRebootWasRequested() 84 SystemProperties.set(USERSPACE_REBOOT_LAST_FINISHED_PROPERTY, in noteUserspaceRebootSuccess() 99 return SystemProperties.getBoolean(USERSPACE_REBOOT_SHOULD_LOG_PROPERTY, false); in shouldLogUserspaceRebootEvent() 120 durationMillis = SystemProperties.getLong(USERSPACE_REBOOT_LAST_FINISHED_PROPERTY, 0) in logEventAsync() 121 - SystemProperties.getLong(USERSPACE_REBOOT_LAST_STARTED_PROPERTY, 0); in logEventAsync() 136 SystemProperties.set(USERSPACE_REBOOT_SHOULD_LOG_PROPERTY, ""); in logEventAsync() 141 if (SystemProperties.getLong(USERSPACE_REBOOT_LAST_STARTED_PROPERTY, -1) != -1) { in computeOutcome() 144 String reason = TextUtils.emptyIfNull(SystemProperties.get(LAST_BOOT_REASON_PROPERTY, "")); in computeOutcome()
|
D | EntropyMixer.java | 33 import android.os.SystemProperties; 175 out.println(SystemProperties.get("ro.serialno")); in addDeviceSpecificEntropy() 176 out.println(SystemProperties.get("ro.bootmode")); in addDeviceSpecificEntropy() 177 out.println(SystemProperties.get("ro.baseband")); in addDeviceSpecificEntropy() 178 out.println(SystemProperties.get("ro.carrier")); in addDeviceSpecificEntropy() 179 out.println(SystemProperties.get("ro.bootloader")); in addDeviceSpecificEntropy() 180 out.println(SystemProperties.get("ro.hardware")); in addDeviceSpecificEntropy() 181 out.println(SystemProperties.get("ro.revision")); in addDeviceSpecificEntropy() 182 out.println(SystemProperties.get("ro.build.fingerprint")); in addDeviceSpecificEntropy()
|
D | ZramWriteback.java | 26 import android.os.SystemProperties; 125 int nextWbDelay = SystemProperties.getInt(PERIODIC_WB_DELAY_PROP, 24); in schedNextWriteback() 126 boolean forceWb = SystemProperties.getBoolean(FORCE_WRITEBACK_PROP, false); in schedNextWriteback() 170 int markIdleDelay = SystemProperties.getInt(MARK_IDLE_DELAY_PROP, 20); in scheduleZramWriteback() 171 int firstWbDelay = SystemProperties.getInt(FIRST_WB_DELAY_PROP, 180); in scheduleZramWriteback() 172 boolean forceWb = SystemProperties.getBoolean(FORCE_WRITEBACK_PROP, false); in scheduleZramWriteback()
|
/frameworks/base/core/tests/featureflagtests/src/android/util/ |
D | FeatureFlagUtilsTest.java | 25 import android.os.SystemProperties; 58 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, ""); in cleanup() 59 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, ""); in cleanup() 71 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_adb_override_shouldReturnTrue() 72 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, "true"); in testGetFlag_adb_override_shouldReturnTrue() 79 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_settings_override_shouldReturnTrue() 80 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + TEST_FEATURE_NAME, "false"); in testGetFlag_settings_override_shouldReturnTrue() 93 assertEquals(SystemProperties.get(FeatureFlagUtils.FFLAG_PREFIX + TEST_FEATURE_NAME, null), in testSetEnabled_shouldSetOverrideFlag() 95 assertTrue(Boolean.parseBoolean(SystemProperties.get( in testSetEnabled_shouldSetOverrideFlag()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MockableSystemProperties.java | 19 import android.os.SystemProperties; 24 return SystemProperties.get(key); in get() 28 return SystemProperties.getInt(key, def); in getInt() 32 return SystemProperties.getBoolean(key, def); in getBoolean() 36 SystemProperties.set(key, value); in set()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | BlurUtils.java | 20 import android.os.SystemProperties; 24 private static boolean mBlurSupportedSysProp = SystemProperties 26 private static boolean mBlurDisabledSysProp = SystemProperties
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeParameters.java | 22 import android.os.SystemProperties; 46 SystemProperties.getBoolean("debug.force_no_blanking", false); 48 SystemProperties.getBoolean("debug.force_blanking", false); 128 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); in getVibrateOnSigMotion() 132 return SystemProperties.getBoolean("doze.vibrate.pickup", false); in getVibrateOnPickup() 194 return SystemProperties.getBoolean(propName, mResources.getBoolean(resId)); in getBoolean() 198 int value = SystemProperties.getInt(propName, mResources.getInteger(resId)); in getInt()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SystemPropertyService.java | 23 return android.os.SystemProperties.get(key, defaultValue); in get() 28 return android.os.SystemProperties.getBoolean(key, defaultValue); in getBoolean() 33 return android.os.SystemProperties.get(key, defaultValue); in getString()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodSystemProperty.java | 22 import android.os.SystemProperties; 48 SystemProperties.get(PROP_DEBUG_MULTI_CLIENT_IME, "")); in getMultiClientImeComponentName() 54 SystemProperties.get(PROP_PROD_MULTI_CLIENT_IME, "")); in getMultiClientImeComponentName()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PropConfig.java | 20 import android.os.SystemProperties; 26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); in getInt() 30 final String prop = SystemProperties.get(propName, UNSET); in getStringArray()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzStateMachine.java | 23 import android.os.SystemProperties; 138 SystemProperties.getInt("ro.nitz_update_spacing", NITZ_UPDATE_SPACING_DEFAULT); in DeviceStateImpl() 140 SystemProperties.getInt("ro.nitz_update_diff", NITZ_UPDATE_DIFF_DEFAULT); in DeviceStateImpl() 156 String ignoreNitz = SystemProperties.get("gsm.ignore-nitz"); in getIgnoreNitz()
|
/frameworks/base/core/java/com/android/server/ |
D | NetworkManagementSocketTagger.java | 20 import android.os.SystemProperties; 91 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in tagSocketFd() 113 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in unTagSocketFd() 127 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in setKernelCounterSet() 137 if (SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false)) { in resetKernelUidStats()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | DeviceIdentifiersPolicyService.java | 25 import android.os.SystemProperties; 62 return SystemProperties.get("ro.serialno", Build.UNKNOWN); in getSerial() 72 return SystemProperties.get("ro.serialno", Build.UNKNOWN); in getSerialForPackage()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/color/ |
D | DisplayTransformManagerTest.java | 31 import android.os.SystemProperties; 64 .spyStatic(SystemProperties.class) in setUp() 73 ).when(() -> SystemProperties.set(anyString(), any())); in setUp() 142 SystemProperties.set(PERSISTENT_PROPERTY_COMPOSITION_COLOR_MODE, magicPropertyValue); in setColorMode_withoutColorSpace() 156 SystemProperties.set(PERSISTENT_PROPERTY_COMPOSITION_COLOR_MODE, magicPropertyValue); in setColorMode_withColorSpace()
|