From 79d2b4c810f9359640a0aaa80e610508481cd413 Mon Sep 17 00:00:00 2001 From: Dongwon Kang Date: Mon, 3 Nov 2014 16:04:12 +0900 Subject: TIF: Fix a typo and remove an unused method in TvInputService Change-Id: I2c0233678c08a7070ffe507d9671e1ab669fdfd8 --- media/java/android/media/tv/TvInputService.java | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/media/java/android/media/tv/TvInputService.java b/media/java/android/media/tv/TvInputService.java index 0ca5810f1002..93cca2f816f0 100644 --- a/media/java/android/media/tv/TvInputService.java +++ b/media/java/android/media/tv/TvInputService.java @@ -158,15 +158,6 @@ public abstract class TvInputService extends Service { }; } - /** - * Get the number of callbacks that are registered. - * @hide - */ - @VisibleForTesting - public final int getRegisteredCallbackCount() { - return mCallbacks.getRegisteredCallbackCount(); - } - /** * Returns a concrete implementation of {@link Session}. *

@@ -550,13 +541,14 @@ public abstract class TvInputService extends Service { * @param left Left position in pixels, relative to the overlay view. * @param top Top position in pixels, relative to the overlay view. * @param right Right position in pixels, relative to the overlay view. - * @param bottm Bottom position in pixels, relative to the overlay view. + * @param bottom Bottom position in pixels, relative to the overlay view. * @see #onOverlayViewSizeChanged * @hide */ @SystemApi - public void layoutSurface(final int left, final int top, final int right, final int bottm) { - if (left > right || top > bottm) { + public void layoutSurface(final int left, final int top, final int right, + final int bottom) { + if (left > right || top > bottom) { throw new IllegalArgumentException("Invalid parameter"); } executeOrPostRunnable(new Runnable() { @@ -564,8 +556,8 @@ public abstract class TvInputService extends Service { public void run() { try { if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" - + right + ", b=" + bottm + ",)"); - mSessionCallback.onLayoutSurface(left, top, right, bottm); + + right + ", b=" + bottom + ",)"); + mSessionCallback.onLayoutSurface(left, top, right, bottom); } catch (RemoteException e) { Log.w(TAG, "error in layoutSurface"); } -- cgit v1.2.3-59-g8ed1b