/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
D | AbstractBluetoothListPreferenceController.java | 50 @Nullable protected ListPreference mListPreference; field in AbstractBluetoothListPreferenceController 72 mListPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 80 if (mListPreference == null) { in onPreferenceChange() 84 updateState(mListPreference); in onPreferenceChange() 105 if (mListPreference == null) { in onDeveloperOptionsSwitchDisabled() 109 updateState(mListPreference); in onDeveloperOptionsSwitchDisabled() 202 if (mListPreference == null) { in setupListPreference() 206 mListPreference.setEntries(entries.toArray(new String[entries.size()])); in setupListPreference() 207 mListPreference.setEntryValues(entryValues.toArray(new String[entryValues.size()])); in setupListPreference() 208 mListPreference.setValue(selectedValue); in setupListPreference() [all …]
|
D | BluetoothCodecListPreferenceController.java | 76 mListPreference = screen.findPreference(getPreferenceKey()); in displayPreference() 184 if (mListPreference == null) { in onHDAudioEnabled() 188 mListPreference.setEnabled(enabled); in onHDAudioEnabled()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | DefaultSubscriptionControllerTest.java | 101 private ListPreference mListPreference; field in DefaultSubscriptionControllerTest 124 mListPreference = new ListPreference(mContext); in setUp() 125 mListPreference.setKey(key); in setUp() 126 mScreen.addPreference(mListPreference); in setUp() 162 assertThat(mListPreference.getSummary().toString()).isEqualTo(SUB_ID_1); in getSummary_singleSub() 178 assertThat(mListPreference.getSummary().toString()).isEqualTo(SUB_ID_1); in getSummary_twoSubs() 193 mListPreference.setValue("222"); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly() 194 mController.onPreferenceChange(mListPreference, "222"); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly() 210 mListPreference.setValue(Integer.toString(SubscriptionManager.INVALID_SUBSCRIPTION_ID)); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly() 211 mController.onPreferenceChange(mListPreference, in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/ |
D | CaptionsTextStyleListPreferenceControllerTest.java | 44 private ListPreference mListPreference; field in CaptionsTextStyleListPreferenceControllerTest 50 mListPreference = new ListPreference(mContext); in setup() 53 CaptionsTextStyleListPreferenceController.class, mListPreference); in setup() 68 assertThat(Arrays.asList(mListPreference.getEntries())).containsExactlyElementsIn( in testUpdateUi_includesAllTextStyleOptions() 79 assertThat(mListPreference.getValue()).isEqualTo("0"); in testUpdateUi_selectsCurrentFontStylePreset() 80 assertThat(mListPreference.getSummary()).isEqualTo(mFontStyleTitles[1]); in testUpdateUi_selectsCurrentFontStylePreset() 90 assertThat(mListPreference.getValue()).isEqualTo("4"); in testUpdateUi_noKnownValueSelected_selectsDefaultFontStylePreset() 91 assertThat(mListPreference.getSummary()).isEqualTo(mFontStyleTitles[0]); in testUpdateUi_noKnownValueSelected_selectsDefaultFontStylePreset() 96 mListPreference.getOnPreferenceChangeListener().onPreferenceChange( in testFontSizeSelected_updatesFontSizeConstant() 97 mListPreference, "1"); in testFontSizeSelected_updatesFontSizeConstant()
|
D | CaptionsTextSizeListPreferenceControllerTest.java | 44 private ListPreference mListPreference; field in CaptionsTextSizeListPreferenceControllerTest 50 mListPreference = new ListPreference(mContext); in setup() 53 CaptionsTextSizeListPreferenceController.class, mListPreference); in setup() 69 assertThat(Arrays.asList(mListPreference.getEntries())).containsExactlyElementsIn( in testUpdateUi_includesAllTextSizeOptions() 80 assertThat(mListPreference.getValue()).isEqualTo("1.5"); in testUpdateUi_selectsCurrentFontSize() 81 assertThat(mListPreference.getSummary()).isEqualTo(mFontSizeTitles[3]); in testUpdateUi_selectsCurrentFontSize() 91 assertThat(mListPreference.getValue()).isEqualTo("1.0"); in testUpdateUi_noKnownValueSelected_selectsDefaultFontSize() 92 assertThat(mListPreference.getSummary()).isEqualTo(mFontSizeTitles[2]); in testUpdateUi_noKnownValueSelected_selectsDefaultFontSize() 97 mListPreference.getOnPreferenceChangeListener().onPreferenceChange( in testFontSizeSelected_updatesFontSizeConstant() 98 mListPreference, "1.5"); in testFontSizeSelected_updatesFontSizeConstant()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | NetworkSecurityPreferenceControllerTest.java | 59 private ListPreference mListPreference; field in NetworkSecurityPreferenceControllerTest 77 mListPreference = new ListPreference(mContext); in setUp() 80 PreferenceControllerTestUtil.assignPreference(mPreferenceController, mListPreference); in setUp() 98 mListPreference.callChangeListener(value); in handlePreferenceChanged_unsecureNetwork_summaryUpdated() 100 assertThat(mListPreference.getSummary().toString()).isEqualTo( in handlePreferenceChanged_unsecureNetwork_summaryUpdated() 107 mListPreference.callChangeListener(value); in handlePreferenceChanged_pskNetwork_summaryUpdated() 109 assertThat(mListPreference.getSummary().toString()).isEqualTo( in handlePreferenceChanged_pskNetwork_summaryUpdated() 116 mListPreference.callChangeListener(value); in handlePreferenceChanged_broadcastIsSent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDeviceAudioRoutingBasePreferenceControllerTest.java | 75 private final ListPreference mListPreference = new ListPreference(mContext); field in HearingDeviceAudioRoutingBasePreferenceControllerTest 120 mListPreference.setEntries(R.array.bluetooth_audio_routing_titles); in setUp() 121 mListPreference.setEntryValues(R.array.bluetooth_audio_routing_values); in setUp() 122 mListPreference.setSummary("%s"); in setUp() 129 mController.updateState(mListPreference); in updateState_routingValueAuto_expectedSummary() 131 assertThat(mListPreference.getSummary().toString()).isEqualTo( in updateState_routingValueAuto_expectedSummary() 132 mListPreference.getEntries()[0].toString()); in updateState_routingValueAuto_expectedSummary() 137 mController.onPreferenceChange(mListPreference, String.valueOf( in onPreferenceChange_routingValueHearingDevice_restoreSameValue()
|
D | FloatingMenuSizePreferenceControllerTest.java | 58 private final ListPreference mListPreference = new ListPreference(mContext); field in FloatingMenuSizePreferenceControllerTest 88 mController.updateState(mListPreference); in updateState_floatingMenuLargeSizeAndFullCircle_largeSizeValue() 91 assertThat(mListPreference.getValue()).isEqualTo(largeSize); in updateState_floatingMenuLargeSizeAndFullCircle_largeSizeValue() 96 mController.mPreference = mListPreference; in onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled()
|
D | AccessibilityButtonLocationPreferenceControllerTest.java | 59 private final ListPreference mListPreference = new ListPreference(mContext); field in AccessibilityButtonLocationPreferenceControllerTest 91 mController.updateState(mListPreference); in updateState_a11yBtnModeNavigationBar_navigationBarValue() 94 assertThat(mListPreference.getValue()).isEqualTo(navigationBarValue); in updateState_a11yBtnModeNavigationBar_navigationBarValue()
|
D | AccessibilityButtonGesturePreferenceControllerTest.java | 59 private final ListPreference mListPreference = new ListPreference(mContext); field in AccessibilityButtonGesturePreferenceControllerTest 90 mController.updateState(mListPreference); in updateState_a11yBtnModeGesture_navigationBarValue() 93 assertThat(mListPreference.getValue()).isEqualTo(gestureValue); in updateState_a11yBtnModeGesture_navigationBarValue()
|