Searched refs:ChannelNumber (Results 1 – 8 of 8) sorted by relevance
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ChannelNumberTest.java | 18 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/ |
D | ChannelNumber.java | 27 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 …]
|
D | ChannelImpl.java | 50 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/ |
D | ChannelNumberSubject.java | 22 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()
|
D | FakeEpgReader.java | 24 import com.android.tv.data.ChannelNumber; 93 return ChannelNumber.equivalent( in getChannels()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | KeypadChannelSwitchView.java | 44 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/ |
D | ChannelsBlockedFragment.java | 33 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/ |
D | CustomizeChannelListFragment.java | 33 import com.android.tv.data.ChannelNumber; 219 return ChannelNumber.compare( in addItemForGroupByHdSd()
|