Loading core/java/android/app/ActivityManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -5310,6 +5310,9 @@ public class ActivityManager { * <p> When {@code delayedDurationMs} is {@code 0}, it will clears any previously * set forced delays. * * <p><b>Note: This method is only intended for testing and it only * works for packages that are already running. * * @hide */ @RequiresPermission(android.Manifest.permission.DUMP) Loading services/core/java/com/android/server/am/BroadcastProcessQueue.java +2 −1 Original line number Diff line number Diff line Loading @@ -425,8 +425,9 @@ class BroadcastProcessQueue { /** * Get package name of the first application loaded into this process. */ @Nullable public String getPackageName() { return app.getApplicationInfo().packageName; return app == null ? null : app.getApplicationInfo().packageName; } /** Loading Loading
core/java/android/app/ActivityManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -5310,6 +5310,9 @@ public class ActivityManager { * <p> When {@code delayedDurationMs} is {@code 0}, it will clears any previously * set forced delays. * * <p><b>Note: This method is only intended for testing and it only * works for packages that are already running. * * @hide */ @RequiresPermission(android.Manifest.permission.DUMP) Loading
services/core/java/com/android/server/am/BroadcastProcessQueue.java +2 −1 Original line number Diff line number Diff line Loading @@ -425,8 +425,9 @@ class BroadcastProcessQueue { /** * Get package name of the first application loaded into this process. */ @Nullable public String getPackageName() { return app.getApplicationInfo().packageName; return app == null ? null : app.getApplicationInfo().packageName; } /** Loading