Home
last modified time | relevance | path

Searched refs:ResultSyncCallback (Results 1 – 20 of 20) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DMddJobServiceTest.java68 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
218 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testSchedule_killswitchOff()
228 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testSchedule_killswitchOn()
262 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeeded_Success()
286 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeeded_ScheduledWithSameParameters()
302 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeeded_ScheduledWithDifferentParameters()
316 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ true); in testScheduleIfNeeded_forceRun()
335 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeededMddSingleTask_mddMaintenancePeriodicTask()
343 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeededMddSingleTask_mddChargingPeriodicTask()
352 ResultSyncCallback<Integer> callBack = scheduleJobInBackground(/* forceSchedule */ false); in testScheduleIfNeededMddSingleTask_mddCellularChargingPeriodicTask()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobSchedulingLoggerTest.java37 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
104 ResultSyncCallback<Void> callback = syncLogSchedulingStatsHelper(); in testRecordOnScheduling_enabled()
127 ResultSyncCallback<Void> callback = syncLogSchedulingStatsHelper(); in testRecordOnSchedulingLagacy_enabled()
165 private ResultSyncCallback<Void> syncLogSchedulingStatsHelper() { in syncLogSchedulingStatsHelper()
166 ResultSyncCallback<Void> callback = new ResultSyncCallback<>(); in syncLogSchedulingStatsHelper()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DResultSyncCallbackTest.java19 extends IResultSyncCallbackTestCase<Object, ResultSyncCallback<Object>> {
27 protected ResultSyncCallback<Object> newCallback(SyncCallbackSettings settings) { in newCallback()
28 return new ResultSyncCallback<Object>(settings); in newCallback()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DJobServiceCallback.java71 private <T extends ResultSyncCallback<Boolean>> T setCallback( in setCallback()
81 private void assertCallbackCalled(String callbackInstance, ResultSyncCallback<Boolean> callback) in assertCallbackCalled()
97 private static final class JobFinishedCallback extends ResultSyncCallback<Boolean> {
133 private static final class JobStoppedCallback extends ResultSyncCallback<Boolean> {
DResultSyncCallback.java32 public class ResultSyncCallback<R> extends DeviceSideSyncCallback class
43 public ResultSyncCallback() { in ResultSyncCallback() method in ResultSyncCallback
47 public ResultSyncCallback(SyncCallbackSettings settings) { in ResultSyncCallback() method in ResultSyncCallback
52 ResultSyncCallback(AbstractSyncCallback realCallback, SyncCallbackSettings settings) { in ResultSyncCallback() method in ResultSyncCallback
DFailableResultSyncCallback.java18 import static com.android.adservices.shared.testing.concurrency.ResultSyncCallback.getImmutableList;
47 private final ResultSyncCallback<ResultOrFailure<R, F>> mCallback;
56 mCallback = new ResultSyncCallback<>(this, settings); in FailableResultSyncCallback()
DOnResultSyncCallback.java24 public abstract class OnResultSyncCallback<T> extends ResultSyncCallback<T>
DSyncOnSharedPreferenceChangeListener.java22 public final class SyncOnSharedPreferenceChangeListener extends ResultSyncCallback<String>
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/mockito/
DMockitoExpectations.java43 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
61 public static ResultSyncCallback<ApiCallStats> mockLogApiCallStats( in mockLogApiCallStats()
71 public static ResultSyncCallback<ApiCallStats> mockLogApiCallStats( in mockLogApiCallStats()
73 ResultSyncCallback<ApiCallStats> callback = in mockLogApiCallStats()
74 new ResultSyncCallback<>( in mockLogApiCallStats()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DBooleanSyncCallback.java19 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
26 public final class BooleanSyncCallback extends ResultSyncCallback<Boolean> {
DHandlerIdleSyncCallback.java22 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
36 public final class HandlerIdleSyncCallback extends ResultSyncCallback<Object> {
DBroadcastReceiverSyncCallback.java27 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
40 public final class BroadcastReceiverSyncCallback extends ResultSyncCallback<Intent> {
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/scheduling/
DPolicyJobSchedulerTest.java60 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
311 ResultSyncCallback<Void> callback = syncRecordOnScheduling(); in testAddCallbackToSchedulingFuture_onSuccess()
324 ResultSyncCallback<Void> callback = syncRecordOnScheduling(); in testAddCallbackToSchedulingFuture_onFailure()
367 private ResultSyncCallback<Void> syncRecordOnScheduling() { in syncRecordOnScheduling()
368 ResultSyncCallback<Void> callback = new ResultSyncCallback<>(); in syncRecordOnScheduling()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DProcessLifeguardTestSuite.java31 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
179 private static class MySyncCallback extends ResultSyncCallback<Object> {
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsServiceImplTest.java107 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
849 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in testGetTopics_LatencyCalculateVerify()
898 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in testGetTopics_enforceCallingPackage_invalidPackage()
959 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in testGetTopics_recordObservation()
993 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in testGetTopics_notRecordObservation()
1038 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in invokeGetTopicsAndVerifyError()
1114 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in getTopicsResults()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsetid/src/com/android/adservices/service/appsetid/
DAppSetIdServiceImplTest.java69 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
347 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in runGetAppSetId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java66 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
114 private ResultSyncCallback<ApiCallStats> logApiCallStatsCallback;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdServicesCommonServiceImplTest.java85 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
126 private ResultSyncCallback<ApiCallStats> mLogApiCallStatsCallback;
847 ResultSyncCallback<ApiCallStats> logApiCallStatsCallback = in testGetAdservicesCommonStates_notAllowed()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DGetAdSelectionDataRunnerTest.java102 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
198 private ResultSyncCallback<ApiCallStats> logApiCallStatsCallback;
DPersistAdSelectionResultRunnerTest.java113 import com.android.adservices.shared.testing.concurrency.ResultSyncCallback;
425 private ResultSyncCallback<ApiCallStats> logApiCallStatsCallback;