aboutsummaryrefslogtreecommitdiff
path: root/tests/input/src/com/android/tv/testinput/TestInputControl.java
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2017-12-22 12:03:00 -0800
committerNick Chalko <nchalko@google.com>2017-12-22 12:07:25 -0800
commit95961816a768da387f0b5523cf4363ace2044089 (patch)
treebeac603121d41b092623adf48f6ebd0d30f59c7b /tests/input/src/com/android/tv/testinput/TestInputControl.java
parent40147c1b15f05a896aed4a9e277aca9430610134 (diff)
downloadTV-95961816a768da387f0b5523cf4363ace2044089.tar.gz
Format all java files.
Change-Id: I238348d30afadf4d4ced9ca37be7de13d70fb5d0 Bug: 69474774
Diffstat (limited to 'tests/input/src/com/android/tv/testinput/TestInputControl.java')
-rw-r--r--tests/input/src/com/android/tv/testinput/TestInputControl.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/input/src/com/android/tv/testinput/TestInputControl.java b/tests/input/src/com/android/tv/testinput/TestInputControl.java
index cd85c86e..54845b80 100644
--- a/tests/input/src/com/android/tv/testinput/TestInputControl.java
+++ b/tests/input/src/com/android/tv/testinput/TestInputControl.java
@@ -21,28 +21,26 @@ import android.net.Uri;
import android.os.RemoteException;
import android.util.Log;
import android.util.LongSparseArray;
-
import com.android.tv.testing.ChannelInfo;
import com.android.tv.testing.ChannelUtils;
import com.android.tv.testing.testinput.ChannelState;
import com.android.tv.testing.testinput.ChannelStateData;
import com.android.tv.testing.testinput.ITestInputControl;
-
import java.util.Map;
/**
* Maintains state for the {@link TestTvInputService}.
*
- * <p>Maintains the current state for every channel. A default is sent if the state is not
+ * <p>Maintains the current state for every channel. A default is sent if the state is not
* explicitly set. The state is versioned so TestTvInputService can tell if onNotifyXXX events need
* to be sent.
*
- * <p> Test update the state using @{link ITestInputControl} via {@link TestInputControlService}.
+ * <p>Test update the state using @{link ITestInputControl} via {@link TestInputControlService}.
*/
class TestInputControl extends ITestInputControl.Stub {
- private final static String TAG = "TestInputControl";
- private final static TestInputControl INSTANCE = new TestInputControl();
+ private static final String TAG = "TestInputControl";
+ private static final TestInputControl INSTANCE = new TestInputControl();
private final LongSparseArray<ChannelInfo> mId2ChannelInfoMap = new LongSparseArray<>();
private final LongSparseArray<ChannelState> mOrigId2StateMap = new LongSparseArray<>();
@@ -50,8 +48,7 @@ class TestInputControl extends ITestInputControl.Stub {
private java.lang.String mInputId;
private boolean initialized;
- private TestInputControl() {
- }
+ private TestInputControl() {}
public static TestInputControl getInstance() {
return INSTANCE;
@@ -73,8 +70,13 @@ class TestInputControl extends ITestInputControl.Stub {
for (Long channelId : channelIdToInfoMap.keySet()) {
mId2ChannelInfoMap.put(channelId, channelIdToInfoMap.get(channelId));
}
- Log.i(TAG, "Initialized channel map for " + mInputId + " with " + mId2ChannelInfoMap.size()
- + " channels");
+ Log.i(
+ TAG,
+ "Initialized channel map for "
+ + mInputId
+ + " with "
+ + mId2ChannelInfoMap.size()
+ + " channels");
}
public ChannelInfo getChannelInfo(Uri channelUri) {