Loading services/core/java/com/android/server/am/ActivityManagerService.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -8685,7 +8685,8 @@ public final class ActivityManagerService extends ActivityManagerNative @Override @Override public void startLockTaskModeOnCurrent() throws RemoteException { public void startLockTaskModeOnCurrent() throws RemoteException { checkCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS); enforceCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS, "startLockTaskModeOnCurrent"); ActivityRecord r = null; ActivityRecord r = null; synchronized (this) { synchronized (this) { r = mStackSupervisor.topRunningActivityLocked(); r = mStackSupervisor.topRunningActivityLocked(); Loading Loading @@ -8727,7 +8728,8 @@ public final class ActivityManagerService extends ActivityManagerNative @Override @Override public void stopLockTaskModeOnCurrent() throws RemoteException { public void stopLockTaskModeOnCurrent() throws RemoteException { checkCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS); enforceCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS, "stopLockTaskModeOnCurrent"); long ident = Binder.clearCallingIdentity(); long ident = Binder.clearCallingIdentity(); try { try { stopLockTaskMode(); stopLockTaskMode(); Loading Loading
services/core/java/com/android/server/am/ActivityManagerService.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -8685,7 +8685,8 @@ public final class ActivityManagerService extends ActivityManagerNative @Override @Override public void startLockTaskModeOnCurrent() throws RemoteException { public void startLockTaskModeOnCurrent() throws RemoteException { checkCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS); enforceCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS, "startLockTaskModeOnCurrent"); ActivityRecord r = null; ActivityRecord r = null; synchronized (this) { synchronized (this) { r = mStackSupervisor.topRunningActivityLocked(); r = mStackSupervisor.topRunningActivityLocked(); Loading Loading @@ -8727,7 +8728,8 @@ public final class ActivityManagerService extends ActivityManagerNative @Override @Override public void stopLockTaskModeOnCurrent() throws RemoteException { public void stopLockTaskModeOnCurrent() throws RemoteException { checkCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS); enforceCallingPermission(android.Manifest.permission.MANAGE_ACTIVITY_STACKS, "stopLockTaskModeOnCurrent"); long ident = Binder.clearCallingIdentity(); long ident = Binder.clearCallingIdentity(); try { try { stopLockTaskMode(); stopLockTaskMode(); Loading