Home
last modified time | relevance | path

Searched refs:adId (Results 1 – 18 of 18) sorted by relevance

/packages/modules/AdServices/adservices/samples/adid/java/com/example/adservices/samples/adid/app/
DMainActivity.java61 public void onResult(@NonNull AdId adId) { in registerAdIdButton()
62 setAdIdText(getAdIdDisplayString(adId)); in registerAdIdButton()
90 private String getAdIdDisplayString(AdId adId) { in getAdIdDisplayString() argument
91 return "AdId: " + adId.getAdId() + "\n" + "LAT: " + adId.isLimitAdTrackingEnabled(); in getAdIdDisplayString()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdCacheManager.java103 AdId adId = getAdIdInStorage(); in getAdId() local
106 if (adId.equals(UNSET_AD_ID)) { in getAdId()
113 packageName, appUid, adId); in getAdId()
115 setCallbackOnResult(callback, adId, /* shouldUnbindFromProvider= */ false); in getAdId()
211 void setAdIdInStorage(@NonNull AdId adId) { in setAdIdInStorage() argument
217 Objects.requireNonNull(adId); in setAdIdInStorage()
223 editor.putString(SHARE_PREFS_CACHED_AD_ID_KEY, adId.getAdId()) in setAdIdInStorage()
224 .putBoolean(SHARE_PREFS_CACHED_LAT_KEY, adId.isLimitAdTrackingEnabled()); in setAdIdInStorage()
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DUpdateAdIdRequest.java43 private UpdateAdIdRequest(String adId, boolean isLimitAdTrackingEnabled) { in UpdateAdIdRequest() argument
44 mAdId = Objects.requireNonNull(adId); in UpdateAdIdRequest()
134 public Builder(@NonNull String adId) { in Builder() argument
135 mAdId = Objects.requireNonNull(adId); in Builder()
/packages/modules/AdServices/adservices/tests/unittest/service-core/adid/src/com/android/adservices/service/adid/
DAdIdCacheManagerTest.java198 AdId adId = new AdId(AD_ID, /* limitAdTrackingEnabled= */ false); in testUpdateAdId_success() local
201 mAdIdCacheManager.setAdIdInStorage(adId); in testUpdateAdId_success()
218 AdId adId = new AdId(AD_ID, /* limitAdTrackingEnabled= */ false); in testUpdateAdId_cacheDisabledWhenUpdating() local
219 mAdIdCacheManager.setAdIdInStorage(adId); in testUpdateAdId_cacheDisabledWhenUpdating()
222 .isEqualTo(adId); in testUpdateAdId_cacheDisabledWhenUpdating()
238 .isEqualTo(adId); in testUpdateAdId_cacheDisabledWhenUpdating()
241 verify(mAdIdCacheManager).setAdIdInStorage(adId); in testUpdateAdId_cacheDisabledWhenUpdating()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adid/
DGetAdIdResult.java40 @NonNull String adId, in GetAdIdResult() argument
43 mAdId = adId; in GetAdIdResult()
170 public @NonNull Builder setAdId(@NonNull String adId) { in setAdId() argument
171 mAdId = adId; in setAdId()
DAdIdProviderService.java66 AdId adId = onGetAdId(appUID, packageName);
71 .setAdId(adId.getAdId())
72 .setLatEnabled(adId.isLimitAdTrackingEnabled())
DAdId.java47 public AdId(@NonNull String adId, boolean limitAdTrackingEnabled) { in AdId() argument
48 mAdId = adId; in AdId()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/adid/
DAdIdManagerJetpackTest.java68 AdId adId = adIdManager.getAdIdAsync().get(); in testAdId() local
69 assertThat(adId.getAdId()).isNotEmpty(); in testAdId()
70 assertThat(adId.isLimitAdTrackingEnabled()).isNotNull(); in testAdId()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DReportInteractionInput.java76 @Nullable String adId, in ReportInteractionInput() argument
88 this.mAdId = adId; in ReportInteractionInput()
269 public ReportInteractionInput.Builder setAdId(@Nullable String adId) { in setAdId() argument
270 mAdId = adId; in setAdId()
DAdSelectionManager.java993 public void onResult(AdId adId) { in getAdId()
994 String id = adId.getAdId(); in getAdId()
/packages/modules/AdServices/adservices/tests/cts/adid/src/com/android/adservices/tests/adid/
DAdIdManagerTest.java180 private static String toString(AdId adId) {
181 return adId == null ? null : adId.getAdId();
DAdIdProviderTest.java66 public void onResult(AdId adId) { in testAdIdProvider()
67 future.complete(adId); in testAdIdProvider()
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DMeasurementCompatibleManager.java127 private boolean isAdIdPermissionEnabled(AdId adId) { in isAdIdPermissionEnabled() argument
128 return !AdId.ZERO_OUT.equals(adId.getAdId()); in isAdIdPermissionEnabled()
709 public void onResult(AdId adId) { in getAdId()
710 isAdIdEnabled.set(isAdIdPermissionEnabled(adId)); in getAdId()
711 adIdValue.set(adId.getAdId().equals(AdId.ZERO_OUT) ? null : adId.getAdId()); in getAdId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DMockAdIdWorker.java46 public void setResult(String adId, boolean isLatEnabled) { in setResult() argument
47 mAdId = adId; in setResult()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/
DStaticAdTechServerUtils.java216 public static String getAdRenderUri(int buyerIndex, String ca, int adId) { in getAdRenderUri() argument
217 String adPath = String.format(AD_URI_PATH_FORMAT, ca, adId); in getAdRenderUri()
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerSandboxTest.java105 String adId = "35a4ac90-e4dc-4fe7-bbc6-95e804aa7dbc"; in setUp() local
112 .onResult(new AdId(adId, true)); in setUp()
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/
DSampleHandler.java314 private ContentValues createLogRecord(String adId, double price, double score, in createLogRecord() argument
317 result.put(AD_ID_KEY, adId); in createLogRecord()
611 String adId = input.getAppParams().getString("conversion_ad_id"); in handleConversion() local
612 if (adId.isEmpty()) { in handleConversion()
630 if (adId.equals(reqAdId)) { in handleConversion()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DAdSelectionManagerTest.java337 public void setResult(AdId adId) { in setResult() argument
338 mAdId = adId; in setResult()