Home
last modified time | relevance | path

Searched refs:mockActivity (Results 1 – 4 of 4) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DTetherSettingsTest.java215 receiver.onReceive(mockActivity, bluetoothTetheringOn); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn()
248 receiver.onReceive(mockActivity, bluetoothTetheringOn); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff()
293 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled() local
300 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled()
308 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled() local
315 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled()
323 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled() local
329 receiver.onReceive(mockActivity, mediaIsShared); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled()
337 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled() local
345 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
H A DMobileNetworkActivityTest.java169 final MockMobileNetworkActivity mockActivity = (MockMobileNetworkActivity) activity; in switchFragment_switchBetweenTwoSubscriptions()
170 mockActivity.switchFragment(mSubscriptionInfo1); in switchFragment_switchBetweenTwoSubscriptions()
171 assertThat(mockActivity.mSubscriptionInFragment).isEqualTo(mSubscriptionInfo1); in switchFragment_switchBetweenTwoSubscriptions()
186 final MockMobileNetworkActivity mockActivity = (MockMobileNetworkActivity) activity; in switchFragment_subscriptionsUpdate_notifyByIntent()
187 mockActivity.switchFragment(mSubscriptionInfo1); in switchFragment_subscriptionsUpdate_notifyByIntent()
188 assertThat(mockActivity.mSubscriptionInFragment).isEqualTo(mSubscriptionInfo1); in switchFragment_subscriptionsUpdate_notifyByIntent()
193 mockActivity.switchFragment(mSubscriptionInfo2); in switchFragment_subscriptionsUpdate_notifyByIntent()
194 assertThat(mockActivity.mSubscriptionInFragment).isEqualTo(mSubscriptionInfo2); in switchFragment_subscriptionsUpdate_notifyByIntent()
199 mockActivity.switchFragment(mSubscriptionInfo1); in switchFragment_subscriptionsUpdate_notifyByIntent()
200 assertThat(mockActivity.mSubscriptionInFragment).isEqualTo(mSubscriptionInfo1); in switchFragment_subscriptionsUpdate_notifyByIntent()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/chooser/
H A DChooserHelperTest.java51 final Activity mockActivity = mock(Activity.class); in testOnChoose_CallsStartActivityAsCallerWithToken() local
52 when(mockActivity.getIntent()).thenReturn(intent); in testOnChoose_CallsStartActivityAsCallerWithToken()
54 ChooserHelper.onChoose(mockActivity); in testOnChoose_CallsStartActivityAsCallerWithToken()
55 verify(mockActivity, times(1)).startActivityAsCaller( in testOnChoose_CallsStartActivityAsCallerWithToken()
/aosp12/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
H A DPackageManagerComponentLabelIconOverrideTest.kt318 var mockActivity: ParsedActivity? = null
323 mockActivity = mock<ParsedActivity> {
337 whenever(this.componentExists(same(it))) { mockActivity != null }
338 whenever(this.getActivity(same(it))) { mockActivity }