diff options
author | Youngsang Cho <youngsang@google.com> | 2014-07-18 03:28:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-17 21:58:28 +0000 |
commit | c66ca1267cfa4aca70d3dceaf5962ff77ee030b3 (patch) | |
tree | fe26b28a03fc114caa7e36a58795d4613e9fe917 /services | |
parent | b375805f3b1672e68d1511565af4700e5fa8491d (diff) | |
parent | e821d711db1799dc51661a3ed6188f3cd942bae7 (diff) | |
download | frameworks_base-c66ca1267cfa4aca70d3dceaf5962ff77ee030b3.zip frameworks_base-c66ca1267cfa4aca70d3dceaf5962ff77ee030b3.tar.gz frameworks_base-c66ca1267cfa4aca70d3dceaf5962ff77ee030b3.tar.bz2 |
Merge "TIF: Add a notification for surface change from TvView to TvInputService" into lmp-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/tv/TvInputManagerService.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java index 0407b10..33a379a 100644 --- a/services/core/java/com/android/server/tv/TvInputManagerService.java +++ b/services/core/java/com/android/server/tv/TvInputManagerService.java @@ -888,6 +888,27 @@ public final class TvInputManagerService extends SystemService { } @Override + public void dispatchSurfaceChanged(IBinder sessionToken, int format, int width, + int height, int userId) { + final int callingUid = Binder.getCallingUid(); + final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, + userId, "dispatchSurfaceChanged"); + final long identity = Binder.clearCallingIdentity(); + try { + synchronized (mLock) { + try { + getSessionLocked(sessionToken, callingUid, resolvedUserId) + .dispatchSurfaceChanged(format, width, height); + } catch (RemoteException e) { + Slog.e(TAG, "error in dispatchSurfaceChanged", e); + } + } + } finally { + Binder.restoreCallingIdentity(identity); + } + } + + @Override public void setVolume(IBinder sessionToken, float volume, int userId) { final int callingUid = Binder.getCallingUid(); final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, |