Home
last modified time | relevance | path

Searched refs:subReason (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java1296 final int subReason = standbyReason & REASON_SUB_MASK; in reasonToString() local
1301 switch (subReason) { in reasonToString()
1315 if (subReason > 0) { in reasonToString()
1316 sb.append("-").append(Integer.toBinaryString(subReason)); in reasonToString()
1321 if (subReason > 0) { in reasonToString()
1322 sb.append("-").append(Integer.toBinaryString(subReason)); in reasonToString()
1327 switch (subReason) { in reasonToString()
1338 switch (subReason) { in reasonToString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DApplicationExitInfoTest.java174 private void noteAppKill(ProcessRecord app, int reason, int subReason, String msg, in noteAppKill() argument
178 raw.setSubReason(subReason); in noteAppKill()
1021 Integer reason, Integer subReason, Integer status, in verifyApplicationExitInfo() argument
1051 if (subReason != null) { in verifyApplicationExitInfo()
1052 assertEquals(subReason.intValue(), info.getSubReason()); in verifyApplicationExitInfo()
1068 if ((subReason != null) && (subReason != ApplicationExitInfo.SUBREASON_UNKNOWN) in verifyApplicationExitInfo()
1071 "[" + info.subreasonToString(subReason) + "] " + description, in verifyApplicationExitInfo()
1073 } else if ((subReason != null) && (subReason != ApplicationExitInfo.SUBREASON_UNKNOWN)) { in verifyApplicationExitInfo()
1075 "[" + info.subreasonToString(subReason) + "]", in verifyApplicationExitInfo()
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java473 @RestrictionLevel int update(@RestrictionLevel int level, int reason, int subReason) { in update() argument
478 mReason = (REASON_MAIN_MASK & reason) | (REASON_SUB_MASK & subReason); in update()
649 int reason, int subReason) { in update() argument
656 return settings.update(level, reason, subReason); in update()
1670 int subReason) { in refreshAppRestrictionLevelForUser() argument
1697 info.mStandbyBucket, true, reason, subReason); in refreshAppRestrictionLevelForUser()
1701 void refreshAppRestrictionLevelForUid(int uid, int reason, int subReason, in refreshAppRestrictionLevelForUid() argument
1720 curBucket, true, reason, subReason); in refreshAppRestrictionLevelForUid()
2139 int curBucket, boolean allowUpdateBucket, int reason, int subReason) { in applyRestrictionLevel() argument
2159 subReason = bucketReason & REASON_SUB_MASK; in applyRestrictionLevel()
[all …]
DProcessRecord.java1260 void killLocked(String reason, @Reason int reasonCode, @SubReason int subReason, in killLocked() argument
1262 killLocked(reason, reason, reasonCode, subReason, noisy, true); in killLocked()
1267 @SubReason int subReason, boolean noisy) { in killLocked() argument
1268 killLocked(reason, description, reasonCode, subReason, noisy, true); in killLocked()
1272 void killLocked(String reason, @Reason int reasonCode, @SubReason int subReason, in killLocked() argument
1274 killLocked(reason, reason, reasonCode, subReason, noisy, asyncKPG); in killLocked()
1279 @SubReason int subReason, boolean noisy, boolean asyncKPG) { in killLocked() argument
1295 mService.mProcessList.noteAppKill(this, reasonCode, subReason, description); in killLocked()
DAppErrors.java455 int subReason = ApplicationExitInfo.SUBREASON_UNKNOWN; in killAppAtUserRequestLocked() local
459 subReason = ApplicationExitInfo.SUBREASON_WAIT_FOR_DEBUGGER; in killAppAtUserRequestLocked()
462 killAppImmediateLSP(app, reasonCode, subReason, in killAppAtUserRequestLocked()
468 private void killAppImmediateLSP(ProcessRecord app, int reasonCode, int subReason, in killAppImmediateLSP() argument
481 app.killLocked(killReason, reasonCode, subReason, true); in killAppImmediateLSP()
DPhantomProcessList.java497 @Reason int reasonCode, @SubReason int subReason, String msg) { in killPhantomProcessGroupLocked() argument
514 app.killLocked("Caused by child process: " + msg, reasonCode, subReason, true); in killPhantomProcessGroupLocked()
DProcessList.java2957 int reasonCode, int subReason, String reason) {
2961 reasonCode, subReason, reason);
3047 int reasonCode, int subReason, String reason) {
3158 reasonCode, subReason, reason, !doFreeze /* async */);
3179 boolean allowRestart, int reasonCode, int subReason, String reason) {
3180 return removeProcessLocked(app, callerWillRestart, allowRestart, reasonCode, subReason,
3186 boolean allowRestart, int reasonCode, int subReason, String reason, boolean async) {
3223 app.killLocked(reason, reasonCode, subReason, true, async);
5560 final @SubReason int subReason, final String msg) {
5563 + ", sub-reason: " + subReason + ", message: " + msg);
[all …]
DAppExitInfoTracker.java296 final @SubReason int subReason, final String msg) { in scheduleNoteAppKill() argument
306 raw.setSubReason(subReason); in scheduleNoteAppKill()
322 final @SubReason int subReason, final String msg) { in scheduleNoteAppKill() argument
336 scheduleNoteAppKill(app, reason, subReason, msg); in scheduleNoteAppKill()
DCachedAppOptimizer.java2608 @SubReason int subReason) { in killProcess() argument
2615 proc.killLocked(reason, reasonCode, subReason, true); in killProcess()
DActivityManagerService.java4414 int subReason; in forceStopPackageLocked() local
4416 subReason = ApplicationExitInfo.SUBREASON_FORCE_STOP; in forceStopPackageLocked()
4418 subReason = ApplicationExitInfo.SUBREASON_UNKNOWN; in forceStopPackageLocked()
4425 subReason, in forceStopPackageLocked()
8679 private void killUid(int appId, int userId, int reason, int subReason, in killUid() argument
8692 subReason, in killUid()
15708 int subReason; in broadcastIntentLockedTraced() local
15711 subReason = ApplicationExitInfo.SUBREASON_UNKNOWN; in broadcastIntentLockedTraced()
15715 subReason = ApplicationExitInfo.SUBREASON_UNKNOWN; in broadcastIntentLockedTraced()
15725 subReason, in broadcastIntentLockedTraced()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java824 int bucket, int subReason, long elapsedRealtime, long nextCheckDelay, in reportNoninteractiveUsageCrossUserLocked() argument
826 reportNoninteractiveUsageLocked(packageName, userId, bucket, subReason, elapsedRealtime, in reportNoninteractiveUsageCrossUserLocked()
831 reportNoninteractiveUsageLocked(packageName, otherUserId, bucket, subReason, in reportNoninteractiveUsageCrossUserLocked()
843 int subReason, long elapsedRealtime, long nextCheckDelay) { in reportNoninteractiveUsageLocked() argument
845 subReason, 0, elapsedRealtime + nextCheckDelay); in reportNoninteractiveUsageLocked()
1181 final int subReason = usageEventToSubReason(eventType); in reportEventLocked() local
1182 final int reason = REASON_MAIN_USAGE | subReason; in reportEventLocked()
1204 notificationSeenPromotedBucket, subReason, in reportEventLocked()
1210 STANDBY_BUCKET_WORKING_SET, subReason, in reportEventLocked()
1215 STANDBY_BUCKET_ACTIVE, subReason, in reportEventLocked()
[all …]
/frameworks/base/core/java/android/app/
DApplicationExitInfo.java1032 public void setSubReason(final @SubReason int subReason) { in setSubReason() argument
1033 mSubReason = subReason; in setSubReason()
DIActivityManager.aidl1028 boolean enabled, int reason, in String subReason, int source, long threshold); in noteAppRestrictionEnabled() argument
DActivityManager.java6385 @Nullable String subReason, @RestrictionSource int source, long threshold) { in noteAppRestrictionEnabled() argument
6388 reason, subReason, source, threshold); in noteAppRestrictionEnabled()
/frameworks/proto_logging/stats/enums/app/
Dapp_enums.proto413 * Application process kills subReason is unknown.