/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/ |
D | DevContextAccessResolverTest.java | 19 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 115 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_register_localhost_devDisabled_returnsFalse() 179 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebSource_allLocalhost_devDisabled_returnsFalse() 195 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebSource_someLocalhost_devDisabled_returnsFalse() 263 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebTrigger_allLocalhost_devDisabled_returnsFalse() 279 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerWebTrigger_someLocalhost_devDisabled_returnsFalse() 339 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerSources_allLocalhost_devDisabled_returnsFalse() 353 assertEquals(STATUS_UNAUTHORIZED, accessInfo.getResponseCode()); in isAllowed_registerSources_someLocalhost_devDisabled_returnsFalse()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/ |
D | AdServicesStatusUtils.java | 129 public static final int STATUS_UNAUTHORIZED = 12; field in AdServicesStatusUtils 365 case STATUS_UNAUTHORIZED: in asException() 412 STATUS_UNAUTHORIZED,
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AdServicesCommonServiceImpl.java | 30 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 151 callback.onFailure(STATUS_UNAUTHORIZED); in isAdServicesEnabled() 326 callback.onFailure(STATUS_UNAUTHORIZED); in enableAdServices() 392 callback.onFailure(STATUS_UNAUTHORIZED); in updateAdIdCache() 440 resultCode = STATUS_UNAUTHORIZED; in getAdServicesCommonStates() 441 callback.onFailure(STATUS_UNAUTHORIZED); in getAdServicesCommonStates()
|
D | FledgeAuthorizationFilter.java | 23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 125 apiNameLoggingId, callingPackageName, STATUS_UNAUTHORIZED, /*latencyMs=*/ 0); in assertCallingPackageName()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsetid/ |
D | AppSetIdServiceImpl.java | 23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 263 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid() 267 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/ |
D | AdIdServiceImpl.java | 24 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 284 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid() 289 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsetid/src/com/android/adservices/service/appsetid/ |
D | AppSetIdServiceImplTest.java | 21 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 261 mSpyContext, STATUS_UNAUTHORIZED, mRequest, /* checkLoggingStatus */ true); in testGetAppSetId_enforceCallingPackage_logCallingPackageNotFound() 277 mSpyContext, STATUS_UNAUTHORIZED, mRequest, /* checkLoggingStatus */ true); in testGetAppSetId_enforceCallingPackage_logCallingPackageIdMismatch()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
D | TopicsServiceImpl.java | 29 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 440 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid() 444 return STATUS_UNAUTHORIZED; in enforceCallingPackageBelongsToUid()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/adid/src/com/android/adservices/service/adid/ |
D | AdIdServiceImplTest.java | 23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 301 mSpyContext, STATUS_UNAUTHORIZED, mRequest, /* checkLoggingStatus= */ true); in testGetAdId_enforceCallingPackage_logCallingPackageNotFound() 319 mSpyContext, STATUS_UNAUTHORIZED, mRequest, /* checkLoggingStatus= */ true); in testGetAdId_enforceCallingPackage_logCallingPackageIdMismatch()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/exception/ |
D | FilterException.java | 54 return AdServicesStatusUtils.STATUS_UNAUTHORIZED; in getResultCode()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/ |
D | DevContextAccessResolver.java | 91 : AdServicesStatusUtils.STATUS_UNAUTHORIZED; in getAccessInfo()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AppInstallAdvertisersSetterTest.java | 250 verifyLog(AdServicesStatusUtils.STATUS_UNAUTHORIZED, never()); in testSetAppInstallAdvertisersUidMismatch() 252 verifyLog(AdServicesStatusUtils.STATUS_UNAUTHORIZED); in testSetAppInstallAdvertisersUidMismatch()
|
D | ReportAndRegisterEventImplTest.java | 29 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 537 STATUS_UNAUTHORIZED, SECURITY_EXCEPTION_CALLER_NOT_ALLOWED_ON_BEHALF_ERROR_MESSAGE); in testImplFailsWithInvalidPackageName() 545 eq(STATUS_UNAUTHORIZED), in testImplFailsWithInvalidPackageName()
|
D | ReportEventImplTest.java | 27 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 851 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_UNAUTHORIZED); in testImplFailsWithInvalidPackageName() local 863 eq(STATUS_UNAUTHORIZED), in testImplFailsWithInvalidPackageName()
|
D | ReportAndRegisterEventFallbackImplTest.java | 29 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 798 STATUS_UNAUTHORIZED, SECURITY_EXCEPTION_CALLER_NOT_ALLOWED_ON_BEHALF_ERROR_MESSAGE); in testImplFailsWithInvalidPackageName() 806 eq(STATUS_UNAUTHORIZED), in testImplFailsWithInvalidPackageName()
|
D | AdSelectionE2ETest.java | 27 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 7251 assertEquals("Error response code mismatch", STATUS_UNAUTHORIZED, response.getStatusCode()); in testRunAdSelectionFailsWithInvalidPackageName() 7270 eq(STATUS_UNAUTHORIZED), in testRunAdSelectionFailsWithInvalidPackageName()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | MeasurementServiceImplTest.java | 25 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 291 STATUS_UNAUTHORIZED, createRegistrationSourceRequest(true))); in testRegisterSource_failureByDevContextAccessResolver() 302 STATUS_UNAUTHORIZED, createRegistrationSourceRequest(true))); in testRegisterSource_failureByDevContextAccessResolver_logFailureReason() 516 STATUS_UNAUTHORIZED, createRegistrationTriggerRequest(true))); in testRegisterTrigger_failureByDevContextAccessResolver() 1346 STATUS_UNAUTHORIZED, createSourcesRegistrationRequest(true))); in testRegisterSources_failureByDevContextAccessResolver() 1450 STATUS_UNAUTHORIZED, createWebSourceRegistrationRequest(true))); in testRegisterWebSource_failureByDevContextAccessResolver() 1720 STATUS_UNAUTHORIZED, createWebTriggerRegistrationRequest(true))); in testRegisterWebTrigger_failureByDevContextAccessResolver()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdServicesCommonServiceImplTest.java | 23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 591 callback.assertFailed(STATUS_UNAUTHORIZED); in enableAdServicesTest_unauthorizedCaller() 763 callback.assertFailed(STATUS_UNAUTHORIZED); in testUpdateAdIdChange_unauthorizedCaller() 826 callback.assertFailed(STATUS_UNAUTHORIZED); in testGetAdservicesCommonStates_unauthorizedUser() 834 assertThat(apiCallStats.getResultCode()).isEqualTo(STATUS_UNAUTHORIZED); in testGetAdservicesCommonStates_unauthorizedUser()
|
D | FledgeAuthorizationFilterTest.java | 25 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 157 eq(STATUS_UNAUTHORIZED), in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException() 181 eq(STATUS_UNAUTHORIZED), in testAssertCallingPackageName_packageNotExist_throwSecurityException()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/ |
D | TopicsServiceImplTest.java | 29 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 903 callback.assertFailed(STATUS_UNAUTHORIZED); in testGetTopics_enforceCallingPackage_invalidPackage() 924 mMockAppContext, STATUS_UNAUTHORIZED, /* checkLoggingStatus */ mRequest, true); in testGetTopics_enforceCallingPackage_logCallingPackageNotFound() 934 mMockAppContext, STATUS_UNAUTHORIZED, /* checkLoggingStatus */ mRequest, true); in testGetTopics_enforceCallingPackage_logCallingPackageIdMismatch()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/ |
D | CustomAudienceOverrider.java | 371 resultCode = AdServicesStatusUtils.STATUS_UNAUTHORIZED;
|
D | AdSelectionOverrider.java | 576 callback, AdServicesStatusUtils.STATUS_UNAUTHORIZED, t.getMessage(), apiName);
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceImplTest.java | 32 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 330 assertEquals(STATUS_UNAUTHORIZED, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_invalidPackageName_throws() 339 eq(API_NAME), eq(TEST_PACKAGE_NAME), eq(STATUS_UNAUTHORIZED), anyInt()); in testImpl_invalidPackageName_throws()
|
D | CustomAudienceServiceImplTest.java | 29 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED; 364 STATUS_UNAUTHORIZED, SECURITY_EXCEPTION_CALLER_NOT_ALLOWED_ON_BEHALF_ERROR_MESSAGE); in testJoinCustomAudience_ownerAssertFailed() 825 STATUS_UNAUTHORIZED, SECURITY_EXCEPTION_CALLER_NOT_ALLOWED_ON_BEHALF_ERROR_MESSAGE); in testLeaveCustomAudience_ownerAssertFailed()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceServiceImpl.java | 362 resultCode = AdServicesStatusUtils.STATUS_UNAUTHORIZED; in notifyFailure()
|