/frameworks/base/core/java/android/app/ |
D | BackgroundStartPrivileges.java | 31 public class BackgroundStartPrivileges { class 33 public static final BackgroundStartPrivileges NONE = new BackgroundStartPrivileges( 36 public static final BackgroundStartPrivileges ALLOW_BAL = new BackgroundStartPrivileges( 39 public static final BackgroundStartPrivileges ALLOW_FGS = new BackgroundStartPrivileges( 46 private BackgroundStartPrivileges(boolean allowsBackgroundActivityStarts, in BackgroundStartPrivileges() method in BackgroundStartPrivileges 60 public static BackgroundStartPrivileges allowBackgroundActivityStarts( in allowBackgroundActivityStarts() 66 return new BackgroundStartPrivileges(true, true, originatingToken); in allowBackgroundActivityStarts() 79 public @NonNull BackgroundStartPrivileges merge(@Nullable BackgroundStartPrivileges other) { in merge() 104 return new BackgroundStartPrivileges(allowsBackgroundActivityStarts, in merge() 127 public static @NonNull BackgroundStartPrivileges merge( in merge() [all …]
|
D | ActivityManagerInternal.java | 623 BackgroundStartPrivileges backgroundStartPrivileges, in broadcastIntentInPackage() 629 BackgroundStartPrivileges backgroundStartPrivileges) in startServiceInPackage() 645 public abstract BackgroundStartPrivileges getBackgroundStartPrivileges(int uid); in getBackgroundStartPrivileges()
|
D | OWNERS | 40 per-file BackgroundStartPrivileges.java = file:/BAL_OWNERS
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | BackgroundActivityStartControllerTests.java | 33 import android.app.BackgroundStartPrivileges; 241 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRegularActivityStart_noExemption_isBlocked() 276 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRegularActivityStart_notAllowed_isBlocked() 311 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRegularActivityStart_allowedByCaller_isAllowed() 346 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRegularActivityStart_allowedByRealCaller_isAllowed() 380 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRegularActivityStart_allowedByCallerAndRealCaller_returnsCallerVerdict() 418 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testPendingIntent_allowedByCallerAndRealCallerButOptOut_isBlocked() 457 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testPendingIntent_allowedByCallerAndOptIn_isAllowed() 494 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testPendingIntent_allowedByRealCallerAndOptIn_isAllowed() 530 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testBalState_regularStart_isAutoOptIn() [all …]
|
D | BackgroundActivityStartControllerExemptionTests.java | 37 import android.app.BackgroundStartPrivileges; 218 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testNoExemption() 258 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testCaller_appHasVisibleWindow() 290 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRealCaller_appHasVisibleWindow() 330 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testCaller_appAllowedByBLPC() 366 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRealCaller_appAllowedByBLPC() 415 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRealCaller_appAllowedByBLPCforOtherProcess() 451 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRealCaller_isCompanionApp() 483 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testCaller_balPermission() 516 BackgroundStartPrivileges forcedBalByPiSender = BackgroundStartPrivileges.NONE; in testRealCaller_balPermission() [all …]
|
D | BackgroundLaunchProcessControllerTests.java | 29 import android.app.BackgroundStartPrivileges; 122 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByTokenNoCallback() 137 BackgroundStartPrivileges.ALLOW_BAL); in testAllowedByToken()
|
D | BackgroundActivityStartControllerLogTests.java | 26 import android.app.BackgroundStartPrivileges; 192 null, BackgroundStartPrivileges.NONE, null, new Intent(), in useIntent() 203 mPendingIntentRecord, BackgroundStartPrivileges.NONE, null, new Intent(), in usePendingIntent()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | BackgroundStartPrivilegesTest.java | 19 import static android.app.BackgroundStartPrivileges.ALLOW_BAL; 20 import static android.app.BackgroundStartPrivileges.ALLOW_FGS; 21 import static android.app.BackgroundStartPrivileges.NONE; 22 import static android.app.BackgroundStartPrivileges.allowBackgroundActivityStarts; 44 private static final BackgroundStartPrivileges BSP_ALLOW_A = 46 private static final BackgroundStartPrivileges BSP_ALLOW_B = 111 assertThat(BackgroundStartPrivileges.merge( in backgroundStartPrivilege_mergeManyWithDifferentToken_resultsInAllowBal() 118 assertThat(BackgroundStartPrivileges.merge( in backgroundStartPrivilege_mergeManyWithSameToken_resultsInAllowBal()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentRecord.java | 36 import android.app.BackgroundStartPrivileges; 384 public static BackgroundStartPrivileges getBackgroundStartPrivilegesAllowedByCaller( in getBackgroundStartPrivilegesAllowedByCaller() 396 private static BackgroundStartPrivileges getBackgroundStartPrivilegesAllowedByCaller( in getBackgroundStartPrivilegesAllowedByCaller() 404 return BackgroundStartPrivileges.NONE; in getBackgroundStartPrivilegesAllowedByCaller() 410 return BackgroundStartPrivileges.ALLOW_BAL; in getBackgroundStartPrivilegesAllowedByCaller() 425 public static BackgroundStartPrivileges getDefaultBackgroundStartPrivileges( in getDefaultBackgroundStartPrivileges() 429 return BackgroundStartPrivileges.ALLOW_FGS; in getDefaultBackgroundStartPrivileges() 436 return BackgroundStartPrivileges.ALLOW_FGS; in getDefaultBackgroundStartPrivileges() 438 return BackgroundStartPrivileges.ALLOW_BAL; in getDefaultBackgroundStartPrivileges() 651 final BackgroundStartPrivileges backgroundStartPrivileges = in sendInner() [all …]
|
D | ServiceRecord.java | 37 import android.app.BackgroundStartPrivileges; 204 private ArrayList<BackgroundStartPrivileges> mBackgroundStartPrivilegesByStart = 208 private BackgroundStartPrivileges mBackgroundStartPrivilegesByStartMerged = 209 BackgroundStartPrivileges.NONE; 1232 BackgroundStartPrivileges backgroundStartPrivileges = in setProcess() 1352 void allowBgActivityStartsOnServiceStart(BackgroundStartPrivileges backgroundStartPrivileges) { in allowBgActivityStartsOnServiceStart() 1369 BackgroundStartPrivileges.merge(mBackgroundStartPrivilegesByStart); in allowBgActivityStartsOnServiceStart() 1397 setAllowedBgActivityStartsByStart(BackgroundStartPrivileges.NONE); in allowBgActivityStartsOnServiceStart() 1423 private void setAllowedBgActivityStartsByStart(BackgroundStartPrivileges newValue) { in setAllowedBgActivityStartsByStart() 1446 BackgroundStartPrivileges backgroundStartPrivileges = in updateParentProcessBgActivityStartsToken() [all …]
|
D | ProcessRecord.java | 35 import android.app.BackgroundStartPrivileges; 364 private final ArrayMap<Binder, BackgroundStartPrivileges> mBackgroundStartPrivileges = 373 private BackgroundStartPrivileges mBackgroundStartPrivilegesMerged = 374 BackgroundStartPrivileges.NONE; 1505 @NonNull BackgroundStartPrivileges backgroundStartPrivileges) { in addOrUpdateBackgroundStartPrivileges() 1522 BackgroundStartPrivileges getBackgroundStartPrivileges() { in getBackgroundStartPrivileges() 1526 mBackgroundStartPrivilegesMerged = BackgroundStartPrivileges.NONE; in getBackgroundStartPrivileges() 1538 @Nullable BackgroundStartPrivileges backgroundStartPrivileges) { in setBackgroundStartPrivileges() 1544 final BackgroundStartPrivileges oldBsp = in setBackgroundStartPrivileges()
|
D | BroadcastRecord.java | 42 import android.app.BackgroundStartPrivileges; 146 final BackgroundStartPrivileges mBackgroundStartPrivileges; 416 @NonNull BackgroundStartPrivileges backgroundStartPrivileges, in BroadcastRecord() 438 @NonNull BackgroundStartPrivileges backgroundStartPrivileges, in BroadcastRecord()
|
D | ActiveServices.java | 144 import android.app.BackgroundStartPrivileges; 922 callingPackage, callingFeatureId, userId, BackgroundStartPrivileges.NONE, in startServiceLocked() 930 BackgroundStartPrivileges backgroundStartPrivileges) in startServiceLocked() 940 BackgroundStartPrivileges backgroundStartPrivileges, boolean isSdkSandboxService, in startServiceLocked() 1183 BackgroundStartPrivileges backgroundStartPrivileges, String callingPackage) in startServiceInnerLocked() 1408 BackgroundStartPrivileges backgroundStartPrivileges, in deferServiceBringupIfFrozenLocked() 2362 BackgroundStartPrivileges.NONE, in setServiceForegroundInnerLocked() 2422 BackgroundStartPrivileges.NONE, false /* isBindService */); in setServiceForegroundInnerLocked() 2491 BackgroundStartPrivileges.NONE, in setServiceForegroundInnerLocked() 2512 BackgroundStartPrivileges.NONE, in setServiceForegroundInnerLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | BackgroundActivityStartController.java | 61 import android.app.BackgroundStartPrivileges; 251 final BackgroundStartPrivileges mBalAllowedByPiSender; 252 final BackgroundStartPrivileges mBalAllowedByPiCreatorWithHardening; 253 final BackgroundStartPrivileges mBalAllowedByPiCreator; 261 private final BackgroundStartPrivileges mForcedBalByPiSender; 276 BackgroundStartPrivileges forcedBalByPiSender, in BalState() 323 ? BackgroundStartPrivileges.NONE in BalState() 324 : BackgroundStartPrivileges.ALLOW_BAL; in BalState() 329 final BackgroundStartPrivileges mBalAllowedByPiCreatorWithoutHardening = in BalState() 332 ? BackgroundStartPrivileges.NONE in BalState() [all …]
|
D | BackgroundLaunchProcessController.java | 35 import android.app.BackgroundStartPrivileges; 86 private @Nullable ArrayMap<Binder, BackgroundStartPrivileges> mBackgroundStartPrivileges; 205 BackgroundStartPrivileges privilege = in getOriginatingTokensThatAllowBal() 261 @NonNull BackgroundStartPrivileges backgroundStartPrivileges) { in addOrUpdateAllowBackgroundStartPrivileges()
|
D | AppTaskImpl.java | 25 import android.app.BackgroundStartPrivileges; 139 BackgroundStartPrivileges.NONE, in moveToFront()
|
D | ActivityStartController.java | 36 import android.app.BackgroundStartPrivileges; 292 BackgroundStartPrivileges forcedBalByPiSender) { in startActivityInPackage() 336 BackgroundStartPrivileges forcedBalByPiSender) { in startActivitiesInPackage() 362 BackgroundStartPrivileges forcedBalByPiSender) { in startActivitiesInPackage() 379 BackgroundStartPrivileges forcedBalByPiSender) { in startActivities()
|
D | ActivityTaskManagerInternal.java | 24 import android.app.BackgroundStartPrivileges; 226 BackgroundStartPrivileges forcedBalByPiSender); in startActivitiesInPackage() 250 BackgroundStartPrivileges forcedBalByPiSender); in startActivityInPackage()
|
D | ActivityTaskManagerService.java | 150 import android.app.BackgroundStartPrivileges; 1249 null /* originatingPendingIntent */, BackgroundStartPrivileges.NONE); in startActivities() 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() 2253 BackgroundStartPrivileges.NONE, in moveTaskToFrontLocked() 6013 BackgroundStartPrivileges.NONE); in startActivitiesAsPackage() 6021 BackgroundStartPrivileges forcedBalByPiSender) { in startActivitiesInPackage() 6035 BackgroundStartPrivileges forcedBalByPiSender) { in startActivityInPackage() [all …]
|
D | ActivityStarter.java | 94 import android.app.BackgroundStartPrivileges; 417 BackgroundStartPrivileges forcedBalByPiSender; 481 forcedBalByPiSender = BackgroundStartPrivileges.NONE; in reset() 3330 ActivityStarter setBackgroundStartPrivileges(BackgroundStartPrivileges forcedBalByPiSender) { in setBackgroundStartPrivileges()
|
D | WindowProcessController.java | 55 import android.app.BackgroundStartPrivileges; 667 @NonNull BackgroundStartPrivileges backgroundStartPrivileges) { in addOrUpdateBackgroundStartPrivileges()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobConcurrencyManagerTest.java | 52 import android.app.BackgroundStartPrivileges; 183 doReturn(BackgroundStartPrivileges.NONE) in setUp() 611 doReturn(BackgroundStartPrivileges.NONE) in testHasImmediacyPrivilege() 642 doReturn(BackgroundStartPrivileges.ALLOW_FGS) in testHasImmediacyPrivilege() 660 doReturn(BackgroundStartPrivileges.ALLOW_BAL) in testHasImmediacyPrivilege()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 37 import android.app.BackgroundStartPrivileges; 753 BackgroundStartPrivileges.NONE, in createBroadcastRecord()
|
D | BroadcastQueueTest.java | 62 import android.app.BackgroundStartPrivileges; 449 BackgroundStartPrivileges.NONE, false, null, PROCESS_STATE_UNKNOWN); in makeBroadcastRecord() 1490 final BackgroundStartPrivileges backgroundStartPrivileges = 1491 BackgroundStartPrivileges.allowBackgroundActivityStarts(new Binder());
|
D | ActivityManagerServiceTest.java | 84 import android.app.BackgroundStartPrivileges; 1384 any(ProcessRecord.class), any(BackgroundStartPrivileges.class)); in testStartForegroundServiceDelegate()
|