Home
last modified time | relevance | path

Searched refs:getAdId (Results 1 – 25 of 40) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/adid/src/com/android/adservices/service/adid/
DAdIdCacheManagerTest.java101 mAdIdCacheManager.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, callback1); in testGetAdId_cacheEnabled()
104 AdId actualAdId = new AdId(result.getAdId(), result.isLatEnabled()); in testGetAdId_cacheEnabled()
116 mAdIdCacheManager.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, callback2); in testGetAdId_cacheEnabled()
118 actualAdId = new AdId(result.getAdId(), result.isLatEnabled()); in testGetAdId_cacheEnabled()
133 mAdIdCacheManager.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, callback3); in testGetAdId_cacheEnabled()
136 actualAdId = new AdId(result.getAdId(), result.isLatEnabled()); in testGetAdId_cacheEnabled()
157 mAdIdCacheManager.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, callback); in testGetAdId_cacheDisabled()
160 AdId actualAdId = new AdId(result.getAdId(), result.isLatEnabled()); in testGetAdId_cacheDisabled()
184 mAdIdCacheManager.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, callback); in testGetAdIdOnError()
204 new UpdateAdIdRequest.Builder(adIdUpdate.getAdId()) in testUpdateAdId_success()
[all …]
DAdIdServiceImplTest.java253 public void getAdId() throws Exception { in getAdId() method in AdIdServiceImplTest
277 adidService.getAdId(mRequest, mCallerMetadata, callback); in testGetAdId_enforceCallingPackage_invalidPackage()
347 mAdIdServiceImpl.getAdId(request, mCallerMetadata, callback); in invokeGetAdIdAndVerifyError()
382 assertThat(getAdIdResult.getAdId()).isEqualTo(expectedGetAdIdResult.getAdId()); in runGetAdId()
394 adIdServiceImpl.getAdId(mRequest, mCallerMetadata, callback); in getAdIdResults()
DAdIdWorkerTest.java48 mAdIdWorker.getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, CALLBACK); in testGetAdId()
50 verify(mMockAdIdCacheManager).getAdId(PACKAGE_NAME, DUMMY_CALLER_UID, CALLBACK); in testGetAdId()
/packages/modules/AdServices/adservices/tests/cts/adid/src/com/android/adservices/tests/adid/
DAdIdManagerTest.java64 mAdIdManager.getAdId(sCallbackExecutor, callback); in testAdIdManager_SPlus()
72 mAdIdManager.getAdId(sCallbackExecutor, callback); in testAdIdManager_R()
81 assertWithMessage("getAdId()").that(resultAdId.getAdId()).isNotNull(); in validateAdIdManagerTestResults()
131 mAdIdManager.getAdId(sCallbackExecutor, callback);
136 mAdIdManager.getAdId(sCallbackExecutor, callback);
164 adIdManager.getAdId(sCallbackExecutor, receiver);
176 adIdManager.getAdId(sCallbackExecutor, receiver);
181 return adId == null ? null : adId.getAdId();
DAdIdCompatibleManagerTest.java70 adIdCompatibleManager.getAdId(CALLBACK_EXECUTOR, callback); in testAdIdCompatibleManager()
72 assertThat(resultAdId.getAdId()).isNotNull(); in testAdIdCompatibleManager()
87 adIdCompatibleManager.getAdId(CALLBACK_EXECUTOR, callback); in testAdIdCompatibleManager_verifyRateLimitReached()
94 adIdCompatibleManager.getAdId(CALLBACK_EXECUTOR, callback); in testAdIdCompatibleManager_verifyRateLimitReached()
100 adIdCompatibleManager.getAdId(CALLBACK_EXECUTOR, callback); in testAdIdCompatibleManager_verifyRateLimitReached()
115 adIdCompatibleManager.getAdId(CALLBACK_EXECUTOR, callback);
DAdIdProviderTest.java81 callback.onResult(new AdId(result.getAdId(), result.isLatEnabled())); in testAdIdProvider()
90 Assert.assertEquals(ZEROED_OUT_AD_ID, resultAdId.getAdId()); in testAdIdProvider()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adid/
DAdIdManager.java105 public void getAdId( in getAdId() method in AdIdManager
108 mImpl.getAdId(executor, OutcomeReceiverConverter.toAdServicesOutcomeReceiver(callback)); in getAdId()
120 public void getAdId( in getAdId() method in AdIdManager
123 mImpl.getAdId(executor, callback); in getAdId()
DAdIdCompatibleManager.java119 public void getAdId( in getAdId() method in AdIdCompatibleManager
149 service.getAdId( in getAdId()
163 resultParcel.getAdId(), in getAdId()
DIAdIdService.aidl32 void getAdId(in GetAdIdParam adIdParam, in CallerMetadata callerMetadata, in getAdId() method
DAdId.java65 public @NonNull String getAdId() { in getAdId() method in AdId
/packages/modules/AdServices/adservices/samples/adid/java/com/example/adservices/samples/adid/app/
DMainActivity.java71 mAdIdButton.setOnClickListener(v -> getAdId(mExecutor, adIdCallback)); in registerAdIdButton()
75 private void getAdId(Executor executor, AdServicesOutcomeReceiver<AdId, Exception> callback) { in getAdId() method in MainActivity
79 mAdIdManager.getAdId(executor, callback); in getAdId()
91 return "AdId: " + adId.getAdId() + "\n" + "LAT: " + adId.isLimitAdTrackingEnabled(); in getAdIdDisplayString()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdCacheManager.java102 public void getAdId(String packageName, int appUid, IGetAdIdCallback callback) { in getAdId() method in AdIdCacheManager
130 updateAdIdRequest.getAdId(), in updateAdId()
168 new AdId(resultParcel.getAdId(), resultParcel.isLatEnabled()); in getAdIdFromProvider()
223 editor.putString(SHARE_PREFS_CACHED_AD_ID_KEY, adId.getAdId()) in setAdIdInStorage()
250 SHARE_PREFS_CACHED_AD_ID_KEY, UNSET_AD_ID.getAdId()); in getAdIdInStorage()
298 .setAdId(resultAdId.getAdId()) in setCallbackOnResult()
DAdIdWorker.java76 public void getAdId(String packageName, int appUid, IGetAdIdCallback callback) { in getAdId() method in AdIdWorker
79 mAdIdCacheManager.getAdId(packageName, appUid, callback); in getAdId()
DAdIdServiceImpl.java97 public void getAdId( in getAdId() method in AdIdServiceImpl
130 mAdIdWorker.getAdId(packageName, callingUid, callback); in getAdId()
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DMeasurementCompatibleManager.java128 return !AdId.ZERO_OUT.equals(adId.getAdId()); in isAdIdPermissionEnabled()
219 getAdId( in registerSource()
282 getAdId( in registerSource() method
357 getAdId( in registerWebSource()
442 getAdId( in registerWebTrigger()
505 getAdId( in registerTrigger()
701 private void getAdId(MeasurementAdIdCallback measurementAdIdCallback) { in getAdId() method in MeasurementCompatibleManager
705 mAdIdManager.getAdId( in getAdId()
711 adIdValue.set(adId.getAdId().equals(AdId.ZERO_OUT) ? null : adId.getAdId()); in getAdId()
/packages/modules/AdServices/adservices/tests/cts/sandbox/adid/providers/adidsdk/src/com/android/tests/providers/adidsdk/
DAdIdSdk.java58 adIdManager.getAdId(CALLBACK_EXECUTOR, callback); in onLoadSdk()
62 if (resultAdId.getAdId() != null) { in onLoadSdk()
67 + resultAdId.getAdId()); in onLoadSdk()
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerTest.java187 .getAdId(any(), any()); in testRegisterSource_adIdEnabled_register()
226 .getAdId(any(), any()); in testRegisterSource_adIdZeroOut_register()
264 .getAdId(any(), any()); in testRegisterSource_adIdDisabled_register()
302 .getAdId(any(), any()); in testRegisterSource_adIdTimeOut_register()
525 .getAdId(any(), any()); in testRegisterWebSource_adIdEnabled_register()
563 .getAdId(any(), any()); in testRegisterWebSource_adIdZeroOut_register()
600 .getAdId(any(), any()); in testRegisterWebSource_adIdDisabled_register()
637 .getAdId(any(), any()); in testRegisterWebSource_adIdTimeOut_register()
760 .getAdId(any(), any()); in testRegisterWebTrigger_adIdEnabled_register()
798 .getAdId(any(), any()); in testRegisterWebTrigger_adIdZeroOut_register()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DReportInteractionInputTest.java83 expect.that(fromParcel.getAdId()).isEqualTo(AD_ID); in testWriteToParcel_nonNullOptionalParameters()
113 expect.that(fromParcel.getAdId()).isEqualTo(AD_ID); in testWriteToParcel_nullInputEvent()
144 expect.that(fromParcel.getAdId()).isNull(); in testWriteToParcel_nullAdId()
175 expect.that(fromParcel.getAdId()).isEqualTo(AD_ID); in testWriteToParcel_nullCallerSdkName()
DAdSelectionManagerTest.java128 expect.that(input.getAdId()).isEqualTo(AD_ID); in testAdSelectionManager_reportEvent_adIdEnabled()
154 expect.that(input.getAdId()).isNull(); in testAdSelectionManager_reportEvent_adIdZeroOut()
180 expect.that(input.getAdId()).isNull(); in testAdSelectionManager_reportEvent_adIdDisabled()
357 public void getAdId( in getAdId() method in AdSelectionManagerTest.MockAdIdManager
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/iapc/
DGetAdIdApiCallBase.java68 adIdManager.getAdId(sCallbackExecutor, callback); in callGetAdId()
77 expect.withMessage("getAdId()").that(resultAdId.getAdId()).isNotNull(); in callGetAdId()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdIdFetcher.java155 mAdIdWorker.getAdId( in convertToCallback()
161 String id = getAdIdResult.getAdId(); in convertToCallback()
DReportAndRegisterEventImpl.java248 input.getAdId() != null, in reportAndRegisterUris()
251 input.getAdId()); in reportAndRegisterUris()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DAdSelectionManager.java777 getAdId((adIdValue) -> inputBuilder.setAdId(adIdValue)); in reportEvent()
985 private void getAdId(AdSelectionAdIdCallback adSelectionAdIdCallback) { in getAdId() method in AdSelectionManager
989 mAdIdManager.getAdId( in getAdId()
994 String id = adId.getAdId(); in getAdId()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adid/
DAdIdTest.java35 expect.that(adId1.getAdId()).isEqualTo(TEST_AD_ID); in testAdId()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DUpdateAdIdRequestTest.java63 expect.that(request.getAdId()).isEqualTo(adIdString); in testBuildAndGetUpdateAdIdRequest()

12