Home
last modified time | relevance | path

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

12345678910>>...15

/packages/apps/Settings/tests/unit/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverEnableAngleAsSystemDriverControllerJUnitTest.java35 import android.os.SystemProperties;
149 SystemProperties.addChangeCallback(propertyChangeSignal.getCountDownJob()); in onPreferenceChange_switchOn_shouldEnableAngleAsSystemDriver()
154 final String systemEGLDriver = SystemProperties.get(PROPERTY_PERSISTENT_GRAPHICS_EGL); in onPreferenceChange_switchOn_shouldEnableAngleAsSystemDriver()
159 SystemProperties.removeChangeCallback(propertyChangeSignal.getCountDownJob()); in onPreferenceChange_switchOn_shouldEnableAngleAsSystemDriver()
169 SystemProperties.addChangeCallback(propertyChangeSignal.getCountDownJob()); in onPreferenceChange_switchOff_shouldDisableAngleAsSystemDriver()
174 final String systemEGLDriver = SystemProperties.get(PROPERTY_PERSISTENT_GRAPHICS_EGL); in onPreferenceChange_switchOff_shouldDisableAngleAsSystemDriver()
179 SystemProperties.removeChangeCallback(propertyChangeSignal.getCountDownJob()); in onPreferenceChange_switchOff_shouldDisableAngleAsSystemDriver()
209 SystemProperties.addChangeCallback(propertyChangeSignal1.getCountDownJob()); in onDeveloperOptionSwitchDisabled_angleShouldNotBeSystemGLESDriver()
215 final String systemEGLDriver = SystemProperties.get(PROPERTY_PERSISTENT_GRAPHICS_EGL); in onDeveloperOptionSwitchDisabled_angleShouldNotBeSystemGLESDriver()
219 SystemProperties.removeChangeCallback(propertyChangeSignal1.getCountDownJob()); in onDeveloperOptionSwitchDisabled_angleShouldNotBeSystemGLESDriver()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBluetoothLeAudioHwOffloadPreferenceControllerTest.java35 import android.os.SystemProperties;
78 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in onLeAudioHwDialogConfirmedAsLeAudioOffloadDisabled_shouldChangeProperty()
82 final boolean mode = SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, false); in onLeAudioHwDialogConfirmedAsLeAudioOffloadDisabled_shouldChangeProperty()
88 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(true)); in onLeAudioHwDialogConfirmedAsLeAudioOffloadEnabled_shouldChangeProperty()
92 final boolean mode2 = SystemProperties.getBoolean( in onLeAudioHwDialogConfirmedAsLeAudioOffloadEnabled_shouldChangeProperty()
99 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in onLeAudioHwDialogCanceled_shouldNotChangeProperty()
103 final boolean mode = SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, false); in onLeAudioHwDialogCanceled_shouldNotChangeProperty()
109 SystemProperties.set(LE_AUDIO_OFFLOAD_SUPPORTED_PROPERTY, Boolean.toString(true)); in asA2dpOffloadDisabled_shouldNotSwitchLeAudioOffloadStatus()
110 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(true)); in asA2dpOffloadDisabled_shouldNotSwitchLeAudioOffloadStatus()
112 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in asA2dpOffloadDisabled_shouldNotSwitchLeAudioOffloadStatus()
[all …]
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()
DBluetoothA2dpHwOffloadPreferenceControllerTest.java30 import android.os.SystemProperties;
68 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(true)); in onA2dpHwDialogConfirmedAsA2dpOffloadDisabled_shouldChangeProperty()
72 final boolean mode = SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in onA2dpHwDialogConfirmedAsA2dpOffloadDisabled_shouldChangeProperty()
78 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in onA2dpHwDialogConfirmedAsA2dpOffloadEnabled_shouldChangeProperty()
79 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in onA2dpHwDialogConfirmedAsA2dpOffloadEnabled_shouldChangeProperty()
84 final boolean a2dpMode = SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, true); in onA2dpHwDialogConfirmedAsA2dpOffloadEnabled_shouldChangeProperty()
85 final boolean leAudioMode = SystemProperties in onA2dpHwDialogConfirmedAsA2dpOffloadEnabled_shouldChangeProperty()
93 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(false)); in onA2dpHwDialogCanceled_shouldNotChangeProperty()
97 final boolean mode = SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in onA2dpHwDialogCanceled_shouldNotChangeProperty()
DBluetoothLeAudioModePreferenceControllerTest.java29 import android.os.SystemProperties;
79 SystemProperties.set(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]); in onRebootDialogConfirmed_changeLeAudioMode_shouldSetLeAudioMode()
83 assertThat(SystemProperties.get(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]) in onRebootDialogConfirmed_changeLeAudioMode_shouldSetLeAudioMode()
90 SystemProperties.set(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]); in onRebootDialogConfirmed_notChangeLeAudioMode_shouldNotSetLeAudioMode()
94 assertThat(SystemProperties.get(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]) in onRebootDialogConfirmed_notChangeLeAudioMode_shouldNotSetLeAudioMode()
101 SystemProperties.set(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]); in onRebootDialogCanceled_shouldNotSetLeAudioMode()
105 assertThat(SystemProperties.get(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[0]) in onRebootDialogCanceled_shouldNotSetLeAudioMode()
111 SystemProperties.set(LE_AUDIO_DYNAMIC_SWITCHER_MODE_PROPERTY, mListValues[1]); in onBluetoothTurnOff_shouldNotChangeLeAudioMode()
116 final String mode = SystemProperties in onBluetoothTurnOff_shouldNotChangeLeAudioMode()
DBluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java31 import android.os.SystemProperties;
105 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in verifyResourceSizeAndRange()
107 assertThat(SystemProperties.getInt(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, in verifyResourceSizeAndRange()
121 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in onPreferenceChange_setNumberOfDevices()
130 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
137 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)) in updateState_NumberOfDevicesUpdated_shouldSetPreference()
144 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, "garbage"); in updateState_noValueSet_shouldSetDefaultTo1device()
151 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in updateState_noValueSet_shouldSetDefaultTo1device()
163 assertThat(SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY)).isEmpty(); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
173 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, initialValue); in onDeveloperOptionsSwitchEnabled_shouldEnablePreference()
[all …]
DNfcVerboseVendorLogPreferenceControllerTest.java32 import android.os.SystemProperties;
69 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_DISABLED); in onNfcRebootDialogConfirmed_nfcVendorLogDisabled_shouldChangeProperty()
74 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogConfirmed_nfcVendorLogDisabled_shouldChangeProperty()
80 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_ENABLED); in onNfcRebootDialogConfirmed_nfcVendorLogEnabled_shouldChangeProperty()
85 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogConfirmed_nfcVendorLogEnabled_shouldChangeProperty()
91 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_DISABLED); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
96 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
DNfcSnoopLogPreferenceControllerTest.java32 import android.os.SystemProperties;
69 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FILTERED); in onNfcRebootDialogConfirmed_nfcSnoopLogDisabled_shouldChangeProperty()
74 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogConfirmed_nfcSnoopLogDisabled_shouldChangeProperty()
80 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FULL); in onNfcRebootDialogConfirmed_nfcSnoopLogEnabled_shouldChangeProperty()
85 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogConfirmed_nfcSnoopLogEnabled_shouldChangeProperty()
91 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FILTERED); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
96 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in onNfcRebootDialogCanceled_shouldNotChangeProperty()
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()
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()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothLeAudioHwOffloadPreferenceController.java25 import android.os.SystemProperties;
84 SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_SUPPORTED_PROPERTY, false); in updateState()
86 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in updateState()
89 SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, true); in updateState()
107 SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_SUPPORTED_PROPERTY, false); in onDeveloperOptionsSwitchDisabled()
109 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in onDeveloperOptionsSwitchDisabled()
112 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, "true"); in onDeveloperOptionsSwitchDisabled()
123 !SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false) in isDefaultValue()
124 && SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_SUPPORTED_PROPERTY, false); in isDefaultValue()
126 SystemProperties.getBoolean(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, false); in isDefaultValue()
[all …]
DBluetoothA2dpHwOffloadPreferenceController.java22 import android.os.SystemProperties;
66 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in updateState()
69 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in updateState()
81 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in onDeveloperOptionsSwitchDisabled()
84 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, "false"); in onDeveloperOptionsSwitchDisabled()
90 SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false); in isDefaultValue()
92 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in isDefaultValue()
104 SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false); in onRebootDialogConfirmed()
105 SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(!offloadDisabled)); in onRebootDialogConfirmed()
107 SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY, in onRebootDialogConfirmed()
DNfcVerboseVendorLogPreferenceController.java20 import android.os.SystemProperties;
72 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in updateState()
84 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_DISABLED); in onDeveloperOptionsSwitchDisabled()
96 final String currentValue = SystemProperties.get(NFC_VERBOSE_VENDOR_LOG_PROPERTY); in isDefaultValue()
112 final String currentValue = SystemProperties in onNfcRebootDialogConfirmed()
115 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_ENABLED); in onNfcRebootDialogConfirmed()
117 SystemProperties.set(NFC_VERBOSE_VENDOR_LOG_PROPERTY, VERBOSE_VENDOR_LOG_DISABLED); in onNfcRebootDialogConfirmed()
DNfcSnoopLogPreferenceController.java20 import android.os.SystemProperties;
72 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in updateState()
83 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FILTERED); in onDeveloperOptionsSwitchDisabled()
95 final String currentValue = SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY); in isDefaultValue()
112 SystemProperties.get(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FILTERED); in onNfcRebootDialogConfirmed()
114 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FULL); in onNfcRebootDialogConfirmed()
116 SystemProperties.set(NFC_NFCSNOOP_LOG_MODE_PROPERTY, NFCSNOOP_MODE_FILTERED); in onNfcRebootDialogConfirmed()
DBluetoothLeAudioAllowListPreferenceController.java23 import android.os.SystemProperties;
56 SystemProperties.getBoolean(LE_AUDIO_CONNECTION_BY_DEFAULT_PROPERTY, true); in BluetoothLeAudioAllowListPreferenceController()
73 SystemProperties.set(BYPASS_LE_AUDIO_ALLOWLIST_PROPERTY, in onPreferenceChange()
95 SystemProperties.getBoolean(BYPASS_LE_AUDIO_ALLOWLIST_PROPERTY, false); in updateState()
103 SystemProperties.getBoolean(BYPASS_LE_AUDIO_ALLOWLIST_PROPERTY, false); in onDeveloperOptionsSwitchDisabled()
105 SystemProperties.set(BYPASS_LE_AUDIO_ALLOWLIST_PROPERTY, Boolean.toString(false)); in onDeveloperOptionsSwitchDisabled()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/deviceinfo/regulatory/
DRegulatoryInfoTest.kt21 import android.os.SystemProperties
50 .mockStatic(SystemProperties::class.java) in setUp()
62 doReturn("").`when` { SystemProperties.get(KEY_SKU) } in getRegulatoryInfo_noSkuProperty_shouldReturnDefaultLabel()
71 doReturn("sku").`when` { SystemProperties.get(KEY_SKU) } in getResourceId_noCooProperty_shouldReturnSkuLabel()
72 doReturn("").`when` { SystemProperties.get(KEY_COO) } in getResourceId_noCooProperty_shouldReturnSkuLabel()
81 doReturn("sku1").`when` { SystemProperties.get(KEY_SKU) } in getResourceId_hasSkuAndCooProperties_shouldReturnCooLabel()
82 doReturn("coo").`when` { SystemProperties.get(KEY_COO) } in getResourceId_hasSkuAndCooProperties_shouldReturnCooLabel()
91 doReturn("sku").`when` { SystemProperties.get(KEY_SKU) } in getResourceId_noCorrespondingCooLabel_shouldReturnSkuLabel()
92 doReturn("unknown").`when` { SystemProperties.get(KEY_COO) } in getResourceId_noCorrespondingCooLabel_shouldReturnSkuLabel()
101 doReturn(COO).`when` { SystemProperties.get(KEY_COO) } in getCoo()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/fixture/
DTestableSystemPropertiesTest.java21 import android.os.SystemProperties;
48 assertThat(SystemProperties.getInt(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_intValue()
54 assertThat(SystemProperties.getInt(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_intValue()
71 assertThat(SystemProperties.getLong(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_longValue()
77 assertThat(SystemProperties.getLong(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_longValue()
94 assertThat(SystemProperties.getBoolean(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_booleanValue()
100 assertThat(SystemProperties.getBoolean(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_booleanValue()
117 assertThat(SystemProperties.get(systemPropertyKey, defaultValue)).isEqualTo(defaultValue); in testForceToReturnDefaultValue_stringValue()
122 assertThat(SystemProperties.get(systemPropertyKey, defaultValue)) in testForceToReturnDefaultValue_stringValue()
140 assertThat(SystemProperties.get(systemPropertyKey)).isEqualTo(emptyString); in testGetterWithoutDefaultValue()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/development/featureflags/
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()
/packages/apps/Settings/tests/unit/src/com/android/settings/development/bluetooth/
DBluetoothStackLogPreferenceControllerTest.java31 import android.os.SystemProperties;
108 final String persistedLogLevel = SystemProperties.get( in onPreferenceChanged_enableBluetoothStackVerboseLogLevel()
110 final String logLevel = SystemProperties.get(BLUETOOTH_BTSTACK_LOG_MODE_PROPERTY); in onPreferenceChanged_enableBluetoothStackVerboseLogLevel()
129 final String persistedLogLevel = SystemProperties.get( in onPreferenceChanged_enableBluetoothStackDebugLogLevel()
131 final String logLevel = SystemProperties.get(BLUETOOTH_BTSTACK_LOG_MODE_PROPERTY); in onPreferenceChanged_enableBluetoothStackDebugLogLevel()
150 final String persistedLogLevel = SystemProperties.get( in onPreferenceChanged_enableBluetoothStackInfoLogLevel()
152 final String logLevel = SystemProperties.get(BLUETOOTH_BTSTACK_LOG_MODE_PROPERTY); in onPreferenceChanged_enableBluetoothStackInfoLogLevel()
171 final String persistedLogLevel = SystemProperties.get( in onPreferenceChanged_enableBluetoothStackWarnLogLevel()
173 final String logLevel = SystemProperties.get(BLUETOOTH_BTSTACK_LOG_MODE_PROPERTY); in onPreferenceChanged_enableBluetoothStackWarnLogLevel()
193 final String persistedLogLevel = SystemProperties.get( in onPreferenceChanged_enableBluetoothStackErrorLogLevel()
[all …]
/packages/apps/Settings/src/com/android/settings/security/
DMemtagHelper.java19 import android.os.SystemProperties;
33 return TextUtils.equals("force_off", SystemProperties.get(DEVICE_CONFIG_PROP)); in isForcedOff()
37 return TextUtils.equals("force_on", SystemProperties.get(DEVICE_CONFIG_PROP)); in isForcedOn()
41 String modes[] = SystemProperties.get("arm64.memtag.bootctl", "").split(","); in isChecked()
47 SystemProperties.set("arm64.memtag.bootctl", newString); in setChecked()
54 return SystemProperties.getBoolean("ro.arm64.memtag.bootctl_settings_toggle", false) in getAvailabilityStatus()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetEsimPreferenceControllerTest.java35 import android.os.SystemProperties;
86 SystemProperties.class, withSettings().lenient()).startMocking(); in setUp()
109 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyTrue_available()
117 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyTrue_available_zoneWrite()
127 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyTrue_available_zoneRead()
137 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyTrue_available_zoneHidden()
147 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyFalse_unsupportedOnDevice()
155 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyFalse_unsupportedOnDevice_zoneWrite()
165 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyFalse_unsupportedOnDevice_zoneRead()
175 ExtendedMockito.when(SystemProperties.get(eq(KEY_SHOW_ESIM_RESET_CHECKBOX), anyString())) in getAvailabilityStatus_showEsimPropertyFalse_unsupportedOnDevice_zoneHidden()
/packages/modules/SdkExtensions/java/android/os/ext/
DSdkExtensions.java22 import android.os.SystemProperties;
55 R_EXTENSION_INT = SystemProperties.getInt("build.version.extensions.r", 0);
56 S_EXTENSION_INT = SystemProperties.getInt("build.version.extensions.s", 0);
57 T_EXTENSION_INT = SystemProperties.getInt("build.version.extensions.t", 0);
58 U_EXTENSION_INT = SystemProperties.getInt("build.version.extensions.u", 0);
59 V_EXTENSION_INT = SystemProperties.getInt("build.version.extensions.v", 0);
61 SystemProperties.getInt("build.version.extensions.ad_services", 0);
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DOneHandedActionPullDownPrefControllerTest.java22 import android.os.SystemProperties;
72 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
83 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
93 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
103 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
113 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
124 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
/packages/services/Car/car-lib/src/com/android/car/internal/os/
DCarSystemProperties.java20 import android.os.SystemProperties;
43 return Optional.ofNullable(tryParseInteger(SystemProperties.get( in getBootUserOverrideId()
49 return Optional.ofNullable(Boolean.valueOf(SystemProperties.get(PROP_USER_HAL_ENABLED))); in getUserHalEnabled()
54 return Optional.ofNullable(tryParseInteger(SystemProperties.get(PROP_USER_HAL_TIMEOUT))); in getUserHalTimeout()
59 return Optional.ofNullable(tryParseInteger(SystemProperties.get( in getDevicePolicyManagerTimeout()
/packages/apps/Settings/tests/unit/src/com/android/settings/development/
DMockModemPreferenceControllerTest.java26 import android.os.SystemProperties;
65 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingDisabled_shouldNotAllowedMockModem()
75 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingEnabled_shouldAllowMockModem()
83 SystemProperties.set(ALLOW_MOCK_MODEM_PROPERTY, in updateState_settingEnabled_preferenceShouldBeChecked()
92 SystemProperties.set(ALLOW_MOCK_MODEM_PROPERTY, in updateState_settingDisabled_preferenceShouldNotBeChecked()
102 final boolean mode = SystemProperties.getBoolean( in onDeveloperOptionsDisabled_shouldDisablePreference()

12345678910>>...15