Searched refs:channel1 (Results 1 – 3 of 3) sorted by relevance
/packages/apps/TV/tests/robotests/src/com/android/tv/data/api/ |
D | ProgramTest.java | 46 private final Program channel1 = createProgramWithChannelId(1); field in ProgramTest 51 assertThat(Program.sameChannel(channel1, null)).isFalse(); in sameChannel_nullAlwaysFalse() 52 assertThat(Program.sameChannel(null, channel1)).isFalse(); in sameChannel_nullAlwaysFalse() 57 assertThat(Program.sameChannel(channel1, channel1)).isTrue(); in sameChannel_true() 58 assertThat(Program.sameChannel(channel1, createProgramWithChannelId(1))).isTrue(); in sameChannel_true() 63 assertThat(Program.sameChannel(channel1, createProgramWithChannelId(2))).isFalse(); in sameChannel_false()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | ScanScheduleUtil.java | 37 public static boolean channelEquals(@Nullable WifiNative.ChannelSettings channel1, in channelEquals() argument 39 if (channel1 == null || channel2 == null) return false; in channelEquals() 40 if (channel1 == channel2) return true; in channelEquals() 42 if (channel1.frequency != channel2.frequency) return false; in channelEquals() 43 if (channel1.dwell_time_ms != channel2.dwell_time_ms) return false; in channelEquals() 44 return channel1.passive == channel2.passive; in channelEquals()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelDataManagerTest.java | 229 Channel channel1 = channelList.get(0); in testBrowsable() local 230 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable() 233 mChannelDataManager.updateBrowsable(channel1.getId(), false, false); in testBrowsable() 235 assertThat(mChannelDataManager.getBrowsableChannelList()).doesNotContain(channel1); in testBrowsable() 236 MoreAsserts.assertContentsInAnyOrder(channelListener.updatedChannels, channel1); in testBrowsable() 246 assertThat(browsableChannelList).doesNotContain(channel1); in testBrowsable() 261 Channel channel1 = channels.get(0); in testBrowsable_skipNotification() local 263 mChannelDataManager.addChannelListener(channel1.getId(), channelListener); in testBrowsable_skipNotification() 267 mChannelDataManager.updateBrowsable(channel1.getId(), false, true); in testBrowsable_skipNotification() 269 mChannelDataManager.updateBrowsable(channel1.getId(), true, true); in testBrowsable_skipNotification() [all …]
|