Home
last modified time | relevance | path

Searched refs:getTopics (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/src/com/android/adservices/tests/cts/topics/
DTopicsManagerTest.java137 ExecutionException.class, () -> advertisingTopicsClient.getTopics().get()); in testTopicsManager_testTopicsKillSwitch()
160 ExecutionException.class, () -> advertisingTopicsClient.getTopics().get()); in testTopicsManager_disableDirectAppCalls_testEmptySdkNameRequests()
187 assertThat(sdk5Result.getTopics()).isEmpty(); in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
198 sdk5Result = advertisingTopicsClient5.getTopics().get(); in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
199 assertThat(sdk5Result.getTopics()).isNotEmpty(); in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
203 assertThat(sdk5Result.getTopics()).hasSize(1); in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
204 Topic topic = sdk5Result.getTopics().get(0); in testTopicsManager_testOnDeviceKillSwitch_shouldUsePrecomputedList()
251 assertThat(sdk1Result.getTopics()).isEmpty(); in testTopicsManager_runDefaultClassifier()
262 sdk1Result = advertisingTopicsClient1.getTopics().get(); in testTopicsManager_runDefaultClassifier()
263 assertThat(sdk1Result.getTopics()).isNotEmpty(); in testTopicsManager_runDefaultClassifier()
[all …]
DPreviewApiTest.java96 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testRecordObservation()
97 assertThat(sdk1Result.getTopics()).isEmpty(); in testRecordObservation()
100 GetTopicsResponse sdk2Result = advertisingTopicsClient2.getTopics().get(); in testRecordObservation()
101 assertThat(sdk2Result.getTopics()).isEmpty(); in testRecordObservation()
112 sdk1Result = advertisingTopicsClient1.getTopics().get(); in testRecordObservation()
113 assertThat(sdk1Result.getTopics()).isNotEmpty(); in testRecordObservation()
120 assertThat(sdk1Result.getTopics()).hasSize(1); in testRecordObservation()
121 Topic topic = sdk1Result.getTopics().get(0); in testRecordObservation()
130 sdk2Result = advertisingTopicsClient2.getTopics().get(); in testRecordObservation()
131 assertThat(sdk2Result.getTopics()).isEmpty(); in testRecordObservation()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsWorkerTest.java174 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics("app", "sdk"); in testGetTopics()
191 assertThat(getTopicsResult.getTopics()) in testGetTopics()
192 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in testGetTopics()
247 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics("app", "sdk"); in testGetTopics_enableEncryption_disablePlaintextTopics()
279 assertThat(getTopicsResult.getTopics()) in testGetTopics_enableEncryption_disablePlaintextTopics()
280 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in testGetTopics_enableEncryption_disablePlaintextTopics()
344 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics("app", "sdk"); in testGetTopics_enableEncryption_featureOn()
376 assertThat(getTopicsResult.getTopics()) in testGetTopics_enableEncryption_featureOn()
377 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in testGetTopics_enableEncryption_featureOn()
443 GetTopicsResult getTopicsResult = mTopicsWorker.getTopics("app", "sdk"); in testGetTopics_enableEncryption_featureOff()
[all …]
DTopicsServiceImplTest.java634 assertThat(getTopicsResult.getTopics()) in getTopicsFromApp_SdkTagMissing()
635 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in getTopicsFromApp_SdkTagMissing()
639 public void getTopics() throws Exception { in getTopics() method in TopicsServiceImplTest
710 assertThat(getTopicsResult.getTopics()) in getTopics_oneTopicBlocked()
711 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in getTopics_oneTopicBlocked()
805 assertThat(getTopicsResult.getTopics()) in testGetTopics_emptyTopicsReturned()
806 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in testGetTopics_emptyTopicsReturned()
852 topicsServiceImpl.getTopics(mRequest, mCallerMetadata, callback); in testGetTopics_LatencyCalculateVerify()
862 assertThat(getTopicsResult.getTopics()) in testGetTopics_LatencyCalculateVerify()
863 .containsExactlyElementsIn(expectedGetTopicsResult.getTopics()); in testGetTopics_LatencyCalculateVerify()
[all …]
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/mdd/src/com/android/adservices/tests/cts/topics/mdd/
DTopicsManagerMddTest.java113 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
114 assertThat(sdk1Result.getTopics()).isEmpty(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
138 sdk1Result = advertisingTopicsClient1.getTopics().get(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
139 assertThat(sdk1Result.getTopics()).isEmpty(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
150 sdk1Result = advertisingTopicsClient1.getTopics().get(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
151 assertThat(sdk1Result.getTopics()).isNotEmpty(); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
155 assertThat(sdk1Result.getTopics()).hasSize(1); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
156 Topic topic = sdk1Result.getTopics().get(0); in testTopicsManager_downloadModelViaMdd_runPrecomputedClassifier()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/topics/
DTopicsEpochComputationPrecomputedClassifier.java127 GetTopicsResponse sdk1Result = advertisingTopicsClient1.getTopics().get(); in testEpochComputation()
128 assertThat(sdk1Result.getTopics()).isEmpty(); in testEpochComputation()
144 sdk1Result = advertisingTopicsClient1.getTopics().get(); in testEpochComputation()
145 assertThat(sdk1Result.getTopics()).isNotEmpty(); in testEpochComputation()
152 assertThat(sdk1Result.getTopics()).hasSize(1); in testEpochComputation()
153 Topic topic = sdk1Result.getTopics().get(0); in testEpochComputation()
169 GetTopicsResponse sdk2Result2 = advertisingTopicsClient2.getTopics().get(); in testEpochComputation()
170 assertThat(sdk2Result2.getTopics()).isEmpty(); in testEpochComputation()
DTopicsEpochComputationOnDeviceClassifier.java135 GetTopicsResponse sdk3Result = advertisingTopicsClient.getTopics().get(); in testEpochComputation()
136 assertThat(sdk3Result.getTopics()).isEmpty(); in testEpochComputation()
152 sdk3Result = advertisingTopicsClient.getTopics().get(); in testEpochComputation()
153 assertThat(sdk3Result.getTopics()).isNotEmpty(); in testEpochComputation()
160 assertThat(sdk3Result.getTopics()).hasSize(1); in testEpochComputation()
161 Topic topic = sdk3Result.getTopics().get(0); in testEpochComputation()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/connection/src/com/android/adservices/tests/cts/topics/connection/
DTopicsConnectionTest.java97 ExecutionException.class, () -> advertisingTopicsClient1.getTopics().get()); in testEnableGlobalKillSwitch()
115 assertThat(sdk1Result.getTopics()).isEmpty(); in testEnableGlobalKillSwitch()
126 sdk1Result = advertisingTopicsClient2.getTopics().get(); in testEnableGlobalKillSwitch()
127 assertThat(sdk1Result.getTopics()).isNotEmpty(); in testEnableGlobalKillSwitch()
134 assertThat(sdk1Result.getTopics()).hasSize(1); in testEnableGlobalKillSwitch()
135 Topic topic = sdk1Result.getTopics().get(0); in testEnableGlobalKillSwitch()
/packages/modules/AdServices/adservices/samples/topics/sampleapp1/java/com/example/adservices/samples/topics/sampleapp1/
DMainActivity.java97 getTopics(sdkName, true); in registerGetTopicsButton()
108 getTopics(sdkName, false); in registerTopicsPreviewButton()
113 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
138 private void getTopics(String sdkName, boolean shouldRecordObservation) { in getTopics() method in MainActivity
159 mAdvertisingTopicsClient.getTopics(); in getTopics()
167 String topics = getTopics(result.getTopics()); in getTopics()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/topics/
DTopicsManagerJetpackTest.java104 assertThat(response.getTopics()).isEmpty(); in testTopicsManager_runClassifier()
116 assertThat(response.getTopics()).isNotEmpty(); in testTopicsManager_runClassifier()
123 assertThat(response.getTopics()).hasSize(1); in testTopicsManager_runClassifier()
125 Topic topic = response.getTopics().get(0); in testTopicsManager_runClassifier()
139 assertThat(response2.getTopics()).isEmpty(); in testTopicsManager_runClassifier()
/packages/modules/AdServices/adservices/samples/topics/sampleapp6/java/com/example/adservices/samples/topics/sampleapp6/
DMainActivity.java96 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
104 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
172 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleappwithnoperm/java/com/example/adservices/samples/topics/sampleappwithnoperm/
DMainActivity.java94 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
102 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
174 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleapp3/java/com/example/adservices/samples/topics/sampleapp3/
DMainActivity.java95 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
103 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
175 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleapp2/java/com/example/adservices/samples/topics/sampleapp2/
DMainActivity.java95 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
103 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
175 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleappwithoptoutall/java/com/example/adservices/samples/topics/sampleappwithoptoutall/
DMainActivity.java94 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
102 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
174 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleapp5/java/com/example/adservices/samples/topics/sampleapp5/
DMainActivity.java94 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
102 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
173 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/samples/topics/sampleapp4/java/com/example/adservices/samples/topics/sampleapp4/
DMainActivity.java95 mAdvertisingTopicsClient.getTopics(); in registerGetTopicsButton()
103 String topics = getTopics(result.getTopics()); in registerGetTopicsButton()
175 private String getTopics(List<Topic> arr) { in getTopics() method in MainActivity
/packages/modules/AdServices/adservices/tests/cts/sandbox/topics/providers/sdk1/src/com/android/tests/providers/sdk1/
DSdk1.java59 if (response.getTopics().isEmpty()) { in onLoadSdk()
66 Topic topic = response.getTopics().get(0); in onLoadSdk()
111 return advertisingTopicsClient.getTopics().get(); in callTopicsApi()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/
DTopicsActivityActionDelegate.java125 mActivity, mTopicsViewModel.getTopics(), getOnclickListener, false); in configureSharedElements()
130 mTopicsViewModel.getTopics(), in configureSharedElements()
138 mTopicsViewModel.getTopics(), in configureSharedElements()
155 configureNotifyAdapterDataChange(mTopicsViewModel.getTopics(), adapter); in configureSharedElements()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/topics/
DGetTopicsResultTest.java57 expect.that(fromParcel.getTopics()).containsExactly(1, 2).inOrder(); in testWriteToParcel()
76 expect.that(fromParcel.getTopics()).isEmpty(); in testWriteToParcel_emptyResponse()
101 .getTopics()) in testWriteToParcel_nullableThrows()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DTopicsApiLogActivity.java47 advertisingTopicsClient.getTopics(); in onCreate()
53 response.getTopics().isEmpty(), "Incorrect getTopicsResponse!"); in onCreate()
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/testapps/testapp1/java/com/android/adservices/tests/cts/topics/testapp1/
DMainActivity.java76 List<Topic> topics = getTopicsResponse.getTopics(); in sendGetTopicsResponseBroadcast()
101 return builder.build().getTopics().get(); in callTopicsApi()
/packages/modules/AdServices/adservices/framework/java/android/adservices/topics/
DTopicsManager.java145 public void getTopics( in getTopics() method in TopicsManager
190 service.getTopics( in getTopics()
237 List<Integer> topicsCodeList = resultParcel.getTopics(); in getTopicList()
/packages/modules/AdServices/adservices/apk/unittest/src/com/android/adservices/ui/settings/viewmodels/
DTopicsViewModelTest.java90 assertThat(mTopicsViewModel.getTopics().getValue()).containsExactlyElementsIn(topicsList); in testGetTopicsReturnsNoTopics()
107 assertThat(mTopicsViewModel.getTopics().getValue()).containsExactlyElementsIn(topicsList); in testGetTopicsReturnsTopics()
/packages/modules/AdServices/adservices/clients/java/android/adservices/clients/topics/
DAdvertisingTopicsClient.java82 public @NonNull ListenableFuture<GetTopicsResponse> getTopics() { in getTopics() method in AdvertisingTopicsClient
94 mTopicsManager.getTopics( in getTopics()

12