Home
last modified time | relevance | path

Searched refs:mPreferenceCategory (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountListPreferenceControllerTest.java64 private PreferenceCategory mPreferenceCategory; field in AccountListPreferenceControllerTest
86 mPreferenceCategory = new PreferenceCategory(application); in setUp()
88 AccountListPreferenceController.class, mPreferenceCategory); in setUp()
103 assertThat(mPreferenceCategory.getTitle()).isEqualTo(expectedTitle); in onCreate_preferenceCategoryTitleShouldBeSet()
110 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(1); in refreshUi_hasNoAccounts_shouldDisplayNoAccountPref()
111 Preference noAccountPref = mPreferenceCategory.getPreference(0); in refreshUi_hasNoAccounts_shouldDisplayNoAccountPref()
124 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in refreshUi_hasAccounts_shouldDisplayAccounts()
126 Preference firstPref = mPreferenceCategory.getPreference(0); in refreshUi_hasAccounts_shouldDisplayAccounts()
130 Preference secondPref = mPreferenceCategory.getPreference(1); in refreshUi_hasAccounts_shouldDisplayAccounts()
145 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in refreshUi_hasUnauthenticatedAccount_shouldNotDisplayAccount()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/usb/
DUsbDetailsPowerRoleController.java40 private PreferenceCategory mPreferenceCategory; field in UsbDetailsPowerRoleController
61 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
62 mSwitchPreference = new SwitchPreference(mPreferenceCategory.getContext()); in displayPreference()
65 mPreferenceCategory.addPreference(mSwitchPreference); in displayPreference()
72 mFragment.getPreferenceScreen().removePreference(mPreferenceCategory); in refresh()
74 mFragment.getPreferenceScreen().addPreference(mPreferenceCategory); in refresh()
78 mPreferenceCategory.setEnabled(true); in refresh()
81 mPreferenceCategory.setEnabled(true); in refresh()
83 mPreferenceCategory.setEnabled(false); in refresh()
DUsbDetailsDataRoleController.java39 private PreferenceCategory mPreferenceCategory; field in UsbDetailsDataRoleController
60 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
72 mPreferenceCategory.setEnabled(true); in refresh()
76 mPreferenceCategory.setEnabled(true); in refresh()
78 mPreferenceCategory.setEnabled(false); in refresh()
125 RadioButtonPreference pref = new RadioButtonPreference(mPreferenceCategory.getContext()); in makeRadioPreference()
129 mPreferenceCategory.addPreference(pref); in makeRadioPreference()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleController.java40 private PreferenceCategory mPreferenceCategory; field in UsbDetailsPowerRoleController
61 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
62 mSwitchPreference = new SwitchPreference(mPreferenceCategory.getContext()); in displayPreference()
65 mPreferenceCategory.addPreference(mSwitchPreference); in displayPreference()
72 mFragment.getPreferenceScreen().removePreference(mPreferenceCategory); in refresh()
74 mFragment.getPreferenceScreen().addPreference(mPreferenceCategory); in refresh()
78 mPreferenceCategory.setEnabled(true); in refresh()
81 mPreferenceCategory.setEnabled(true); in refresh()
83 mPreferenceCategory.setEnabled(false); in refresh()
DUsbDetailsDataRoleController.java39 private PreferenceCategory mPreferenceCategory; field in UsbDetailsDataRoleController
60 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
72 mPreferenceCategory.setEnabled(true); in refresh()
76 mPreferenceCategory.setEnabled(true); in refresh()
78 mPreferenceCategory.setEnabled(false); in refresh()
125 RadioButtonPreference pref = new RadioButtonPreference(mPreferenceCategory.getContext()); in makeRadioPreference()
129 mPreferenceCategory.addPreference(pref); in makeRadioPreference()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeAutomaticRulesPreferenceController.java39 protected PreferenceCategory mPreferenceCategory; field in ZenModeAutomaticRulesPreferenceController
59 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
60 mPreferenceCategory.setPersistent(false); in displayPreference()
67 final int currNumPreferences = mPreferenceCategory.getPreferenceCount(); in updateState()
70 ZenRulePreference pref = (ZenRulePreference) mPreferenceCategory.getPreference(i); in updateState()
89 mPreferenceCategory.removeAll(); in reloadAllRules()
92 mPreferenceCategory.addPreference(pref); in reloadAllRules()
98 return new ZenRulePreference(mPreferenceCategory.getContext(), in createZenRulePreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeAutomaticRulesPreferenceController.java39 protected PreferenceCategory mPreferenceCategory; field in ZenModeAutomaticRulesPreferenceController
59 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
60 mPreferenceCategory.setPersistent(false); in displayPreference()
67 final int currNumPreferences = mPreferenceCategory.getPreferenceCount(); in updateState()
70 ZenRulePreference pref = (ZenRulePreference) mPreferenceCategory.getPreference(i); in updateState()
89 mPreferenceCategory.removeAll(); in reloadAllRules()
92 mPreferenceCategory.addPreference(pref); in reloadAllRules()
98 return new ZenRulePreference(mPreferenceCategory.getContext(), in createZenRulePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DNetworkSelectSettingsTest.java60 private PreferenceCategory mPreferenceCategory; field in NetworkSelectSettingsTest
78 mPreferenceCategory = spy(new PreferenceCategory(mContext)); in setUp()
79 doReturn(mPreferenceManager).when(mPreferenceCategory).getPreferenceManager(); in setUp()
88 mNetworkSelectSettings.mPreferenceCategory = mPreferenceCategory; in setUp()
100 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(1); in updateAllPreferenceCategory_containCorrectPreference()
102 (NetworkOperatorPreference) mPreferenceCategory.getPreference(0); in updateAllPreferenceCategory_containCorrectPreference()
DWifiCallingPreferenceControllerTest.java67 private PreferenceCategory mPreferenceCategory; field in WifiCallingPreferenceControllerTest
90 mPreferenceCategory = new PreferenceCategory(mContext); in setUp()
93 mPreferenceCategory); in setUp()
171 assertThat(mPreferenceCategory.isVisible()).isFalse(); in displayPreference_notAvailable_setCategoryInvisible()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationFooterPreferenceControllerTest.java63 private PreferenceCategory mPreferenceCategory; field in LocationFooterPreferenceControllerTest
82 when(mPreferenceCategory.getContext()).thenReturn(mContext); in setUp()
87 doNothing().when(mPreferenceCategory).removeAll(); in setUp()
140 mController.updateState(mPreferenceCategory); in updateState_sendBroadcast()
154 mController.updateState(mPreferenceCategory); in updateState_addPreferences()
156 verify(mPreferenceCategory).addPreference(pref.capture()); in updateState_addPreferences()
167 mController.updateState(mPreferenceCategory); in updateState_notSystemApp_ignore()
168 verify(mPreferenceCategory, never()).addPreference(any(Preference.class)); in updateState_notSystemApp_ignore()
179 mController.updateState(mPreferenceCategory); in updateState_thenOnPause_sendBroadcasts()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DWifiConnectionPreferenceControllerTest.java64 PreferenceCategory mPreferenceCategory; field in WifiConnectionPreferenceControllerTest
80 when(mScreen.findPreference(eq(KEY))).thenReturn(mPreferenceCategory); in setUp()
99 verify(mPreferenceCategory, never()).addPreference(any()); in displayPreference_noWiFiConnection_noPreferenceAdded()
109 verify(mPreferenceCategory).addPreference(any(AccessPointPreference.class)); in displayPreference_hasWiFiConnection_preferenceAdded()
122 verify(mPreferenceCategory).addPreference(captor.capture()); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
129 verify(mPreferenceCategory).removePreference(pref); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
153 verify(mPreferenceCategory, times(2)).addPreference(captor.capture()); in onAccessPointsChanged_wifiBecameConnectedToDifferentAP_preferenceReplaced()
158 verify(mPreferenceCategory).removePreference(eq(pref1)); in onAccessPointsChanged_wifiBecameConnectedToDifferentAP_preferenceReplaced()
DMultiNetworkHeaderControllerTest.java59 private PreferenceCategory mPreferenceCategory; field in MultiNetworkHeaderControllerTest
79 when(mPreferenceScreen.findPreference(eq(KEY_HEADER))).thenReturn(mPreferenceCategory); in setUp()
80 when(mPreferenceCategory.getPreferenceCount()).thenReturn(3); in setUp()
104 verify(mPreferenceCategory, never()).setVisible(eq(!setVisibleExpectedValue)); in displayPreferenceTest()
105 verify(mPreferenceCategory, atLeastOnce()).setVisible(eq(setVisibleExpectedValue)); in displayPreferenceTest()
138 verify(mPreferenceCategory, atLeastOnce()).setVisible(captor.capture()); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible()
145 EXPANDED_CHILDREN_COUNT + mPreferenceCategory.getPreferenceCount()); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible()
158 verify(mPreferenceCategory, atLeastOnce()).setVisible(captor.capture()); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible()
DSubscriptionsPreferenceControllerTest.java86 private PreferenceCategory mPreferenceCategory; field in SubscriptionsPreferenceControllerTest
119 when(mScreen.findPreference(eq(KEY))).thenReturn(mPreferenceCategory); in setUp()
120 when(mPreferenceCategory.getContext()).thenReturn(mContext); in setUp()
211 verify(mPreferenceCategory, times(2)).addPreference(any(Preference.class)); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved()
219 verify(mPreferenceCategory, times(2)).removePreference(any(Preference.class)); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved()
231 verify(mPreferenceCategory, times(2)).addPreference(captor.capture()); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
244 verify(mPreferenceCategory).removePreference(captor.capture()); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
246 verify(mPreferenceCategory, times(3)).addPreference(captor.capture()); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
262 verify(mPreferenceCategory, times(subscriptionCount)).addPreference(prefCaptor.capture()); in runPreferenceClickTest()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMultiNetworkHeaderController.java40 private PreferenceCategory mPreferenceCategory; field in MultiNetworkHeaderController
72 mPreferenceCategory = screen.findPreference(mPreferenceKey); in displayPreference()
73 mPreferenceCategory.setVisible(isAvailable()); in displayPreference()
96 mOriginalExpandedChildrenCount + mPreferenceCategory.getPreferenceCount()); in onChildrenUpdated()
101 mPreferenceCategory.setVisible(available); in onChildrenUpdated()
/packages/apps/Settings/src/com/android/settings/network/
DMultiNetworkHeaderController.java40 private PreferenceCategory mPreferenceCategory; field in MultiNetworkHeaderController
72 mPreferenceCategory = screen.findPreference(mPreferenceKey); in displayPreference()
73 mPreferenceCategory.setVisible(isAvailable()); in displayPreference()
96 mOriginalExpandedChildrenCount + mPreferenceCategory.getPreferenceCount()); in onChildrenUpdated()
101 mPreferenceCategory.setVisible(available); in onChildrenUpdated()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DPreventRingingGesturePreferenceController.java63 PreferenceCategory mPreferenceCategory; field in PreventRingingGesturePreferenceController
86 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
90 if (mPreferenceCategory != null) { in displayPreference()
91 mSettingObserver = new SettingObserver(mPreferenceCategory); in displayPreference()
192 RadioButtonPreference pref = new RadioButtonPreference(mPreferenceCategory.getContext()); in makeRadioPreference()
196 mPreferenceCategory.addPreference(pref); in makeRadioPreference()
/packages/apps/Settings/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceController.java63 PreferenceCategory mPreferenceCategory; field in PreventRingingGesturePreferenceController
86 mPreferenceCategory = screen.findPreference(getPreferenceKey()); in displayPreference()
90 if (mPreferenceCategory != null) { in displayPreference()
91 mSettingObserver = new SettingObserver(mPreferenceCategory); in displayPreference()
192 RadioButtonPreference pref = new RadioButtonPreference(mPreferenceCategory.getContext()); in makeRadioPreference()
196 mPreferenceCategory.addPreference(pref); in makeRadioPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java65 private PreferenceCategory mPreferenceCategory; field in UsbDetailsFunctionsControllerTest
97 mPreferenceCategory = new PreferenceCategory(mContext); in setUp()
98 mPreferenceCategory.setKey(mDetailsFunctionsController.getPreferenceKey()); in setUp()
99 mScreen.addPreference(mPreferenceCategory); in setUp()
126 assertThat(mPreferenceCategory.isEnabled()).isFalse(); in displayRefresh_disconnected_shouldDisable()
223 for (int i = 0; i < mPreferenceCategory.getPreferenceCount(); i++) { in getRadioPreferences()
224 result.add((RadioButtonPreference) mPreferenceCategory.getPreference(i)); in getRadioPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/savedaccesspoints/
DSavedAccessPointsPreferenceControllerTest.java61 private PreferenceCategory mPreferenceCategory; field in SavedAccessPointsPreferenceControllerTest
78 .thenReturn(mPreferenceCategory); in setUp()
79 when(mPreferenceCategory.getContext()).thenReturn(mContext); in setUp()
137 verify(mPreferenceCategory).addPreference(captor.capture()); in refreshSavedAccessPoints_shouldListNonSubscribedAPs()
154 verify(mPreferenceCategory, never()).addPreference(any(AccessPointPreference.class)); in refreshSavedAccessPoints_shouldNotListSubscribedAPs()
DSubscribedAccessPointsPreferenceControllerTest.java67 private PreferenceCategory mPreferenceCategory; field in SubscribedAccessPointsPreferenceControllerTest
84 .thenReturn(mPreferenceCategory); in setUp()
85 when(mPreferenceCategory.getContext()).thenReturn(mContext); in setUp()
143 verify(mPreferenceCategory, never()).addPreference(any(AccessPointPreference.class)); in refreshSubscribedAccessPoints_shouldNotListNonSubscribedAPs()
156 verify(mPreferenceCategory).addPreference(captor.capture()); in refreshSubscribedAccessPoints_shouldListSubscribedAPs()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DNetworkSelectSettings.java74 PreferenceCategory mPreferenceCategory; field in NetworkSelectSettings
102 mPreferenceCategory = findPreference(PREF_KEY_NETWORK_OPERATORS); in onCreate()
294 mPreferenceCategory.removeAll(); in updateAllPreferenceCategory()
301 mPreferenceCategory.addPreference(pref); in updateAllPreferenceCategory()
390 mPreferenceCategory.removeAll(); in addMessagePreference()
391 mPreferenceCategory.addPreference(mStatusMessagePreference); in addMessagePreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DNetworkSelectSettings.java72 PreferenceCategory mPreferenceCategory; field in NetworkSelectSettings
100 mPreferenceCategory = findPreference(PREF_KEY_NETWORK_OPERATORS); in onCreate()
290 mPreferenceCategory.removeAll(); in updateAllPreferenceCategory()
297 mPreferenceCategory.addPreference(pref); in updateAllPreferenceCategory()
386 mPreferenceCategory.removeAll(); in addMessagePreference()
387 mPreferenceCategory.addPreference(mStatusMessagePreference); in addMessagePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceControllerTest.java60 mController.mPreferenceCategory = new PreferenceCategory(mContext); in setUp()