Home
last modified time | relevance | path

Searched refs:GetTopicsResponse (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/topics/
DGetTopicsResponseTest.java48 () -> new GetTopicsResponse.Builder(null, ENCRYPTED_TOPICS_LIST).build()); in testGetTopicsResponseBuilder_nullableThrows()
51 () -> new GetTopicsResponse.Builder(TOPICS_LIST, null).build()); in testGetTopicsResponseBuilder_nullableThrows()
58 new GetTopicsResponse.Builder(List.of(), ENCRYPTED_TOPICS_LIST) in testGetTopicsResponseBuilder_emptyListsAllowed()
67 GetTopicsResponse response = in testGetTopicsResponseBuilder()
68 new GetTopicsResponse.Builder(TOPICS_LIST, ENCRYPTED_TOPICS_LIST).build(); in testGetTopicsResponseBuilder()
78 GetTopicsResponse getTopicsResponse1 = in testEquals()
79 new GetTopicsResponse.Builder(TOPICS_LIST, ENCRYPTED_TOPICS_LIST).build(); in testEquals()
80 GetTopicsResponse getTopicsResponse2 = in testEquals()
81 new GetTopicsResponse.Builder(TOPICS_LIST, ENCRYPTED_TOPICS_LIST).build(); in testEquals()
/packages/modules/AdServices/adservices/framework/java/android/adservices/topics/
DGetTopicsResponse.java28 public final class GetTopicsResponse { class
35 private GetTopicsResponse(List<Topic> topics, List<EncryptedTopic> encryptedTopics) { in GetTopicsResponse() method in GetTopicsResponse
58 if (!(o instanceof GetTopicsResponse)) { in equals()
61 GetTopicsResponse that = (GetTopicsResponse) o; in equals()
107 public GetTopicsResponse build() { in build()
111 return new GetTopicsResponse(mTopics, mEncryptedTopics); in build()
DTopicsManager.java148 @NonNull OutcomeReceiver<GetTopicsResponse, Exception> callback) { in getTopics() argument
228 private GetTopicsResponse buildGetTopicsResponse(GetTopicsResult resultParcel) { in buildGetTopicsResponse()
229 return new GetTopicsResponse.Builder( in buildGetTopicsResponse()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/src/com/android/adservices/tests/cts/topics/
DPreviewApiTest.java27 import android.adservices.topics.GetTopicsResponse;
96 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testRecordObservation()
100 GetTopicsResponse sdk2Result = advertisingTopicsClient2.getTopics().get(); in testRecordObservation()
150 GetTopicsResponse.Builder mockedBuilder = in testForTopicsAPITestCoverage()
151 new GetTopicsResponse.Builder(List.of(mockedTopic)); in testForTopicsAPITestCoverage()
159 GetTopicsResponse.Builder mockedEncryptedBuilder = in testForTopicsAPITestCoverage()
160 new GetTopicsResponse.Builder(List.of(mockedTopic), List.of(mockedEncryptedTopic)); in testForTopicsAPITestCoverage()
DTopicsManagerTest.java30 import android.adservices.topics.GetTopicsResponse;
184 GetTopicsResponse sdk5Result = in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
248 GetTopicsResponse sdk1Result = in testTopicsManager_runDefaultClassifier()
294 GetTopicsResponse sdk2Result2 = advertisingTopicsClient2.getTopics().get(); in testTopicsManager_runDefaultClassifier()
332 GetTopicsResponse sdk3Result = in testTopicsManager_runOnDeviceClassifier()
411 GetTopicsResponse sdk4Result = in testTopicsManager_runPrecomputedClassifier()
482 GetTopicsResponse sdk6Result = in testTopicsManager_runPrecomputedClassifier_encryptedTopics()
531 OutcomeReceiverForTests<GetTopicsResponse> receiver = new OutcomeReceiverForTests<>(); in testGetTopics_lowRamDevice()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/testapps/testapp1/java/com/android/adservices/tests/cts/topics/testapp1/
DMainActivity.java19 import android.adservices.topics.GetTopicsResponse;
63 GetTopicsResponse getTopicsResponse = callTopicsApi(SDK_NAME); in onCreate()
75 private void sendGetTopicsResponseBroadcast(@NonNull GetTopicsResponse getTopicsResponse) { in sendGetTopicsResponseBroadcast()
92 private GetTopicsResponse callTopicsApi(@NonNull String sdk) throws Exception { in callTopicsApi()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/topics/
DTopicsTestHelper.java20 import android.adservices.topics.GetTopicsResponse;
37 public static GetTopicsResponse getTopicsWithBroadcast( in getTopicsWithBroadcast()
41 GetTopicsResponse sdkResult = advertisingTopicsClient.getTopics().get(); in getTopicsWithBroadcast()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DTopicsApiLogActivity.java19 import android.adservices.topics.GetTopicsResponse;
46 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in onCreate()
51 GetTopicsResponse response = getTopicsResponseFuture.get(); in onCreate()
/packages/modules/AdServices/adservices/clients/java/android/adservices/clients/topics/
DAdvertisingTopicsClient.java19 import android.adservices.topics.GetTopicsResponse;
82 public @NonNull ListenableFuture<GetTopicsResponse> getTopics() { in getTopics()
97 new OutcomeReceiver<GetTopicsResponse, Exception>() { in getTopics()
99 public void onResult(@NonNull GetTopicsResponse result) { in getTopics()
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
95 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
100 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
102 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithnoperm/java/com/example/adservices/samples/topics/sampleappwithnoperm/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
93 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
98 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
100 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp3/java/com/example/adservices/samples/topics/sampleapp3/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
94 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
99 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
101 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp2/java/com/example/adservices/samples/topics/sampleapp2/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
94 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
99 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
101 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleappwithoptoutall/java/com/example/adservices/samples/topics/sampleappwithoptoutall/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
93 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
98 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
100 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp5/java/com/example/adservices/samples/topics/sampleapp5/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
93 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
98 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
100 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/samples/topics/sampleapp4/java/com/example/adservices/samples/topics/sampleapp4/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
94 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in registerGetTopicsButton()
99 new FutureCallback<GetTopicsResponse>() { in registerGetTopicsButton()
101 public void onSuccess(GetTopicsResponse result) { in registerGetTopicsButton()
/packages/modules/AdServices/adservices/tests/cts/sandbox/topics/providers/sdk1/src/com/android/tests/providers/sdk1/
DSdk1.java20 import android.adservices.topics.GetTopicsResponse;
58 GetTopicsResponse response = callTopicsApi(); in onLoadSdk()
104 private GetTopicsResponse callTopicsApi() throws Exception { in callTopicsApi()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/topics/
DTopicsManagerJetpackTest.java26 import androidx.privacysandbox.ads.adservices.topics.GetTopicsResponse;
101 GetTopicsResponse response = topicsManager.getTopicsAsync(request).get(); in testTopicsManager_runClassifier()
134 GetTopicsResponse response2 = in testTopicsManager_runClassifier()
/packages/modules/AdServices/adservices/samples/topics/sampleapp1/java/com/example/adservices/samples/topics/sampleapp1/
DMainActivity.java22 import android.adservices.topics.GetTopicsResponse;
158 ListenableFuture<GetTopicsResponse> getTopicsResponseFuture = in getTopics()
163 new FutureCallback<GetTopicsResponse>() { in getTopics()
165 public void onSuccess(GetTopicsResponse result) { in getTopics()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/topics/
DTopicsEpochComputationPrecomputedClassifier.java24 import android.adservices.topics.GetTopicsResponse;
127 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testEpochComputation()
169 GetTopicsResponse sdk2Result2 = advertisingTopicsClient2.getTopics().get(); in testEpochComputation()
DGetTopicsApiCall.java23 import android.adservices.topics.GetTopicsResponse;
76 GetTopicsResponse unUsedTopicsResponse = advertisingTopicsClient.getTopics().get(); in measureGetTopics()
/packages/modules/AdServices/adservices/tests/cts/sandbox/topics/src/com/android/tests/sandbox/topics/
DSandboxedTopicsManagerTest.java25 import android.adservices.topics.GetTopicsResponse;
110 GetTopicsResponse response = in loadSdkAndRunTopicsApi()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/connection/src/com/android/adservices/tests/cts/topics/connection/
DTopicsConnectionTest.java28 import android.adservices.topics.GetTopicsResponse;
112 GetTopicsResponse sdk1Result = in testEnableGlobalKillSwitch()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/mdd/src/com/android/adservices/tests/cts/topics/mdd/
DTopicsManagerMddTest.java27 import android.adservices.topics.GetTopicsResponse;
113 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DBlockedTopicsSettingsTestUtil.java22 import android.adservices.topics.GetTopicsResponse;
161 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in generateATopicToBlock()

12