Home
last modified time | relevance | path

Searched refs:parseChannelNumber (Results 1 – 7 of 7) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DChannelNumberTest.java18 import static com.android.tv.data.ChannelNumber.parseChannelNumber;
43 assertThat(parseChannelNumber("")).isNull(); in parseChannelNumber_empty()
48 assertThat(parseChannelNumber("-")).isNull(); in parseChannelNumber_dash()
53 assertThat(parseChannelNumber("abcd12")).isNull(); in parseChannelNumber_abcd12()
58 assertThat(parseChannelNumber("12abcd")).isNull(); in parseChannelNumber_12abcd()
63 assertThat(parseChannelNumber("-12")).isNull(); in parseChannelNumber_dash12()
68 assertThat(parseChannelNumber("1")).displaysAs(1); in parseChannelNumber_1()
73 assertThat(parseChannelNumber("1234-4321")).displaysAs(1234, 4321); in parseChannelNumber_1234dash4321()
78 assertThat(parseChannelNumber("3-4")).displaysAs(3, 4); in parseChannelNumber_3dash4()
83 assertThat(parseChannelNumber("5-6")).displaysAs(5, 6); in parseChannelNumber_5dash6()
[all …]
/packages/apps/TV/partner_support/tests/robotests/javatests/com/google/android/tv/partner/support/
DTunerSetupUtilsTest.java66 assertThat(TunerSetupUtils.parseChannelNumber("11")).containsExactly("11"); in parseChannelNumber_majorNumberOnly()
71 assertThat(TunerSetupUtils.parseChannelNumber("2-11")).containsExactly("2", "11"); in parseChannelNumber_majorAndMinorNumbers()
76 assertThat(TunerSetupUtils.parseChannelNumber(" 2 - 11 ")).containsExactly("2", "11"); in parseChannelNumber_containsExtraSpaces()
81 assertThat(TunerSetupUtils.parseChannelNumber("2-11-1")).isEmpty(); in parseChannelNumber_tooLong()
86 assertThat(TunerSetupUtils.parseChannelNumber(" ")).isEmpty(); in parseChannelNumber_empty()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java56 ChannelNumber lhsNumber = parseChannelNumber(lhs); in equivalent()
57 ChannelNumber rhsNumber = parseChannelNumber(rhs); in equivalent()
127 public static ChannelNumber parseChannelNumber(String number) { in parseChannelNumber() method in ChannelNumber
159 ChannelNumber lhsNumber = parseChannelNumber(lhs); in compare()
160 ChannelNumber rhsNumber = parseChannelNumber(rhs); in compare()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DTunerSetupUtils.java79 static List<String> parseChannelNumber(String channelNumber) { in parseChannelNumber() method in TunerSetupUtils
101 numbers.add(parseChannelNumber(channelNumber)); in parseChannelNumbers()
/packages/apps/TV/partner_support/samples/src/com/example/partnersupportsampletvinput/
DLineupSelectionFragment.java202 List<String> parsedNumbers = parseChannelNumber(lineupChannel); in getMatchCount()
207 if (matchChannelNumber(parsedNumbers, parseChannelNumber(channel))) { in getMatchCount()
251 private static List<String> parseChannelNumber(String channelNumber) { in parseChannelNumber() method in LineupSelectionFragment
/packages/apps/SecureElement/src/com/android/se/internal/
DUtil.java176 public static int parseChannelNumber(byte cla) { in parseChannelNumber() method in Util
/packages/apps/TV/src/com/android/tv/ui/
DKeypadChannelSwitchView.java299 ChannelNumber chNumber = ChannelNumber.parseChannelNumber(channel.getDisplayNumber()); in updateView()