/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
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 | 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 | 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 | BluetoothMapVersionPreferenceControllerTest.java | 55 private String[] mListValues; field in BluetoothMapVersionPreferenceControllerTest 62 mListValues = resources.getStringArray(R.array.bluetooth_map_version_values); in setup() 71 mController.onPreferenceChange(mPreference, mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13() 74 assertThat(currentValue).isEqualTo(mListValues[1]); in onPreferenceChange_setMap13_shouldEnableMap13() 78 mController.onPreferenceChange(mPreference, mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14() 81 assertThat(currentValue).isEqualTo(mListValues[2]); in onPreferenceChange_setMap14_shouldEnableMap14() 85 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[1]); in updateState_setMap13_shouldSetPreferenceToMap13() 89 verify(mPreference).setValue(mListValues[1]); in updateState_setMap13_shouldSetPreferenceToMap13() 94 SystemProperties.set(BLUETOOTH_MAP_VERSION_PROPERTY, mListValues[2]); in updateState_setMap14_shouldSetPreferenceToMap14() 98 verify(mPreference).setValue(mListValues[2]); in updateState_setMap14_shouldSetPreferenceToMap14() [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()
|
/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 | CachedAppsFreezerPreferenceController.java | 43 private final String[] mListValues; field in CachedAppsFreezerPreferenceController 49 mListValues = context.getResources().getStringArray(R.array.cached_apps_freezer_values); in CachedAppsFreezerPreferenceController() 115 for (int i = 0; i < mListValues.length; i++) { 116 if (TextUtils.equals(currentValue, mListValues[i])) { 122 listPreference.setValue(mListValues[index]); 132 mListValues[0].toString());
|
D | BluetoothMapVersionPreferenceController.java | 43 private final String[] mListValues; field in BluetoothMapVersionPreferenceController 49 mListValues = context.getResources().getStringArray(R.array.bluetooth_map_version_values); in BluetoothMapVersionPreferenceController() 70 for (int i = 0; i < mListValues.length; i++) { in updateState() 71 if (TextUtils.equals(currentValue, mListValues[i])) { in updateState() 76 listPreference.setValue(mListValues[index]); in updateState()
|
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 | 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()
|
D | DebugNonRectClipOperationsPreferenceController.java | 38 private final String[] mListValues; field in DebugNonRectClipOperationsPreferenceController 44 mListValues = context.getResources().getStringArray(R.array.show_non_rect_clip_values); in DebugNonRectClipOperationsPreferenceController() 76 for (int i = 0; i < mListValues.length; i++) { in updateShowNonRectClipOptions() 77 if (TextUtils.equals(value, mListValues[i])) { in updateShowNonRectClipOptions() 83 listPreference.setValue(mListValues[index]); in updateShowNonRectClipOptions()
|
D | SecondaryDisplayPreferenceController.java | 35 private final String[] mListValues; field in SecondaryDisplayPreferenceController 41 mListValues = context.getResources().getStringArray(R.array.overlay_display_devices_values); in SecondaryDisplayPreferenceController() 72 for (int i = 0; i < mListValues.length; i++) { in updateSecondaryDisplayDevicesOptions() 73 if (TextUtils.equals(value, mListValues[i])) { in updateSecondaryDisplayDevicesOptions() 79 listPreference.setValue(mListValues[index]); in updateSecondaryDisplayDevicesOptions()
|
D | HdcpCheckingPreferenceController.java | 43 private final String[] mListValues; field in HdcpCheckingPreferenceController 49 mListValues = mContext.getResources().getStringArray(R.array.hdcp_checking_values); in HdcpCheckingPreferenceController() 79 for (int i = 0; i < mListValues.length; i++) { in updateHdcpValues() 80 if (TextUtils.equals(currentValue, mListValues[i])) { in updateHdcpValues() 85 preference.setValue(mListValues[index]); in updateHdcpValues()
|
D | BackgroundProcessLimitPreferenceController.java | 38 private final String[] mListValues; field in BackgroundProcessLimitPreferenceController 44 mListValues = context.getResources().getStringArray(R.array.app_process_limit_values); in BackgroundProcessLimitPreferenceController() 75 for (int i = 0; i < mListValues.length; i++) { in updateAppProcessLimitOptions() 76 int val = Integer.parseInt(mListValues[i]); in updateAppProcessLimitOptions() 83 listPreference.setValue(mListValues[index]); in updateAppProcessLimitOptions()
|
/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()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenRuleCallsPreferenceController.java | 35 private final String[] mListValues; field in ZenRuleCallsPreferenceController 39 mListValues = context.getResources().getStringArray( in ZenRuleCallsPreferenceController() 72 listPreference.setValue(mListValues[getIndexOfSendersValue(currentVal)]); in updateFromContactsValue() 79 for (int i = 0; i < mListValues.length; i++) { in getIndexOfSendersValue() 80 if (TextUtils.equals(currentVal, mListValues[i])) { in getIndexOfSendersValue()
|