Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/
DMainClearTest.java91 private FragmentActivity mMockActivity; field in MainClearTest
361 when(mMainClear.getActivity()).thenReturn(mMockActivity); in testGetAccountConfirmationIntent_no_relevant_accounts()
362 when(mMockActivity.getString(R.string.account_type)).thenReturn(TEST_ACCOUNT_TYPE); in testGetAccountConfirmationIntent_no_relevant_accounts()
363 when(mMockActivity.getString(R.string.account_confirmation_package)) in testGetAccountConfirmationIntent_no_relevant_accounts()
365 when(mMockActivity.getString(R.string.account_confirmation_class)) in testGetAccountConfirmationIntent_no_relevant_accounts()
369 when(mMockActivity.getSystemService(Context.ACCOUNT_SERVICE)).thenReturn(mAccountManager); in testGetAccountConfirmationIntent_no_relevant_accounts()
376 when(mMainClear.getActivity()).thenReturn(mMockActivity); in testGetAccountConfirmationIntent_unresolved()
377 when(mMockActivity.getString(R.string.account_type)).thenReturn(TEST_ACCOUNT_TYPE); in testGetAccountConfirmationIntent_unresolved()
378 when(mMockActivity.getString(R.string.account_confirmation_package)) in testGetAccountConfirmationIntent_unresolved()
380 when(mMockActivity.getString(R.string.account_confirmation_class)) in testGetAccountConfirmationIntent_unresolved()
[all …]
DMainClearConfirmTest.java50 private FragmentActivity mMockActivity; field in MainClearConfirmTest
119 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_frpPolicyNotSupported_shouldReturnFalse()
123 when(mMockActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)) in shouldWipePersistentDataBlock_frpPolicyNotSupported_shouldReturnFalse()
133 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_hasFactoryResetProtectionPolicy_shouldReturnFalse()
143 when(mMockActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)) in shouldWipePersistentDataBlock_hasFactoryResetProtectionPolicy_shouldReturnFalse()
155 when(mMainClearConfirm.getActivity()).thenReturn(mMockActivity); in shouldWipePersistentDataBlock_isNotOrganizationOwnedDevice_shouldReturnTrue()
160 when(mMockActivity.getSystemService(Context.DEVICE_POLICY_SERVICE)) in shouldWipePersistentDataBlock_isNotOrganizationOwnedDevice_shouldReturnTrue()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetConfirmFragmentTest.java79 private FragmentActivity mMockActivity; field in FactoryResetConfirmFragmentTest
98 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java136 private FragmentActivity mMockActivity; field in WifiDetailPreferenceController2Test
297 when(mMockFragment.getActivity()).thenReturn(mMockActivity); in setUp()
990 verify(mMockActivity, never()).finish(); in noCurrentNetwork_shouldNotFinishActivityForConnectedNetwork()
1284 verify(mMockActivity, never()).finish(); in forgetNetwork_activityGone_ignoreFinish()
1297 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_FORGET); in forgetNetwork_standardWifiNetwork_forget()
1311 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_FORGET); in forgetNetwork_isSubscription_shouldShowDialog()
1350 verify(mMockActivity, never()).finish(); in networkDisconnectedState_shouldNotFinishActivityForConnectedNetwork()
1362 verify(mMockActivity, never()).finish(); in networkOnLost_shouldNotFinishActivityForConnectedNetwork()
1464 .action(mMockActivity, MetricsProto.MetricsEvent.ACTION_WIFI_SIGNIN); in testSignInButton_shouldStartCaptivePortalApp()
1526 when(mMockActivity.getResources()).thenReturn(res); in setUpForToast()