/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | BluetoothA2dpHwOffloadPreferenceController.java | 20 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()
|
D | BluetoothMaxConnectedAudioDevicesPreferenceController.java | 20 import android.os.SystemProperties; 71 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, newValueString); in onPreferenceChange() 80 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in updateState() 86 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, ""); in updateState() 103 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, ""); in onDeveloperOptionsSwitchDisabled()
|
D | BluetoothDeviceNoNamePreferenceController.java | 20 import android.os.SystemProperties; 51 SystemProperties.set(BLUETOOTH_SHOW_DEVICES_WITHOUT_NAMES_PROPERTY, in onPreferenceChange() 58 final boolean isEnabled = SystemProperties.getBoolean( in updateState() 66 SystemProperties.set(BLUETOOTH_SHOW_DEVICES_WITHOUT_NAMES_PROPERTY, "false"); in onDeveloperOptionsSwitchDisabled()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | BluetoothA2dpHwOffloadPreferenceController.java | 20 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()
|
D | EnableBlursPreferenceController.java | 20 import android.os.SystemProperties; 42 this(context, SystemProperties in EnableBlursPreferenceController() 60 SystemProperties.set(DISABLE_BLURS_SYSPROP, isDisabled ? "1" : "0"); in onPreferenceChange() 72 boolean isEnabled = !SystemProperties.getBoolean( in updateState() 80 SystemProperties.set(DISABLE_BLURS_SYSPROP, null); in onDeveloperOptionsSwitchDisabled()
|
D | BluetoothMaxConnectedAudioDevicesPreferenceController.java | 20 import android.os.SystemProperties; 71 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, newValueString); in onPreferenceChange() 80 final String currentValue = SystemProperties.get(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY); in updateState() 86 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, ""); in updateState() 103 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, ""); in onDeveloperOptionsSwitchDisabled()
|
D | BluetoothGabeldorschePreferenceController.java | 20 import android.os.SystemProperties; 54 SystemProperties.set(BLUETOOTH_GABELDORSCHE_PROPERTY, in onPreferenceChange() 61 final boolean isEnabled = SystemProperties.getBoolean( in updateState() 69 SystemProperties.set(BLUETOOTH_GABELDORSCHE_PROPERTY, "false"); in onDeveloperOptionsSwitchDisabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | CameraLaserSensorPreferenceControllerTest.java | 29 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()
|
D | BluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java | 29 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 …]
|
D | BluetoothAbsoluteVolumePreferenceControllerTest.java | 28 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()
|
D | BluetoothDeviceNoNamePreferenceControllerTest.java | 28 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()
|
D | DebugNonRectClipOperationsPreferenceControllerTest.java | 25 import android.os.SystemProperties; 74 String mode = SystemProperties.get( in onPreferenceChange_noValueSet_shouldSetEmptyString() 83 String mode = SystemProperties.get( in onPreferenceChange_option1Selected_shouldSetOption1() 90 SystemProperties.set(ThreadedRenderer.DEBUG_SHOW_NON_RECTANGULAR_CLIP_PROPERTY, in updateState_option1Set_shouldUpdatePreferenceToOption1() 101 SystemProperties.set(ThreadedRenderer.DEBUG_SHOW_NON_RECTANGULAR_CLIP_PROPERTY, in updateState_option2Set_shouldUpdatePreferenceToOption2() 112 SystemProperties.set(ThreadedRenderer.DEBUG_SHOW_NON_RECTANGULAR_CLIP_PROPERTY, null); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | ProfileGpuRenderingPreferenceControllerTest.java | 25 import android.os.SystemProperties; 74 String mode = SystemProperties.get(ThreadedRenderer.PROFILE_PROPERTY); in onPreferenceChange_noValueSet_shouldSetEmptyString() 82 String mode = SystemProperties.get(ThreadedRenderer.PROFILE_PROPERTY); in onPreferenceChange_option1Selected_shouldSetOption1() 88 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 98 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 108 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, null); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | DebugGpuOverdrawPreferenceControllerTest.java | 25 import android.os.SystemProperties; 75 String mode = SystemProperties.get(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY); in onPreferenceChange_noValueSet_shouldSetEmptyString() 83 String mode = SystemProperties.get(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY); in onPreferenceChange_option1Selected_shouldSetOption1() 89 SystemProperties.set(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY, mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 99 SystemProperties.set(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY, mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 109 SystemProperties.set(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY, null); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | HdcpCheckingPreferenceControllerTest.java | 30 import android.os.SystemProperties; 99 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[0]); in onPreferenceChange_setNeverCheckHdcp_shouldEnableNeverCheckHdcp() 106 assertThat(SystemProperties.get(HDCP_CHECKING_PROPERTY)).isEqualTo(mValues[1]); in onPreferenceChange_setCheckDrm_shouldEnableCheckDrm() 111 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[0]); in updateState_neverCheckHdcp_shouldEnableNeverCheckHdcp() 121 SystemProperties.set(HDCP_CHECKING_PROPERTY, mValues[1]); in updateState_checkDrm_shouldEnableCheckDrm() 131 SystemProperties.set(HDCP_CHECKING_PROPERTY, null); in updateState_noValueSet_shouldEnableCheckDrmAsDefault()
|
D | HardwareLayersUpdatesPreferenceControllerTest.java | 24 import android.os.SystemProperties; 61 final boolean mode = SystemProperties in onPreferenceChanged_settingEnabled_turnOnHardwareLayersUpdates() 71 final boolean mode = SystemProperties in onPreferenceChanged_settingDisabled_turnOffHardwareLayersUpdates() 79 SystemProperties in updateState_settingEnabled_preferenceShouldBeChecked() 88 SystemProperties in updateState_settingDisabled_preferenceShouldNotBeChecked()
|
D | CoolColorTemperaturePreferenceControllerTest.java | 28 import android.os.SystemProperties; 65 final boolean mode = SystemProperties.getBoolean(COLOR_TEMPERATURE_PROPERTY, false); in onPreferenceChanged_turnOnCoolColorTemperature() 73 final boolean mode = SystemProperties.getBoolean(COLOR_TEMPERATURE_PROPERTY, false); in onPreferenceChanged_turnOffCoolColorTemperature() 80 SystemProperties.set(COLOR_TEMPERATURE_PROPERTY, Boolean.toString(true)); in updateState_preferenceShouldBeChecked() 88 SystemProperties.set(COLOR_TEMPERATURE_PROPERTY, Boolean.toString(false)); in updateState_preferenceShouldNotBeChecked()
|
D | GpuViewUpdatesPreferenceControllerTest.java | 25 import android.os.SystemProperties; 64 final boolean mode = SystemProperties in onPreferenceChanged_settingEnabled_turnOnGpuViewUpdates() 74 final boolean mode = SystemProperties in onPreferenceChanged_settingDisabled_turnOffGpuViewUpdates() 82 SystemProperties.set(ThreadedRenderer.DEBUG_DIRTY_REGIONS_PROPERTY, Boolean.toString(true)); in updateState_settingEnabled_preferenceShouldBeChecked() 90 SystemProperties in updateState_settingDisabled_preferenceShouldNotBeChecked()
|
D | ForceDarkPreferenceControllerTest.java | 25 import android.os.SystemProperties; 64 final boolean mode = SystemProperties in onPreferenceChanged_settingEnabled_turnOnForceDark() 74 final boolean mode = SystemProperties in onPreferenceChanged_settingDisabled_turnOffForceDark() 82 SystemProperties.set(ThreadedRenderer.DEBUG_FORCE_DARK, Boolean.toString(true)); in updateState_settingEnabled_preferenceShouldBeChecked() 90 SystemProperties in updateState_settingDisabled_preferenceShouldNotBeChecked()
|
D | EnableBlursPreferenceControllerTest.java | 26 import android.os.SystemProperties; 68 final boolean mode = SystemProperties in onPreferenceChanged_settingEnabled_enableBlurs() 78 final boolean mode = SystemProperties in onPreferenceChanged_settingDisabled_disableBlurs() 87 SystemProperties.set(EnableBlursPreferenceController.DISABLE_BLURS_SYSPROP, "1"); in updateState_settingEnabled_preferenceShouldNotBeChecked() 95 SystemProperties.set(EnableBlursPreferenceController.DISABLE_BLURS_SYSPROP, "0"); in updateState_settingDisabled_preferenceShouldBeChecked()
|
D | BluetoothAvrcpVersionPreferenceControllerTest.java | 29 import android.os.SystemProperties; 81 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() 90 final String currentValue = SystemProperties.get(BLUETOOTH_AVRCP_VERSION_PROPERTY); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15() 97 SystemProperties.set(BLUETOOTH_AVRCP_VERSION_PROPERTY, mListValues[1]); in updateState_setAvrcp13_shouldSetPreferenceToAvrcp13() 107 SystemProperties.set(BLUETOOTH_AVRCP_VERSION_PROPERTY, mListValues[2]); in updateState_setAvrcp15_shouldSetPreferenceToAvrcp15()
|
D | BluetoothMapVersionPreferenceControllerTest.java | 27 import android.os.SystemProperties; 73 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap13_shouldEnableMap13() 80 final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY); in onPreferenceChange_setMap14_shouldEnableMap14() 85 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[1]); in updateState_setMap13_shouldSetPreferenceToMap13() 94 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[2]); in updateState_setMap14_shouldSetPreferenceToMap14()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/featureflags/ |
D | FeatureFlagPersistentTest.java | 21 import android.os.SystemProperties; 72 SystemProperties.set(FeatureFlagUtils.FFLAG_PREFIX + flagName, ""); in cleanup() 73 SystemProperties.set(FeatureFlagUtils.FFLAG_OVERRIDE_PREFIX + flagName, ""); in cleanup() 74 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + flagName, ""); in cleanup() 114 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, "true"); in isEnabled_sysPropEnabled_shouldReturnTrue() 125 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, "false"); in isEnabled_sysPropDisabled_shouldReturnFalse() 136 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, ""); in setEnabled_sysPropTrue_shouldSetValues() 140 …assertThat(SystemProperties.get(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME)).isEqualTo("t… in setEnabled_sysPropTrue_shouldSetValues() 149 SystemProperties.set(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME, ""); in setEnabled_sysPropFalse_shouldSetValues() 153 …assertThat(SystemProperties.get(FeatureFlagUtils.PERSIST_PREFIX + TEST_FEATURE_NAME)).isEqualTo("f… in setEnabled_sysPropFalse_shouldSetValues()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | RegulatoryInfoDisplayActivityTest.java | 21 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | BootSoundPreferenceControllerTest.java | 25 import android.os.SystemProperties; 80 SystemProperties.set(BootSoundPreferenceController.PROPERTY_BOOT_SOUNDS, "true"); in displayPreference_bootSoundEnabled_shouldCheckedPreference() 88 SystemProperties.set(BootSoundPreferenceController.PROPERTY_BOOT_SOUNDS, "0"); in displayPreference_bootSoundDisabled_shouldUncheckedPreference() 101 assertThat(SystemProperties.get( in handlePreferenceTreeClick_preferenceChecked_shouldEnableBootSound() 111 assertThat(SystemProperties.get( in handlePreferenceTreeClick_preferenceUnchecked_shouldDisableBootSound()
|