/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | ProvisioningIntentProviderTest.java | 116 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() local 117 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 119 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_ADMIN_POLICY_COMPLIANCE); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched() 130 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() local 131 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() 133 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_PROVISIONING_SUCCESSFUL); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched() 145 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() local 146 verify(mContext).startActivityAsUser(intentCaptor.capture(), any()); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 148 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_PROVISIONING_SUCCESSFUL); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched() 162 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched() local [all …]
|
D | FinalizationInsideSuwControllerTest.java | 342 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testDeviceOwnerFinalizationDuringSuw() local 343 verify(mActivity, never()).sendBroadcast(intentCaptor.capture()); in testDeviceOwnerFinalizationDuringSuw() 396 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testCorpOwnedManagedProfileDuringSuw() local 398 eq(mActivity), intentCaptor.capture(), anyInt(), eq(MANAGED_PROFILE_USER_HANDLE)); in testCorpOwnedManagedProfileDuringSuw() 399 assertThat(intentCaptor.getValue().getAction()) in testCorpOwnedManagedProfileDuringSuw() 409 intentCaptor = ArgumentCaptor.forClass(Intent.class); in testCorpOwnedManagedProfileDuringSuw() 411 eq(mActivity), intentCaptor.capture(), anyInt(), eq(MANAGED_PROFILE_USER_HANDLE)); in testCorpOwnedManagedProfileDuringSuw() 412 assertThat(intentCaptor.getValue().getAction()) in testCorpOwnedManagedProfileDuringSuw() 427 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyDpcLaunchedForUser() local 429 eq(mActivity), intentCaptor.capture(), anyInt(), eq(userHandle)); in verifyDpcLaunchedForUser() [all …]
|
D | DpcReceivedSuccessReceiverTest.java | 65 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testReceiver() local 66 verify(mContext).sendBroadcast(intentCaptor.capture()); in testReceiver() 69 assertEquals(ACTION_MANAGED_PROFILE_PROVISIONED, intentCaptor.getValue().getAction()); in testReceiver() 72 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in testReceiver() 76 intentCaptor.getValue().getExtra(Intent.EXTRA_USER)); in testReceiver()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | MobileNetworkSummaryControllerTest.java | 132 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_noSubscriptions_correctSummaryAndClickHandler() local 133 doNothing().when(mContext).startActivity(intentCaptor.capture()); in getSummary_noSubscriptions_correctSummaryAndClickHandler() 135 assertThat(intentCaptor.getValue().getAction()).isEqualTo( in getSummary_noSubscriptions_correctSummaryAndClickHandler() 158 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_oneSubscription_correctSummaryAndClickHandler() local 159 doNothing().when(mContext).startActivity(intentCaptor.capture()); in getSummary_oneSubscription_correctSummaryAndClickHandler() 161 Intent intent = intentCaptor.getValue(); in getSummary_oneSubscription_correctSummaryAndClickHandler() 202 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() local 203 doNothing().when(mContext).startActivity(intentCaptor.capture()); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 205 Intent intent = intentCaptor.getValue(); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler() 250 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment() local [all …]
|
D | MobileNetworkListControllerTest.java | 145 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in displayPreference_twoSubscriptions_correctlySetup() local 146 doNothing().when(mContext).startActivity(intentCaptor.capture()); in displayPreference_twoSubscriptions_correctlySetup() 149 final Intent intent1 = intentCaptor.getAllValues().get(0); in displayPreference_twoSubscriptions_correctlySetup() 150 final Intent intent2 = intentCaptor.getAllValues().get(1); in displayPreference_twoSubscriptions_correctlySetup()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | MobileNetworkSwitchControllerTest.java | 187 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly() local 188 doNothing().when(mContext).startActivity(intentCaptor.capture()); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly() 190 Bundle extra = intentCaptor.getValue().getExtras(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly() 209 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed() local 210 doNothing().when(mContext).startActivity(intentCaptor.capture()); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed() 212 Bundle extra = intentCaptor.getValue().getExtras(); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed() 230 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in switchChangeListener_fromDisabledToEnabled_setSubscriptionEnabledCalledCorrectly() local 231 doNothing().when(mContext).startActivity(intentCaptor.capture()); in switchChangeListener_fromDisabledToEnabled_setSubscriptionEnabledCalledCorrectly() 233 Bundle extra = intentCaptor.getValue().getExtras(); in switchChangeListener_fromDisabledToEnabled_setSubscriptionEnabledCalledCorrectly()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | DevicePickerFragmentTest.java | 75 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() local 84 verify(mContext).sendBroadcast(intentCaptor.capture(), in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() 86 assertThat(intentCaptor.getValue().getComponent().getPackageName()) in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() 94 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend() local 103 verify(mContext, never()).sendBroadcast(intentCaptor.capture()); in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend()
|
D | BluetoothPermissionActivityTest.java | 50 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in sendBroadcastWithPermission() local 55 verify(mContext).sendBroadcast(intentCaptor.capture(), in sendBroadcastWithPermission()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/ |
D | MoreSpecialAccessPreferenceControllerTest.java | 72 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in constructor_shouldResolveActivityWithPermissionControllerPackageName() local 73 verify(mPackageManager).resolveActivity(intentCaptor.capture(), anyInt()); in constructor_shouldResolveActivityWithPermissionControllerPackageName() 74 final Intent intent = intentCaptor.getValue(); in constructor_shouldResolveActivityWithPermissionControllerPackageName() 172 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent() local 174 verify(mContext).startActivity(intentCaptor.capture()); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent() 175 final Intent intent = intentCaptor.getValue(); in handlePreferenceTreeClick_canResolveActivity_shouldStartActivityWithIntent()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | EncryptionControllerTest.java | 184 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyStartPreProvisioningActivity() local 185 verify(mContext).startActivity(intentCaptor.capture()); in verifyStartPreProvisioningActivity() 186 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyStartPreProvisioningActivity() 192 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyShowResumeNotification() local 193 verify(mNotificationHelper).showResumeNotification(intentCaptor.capture()); in verifyShowResumeNotification() 194 assertEquals(params, intentCaptor.getValue().getParcelableExtra( in verifyShowResumeNotification()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallDiagnosticServiceControllerTest.java | 151 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testAddSimCallCausesBind() local 154 verify(mContextProxy).bindServiceAsUser(intentCaptor.capture(), in testAddSimCallCausesBind() 156 assertEquals(TEST_PACKAGE, intentCaptor.getValue().getPackage()); in testAddSimCallCausesBind() 211 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testTestOverride() local 212 verify(mContextProxy).bindServiceAsUser(intentCaptor.capture(), in testTestOverride() 214 assertEquals(TEST_CDS_PACKAGE, intentCaptor.getValue().getPackage()); in testTestOverride()
|
D | TelecomServiceImplTest.java | 572 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in registerPhoneAccountTestHelper() local 597 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testUnregisterPhoneAccount() local 706 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in addCallTestHelper() local 709 intentCaptor.capture()); in addCallTestHelper() 712 intentCaptor.capture()); in addCallTestHelper() 714 Intent capturedIntent = intentCaptor.getValue(); in addCallTestHelper() 789 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in placeCallTestHelper() local 790 verify(mUserCallIntentProcessor).processIntent(intentCaptor.capture(), anyString(), in placeCallTestHelper() 792 Intent capturedIntent = intentCaptor.getValue(); in placeCallTestHelper() 835 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetDefaultDialer() local [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | StartDpcInsideSuwServiceConnectionTest.java | 572 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyDpcLaunched() local 574 eq(activity), intentCaptor.capture(), anyInt(), any(UserHandle.class)); in verifyDpcLaunched() 575 final String intentAction = intentCaptor.getValue().getAction(); in verifyDpcLaunched() 579 assertEquals(TEST_MDM_PACKAGE_NAME, intentCaptor.getValue().getPackage()); in verifyDpcLaunched() 581 assertExtras(intentCaptor.getValue()); in verifyDpcLaunched() 588 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyBindServiceCalled() local 589 verify(activity).bindService(intentCaptor.capture(), eq(serviceConnection), anyInt()); in verifyBindServiceCalled() 592 intentCaptor.getValue().getAction()); in verifyBindServiceCalled() 595 intentCaptor.getValue().getPackage()); in verifyBindServiceCalled()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | GsmCellBroadcastHandlerTest.java | 226 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testTriggerMessage() local 227 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testTriggerMessage() 229 Intent intent = intentCaptor.getValue(); in testTriggerMessage() 309 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSmsCbLocation() local 310 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testSmsCbLocation() 312 Intent intent = intentCaptor.getValue(); in testSmsCbLocation() 352 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testGeofencingAmbiguousWithMockCalculator() local 353 verify(mMockedContext).sendOrderedBroadcast(intentCaptor.capture(), any(), in testGeofencingAmbiguousWithMockCalculator() 355 Intent intent = intentCaptor.getValue(); in testGeofencingAmbiguousWithMockCalculator()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConcreteClientModeManagerTest.java | 300 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startClientInConnectModeAndVerifyEnabled() local 301 verify(mContext, atLeastOnce()).sendStickyBroadcastAsUser(intentCaptor.capture(), in startClientInConnectModeAndVerifyEnabled() 304 List<Intent> intents = intentCaptor.getAllValues(); in startClientInConnectModeAndVerifyEnabled() 327 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyConnectModeNotificationsForCleanShutdown() local 329 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyConnectModeNotificationsForCleanShutdown() 331 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForCleanShutdown() 341 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in verifyConnectModeNotificationsForFailure() local 343 .sendStickyBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL)); in verifyConnectModeNotificationsForFailure() 345 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForFailure() 391 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in switchFromScanOnlyModeToConnectMode() local [all …]
|
D | SoftApManagerTest.java | 412 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApDefaultConfigFailedToLoad() local 413 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in startSoftApDefaultConfigFailedToLoad() 416 List<Intent> capturedIntents = intentCaptor.getAllValues(); in startSoftApDefaultConfigFailedToLoad() 439 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() local 440 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 443 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics() 467 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() local 468 verify(mContext).sendStickyBroadcastAsUser(intentCaptor.capture(), in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 471 checkApStateChangedBroadcast(intentCaptor.getValue(), WIFI_AP_STATE_FAILED, in testSetupForSoftApModeEmptyInterfaceNameFailureIncrementsMetrics() 496 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() local [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/ |
D | ClusterHomeServiceUnitTest.java | 150 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in initStartsClusterHomeActivity() local 154 intentCaptor.capture(), activityOptionsCaptor.capture(), in initStartsClusterHomeActivity() 156 assertThat(intentCaptor.getValue().getComponent()).isEqualTo(mClusterHomeActivity); in initStartsClusterHomeActivity() 289 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in startFixedActivityModeAsUserInvokesFixedActivityService() local 293 intentCaptor.capture(), activityOptionsCaptor.capture(), in startFixedActivityModeAsUserInvokesFixedActivityService() 295 assertThat(intentCaptor.getValue()).isEqualTo(intent); in startFixedActivityModeAsUserInvokesFixedActivityService()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 443 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass( in testSetAppIntent_toMdpApp_intentCorrect() local 445 verify(mContext).startActivity(intentCaptor.capture()); in testSetAppIntent_toMdpApp_intentCorrect() 446 final Intent startedIntent = intentCaptor.getValue(); in testSetAppIntent_toMdpApp_intentCorrect() 527 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass( in testSetWifiMode_withUsageInfo_dataUsageShown() local 529 verify(mContext).startActivity(intentCaptor.capture()); in testSetWifiMode_withUsageInfo_dataUsageShown() 530 final Intent startedIntent = intentCaptor.getValue(); in testSetWifiMode_withUsageInfo_dataUsageShown() 563 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass( in launchWifiDataUsage_shouldSetWifiNetworkTypeInIntentExtra() local 565 verify(mContext).startActivity(intentCaptor.capture()); in launchWifiDataUsage_shouldSetWifiNetworkTypeInIntentExtra() 566 final Intent launchIntent = intentCaptor.getValue(); in launchWifiDataUsage_shouldSetWifiNetworkTypeInIntentExtra()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSubTest.java | 297 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() local 302 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() 304 final Intent intent = intentCaptor.getValue(); in onSwitchChanged_enableSetting_shouldLaunchWfcDisclaimerFragment() 311 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity() local 318 verify(mFragment).startActivityForResult(intentCaptor.capture(), in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity() 320 final Intent intent = intentCaptor.getValue(); in onActivityResult_finishWfcDisclaimerFragment_shouldLaunchCarrierActivity()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 225 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onReceivePrimarySubListChange_WithDataPickExtra_shouldStartActivity() local 226 verify(mContext).startActivity(intentCaptor.capture()); in onReceivePrimarySubListChange_WithDataPickExtra_shouldStartActivity() 227 Intent capturedIntent = intentCaptor.getValue(); in onReceivePrimarySubListChange_WithDataPickExtra_shouldStartActivity() 250 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in onReceivePrimarySubListChange_WithDismissExtra_shouldDismiss() local 251 verify(mContext).startActivity(intentCaptor.capture()); in onReceivePrimarySubListChange_WithDismissExtra_shouldDismiss() 252 Intent capturedIntent = intentCaptor.getValue(); in onReceivePrimarySubListChange_WithDismissExtra_shouldDismiss()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/ |
D | WirelessDebuggingTest.java | 152 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() local 153 doNothing().when(mWirelessDebugging).sendBroadcast(intentCaptor.capture()); in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 167 verify(mWirelessDebugging, times(1)).sendBroadcast(eq(intentCaptor.getValue())); in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 168 assertThat(intentCaptor.getValue().getAction()) in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/security/ |
D | TopLevelSecurityEntryPreferenceControllerTest.java | 88 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_withAlternativeFragment_launchesAlternativeFragment() local 94 verify(mContext).startActivity(intentCaptor.capture()); in handlePreferenceTreeClick_withAlternativeFragment_launchesAlternativeFragment() 95 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in handlePreferenceTreeClick_withAlternativeFragment_launchesAlternativeFragment()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppInfoPreferenceControllerBaseTest.java | 96 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_shouldStartDetailFragmentClass() local 98 verify(mFragment).startActivityForResult(intentCaptor.capture(), eq(SUB_INFO_FRAGMENT)); in handlePreferenceTreeClick_shouldStartDetailFragmentClass() 99 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in handlePreferenceTreeClick_shouldStartDetailFragmentClass()
|
D | AppMemoryPreferenceControllerTest.java | 125 final ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in handlePreferenceTreeClick_shouldStartProcessStatsDetail() local 127 verify(mActivity).startActivity(intentCaptor.capture()); in handlePreferenceTreeClick_shouldStartProcessStatsDetail() 128 assertThat(intentCaptor.getValue().getStringExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT)) in handlePreferenceTreeClick_shouldStartProcessStatsDetail()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/autofill/ |
D | PasswordsPreferenceControllerTest.java | 141 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in displayPreference_withPasswords_addsPreference() local 143 verify(mContext).startActivityAsUser(intentCaptor.capture(), eq(user)); in displayPreference_withPasswords_addsPreference() 144 assertThat(intentCaptor.getValue().getComponent()) in displayPreference_withPasswords_addsPreference()
|