summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorYoungsang Cho <youngsang@google.com>2014-07-16 14:22:19 -0700
committerYoungsang Cho <youngsang@google.com>2014-07-17 17:30:36 -0700
commite821d711db1799dc51661a3ed6188f3cd942bae7 (patch)
tree2256506c195274e99b8046665dc67f0289272bab /services
parent2bb7e341684ee875bece9fc3c5e03326ae0367d1 (diff)
downloadframeworks_base-e821d711db1799dc51661a3ed6188f3cd942bae7.zip
frameworks_base-e821d711db1799dc51661a3ed6188f3cd942bae7.tar.gz
frameworks_base-e821d711db1799dc51661a3ed6188f3cd942bae7.tar.bz2
TIF: Add a notification for surface change from TvView to TvInputService
Bug: 15447352 Change-Id: I3e91609c5eb03be84cc7c88507457b9e74750de8
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/tv/TvInputManagerService.java21
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 20fdefa..a6887fb 100644
--- a/services/core/java/com/android/server/tv/TvInputManagerService.java
+++ b/services/core/java/com/android/server/tv/TvInputManagerService.java
@@ -816,6 +816,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,