/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AbstractFledgeServiceFilter.java | 78 protected void assertCallerHasUserConsent(String callerPackageName, int apiName) in assertCallerHasUserConsent() argument 80 mFledgeConsentFilter.assertCallerHasApiUserConsent(callerPackageName, apiName); in assertCallerHasUserConsent() 90 protected void assertAndPersistCallerHasUserConsentForApp(String callerPackageName, int apiName) in assertAndPersistCallerHasUserConsentForApp() argument 92 mFledgeConsentFilter.assertAndPersistCallerHasUserConsentForApp(callerPackageName, apiName); in assertAndPersistCallerHasUserConsentForApp() 105 int apiName) in assertEnrollmentShouldBeScheduled() argument 108 enforceConsent, enforceNotificationShown, callerPackageName, apiName); in assertEnrollmentShouldBeScheduled() 117 protected void assertForegroundCaller(int callerUid, int apiName) in assertForegroundCaller() argument 119 mAppImportanceFilter.assertCallerIsInForeground(callerUid, apiName, null); in assertForegroundCaller() 130 protected void assertCallerPackageName(String callerPackageName, int callerUid, int apiName) in assertCallerPackageName() argument 132 mFledgeAuthorizationFilter.assertCallingPackageName(callerPackageName, callerUid, apiName); in assertCallerPackageName() [all …]
|
D | CustomAudienceServiceFilter.java | 90 int apiName, in filterRequest() argument 98 assertCallerPackageName(callerPackageName, callerUid, apiName); in filterRequest() 101 assertCallerNotThrottled(callerPackageName, apiKey, apiName); in filterRequest() 105 assertForegroundCaller(callerUid, apiName); in filterRequest() 108 enforceConsent, enforceNotificationShown, callerPackageName, apiName); in filterRequest() 112 adTech, callerPackageName, apiName, devContext, API_CUSTOM_AUDIENCES); in filterRequest() 116 assertAppInAllowList(callerPackageName, apiName, API_CUSTOM_AUDIENCES); in filterRequest() 120 assertAndPersistCallerHasUserConsentForApp(callerPackageName, apiName); in filterRequest() 153 int apiName, in filterRequestAndExtractIdentifier() argument 161 assertCallerPackageName(callerPackageName, callerUid, apiName); in filterRequestAndExtractIdentifier() [all …]
|
D | FledgeConsentFilter.java | 61 public void assertCallerHasApiUserConsent(String callerPackageName, int apiName) { in assertCallerHasApiUserConsent() argument 62 sLogger.v("Checking user consent for FLEDGE API while calling API %d", apiName); in assertCallerHasApiUserConsent() 66 sLogger.v("User consent revoked for FLEDGE API while calling API %d", apiName); in assertCallerHasApiUserConsent() 68 apiName, in assertCallerHasApiUserConsent() 72 int celApiNameId = AdsRelevanceStatusUtils.getCelPpApiNameId(apiName); in assertCallerHasApiUserConsent() 91 public void assertAndPersistCallerHasUserConsentForApp(String callerPackageName, int apiName) in assertAndPersistCallerHasUserConsentForApp() argument 95 callerPackageName, apiName); in assertAndPersistCallerHasUserConsentForApp() 99 callerPackageName, apiName); in assertAndPersistCallerHasUserConsentForApp() 101 apiName, in assertAndPersistCallerHasUserConsentForApp() 105 int celApiNameId = AdsRelevanceStatusUtils.getCelPpApiNameId(apiName); in assertAndPersistCallerHasUserConsentForApp() [all …]
|
D | ProtectedSignalsServiceFilter.java | 69 int apiName, in filterRequest() argument 104 int apiName, in filterRequestAndExtractIdentifier() argument 112 assertCallerPackageName(callerPackageName, callerUid, apiName); in filterRequestAndExtractIdentifier() 115 assertCallerNotThrottled(callerPackageName, apiKey, apiName); in filterRequestAndExtractIdentifier() 119 assertForegroundCaller(callerUid, apiName); in filterRequestAndExtractIdentifier() 123 enforceConsent, enforceNotificationShown, callerPackageName, apiName); in filterRequestAndExtractIdentifier() 133 callerPackageName, uriForAdTech, apiName, API_PROTECTED_SIGNALS); in filterRequestAndExtractIdentifier() 137 assertAppInAllowList(callerPackageName, apiName, API_PROTECTED_SIGNALS); in filterRequestAndExtractIdentifier() 141 assertAndPersistCallerHasUserConsentForApp(callerPackageName, apiName); in filterRequestAndExtractIdentifier()
|
D | AdSelectionServiceFilter.java | 80 int apiName, in filterRequest() argument 89 assertCallerPackageName(callerPackageName, callerUid, apiName); in filterRequest() 90 assertCallerNotThrottled(callerPackageName, apiKey, apiName); in filterRequest() 92 assertForegroundCaller(callerUid, apiName); in filterRequest() 95 enforceConsent, enforceNotificationShown, callerPackageName, apiName); in filterRequest() 98 adTech, callerPackageName, apiName, devContext, API_AD_SELECTION); in filterRequest() 102 assertAppInAllowList(callerPackageName, apiName, API_AD_SELECTION); in filterRequest() 104 assertCallerHasUserConsent(callerPackageName, apiName); in filterRequest()
|
D | FledgeApiThrottleFilter.java | 52 final String callerPackageName, Throttler.ApiKey apiKey, int apiName) in assertCallerNotThrottled() argument 62 apiName, callerPackageName, AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED, 0); in assertCallerNotThrottled() 68 apiName); in assertCallerNotThrottled()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | AdSelectionServiceImpl.java | 451 int apiName = AdServicesStatsLog.AD_SERVICES_API_CALLED__API_NAME__GET_AD_SELECTION_DATA; in getAdSelectionData() local 460 apiName); in getAdSelectionData() 466 apiName, in getAdSelectionData() 484 apiName, in getAdSelectionData() 499 mContext, inputParams.getCallerPackageName(), apiName, PERMISSIONS_SET); in getAdSelectionData() 501 int callingUid = getCallingUid(apiName); in getAdSelectionData() 525 int apiName = in persistAdSelectionResult() local 535 apiName); in persistAdSelectionResult() 541 apiName, in persistAdSelectionResult() 559 apiName, in persistAdSelectionResult() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImpl.java | 231 final int apiName = AD_SERVICES_API_CALLED__API_NAME__JOIN_CUSTOM_AUDIENCE; in joinCustomAudience() local 239 apiName, ownerPackageName, STATUS_INVALID_ARGUMENT, /* latencyMs= */ 0); in joinCustomAudience() 252 apiName, in joinCustomAudience() 255 final int callerUid = getCallingUid(apiName, ownerPackageName); in joinCustomAudience() 278 final int apiName = AD_SERVICES_API_CALLED__API_NAME__JOIN_CUSTOM_AUDIENCE; in doJoinCustomAudience() local 292 apiName, in doJoinCustomAudience() local 331 apiName, ownerPackageName, resultCode, /* latencyMs= */ 0); in doJoinCustomAudience() 346 final int apiName = AD_SERVICES_API_CALLED__API_NAME__FETCH_AND_JOIN_CUSTOM_AUDIENCE; in fetchAndJoinCustomAudience() local 354 apiName, STATUS_INVALID_ARGUMENT, /* latencyMs= */ 0); in fetchAndJoinCustomAudience() 367 apiName, in fetchAndJoinCustomAudience() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | LastCallerInfoManager.java | 34 public void put(@ApiType int apiName, int tid, int uid, int pid, String packageName, in put() argument 38 mLastCallerInfoMap.put(apiName, callerInfo); in put() 47 public LastCallerInfo get(@ApiType int apiName) { in get() argument 49 return mLastCallerInfoMap.get(apiName); in get() 141 String apiName = convertApiName(mLastCallerInfoMap.keyAt(i)); in dump() local 146 .append(apiName) in dump()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/ |
D | AdsRelevanceExecutionLoggerFactory.java | 101 @NonNull String apiName) { in getAuctionServerApiExecutionLogger() 108 apiName, in getAuctionServerApiExecutionLogger() 111 return new AdsRelevanceExecutionLoggerNoLoggingImpl(apiName); in getAuctionServerApiExecutionLogger() 116 @NonNull String apiName) { in getProtectedSignalsApiExecutionLogger() 122 apiName, in getProtectedSignalsApiExecutionLogger()
|
D | AdServicesLoggerImpl.java | 104 public void logFledgeApiCallStats(int apiName, int resultCode, int latencyMs) { in logFledgeApiCallStats() argument 105 mStatsdAdServicesLogger.logFledgeApiCallStats(apiName, resultCode, latencyMs); in logFledgeApiCallStats() 110 int apiName, String appPackageName, int resultCode, int latencyMs) { in logFledgeApiCallStats() argument 114 apiName, appPackageName, resultCode, latencyMs); in logFledgeApiCallStats() 116 cobaltLogAppNameApiError(appPackageName, apiName, resultCode); in logFledgeApiCallStats() 117 cobaltLogApiResponse(appPackageName, apiName, resultCode); in logFledgeApiCallStats() 483 void cobaltLogAppNameApiError(String appPackageName, int apiName, int errorCode) { in cobaltLogAppNameApiError() argument 494 appNameApiErrorLogger.logErrorOccurrence(appPackageName, apiName, errorCode); in cobaltLogAppNameApiError() 500 void cobaltLogApiResponse(String appPackageName, int apiName, int responseCode) { in cobaltLogApiResponse() argument 509 .logResponse(appPackageName, apiName, responseCode); in cobaltLogApiResponse()
|
D | AdsRelevanceExecutionLoggerImpl.java | 76 @NonNull String apiName, in AdsRelevanceExecutionLoggerImpl() argument 83 Objects.requireNonNull(apiName); in AdsRelevanceExecutionLoggerImpl() 87 this.mApiName = apiName; in AdsRelevanceExecutionLoggerImpl()
|
D | AdsRelevanceExecutionLoggerNoLoggingImpl.java | 32 public AdsRelevanceExecutionLoggerNoLoggingImpl(@NonNull String apiName) { in AdsRelevanceExecutionLoggerNoLoggingImpl() argument 33 this.mApiName = apiName; in AdsRelevanceExecutionLoggerNoLoggingImpl()
|
D | ApiCallStats.java | 135 public Builder setApiName(int apiName) { in setApiName() argument 136 mBuilding.mApiName = apiName; in setApiName()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | StatsUtils.java | 46 public static void writeServiceRequestMetrics(int apiName, int responseCode) { in writeServiceRequestMetrics() argument 48 new ApiCallStats.Builder(apiName).setResponseCode(responseCode).build(); in writeServiceRequestMetrics() 54 int apiName, in writeServiceRequestMetrics() argument 64 new ApiCallStats.Builder(apiName) in writeServiceRequestMetrics()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | AdSelectionOverrider.java | 520 int apiName) { 534 apiName, mCallerAppPackageName, resultCode, /*latencyMs=*/ 0); 540 @NonNull AdSelectionOverrideCallback callback, int apiName, Integer resultCode) { 553 apiName, mCallerAppPackageName, resultCodeInt, /*latencyMs=*/ 0); 558 @NonNull AdSelectionOverrideCallback callback, @NonNull Throwable t, int apiName) { 564 apiName); 570 apiName); 573 callback, AdServicesStatusUtils.STATUS_INTERNAL_ERROR, t.getMessage(), apiName); 576 callback, AdServicesStatusUtils.STATUS_UNAUTHORIZED, t.getMessage(), apiName);
|
D | CustomAudienceOverrider.java | 318 int apiName) { 332 apiName, 341 @NonNull CustomAudienceOverrideCallback callback, int apiName, Integer resultCode) { 354 apiName, 362 @NonNull CustomAudienceOverrideCallback callback, @NonNull Throwable t, int apiName) { 375 invokeFailure(callback, resultCode, t.getMessage(), apiName);
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/statsd/ |
D | ApiCallStats.java | 60 int apiName, in ApiCallStats() argument 69 this.mApiName = apiName; in ApiCallStats() 189 int apiName) { in Builder() argument 190 mApiName = apiName; in Builder()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/ |
D | FederatedComputeManagingServiceDelegate.java | 195 int apiName, in logServiceLatency() argument 203 .setApiName(apiName) in logServiceLatency() 217 int apiName, in isKillSwitchEnabled() argument 227 .setApiName(apiName) in isKillSwitchEnabled()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImplTest.java | 1658 int apiName = AD_SERVICES_API_CALLED__API_NAME__REMOVE_CUSTOM_AUDIENCE_REMOTE_INFO_OVERRIDE; in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException() local 1661 .assertCallerIsInForeground(CustomAudienceFixture.VALID_OWNER, apiName, null); in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException() 1673 apiName, in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException() 1678 .assertCallerIsInForeground(CustomAudienceFixture.VALID_OWNER, apiName, null); in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException() 1681 verifyLoggerMock(apiName, mPackageName, STATUS_BACKGROUND_CALLER); in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException() 1696 int apiName = AD_SERVICES_API_CALLED__API_NAME__REMOVE_CUSTOM_AUDIENCE_REMOTE_INFO_OVERRIDE; in testAppImportanceDisabledCallerInBackground_removeCustomAudienceOverrideSucceeds() local 1733 apiName, in testAppImportanceDisabledCallerInBackground_removeCustomAudienceOverrideSucceeds() 1743 verifyLoggerMock(apiName, TEST_PACKAGE_NAME, STATUS_SUCCESS); in testAppImportanceDisabledCallerInBackground_removeCustomAudienceOverrideSucceeds() 1756 int apiName = AD_SERVICES_API_CALLED__API_NAME__RESET_ALL_CUSTOM_AUDIENCE_OVERRIDES; in testAppImportanceTestFails_resetOverridesThrowsException() local 1759 .assertCallerIsInForeground(Process.myUid(), apiName, null); in testAppImportanceTestFails_resetOverridesThrowsException() local [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/ |
D | OnDevicePersonalizationManagingServiceDelegate.java | 244 String sdkPackageName, int apiName, long latencyMillis, long rpcCallLatencyMillis, in logApiCallStats() argument 250 handleLogApiCallStats(uid, sdkPackageName, apiName, latencyMillis, in logApiCallStats() 255 private void handleLogApiCallStats(int appUid, String sdkPackageName, int apiName, in handleLogApiCallStats() argument 261 new ApiCallStats.Builder(apiName) in handleLogApiCallStats()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/ |
D | ProtectedSignalsServiceImpl.java | 261 final int apiName = AD_SERVICES_API_CALLED__API_NAME__UPDATE_SIGNALS; in updateSignals() local 275 .setApiName(apiName) in updateSignals() 301 apiName); in updateSignals() 309 apiName, in updateSignals() 336 final int apiName = AD_SERVICES_API_CALLED__API_NAME__UPDATE_SIGNALS; in doUpdateSignals() local 366 apiName, in doUpdateSignals()
|
/packages/providers/MediaProvider/apex/framework/java/android/provider/ |
D | VerificationLogsHelper.java | 113 static void logVerifications(String authority, String apiName, in logVerifications() argument 116 StringBuilder strb = new StringBuilder("Verifications for : " + apiName + "\n"); in logVerifications()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/ |
D | AppSearchRateLimitConfig.java | 156 String apiName = entry.substring(0, costDelimiterIndex); in createApiCostsMap() local 170 @CallStats.CallType int apiType = CallStats.getApiCallTypeFromName(apiName); in createApiCostsMap()
|
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/ |
D | EventUrlProvider.java | 102 @NonNull Bundle params, int apiName, long startTimeMillis) { in getUrl() argument 135 apiName, in getUrl()
|