/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | BluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java | 60 private CharSequence[] mListValues; field in BluetoothMaxConnectedAudioDevicesPreferenceControllerTest 81 mListValues = mPreference.getEntryValues(); in setup() 88 assertThat(mListEntries.length).isEqualTo(mListValues.length); in verifyResourceSizeAndRange() 96 assertThat(mPreference.getValue()).isEqualTo(mListValues[0]); in verifyResourceSizeAndRange() 108 for (final CharSequence newValue : mListValues) { in onPreferenceChange_setNumberOfDevices() 117 assertThat(currentValue).isEqualTo(mListValues[index]); in onPreferenceChange_setNumberOfDevices() 123 for (int i = 0; i < mListValues.length; ++i) { in updateState_NumberOfDevicesUpdated_shouldSetPreference() 124 final String propertyValue = mListValues[i].toString(); in updateState_NumberOfDevicesUpdated_shouldSetPreference() 128 assertThat(mPreference.getValue()).isEqualTo(mListValues[i]); in updateState_NumberOfDevicesUpdated_shouldSetPreference() 143 assertThat(mPreference.getValue()).isEqualTo(mListValues[0]); in updateState_noValueSet_shouldSetDefaultTo1device() [all …]
|
D | SecondaryDisplayPreferenceControllerTest.java | 63 private String[] mListValues; field in SecondaryDisplayPreferenceControllerTest 73 mListValues = resources.getStringArray(R.array.overlay_display_devices_values); in setup() 82 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_set480p_shouldEnable480p() 86 assertThat(value).isEqualTo(mListValues[1]); in onPreferenceChange_set480p_shouldEnable480p() 91 mController.onPreferenceChange(mPreference, mListValues[3]); in onPreferenceChange_set720p_shouldEnable720p() 95 assertThat(value).isEqualTo(mListValues[3]); in onPreferenceChange_set720p_shouldEnable720p() 101 Settings.Global.OVERLAY_DISPLAY_DEVICES, mListValues[1]); in updateState_set480p_shouldSetPreferenceTo480p() local 105 verify(mPreference).setValue(mListValues[1]); in updateState_set480p_shouldSetPreferenceTo480p() 112 Settings.Global.OVERLAY_DISPLAY_DEVICES, mListValues[3]); in updateState_set720p_shouldSetPreferenceTo720p() local 116 verify(mPreference).setValue(mListValues[3]); in updateState_set720p_shouldSetPreferenceTo720p() [all …]
|
D | BluetoothMapVersionPreferenceControllerTest.java | 60 private String[] mListValues; field in BluetoothMapVersionPreferenceControllerTest 68 mListValues = resources.getStringArray(R.array.bluetooth_map_version_values); in setup() 78 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13() 82 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13() 87 mController.onPreferenceChange(mPreference, mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14() 91 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14() 97 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[1]); in updateState_setMap13_shouldSetPreferenceToMap13() 101 verify(mPreference).setValue(mListValues[1]); in updateState_setMap13_shouldSetPreferenceToMap13() 107 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[2]); in updateState_setMap14_shouldSetPreferenceToMap14() 111 verify(mPreference).setValue(mListValues[2]); in updateState_setMap14_shouldSetPreferenceToMap14() [all …]
|
D | BluetoothAvrcpVersionPreferenceControllerTest.java | 61 private String[] mListValues; field in BluetoothAvrcpVersionPreferenceControllerTest 69 mListValues = resources.getStringArray(R.array.bluetooth_avrcp_version_values); in setup() 79 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() 83 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setAvrcp13_shouldEnableAvrcp13() 88 mController.onPreferenceChange(mPreference, mListValues[2]); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15() 92 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setAvrcp15_shouldEnableAvrcp15() 97 SystemProperties.set(BLUETOOTH_AVRCP_VERSION_PROPERTY, mListValues[1]); in updateState_setAvrcp13_shouldSetPreferenceToAvrcp13() 101 verify(mPreference).setValue(mListValues[1]); in updateState_setAvrcp13_shouldSetPreferenceToAvrcp13() 107 SystemProperties.set(BLUETOOTH_AVRCP_VERSION_PROPERTY, mListValues[2]); in updateState_setAvrcp15_shouldSetPreferenceToAvrcp15() 111 verify(mPreference).setValue(mListValues[2]); in updateState_setAvrcp15_shouldSetPreferenceToAvrcp15() [all …]
|
D | BackgroundProcessLimitPreferenceControllerTest.java | 59 private String[] mListValues; field in BackgroundProcessLimitPreferenceControllerTest 68 mListValues = mContext.getResources().getStringArray(R.array.app_process_limit_values); in setup() 79 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_noBackgroundProcessSet_shouldSetToNoBackgroundProcess() 81 verify(mActivityManager).setProcessLimit(Integer.valueOf(mListValues[1])); in onPreferenceChange_noBackgroundProcessSet_shouldSetToNoBackgroundProcess() 87 mController.onPreferenceChange(mPreference, mListValues[2]); in onPreferenceChange_1ProcessSet_shouldSetTo1BackgroundProcess() 89 verify(mActivityManager).setProcessLimit(Integer.valueOf(mListValues[2])); in onPreferenceChange_1ProcessSet_shouldSetTo1BackgroundProcess() 95 when(mActivityManager.getProcessLimit()).thenReturn(Integer.valueOf(mListValues[1])); in updateState_noBackgroundProcessSet_shouldSetPreferenceToNoBackgroundProcess() 99 verify(mPreference).setValue(mListValues[1]); in updateState_noBackgroundProcessSet_shouldSetPreferenceToNoBackgroundProcess() 106 when(mActivityManager.getProcessLimit()).thenReturn(Integer.valueOf(mListValues[2])); in updateState_1ProcessSet_shouldSetPreference1BackgroundProcess() 110 verify(mPreference).setValue(mListValues[2]); in updateState_1ProcessSet_shouldSetPreference1BackgroundProcess() [all …]
|
D | BluetoothSnoopLogPreferenceControllerTest.java | 55 private CharSequence[] mListValues; field in BluetoothSnoopLogPreferenceControllerTest 73 mListValues = mPreference.getEntryValues(); in setup() 80 assertThat(mListEntries.length).isEqualTo(mListValues.length); in verifyResourceSizeAndRange() 85 assertThat(mPreference.getValue()).isEqualTo(mListValues[defaultIndex]); in verifyResourceSizeAndRange() 93 mListValues[BluetoothSnoopLogPreferenceController.BTSNOOP_LOG_MODE_FULL_INDEX]); in onPreferenceChanged_turnOnFullBluetoothSnoopLog() 102 mListValues[BluetoothSnoopLogPreferenceController.BTSNOOP_LOG_MODE_FILTERED_INDEX]); in onPreferenceChanged_turnOnFilteredBluetoothSnoopLog() 111 mListValues[BluetoothSnoopLogPreferenceController.BTSNOOP_LOG_MODE_DISABLED_INDEX]); in onPreferenceChanged_turnOffBluetoothSnoopLog() 119 for (int i = 0; i < mListValues.length; ++i) { in updateState_preferenceShouldBeSetToRightValue() 120 SystemProperties.set(BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, mListValues[i].toString()); in updateState_preferenceShouldBeSetToRightValue() 122 assertThat(mPreference.getValue()).isEqualTo(mListValues[i].toString()); in updateState_preferenceShouldBeSetToRightValue() [all …]
|
D | ProfileGpuRenderingPreferenceControllerTest.java | 54 private String[] mListValues; field in ProfileGpuRenderingPreferenceControllerTest 63 mListValues = mContext.getResources().getStringArray(R.array.track_frame_time_values); in setup() 80 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 83 assertThat(mode).isEqualTo(mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 88 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 92 verify(mPreference).setValue(mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 98 SystemProperties.set(ThreadedRenderer.PROFILE_PROPERTY, mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 102 verify(mPreference).setValue(mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 112 verify(mPreference).setValue(mListValues[0]); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | DebugGpuOverdrawPreferenceControllerTest.java | 54 private String[] mListValues; field in DebugGpuOverdrawPreferenceControllerTest 63 mListValues = mContext.getResources().getStringArray(R.array.debug_hw_overdraw_values); in setup() 81 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 84 assertThat(mode).isEqualTo(mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 89 SystemProperties.set(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY, mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 93 verify(mPreference).setValue(mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 99 SystemProperties.set(ThreadedRenderer.DEBUG_OVERDRAW_PROPERTY, mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 103 verify(mPreference).setValue(mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 113 verify(mPreference).setValue(mListValues[0]); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | DebugNonRectClipOperationsPreferenceControllerTest.java | 54 private String[] mListValues; field in DebugNonRectClipOperationsPreferenceControllerTest 63 mListValues = mContext.getResources().getStringArray(R.array.show_non_rect_clip_values); in setup() 81 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 85 assertThat(mode).isEqualTo(mListValues[1]); in onPreferenceChange_option1Selected_shouldSetOption1() 91 mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 95 verify(mPreference).setValue(mListValues[1]); in updateState_option1Set_shouldUpdatePreferenceToOption1() 102 mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 106 verify(mPreference).setValue(mListValues[2]); in updateState_option2Set_shouldUpdatePreferenceToOption2() 116 verify(mPreference).setValue(mListValues[0]); in updateState_noOptionSet_shouldDefaultToOption0()
|
D | AnimatorDurationScalePreferenceControllerTest.java | 64 private String[] mListValues; field in AnimatorDurationScalePreferenceControllerTest 73 mListValues = mContext.getResources() in setup() 92 mController.onPreferenceChange(mPreference, mListValues[5]); in onPreferenceChange_option5Selected_shouldSetOption5() 95 Float.valueOf(mListValues[5])); in onPreferenceChange_option5Selected_shouldSetOption5() 101 .thenReturn(Float.valueOf(mListValues[5])); in updateState_option5Set_shouldUpdatePreferenceToOption5() 105 verify(mPreference).setValue(mListValues[5]); in updateState_option5Set_shouldUpdatePreferenceToOption5() 112 .thenReturn(Float.valueOf(mListValues[3])); in updateState_option3Set_shouldUpdatePreferenceToOption3() 116 verify(mPreference).setValue(mListValues[3]); in updateState_option3Set_shouldUpdatePreferenceToOption3()
|
D | TransitionAnimationScalePreferenceControllerTest.java | 65 private String[] mListValues; field in TransitionAnimationScalePreferenceControllerTest 75 mListValues = resources.getStringArray(R.array.transition_animation_scale_values); in setup() 93 mController.onPreferenceChange(mPreference, mListValues[5]); in onPreferenceChange_option5Selected_shouldSetOption5() 96 .setAnimationScale(TRANSITION_ANIMATION_SCALE_SELECTOR, Float.valueOf(mListValues[5])); in onPreferenceChange_option5Selected_shouldSetOption5() 102 .thenReturn(Float.valueOf(mListValues[5])); in updateState_option5Set_shouldUpdatePreferenceToOption5() 106 verify(mPreference).setValue(mListValues[5]); in updateState_option5Set_shouldUpdatePreferenceToOption5() 113 .thenReturn(Float.valueOf(mListValues[3])); in updateState_option3Set_shouldUpdatePreferenceToOption3() 117 verify(mPreference).setValue(mListValues[3]); in updateState_option3Set_shouldUpdatePreferenceToOption3()
|
D | WindowAnimationScalePreferenceControllerTest.java | 65 private String[] mListValues; field in WindowAnimationScalePreferenceControllerTest 75 mListValues = resources.getStringArray(R.array.window_animation_scale_values); in setup() 92 mController.onPreferenceChange(mPreference, mListValues[5]); in onPreferenceChange_option5Selected_shouldSetOption5() 95 Float.valueOf(mListValues[5])); in onPreferenceChange_option5Selected_shouldSetOption5() 101 .thenReturn(Float.valueOf(mListValues[5])); in updateState_option5Set_shouldUpdatePreferenceToOption5() 105 verify(mPreference).setValue(mListValues[5]); in updateState_option5Set_shouldUpdatePreferenceToOption5() 112 .thenReturn(Float.valueOf(mListValues[3])); in updateState_option3Set_shouldUpdatePreferenceToOption3() 116 verify(mPreference).setValue(mListValues[3]); in updateState_option3Set_shouldUpdatePreferenceToOption3()
|
D | SimulateColorSpacePreferenceControllerTest.java | 62 private String[] mListValues; field in SimulateColorSpacePreferenceControllerTest 70 mListValues = mContext.getResources().getStringArray(R.array.simulate_color_space_values); in setup() 79 mController.onPreferenceChange(mPreference, mListValues[0]); in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 90 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 98 assertThat(settingValue).isEqualTo(Integer.valueOf(mListValues[1])); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 108 verify(mPreference).setValue(mListValues[0]); in updateState_settingOff_shouldSetValueToDisabled() 116 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, Integer.valueOf(mListValues[1])); in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy() 120 verify(mPreference).setValue(mListValues[1]); in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
|
D | BluetoothAudioChannelModePreferenceControllerTest.java | 59 private String[] mListValues; field in BluetoothAudioChannelModePreferenceControllerTest 73 mListValues = mController.getListValues(); in setup() 80 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 81 mController.writeConfigurationValues(mListValues[2]); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 88 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault() 89 mController.writeConfigurationValues(mListValues[0]); in writeConfigurationValues_default_shouldSetDefault()
|
D | BluetoothAudioBitsPerSamplePreferenceControllerTest.java | 60 private String[] mListValues; field in BluetoothAudioBitsPerSamplePreferenceControllerTest 74 mListValues = mController.getListValues(); in setup() 81 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 82 mController.writeConfigurationValues(mListValues[2]); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 89 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault() 90 mController.writeConfigurationValues(mListValues[0]); in writeConfigurationValues_default_shouldSetDefault()
|
D | BluetoothAudioQualityPreferenceControllerTest.java | 59 private String[] mListValues; field in BluetoothAudioQualityPreferenceControllerTest 73 mListValues = mController.getListValues(); in setup() 80 when(mPreference.findIndexOfValue(mListValues[3])).thenReturn(3); in writeConfigurationValues_option3_shouldWrite1003ToSharedStore() 81 mController.writeConfigurationValues(mListValues[3]); in writeConfigurationValues_option3_shouldWrite1003ToSharedStore() 88 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault() 89 mController.writeConfigurationValues(mListValues[0]); in writeConfigurationValues_default_shouldSetDefault()
|
D | BluetoothAudioCodecPreferenceControllerTest.java | 64 private String[] mListValues; field in BluetoothAudioCodecPreferenceControllerTest 78 mListValues = mController.getListValues(); in setup() 85 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 86 mController.writeConfigurationValues(mListValues[2]); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore() 95 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefaultPriority() 96 mController.writeConfigurationValues(mListValues[0]); in writeConfigurationValues_default_shouldSetDefaultPriority()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | BluetoothSnoopLogPreferenceController.java | 49 private final String[] mListValues; field in BluetoothSnoopLogPreferenceController 54 mListValues = context.getResources().getStringArray(R.array.bt_hci_snoop_log_values); in BluetoothSnoopLogPreferenceController() 67 for (int i = 0; i < mListValues.length; i++) { in getDefaultModeIndex() 68 if (TextUtils.equals(default_mode, mListValues[i])) { in getDefaultModeIndex() 94 for (int i = 0; i < mListValues.length; i++) { in updateState() 95 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 100 listPreference.setValue(mListValues[index]); in updateState() 108 ((ListPreference) mPreference).setValue(mListValues[getDefaultModeIndex()]); in onDeveloperOptionsSwitchDisabled()
|
D | BluetoothAvrcpVersionPreferenceController.java | 40 private final String[] mListValues; field in BluetoothAvrcpVersionPreferenceController 46 mListValues = context.getResources().getStringArray(R.array.bluetooth_avrcp_version_values); in BluetoothAvrcpVersionPreferenceController() 67 for (int i = 0; i < mListValues.length; i++) { in updateState() 68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 73 listPreference.setValue(mListValues[index]); in updateState()
|
D | BluetoothMapVersionPreferenceController.java | 40 private final String[] mListValues; field in BluetoothMapVersionPreferenceController 46 mListValues = context.getResources().getStringArray(R.array.bluetooth_map_version_values); in BluetoothMapVersionPreferenceController() 67 for (int i = 0; i < mListValues.length; i++) { in updateState() 68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 73 listPreference.setValue(mListValues[index]); in updateState()
|
D | DebugGpuOverdrawPreferenceController.java | 38 private final String[] mListValues; field in DebugGpuOverdrawPreferenceController 44 mListValues = context.getResources().getStringArray(R.array.debug_hw_overdraw_values); in DebugGpuOverdrawPreferenceController() 76 for (int i = 0; i < mListValues.length; i++) { in updateDebugHwOverdrawOptions() 77 if (TextUtils.equals(value, mListValues[i])) { in updateDebugHwOverdrawOptions() 83 listPreference.setValue(mListValues[index]); in updateDebugHwOverdrawOptions()
|
D | ProfileGpuRenderingPreferenceController.java | 37 private final String[] mListValues; field in ProfileGpuRenderingPreferenceController 43 mListValues = context.getResources().getStringArray(R.array.track_frame_time_values); in ProfileGpuRenderingPreferenceController() 74 for (int i = 0; i < mListValues.length; i++) { in updateTrackFrameTimeOptions() 75 if (TextUtils.equals(value, mListValues[i])) { in updateTrackFrameTimeOptions() 81 listPreference.setValue(mListValues[index]); in updateTrackFrameTimeOptions()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | BluetoothSnoopLogPreferenceController.java | 49 private final String[] mListValues; field in BluetoothSnoopLogPreferenceController 54 mListValues = context.getResources().getStringArray(R.array.bt_hci_snoop_log_values); in BluetoothSnoopLogPreferenceController() 67 for (int i = 0; i < mListValues.length; i++) { in getDefaultModeIndex() 68 if (TextUtils.equals(default_mode, mListValues[i])) { in getDefaultModeIndex() 94 for (int i = 0; i < mListValues.length; i++) { in updateState() 95 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 100 listPreference.setValue(mListValues[index]); in updateState() 108 ((ListPreference) mPreference).setValue(mListValues[getDefaultModeIndex()]); in onDeveloperOptionsSwitchDisabled()
|
D | BluetoothAvrcpVersionPreferenceController.java | 40 private final String[] mListValues; field in BluetoothAvrcpVersionPreferenceController 46 mListValues = context.getResources().getStringArray(R.array.bluetooth_avrcp_version_values); in BluetoothAvrcpVersionPreferenceController() 67 for (int i = 0; i < mListValues.length; i++) { in updateState() 68 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 73 listPreference.setValue(mListValues[index]); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/ |
D | AutofillLoggingLevelPreferenceControllerTest.java | 67 private String[] mListValues; field in AutofillLoggingLevelPreferenceControllerTest 81 mListValues = resources.getStringArray(R.array.autofill_logging_level_values); in setup() 110 mController.onPreferenceChange(mPreference, mListValues[IDX_OFF]); in onPreferenceChange_off() 119 mController.onPreferenceChange(mPreference, mListValues[IDX_DEBUG]); in onPreferenceChange_debug() 129 mController.onPreferenceChange(mPreference, mListValues[IDX_VERBOSE]); in onPreferenceChange_verbose() 141 verify(mPreference).setValue(mListValues[IDX_OFF]); in onSettingsChange_off() 151 verify(mPreference).setValue(mListValues[IDX_DEBUG]); in onSettingsChange_debug() 161 verify(mPreference).setValue(mListValues[IDX_VERBOSE]); in onSettingsChange_verbose()
|