Searched refs:mMockActivity (Results 1 – 4 of 4) sorted by relevance
97 private FragmentActivity mMockActivity; field in MainClearTest371 when(mMainClear.getActivity()).thenReturn(mMockActivity); in testGetAccountConfirmationIntent_no_relevant_accounts()372 when(mMockActivity.getString(R.string.account_type)).thenReturn(TEST_ACCOUNT_TYPE); in testGetAccountConfirmationIntent_no_relevant_accounts()373 when(mMockActivity.getString(R.string.account_confirmation_package)) in testGetAccountConfirmationIntent_no_relevant_accounts()375 when(mMockActivity.getString(R.string.account_confirmation_class)) in testGetAccountConfirmationIntent_no_relevant_accounts()379 when(mMockActivity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in testGetAccountConfirmationIntent_no_relevant_accounts()386 when(mMainClear.getActivity()).thenReturn(mMockActivity); in testGetAccountConfirmationIntent_unresolved()387 when(mMockActivity.getString(R.string.account_type)).thenReturn(TEST_ACCOUNT_TYPE); in testGetAccountConfirmationIntent_unresolved()388 when(mMockActivity.getString(R.string.account_confirmation_package)) in testGetAccountConfirmationIntent_unresolved()390 when(mMockActivity.getString(R.string.account_confirmation_class)) in testGetAccountConfirmationIntent_unresolved()[all …]
62 private FragmentActivity mMockActivity; field in MainClearConfirmTest78 when(mMockActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)) in setUp()126 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagDiscabled_shouldReturnFalse()139 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_oemUnlockAllowedAndFlagEnabled_shouldReturnTrue()151 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_frpPolicyNotSupported_shouldReturnFalse()164 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_hasFactoryResetProtectionPolicy_shouldReturnFalse()184 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_isNotOrganizationOwnedDevice_shouldReturnTrue()
79 private FragmentActivity mMockActivity; field in FactoryResetConfirmFragmentTest98 when(mFragment.requireActivity()).thenReturn(mMockActivity); in setUp()99 when(mFragment.getActivity()).thenReturn(mMockActivity); in setUp()114 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_sendsResetIntent()132 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice()144 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_pdbManagerNull_sendsResetIntent()165 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_oemUnlockAllowed_sendsResetIntent()187 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()218 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
147 private FragmentActivity mMockActivity; field in WifiDetailPreferenceController2Test308 when(mMockFragment.getActivity()).thenReturn(mMockActivity); in setUp()936 verify(mMockActivity, never()).finish(); in noCurrentNetwork_shouldNotFinishActivityForConnectedNetwork()1233 verify(mMockActivity, never()).finish(); in forgetNetwork_activityGone_ignoreFinish()1246 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_FORGET); in forgetNetwork_standardWifiNetwork_forget()1260 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_FORGET); in forgetNetwork_isSubscription_shouldShowDialog()1300 verify(mMockActivity, never()).finish(); in networkDisconnectedState_shouldNotFinishActivityForConnectedNetwork()1312 verify(mMockActivity, never()).finish(); in networkOnLost_shouldNotFinishActivityForConnectedNetwork()1414 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_SIGNIN); in testSignInButton_shouldStartCaptivePortalApp()1476 when(mMockActivity.getResources()).thenReturn(res); in setUpForToast()