@Test public void onScannedChannel() { fragment.onScannedChannel("foo", "12.3"); Assert.assertEquals( "Channel list count", 1, guidanceStylist.getChannelAdapter().getCount()); Assert.assertEquals( Pair.create("foo", "12.3"), guidanceStylist.getChannelAdapter().getItem(0)); }
@Override public void onScannedChannel(CharSequence displayName, CharSequence displayNumber) { ChannelAdapter adapter = mChannelSetupStylist.getChannelAdapter(); if (adapter != null) { adapter.add(Pair.create(displayName.toString(), displayNumber.toString())); } }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScannedChannel(CharSequence displayName, CharSequence displayNumber) { ChannelAdapter adapter = mChannelSetupStylist.getChannelAdapter(); if (adapter != null) { adapter.add(Pair.create(displayName.toString(), displayNumber.toString())); } } }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScannedChannel(CharSequence displayName, CharSequence displayNumber) { ChannelAdapter adapter = mChannelSetupStylist.getChannelAdapter(); if (adapter != null) { adapter.add(Pair.create(displayName.toString(), displayNumber.toString())); } }  }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScannedChannel(CharSequence displayName, CharSequence displayNumber) { ChannelAdapter adapter = mChannelSetupStylist.getChannelAdapter(); if (adapter != null) { adapter.add(Pair.create(displayName.toString(), displayNumber.toString())); } }  @Override void onCreate(Bundle savedInstanceState); @Override ChannelSetupStylist onCreateGuidanceStylist(); @Override Guidance onCreateGuidance(Bundle savedInstanceState); @Override void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState); @Override ChannelSetupStylist getGuidanceStylist(); @Override void onStart(); abstract Class<J> getEpgSyncJobServiceClass(); @Override void onGuidedActionClicked(GuidedAction action); @Override void onScanStepCompleted(int completedStep, int totalSteps); @Override void onScannedChannel(CharSequence displayName, CharSequence displayNumber); @Override void onScanFinished(); long getFullSyncWindowSec(); long getFullSyncFrequencyMillis(); @Override void onScanError(int errorCode); }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScannedChannel(CharSequence displayName, CharSequence displayNumber) { ChannelAdapter adapter = mChannelSetupStylist.getChannelAdapter(); if (adapter != null) { adapter.add(Pair.create(displayName.toString(), displayNumber.toString())); } }  @Override void onCreate(Bundle savedInstanceState); @Override ChannelSetupStylist onCreateGuidanceStylist(); @Override Guidance onCreateGuidance(Bundle savedInstanceState); @Override void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState); @Override ChannelSetupStylist getGuidanceStylist(); @Override void onStart(); abstract Class<J> getEpgSyncJobServiceClass(); @Override void onGuidedActionClicked(GuidedAction action); @Override void onScanStepCompleted(int completedStep, int totalSteps); @Override void onScannedChannel(CharSequence displayName, CharSequence displayNumber); @Override void onScanFinished(); long getFullSyncWindowSec(); long getFullSyncFrequencyMillis(); @Override void onScanError(int errorCode);  }