diff options
| author | Andrii Kulian <akulian@google.com> | 2016-03-29 17:04:42 -0700 |
|---|---|---|
| committer | Andrii Kulian <akulian@google.com> | 2016-03-29 18:39:45 -0700 |
| commit | 933076d80561751618f462b26309ce9e4c3ff3bf (patch) | |
| tree | 1165d0bbc40b7f0c3f6e87abaf2ae28252bc7f86 /core/java/android/app/ApplicationThreadNative.java | |
| parent | aac5bf1c1c60fac2db26c1ec68b85a7232816682 (diff) | |
Refactor usages of Picture In Picture and Multi Window (1/4)
Bug: 27365860
Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
Diffstat (limited to 'core/java/android/app/ApplicationThreadNative.java')
| -rw-r--r-- | core/java/android/app/ApplicationThreadNative.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/java/android/app/ApplicationThreadNative.java b/core/java/android/app/ApplicationThreadNative.java index 744ddf704161..ea86dd0558d6 100644 --- a/core/java/android/app/ApplicationThreadNative.java +++ b/core/java/android/app/ApplicationThreadNative.java @@ -736,7 +736,7 @@ public abstract class ApplicationThreadNative extends Binder data.enforceInterface(IApplicationThread.descriptor); final IBinder b = data.readStrongBinder(); final boolean inMultiWindow = data.readInt() != 0; - scheduleMultiWindowChanged(b, inMultiWindow); + scheduleMultiWindowModeChanged(b, inMultiWindow); return true; } @@ -745,7 +745,7 @@ public abstract class ApplicationThreadNative extends Binder data.enforceInterface(IApplicationThread.descriptor); final IBinder b = data.readStrongBinder(); final boolean inPip = data.readInt() != 0; - schedulePictureInPictureChanged(b, inPip); + schedulePictureInPictureModeChanged(b, inPip); return true; } @@ -1498,24 +1498,24 @@ class ApplicationThreadProxy implements IApplicationThread { } @Override - public final void scheduleMultiWindowChanged( - IBinder token, boolean inMultiWindow) throws RemoteException { + public final void scheduleMultiWindowModeChanged( + IBinder token, boolean isInMultiWindowMode) throws RemoteException { Parcel data = Parcel.obtain(); data.writeInterfaceToken(IApplicationThread.descriptor); data.writeStrongBinder(token); - data.writeInt(inMultiWindow ? 1 : 0); + data.writeInt(isInMultiWindowMode ? 1 : 0); mRemote.transact(SCHEDULE_MULTI_WINDOW_CHANGED_TRANSACTION, data, null, IBinder.FLAG_ONEWAY); data.recycle(); } @Override - public final void schedulePictureInPictureChanged(IBinder token, boolean inPip) + public final void schedulePictureInPictureModeChanged(IBinder token, boolean isInPipMode) throws RemoteException { Parcel data = Parcel.obtain(); data.writeInterfaceToken(IApplicationThread.descriptor); data.writeStrongBinder(token); - data.writeInt(inPip ? 1 : 0); + data.writeInt(isInPipMode ? 1 : 0); mRemote.transact(SCHEDULE_PICTURE_IN_PICTURE_CHANGED_TRANSACTION, data, null, IBinder.FLAG_ONEWAY); data.recycle(); |
