/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionE2ETest.java | 955 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccess_preV3BiddingLogic() local 958 assertCallbackIsSuccessful(resultsCallback); in testRunAdSelectionSuccess_preV3BiddingLogic() 959 long resultSelectionId = resultsCallback.mAdSelectionResponse.getAdSelectionId(); in testRunAdSelectionSuccess_preV3BiddingLogic() 963 resultsCallback.mAdSelectionResponse.getRenderUri().toString()); in testRunAdSelectionSuccess_preV3BiddingLogic() 1077 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() local 1080 assertCallbackIsSuccessful(resultsCallback); in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1081 long resultSelectionId = resultsCallback.mAdSelectionResponse.getAdSelectionId(); in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1095 resultsCallback.mAdSelectionResponse.getRenderUri().toString()); in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled() 1219 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() local 1222 assertCallbackIsSuccessful(resultsCallback); in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled() [all …]
|
D | AdSelectionFromOutcomesE2ETest.java | 419 AdSelectionFromOutcomesE2ETest.AdSelectionFromOutcomesTestCallback resultsCallback = in testSelectAdsFromOutcomesPickHighestSuccess() local 422 assertThat(resultsCallback.mIsSuccess).isTrue(); in testSelectAdsFromOutcomesPickHighestSuccess() 423 assertThat(resultsCallback.mAdSelectionResponse).isNotNull(); in testSelectAdsFromOutcomesPickHighestSuccess() 424 assertEquals(resultsCallback.mAdSelectionResponse.getAdSelectionId(), AD_SELECTION_ID_3); in testSelectAdsFromOutcomesPickHighestSuccess() 515 AdSelectionFromOutcomesE2ETest.AdSelectionFromOutcomesTestCallback resultsCallback = in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() local 518 assertThat(resultsCallback.mIsSuccess).isTrue(); in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 519 assertThat(resultsCallback.mAdSelectionResponse).isNotNull(); in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 520 assertEquals(AD_SELECTION_ID_3, resultsCallback.mAdSelectionResponse.getAdSelectionId()); in testSelectAdsFromOutcomesPickHighestSuccessDifferentTables() 598 AdSelectionFromOutcomesE2ETest.AdSelectionFromOutcomesTestCallback resultsCallback = in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() local 601 assertThat(resultsCallback.mIsSuccess).isTrue(); in testSelectAdsFromOutcomesPickHighestSuccessUnifiedTables() [all …]
|
D | OnDeviceAdSelectionRunnerTest.java | 510 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccess() local 528 assertTrue(resultsCallback.mIsSuccess); in testRunAdSelectionSuccess() 531 resultsCallback.mAdSelectionResponse.getAdSelectionId()); in testRunAdSelectionSuccess() 534 resultsCallback.mAdSelectionResponse.getRenderUri()); in testRunAdSelectionSuccess() 632 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() local 650 assertTrue(resultsCallback.mIsSuccess); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 653 resultsCallback.mAdSelectionResponse.getAdSelectionId()); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 656 resultsCallback.mAdSelectionResponse.getRenderUri()); in testRunAdSelectionSuccessWithShouldUseUnifiedTablesFlag() 795 AdSelectionTestCallback resultsCallback = in testRunAdSelectionSuccessWithBuyerContextualSignals() local 813 assertTrue(resultsCallback.mIsSuccess); in testRunAdSelectionSuccessWithBuyerContextualSignals() [all …]
|
D | OutcomeSelectionRunnerTest.java | 216 AdSelectionTestCallback resultsCallback = in testRunOutcomeSelectionInvalidAdSelectionConfigFromOutcomes() local 225 assertFalse(resultsCallback.mIsSuccess); in testRunOutcomeSelectionInvalidAdSelectionConfigFromOutcomes() 226 assertEquals(STATUS_INVALID_ARGUMENT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunOutcomeSelectionInvalidAdSelectionConfigFromOutcomes() 264 AdSelectionTestCallback resultsCallback = in testRunOutcomeSelectionRevokedUserConsentEmptyResult() local 273 assertTrue(resultsCallback.mIsSuccess); in testRunOutcomeSelectionRevokedUserConsentEmptyResult() 274 assertNull(resultsCallback.mAdSelectionResponse); in testRunOutcomeSelectionRevokedUserConsentEmptyResult() 345 AdSelectionTestCallback resultsCallback = in testRunOutcomeSelectionOrchestrationTimeoutFailure() local 355 assertFalse(resultsCallback.mIsSuccess); in testRunOutcomeSelectionOrchestrationTimeoutFailure() 356 assertNotNull(resultsCallback.mFledgeErrorResponse); in testRunOutcomeSelectionOrchestrationTimeoutFailure() 357 assertEquals(STATUS_TIMEOUT, resultsCallback.mFledgeErrorResponse.getStatusCode()); in testRunOutcomeSelectionOrchestrationTimeoutFailure()
|
D | AdSelectionFailureE2ETest.java | 467 SyncAdSelectionCallback resultsCallback = in testRunAdSelection_webViewNotInstalled_failsGracefully() local 469 resultsCallback.assertCalled(); in testRunAdSelection_webViewNotInstalled_failsGracefully() 471 resultsCallback.assertFailureReceived(FledgeErrorResponse.class); in testRunAdSelection_webViewNotInstalled_failsGracefully() 555 SyncReportImpressionCallback resultsCallback = in testReportImpression_webViewNotInstalled_failsGracefully() local 558 resultsCallback.assertFailureReceived(FledgeErrorResponse.class); in testReportImpression_webViewNotInstalled_failsGracefully()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 498 AdSelectionTestCallback resultsCallback = in testFledgeFlowSuccessWithDevOverridesRegisterAdBeaconDisabled() local 502 assertTrue(resultsCallback.mIsSuccess); in testFledgeFlowSuccessWithDevOverridesRegisterAdBeaconDisabled() 503 long resultSelectionId = resultsCallback.mAdSelectionResponse.getAdSelectionId(); in testFledgeFlowSuccessWithDevOverridesRegisterAdBeaconDisabled() 509 resultsCallback.mAdSelectionResponse.getRenderUri()); in testFledgeFlowSuccessWithDevOverridesRegisterAdBeaconDisabled() 511 reportImpressionAndAssertSuccess(resultsCallback.mAdSelectionResponse.getAdSelectionId()); in testFledgeFlowSuccessWithDevOverridesRegisterAdBeaconDisabled() 563 AdSelectionTestCallback resultsCallback = in testFledgeFlowSuccessWithDevOverridesWithAdCostCpcBillingEnabled() local 567 assertTrue(resultsCallback.mIsSuccess); in testFledgeFlowSuccessWithDevOverridesWithAdCostCpcBillingEnabled() 568 long resultSelectionId = resultsCallback.mAdSelectionResponse.getAdSelectionId(); in testFledgeFlowSuccessWithDevOverridesWithAdCostCpcBillingEnabled() 574 resultsCallback.mAdSelectionResponse.getRenderUri()); in testFledgeFlowSuccessWithDevOverridesWithAdCostCpcBillingEnabled() 576 reportImpressionAndAssertSuccess(resultsCallback.mAdSelectionResponse.getAdSelectionId()); in testFledgeFlowSuccessWithDevOverridesWithAdCostCpcBillingEnabled() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiManager.java | 2506 @NonNull Consumer<WifiNetworkSelectionConfig> resultsCallback) { in getNetworkSelectionConfig() argument 2508 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getNetworkSelectionConfig() 2516 resultsCallback.accept(value); in getNetworkSelectionConfig() 4633 @NonNull Consumer<List<Bundle>> resultsCallback) { in getChannelData() argument 4635 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getChannelData() 4645 resultsCallback.accept(value); in getChannelData() 6340 @NonNull Consumer<Boolean> resultsCallback) { in setTdlsEnabled() argument 6342 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in setTdlsEnabled() 6351 resultsCallback.accept(value); in setTdlsEnabled() 6391 @NonNull Consumer<Boolean> resultsCallback) { in setTdlsEnabledWithMacAddress() argument [all …]
|
D | WifiScanner.java | 1603 @NonNull Consumer<ScanData> resultsCallback) { in getCachedScanData() argument 1605 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getCachedScanData() 1614 resultsCallback.accept(scanData); in getCachedScanData()
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareManager.java | 624 @NonNull Consumer<Integer> resultsCallback) { in getMasterPreference() argument 626 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getMasterPreference() 632 executor.execute(() -> resultsCallback.accept(value)); in getMasterPreference() 1317 @NonNull Consumer<Boolean> resultsCallback) { in isOpportunisticModeEnabled() argument 1319 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in isOpportunisticModeEnabled() 1328 resultsCallback.accept(value); in isOpportunisticModeEnabled() 1374 @NonNull Consumer<List<String>> resultsCallback) { in getPairedDevices() argument 1376 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getPairedDevices() 1383 executor.execute(() -> resultsCallback.accept(value)); in getPairedDevices()
|
D | WifiAwareSession.java | 281 @NonNull Consumer<Integer> resultsCallback) { in getMasterPreference() argument 291 mgr.getMasterPreference(mClientId, mBinder, executor, resultsCallback); in getMasterPreference()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 4026 Consumer<List<Bundle>> resultsCallback = mock(Consumer.class); in testChannelData() local 4028 mWifiManager.getChannelData(executor, resultsCallback); in testChannelData() 4049 Consumer<List<Integer>> resultsCallback = mock(Consumer.class); in testAddQosPolicies() local 4051 mWifiManager.addQosPolicies(Arrays.asList(policyParams), executor, resultsCallback); in testAddQosPolicies() local 4092 Consumer<Integer> resultsCallback = mock(Consumer.class); in testSetAndGetLinkLayerStatsPollingInterval() local 4093 mWifiManager.getLinkLayerStatsPollingInterval(executor, resultsCallback); in testSetAndGetLinkLayerStatsPollingInterval() 4098 () -> mWifiManager.getLinkLayerStatsPollingInterval(null, resultsCallback)); in testSetAndGetLinkLayerStatsPollingInterval()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pManager.java | 3372 @NonNull Consumer<Integer> resultsCallback) { in getListenState() argument 3375 Objects.requireNonNull(resultsCallback, "resultsCallback cannot be null"); in getListenState() 3383 resultsCallback.accept(state); in getListenState()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 1977 Consumer<Boolean> resultsCallback = mock(Consumer.class); in testSetOpportunisticMode() local 1980 mDut.isOpportunisticModeEnabled(new SynchronousExecutor(), resultsCallback); in testSetOpportunisticMode() 1983 verify(resultsCallback).accept(true); in testSetOpportunisticMode()
|