Home
last modified time | relevance | path

Searched refs:SystemProperties (Results 1 – 25 of 260) sorted by relevance

1234567891011

/frameworks/base/core/tests/systemproperties/src/android/os/
DSystemPropertiesTest.java35 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DLogpersistPreferenceControllerTest.java25 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 …]
DLogdSizePreferenceControllerTest.java42 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/
DBuild.java251 public static final String BASE_OS = SystemProperties.get("ro.build.version.base_os", "");
257 public static final String SECURITY_PATCH = SystemProperties.get(
276 public static final int SDK_INT = SystemProperties.getInt(
291 public static final int FIRST_SDK_INT = SystemProperties
312 public static final int PREVIEW_SDK_INT = SystemProperties.getInt(
332 @NonNull public static final String PREVIEW_SDK_FINGERPRINT = SystemProperties.get(
368 public static final int MIN_SUPPORTED_TARGET_SDK_INT = SystemProperties.getInt(
1024 String finger = SystemProperties.get("ro.build.fingerprint"); in deriveFingerprint()
1046 if (TextUtils.isEmpty(SystemProperties.get("ro.build.fingerprint"))) { in ensureFingerprintProperty()
1048 SystemProperties.set("ro.build.fingerprint", FINGERPRINT); in ensureFingerprintProperty()
[all …]
DSystemService.java52 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/core/java/com/android/internal/os/
DRoSystemProperties.java19 import android.os.SystemProperties;
29 SystemProperties.getInt("ro.debuggable", 0) == 1;
31 SystemProperties.getInt("ro.factorytest", 0);
33 SystemProperties.get("ro.control_privapp_permissions");
45 SystemProperties.getBoolean("ro.config.avoid_gfx_accel", false);
47 SystemProperties.getBoolean("ro.config.low_ram", false);
49 SystemProperties.getBoolean("ro.config.small_battery", false);
53 SystemProperties.getBoolean("ro.fw.system_user_split", false);
55 SystemProperties.getBoolean("ro.fw.mu.headless_system_user", false);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DAbstractLogpersistPreferenceController.java24 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 …]
DAbstractLogdSizePreferenceController.java21 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/
DSQLiteGlobal.java22 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()
DSQLiteDebug.java23 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/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java36 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/services/core/java/com/android/server/
DUserspaceRebootLogger.java29 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()
DEntropyMixer.java33 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()
DRescueParty.java28 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 …]
DZramWriteback.java26 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/
DFeatureFlagUtilsTest.java25 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/
DMockableSystemProperties.java19 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/opt/net/wifi/service/java/com/android/server/wifi/
DSystemPropertyService.java23 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/
DInputMethodSystemProperty.java23 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java22 import android.os.SystemProperties;
43 SystemProperties.getBoolean("debug.force_no_blanking", false);
45 SystemProperties.getBoolean("debug.force_blanking", false);
127 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); in getVibrateOnSigMotion()
131 return SystemProperties.getBoolean("doze.vibrate.pickup", false); in getVibrateOnPickup()
198 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean()
202 int value = SystemProperties.getInt(propName, mContext.getResources().getInteger(resId)); in getInt()
207 return SystemProperties.get(propName, mContext.getString(resId)); in getString()
/frameworks/base/core/java/android/app/
DPropertyInvalidatedCache.java19 import android.os.SystemProperties;
179 private volatile SystemProperties.Handle mPropertyHandle;
247 SystemProperties.Handle handle = mPropertyHandle; in getCurrentNonce()
249 handle = SystemProperties.find(mPropertyName); in getCurrentNonce()
387 SystemProperties.set(name, Long.toString(NONCE_DISABLED)); in disableSystemWide()
407 final long nonce = SystemProperties.getLong(name, NONCE_UNSET); in invalidateCache()
426 SystemProperties.set(name, newValueString); in invalidateCache()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzStateMachine.java23 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/services/core/java/com/android/server/notification/
DPropConfig.java20 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/server/
DNetworkManagementSocketTagger.java20 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/tests/mockingservicestests/src/com/android/server/display/color/
DDisplayTransformManagerTest.java31 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()

1234567891011