Searched refs:ALLOW_BAL (Results 1 – 9 of 9) sorted by relevance
19 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 …]
36 public static final BackgroundStartPrivileges ALLOW_BAL = new BackgroundStartPrivileges( field in BackgroundStartPrivileges64 return ALLOW_BAL; in allowBackgroundActivityStarts()109 return ALLOW_BAL; in merge()177 if (this == ALLOW_BAL) { in toString()
122 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByTokenNoCallback()137 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByToken()
544 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()
324 : 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()
1548 .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()
410 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCaller()438 return BackgroundStartPrivileges.ALLOW_BAL; in getDefaultBackgroundStartPrivileges()
1469 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesWithExclusiveToken()
660 doReturn(BackgroundStartPrivileges.ALLOW_BAL) in testHasImmediacyPrivilege()