Loading media/java/android/media/tv/TvInputService.java +27 −9 Original line number Diff line number Diff line Loading @@ -310,7 +310,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifySessionEvent(" + eventType + ")"); if (mSessionCallback != null) { mSessionCallback.onSessionEvent(eventType, eventArgs); } } catch (RemoteException e) { Log.w(TAG, "error in sending event (event=" + eventType + ")"); } Loading @@ -329,7 +331,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyChannelRetuned"); if (mSessionCallback != null) { mSessionCallback.onChannelRetuned(channelUri); } } catch (RemoteException e) { Log.w(TAG, "error in notifyChannelRetuned"); } Loading Loading @@ -366,7 +370,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyTracksChanged"); if (mSessionCallback != null) { mSessionCallback.onTracksChanged(tracks); } } catch (RemoteException e) { Log.w(TAG, "error in notifyTracksChanged"); } Loading Loading @@ -394,7 +400,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyTrackSelected"); if (mSessionCallback != null) { mSessionCallback.onTrackSelected(type, trackId); } } catch (RemoteException e) { Log.w(TAG, "error in notifyTrackSelected"); } Loading @@ -415,7 +423,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyVideoAvailable"); if (mSessionCallback != null) { mSessionCallback.onVideoAvailable(); } } catch (RemoteException e) { Log.w(TAG, "error in notifyVideoAvailable"); } Loading Loading @@ -447,7 +457,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyVideoUnavailable"); if (mSessionCallback != null) { mSessionCallback.onVideoUnavailable(reason); } } catch (RemoteException e) { Log.w(TAG, "error in notifyVideoUnavailable"); } Loading Loading @@ -486,7 +498,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyContentAllowed"); if (mSessionCallback != null) { mSessionCallback.onContentAllowed(); } } catch (RemoteException e) { Log.w(TAG, "error in notifyContentAllowed"); } Loading Loading @@ -526,7 +540,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyContentBlocked"); if (mSessionCallback != null) { mSessionCallback.onContentBlocked(rating.flattenToString()); } } catch (RemoteException e) { Log.w(TAG, "error in notifyContentBlocked"); } Loading Loading @@ -557,7 +573,9 @@ public abstract class TvInputService extends Service { try { if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" + right + ", b=" + bottom + ",)"); if (mSessionCallback != null) { mSessionCallback.onLayoutSurface(left, top, right, bottom); } } catch (RemoteException e) { Log.w(TAG, "error in layoutSurface"); } Loading Loading
media/java/android/media/tv/TvInputService.java +27 −9 Original line number Diff line number Diff line Loading @@ -310,7 +310,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifySessionEvent(" + eventType + ")"); if (mSessionCallback != null) { mSessionCallback.onSessionEvent(eventType, eventArgs); } } catch (RemoteException e) { Log.w(TAG, "error in sending event (event=" + eventType + ")"); } Loading @@ -329,7 +331,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyChannelRetuned"); if (mSessionCallback != null) { mSessionCallback.onChannelRetuned(channelUri); } } catch (RemoteException e) { Log.w(TAG, "error in notifyChannelRetuned"); } Loading Loading @@ -366,7 +370,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyTracksChanged"); if (mSessionCallback != null) { mSessionCallback.onTracksChanged(tracks); } } catch (RemoteException e) { Log.w(TAG, "error in notifyTracksChanged"); } Loading Loading @@ -394,7 +400,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyTrackSelected"); if (mSessionCallback != null) { mSessionCallback.onTrackSelected(type, trackId); } } catch (RemoteException e) { Log.w(TAG, "error in notifyTrackSelected"); } Loading @@ -415,7 +423,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyVideoAvailable"); if (mSessionCallback != null) { mSessionCallback.onVideoAvailable(); } } catch (RemoteException e) { Log.w(TAG, "error in notifyVideoAvailable"); } Loading Loading @@ -447,7 +457,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyVideoUnavailable"); if (mSessionCallback != null) { mSessionCallback.onVideoUnavailable(reason); } } catch (RemoteException e) { Log.w(TAG, "error in notifyVideoUnavailable"); } Loading Loading @@ -486,7 +498,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyContentAllowed"); if (mSessionCallback != null) { mSessionCallback.onContentAllowed(); } } catch (RemoteException e) { Log.w(TAG, "error in notifyContentAllowed"); } Loading Loading @@ -526,7 +540,9 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "notifyContentBlocked"); if (mSessionCallback != null) { mSessionCallback.onContentBlocked(rating.flattenToString()); } } catch (RemoteException e) { Log.w(TAG, "error in notifyContentBlocked"); } Loading Loading @@ -557,7 +573,9 @@ public abstract class TvInputService extends Service { try { if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" + right + ", b=" + bottom + ",)"); if (mSessionCallback != null) { mSessionCallback.onLayoutSurface(left, top, right, bottom); } } catch (RemoteException e) { Log.w(TAG, "error in layoutSurface"); } Loading