Home
last modified time | relevance | path

Searched refs:SyncCallbackSettings (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackSettingsTest.java19 import static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOU…
40 new SyncCallbackSettings.Builder( in testBuilderWithInvalidArgs()
45 new SyncCallbackSettings.Builder( in testBuilderWithInvalidArgs()
51 SyncCallbackSettings settings = newDefaultBuilder().build(); in testDefaultBuilder()
72 SyncCallbackSettings settings2 = newDefaultBuilder().build(); in testDefaultBuilder()
78 SyncCallbackSettings settings = in testCustomBuilder()
101 SyncCallbackSettings.Builder builder = newDefaultBuilder(); in testBuildeReturnsUniqueObjects()
103 SyncCallbackSettings settings1 = builder.build(); in testBuildeReturnsUniqueObjects()
104 SyncCallbackSettings settings2 = builder.build(); in testBuildeReturnsUniqueObjects()
111 SyncCallbackSettings.Builder builder = newDefaultBuilder(); in testInvalidBuilderArgs()
[all …]
DSyncCallbackTestCase.java52 private final SyncCallbackSettings.Builder mFakeLoggerSettingsBuilder =
53 new SyncCallbackSettings.Builder(mFakeLogger);
54 private final SyncCallbackSettings.Builder mDefaultSettingsBuilder =
63 protected final SyncCallbackSettings mDefaultSettings = mDefaultSettingsBuilder.build();
82 protected CB newCallback(SyncCallbackSettings settings) { in newCallback()
99 protected SyncCallback newRawCallback(SyncCallbackSettings settings) { in newRawCallback()
103 private CB newFrozenCallback(SyncCallbackSettings settings) { in newFrozenCallback()
192 getConstructor(callbackClass, SyncCallbackSettings.class); in testHasExpectedConstructors()
201 SyncCallbackSettings settings = in testConstructor_cannotFailOnMainThread()
316 SyncCallbackSettings settings = mDefaultSettingsBuilder.setExpectedNumberCalls(2).build(); in testAssertCalled_multipleCalls()
[all …]
DMainThreadSyncCallbackTest.java25 protected AbstractSyncCallback newCallback(SyncCallbackSettings settings) { in newCallback()
44 new SyncCallbackSettings.Builder(new FakeLogger()) in MainThreadSyncCallback()
49 MainThreadSyncCallback(SyncCallbackSettings settings) { in MainThreadSyncCallback()
50 super(SyncCallbackSettings.checkCanFailOnMainThread(settings)); in MainThreadSyncCallback()
DAbstractSyncCallbackTest.java25 protected AbstractSyncCallback newCallback(SyncCallbackSettings settings) { in newCallback()
111 super(new SyncCallbackSettings.Builder(new FakeLogger()).build()); in ConcreteSyncCallback()
114 ConcreteSyncCallback(SyncCallbackSettings settings) { in ConcreteSyncCallback()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackSettings.java40 public final class SyncCallbackSettings implements Identifiable { class
55 private SyncCallbackSettings(Builder builder) { in SyncCallbackSettings() method in SyncCallbackSettings
133 public static SyncCallbackSettings checkCanFailOnMainThread(SyncCallbackSettings settings) { in checkCanFailOnMainThread()
186 public SyncCallbackSettings build() { in build()
187 return new SyncCallbackSettings(this); in build()
DAbstractSyncCallback.java34 protected final SyncCallbackSettings mSettings;
55 public AbstractSyncCallback(SyncCallbackSettings settings) { in AbstractSyncCallback()
61 @Nullable AbstractSyncCallback realCallback, SyncCallbackSettings settings) { in AbstractSyncCallback()
90 public final SyncCallbackSettings getSettings() { in getSettings()
DAbstractResultlessSyncCallback.java20 public AbstractResultlessSyncCallback(SyncCallbackSettings settings) { in AbstractResultlessSyncCallback()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DBroadcastReceiverSyncCallback.java19 import static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOU…
29 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
63 Context context, String action, SyncCallbackSettings settings) { in BroadcastReceiverSyncCallback()
64 super(SyncCallbackSettings.checkCanFailOnMainThread(settings)); in BroadcastReceiverSyncCallback()
DAnswerSyncCallback.java23 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
50 private AnswerSyncCallback(T answer, Throwable failure, SyncCallbackSettings settings) { in AnswerSyncCallback()
96 public static AnswerSyncCallback<Void> forVoidAnswers(SyncCallbackSettings settings) { in forVoidAnswers()
101 public static <A> AnswerSyncCallback<A> forAnswers(A answer, SyncCallbackSettings settings) { in forAnswers()
DBooleanSyncCallback.java20 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
32 public BooleanSyncCallback(SyncCallbackSettings settings) { in BooleanSyncCallback()
DJobServiceLoggingCallback.java23 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
39 public JobServiceLoggingCallback(SyncCallbackSettings settings) { in JobServiceLoggingCallback()
DFutureSyncCallback.java20 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
36 public FutureSyncCallback(SyncCallbackSettings settings) { in FutureSyncCallback()
DOutcomeReceiverForTests.java21 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
43 public OutcomeReceiverForTests(SyncCallbackSettings settings) { in OutcomeReceiverForTests()
DIntFailureSyncCallback.java20 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
41 public IntFailureSyncCallback(SyncCallbackSettings settings) { in IntFailureSyncCallback()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackFactory.java26 public static SyncCallbackSettings newDefaultSettings() { in newDefaultSettings()
31 public static SyncCallbackSettings.Builder newSettingsBuilder() { in newSettingsBuilder()
32 return new SyncCallbackSettings.Builder( in newSettingsBuilder()
DDeviceSideSyncCallback.java30 protected DeviceSideSyncCallback(SyncCallbackSettings settings) { in DeviceSideSyncCallback()
35 DeviceSideSyncCallback(AbstractSyncCallback realCallback, SyncCallbackSettings settings) { in DeviceSideSyncCallback()
DResultSyncCallback.java47 public ResultSyncCallback(SyncCallbackSettings settings) { in ResultSyncCallback()
52 ResultSyncCallback(AbstractSyncCallback realCallback, SyncCallbackSettings settings) { in ResultSyncCallback()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DOnResultSyncCallbackTest.java27 protected OnResultSyncCallback<String> newCallback(SyncCallbackSettings settings) { in newCallback()
38 ConcreteOnResultSyncCallback(SyncCallbackSettings settings) { in ConcreteOnResultSyncCallback()
DFailableOnResultSyncCallbackTest.java24 SyncCallbackSettings settings) { in newCallback()
46 ConcreteFailableOnResultSyncCallback(SyncCallbackSettings settings) { in ConcreteFailableOnResultSyncCallback()
DDeviceSideSyncCallbackTest.java28 protected DeviceSideSyncCallback newCallback(SyncCallbackSettings settings) { in newCallback()
86 ConcreteDeviceSideySncCallback(SyncCallbackSettings settings) { in ConcreteDeviceSideySncCallback()
DIntFailureSyncCallbackTest.java34 protected IntFailureSyncCallback<String> newCallback(SyncCallbackSettings settings) { in newCallback()
94 ConcreteIntFailureSyncCallback(SyncCallbackSettings settings) { in ConcreteIntFailureSyncCallback()
DSyncCallbackFactoryTest.java19 import static com.android.adservices.shared.testing.concurrency.SyncCallbackSettings.DEFAULT_TIMEOU…
76 private void expectDefaultValues(String name, SyncCallbackSettings settings) { in expectDefaultValues()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DReportEventTestCallback.java27 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
35 ReportEventTestCallback(SyncCallbackSettings settings) { in ReportEventTestCallback()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DAnswerSyncCallbackTest.java24 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
44 private final SyncCallbackSettings mSettingsForTwoCalls =
51 protected AnswerSyncCallback<Void> newCallback(SyncCallbackSettings settings) { in newCallback()
DBroadcastReceiverSyncCallbackTest.java29 import com.android.adservices.shared.testing.concurrency.SyncCallbackSettings;
69 protected BroadcastReceiverSyncCallback newCallback(SyncCallbackSettings settings) { in newCallback()

12