/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | LogicalRootPreferenceGroupTest.java | 38 private PreferenceScreen mPreferenceScreen; field in LogicalRootPreferenceGroupTest 44 mPreferenceScreen = preferenceManager.createPreferenceScreen(mContext); in setUp() 47 mPreferenceScreen.addPreference(mPreferenceGroup); in setUp() 57 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in addPreference_toParent_notToGroup() 58 assertThat(mPreferenceScreen.getPreference(1).getTitle()) in addPreference_toParent_notToGroup() 65 mPreferenceScreen.setOrderingAsAdded(true); in injectPreferencesToParent_whenOrderingAsAdded() 68 mPreferenceScreen.addPreference(preference0); in injectPreferencesToParent_whenOrderingAsAdded() 80 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(4); in injectPreferencesToParent_whenOrderingAsAdded() 81 assertThat(mPreferenceScreen.getPreference(0).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded() 83 assertThat(mPreferenceScreen.getPreference(1).getOrder()) in injectPreferencesToParent_whenOrderingAsAdded() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | PreviewSizeSeekBarControllerTest.java | 82 private PreferenceScreen mPreferenceScreen; field in PreviewSizeSeekBarControllerTest 109 mPreferenceScreen = spy(new PreferenceScreen(mContext, /* attrs= */ null)); in setUp() 110 when(mPreferenceScreen.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp() 111 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in setUp() 122 when(mPreferenceScreen.findPreference(anyString())).thenReturn(mSeekBarPreference); in setUp() 139 when(mPreferenceScreen.findPreference(mSeekBarController.getPreferenceKey())).thenReturn( in setUp() 145 when(mPreferenceScreen.findPreference(anyString())).thenReturn(mSeekBarPreference); in initMax_matchResult() 147 mSeekBarController.displayPreference(mPreferenceScreen); in initMax_matchResult() 155 when(mPreferenceScreen.findPreference(anyString())).thenReturn(mSeekBarPreference); in initProgress_matchResult() 157 mSeekBarController.displayPreference(mPreferenceScreen); in initProgress_matchResult() [all …]
|
D | TextReadingPreviewControllerTest.java | 64 private PreferenceScreen mPreferenceScreen; field in TextReadingPreviewControllerTest 82 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapter_verifyAction() 83 when(mPreferenceScreen.findPreference(FONT_SIZE_KEY)).thenReturn(mFontSizePreference); in initPreviewerAdapter_verifyAction() 84 when(mPreferenceScreen.findPreference(DISPLAY_SIZE_KEY)).thenReturn(mDisplaySizePreference); in initPreviewerAdapter_verifyAction() 86 mPreviewController.displayPreference(mPreferenceScreen); in initPreviewerAdapter_verifyAction() 93 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapterWithoutDisplaySizePreference_throwNPE() 94 when(mPreferenceScreen.findPreference(DISPLAY_SIZE_KEY)).thenReturn(mDisplaySizePreference); in initPreviewerAdapterWithoutDisplaySizePreference_throwNPE() 96 mPreviewController.displayPreference(mPreferenceScreen); in initPreviewerAdapterWithoutDisplaySizePreference_throwNPE() 103 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapterWithoutFontSizePreference_throwNPE() 104 when(mPreferenceScreen.findPreference(FONT_SIZE_KEY)).thenReturn(mFontSizePreference); in initPreviewerAdapterWithoutFontSizePreference_throwNPE() [all …]
|
D | TextReadingResetControllerTest.java | 58 private PreferenceScreen mPreferenceScreen; field in TextReadingResetControllerTest 66 when(mPreferenceScreen.findPreference(RESET_KEY)).thenReturn(mResetPreference); in setUp() 71 mResetController.displayPreference(mPreferenceScreen); in displayResetPreference_verifyResetClickListener() 79 mResetController.displayPreference(mPreferenceScreen); in setVisibleAsFalse_preferenceInvisible() 87 mResetController.displayPreference(mPreferenceScreen); in setVisibleAsTrue_preferenceVisible()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 74 private PreferenceScreen mPreferenceScreen; field in TrustAgentsPreferenceControllerTest 83 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 84 mPreferenceScreen.setKey("pref_key"); in setUp() 103 mController.displayPreference(mPreferenceScreen); in onStart_noTrustAgent_shouldNotAddPreference() 106 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in onStart_noTrustAgent_shouldNotAddPreference() 120 mController.displayPreference(mPreferenceScreen); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 127 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 140 mController.displayPreference(mPreferenceScreen); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 148 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(4); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 161 mController.displayPreference(mPreferenceScreen); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/ |
D | NumberingSystemItemControllerTest.java | 53 private PreferenceScreen mPreferenceScreen; field in NumberingSystemItemControllerTest 67 mPreferenceScreen = preferenceManager.createPreferenceScreen(mApplicationContext); in setUp() 87 mPreferenceScreen.addPreference(preference); in handlePreferenceTreeClick_languageSelect_launchFragment() 90 mController.displayPreference(mPreferenceScreen); in handlePreferenceTreeClick_languageSelect_launchFragment() 115 mPreferenceScreen.addPreference(preference); in handlePreferenceTreeClick_numbersSelect_preferenceHasTick() 118 mController.displayPreference(mPreferenceScreen); in handlePreferenceTreeClick_numbersSelect_preferenceHasTick() 140 mPreferenceScreen.addPreference(defaultPreference); in handlePreferenceTreeClick_numbersSelect_numberingSystemIsUpdated() 141 mPreferenceScreen.addPreference(numberPreference); in handlePreferenceTreeClick_numbersSelect_numberingSystemIsUpdated() 144 mController.displayPreference(mPreferenceScreen); in handlePreferenceTreeClick_numbersSelect_numberingSystemIsUpdated() 164 mController.displayPreference(mPreferenceScreen); in displayPreference_languageOptAndHas2LocaleWithSingleNu_showNothing() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | UserDictionaryListControllerTest.java | 50 private PreferenceScreen mPreferenceScreen; field in UserDictionaryListControllerTest 64 mPreferenceScreen = preferenceManager.createPreferenceScreen(mContext); in setUp() 82 mController.displayPreference(mPreferenceScreen); in displayPreference_isOrderingAsAdd_shouldBeFalse() 84 assertThat(mPreferenceScreen.isOrderingAsAdded()).isFalse(); in displayPreference_isOrderingAsAdd_shouldBeFalse() 94 mController.displayPreference(mPreferenceScreen); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference() 97 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(1); in createUserDictSettings_emptyLocaleSetWithNewScreen_shouldAddOnePreference() 105 mPreferenceScreen.addPreference(mPreference); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference() 108 mController.displayPreference(mPreferenceScreen); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference() 111 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(1); in createUserDictSettings_emptyLocaleSetWithOldScreen_shouldNotAddNewPreference() 125 mController.displayPreference(mPreferenceScreen); in createUserDictSettings_threeLocales_shouldAddFourPreference() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreferenceControllerTest.java | 77 private PreferenceScreen mPreferenceScreen; field in UnrestrictedDataAccessPreferenceControllerTest 122 mPreferenceScreen = spy(mPreferenceManager.createPreferenceScreen(mContext)); in onRebuildComplete_restricted_shouldBeDisabled() 124 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in onRebuildComplete_restricted_shouldBeDisabled() 125 doReturn(0).when(mPreferenceScreen).getPreferenceCount(); in onRebuildComplete_restricted_shouldBeDisabled() 128 ReflectionHelpers.setField(mController, "mScreen", mPreferenceScreen); in onRebuildComplete_restricted_shouldBeDisabled() 162 }).when(mPreferenceScreen).addPreference(any(UnrestrictedDataAccessPreference.class)); in onRebuildComplete_restricted_shouldBeDisabled() 174 mPreferenceScreen = spy(mPreferenceManager.createPreferenceScreen(mContext)); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 176 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 177 doReturn(0).when(mPreferenceScreen).getPreferenceCount(); in onRebuildComplete_ecmRestricted_shouldBeDisabled() 180 ReflectionHelpers.setField(mController, "mScreen", mPreferenceScreen); in onRebuildComplete_ecmRestricted_shouldBeDisabled() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/ |
D | TermsOfAddressFeminineControllerTest.java | 54 private PreferenceScreen mPreferenceScreen; field in TermsOfAddressFeminineControllerTest 74 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 85 mPreferenceScreen.addPreference(mPreferenceCategory); in setUp() 86 mPreferenceScreen.addPreference(mNotSpecifiedPreference); in setUp() 87 mPreferenceScreen.addPreference(mFemininePreference); in setUp() 88 mPreferenceScreen.addPreference(mMasculinePreference); in setUp() 89 mPreferenceScreen.addPreference(mNeutralPreference); in setUp() 92 mController.displayPreference(mPreferenceScreen); in setUp() 99 (TickButtonPreference) mPreferenceScreen.getPreference(2); in displayPreference_setGrammaticalGenderIsFeminine_FeminineIsSelected()
|
D | TermsOfAddressNotSpecifiedControllerTest.java | 54 private PreferenceScreen mPreferenceScreen; field in TermsOfAddressNotSpecifiedControllerTest 74 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 85 mPreferenceScreen.addPreference(mPreferenceCategory); in setUp() 86 mPreferenceScreen.addPreference(mNotSpecifiedPreference); in setUp() 87 mPreferenceScreen.addPreference(mFemininePreference); in setUp() 88 mPreferenceScreen.addPreference(mMasculinePreference); in setUp() 89 mPreferenceScreen.addPreference(mNeutralPreference); in setUp() 92 mController.displayPreference(mPreferenceScreen); in setUp() 99 (TickButtonPreference) mPreferenceScreen.getPreference(1); in displayPreference_setGrammaticalGenderIsNotSpecified_NotSpecifiedIsSelected()
|
D | TermsOfAddressNeutralControllerTest.java | 54 private PreferenceScreen mPreferenceScreen; field in TermsOfAddressNeutralControllerTest 74 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 85 mPreferenceScreen.addPreference(mPreferenceCategory); in setUp() 86 mPreferenceScreen.addPreference(mNotSpecifiedPreference); in setUp() 87 mPreferenceScreen.addPreference(mFemininePreference); in setUp() 88 mPreferenceScreen.addPreference(mMasculinePreference); in setUp() 89 mPreferenceScreen.addPreference(mNeutralPreference); in setUp() 92 mController.displayPreference(mPreferenceScreen); in setUp() 99 (TickButtonPreference) mPreferenceScreen.getPreference(4); in displayPreference_setGrammaticalGenderIsNotSpecified_NeutralIsSelected()
|
D | TermsOfAddressMasculineControllerTest.java | 54 private PreferenceScreen mPreferenceScreen; field in TermsOfAddressMasculineControllerTest 74 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 85 mPreferenceScreen.addPreference(mPreferenceCategory); in setUp() 86 mPreferenceScreen.addPreference(mNotSpecifiedPreference); in setUp() 87 mPreferenceScreen.addPreference(mFemininePreference); in setUp() 88 mPreferenceScreen.addPreference(mMasculinePreference); in setUp() 89 mPreferenceScreen.addPreference(mNeutralPreference); in setUp() 92 mController.displayPreference(mPreferenceScreen); in setUp() 99 (TickButtonPreference) mPreferenceScreen.getPreference(3); in displayPreference_setGrammaticalGenderIsMasculine_MasculineIsSelected()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | NetworkMobileProviderControllerTest.java | 68 private PreferenceScreen mPreferenceScreen; field in NetworkMobileProviderControllerTest 92 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 93 mPreferenceScreen.setInitialExpandedChildrenCount(EXPANDED_CHILDREN_COUNT); in setUp() 94 mPreferenceScreen.addPreference(mPreferenceCategory); in setUp() 148 assertThat(mPreferenceScreen.getInitialExpandedChildrenCount()).isEqualTo( in testOnChildUpdated_subscriptionsControllerAvailable_categoryIsVisible() 160 assertThat(mPreferenceScreen.getInitialExpandedChildrenCount()).isEqualTo( in testOnChildUpdated_subscriptionsControllerUnavailable_categoryIsInvisible() 167 mPreferenceScreen.setInitialExpandedChildrenCount(Integer.MAX_VALUE); in testOnChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount() 172 assertEquals(mPreferenceScreen.getInitialExpandedChildrenCount(), Integer.MAX_VALUE); in testOnChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount() 207 mNetworkMobileProviderController.displayPreference(mPreferenceScreen); in hidePreference_hidePreferenceFalse_preferenceIsNotVisibleImmediately() 215 mNetworkMobileProviderController.displayPreference(mPreferenceScreen); in setupNetworkMobileProviderController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 74 private PreferenceScreen mPreferenceScreen; field in MobileNetworkSummaryControllerTest 110 when(mPreferenceScreen.findPreference(eq(mController.getPreferenceKey()))).thenReturn( in setUp() 138 mController.displayPreference(mPreferenceScreen); in getSummary_noSubscriptions_returnSummaryCorrectly() 160 mController.displayPreference(mPreferenceScreen); in getSummary_oneSubscription_correctSummaryAndClickHandler() 183 mController.displayPreference(mPreferenceScreen); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler() 204 mController.displayPreference(mPreferenceScreen); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 222 mController.displayPreference(mPreferenceScreen); in addButton_noSubscriptionsNoEuiccMgr_noAddClickListener() 232 mController.displayPreference(mPreferenceScreen); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener() 239 mController.displayPreference(mPreferenceScreen); in addButton_noSubscriptions_noAddClickListener() 249 mController.displayPreference(mPreferenceScreen); in addButton_oneSubscription_hasAddClickListener() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | ChooseAccountPreferenceControllerTest.java | 70 private PreferenceScreen mPreferenceScreen; field in ChooseAccountPreferenceControllerTest 79 mPreferenceScreen = mPreferenceManager.createPreferenceScreen(mContext); in setUp() 132 mController.displayPreference(mPreferenceScreen); in updateAuthDescriptions_oneProvider_shouldNotAddPreference() 135 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_oneProvider_shouldNotAddPreference() 157 mController.displayPreference(mPreferenceScreen); in updateAuthDescriptions_oneAdminDisabledProvider_shouldNotAddPreference() 160 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_oneAdminDisabledProvider_shouldNotAddPreference() 179 mController.displayPreference(mPreferenceScreen); in updateAuthDescriptions_noProvider_shouldNotAddPreference() 182 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_noProvider_shouldNotAddPreference() 210 mController.displayPreference(mPreferenceScreen); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference() 212 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/activeunlock/ |
D | ActiveUnlockStatusPreferenceControllerTest.java | 63 @Mock private PreferenceScreen mPreferenceScreen; field in ActiveUnlockStatusPreferenceControllerTest 82 when(mPreferenceScreen.findPreference(any())).thenReturn(mPreference); in setUp() 99 mController.displayPreference(mPreferenceScreen); in updateState_featureFlagDisabled_isNotVisible() 109 mController.displayPreference(mPreferenceScreen); in updateState_withoutFingerprint_withoutFace_isNotVisible() 119 mController.displayPreference(mPreferenceScreen); in updateState_withoutFingerprint_withFace_isVisible() 129 mController.displayPreference(mPreferenceScreen); in updateState_withFingerprint_withoutFace_isVisible() 139 mController.displayPreference(mPreferenceScreen); in updateState_withFingerprint_withFace_isVisible() 146 mController.displayPreference(mPreferenceScreen); in defaultState_summaryIsEmpty() 157 mController.displayPreference(mPreferenceScreen); in onStart_summaryIsUpdated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 69 private PreferenceScreen mPreferenceScreen; field in SettingsPreferenceFragmentTest 90 doReturn(ITEM_COUNT).when(mPreferenceScreen).getPreferenceCount(); in setUp() 154 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in testUpdateEmptyView_containerInvisible_emptyViewVisible() 163 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in testUpdateEmptyView_containerNull_emptyViewGone() 174 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in onCreate_hasExtraFragmentKey_shouldExpandPreferences() 181 verify(mPreferenceScreen).setInitialExpandedChildrenCount(Integer.MAX_VALUE); in onCreate_hasExtraFragmentKey_shouldExpandPreferences() 199 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference() 201 when(mPreferenceScreen.getPreferenceCount()).thenReturn(1); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference() 202 when(mPreferenceScreen.getPreference(0)).thenReturn(workOnlyCategory); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference() 205 mFragment.checkAvailablePrefs(mPreferenceScreen); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference() [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/autofill/ |
D | AutofillPickerFragmentTest.java | 57 private PreferenceScreen mPreferenceScreen; field in AutofillPickerFragmentTest 69 doReturn(mPreferenceScreen).when(mFragment).getPreferenceScreen(); in setUp() 71 doReturn(mNonePreference).when(mPreferenceScreen).findPreference( in setUp() 83 mFragment.bind(mPreferenceScreen, false); in selectedService() 86 verify(mPreferenceScreen, times(1)).addPreference(captor.capture()); in selectedService() 98 mFragment.bind(mPreferenceScreen, false); in selectedNone() 101 verify(mPreferenceScreen, times(1)).addPreference(captor.capture()); in selectedNone()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/inputmethod/ |
D | KeyboardFragmentTest.java | 57 private PreferenceScreen mPreferenceScreen; field in KeyboardFragmentTest 80 doReturn(mPreferenceScreen).when(mKeyboardFragment).getPreferenceScreen(); in setUp() 103 verify(mPreferenceScreen, atLeastOnce()).setTitle(R.string.system_keyboard); in testUpdateAutofillSettings_noCandiate() 104 verify(mPreferenceScreen, never()).setTitle(R.string.system_keyboard_autofill); in testUpdateAutofillSettings_noCandiate() 123 verify(mPreferenceScreen, atLeastOnce()).setTitle(R.string.system_keyboard_autofill); in testUpdateAutofillSettings_selected() 124 verify(mPreferenceScreen, never()).setTitle(R.string.system_keyboard); in testUpdateAutofillSettings_selected() 145 verify(mPreferenceScreen, atLeastOnce()).setTitle(R.string.system_keyboard_autofill); in testUpdateAutofillSettings_selectedNone() 146 verify(mPreferenceScreen, never()).setTitle(R.string.system_keyboard); in testUpdateAutofillSettings_selectedNone()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | AutoDataSwitchPreferenceControllerTest.java | 68 private PreferenceScreen mPreferenceScreen; field in AutoDataSwitchPreferenceControllerTest 81 when(mPreferenceScreen.findPreference(PREF_KEY)).thenReturn(mSwitchPreference); in setUp() 108 mController.displayPreference(mPreferenceScreen); in displayPreference_defaultForData_notAvailable() 119 mController.displayPreference(mPreferenceScreen); in displayPreference_notDefaultForData_available() 130 mController.displayPreference(mPreferenceScreen); in onSubscriptionsChanged_becomesDefaultForData_notAvailable() 143 mController.displayPreference(mPreferenceScreen); in onSubscriptionsChanged_noLongerDefaultForData_available() 167 mController.displayPreference(mPreferenceScreen); in getAvailabilityStatus_mobileDataChangWithoutDefaultDataSubId_returnAvailable() 178 mController.displayPreference(mPreferenceScreen); in getAvailabilityStatus_flagIsDualSimOnboardingEnabledOn_returnUnavailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | RestrictAppPreferenceControllerTest.java | 76 private PreferenceScreen mPreferenceScreen; field in RestrictAppPreferenceControllerTest 111 mPreferenceScreen = spy(new PreferenceScreen(mContext, null)); in setUp() 112 when(mPreferenceScreen.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in setUp() 113 when(mPreferenceScreen.getContext()).thenReturn(mContext); in setUp() 114 when(mPreferenceScreen.findPreference(RestrictAppPreferenceController.KEY_RESTRICT_APP)) in setUp() 129 controller.displayPreference(mPreferenceScreen); in updateState_oneApp_showCorrectSummary() 145 controller.displayPreference(mPreferenceScreen); in updateState_twoRestrictedAppsForPrimaryUser_visibleAndShowCorrectSummary() 161 controller.displayPreference(mPreferenceScreen); in updateState_oneRestrictedAppForTwoUsers_showSummaryAndContainCorrectApp() 180 controller.displayPreference(mPreferenceScreen); in updateState_zeroRestrictApp_inVisible()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenRuleStarredContactsPreferenceControllerTest.java | 60 private PreferenceScreen mPreferenceScreen; field in ZenRuleStarredContactsPreferenceControllerTest 91 when(mPreferenceScreen.findPreference(mCallsController.getPreferenceKey())) in setup() 93 mCallsController.displayPreference(mPreferenceScreen); in setup() 100 when(mPreferenceScreen.findPreference(mMessagesController.getPreferenceKey())) in setup() 102 mMessagesController.displayPreference(mPreferenceScreen); in setup() 165 when(mPreferenceScreen.findPreference(mMessagesController.getPreferenceKey())) in nullPreference_displayPreference() 169 mMessagesController.displayPreference(mPreferenceScreen); in nullPreference_displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/ |
D | NavButtonShortcutOptionControllerTest.java | 55 private PreferenceScreen mPreferenceScreen; field in NavButtonShortcutOptionControllerTest 64 mPreferenceScreen = new PreferenceManager(mContext).createPreferenceScreen(mContext); in setUp() 65 mPreferenceScreen.addPreference(mShortcutOptionPreference); in setUp() 72 mController.displayPreference(mPreferenceScreen); in displayPreference_verifyTitle() 82 mController.displayPreference(mPreferenceScreen); in displayPreference_inSuw_verifySummary() 97 mController.displayPreference(mPreferenceScreen); in displayPreference_notInSuw_verifySummary()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusUsbFirmwareController.java | 46 private PreferenceScreen mPreferenceScreen; field in StylusUsbFirmwareController 63 mPreferenceScreen = screen; in displayPreference() 76 if (mPreferenceScreen == null) return; in refresh() 83 mPreference = mPreferenceScreen.findPreference(getPreferenceKey()); in refresh() 85 mPreferenceScreen.removePreference(mPreference); in refresh() 96 mPreferenceScreen.addPreference(mPreference); in refresh()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | NetworkMobileProviderController.java | 46 private PreferenceScreen mPreferenceScreen; field in NetworkMobileProviderController 85 mPreferenceScreen = screen; in displayPreference() 86 mOriginalExpandedChildrenCount = mPreferenceScreen.getInitialExpandedChildrenCount(); in displayPreference() 110 mPreferenceScreen.setInitialExpandedChildrenCount( in onChildrenUpdated() 113 mPreferenceScreen.setInitialExpandedChildrenCount(mOriginalExpandedChildrenCount); in onChildrenUpdated()
|