Home
last modified time | relevance | path

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

12345678910>>...20

/aosp12/frameworks/base/core/tests/systemproperties/src/android/os/
H A DSystemPropertiesTest.java54 SystemProperties.set(KEY, ""); in testProperties()
59 SystemProperties.set(KEY, null); in testProperties()
63 SystemProperties.set(KEY, "SA"); in testProperties()
70 SystemProperties.set(KEY, ""); in testProperties()
75 SystemProperties.set(KEY, "SA"); in testProperties()
76 SystemProperties.set(KEY, null); in testProperties()
85 SystemProperties.set(KEY, setVal); in testInt()
91 SystemProperties.set(KEY, setVal); in testLong()
99 SystemProperties.Handle handle = SystemProperties.find("doesnotexist_2341431"); in testHandle()
109 SystemProperties.set(KEY, "1"); in testHandle()
[all …]
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
H A DLogpersistPreferenceControllerTest.java25 import android.os.SystemProperties;
83 SystemProperties.set("ro.debuggable", ""); 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()
126 SystemProperties.set( in testUpdateLogpersistValues_kernel()
129 SystemProperties.set( in testUpdateLogpersistValues_kernel()
138 SystemProperties.set( in testUpdateLogpersistValues_mainSecuritykernel()
[all …]
H A 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()
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()
160 SystemProperties.set(SELECT_LOGD_SIZE_PROPERTY, "" /* new value */); in updateLogdSizeValues_noValueSet_shouldSetDefaultTo64K()
171 SystemProperties.set(SELECT_LOGD_SIZE_PROPERTY, "" /* new value */); in updateLogdSizeValues_noValueSetLowRamSet_shouldSetDefaultTo64K()
[all …]
/aosp12/frameworks/base/core/java/android/os/
H A DBuild.java301 public static final String SECURITY_PATCH = SystemProperties.get(
333 public static final int SDK_INT = SystemProperties.getInt(
349 public static final int DEVICE_INITIAL_SDK_INT = SystemProperties
1158 String finger = SystemProperties.get("ro.build.fingerprint"); in deriveFingerprint()
1199 SystemProperties.getInt("ro.hw_timeout_multiplier", 1);
1207 SystemProperties.getBoolean("ro.treble.enabled", false);
1382 SystemProperties.getInt("ro.debuggable", 0) == 1;
1418 SystemProperties.getBoolean("ro.boot.container", false);
1443 return SystemProperties.get(property, UNKNOWN); in getString()
1447 String value = SystemProperties.get(property); in getStringList()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A 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);
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
H A 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()
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()
214 String currentTag = SystemProperties.get( in writeLogpersistOption()
242 SystemProperties.set(SELECT_LOGPERSIST_PROPERTY_BUFFER, newValue.toString()); in writeLogpersistOption()
[all …]
H A 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()
175 SystemProperties.set(SELECT_LOGD_TAG_PROPERTY, newTag); in writeLogdSizeOption()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/development/
H A DBluetoothA2dpHwOffloadPreferenceController.java20 import android.os.SystemProperties;
58 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in updateState()
61 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in updateState()
73 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in onDeveloperOptionsSwitchDisabled()
76 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, "false"); in onDeveloperOptionsSwitchDisabled()
82 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in isDefaultValue()
84 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in isDefaultValue()
90 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in onA2dpHwDialogConfirmed()
91 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(!offloadDisabled)); in onA2dpHwDialogConfirmed()
/aosp12/frameworks/base/core/java/android/database/sqlite/
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A 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()
H A DEntropyMixer.java27 import android.os.SystemProperties;
161 out.println(SystemProperties.get("ro.serialno")); in addDeviceSpecificEntropy()
162 out.println(SystemProperties.get("ro.bootmode")); in addDeviceSpecificEntropy()
163 out.println(SystemProperties.get("ro.baseband")); in addDeviceSpecificEntropy()
164 out.println(SystemProperties.get("ro.carrier")); in addDeviceSpecificEntropy()
165 out.println(SystemProperties.get("ro.bootloader")); in addDeviceSpecificEntropy()
166 out.println(SystemProperties.get("ro.hardware")); in addDeviceSpecificEntropy()
167 out.println(SystemProperties.get("ro.revision")); in addDeviceSpecificEntropy()
168 out.println(SystemProperties.get("ro.build.fingerprint")); in addDeviceSpecificEntropy()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DRegulatoryInfoDisplayActivityTest.java21 import android.os.SystemProperties;
46 SystemProperties.set(SKU_PROP_KEY, ""); in getResourceId_noSkuProperty_shouldReturnDefaultLabel()
54 SystemProperties.set(SKU_PROP_KEY, "sku"); in getResourceId_noCooProperty_shouldReturnSkuLabel()
55 SystemProperties.set(COO_PROP_KEY, ""); in getResourceId_noCooProperty_shouldReturnSkuLabel()
63 SystemProperties.set(SKU_PROP_KEY, "sku1"); in getResourceId_hasSkuAndCooProperties_shouldReturnCooLabel()
64 SystemProperties.set(COO_PROP_KEY, "coo"); in getResourceId_hasSkuAndCooProperties_shouldReturnCooLabel()
72 SystemProperties.set(SKU_PROP_KEY, "sku"); in getResourceId_noCorrespondingCooLabel_shouldReturnSkuLabel()
73 SystemProperties.set(COO_PROP_KEY, "unknown"); in getResourceId_noCorrespondingCooLabel_shouldReturnSkuLabel()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
H A DCameraLaserSensorPreferenceControllerTest.java29 import android.os.SystemProperties;
70 SystemProperties.set(CameraLaserSensorPreferenceController.BUILD_TYPE, USERDEBUG_BUILD); in isAvailable_withUserdebugBuild_shouldReturnTrue()
77 SystemProperties.set(CameraLaserSensorPreferenceController.BUILD_TYPE, ENG_BUILD); in isAvailable_withEngBuild_shouldReturnTrue()
84 SystemProperties.set(CameraLaserSensorPreferenceController.BUILD_TYPE, USER_BUILD); in isAvailable_withUserBuild_shouldReturnTrue()
91 SystemProperties.set(CameraLaserSensorPreferenceController.PROPERTY_CAMERA_LASER_SENSOR, in updateState_cameraLaserSensorEnabled_shouldCheckedPreference()
93 SystemProperties.set(CameraLaserSensorPreferenceController.BUILD_TYPE, USERDEBUG_BUILD); in updateState_cameraLaserSensorEnabled_shouldCheckedPreference()
102 SystemProperties.set(CameraLaserSensorPreferenceController.PROPERTY_CAMERA_LASER_SENSOR, in updateState_cameraLaserSensorEnabled_shouldUncheckedPreference()
104 SystemProperties.set( in updateState_cameraLaserSensorEnabled_shouldUncheckedPreference()
117 SystemProperties.get( in onPreferenceChange_preferenceChecked_shouldEnableCameraLaserSensor()
127 SystemProperties.get( in onPreferenceChange__preferenceUnchecked_shouldDisableCameraLaserSensor()
H A DBluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java29 import android.os.SystemProperties;
100 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in verifyResourceSizeAndRange()
102 assertThat(SystemProperties.getInt(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, in verifyResourceSizeAndRange()
116 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in onPreferenceChange_setNumberOfDevices()
125 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
132 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)) in updateState_NumberOfDevicesUpdated_shouldSetPreference()
139 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, "garbage"); in updateState_noValueSet_shouldSetDefaultTo1device()
146 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in updateState_noValueSet_shouldSetDefaultTo1device()
158 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
168 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, initialValue); in onDeveloperOptionsSwitchEnabled_shouldEnablePreference()
[all …]
H A DBluetoothAbsoluteVolumePreferenceControllerTest.java28 import android.os.SystemProperties;
66 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDisableAbsoluteVolume()
76 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDisableAbsoluteVolume()
84 SystemProperties.set(BLUETOOTH_DISABLE_ABSOLUTE_VOLUME_PROPERTY, Boolean.toString(true)); in updateState_settingEnabled_preferenceShouldBeChecked()
92 SystemProperties.set(BLUETOOTH_DISABLE_ABSOLUTE_VOLUME_PROPERTY, Boolean.toString(false)); in updateState_settingDisabled_preferenceShouldNotBeChecked()
102 final boolean mode = SystemProperties.getBoolean( in onDeveloperOptionsDisabled_shouldDisablePreference()
H A DBluetoothDeviceNoNamePreferenceControllerTest.java28 import android.os.SystemProperties;
66 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDeviceNoName()
77 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDeviceNoName()
85 SystemProperties.set(BLUETOOTH_SHOW_DEVICES_WITHOUT_NAMES_PROPERTY, in updateState_settingEnabled_preferenceShouldBeChecked()
94 SystemProperties.set(BLUETOOTH_SHOW_DEVICES_WITHOUT_NAMES_PROPERTY, in updateState_settingDisabled_preferenceShouldNotBeChecked()
105 final boolean mode = SystemProperties.getBoolean( in onDeveloperOptionsDisabled_shouldDisablePreference()
/aosp12/frameworks/base/core/tests/featureflagtests/src/android/util/
H A 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()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/development/featureflags/
H A DFeatureFlagPersistentTest.java21 import android.os.SystemProperties;
73 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + flagName, ""); in cleanup()
74 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + flagName, ""); in cleanup()
75 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + flagName, ""); in cleanup()
115 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, "true"); in isEnabled_sysPropEnabled_shouldReturnTrue()
126 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, "false"); in isEnabled_sysPropDisabled_shouldReturnFalse()
137 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, ""); in setEnabled_sysPropTrue_shouldSetValues()
141 assertThat(SystemProperties.get(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME)) in setEnabled_sysPropTrue_shouldSetValues()
151 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, ""); in setEnabled_sysPropFalse_shouldSetValues()
155 assertThat(SystemProperties.get(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME)) in setEnabled_sysPropFalse_shouldSetValues()
/aosp12/bionic/libc/system_properties/
H A Dsystem_properties.cpp61 bool SystemProperties::Init(const char* filename) { in Init()
97 bool SystemProperties::AreaInit(const char* filename, bool* fsetxattr_failed) { in AreaInit()
111 uint32_t SystemProperties::AreaSerial() { in AreaSerial()
125 const prop_info* SystemProperties::Find(const char* name) { in Find()
174 int SystemProperties::Read(const prop_info* pi, char* name, char* value) { in Read()
197 void SystemProperties::ReadCallback(const prop_info* pi, in ReadCallback()
218 int SystemProperties::Get(const char* name, char* value) { in Get()
229 int SystemProperties::Update(prop_info* pi, const char* value, unsigned int len) { in Update()
273 int SystemProperties::Add(const char* name, unsigned int namelen, const char* value, in Add()
312 uint32_t SystemProperties::WaitAny(uint32_t old_serial) { in WaitAny()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DOneHandedActionPullDownPrefControllerTest.java22 import android.os.SystemProperties;
71 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
81 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
91 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
101 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
111 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
122 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/development/transcode/
H A DTranscodeDefaultOptionPreferenceControllerTest.java22 import android.os.SystemProperties;
48 SystemProperties.set(TRANSCODE_DEFAULT_SYS_PROP_KEY, "true"); in isChecked_whenSysPropSet_shouldReturnFalse()
54 SystemProperties.set(TRANSCODE_DEFAULT_SYS_PROP_KEY, "false"); in isChecked_whenSysPropUnset_shouldReturnTrue()
62 SystemProperties.getBoolean(TRANSCODE_DEFAULT_SYS_PROP_KEY, true)).isFalse(); in setChecked_withTrue_shouldUnsetSysProp()
69 SystemProperties.getBoolean(TRANSCODE_DEFAULT_SYS_PROP_KEY, false)).isTrue(); in setChecked_withFalse_shouldSetSysProp()
H A DTranscodeGlobalTogglePreferenceControllerTest.java22 import android.os.SystemProperties;
51 SystemProperties.set(TRANSCODE_ENABLED_PROP_KEY, "false"); in isChecked_whenDisabled_shouldReturnFalse()
57 SystemProperties.set(TRANSCODE_ENABLED_PROP_KEY, "true"); in isChecked_whenEnabled_shouldReturnTrue()
67 assertThat(SystemProperties.getBoolean(TRANSCODE_ENABLED_PROP_KEY, false)).isTrue(); in setChecked_withTrue_shouldUpdateSystemProperty()
76 assertThat(SystemProperties.getBoolean(TRANSCODE_ENABLED_PROP_KEY, true)).isFalse(); in setChecked_withFalse_shouldUpdateSystemProperty()
H A DTranscodeUserControlPreferenceControllerTest.java22 import android.os.SystemProperties;
48 SystemProperties.set(TRANSCODE_USER_CONTROL_SYS_PROP_KEY, "true"); in isChecked_whenSysPropSet_shouldReturnTrue()
54 SystemProperties.set(TRANSCODE_USER_CONTROL_SYS_PROP_KEY, "false"); in isChecked_whenSysPropUnset_shouldReturnFalse()
62 SystemProperties.getBoolean(TRANSCODE_USER_CONTROL_SYS_PROP_KEY, false)).isTrue(); in setChecked_withTrue_shouldSetSysProp()
69 SystemProperties.getBoolean(TRANSCODE_USER_CONTROL_SYS_PROP_KEY, true)).isFalse(); in setChecked_withFalse_shouldUnsetSysProp()
H A DTranscodeDisableCachePreferenceControllerTest.java24 import android.os.SystemProperties;
48 SystemProperties.set(TRANSCODE_DISABLE_CACHE_SYS_PROP_KEY, "true"); in isChecked_whenSysPropSet_shouldReturnTrue()
54 SystemProperties.set(TRANSCODE_DISABLE_CACHE_SYS_PROP_KEY, "false"); in isChecked_whenSysPropUnset_shouldReturnFalse()
62 SystemProperties.getBoolean(TRANSCODE_DISABLE_CACHE_SYS_PROP_KEY, false)).isTrue(); in setChecked_withTrue_shouldSetSysProp()
69 SystemProperties.getBoolean(TRANSCODE_DISABLE_CACHE_SYS_PROP_KEY, true)).isFalse(); in setChecked_withFalse_shouldUnsetSysProp()
H A DTranscodeNotificationPreferenceControllerTest.java24 import android.os.SystemProperties;
47 SystemProperties.set(TRANSCODE_NOTIFICATION_SYS_PROP_KEY, "true"); in isChecked_whenSysPropSet_shouldReturnTrue()
53 SystemProperties.set(TRANSCODE_NOTIFICATION_SYS_PROP_KEY, "false"); in isChecked_whenSysPropUnset_shouldReturnFalse()
61 SystemProperties.getBoolean(TRANSCODE_NOTIFICATION_SYS_PROP_KEY, false)).isTrue(); in setChecked_withTrue_shouldSetSysProp()
68 SystemProperties.getBoolean(TRANSCODE_NOTIFICATION_SYS_PROP_KEY, true)).isFalse(); in setChecked_withFalse_shouldUnsetSysProp()

12345678910>>...20