Home
last modified time | relevance | path

Searched refs:STATUS_BACKGROUND_CALLER (Results 1 – 22 of 22) sorted by relevance

/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdServicesStatusUtils.java122 public static final int STATUS_BACKGROUND_CALLER = 11; field in AdServicesStatusUtils
359 case STATUS_BACKGROUND_CALLER: in asException()
411 STATUS_BACKGROUND_CALLER,
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolverTest.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
154 assertEquals(STATUS_BACKGROUND_CALLER, result.getResponseCode()); in testIsAllowed_isNotForeground_returnFalse()
175 assertEquals(STATUS_BACKGROUND_CALLER, result.getResponseCode()); in testIsAllowed_CatchesAllExceptions_returnsFalse()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolver.java70 return new AccessInfo(false, AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in getAccessInfo()
78 return new AccessInfo(false, AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in getAccessInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsetid/
DAppSetIdServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
208 callback, STATUS_BACKGROUND_CALLER, backgroundCaller.getMessage()); in canCallerInvokeAppSetIdService()
209 return STATUS_BACKGROUND_CALLER; in canCallerInvokeAppSetIdService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
223 callback, STATUS_BACKGROUND_CALLER, backgroundCaller.getMessage()); in canCallerInvokeAdIdService()
224 return STATUS_BACKGROUND_CALLER; in canCallerInvokeAdIdService()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppImportanceFilter.java165 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in assertCallerIsInForeground()
226 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in assertCallerIsInForeground()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppImportanceFilterTest.java159 .hasResultCode(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER) in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
240 .hasResultCode(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER) in testCalledWithLessThanForegroundImportanceAppUid_logsFailure()
262 .hasResultCode(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER) in testCalledWithLessThanForegroundImportanceAppUidAndNullSdkName_logsFailure()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
310 callback, STATUS_BACKGROUND_CALLER, backgroundCaller.getMessage()); in canCallerInvokeTopicsService()
311 return STATUS_BACKGROUND_CALLER; in canCallerInvokeTopicsService()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceServiceImplTest.java23 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
1033 STATUS_BACKGROUND_CALLER, ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in testAppImportanceTestFails_joinCustomAudienceThrowsException()
1136 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testAppImportanceTestFails_leaveCustomAudienceThrowsException()
1250 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testAppImportanceTestFails_overrideCustomAudienceThrowsException()
1255 STATUS_BACKGROUND_CALLER); in testAppImportanceTestFails_overrideCustomAudienceThrowsException()
1362 STATUS_BACKGROUND_CALLER, ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException()
1363 verifyLoggerMock(apiName, "", STATUS_BACKGROUND_CALLER); in testAppImportanceTestFails_removeCustomAudienceOverrideThrowsException()
1450 verifyLoggerMock(apiName, TEST_PACKAGE_NAME, STATUS_BACKGROUND_CALLER); in testAppImportanceTestFails_resetOverridesThrowsException()
1452 STATUS_BACKGROUND_CALLER, ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in testAppImportanceTestFails_resetOverridesThrowsException()
DFetchCustomAudienceImplTest.java23 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
392 assertEquals(STATUS_BACKGROUND_CALLER, callback.mFledgeErrorResponse.getStatusCode()); in testImpl_failedForegroundCheck_throws()
403 eq(STATUS_BACKGROUND_CALLER), in testImpl_failedForegroundCheck_throws()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/exception/
DFilterException.java49 return AdServicesStatusUtils.STATUS_BACKGROUND_CALLER; in getResultCode()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementServiceImplTest.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
358 () -> registerSourceAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testRegisterSource_failureByForegroundEnforcementAccessResolver()
369 STATUS_BACKGROUND_CALLER, createRegistrationSourceRequest())); in testRegisterSource_failureByForegroundEnforcementAccessResolver_logFailureReason()
561 () -> registerTriggerAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testRegisterTrigger_failureByForegroundEnforcementAccessResolver()
759 () -> deleteRegistrationsAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testDeleteRegistrations_failureByForegroundEnforcementAccessResolver()
1391 () -> registerSourcesAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testRegisterSources_failureByForegroundEnforcementAccessResolver()
1506 () -> registerWebSourceAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testRegisterWebSource_failureByForegroundEnforcementAccessResolver()
1765 () -> registerWebTriggerAndAssertFailure(STATUS_BACKGROUND_CALLER)); in testRegisterWebTrigger_failureByForegroundEnforcementAccessResolver()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdvertisersSetterTest.java214 verifyLog(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, never()); in testSetAppInstallAdvertisersBackgroundCaller()
216 verifyLog(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in testSetAppInstallAdvertisersBackgroundCaller()
DReportAndRegisterEventImplTest.java23 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
579 STATUS_BACKGROUND_CALLER, ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in testImplFailsWhenForegroundCheckFails()
587 eq(STATUS_BACKGROUND_CALLER), in testImplFailsWhenForegroundCheckFails()
DReportEventImplTest.java21 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
919 assertEquals(callback.mFledgeErrorResponse.getStatusCode(), STATUS_BACKGROUND_CALLER); in testImplFailsWhenForegroundCheckFails() local
930 eq(STATUS_BACKGROUND_CALLER), in testImplFailsWhenForegroundCheckFails()
DReportAndRegisterEventFallbackImplTest.java23 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
850 STATUS_BACKGROUND_CALLER, ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in testImplFailsWhenForegroundCheckFails()
858 eq(STATUS_BACKGROUND_CALLER), in testImplFailsWhenForegroundCheckFails()
DOnDeviceAdSelectionRunnerTest.java24 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
1618 verifyLogForFailurePriorPersistAdSelection(STATUS_BACKGROUND_CALLER); in testRunAdSelectionCallerNotInForeground_fails()
1626 eq(STATUS_BACKGROUND_CALLER), in testRunAdSelectionCallerNotInForeground_fails()
DAdSelectionServiceImplTest.java7064 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testReportImpressionForegroundCheckEnabledFails_throwsException()
7137 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testOverrideAdSelectionForegroundCheckEnabledFails_throwsException()
7269 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testRemoveOverrideForegroundCheckEnabledFails_throwsException()
7392 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in testResetAllOverridesForegroundCheckEnabledFails_throwsException()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/
DCustomAudienceOverrider.java367 resultCode = AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
DAdSelectionOverrider.java568 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER,
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsServiceImplTest.java20 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
415 mSpyContext, STATUS_BACKGROUND_CALLER, /* checkLoggingStatus */ true); in testEnforceForeground_backgroundCaller()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceServiceImpl.java360 resultCode = AdServicesStatusUtils.STATUS_BACKGROUND_CALLER; in notifyFailure()