Searched refs:mockActivity (Results 1 – 4 of 4) sorted by relevance
215 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() local300 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled()308 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled() local315 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled()323 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled() local329 receiver.onReceive(mockActivity, mediaIsShared); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled()337 FragmentActivity mockActivity = mock(FragmentActivity.class); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled() local345 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled()[all …]
169 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()
51 final Activity mockActivity = mock(Activity.class); in testOnChoose_CallsStartActivityAsCallerWithToken() local52 when(mockActivity.getIntent()).thenReturn(intent); in testOnChoose_CallsStartActivityAsCallerWithToken()54 ChooserHelper.onChoose(mockActivity); in testOnChoose_CallsStartActivityAsCallerWithToken()55 verify(mockActivity, times(1)).startActivityAsCaller( in testOnChoose_CallsStartActivityAsCallerWithToken()
318 var mockActivity: ParsedActivity? = null323 mockActivity = mock<ParsedActivity> {337 whenever(this.componentExists(same(it))) { mockActivity != null }338 whenever(this.getActivity(same(it))) { mockActivity }