/frameworks/base/core/tests/systemproperties/src/android/os/ |
D | SystemPropertiesTest.java | 34 SystemProperties.set(PERSIST_KEY, Long.toString(i)); in testStressPersistPropertyConsistency() 35 long ret = SystemProperties.getLong(PERSIST_KEY, -1); in testStressPersistPropertyConsistency() 43 SystemProperties.set(KEY, Long.toString(i)); in testStressMemoryPropertyConsistency() 44 long ret = SystemProperties.getLong(KEY, -1); in testStressMemoryPropertyConsistency() 53 SystemProperties.set(KEY, ""); in testProperties() 54 value = SystemProperties.get(KEY, "default"); in testProperties() 58 SystemProperties.set(KEY, null); in testProperties() 59 value = SystemProperties.get(KEY, "default"); in testProperties() 62 SystemProperties.set(KEY, "SA"); in testProperties() 63 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/core/java/android/os/ |
D | Build.java | 243 public static final String BASE_OS = SystemProperties.get("ro.build.version.base_os", ""); 248 public static final String SECURITY_PATCH = SystemProperties.get( 267 public static final int SDK_INT = SystemProperties.getInt( 282 public static final int FIRST_SDK_INT = SystemProperties 303 public static final int PREVIEW_SDK_INT = SystemProperties.getInt( 323 @NonNull public static final String PREVIEW_SDK_FINGERPRINT = SystemProperties.get( 358 public static final int MIN_SUPPORTED_TARGET_SDK_INT = SystemProperties.getInt( 1009 String finger = SystemProperties.get("ro.build.fingerprint"); in deriveFingerprint() 1031 if (TextUtils.isEmpty(SystemProperties.get("ro.build.fingerprint"))) { in ensureFingerprintProperty() 1033 SystemProperties.set("ro.build.fingerprint", FINGERPRINT); in ensureFingerprintProperty() [all …]
|
D | SystemService.java | 51 SystemProperties.addChangeCallback(new Runnable() { in SystemProperties.addChangeCallback() 64 SystemProperties.set("ctl.start", name); in start() 70 SystemProperties.set("ctl.stop", name); in stop() 75 SystemProperties.set("ctl.restart", name); in restart() 82 final String rawState = SystemProperties.get("init.svc." + service); in getState()
|
/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 | 22 import android.os.SystemProperties; 83 && SystemProperties.getBoolean("db.log.detailed", false); 106 SystemProperties.getInt(NoPreloadHolder.SLOW_QUERY_THRESHOLD_PROP, in shouldLogSlowQuery() 108 SystemProperties.getInt(NoPreloadHolder.SLOW_QUERY_THRESHOLD_UID_PROP, in shouldLogSlowQuery()
|
/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/services/tests/mockingservicestests/src/com/android/server/ |
D | RescuePartyTest.java | 36 import android.os.SystemProperties; 84 .spyStatic(SystemProperties.class) in setUp() 104 ).when(() -> SystemProperties.set(anyString(), anyString())); in setUp() 113 ).when(() -> SystemProperties.getBoolean(anyString(), anyBoolean())); in setUp() 122 ).when(() -> SystemProperties.getInt(anyString(), anyInt())); in setUp() 131 ).when(() -> SystemProperties.getLong(anyString(), anyLong())); in setUp() 145 SystemProperties.set(RescueParty.PROP_RESCUE_LEVEL, in setUp() 147 SystemProperties.set(RescueParty.PROP_RESCUE_BOOT_COUNT, Integer.toString(0)); in setUp() 148 SystemProperties.set(RescueParty.PROP_ENABLE_RESCUE, Boolean.toString(true)); in setUp() 162 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithExecutionForAllRescueLevels() [all …]
|
/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/services/core/java/com/android/server/ |
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 | RescueParty.java | 28 import android.os.SystemProperties; 97 if (SystemProperties.getBoolean(PROP_ENABLE_RESCUE, false)) { in isDisabled() 116 if (SystemProperties.getBoolean(PROP_DISABLE_RESCUE, false)) { in isDisabled() 159 return SystemProperties.getInt(PROP_RESCUE_LEVEL, LEVEL_NONE) == LEVEL_FACTORY_RESET; in isAttemptingFactoryReset() 199 SystemProperties.getInt(PROP_RESCUE_LEVEL, LEVEL_NONE) + 1, in incrementRescueLevel() 201 SystemProperties.set(PROP_RESCUE_LEVEL, Integer.toString(level)); in incrementRescueLevel() 209 final int level = SystemProperties.getInt(PROP_RESCUE_LEVEL, LEVEL_NONE); in executeRescueLevel() 333 return SystemProperties.getInt(PROP_RESCUE_BOOT_COUNT, 0); in getCount() 338 SystemProperties.set(PROP_RESCUE_BOOT_COUNT, Integer.toString(count)); in setCount() 343 return SystemProperties.getLong(PROP_RESCUE_BOOT_START, 0); in getStart() [all …]
|
D | DynamicSystemService.java | 29 import android.os.SystemProperties; 79 if (!"running".equals(SystemProperties.get("init.svc.gsid"))) { in getGsiService() 80 SystemProperties.set("ctl.start", "gsid"); in getGsiService() 116 String path = SystemProperties.get("os.aot.path"); in startInstallation() 155 boolean gsidWasRunning = "running".equals(SystemProperties.get("init.svc.gsid")); in isInUse() 162 SystemProperties.set("ctl.stop", "gsid"); in isInUse()
|
D | RecoverySystemService.java | 27 import android.os.SystemProperties; 102 SystemProperties.set("ctl.start", "uncrypt"); in uncrypt() 205 final String uncryptService = SystemProperties.get(INIT_SERVICE_UNCRYPT); in checkAndWaitForUncryptService() 206 final String setupBcbService = SystemProperties.get(INIT_SERVICE_SETUP_BCB); in checkAndWaitForUncryptService() 207 final String clearBcbService = SystemProperties.get(INIT_SERVICE_CLEAR_BCB); in checkAndWaitForUncryptService() 268 SystemProperties.set("ctl.start", "setup-bcb"); in setupOrClearBcb() 270 SystemProperties.set("ctl.start", "clear-bcb"); in setupOrClearBcb()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SystemPropertyService.java | 23 return android.os.SystemProperties.get(key, defaultValue); in get() 28 android.os.SystemProperties.set(key, val); in set() 33 return android.os.SystemProperties.getBoolean(key, defaultValue); in getBoolean() 38 return android.os.SystemProperties.get(key, defaultValue); in getString()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSystemProperty.java | 23 import android.os.SystemProperties; 63 SystemProperties.get(PROP_DEBUG_MULTI_CLIENT_IME, "")); in getMultiClientImeComponentName() 69 SystemProperties.get(PROP_PROD_MULTI_CLIENT_IME, "")); in getMultiClientImeComponentName() 104 PER_PROFILE_IME_ENABLED = SystemProperties.getBoolean(PROP_DEBUG_PER_PROFILE_IME, true);
|
/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 | 21 import android.os.SystemProperties; 106 SystemProperties.getInt("ro.nitz_update_spacing", NITZ_UPDATE_SPACING_DEFAULT); in DeviceState() 108 SystemProperties.getInt("ro.nitz_update_diff", NITZ_UPDATE_DIFF_DEFAULT); in DeviceState() 132 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeParameters.java | 22 import android.os.SystemProperties; 42 SystemProperties.getBoolean("debug.force_no_blanking", false); 44 SystemProperties.getBoolean("debug.force_blanking", false); 141 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); in getVibrateOnSigMotion() 145 return SystemProperties.getBoolean("doze.vibrate.pickup", false); in getVibrateOnPickup() 212 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean() 216 int value = SystemProperties.getInt(propName, mContext.getResources().getInteger(resId)); in getInt() 221 return SystemProperties.get(propName, mContext.getString(resId)); in getString()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | HighRefreshRateBlacklist.java | 20 import android.os.SystemProperties; 41 return SystemProperties.getInt(key, def); in create() 46 return SystemProperties.get(key); in create()
|
/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() 71 return SystemProperties.get("ro.serialno", Build.UNKNOWN); in getSerialForPackage()
|