Home
last modified time | relevance | path

Searched refs:ChannelNumber (Results 1 – 8 of 8) sorted by relevance

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DChannelNumberTest.java18 import static com.android.tv.data.ChannelNumber.parseChannelNumber;
38 assertThat(new ChannelNumber()).isEmpty(); in newChannelNumber()
88 new ComparableTester<ChannelNumber>() in compareTo()
103 assertThat(ChannelNumber.compare(null, null)).isEqualTo(0); in compare_null_null()
108 assertThat(ChannelNumber.compare("1", "1")).isEqualTo(0); in compare_1_1()
114 assertThat(ChannelNumber.compare(null, "1")).isLessThan(0); in compare_null_1()
119 assertThat(ChannelNumber.compare("abcd", "1")).isLessThan(0); in compare_abcd_1()
124 assertThat(ChannelNumber.compare(".4", "1")).isLessThan(0); in compare_dash1_1()
129 assertThat(ChannelNumber.compare("1", null)).isGreaterThan(0); in compare_1_null()
134 assertThat(ChannelNumber.equivalent(null, null)).isTrue(); in equivalent_null_to_null()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java27 public final class ChannelNumber implements Comparable<ChannelNumber> { class
43 public ChannelNumber() { in ChannelNumber() method in ChannelNumber
56 ChannelNumber lhsNumber = parseChannelNumber(lhs); in equivalent()
57 ChannelNumber rhsNumber = parseChannelNumber(rhs); in equivalent()
83 public int compareTo(@NonNull ChannelNumber another) { in compareTo()
97 if (obj instanceof ChannelNumber) { in equals()
98 ChannelNumber channelNumber = (ChannelNumber) obj; in equals()
127 public static ChannelNumber parseChannelNumber(String number) { in parseChannelNumber()
131 ChannelNumber ret = new ChannelNumber(); in parseChannelNumber()
159 ChannelNumber lhsNumber = parseChannelNumber(lhs); in compare()
[all …]
DChannelImpl.java50 ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber());
767 result = ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); in compare()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DChannelNumberSubject.java22 import com.android.tv.data.ChannelNumber;
30 private static final Subject.Factory<ChannelNumberSubject, ChannelNumber> FACTORY =
33 public static Subject.Factory<ChannelNumberSubject, ChannelNumber> channelNumbers() { in channelNumbers()
37 public static ChannelNumberSubject assertThat(@Nullable ChannelNumber actual) { in assertThat()
41 private final ChannelNumber actual;
43 public ChannelNumberSubject(FailureMetadata failureMetadata, @Nullable ChannelNumber subject) { in ChannelNumberSubject()
DFakeEpgReader.java24 import com.android.tv.data.ChannelNumber;
93 return ChannelNumber.equivalent( in getChannels()
/packages/apps/TV/src/com/android/tv/ui/
DKeypadChannelSwitchView.java44 import com.android.tv.data.ChannelNumber;
67 private final ChannelNumber mTypedChannelNumber = new ChannelNumber();
196 if (ChannelNumber.isChannelNumberDelimiterKey(keyCode)) { in onKeyUp()
284 ChannelNumber chNumber = ChannelNumber.parseChannelNumber(channel.getDisplayNumber()); in updateView()
368 private static boolean matchChannelNumber(ChannelNumber typedChNumber, ChannelNumber chNumber) { in matchChannelNumber()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DChannelsBlockedFragment.java33 import com.android.tv.data.ChannelNumber;
138 return ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); in getItemList()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCustomizeChannelListFragment.java33 import com.android.tv.data.ChannelNumber;
219 return ChannelNumber.compare( in addItemForGroupByHdSd()