Home
last modified time | relevance | path

Searched refs:STATUS_UNAUTHORIZED (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DDevContextAccessResolverTest.java19 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/
DAdServicesStatusUtils.java129 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/
DAdServicesCommonServiceImpl.java30 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()
DFledgeAuthorizationFilter.java23 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/
DAppSetIdServiceImpl.java23 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/
DAdIdServiceImpl.java24 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/
DAppSetIdServiceImplTest.java21 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/
DTopicsServiceImpl.java29 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/
DAdIdServiceImplTest.java23 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/
DFilterException.java54 return AdServicesStatusUtils.STATUS_UNAUTHORIZED; in getResultCode()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DDevContextAccessResolver.java91 : AdServicesStatusUtils.STATUS_UNAUTHORIZED; in getAccessInfo()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdvertisersSetterTest.java250 verifyLog(AdServicesStatusUtils.STATUS_UNAUTHORIZED, never()); in testSetAppInstallAdvertisersUidMismatch()
252 verifyLog(AdServicesStatusUtils.STATUS_UNAUTHORIZED); in testSetAppInstallAdvertisersUidMismatch()
DReportAndRegisterEventImplTest.java29 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()
DReportEventImplTest.java27 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED;
851 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_UNAUTHORIZED); in testImplFailsWithInvalidPackageName() local
863 eq(STATUS_UNAUTHORIZED), in testImplFailsWithInvalidPackageName()
DReportAndRegisterEventFallbackImplTest.java29 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()
DAdSelectionE2ETest.java27 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/
DMeasurementServiceImplTest.java25 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/
DAdServicesCommonServiceImplTest.java23 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()
DFledgeAuthorizationFilterTest.java25 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/
DTopicsServiceImplTest.java29 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/
DCustomAudienceOverrider.java371 resultCode = AdServicesStatusUtils.STATUS_UNAUTHORIZED;
DAdSelectionOverrider.java576 callback, AdServicesStatusUtils.STATUS_UNAUTHORIZED, t.getMessage(), apiName);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DFetchCustomAudienceImplTest.java32 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()
DCustomAudienceServiceImplTest.java29 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/
DCustomAudienceServiceImpl.java362 resultCode = AdServicesStatusUtils.STATUS_UNAUTHORIZED; in notifyFailure()

12