diff options
| author | 2019-11-11 21:04:20 +0000 | |
|---|---|---|
| committer | 2019-11-11 21:04:20 +0000 | |
| commit | cfab5d6737e180bf35a3f96489a172a0fb8fd08f (patch) | |
| tree | 29f3ee96b2e63c0b3069eab80ea34bba62731d4c | |
| parent | 2b52677b7d81b66be444d74282a32d9d81315339 (diff) | |
| parent | 0e7536c1c2529d1f9415e6d10db9dee6cd0fbe48 (diff) | |
Merge "Use cached pid uid from Session"
| -rw-r--r-- | services/core/java/com/android/server/wm/Session.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/wm/Session.java b/services/core/java/com/android/server/wm/Session.java index 96be7cc416bd..7135b21d507d 100644 --- a/services/core/java/com/android/server/wm/Session.java +++ b/services/core/java/com/android/server/wm/Session.java @@ -263,11 +263,9 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient { @Override public IBinder performDrag(IWindow window, int flags, SurfaceControl surface, int touchSource, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) { - final int callerPid = Binder.getCallingPid(); - final int callerUid = Binder.getCallingUid(); final long ident = Binder.clearCallingIdentity(); try { - return mDragDropController.performDrag(mSurfaceSession, callerPid, callerUid, window, + return mDragDropController.performDrag(mSurfaceSession, mPid, mUid, window, flags, surface, touchSource, touchX, touchY, thumbCenterX, thumbCenterY, data); } finally { Binder.restoreCallingIdentity(ident); @@ -625,11 +623,9 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient { public void grantInputChannel(int displayId, SurfaceControl surface, IWindow window, IBinder hostInputToken, InputChannel outInputChannel) { - final int callerUid = Binder.getCallingUid(); - final int callerPid = Binder.getCallingPid(); final long identity = Binder.clearCallingIdentity(); try { - mService.grantInputChannel(callerUid, callerPid, displayId, surface, window, + mService.grantInputChannel(mUid, mPid, displayId, surface, window, hostInputToken, outInputChannel); } finally { Binder.restoreCallingIdentity(identity); |