/frameworks/base/core/tests/systemproperties/src/android/os/ |
D | SystemPropertiesTest.java | 53 SystemProperties.set(PERSIST_KEY, Long.toString(i)); in testStressPersistPropertyConsistency() 54 long ret = SystemProperties.getLong(PERSIST_KEY, -1); in testStressPersistPropertyConsistency() 63 SystemProperties.set(KEY, Long.toString(i)); in testStressMemoryPropertyConsistency() 64 long ret = SystemProperties.getLong(KEY, -1); in testStressMemoryPropertyConsistency() 74 SystemProperties.set(KEY, ""); in testProperties() 75 value = SystemProperties.get(KEY, "default"); in testProperties() 79 SystemProperties.set(KEY, null); in testProperties() 80 value = SystemProperties.get(KEY, "default"); in testProperties() 83 SystemProperties.set(KEY, "SA"); in testProperties() 84 value = SystemProperties.get(KEY, "default"); in testProperties() [all …]
|
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/ |
D | DesktopModeStatus.java | 21 import android.os.SystemProperties; 35 private static final boolean IS_VEILED_RESIZE_ENABLED = SystemProperties.getBoolean( 41 public static final boolean IS_DISPLAY_CHANGE_ENABLED = SystemProperties.getBoolean( 47 private static final boolean USE_WINDOW_SHADOWS = SystemProperties.getBoolean( 55 private static final boolean USE_WINDOW_SHADOWS_FOCUSED_WINDOW = SystemProperties.getBoolean( 61 private static final boolean USE_ROUNDED_CORNERS = SystemProperties.getBoolean( 67 private static final boolean ENFORCE_DEVICE_RESTRICTIONS = SystemProperties.getBoolean( 72 SystemProperties.getBoolean("persist.wm.debug.desktop_mode_density_enabled", false); 76 SystemProperties.getInt("persist.wm.debug.desktop_mode_density", 284); 97 private static final int MAX_TASK_LIMIT = SystemProperties.getInt(
|
/frameworks/base/core/java/com/android/internal/os/ |
D | RoSystemProperties.java | 19 import android.os.SystemProperties; 29 SystemProperties.getInt("ro.debuggable", 0) == 1; 31 SystemProperties.getInt("ro.factorytest", 0); 33 SystemProperties.get("ro.control_privapp_permissions"); 35 SystemProperties.getBoolean("ro.support_one_handed_mode", /* def= */ false); 47 SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false); 49 SystemProperties.getBoolean("ro.config.low_ram", false); 51 SystemProperties.getBoolean("ro.config.small_battery", false); 63 SystemProperties.getBoolean("ro.fw.mu.headless_system_user", false);
|
D | ZygoteConfig.java | 19 import android.os.SystemProperties; 82 return SystemProperties.get( in getDeviceConfig() 99 return SystemProperties.getInt(PROPERTY_PREFIX_SYSTEM + name, defaultValue); in getInt() 112 return SystemProperties.getBoolean(PROPERTY_PREFIX_SYSTEM + name, defaultValue); in getBool()
|
/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/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()
|
/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/os/ |
D | Build.java | 366 public static final String BASE_OS = SystemProperties.get("ro.build.version.base_os", ""); 372 public static final String SECURITY_PATCH = SystemProperties.get( 404 public static final int SDK_INT = SystemProperties.getInt( 420 public static final int DEVICE_INITIAL_SDK_INT = SystemProperties 441 public static final int PREVIEW_SDK_INT = SystemProperties.getInt( 461 @NonNull public static final String PREVIEW_SDK_FINGERPRINT = SystemProperties.get( 513 public static final int MIN_SUPPORTED_TARGET_SDK_INT = SystemProperties.getInt( 1267 String finger = SystemProperties.get("ro.build.fingerprint"); in deriveFingerprint() 1289 if (TextUtils.isEmpty(SystemProperties.get("ro.build.fingerprint"))) { in ensureFingerprintProperty() 1291 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/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 | SystemTimeZone.java | 23 import android.os.SystemProperties; 90 String timezoneProperty = SystemProperties.get(TIME_ZONE_SYSTEM_PROPERTY); in initializeTimeZoneSettingsIfRequired() 137 SystemProperties.set(TIME_ZONE_SYSTEM_PROPERTY, timeZoneId); in setTimeZoneId() 162 SystemProperties.set( in setTimeZoneConfidence() 175 int confidence = SystemProperties.getInt( in getTimeZoneConfidence() 185 return SystemProperties.get(TIME_ZONE_SYSTEM_PROPERTY); in getTimeZoneId()
|
D | EntropyMixer.java | 27 import android.os.SystemProperties; 256 b.append(SystemProperties.get("ro.serialno")).append('\n'); in getDeviceSpecificInformation() 257 b.append(SystemProperties.get("ro.bootmode")).append('\n'); in getDeviceSpecificInformation() 258 b.append(SystemProperties.get("ro.baseband")).append('\n'); in getDeviceSpecificInformation() 259 b.append(SystemProperties.get("ro.carrier")).append('\n'); in getDeviceSpecificInformation() 260 b.append(SystemProperties.get("ro.bootloader")).append('\n'); in getDeviceSpecificInformation() 261 b.append(SystemProperties.get("ro.hardware")).append('\n'); in getDeviceSpecificInformation() 262 b.append(SystemProperties.get("ro.revision")).append('\n'); in getDeviceSpecificInformation() 263 b.append(SystemProperties.get("ro.build.fingerprint")).append('\n'); in getDeviceSpecificInformation()
|
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/packages/SystemUI/src/com/android/systemui/flags/ |
D | SystemPropertiesHelper.kt | 19 import android.os.SystemProperties 27 return SystemProperties.get(name) in get() 31 return SystemProperties.get(name, def) in get() 35 return SystemProperties.getBoolean(name, default) in getBoolean() 39 SystemProperties.set(name, if (value) "1" else "0") in setBoolean() 43 SystemProperties.set(name, value) in set()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/shared/ |
D | NotificationMinimalismPrototype.kt | 19 import android.os.SystemProperties 29 SystemProperties.getInt("persist.notification_minimalism_prototype.version", 2) in <lambda>() 53 SystemProperties.getBoolean( 63 SystemProperties.getInt( 104 SystemProperties.getBoolean( in isUnexpectedlyInLegacyMode()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LogTest.java | 19 import android.os.SystemProperties; 50 SystemProperties.set(PROPERTY_TAG, null); in testIsLoggable() 52 String value = SystemProperties.get(PROPERTY_TAG); in testIsLoggable() 64 SystemProperties.set(PROPERTY_TAG, "VERBOSE"); in testIsLoggable() 75 SystemProperties.set(PROPERTY_TAG, "DEBUG"); in testIsLoggable() 86 SystemProperties.set(PROPERTY_TAG, "INFO"); in testIsLoggable() 97 SystemProperties.set(PROPERTY_TAG, "WARN"); in testIsLoggable() 108 SystemProperties.set(PROPERTY_TAG, "ERROR"); in testIsLoggable() 119 SystemProperties.set(PROPERTY_TAG, "ASSERT"); in testIsLoggable() 130 SystemProperties.set(PROPERTY_TAG, "SUPPRESS"); in testIsLoggable() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzStateMachine.java | 23 import android.os.SystemProperties; 158 SystemProperties.getInt("ro.nitz_update_spacing", in DeviceStateImpl() 161 SystemProperties.getInt("ro.nitz_update_diff", NITZ_UPDATE_DIFF_MILLIS_DEFAULT); in DeviceStateImpl() 163 SystemProperties.getInt("ro.nitz_network_disconnect_retention", in DeviceStateImpl() 187 String ignoreNitz = SystemProperties.get("gsm.ignore-nitz"); in getIgnoreNitz()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/properties/ |
D | ProdBubbleProperties.kt | 19 import android.os.SystemProperties 26 SystemProperties.getBoolean("persist.wm.debug.bubble_bar", false) 33 SystemProperties.getBoolean("persist.wm.debug.bubble_bar", false) in refresh()
|
/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/base/core/java/com/android/internal/config/sysui/ |
D | SystemUiSystemPropertiesFlags.java | 22 import android.os.SystemProperties; 249 return SystemProperties.getBoolean(key, defaultValue); in getBoolean() 256 return SystemProperties.getInt(flag.mSysPropKey, flag.mDefaultIntValue); in getIntValue() 258 return SystemProperties.getInt(flag.mSysPropKey, getIntValue(flag.mDebugDefault)); in getIntValue() 265 return SystemProperties.get(flag.mSysPropKey, flag.mDefaultStringValue); in getStringValue() 267 return SystemProperties.get(flag.mSysPropKey, getStringValue(flag.mDebugDefault)); in getStringValue()
|
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/utils/ |
D | DebugUtils.java | 20 import android.os.SystemProperties; 56 String bypassResponse = SystemProperties.get(PROP_FAKE_EAP_AKA_RESPONSE); in getBypassEapAkaResponse() 72 return SystemProperties.getBoolean(PROP_PII_LOGGABLE, false); in isPiiLoggable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayer.kt | 3 import android.os.SystemProperties in <lambda>() 78 val intensityString = SystemProperties.get("persist.unfold.haptics_scale", "0.5") in <lambda>() 85 SystemProperties.get("persist.unfold.haptics_scale_end_tick", "1.0") in <lambda>() 91 val count = SystemProperties.get("persist.unfold.primitives_count", "18") in <lambda>()
|