Home
last modified time | relevance | path

Searched refs:ALLOW_BAL (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/
DBackgroundStartPrivilegesTest.java19 import static android.app.BackgroundStartPrivileges.ALLOW_BAL;
51 assertThat(ALLOW_BAL.getOriginatingToken()).isNull(); in backgroundStartPrivilege_getters_work()
52 assertThat(ALLOW_BAL.allowsBackgroundActivityStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work()
53 assertThat(ALLOW_BAL.allowsBackgroundFgsStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work()
54 assertThat(ALLOW_BAL.allowsAny()).isEqualTo(true); in backgroundStartPrivilege_getters_work()
55 assertThat(ALLOW_BAL.allowsNothing()).isEqualTo(false); in backgroundStartPrivilege_getters_work()
78 assertThat(ALLOW_BAL.toString()).isNotEmpty(); in backgroundStartPrivilege_toString_returnsSomething()
91 assertThat(BSP_ALLOW_A.merge(BSP_ALLOW_B)).isEqualTo(ALLOW_BAL); in backgroundStartPrivilege_mergeAB_resultsInAllowBal()
96 assertThat(BSP_ALLOW_A.merge(ALLOW_BAL)).isEqualTo(ALLOW_BAL); in backgroundStartPrivilege_mergeAwithAllowBal_resultsInAllowBal()
101 assertThat(BSP_ALLOW_A.merge(ALLOW_FGS)).isEqualTo(ALLOW_BAL); in backgroundStartPrivilege_mergeAwithAllowFgs_resultsInAllowBal()
[all …]
/frameworks/base/core/java/android/app/
DBackgroundStartPrivileges.java36 public static final BackgroundStartPrivileges ALLOW_BAL = new BackgroundStartPrivileges( field in BackgroundStartPrivileges
64 return ALLOW_BAL; in allowBackgroundActivityStarts()
109 return ALLOW_BAL; in merge()
177 if (this == ALLOW_BAL) { in toString()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackgroundLaunchProcessControllerTests.java122 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByTokenNoCallback()
137 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByToken()
DBackgroundActivityStartControllerTests.java544 assertThat(balState.mBalAllowedByPiCreator).isEqualTo(BackgroundStartPrivileges.ALLOW_BAL); in testBalState_regularStart_isAutoOptIn()
545 assertThat(balState.mBalAllowedByPiSender).isEqualTo(BackgroundStartPrivileges.ALLOW_BAL); in testBalState_regularStart_isAutoOptIn()
610 assertThat(balState.mBalAllowedByPiSender).isEqualTo(BackgroundStartPrivileges.ALLOW_BAL); in testBalState_pendingIntentForResult_isOptedInForSenderOnly()
/frameworks/base/services/core/java/com/android/server/wm/
DBackgroundActivityStartController.java324 : BackgroundStartPrivileges.ALLOW_BAL; in BalState()
333 : BackgroundStartPrivileges.ALLOW_BAL; in BalState()
344 : BackgroundStartPrivileges.ALLOW_BAL; in BalState()
385 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCreator()
401 : BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCreator()
409 : BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCreator()
DActivityTaskManagerService.java1548 .setBackgroundStartPrivileges(BackgroundStartPrivileges.ALLOW_BAL) in startDreamActivityInternal()
1699 .setBackgroundStartPrivileges(BackgroundStartPrivileges.ALLOW_BAL) in startActivityAsCaller()
1745 .setBackgroundStartPrivileges(BackgroundStartPrivileges.ALLOW_BAL) in startVoiceActivity()
1772 .setBackgroundStartPrivileges(BackgroundStartPrivileges.ALLOW_BAL) in startAssistantActivity()
6072 .setBackgroundStartPrivileges(BackgroundStartPrivileges.ALLOW_BAL) in startActivityWithScreenshot()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentRecord.java410 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCaller()
438 return BackgroundStartPrivileges.ALLOW_BAL; in getDefaultBackgroundStartPrivileges()
DServiceRecord.java1469 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesWithExclusiveToken()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java660 doReturn(BackgroundStartPrivileges.ALLOW_BAL) in testHasImmediacyPrivilege()