Loading core/java/android/app/ActivityManagerNative.java +10 −8 Original line number Diff line number Diff line Loading @@ -2578,9 +2578,10 @@ public abstract class ActivityManagerNative extends Binder implements IActivityM return true; } case START_LOCK_TASK_BY_CURRENT_TRANSACTION: { case START_SYSTEM_LOCK_TASK_TRANSACTION: { data.enforceInterface(IActivityManager.descriptor); startLockTaskModeOnCurrent(); int taskId = data.readInt(); startSystemLockTaskMode(taskId); reply.writeNoException(); return true; } Loading @@ -2592,9 +2593,9 @@ public abstract class ActivityManagerNative extends Binder implements IActivityM return true; } case STOP_LOCK_TASK_BY_CURRENT_TRANSACTION: { case STOP_SYSTEM_LOCK_TASK_TRANSACTION: { data.enforceInterface(IActivityManager.descriptor); stopLockTaskModeOnCurrent(); stopSystemLockTaskMode(); reply.writeNoException(); return true; } Loading Loading @@ -6386,11 +6387,12 @@ class ActivityManagerProxy implements IActivityManager } @Override public void startLockTaskModeOnCurrent() throws RemoteException { public void startSystemLockTaskMode(int taskId) throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); mRemote.transact(START_LOCK_TASK_BY_CURRENT_TRANSACTION, data, reply, 0); data.writeInt(taskId); mRemote.transact(START_SYSTEM_LOCK_TASK_TRANSACTION, data, reply, 0); reply.readException(); data.recycle(); reply.recycle(); Loading @@ -6408,11 +6410,11 @@ class ActivityManagerProxy implements IActivityManager } @Override public void stopLockTaskModeOnCurrent() throws RemoteException { public void stopSystemLockTaskMode() throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); mRemote.transact(STOP_LOCK_TASK_BY_CURRENT_TRANSACTION, data, reply, 0); mRemote.transact(STOP_SYSTEM_LOCK_TASK_TRANSACTION, data, reply, 0); reply.readException(); data.recycle(); reply.recycle(); Loading core/java/android/app/IActivityManager.java +4 −4 Original line number Diff line number Diff line Loading @@ -555,7 +555,7 @@ public interface IActivityManager extends IInterface { public int getActivityDisplayId(IBinder activityToken) throws RemoteException; public void startLockTaskModeOnCurrent() throws RemoteException; public void startSystemLockTaskMode(int taskId) throws RemoteException; public void startLockTaskMode(int taskId) throws RemoteException; Loading @@ -563,7 +563,7 @@ public interface IActivityManager extends IInterface { public void stopLockTaskMode() throws RemoteException; public void stopLockTaskModeOnCurrent() throws RemoteException; public void stopSystemLockTaskMode() throws RemoteException; public boolean isInLockTaskMode() throws RemoteException; Loading Loading @@ -949,8 +949,8 @@ public interface IActivityManager extends IInterface { int START_VOICE_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+218; int GET_ACTIVITY_OPTIONS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+219; int GET_APP_TASKS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+220; int START_LOCK_TASK_BY_CURRENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+221; int STOP_LOCK_TASK_BY_CURRENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+222; int START_SYSTEM_LOCK_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+221; int STOP_SYSTEM_LOCK_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+222; int FINISH_VOICE_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+223; int IS_TOP_OF_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+224; int REQUEST_VISIBLE_BEHIND_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+225; Loading core/java/com/android/internal/statusbar/IStatusBar.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ oneway interface IStatusBar void toggleSplitScreen(); void preloadRecentApps(); void cancelPreloadRecentApps(); void showScreenPinningRequest(); void showScreenPinningRequest(int taskId); void toggleKeyboardShortcutsMenu(int deviceId); Loading packages/SystemUI/src/com/android/systemui/recents/IRecentsSystemUserCallbacks.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ oneway interface IRecentsSystemUserCallbacks { void registerNonSystemUserCallbacks(IBinder nonSystemUserCallbacks, int userId); void updateRecentsVisibility(boolean visible); void startScreenPinning(); void startScreenPinning(int taskId); void sendRecentsDrawnEvent(); void sendDockingTopTaskEvent(int dragMode, in Rect initialRect); void sendLaunchRecentsEvent(); Loading packages/SystemUI/src/com/android/systemui/recents/Recents.java +2 −2 Original line number Diff line number Diff line Loading @@ -598,13 +598,13 @@ public class Recents extends SystemUI public final void onBusEvent(final ScreenPinningRequestEvent event) { int processUser = sSystemServicesProxy.getProcessUser(); if (sSystemServicesProxy.isSystemUser(processUser)) { mImpl.onStartScreenPinning(event.applicationContext); mImpl.onStartScreenPinning(event.applicationContext, event.taskId); } else { postToSystemUser(new Runnable() { @Override public void run() { try { mUserToSystemCallbacks.startScreenPinning(); mUserToSystemCallbacks.startScreenPinning(event.taskId); } catch (RemoteException e) { Log.e(TAG, "Callback failed", e); } Loading Loading
core/java/android/app/ActivityManagerNative.java +10 −8 Original line number Diff line number Diff line Loading @@ -2578,9 +2578,10 @@ public abstract class ActivityManagerNative extends Binder implements IActivityM return true; } case START_LOCK_TASK_BY_CURRENT_TRANSACTION: { case START_SYSTEM_LOCK_TASK_TRANSACTION: { data.enforceInterface(IActivityManager.descriptor); startLockTaskModeOnCurrent(); int taskId = data.readInt(); startSystemLockTaskMode(taskId); reply.writeNoException(); return true; } Loading @@ -2592,9 +2593,9 @@ public abstract class ActivityManagerNative extends Binder implements IActivityM return true; } case STOP_LOCK_TASK_BY_CURRENT_TRANSACTION: { case STOP_SYSTEM_LOCK_TASK_TRANSACTION: { data.enforceInterface(IActivityManager.descriptor); stopLockTaskModeOnCurrent(); stopSystemLockTaskMode(); reply.writeNoException(); return true; } Loading Loading @@ -6386,11 +6387,12 @@ class ActivityManagerProxy implements IActivityManager } @Override public void startLockTaskModeOnCurrent() throws RemoteException { public void startSystemLockTaskMode(int taskId) throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); mRemote.transact(START_LOCK_TASK_BY_CURRENT_TRANSACTION, data, reply, 0); data.writeInt(taskId); mRemote.transact(START_SYSTEM_LOCK_TASK_TRANSACTION, data, reply, 0); reply.readException(); data.recycle(); reply.recycle(); Loading @@ -6408,11 +6410,11 @@ class ActivityManagerProxy implements IActivityManager } @Override public void stopLockTaskModeOnCurrent() throws RemoteException { public void stopSystemLockTaskMode() throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); mRemote.transact(STOP_LOCK_TASK_BY_CURRENT_TRANSACTION, data, reply, 0); mRemote.transact(STOP_SYSTEM_LOCK_TASK_TRANSACTION, data, reply, 0); reply.readException(); data.recycle(); reply.recycle(); Loading
core/java/android/app/IActivityManager.java +4 −4 Original line number Diff line number Diff line Loading @@ -555,7 +555,7 @@ public interface IActivityManager extends IInterface { public int getActivityDisplayId(IBinder activityToken) throws RemoteException; public void startLockTaskModeOnCurrent() throws RemoteException; public void startSystemLockTaskMode(int taskId) throws RemoteException; public void startLockTaskMode(int taskId) throws RemoteException; Loading @@ -563,7 +563,7 @@ public interface IActivityManager extends IInterface { public void stopLockTaskMode() throws RemoteException; public void stopLockTaskModeOnCurrent() throws RemoteException; public void stopSystemLockTaskMode() throws RemoteException; public boolean isInLockTaskMode() throws RemoteException; Loading Loading @@ -949,8 +949,8 @@ public interface IActivityManager extends IInterface { int START_VOICE_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+218; int GET_ACTIVITY_OPTIONS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+219; int GET_APP_TASKS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+220; int START_LOCK_TASK_BY_CURRENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+221; int STOP_LOCK_TASK_BY_CURRENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+222; int START_SYSTEM_LOCK_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+221; int STOP_SYSTEM_LOCK_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+222; int FINISH_VOICE_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+223; int IS_TOP_OF_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+224; int REQUEST_VISIBLE_BEHIND_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+225; Loading
core/java/com/android/internal/statusbar/IStatusBar.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ oneway interface IStatusBar void toggleSplitScreen(); void preloadRecentApps(); void cancelPreloadRecentApps(); void showScreenPinningRequest(); void showScreenPinningRequest(int taskId); void toggleKeyboardShortcutsMenu(int deviceId); Loading
packages/SystemUI/src/com/android/systemui/recents/IRecentsSystemUserCallbacks.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ oneway interface IRecentsSystemUserCallbacks { void registerNonSystemUserCallbacks(IBinder nonSystemUserCallbacks, int userId); void updateRecentsVisibility(boolean visible); void startScreenPinning(); void startScreenPinning(int taskId); void sendRecentsDrawnEvent(); void sendDockingTopTaskEvent(int dragMode, in Rect initialRect); void sendLaunchRecentsEvent(); Loading
packages/SystemUI/src/com/android/systemui/recents/Recents.java +2 −2 Original line number Diff line number Diff line Loading @@ -598,13 +598,13 @@ public class Recents extends SystemUI public final void onBusEvent(final ScreenPinningRequestEvent event) { int processUser = sSystemServicesProxy.getProcessUser(); if (sSystemServicesProxy.isSystemUser(processUser)) { mImpl.onStartScreenPinning(event.applicationContext); mImpl.onStartScreenPinning(event.applicationContext, event.taskId); } else { postToSystemUser(new Runnable() { @Override public void run() { try { mUserToSystemCallbacks.startScreenPinning(); mUserToSystemCallbacks.startScreenPinning(event.taskId); } catch (RemoteException e) { Log.e(TAG, "Callback failed", e); } Loading