/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | LogFields.java | 23 private final int apiType; field in LogFields 43 int apiType, int uriType, int taskType, boolean callerIsSyncAdapter, long startNanos) { in LogFields() argument 44 this.apiType = apiType; in LogFields() 52 return apiType; in getApiType() 88 private int apiType; field in LogFields.Builder 106 public Builder setApiType(int apiType) { in setApiType() argument 107 this.apiType = apiType; in setApiType() 153 new LogFields(apiType, uriType, taskType, callerIsSyncAdapter, startNanos); in build()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | FledgeAuthorizationFilter.java | 217 @AppManifestConfigCall.ApiType int apiType) in assertAdTechAllowed() argument 230 EnrollmentData enrollmentData = getEnrollmentData(adTechIdentifier, apiType); in assertAdTechAllowed() 253 if (!isAllowedAccess(appPackageName, apiType, enrollmentData)) { in assertAdTechAllowed() 295 private EnrollmentData getEnrollmentData(AdTechIdentifier adTechIdentifier, int apiType) { in getEnrollmentData() argument 296 if (apiType == API_CUSTOM_AUDIENCES) { in getEnrollmentData() 298 } else if (apiType == API_PROTECTED_SIGNALS) { in getEnrollmentData() 300 } else if (apiType == API_AD_SELECTION) { in getEnrollmentData() 308 throw new IllegalStateException(String.format(INVALID_API_TYPE, apiType)); in getEnrollmentData() 313 Uri uriForAdTech, int apiType) { in getAdTechIdentifierEnrollmentDataPair() argument 314 if (apiType == API_CUSTOM_AUDIENCES) { in getAdTechIdentifierEnrollmentDataPair() [all …]
|
D | FledgeAllowListsFilter.java | 64 @AppManifestConfigCall.ApiType int apiType) in assertAppInAllowlist() argument 67 if (!isInAllowList(appPackageName, apiType)) { in assertAppInAllowlist() 98 String appPackageName, @AppManifestConfigCall.ApiType int apiType) { in isInAllowList() argument 99 if (apiType == API_CUSTOM_AUDIENCES) { in isInAllowList() 101 } else if (apiType == API_PROTECTED_SIGNALS) { in isInAllowList() 103 } else if (apiType == API_AD_SELECTION) { in isInAllowList() 108 String.format(Locale.ENGLISH, INVALID_API_TYPE, apiType)); in isInAllowList()
|
D | AbstractFledgeServiceFilter.java | 133 @AppManifestConfigCall.ApiType int apiType) in getAndAssertAdTechFromUriAllowed() argument 136 mContext, callerPackageName, uriForAdTech, apiName, apiType); in getAndAssertAdTechFromUriAllowed() 153 @AppManifestConfigCall.ApiType int apiType) in assertFledgeEnrollment() argument 166 mContext, callerPackageName, adTech, apiName, apiType); in assertFledgeEnrollment() 177 String callerPackageName, int apiName, @AppManifestConfigCall.ApiType int apiType) in assertAppInAllowList() argument 179 mFledgeAllowListsFilter.assertAppInAllowlist(callerPackageName, apiName, apiType); in assertAppInAllowList()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/ |
D | AppSearchInteractionsDaoTest.java | 85 String apiType = AppSearchInteractionsDao.API_TYPE_PRIVACY_SANDBOX_FEATURE; in testToString() local 88 new AppSearchInteractionsDao(ID, ID, NAMESPACE, apiType, value); in testToString() 98 + apiType in testToString() 122 String apiType = AppSearchInteractionsDao.API_TYPE_PRIVACY_SANDBOX_FEATURE; in testGetQuery() local 123 String expected = "userId:" + ID + " " + "apiType:" + apiType; in testGetQuery() 124 assertThat(AppSearchInteractionsDao.getQuery(ID, apiType)).isEqualTo(expected); in testGetQuery() 129 String apiType = AppSearchInteractionsDao.API_TYPE_PRIVACY_SANDBOX_FEATURE; in testGetRowId() local 130 assertThat(AppSearchInteractionsDao.getRowId(ID, apiType)).isEqualTo(ID + "_" + apiType); in testGetRowId() 145 String apiType = AppSearchInteractionsDao.API_TYPE_PRIVACY_SANDBOX_FEATURE; in testGetPrivacySandboxFeatureType() local 147 String query = "userId:" + ID + " " + "apiType:" + apiType; in testGetPrivacySandboxFeatureType() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/ |
D | DenylistTest.java | 33 for (Integer apiType : CallStats.getAllApiCallTypes()) { in testEmptyDenylistDeniesNothing() 35 apiType)).isFalse(); in testEmptyDenylistDeniesNothing() 36 assertThat(Denylist.EMPTY_INSTANCE.checkDeniedPackage("foo", apiType)).isFalse(); in testEmptyDenylistDeniesNothing() 52 for (Integer apiType : CallStats.getAllApiCallTypes()) { in testDenyAllApis() 53 assertThat(denylist.checkDeniedPackageDatabase("foo", "bar", apiType)).isTrue(); in testDenyAllApis() 54 assertThat(denylist.checkDeniedPackageDatabase("bar", "foo", apiType)).isFalse(); in testDenyAllApis() 55 assertThat(denylist.checkDeniedPackage("foo", apiType)).isTrue(); in testDenyAllApis() 56 assertThat(denylist.checkDeniedPackage("bar", apiType)).isFalse(); in testDenyAllApis() 64 for (Integer apiType : CallStats.getAllApiCallTypes()) { in testDenyNoApis() 65 assertThat(denylist.checkDeniedPackage("foo", apiType)).isFalse(); in testDenyNoApis() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | Denylist.java | 182 @CallStats.CallType int apiType = CallStats.getApiCallTypeFromName(apis[i]); in retrieveApiTypes() local 183 if (apiType != CallStats.CALL_TYPE_UNKNOWN) { in retrieveApiTypes() 184 apiTypes.add(apiType); in retrieveApiTypes() 222 @CallStats.CallType int apiType) { in checkDeniedPackageDatabase() argument 223 if (checkDeniedPackage(packageName, apiType) in checkDeniedPackageDatabase() 224 || checkDeniedDatabase(databaseName, apiType)) { in checkDeniedPackageDatabase() 232 return deniedApiTypes != null && deniedApiTypes.contains(apiType); in checkDeniedPackageDatabase() 244 @NonNull String packageName, @CallStats.CallType int apiType) { in checkDeniedPackage() argument 246 return deniedApiTypes != null && deniedApiTypes.contains(apiType); in checkDeniedPackage() 258 @NonNull String databaseName, @CallStats.CallType int apiType) { in checkDeniedDatabase() argument [all …]
|
D | AppSearchRateLimitConfig.java | 138 public int getApiCost(@CallStats.CallType int apiType) { in getApiCost() argument 139 return mTaskQueueApiCosts.getOrDefault(apiType, DEFAULT_API_COST); in getApiCost() 170 @CallStats.CallType int apiType = CallStats.getApiCallTypeFromName(apiName); in createApiCostsMap() local 171 if (apiType == CallStats.CALL_TYPE_UNKNOWN) { in createApiCostsMap() 175 apiCostsMap.put(apiType, apiCost); in createApiCostsMap()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchConsentDao.java | 77 String id, String userId, String namespace, String apiType, String consent) { in AppSearchConsentDao() argument 81 this.mApiType = apiType; in AppSearchConsentDao() 136 public static String getRowId(@NonNull String uid, @NonNull String apiType) { in getRowId() argument 137 return uid + "_" + apiType; in getRowId() 188 @NonNull String apiType, in readConsentData() argument 193 Objects.requireNonNull(apiType); in readConsentData() 195 String query = getQuery(userId, apiType); in readConsentData() 214 static String getQuery(String userId, String apiType) { in getQuery() argument 215 return USER_ID_COLNAME + ":" + userId + " " + API_TYPE_COLNAME + ":" + apiType; in getQuery()
|
D | AppSearchInteractionsDao.java | 94 String id, String userId, String namespace, String apiType, int value) { in AppSearchInteractionsDao() argument 98 this.mApiType = apiType; in AppSearchInteractionsDao() 144 public static String getRowId(@NonNull String uid, @NonNull String apiType) { in getRowId() argument 145 return uid + "_" + apiType; in getRowId() 252 static String getQuery(String userId, String apiType) { in getQuery() argument 253 return USER_ID_COLNAME + ":" + userId + " " + API_TYPE_COLNAME + ":" + apiType; in getQuery()
|
D | AppSearchConsentWorker.java | 157 boolean getConsent(@NonNull String apiType) { in getConsent() argument 158 Objects.requireNonNull(apiType); in getConsent() 162 mGlobalSearchSession, mExecutor, mUid, apiType, mAdservicesPackageName); in getConsent() 173 void setConsent(@NonNull String apiType, @NonNull Boolean consented) { in setConsent() argument 174 Objects.requireNonNull(apiType); in setConsent() 182 AppSearchConsentDao.getRowId(mUid, apiType), in setConsent() 185 apiType, in setConsent() 389 String apiType = AppSearchInteractionsDao.API_TYPE_PRIVACY_SANDBOX_FEATURE; in setCurrentPrivacySandboxFeature() local 394 AppSearchInteractionsDao.getRowId(mUid, apiType), in setCurrentPrivacySandboxFeature() 397 apiType, in setCurrentPrivacySandboxFeature() [all …]
|
D | AppSearchConsentManager.java | 89 public boolean getConsent(@NonNull String apiType) { in getConsent() argument 90 Objects.requireNonNull(apiType); in getConsent() 91 return mAppSearchConsentWorker.getConsent(apiType); in getConsent() 99 public void setConsent(@NonNull String apiType, @NonNull Boolean consented) { in setConsent() argument 100 Objects.requireNonNull(apiType); in setConsent() 102 mAppSearchConsentWorker.setConsent(apiType, consented); in setConsent()
|
D | AppSearchAppConsentDao.java | 195 @NonNull String apiType, in readConsentData() argument 200 Objects.requireNonNull(apiType); in readConsentData() 202 String query = getQuery(userId, apiType); in readConsentData()
|
D | AppSearchConsentStorageManager.java | 178 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent() argument 179 Objects.requireNonNull(apiType); in getConsent() 181 mAppSearchConsentWorker.getConsent(apiType.toAppSearchKey())); in getConsent() 455 public void setConsent(@NonNull AdServicesApiType apiType, boolean consented) { in setConsent() argument 456 Objects.requireNonNull(apiType); in setConsent() 457 mAppSearchConsentWorker.setConsent(apiType.toAppSearchKey(), consented); in setConsent()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/consent/ |
D | ConsentManagerV2.java | 404 public void enable(@NonNull Context context, AdServicesApiType apiType) { in enable() argument 409 && getPerApiConsentFromSourceOfTruth(apiType)) { in enable() 412 apiType.toPpApiDatastoreKey()); in enable() 416 UiStatsLogger.logOptInSelected(apiType); in enable() 418 BackgroundJobsManager.scheduleJobsPerApi(context, apiType); in enable() 422 resetByApi(apiType); in enable() 424 if (AdServicesApiType.FLEDGE == apiType) { in enable() 431 setPerApiConsentToSourceOfTruth(/* isGiven */ true, apiType); in enable() 441 public void disable(@NonNull Context context, AdServicesApiType apiType) { in disable() argument 444 UiStatsLogger.logOptOutSelected(apiType); in disable() [all …]
|
D | AppConsentForRStorageManager.java | 103 public AdServicesApiConsent getConsent(AdServicesApiType apiType) { in getConsent() argument 104 if (apiType == AdServicesApiType.MEASUREMENTS) { in getConsent() 180 public void setConsent(AdServicesApiType apiType, boolean isGiven) throws IOException { in setConsent() argument 181 if (apiType == AdServicesApiType.ALL_API) { in setConsent() 182 super.setConsent(apiType, isGiven); in setConsent() 187 if (apiType != AdServicesApiType.MEASUREMENTS) { in setConsent()
|
D | ConsentManager.java | 394 public void enable(@NonNull Context context, AdServicesApiType apiType) { in enable() argument 396 ConsentManagerV2.getInstance().enable(context, apiType); in enable() 403 && getPerApiConsentFromSourceOfTruth(apiType)) { in enable() 406 apiType.toPpApiDatastoreKey()); in enable() 410 UiStatsLogger.logOptInSelected(apiType); in enable() 412 BackgroundJobsManager.scheduleJobsPerApi(context, apiType); in enable() 416 resetByApi(apiType); in enable() 418 if (AdServicesApiType.FLEDGE == apiType) { in enable() 425 setPerApiConsentToSourceOfTruth(/* isGiven */ true, apiType); in enable() 435 public void disable(@NonNull Context context, AdServicesApiType apiType) { in disable() argument [all …]
|
D | AdServicesApiType.java | 96 for (AdServicesApiType apiType : AdServicesApiType.values()) { in fromPpApiDatastoreKey() 97 if (apiType.toPpApiDatastoreKey().equals(ppApiDatastoreKey)) { in fromPpApiDatastoreKey() 98 return apiType; in fromPpApiDatastoreKey()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/ |
D | RateLimitedExecutor.java | 84 @CallStats.CallType int apiType) { in execute() argument 87 if (!addTaskToQueue(packageName, apiType)) { in execute() 95 removeTaskFromQueue(packageName, apiType); in execute() 133 public boolean addTaskToQueue(@NonNull String packageName, @CallStats.CallType int apiType) { in addTaskToQueue() argument 139 int apiCost = mRateLimitConfigLocked.getApiCost(apiType); in addTaskToQueue() 159 public void removeTaskFromQueue(@NonNull String packageName, @CallStats.CallType int apiType) { in removeTaskFromQueue() argument 168 int apiCost = mRateLimitConfigLocked.getApiCost(apiType); in removeTaskFromQueue()
|
D | ServiceImplHelper.java | 365 @CallStats.CallType int apiType, in executeLambdaForUserAsync() argument 376 .execute(lambda, callingPackageName, apiType); in executeLambdaForUserAsync() 416 @CallStats.CallType int apiType, in executeLambdaForUserAsync() argument 427 .execute(lambda, callingPackageName, apiType); in executeLambdaForUserAsync() 461 @CallStats.CallType int apiType, in executeLambdaForUserNoCallbackAsync() argument 468 return ((RateLimitedExecutor) executor).execute(lambda, callingPackageName, apiType); in executeLambdaForUserNoCallbackAsync()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/dao/ |
D | AppSearchConsentDao.java | 58 String id, String userId, String namespace, String apiType, String consent) { in AppSearchConsentDao() argument 62 this.mApiType = apiType; in AppSearchConsentDao() 87 public static String getRowId(@NonNull String uid, @NonNull String apiType) { in getRowId() argument 88 return uid + "_" + apiType; in getRowId()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/ |
D | UiStatsLogger.java | 416 public static void logOptInSelected(AdServicesApiType apiType) { in logOptInSelected() argument 417 UIStats uiStats = getBaseUiStats(apiType); in logOptInSelected() 419 uiStats.setAction(getPerApiConsentAction(apiType, /* isOptIn */ true)); in logOptInSelected() 425 public static void logOptOutSelected(AdServicesApiType apiType) { in logOptOutSelected() argument 426 UIStats uiStats = getBaseUiStats(apiType); in logOptOutSelected() 428 uiStats.setAction(getPerApiConsentAction(apiType, /* isOptIn */ false)); in logOptOutSelected() 605 private static int getDefaultConsent(AdServicesApiType apiType) { in getDefaultConsent() argument 606 switch (apiType) { in getDefaultConsent() 648 private static int getPerApiConsentAction(AdServicesApiType apiType, boolean isOptIn) { in getPerApiConsentAction() argument 649 switch (apiType) { in getPerApiConsentAction() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/ |
D | AppSearchWriterActivity.java | 111 private void setConsent(@NonNull String userId, @NonNull String apiType, boolean consented) { in setConsent() argument 112 Objects.requireNonNull(apiType); in setConsent() 121 AppSearchConsentDao.getRowId(userId, apiType), in setConsent() 124 apiType, in setConsent()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | CameraDeviceKey.java | 65 public CameraDeviceKey(ApiType apiType, CameraId cameraId) { in CameraDeviceKey() argument 66 mApiType = apiType; in CameraDeviceKey()
|
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/ |
D | AppConsentForRStorageManagerTest.java | 138 for (AdServicesApiType apiType : AdServicesApiType.values()) { in testGetMeasurementConsent() 139 AdServicesApiConsent apiConsent = mAppConsentForRStorageManager.getConsent(apiType); in testGetMeasurementConsent() 140 if (apiType == AdServicesApiType.MEASUREMENTS) { in testGetMeasurementConsent()
|