Loading data/etc/services.core.protolog.json +6 −12 Original line number Diff line number Diff line Loading @@ -1879,12 +1879,6 @@ "group": "WM_DEBUG_STATES", "at": "com\/android\/server\/wm\/TaskFragment.java" }, "-240296576": { "message": "handleAppTransitionReady: displayId=%d appTransition={%s} openingApps=[%s] closingApps=[%s] transit=%s", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "-237664290": { "message": "Pause the recording session on display %s", "level": "VERBOSE", Loading Loading @@ -1987,6 +1981,12 @@ "group": "WM_DEBUG_CONTENT_RECORDING", "at": "com\/android\/server\/wm\/ContentRecorder.java" }, "-134793542": { "message": "handleAppTransitionReady: displayId=%d appTransition={%s} excludeLauncherFromAnimation=%b openingApps=[%s] closingApps=[%s] transit=%s", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "-134091882": { "message": "Screenshotting Activity %s", "level": "VERBOSE", Loading Loading @@ -2491,12 +2491,6 @@ "group": "WM_ERROR", "at": "com\/android\/server\/wm\/WindowManagerService.java" }, "323235828": { "message": "Delaying app transition for recents animation to finish", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "327461496": { "message": "Complete pause: %s", "level": "VERBOSE", Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +16 −4 Original line number Diff line number Diff line Loading @@ -706,6 +706,8 @@ public class BubbleExpandedView extends LinearLayout { * @param animate whether the pointer should animate to this position. */ public void setPointerPosition(float bubblePosition, boolean onLeft, boolean animate) { final boolean isRtl = mContext.getResources().getConfiguration().getLayoutDirection() == LAYOUT_DIRECTION_RTL; // Pointer gets drawn in the padding final boolean showVertically = mPositioner.showBubblesVertically(); final float paddingLeft = (showVertically && onLeft) Loading @@ -732,12 +734,22 @@ public class BubbleExpandedView extends LinearLayout { float pointerX; if (showVertically) { pointerY = bubbleCenter - (mPointerWidth / 2f); if (!isRtl) { pointerX = onLeft ? -mPointerHeight + mPointerOverlap : getWidth() - mPaddingRight - mPointerOverlap; } else { pointerX = onLeft ? -(getWidth() - mPaddingLeft - mPointerOverlap) : mPointerHeight - mPointerOverlap; } } else { pointerY = mPointerOverlap; if (!isRtl) { pointerX = bubbleCenter - (mPointerWidth / 2f); } else { pointerX = -(getWidth() - mPaddingLeft - bubbleCenter) + (mPointerWidth / 2f); } } if (animate) { mPointerView.animate().translationX(pointerX).translationY(pointerY).start(); Loading libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTaskOrganizer.java +5 −0 Original line number Diff line number Diff line Loading @@ -1600,6 +1600,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener, // Avoid double removal, which is fatal. return; } if (surface == null || !surface.isValid()) { ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, "%s: trying to remove invalid content overlay (%s)", TAG, surface); return; } final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction(); tx.remove(surface); tx.apply(); Loading services/core/java/com/android/server/am/ActivityManagerService.java +39 −6 Original line number Diff line number Diff line Loading @@ -128,6 +128,10 @@ import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM; import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME; import static com.android.server.am.MemoryStatUtil.hasMemcg; import static com.android.server.am.ProcessList.ProcStartHandler; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_BACKUP; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_INSTRUMENTATION; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_PERSISTENT; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_SYSTEM; import static com.android.server.net.NetworkPolicyManagerInternal.updateBlockedReasonsWithProcState; import static com.android.server.pm.PackageManagerService.PLATFORM_PACKAGE_NAME; import static com.android.server.wm.ActivityTaskManagerDebugConfig.DEBUG_CLEANUP; Loading Loading @@ -1877,6 +1881,7 @@ public class ActivityManagerService extends IActivityManager.Stub app.setPid(MY_PID); app.mState.setMaxAdj(ProcessList.SYSTEM_ADJ); app.makeActive(mSystemThread.getApplicationThread(), mProcessStats); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_SYSTEM); addPidLocked(app); updateLruProcessLocked(app, false, null); updateOomAdjLocked(OomAdjuster.OOM_ADJ_REASON_NONE); Loading Loading @@ -4179,7 +4184,9 @@ public class ActivityManagerService extends IActivityManager.Stub mi.getTotalRss(), ProcessStats.ADD_PSS_EXTERNAL_SLOW, duration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -4237,7 +4244,9 @@ public class ActivityManagerService extends IActivityManager.Stub tmpUss[2], ProcessStats.ADD_PSS_EXTERNAL, duration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -6416,8 +6425,13 @@ public class ActivityManagerService extends IActivityManager.Stub .getPersistentApplications(STOCK_PM_FLAGS | matchFlags).getList(); for (ApplicationInfo app : apps) { if (!"android".equals(app.packageName)) { addAppLocked(app, null, false, null /* ABI override */, final ProcessRecord proc = addAppLocked( app, null, false, null /* ABI override */, ZYGOTE_POLICY_FLAG_BATCH_LAUNCH); if (proc != null) { proc.mProfile.addHostingComponentType( HOSTING_COMPONENT_TYPE_PERSISTENT); } } } } catch (RemoteException ex) { Loading Loading @@ -11295,7 +11309,9 @@ public class ActivityManagerService extends IActivityManager.Stub holder.state.getPackage(), myTotalPss, myTotalUss, myTotalRss, reportType, endTime-startTime, holder.appVersion); holder.appVersion, r.mProfile.getCurrentHostingComponentTypes(), r.mProfile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -11938,7 +11954,9 @@ public class ActivityManagerService extends IActivityManager.Stub holder.state.getName(), holder.state.getPackage(), myTotalPss, myTotalUss, myTotalRss, reportType, endTime-startTime, holder.appVersion); holder.appVersion, r.mProfile.getCurrentHostingComponentTypes(), r.mProfile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -12772,6 +12790,8 @@ public class ActivityManagerService extends IActivityManager.Stub newBackupUid = proc.isInFullBackup() ? r.appInfo.uid : -1; mBackupTargets.put(targetUserId, r); proc.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_BACKUP); // Try not to kill the process during backup updateOomAdjLocked(proc, OomAdjuster.OOM_ADJ_REASON_NONE); Loading Loading @@ -12814,7 +12834,15 @@ public class ActivityManagerService extends IActivityManager.Stub } synchronized (this) { mBackupTargets.delete(userId); final int indexOfKey = mBackupTargets.indexOfKey(userId); if (indexOfKey >= 0) { final BackupRecord backupTarget = mBackupTargets.valueAt(indexOfKey); if (backupTarget != null && backupTarget.app != null) { backupTarget.app.mProfile.clearHostingComponentType( HOSTING_COMPONENT_TYPE_BACKUP); } mBackupTargets.removeAt(indexOfKey); } } JobSchedulerInternal js = LocalServices.getService(JobSchedulerInternal.class); Loading Loading @@ -12892,6 +12920,7 @@ public class ActivityManagerService extends IActivityManager.Stub final ProcessRecord proc = backupTarget.app; updateOomAdjLocked(proc, OomAdjuster.OOM_ADJ_REASON_NONE); proc.setInFullBackup(false); proc.mProfile.clearHostingComponentType(HOSTING_COMPONENT_TYPE_BACKUP); oldBackupUid = backupTarget != null ? backupTarget.appInfo.uid : -1; Loading Loading @@ -14620,6 +14649,7 @@ public class ActivityManagerService extends IActivityManager.Stub } app = addAppLocked(ai, defProcess, false, disableHiddenApiChecks, disableTestApiChecks, abiOverride, ZYGOTE_POLICY_FLAG_EMPTY); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); } app.setActiveInstrumentation(activeInstr); Loading Loading @@ -14744,6 +14774,7 @@ public class ActivityManagerService extends IActivityManager.Stub if (!mActiveInstrumentation.contains(activeInstr)) { mActiveInstrumentation.add(activeInstr); } app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); } } finally { Binder.restoreCallingIdentity(token); Loading Loading @@ -14873,6 +14904,7 @@ public class ActivityManagerService extends IActivityManager.Stub instr.removeProcess(app); app.setActiveInstrumentation(null); } app.mProfile.clearHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); if (app.isSdkSandbox) { // For sharedUid apps this will kill all sdk sandbox processes, which is not ideal. Loading Loading @@ -15753,6 +15785,7 @@ public class ActivityManagerService extends IActivityManager.Stub if (app.isPersistent()) { addAppLocked(app.info, null, false, null /* ABI override */, ZYGOTE_POLICY_FLAG_BATCH_LAUNCH); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_PERSISTENT); } } } services/core/java/com/android/server/am/AppProfiler.java +3 −1 Original line number Diff line number Diff line Loading @@ -573,7 +573,9 @@ public class AppProfiler { holder.state.getPackage(), pss, uss, rss, statType, pssDuration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); if (DEBUG_PSS) { Slog.d(TAG_PSS, Loading Loading
data/etc/services.core.protolog.json +6 −12 Original line number Diff line number Diff line Loading @@ -1879,12 +1879,6 @@ "group": "WM_DEBUG_STATES", "at": "com\/android\/server\/wm\/TaskFragment.java" }, "-240296576": { "message": "handleAppTransitionReady: displayId=%d appTransition={%s} openingApps=[%s] closingApps=[%s] transit=%s", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "-237664290": { "message": "Pause the recording session on display %s", "level": "VERBOSE", Loading Loading @@ -1987,6 +1981,12 @@ "group": "WM_DEBUG_CONTENT_RECORDING", "at": "com\/android\/server\/wm\/ContentRecorder.java" }, "-134793542": { "message": "handleAppTransitionReady: displayId=%d appTransition={%s} excludeLauncherFromAnimation=%b openingApps=[%s] closingApps=[%s] transit=%s", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "-134091882": { "message": "Screenshotting Activity %s", "level": "VERBOSE", Loading Loading @@ -2491,12 +2491,6 @@ "group": "WM_ERROR", "at": "com\/android\/server\/wm\/WindowManagerService.java" }, "323235828": { "message": "Delaying app transition for recents animation to finish", "level": "VERBOSE", "group": "WM_DEBUG_APP_TRANSITIONS", "at": "com\/android\/server\/wm\/AppTransitionController.java" }, "327461496": { "message": "Complete pause: %s", "level": "VERBOSE", Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +16 −4 Original line number Diff line number Diff line Loading @@ -706,6 +706,8 @@ public class BubbleExpandedView extends LinearLayout { * @param animate whether the pointer should animate to this position. */ public void setPointerPosition(float bubblePosition, boolean onLeft, boolean animate) { final boolean isRtl = mContext.getResources().getConfiguration().getLayoutDirection() == LAYOUT_DIRECTION_RTL; // Pointer gets drawn in the padding final boolean showVertically = mPositioner.showBubblesVertically(); final float paddingLeft = (showVertically && onLeft) Loading @@ -732,12 +734,22 @@ public class BubbleExpandedView extends LinearLayout { float pointerX; if (showVertically) { pointerY = bubbleCenter - (mPointerWidth / 2f); if (!isRtl) { pointerX = onLeft ? -mPointerHeight + mPointerOverlap : getWidth() - mPaddingRight - mPointerOverlap; } else { pointerX = onLeft ? -(getWidth() - mPaddingLeft - mPointerOverlap) : mPointerHeight - mPointerOverlap; } } else { pointerY = mPointerOverlap; if (!isRtl) { pointerX = bubbleCenter - (mPointerWidth / 2f); } else { pointerX = -(getWidth() - mPaddingLeft - bubbleCenter) + (mPointerWidth / 2f); } } if (animate) { mPointerView.animate().translationX(pointerX).translationY(pointerY).start(); Loading
libs/WindowManager/Shell/src/com/android/wm/shell/pip/PipTaskOrganizer.java +5 −0 Original line number Diff line number Diff line Loading @@ -1600,6 +1600,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener, // Avoid double removal, which is fatal. return; } if (surface == null || !surface.isValid()) { ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE, "%s: trying to remove invalid content overlay (%s)", TAG, surface); return; } final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction(); tx.remove(surface); tx.apply(); Loading
services/core/java/com/android/server/am/ActivityManagerService.java +39 −6 Original line number Diff line number Diff line Loading @@ -128,6 +128,10 @@ import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM; import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME; import static com.android.server.am.MemoryStatUtil.hasMemcg; import static com.android.server.am.ProcessList.ProcStartHandler; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_BACKUP; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_INSTRUMENTATION; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_PERSISTENT; import static com.android.server.am.ProcessProfileRecord.HOSTING_COMPONENT_TYPE_SYSTEM; import static com.android.server.net.NetworkPolicyManagerInternal.updateBlockedReasonsWithProcState; import static com.android.server.pm.PackageManagerService.PLATFORM_PACKAGE_NAME; import static com.android.server.wm.ActivityTaskManagerDebugConfig.DEBUG_CLEANUP; Loading Loading @@ -1877,6 +1881,7 @@ public class ActivityManagerService extends IActivityManager.Stub app.setPid(MY_PID); app.mState.setMaxAdj(ProcessList.SYSTEM_ADJ); app.makeActive(mSystemThread.getApplicationThread(), mProcessStats); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_SYSTEM); addPidLocked(app); updateLruProcessLocked(app, false, null); updateOomAdjLocked(OomAdjuster.OOM_ADJ_REASON_NONE); Loading Loading @@ -4179,7 +4184,9 @@ public class ActivityManagerService extends IActivityManager.Stub mi.getTotalRss(), ProcessStats.ADD_PSS_EXTERNAL_SLOW, duration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -4237,7 +4244,9 @@ public class ActivityManagerService extends IActivityManager.Stub tmpUss[2], ProcessStats.ADD_PSS_EXTERNAL, duration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -6416,8 +6425,13 @@ public class ActivityManagerService extends IActivityManager.Stub .getPersistentApplications(STOCK_PM_FLAGS | matchFlags).getList(); for (ApplicationInfo app : apps) { if (!"android".equals(app.packageName)) { addAppLocked(app, null, false, null /* ABI override */, final ProcessRecord proc = addAppLocked( app, null, false, null /* ABI override */, ZYGOTE_POLICY_FLAG_BATCH_LAUNCH); if (proc != null) { proc.mProfile.addHostingComponentType( HOSTING_COMPONENT_TYPE_PERSISTENT); } } } } catch (RemoteException ex) { Loading Loading @@ -11295,7 +11309,9 @@ public class ActivityManagerService extends IActivityManager.Stub holder.state.getPackage(), myTotalPss, myTotalUss, myTotalRss, reportType, endTime-startTime, holder.appVersion); holder.appVersion, r.mProfile.getCurrentHostingComponentTypes(), r.mProfile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -11938,7 +11954,9 @@ public class ActivityManagerService extends IActivityManager.Stub holder.state.getName(), holder.state.getPackage(), myTotalPss, myTotalUss, myTotalRss, reportType, endTime-startTime, holder.appVersion); holder.appVersion, r.mProfile.getCurrentHostingComponentTypes(), r.mProfile.getHistoricalHostingComponentTypes()); }); } } Loading Loading @@ -12772,6 +12790,8 @@ public class ActivityManagerService extends IActivityManager.Stub newBackupUid = proc.isInFullBackup() ? r.appInfo.uid : -1; mBackupTargets.put(targetUserId, r); proc.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_BACKUP); // Try not to kill the process during backup updateOomAdjLocked(proc, OomAdjuster.OOM_ADJ_REASON_NONE); Loading Loading @@ -12814,7 +12834,15 @@ public class ActivityManagerService extends IActivityManager.Stub } synchronized (this) { mBackupTargets.delete(userId); final int indexOfKey = mBackupTargets.indexOfKey(userId); if (indexOfKey >= 0) { final BackupRecord backupTarget = mBackupTargets.valueAt(indexOfKey); if (backupTarget != null && backupTarget.app != null) { backupTarget.app.mProfile.clearHostingComponentType( HOSTING_COMPONENT_TYPE_BACKUP); } mBackupTargets.removeAt(indexOfKey); } } JobSchedulerInternal js = LocalServices.getService(JobSchedulerInternal.class); Loading Loading @@ -12892,6 +12920,7 @@ public class ActivityManagerService extends IActivityManager.Stub final ProcessRecord proc = backupTarget.app; updateOomAdjLocked(proc, OomAdjuster.OOM_ADJ_REASON_NONE); proc.setInFullBackup(false); proc.mProfile.clearHostingComponentType(HOSTING_COMPONENT_TYPE_BACKUP); oldBackupUid = backupTarget != null ? backupTarget.appInfo.uid : -1; Loading Loading @@ -14620,6 +14649,7 @@ public class ActivityManagerService extends IActivityManager.Stub } app = addAppLocked(ai, defProcess, false, disableHiddenApiChecks, disableTestApiChecks, abiOverride, ZYGOTE_POLICY_FLAG_EMPTY); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); } app.setActiveInstrumentation(activeInstr); Loading Loading @@ -14744,6 +14774,7 @@ public class ActivityManagerService extends IActivityManager.Stub if (!mActiveInstrumentation.contains(activeInstr)) { mActiveInstrumentation.add(activeInstr); } app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); } } finally { Binder.restoreCallingIdentity(token); Loading Loading @@ -14873,6 +14904,7 @@ public class ActivityManagerService extends IActivityManager.Stub instr.removeProcess(app); app.setActiveInstrumentation(null); } app.mProfile.clearHostingComponentType(HOSTING_COMPONENT_TYPE_INSTRUMENTATION); if (app.isSdkSandbox) { // For sharedUid apps this will kill all sdk sandbox processes, which is not ideal. Loading Loading @@ -15753,6 +15785,7 @@ public class ActivityManagerService extends IActivityManager.Stub if (app.isPersistent()) { addAppLocked(app.info, null, false, null /* ABI override */, ZYGOTE_POLICY_FLAG_BATCH_LAUNCH); app.mProfile.addHostingComponentType(HOSTING_COMPONENT_TYPE_PERSISTENT); } } }
services/core/java/com/android/server/am/AppProfiler.java +3 −1 Original line number Diff line number Diff line Loading @@ -573,7 +573,9 @@ public class AppProfiler { holder.state.getPackage(), pss, uss, rss, statType, pssDuration, holder.appVersion); holder.appVersion, profile.getCurrentHostingComponentTypes(), profile.getHistoricalHostingComponentTypes()); }); if (DEBUG_PSS) { Slog.d(TAG_PSS, Loading