/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | AidlVehicleStubUnitTest.java | 431 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncAidl() local 435 argumentCaptor.capture()); in testGetAsyncAidl() 436 assertThat(argumentCaptor.getValue().get(0).getHalPropValue()).isEqualTo(value); in testGetAsyncAidl() 470 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncAidlError() local 474 argumentCaptor.capture()); in testGetAsyncAidlError() 475 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlError() 492 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncAidlServiceSpecificExceptionInternalError() local 496 argumentCaptor.capture()); in testGetAsyncAidlServiceSpecificExceptionInternalError() 497 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncAidlServiceSpecificExceptionInternalError() 505 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncAidlServiceSpecificExceptionTryAgainError() local [all …]
|
D | HidlVehicleStubUnitTest.java | 404 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsync() local 407 verify(mAsyncCallback, timeout(1000)).onGetAsyncResults(argumentCaptor.capture()); in testGetAsync() 408 assertThat(argumentCaptor.getValue().get(0).getHalPropValue()).isEqualTo(value); in testGetAsync() 424 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncError() local 429 verify(mAsyncCallback, timeout(1000)).onGetAsyncResults(argumentCaptor.capture()); in testGetAsyncError() 430 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncError() 447 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncTryAgainError() local 452 verify(mAsyncCallback, timeout(1000)).onGetAsyncResults(argumentCaptor.capture()); in testGetAsyncTryAgainError() 453 assertThat(argumentCaptor.getValue().get(0).getErrorCode()).isEqualTo( in testGetAsyncTryAgainError() 477 ArgumentCaptor<List<VehicleStub.GetVehicleStubAsyncResult>> argumentCaptor = in testGetAsyncOneOkayResultOneNoValue() local [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdsRelevanceExecutionLoggerImplTest.java | 85 ArgumentCaptor<ApiCallStats> argumentCaptor = ArgumentCaptor.forClass(ApiCallStats.class); in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData() local 106 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData() 108 ApiCallStats getAdSelectionDataStats = argumentCaptor.getValue(); in testFledgeAuctionServerExecutionLogger_successGetAdSelectionData() 118 ArgumentCaptor<ApiCallStats> argumentCaptor = ArgumentCaptor.forClass(ApiCallStats.class); in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult() local 139 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult() 141 ApiCallStats persistAdSelectionResultStats = argumentCaptor.getValue(); in testFledgeAuctionServerExecutionLogger_successPersistAdSelectionResult() 151 ArgumentCaptor<ApiCallStats> argumentCaptor = ArgumentCaptor.forClass(ApiCallStats.class); in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData() local 168 verify(mAdServicesLoggerMock).logApiCallStats(argumentCaptor.capture()); in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData() 170 ApiCallStats getAdSelectionDataStats = argumentCaptor.getValue(); in testFledgeAuctionServerExecutionLogger_missingStartOfGetAdSelectionData() 180 ArgumentCaptor<ApiCallStats> argumentCaptor = ArgumentCaptor.forClass(ApiCallStats.class); in testFledgeAuctionServerExecutionLogger_redundantEndOfGetAdSelectionData() local [all …]
|
D | AdServicesLoggerImplTest.java | 215 ArgumentCaptor<RunAdSelectionProcessReportedStats> argumentCaptor = in testLogRunAdSelectionProcessReportedStats() local 217 verify(mStatsdLoggerMock).logRunAdSelectionProcessReportedStats(argumentCaptor.capture()); in testLogRunAdSelectionProcessReportedStats() 218 RunAdSelectionProcessReportedStats loggedStats = argumentCaptor.getValue(); in testLogRunAdSelectionProcessReportedStats() 263 ArgumentCaptor<RunAdScoringProcessReportedStats> argumentCaptor = in testLogRunAdScoringProcessReportedStats() local 265 verify(mStatsdLoggerMock).logRunAdScoringProcessReportedStats(argumentCaptor.capture()); in testLogRunAdScoringProcessReportedStats() 266 RunAdScoringProcessReportedStats loggedStats = argumentCaptor.getValue(); in testLogRunAdScoringProcessReportedStats() 321 ArgumentCaptor<RunAdBiddingProcessReportedStats> argumentCaptor = in testLogRunAdBiddingProcessReportedStats() local 323 verify(mStatsdLoggerMock).logRunAdBiddingProcessReportedStats(argumentCaptor.capture()); in testLogRunAdBiddingProcessReportedStats() 324 RunAdBiddingProcessReportedStats loggedStats = argumentCaptor.getValue(); in testLogRunAdBiddingProcessReportedStats() 376 ArgumentCaptor<RunAdBiddingPerCAProcessReportedStats> argumentCaptor = in testLogRunAdBiddingPerCAProcessReportedStats() local [all …]
|
D | ServerAuctionKeyFetchExecutionLoggerImplTest.java | 59 ArgumentCaptor<ServerAuctionKeyFetchCalledStats> argumentCaptor = in testServerAuctionKeyFetchExecutionLogger_successNetworkKeyFetch() local 76 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_successNetworkKeyFetch() 79 argumentCaptor.getValue(); in testServerAuctionKeyFetchExecutionLogger_successNetworkKeyFetch() 94 ArgumentCaptor<ServerAuctionKeyFetchCalledStats> argumentCaptor = in testServerAuctionKeyFetchExecutionLogger_successDatabaseKeyFetch() local 106 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_successDatabaseKeyFetch() 109 argumentCaptor.getValue(); in testServerAuctionKeyFetchExecutionLogger_successDatabaseKeyFetch() 124 ArgumentCaptor<ServerAuctionKeyFetchCalledStats> argumentCaptor = in testServerAuctionKeyFetchExecutionLogger_NetworkKeyFetch_WrongEncryptionKeySource() local 141 verify(mAdServicesLoggerMock).logServerAuctionKeyFetchCalledStats(argumentCaptor.capture()); in testServerAuctionKeyFetchExecutionLogger_NetworkKeyFetch_WrongEncryptionKeySource() 144 argumentCaptor.getValue(); in testServerAuctionKeyFetchExecutionLogger_NetworkKeyFetch_WrongEncryptionKeySource() 160 ArgumentCaptor<ServerAuctionKeyFetchCalledStats> argumentCaptor = in testServerAuctionKeyFetchExecutionLogger_DatabaseKeyFetch_WrongEncryptionKeySource() local [all …]
|
D | ReportImpressionExecutionLoggerImplTest.java | 38 ArgumentCaptor<ReportImpressionApiCalledStats> argumentCaptor = in testReportImpressionStatsLogger_successLogging() local 50 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_successLogging() 52 ReportImpressionApiCalledStats stats = argumentCaptor.getValue(); in testReportImpressionStatsLogger_successLogging() 67 ArgumentCaptor<ReportImpressionApiCalledStats> argumentCaptor = in testReportImpressionStatsLogger_default() local 72 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_default() 74 ReportImpressionApiCalledStats stats = argumentCaptor.getValue(); in testReportImpressionStatsLogger_default() 96 ArgumentCaptor<ReportImpressionApiCalledStats> argumentCaptor = in testReportImpressionStatsLogger_disabledCpcBillingMetrics() local 108 verify(mAdServicesLoggerMock).logReportImpressionApiCalledStats(argumentCaptor.capture()); in testReportImpressionStatsLogger_disabledCpcBillingMetrics() 110 ReportImpressionApiCalledStats stats = argumentCaptor.getValue(); in testReportImpressionStatsLogger_disabledCpcBillingMetrics() 131 ArgumentCaptor<ReportImpressionApiCalledStats> argumentCaptor = in testReportImpressionStatsLogger_disabledDataVersionHeaderMetrics() local [all …]
|
D | SelectAdsFromOutcomesExecutionLoggerImplTest.java | 62 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesExecutionLogger_successDownloadAndExecution() local 87 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesExecutionLogger_successDownloadAndExecution() 89 SelectAdsFromOutcomesApiCalledStats capturedStats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesExecutionLogger_successDownloadAndExecution() 101 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesExecutionLogger_missingStartOfDownload() local 124 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesExecutionLogger_missingStartOfDownload() 126 SelectAdsFromOutcomesApiCalledStats capturedStats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesExecutionLogger_missingStartOfDownload() 139 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfDownload() local 166 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfDownload() 168 SelectAdsFromOutcomesApiCalledStats capturedStats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesExecutionLogger_repeatedEndOfDownload() 181 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesExecutionLogger_missingStartOfExecution() local [all …]
|
D | EncodingJobRunStatsLoggerImplTest.java | 48 ArgumentCaptor<EncodingJobRunStats> argumentCaptor = in testEncodingJobRunStatsLogger_successLogging() local 61 verify(mAdServicesLoggerMock).logEncodingJobRunStats(argumentCaptor.capture()); in testEncodingJobRunStatsLogger_successLogging() 63 EncodingJobRunStats stats = argumentCaptor.getValue(); in testEncodingJobRunStatsLogger_successLogging() 75 ArgumentCaptor<EncodingJobRunStats> argumentCaptor = in testEncodingJobRunStatsLogger_emptyLogging() local 80 verify(mAdServicesLoggerMock).logEncodingJobRunStats(argumentCaptor.capture()); in testEncodingJobRunStatsLogger_emptyLogging() 82 EncodingJobRunStats stats = argumentCaptor.getValue(); in testEncodingJobRunStatsLogger_emptyLogging()
|
D | EncodingJsFetchProcessLoggerImplTest.java | 70 ArgumentCaptor<EncodingFetchStats> argumentCaptor = in testEncodingJsFetchStatsLogger_successLogging() local 81 verify(mAdServicesLoggerMock).logEncodingJsFetchStats(argumentCaptor.capture()); in testEncodingJsFetchStatsLogger_successLogging() 83 EncodingFetchStats stats = argumentCaptor.getValue(); in testEncodingJsFetchStatsLogger_successLogging() 93 ArgumentCaptor<EncodingFetchStats> argumentCaptor = in testEncodingJsFetchStatsLogger_withoutJsDownloadStartTimestamp() local 103 verify(mAdServicesLoggerMock).logEncodingJsFetchStats(argumentCaptor.capture()); in testEncodingJsFetchStatsLogger_withoutJsDownloadStartTimestamp() 105 EncodingFetchStats stats = argumentCaptor.getValue(); in testEncodingJsFetchStatsLogger_withoutJsDownloadStartTimestamp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | FactoryResetConfirmFragmentTest.java | 113 ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in confirmClicked_sendsResetIntent() local 114 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_sendsResetIntent() 115 Intent resetIntent = argumentCaptor.getValue(); in confirmClicked_sendsResetIntent() 131 ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice() local 132 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice() 133 Intent resetIntent = argumentCaptor.getValue(); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice() 143 ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in confirmClicked_pdbManagerNull_sendsResetIntent() local 144 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_pdbManagerNull_sendsResetIntent() 145 Intent resetIntent = argumentCaptor.getValue(); in confirmClicked_pdbManagerNull_sendsResetIntent() 164 ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in confirmClicked_oemUnlockAllowed_sendsResetIntent() local [all …]
|
D | ResetNetworkConfirmFragmentTest.java | 164 ArgumentCaptor<Uri> argumentCaptor = ArgumentCaptor.forClass(Uri.class); in testResetButtonClick_cleanSmsRawTable() local 165 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_cleanSmsRawTable() 166 List<Uri> capturedUris = argumentCaptor.getAllValues(); in testResetButtonClick_cleanSmsRawTable() 239 ArgumentCaptor<Uri> argumentCaptor = ArgumentCaptor.forClass(Uri.class); in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn() local 240 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn() 241 List<Uri> capturedUris = argumentCaptor.getAllValues(); in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn() 255 ArgumentCaptor<Uri> argumentCaptor = ArgumentCaptor.forClass(Uri.class); in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn() local 256 verify(mMockContentResolver, times(2)).delete(argumentCaptor.capture(), any(), any()); in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn() 257 List<Uri> capturedUris = argumentCaptor.getAllValues(); in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 179 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent() local 180 verify(mContext).startActivityAsUser(argumentCaptor.capture(), nullable(UserHandle.class)); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent() 182 final Intent intent = argumentCaptor.getValue(); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent() 194 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in launchImagesIntent_resolveActionViewNull_settingsIntent() local 195 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchImagesIntent_resolveActionViewNull_settingsIntent() 198 final Intent intent = argumentCaptor.getValue(); in launchImagesIntent_resolveActionViewNull_settingsIntent() 211 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in launchAudioIntent_resolveActionViewNull_settingsIntent() local 212 verify(mockContext).startActivityAsUser(argumentCaptor.capture(), in launchAudioIntent_resolveActionViewNull_settingsIntent() 214 final Intent intent = argumentCaptor.getValue(); in launchAudioIntent_resolveActionViewNull_settingsIntent() 244 final ArgumentCaptor<Intent> argumentCaptor = ArgumentCaptor.forClass(Intent.class); in launchAppsIntent_forPersonal_settingsIntent() local [all …]
|
D | NonCurrentUserControllerTest.java | 103 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerAddsSecondaryUser() local 104 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerAddsSecondaryUser() 105 final Preference preference = argumentCaptor.getValue(); in controllerAddsSecondaryUser() 114 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in controllerUpdatesSummaryOfNewPreference() local 116 verify(mGroup).addPreference(argumentCaptor.capture()); in controllerUpdatesSummaryOfNewPreference() 118 final Preference preference = argumentCaptor.getValue(); in controllerUpdatesSummaryOfNewPreference() 208 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in handleResult_noStatsResult_shouldShowCachedData() local 209 verify(mGroup).addPreference(argumentCaptor.capture()); in handleResult_noStatsResult_shouldShowCachedData() 210 final Preference preference = argumentCaptor.getValue(); in handleResult_noStatsResult_shouldShowCachedData() 244 final ArgumentCaptor<Preference> argumentCaptor = ArgumentCaptor.forClass(Preference.class); in iconCallbackChangesPreferenceIcon() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | VisibilityPreferenceControllerTest.java | 224 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noLockScreenNotificationsGlobally() local 226 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally() 227 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGlobally() 229 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGlobally() 249 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noLockScreenNotificationsGloballyInProfile() local 251 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGloballyInProfile() 252 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGloballyInProfile() 254 assertFalse(toStringList(argumentCaptor.getValue()) in testUpdateState_noLockScreenNotificationsGloballyInProfile() 272 ArgumentCaptor<CharSequence[]> argumentCaptor = in testUpdateState_noPrivateLockScreenNotificationsGlobally() local 274 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noPrivateLockScreenNotificationsGlobally() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeMaintenanceTasksWorkerTests.java | 101 ArgumentCaptor<InteractionReportingTableClearedStats> argumentCaptor = in testClearExpiredAdSelectionData_removesExpiredData() local 108 .logInteractionReportingTableClearedStats(argumentCaptor.capture()); in testClearExpiredAdSelectionData_removesExpiredData() 109 InteractionReportingTableClearedStats stats = argumentCaptor.getValue(); in testClearExpiredAdSelectionData_removesExpiredData() 136 ArgumentCaptor<InteractionReportingTableClearedStats> argumentCaptor = in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() local 172 .logInteractionReportingTableClearedStats(argumentCaptor.capture()); in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() 173 InteractionReportingTableClearedStats stats = argumentCaptor.getValue(); in testClearExpiredAdSelectionData_serverAuctionDisabled_doesntClearDataFromUnifiedFlow() 199 ArgumentCaptor<InteractionReportingTableClearedStats> argumentCaptor = in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() local 240 .logInteractionReportingTableClearedStats(argumentCaptor.capture()); in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() 241 InteractionReportingTableClearedStats stats = argumentCaptor.getValue(); in testClearExpiredAdSelectionData_serverAuctionDisabled_unifiedTablesEnabled_ClearsUnifiedTables() 378 ArgumentCaptor<InteractionReportingTableClearedStats> argumentCaptor = in testClearExpiredAdSelectionDataDebugReportingDisabledDoesNotClearDebugReportData() local [all …]
|
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | AudioOffloadTest.java | 153 ArgumentCaptor<RtpConfig> argumentCaptor = ArgumentCaptor.forClass(RtpConfig.class); in testModifySession() local 154 verify(imsMediaSession, times(1)).modifySession(argumentCaptor.capture()); in testModifySession() 156 outputRtpConfig = argumentCaptor.getValue(); in testModifySession() 194 ArgumentCaptor<RtpConfig> argumentCaptor = ArgumentCaptor.forClass(RtpConfig.class); in testAddConfig() local 195 verify(imsMediaSession, times(1)).modifySession(argumentCaptor.capture()); in testAddConfig() 197 outputRtpConfig = argumentCaptor.getValue(); in testAddConfig() 267 ArgumentCaptor<android.hardware.radio.ims.media.MediaQualityThreshold> argumentCaptor = in testSetMediaQualityThreshold() local 270 verify(imsMediaSession, times(1)).setMediaQualityThreshold(argumentCaptor.capture()); in testSetMediaQualityThreshold() 273 halThreshold = argumentCaptor.getValue(); in testSetMediaQualityThreshold() 331 argumentCaptor = ArgumentCaptor.forClass(List.class); in testHeaderExtension() local [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | FirstScreenBroadcastHelperTest.kt | 345 val argumentCaptor = ArgumentCaptor.forClass(Intent::class.java) in Broadcasts are correctly formed with Extras for each Installer() constant 346 verify(context).sendBroadcast(argumentCaptor.capture()) in Broadcasts are correctly formed with Extras for each Installer() 350 argumentCaptor.value.action in Broadcasts are correctly formed with Extras for each Installer() 352 assertEquals(expectedInstallerPackage, argumentCaptor.value.`package`) in Broadcasts are correctly formed with Extras for each Installer() 355 argumentCaptor.value.getParcelableExtra("verificationToken") in Broadcasts are correctly formed with Extras for each Installer() 359 argumentCaptor.value.getStringArrayListExtra("folderItem") in Broadcasts are correctly formed with Extras for each Installer() 363 argumentCaptor.value.getStringArrayListExtra("workspaceItem") in Broadcasts are correctly formed with Extras for each Installer() 367 argumentCaptor.value.getStringArrayListExtra("hotseatItem") in Broadcasts are correctly formed with Extras for each Installer() 371 argumentCaptor.value.getStringArrayListExtra("widgetItem") in Broadcasts are correctly formed with Extras for each Installer() 375 argumentCaptor.value.getStringArrayListExtra("workspaceInstalledItems") in Broadcasts are correctly formed with Extras for each Installer() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/taskbar/controllers/ |
D | TaskbarPinningControllerTest.kt | 42 import org.mockito.kotlin.argumentCaptor 87 val argumentCaptor = argumentCaptor<Runnable>() in testOnCloseCallback_whenClosingPopupView_shouldPostVisibilityChangedToDragLayer() constant 89 verify(taskbarDragLayer, times(1)).post(argumentCaptor.capture()) in testOnCloseCallback_whenClosingPopupView_shouldPostVisibilityChangedToDragLayer() 91 val runnable = argumentCaptor.lastValue in testOnCloseCallback_whenClosingPopupView_shouldPostVisibilityChangedToDragLayer() 134 val argumentCaptor = argumentCaptor<Runnable>() in testShowPinningView_whenShowingPinningView_shouldSetTaskbarWindowFullscreenAndPostRunnableToView() constant 139 verify(view, times(1)).post(argumentCaptor.capture()) in testShowPinningView_whenShowingPinningView_shouldSetTaskbarWindowFullscreenAndPostRunnableToView() 141 val runnable = argumentCaptor.lastValue in testShowPinningView_whenShowingPinningView_shouldSetTaskbarWindowFullscreenAndPostRunnableToView()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/domain/interactor/ |
D | FingerprintManagerInteractorTest.kt | 178 argumentCaptor() in testGenerateChallenge() 200 val removalCallback: ArgumentCaptor<FingerprintManager.RemovalCallback> = argumentCaptor() in testRemoveFingerprint_succeeds() 223 val removalCallback: ArgumentCaptor<FingerprintManager.RemovalCallback> = argumentCaptor() in testRemoveFingerprint_fails() 262 val authCallback: ArgumentCaptor<FingerprintManager.AuthenticationCallback> = argumentCaptor() in testAuth_succeeds() 289 val authCallback: ArgumentCaptor<FingerprintManager.AuthenticationCallback> = argumentCaptor() in testAuth_lockout() 321 val enrollCallback: ArgumentCaptor<FingerprintManager.EnrollmentCallback> = argumentCaptor() in testEnroll_progress() 350 val enrollCallback: ArgumentCaptor<FingerprintManager.EnrollmentCallback> = argumentCaptor() in testEnroll_help() 379 val enrollCallback: ArgumentCaptor<FingerprintManager.EnrollmentCallback> = argumentCaptor() in testEnroll_error() 399 private fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() 405 inline fun <reified T : Any> argumentCaptor(): ArgumentCaptor<T> = method in com.android.settings.fingerprint2.domain.interactor.FingerprintManagerInteractorTest
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionFromOutcomesE2ETest.java | 429 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesPickHighestSuccess() local 432 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesPickHighestSuccess() 433 SelectAdsFromOutcomesApiCalledStats stats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesPickHighestSuccess() 525 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() local 528 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 529 SelectAdsFromOutcomesApiCalledStats stats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 611 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() local 614 .logSelectAdsFromOutcomesApiCalledStats(argumentCaptor.capture()); in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() 615 SelectAdsFromOutcomesApiCalledStats stats = argumentCaptor.getValue(); in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() 660 ArgumentCaptor<SelectAdsFromOutcomesApiCalledStats> argumentCaptor = in testSelectAdsFromOutcomesWaterfallMediationAdBidHigherThanBidFloorSuccess() local [all …]
|
D | ReportEventImplTest.java | 274 ArgumentCaptor<ReportInteractionApiCalledStats> argumentCaptor = in testImplSuccessfullyReportsRegisteredInteractions() local 327 .logReportInteractionApiCalledStats(argumentCaptor.capture()); in testImplSuccessfullyReportsRegisteredInteractions() 328 ReportInteractionApiCalledStats stats = argumentCaptor.getValue(); in testImplSuccessfullyReportsRegisteredInteractions() 337 ArgumentCaptor<ReportInteractionApiCalledStats> argumentCaptor = in testImplDoesNotCrashAfterSellerReportingThrowsAnException() local 412 .logReportInteractionApiCalledStats(argumentCaptor.capture()); in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 413 ReportInteractionApiCalledStats stats = argumentCaptor.getValue(); in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 422 ArgumentCaptor<ReportInteractionApiCalledStats> argumentCaptor = in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() local 497 .logReportInteractionApiCalledStats(argumentCaptor.capture()); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 498 ReportInteractionApiCalledStats stats = argumentCaptor.getValue(); in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 507 ArgumentCaptor<ReportInteractionApiCalledStats> argumentCaptor = in testImplOnlyReportsBuyersRegisteredInteractions() local [all …]
|
D | AuctionServerPayloadMetricsStrategyEnabledTest.java | 110 ArgumentCaptor<GetAdSelectionDataBuyerInputGeneratedStats> argumentCaptor = in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog() local 133 .logGetAdSelectionDataBuyerInputGeneratedStats(argumentCaptor.capture()); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog() 135 GetAdSelectionDataBuyerInputGeneratedStats stats = argumentCaptor.getAllValues().get(0); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog() 146 ArgumentCaptor<GetAdSelectionDataBuyerInputGeneratedStats> argumentCaptor = in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog_emptyStats() local 163 .logGetAdSelectionDataBuyerInputGeneratedStats(argumentCaptor.capture()); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog_emptyStats() 165 GetAdSelectionDataBuyerInputGeneratedStats stats = argumentCaptor.getValue(); in testLogGetAdSelectionDataBuyerInputGeneratedStatsWithPasMetricsDoesLog_emptyStats()
|
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/ |
D | AppsIndexerMaintenanceTest.java | 179 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleUpdateJob_oneOffThenPeriodic_isRescheduled() local 180 verify(mMockJobScheduler, times(2)).schedule(argumentCaptor.capture()); in testScheduleUpdateJob_oneOffThenPeriodic_isRescheduled() 181 List<JobInfo> jobInfos = argumentCaptor.getAllValues(); in testScheduleUpdateJob_oneOffThenPeriodic_isRescheduled() 209 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleUpdateJob_differentParams_isRescheduled() local 213 verify(mMockJobScheduler, times(2)).schedule(argumentCaptor.capture()); in testScheduleUpdateJob_differentParams_isRescheduled() 214 List<JobInfo> jobInfos = argumentCaptor.getAllValues(); in testScheduleUpdateJob_differentParams_isRescheduled() 231 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleUpdateJob_sameParams_isNotRescheduled() local 232 verify(mMockJobScheduler).schedule(argumentCaptor.capture()); in testScheduleUpdateJob_sameParams_isNotRescheduled() 233 JobInfo firstJobInfo = argumentCaptor.getValue(); in testScheduleUpdateJob_sameParams_isNotRescheduled()
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerMaintenanceTest.java | 177 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleFullUpdateJob_oneOffThenPeriodic_isRescheduled() local 178 verify(mockJobScheduler, times(2)).schedule(argumentCaptor.capture()); in testScheduleFullUpdateJob_oneOffThenPeriodic_isRescheduled() 179 List<JobInfo> jobInfos = argumentCaptor.getAllValues(); in testScheduleFullUpdateJob_oneOffThenPeriodic_isRescheduled() 208 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleFullUpdateJob_differentParams_isRescheduled() local 212 verify(mockJobScheduler, times(2)).schedule(argumentCaptor.capture()); in testScheduleFullUpdateJob_differentParams_isRescheduled() 213 List<JobInfo> jobInfos = argumentCaptor.getAllValues(); in testScheduleFullUpdateJob_differentParams_isRescheduled() 230 ArgumentCaptor<JobInfo> argumentCaptor = ArgumentCaptor.forClass(JobInfo.class); in testScheduleFullUpdateJob_sameParams_isNotRescheduled() local 231 verify(mockJobScheduler).schedule(argumentCaptor.capture()); in testScheduleFullUpdateJob_sameParams_isNotRescheduled() 232 JobInfo firstJobInfo = argumentCaptor.getValue(); in testScheduleFullUpdateJob_sameParams_isNotRescheduled()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | NetworkPasswordPreferenceControllerTest.java | 103 ArgumentCaptor<IntentFilter> argumentCaptor = ArgumentCaptor.forClass( in onCreate_registersReceivers() local 106 .registerReceiver(any(), argumentCaptor.capture()); in onCreate_registersReceivers() 108 List<IntentFilter> capturedIntentFilters = argumentCaptor.getAllValues(); in onCreate_registersReceivers() 195 ArgumentCaptor<WifiConfiguration> argumentCaptor = ArgumentCaptor.forClass( in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected() local 197 verify(mockWifiManager).connect(argumentCaptor.capture(), any()); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected() 199 WifiConfiguration config = argumentCaptor.getValue(); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected()
|