Home
last modified time | relevance | path

Searched refs:mController (Results 1 – 25 of 724) sorted by relevance

12345678910>>...29

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBlockPreferenceControllerTest.java73 private BlockPreferenceController mController; field in BlockPreferenceControllerTest
85 mController = spy(new BlockPreferenceController(mContext, mImportanceListener, mBackend)); in setUp()
92 mController.isAvailable(); in testNoCrashIfNoOnResume()
93 mController.updateState(mock(LayoutPreference.class)); in testNoCrashIfNoOnResume()
94 mController.onSwitchChanged(null, false); in testNoCrashIfNoOnResume()
99 mController.onResume(null, null, null, null); in testIsAvailable_notIfNull()
100 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
109 mController.onResume(appRow, channel, null, null); in testIsAvailable_channelNotBlockable()
110 assertTrue(mController.isAvailable()); in testIsAvailable_channelNotBlockable()
119 mController.onResume(appRow, channel, null, null); in testIsAvailable_channelNonDefault()
[all …]
DRemoteVolumePreferenceControllerTest.java61 private RemoteVolumePreferenceController mController; field in RemoteVolumePreferenceControllerTest
79 mController = new RemoteVolumePreferenceController(mContext); in setUp()
91 assertThat(mController.getActiveRemoteToken(mContext)).isEqualTo(mToken); in getActiveRemoteToken_containRemoteMedia_returnToken()
99 assertThat(mController.getActiveRemoteToken(mContext)).isNull(); in getActiveRemoteToken_noRemoteMedia_returnNull()
104 assertThat(mController.isAvailable()).isTrue(); in isAvailable_returnAvailableUnsearchable()
105 assertThat(mController.getAvailabilityStatus()).isEqualTo( in isAvailable_returnAvailableUnsearchable()
111 assertThat(mController.getMuteIcon()).isEqualTo(R.drawable.ic_volume_remote_mute); in getMuteIcon_returnMuteIcon()
116 assertThat(mController.getAudioStream()).isEqualTo( in getAudioStream_returnRemoteVolume()
122 mController.mMediaController = null; in getSliderPosition_controllerNull_returnZero()
124 assertThat(mController.getSliderPosition()).isEqualTo(0); in getSliderPosition_controllerNull_returnZero()
[all …]
DNotificationPreferenceControllerTest.java68 private TestPreferenceController mController; field in NotificationPreferenceControllerTest
77 mController = new TestPreferenceController(mContext, mBackend); in setUp()
82 mController.isAvailable(); in noCrashIfNoOnResume()
83 mController.updateState(mock(Preference.class)); in noCrashIfNoOnResume()
84 assertFalse(mController.checkCanBeVisible(IMPORTANCE_UNSPECIFIED)); in noCrashIfNoOnResume()
85 mController.saveChannel(); in noCrashIfNoOnResume()
86 assertFalse(mController.isChannelBlockable()); in noCrashIfNoOnResume()
87 assertFalse(mController.isChannelGroupBlockable()); in noCrashIfNoOnResume()
92 mController.onResume(null, null, null, null); in isAvailable_notIfNull()
93 assertFalse(mController.isAvailable()); in isAvailable_notIfNull()
[all …]
DBadgePreferenceControllerTest.java72 private BadgePreferenceController mController; field in BadgePreferenceControllerTest
81 mController = spy(new BadgePreferenceController(mContext, mBackend)); in setUp()
86 mController.isAvailable(); in testNoCrashIfNoOnResume()
87 mController.updateState(mock(RestrictedSwitchPreference.class)); in testNoCrashIfNoOnResume()
88 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
95 mController.onResume(appRow, mock(NotificationChannel.class), null, null); in testIsAvailable_notIfAppBlocked()
96 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
104 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
105 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
114 mController.onResume(appRow, channel, null, null); in testIsAvailable_channel_notIfAppOff()
[all …]
DBubblePreferenceControllerTest.java80 private BubblePreferenceController mController; field in BubblePreferenceControllerTest
91 mController = spy(new BubblePreferenceController(mContext, mFragmentManager, mBackend, in setUp()
99 mController.isAvailable(); in testNoCrashIfNoOnResume()
100 mController.updateState(mock(RestrictedSwitchPreference.class)); in testNoCrashIfNoOnResume()
101 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
109 mController.onResume(appRow, mock(NotificationChannel.class), null, null); in testIsAvailable_notIfAppBlocked()
110 assertFalse(mController.isAvailable()); in testIsAvailable_notIfAppBlocked()
119 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfChannelBlocked()
120 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelBlocked()
130 mController.onResume(appRow, channel, null, null); in testIsAvailable_channel_notIfAppOff()
[all …]
DAllowSoundPreferenceControllerTest.java72 private AllowSoundPreferenceController mController; field in AllowSoundPreferenceControllerTest
81 mController = in setUp()
87 mController.isAvailable(); in testNoCrashIfNoOnResume()
88 mController.updateState(mock(RestrictedSwitchPreference.class)); in testNoCrashIfNoOnResume()
89 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
94 mController.onResume(null, mock(NotificationChannel.class), null, null); in testIsAvailable_notIfNull()
95 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
97 mController.onResume(mock(NotificationBackend.AppRow.class), null, null, null); in testIsAvailable_notIfNull()
98 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
105 mController.onResume(appRow, mock(NotificationChannel.class), null, null); in testIsAvailable_notIfAppBlocked()
[all …]
DSoundPreferenceControllerTest.java84 private SoundPreferenceController mController; field in SoundPreferenceControllerTest
93 mController = spy(new SoundPreferenceController( in setUp()
99 mController.isAvailable(); in testNoCrashIfNoOnResume()
100 mController.updateState(mock(NotificationSoundPreference.class)); in testNoCrashIfNoOnResume()
101 mController.onPreferenceChange(mock(NotificationSoundPreference.class), Uri.EMPTY); in testNoCrashIfNoOnResume()
102 mController.handlePreferenceTreeClick(mock(NotificationSoundPreference.class)); in testNoCrashIfNoOnResume()
103 mController.onActivityResult(1, 1, null); in testNoCrashIfNoOnResume()
110 mController.onResume(appRow, null, null, null); in testIsAvailable_notIfChannelNull()
111 assertFalse(mController.isAvailable()); in testIsAvailable_notIfChannelNull()
118 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
[all …]
DImportancePreferenceControllerTest.java75 private ImportancePreferenceController mController; field in ImportancePreferenceControllerTest
84 mController = spy(new ImportancePreferenceController( in setUp()
90 mController.isAvailable(); in testNoCrashIfNoOnResume()
91 mController.updateState(mock(Preference.class)); in testNoCrashIfNoOnResume()
96 mController.onResume(null, null, null, null); in testIsAvailable_notIfNull()
97 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
104 mController.onResume(appRow, mock(NotificationChannel.class), null, null); in testIsAvailable_ifAppBlocked()
105 assertFalse(mController.isAvailable()); in testIsAvailable_ifAppBlocked()
115 mController.onResume(appRow, channel, group, null); in testIsAvailable_isGroupBlocked()
116 assertFalse(mController.isAvailable()); in testIsAvailable_isGroupBlocked()
[all …]
DLightsPreferenceControllerTest.java74 private LightsPreferenceController mController; field in LightsPreferenceControllerTest
83 mController = spy(new LightsPreferenceController(mContext, mBackend)); in setUp()
98 mController.isAvailable(); in testNoCrashIfNoOnResume()
99 mController.updateState(mock(RestrictedSwitchPreference.class)); in testNoCrashIfNoOnResume()
100 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
109 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfConfigNotAllowed()
110 assertFalse(mController.isAvailable()); in testIsAvailable_notIfConfigNotAllowed()
118 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfSettingNotAllowed()
119 assertFalse(mController.isAvailable()); in testIsAvailable_notIfSettingNotAllowed()
126 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
[all …]
DHeaderPreferenceControllerTest.java59 private HeaderPreferenceController mController; field in HeaderPreferenceControllerTest
77 mController = spy(new HeaderPreferenceController(mContext, fragment)); in setUp()
83 mController.isAvailable(); in testNoCrashIfNoOnResume()
84 mController.updateState(mock(LayoutPreference.class)); in testNoCrashIfNoOnResume()
89 mController.onResume(null, null, null, null); in testIsAvailable_notIfNull()
90 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNull()
97 mController.onResume(appRow, null, null, null); in testIsAvailable()
98 assertTrue(mController.isAvailable()); in testIsAvailable()
105 mController.onResume(appRow, null, null, null); in testGetLabel()
106 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
[all …]
DVolumeSeekBarPreferenceControllerTest.java54 private VolumeSeekBarPreferenceControllerTestable mController; field in VolumeSeekBarPreferenceControllerTest
61 mController = new VolumeSeekBarPreferenceControllerTestable(mContext, mCallback, true, in setUp()
63 mController.setAudioHelper(mHelper); in setUp()
68 mController.displayPreference(mScreen); in displayPreference_available_shouldUpdatePreference()
77 mController = new VolumeSeekBarPreferenceControllerTestable(mContext, mCallback, false, in displayPreference_notAvailable_shouldNotUpdatePreference()
80 mController.displayPreference(mScreen); in displayPreference_notAvailable_shouldNotUpdatePreference()
89 mController.displayPreference(mScreen); in onResume_shouldResumePreference()
91 mController.onResume(); in onResume_shouldResumePreference()
98 mController.displayPreference(mScreen); in onPause_shouldPausePreference()
100 mController.onPause(); in onPause_shouldPausePreference()
[all …]
DVibrationPreferenceControllerTest.java72 private VibrationPreferenceController mController; field in VibrationPreferenceControllerTest
82 mController = spy(new VibrationPreferenceController(mContext, mBackend)); in setUp()
90 mController.isAvailable(); in testNoCrashIfNoOnResume()
91 mController.updateState(mock(RestrictedSwitchPreference.class)); in testNoCrashIfNoOnResume()
92 mController.onPreferenceChange(mock(RestrictedSwitchPreference.class), true); in testNoCrashIfNoOnResume()
100 mController.onResume(appRow, channel, null, null); in testIsAvailable_notSystemDoesNotHave()
101 assertFalse(mController.isAvailable()); in testIsAvailable_notSystemDoesNotHave()
108 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfNotImportant()
109 assertFalse(mController.isAvailable()); in testIsAvailable_notIfNotImportant()
117 mController.onResume(appRow, channel, null, null); in testIsAvailable_notIfDefaultChannel()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTest.java72 private FakePreferenceController mController; field in PreferenceControllerTest
84 mController = mControllerHelper.getController(); in setUp()
98 assertThat(mController.getPreference()).isEqualTo(mPreference); in setPreference_correctType_setsPreference()
103 assertThat(mController.getCheckInitializedCallCount()).isEqualTo(1); in setPreference_callsCheckInitialized()
115 assertThat(mController.getHandlePreferenceChangedCallCount()).isEqualTo(1); in setPreference_registersOnPreferenceChangeListener()
116 assertThat(mController.getHandlePreferenceChangedPreferenceArg()).isEqualTo(mPreference); in setPreference_registersOnPreferenceChangeListener()
117 assertThat(mController.getHandlePreferenceChangedValueArg()).isEqualTo(newValue); in setPreference_registersOnPreferenceChangeListener()
128 assertThat(mController.getHandlePreferenceClickedCallCount()).isEqualTo(1); in setPreference_registersOnPreferenceClickListener()
129 assertThat(mController.getHandlePreferenceClickedArg()).isEqualTo(mPreference); in setPreference_registersOnPreferenceClickListener()
134 mController.onUxRestrictionsChanged(NO_SETUP_UX_RESTRICTIONS); in onUxRestrictionsChanged_updatesUxRestrictions()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOemUnlockPreferenceControllerTest.java78 private OemUnlockPreferenceController mController; field in OemUnlockPreferenceControllerTest
90 mController = new OemUnlockPreferenceController(mContext, mActivity, mFragment); in setup()
91 when(mPreferenceScreen.findPreference(mController.getPreferenceKey())) in setup()
95 mController.displayPreference(mPreferenceScreen); in setup()
118 boolean returnValue = mController.isAvailable(); in isAvailable_shouldReturnTrueWhenOemLockManagerIsNotNull()
126 mController = new OemUnlockPreferenceController(mContext, mActivity, mFragment); in isAvailable_shouldReturnFalseWhenOemLockManagerIsNull()
127 boolean returnValue = mController.isAvailable(); in isAvailable_shouldReturnFalseWhenOemLockManagerIsNull()
134 mController = spy(mController); in onPreferenceChanged_turnOnUnlock()
135 doReturn(false).when(mController).showKeyguardConfirmation(mResources, in onPreferenceChanged_turnOnUnlock()
137 doNothing().when(mController).confirmEnableOemUnlock(); in onPreferenceChanged_turnOnUnlock()
[all …]
DPictureColorModePreferenceControllerTest.java59 private PictureColorModePreferenceController mController; field in PictureColorModePreferenceControllerTest
66 mController = new PictureColorModePreferenceController(mContext, mLifecycle); in setup()
67 when(mPreferenceScreen.findPreference(mController.getPreferenceKey())) in setup()
71 mController.displayPreference(mPreferenceScreen); in setup()
76 mController = spy(mController); in isAvailable_shouldReturnFalseWhenWideColorGambit()
77 doReturn(2).when(mController).getColorModeDescriptionsSize(); in isAvailable_shouldReturnFalseWhenWideColorGambit()
78 doReturn(true).when(mController).isWideColorGamut(); in isAvailable_shouldReturnFalseWhenWideColorGambit()
80 assertThat(mController.isAvailable()).isFalse(); in isAvailable_shouldReturnFalseWhenWideColorGambit()
85 mController = spy(mController); in isAvailable_shouldReturnTrueWhenNotWideColorGambit()
86 doReturn(2).when(mController).getColorModeDescriptionsSize(); in isAvailable_shouldReturnTrueWhenNotWideColorGambit()
[all …]
DClearAdbKeysPreferenceControllerTest.java64 private ClearAdbKeysPreferenceController mController; field in ClearAdbKeysPreferenceControllerTest
70 mController = spy(new ClearAdbKeysPreferenceController(context, mFragment)); in setUp()
71 ReflectionHelpers.setField(mController, "mAdbManager", mAdbManager); in setUp()
72 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
85 assertThat(mController.isAvailable()).isTrue(); in isAvailable_roAdbSecureEnabled_shouldBeTrue()
92 assertThat(mController.isAvailable()).isFalse(); in isAvailable_roAdbSecureDisabled_shouldBeFalse()
98 doReturn(false).when(mController).isAdminUser(); in displayPreference_isNotAdminUser_preferenceShouldBeDisabled()
100 mController.displayPreference(mScreen); in displayPreference_isNotAdminUser_preferenceShouldBeDisabled()
109 doReturn(true).when(mController).isAdminUser(); in handlePreferenceTreeClick_clearAdbKeysPreference_shouldShowWarningDialog()
110 mController.displayPreference(mScreen); in handlePreferenceTreeClick_clearAdbKeysPreference_shouldShowWarningDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java103 private SubscriptionsPreferenceController mController; field in SubscriptionsPreferenceControllerTest
124 mController = spy( in setUp()
127 doReturn(mSignalStrengthIcon).when(mController).getIcon(anyInt(), anyInt(), anyBoolean()); in setUp()
138 assertThat(mController.isAvailable()).isFalse(); in isAvailable_oneSubscription_availableFalse()
144 assertThat(mController.isAvailable()).isTrue(); in isAvailable_twoSubscriptions_availableTrue()
150 assertThat(mController.isAvailable()).isTrue(); in isAvailable_fiveSubscriptions_availableTrue()
156 assertThat(mController.isAvailable()).isTrue(); in isAvailable_airplaneModeOn_availableFalse()
158 assertThat(mController.isAvailable()).isFalse(); in isAvailable_airplaneModeOn_availableFalse()
164 mController.onResume(); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
165 mController.displayPreference(mScreen); in onAirplaneModeChanged_airplaneModeTurnedOn_eventFired()
[all …]
DMobileNetworkSummaryControllerTest.java78 private MobileNetworkSummaryController mController; field in MobileNetworkSummaryControllerTest
93 mController = new MobileNetworkSummaryController(mContext, mLifecycle); in setUp()
95 mPreference.setKey(mController.getPreferenceKey()); in setUp()
96 when(mPreferenceScreen.findPreference(eq(mController.getPreferenceKey()))).thenReturn( in setUp()
112 assertThat(mController.isAvailable()).isFalse(); in isAvailable_wifiOnlyMode_notAvailable()
122 assertThat(mController.isAvailable()).isFalse(); in isAvailable_secondaryUser_notAvailable()
128 mController.displayPreference(mPreferenceScreen); in getSummary_noSubscriptions_correctSummaryAndClickHandler()
129 mController.onResume(); in getSummary_noSubscriptions_correctSummaryAndClickHandler()
130 assertThat(mController.getSummary()).isEqualTo("Add a network"); in getSummary_noSubscriptions_correctSummaryAndClickHandler()
142 assertThat(TextUtils.isEmpty(mController.getSummary())).isTrue(); in getSummary_noSubscriptionsNoEuiccMgr_correctSummaryAndClickHandler()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java121 private AppButtonsPreferenceController mController; field in AppButtonsPreferenceControllerTest
138 mController = spy(new AppButtonsPreferenceController(mSettingsActivity, mFragment, in setUp()
148 mController.mButtonsPref = mButtonPrefs; in setUp()
149 mController.mPackageInfo = mPackageInfo; in setUp()
169 mController.retrieveAppEntry(); in retrieveAppEntry_hasAppEntry_notNull()
171 assertThat(mController.mAppEntry).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull()
172 assertThat(mController.mPackageInfo).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull()
180 mController.retrieveAppEntry(); in retrieveAppEntry_noAppEntry_null()
182 assertThat(mController.mAppEntry).isNull(); in retrieveAppEntry_noAppEntry_null()
183 assertThat(mController.mPackageInfo).isNull(); in retrieveAppEntry_noAppEntry_null()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturePreferenceControllerTest.java54 private TestPrefController mController; field in GesturePreferenceControllerTest
60 mController = new TestPrefController(mContext, "testKey"); in setUp()
62 mPreference.setKey(mController.getPreferenceKey()); in setUp()
68 mController.mIsPrefAvailable = true; in display_configIsTrue_shouldDisplay()
71 mController.displayPreference(mScreen); in display_configIsTrue_shouldDisplay()
78 mController.mIsPrefAvailable = false; in display_configIsFalse_shouldNotDisplay()
80 mController.displayPreference(mScreen); in display_configIsFalse_shouldNotDisplay()
88 when(mScreen.findPreference(mController.getVideoPrefKey())).thenReturn(videoPreference); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
89 mController.mIsPrefAvailable = true; in onResume_shouldStartVideoPreferenceWithVideoPauseState()
91 mController.displayPreference(mScreen); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
[all …]
DPreventRingingGesturePreferenceControllerTest.java46 private PreventRingingGesturePreferenceController mController; field in PreventRingingGesturePreferenceControllerTest
59 mController = new PreventRingingGesturePreferenceController(mContext, null); in setUp()
60 mController.mPreferenceCategory = new PreferenceCategory(mContext); in setUp()
61 mController.mVibratePref = new RadioButtonPreference(mContext); in setUp()
62 mController.mMutePref = new RadioButtonPreference(mContext); in setUp()
70 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable_configIsTrue_shouldReturnTrue()
78 assertThat(mController.isAvailable()).isFalse(); in testIsAvailable_configIsFalse_shouldReturnFalse()
85 mController.updateState(mPreference); in testUpdateState_mute()
86 assertThat(mController.mVibratePref.isEnabled()).isTrue(); in testUpdateState_mute()
87 assertThat(mController.mMutePref.isEnabled()).isTrue(); in testUpdateState_mute()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DOwnerInfoPreferenceControllerTest.java71 private OwnerInfoPreferenceController mController; field in OwnerInfoPreferenceControllerTest
85 mController = spy(new OwnerInfoPreferenceController(mContext, mFragment, null)); in setUp()
86 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mPreference); in setUp()
87 ReflectionHelpers.setField(mController, "mLockPatternUtils", mLockPatternUtils); in setUp()
92 assertThat(mController.isAvailable()).isTrue(); in isAvailable_shouldReturnTrue()
97 mController.onResume(); in onResume_shouldUpdateEnableState()
99 verify(mController).updateEnableState(); in onResume_shouldUpdateEnableState()
104 mController.onResume(); in onResume_shouldUpdateSummary()
106 verify(mController).updateSummary(); in onResume_shouldUpdateSummary()
112 doReturn(true).when(mController).isDeviceOwnerInfoEnabled(); in updateSummary_deviceOwnerInfoEnabled_shouldSetDeviceOwnerInfoSummary()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DMailActivity.java73 private ActivityController mController; field in MailActivity
137 mController.onTouchEvent(ev); in dispatchTouchEvent()
151 mController.onActivityResult(requestCode, resultCode, data); in onActivityResult()
156 if (!mController.onBackPressed()) { in onBackPressed()
174 mController = ControllerFactory.forActivity(this, mViewMode, tabletUi); in onCreate()
176 setContentView(mController.getContentViewResource()); in onCreate()
182 mCustomViewToolbar.setController(this, mController, mViewMode); in onCreate()
183 mController.addConversationListLayoutListener(mCustomViewToolbar); in onCreate()
187 toolbar.setNavigationOnClickListener(mController.getNavigationViewClickListener()); in onCreate()
197 mController.onCreate(savedState); in onCreate()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DEntityHeaderControllerTest.java74 private EntityHeaderController mController; field in EntityHeaderControllerTest
90 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
91 View view = mController.done(mActivity); in testBuildView_constructedWithoutView_shouldCreateNewView()
98 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
99 Preference preference = mController.done(mActivity, mShadowContext); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
108 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
109 View view = mController.done(mActivity); in testBuildView_constructedWithView_shouldReturnSameView()
123 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
124 mController.setLabel(testString); in bindViews_shouldBindAllData()
125 mController.setSummary(testString); in bindViews_shouldBindAllData()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java61 private DefaultSubscriptionController mController; field in DefaultSubscriptionControllerTest
69 mController = spy(new TestDefaultSubscriptionController(mContext, key)); in setUp()
83 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailabilityStatus_onlyOneSubscription_notAvailable()
91 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailabilityStatus_twoSubscriptions_isAvailable()
99 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
101 mController.displayPreference(mScreen); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
127 doReturn(sub2.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
129 mController.displayPreference(mScreen); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
160 doReturn(sub1.getSubscriptionId()).when(mController).getDefaultSubscriptionId(); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
162 mController.displayPreference(mScreen); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
[all …]

12345678910>>...29