Searched refs:ProgramType (Results 1 – 17 of 17) sorted by relevance
44 public abstract class ProgramType implements Parcelable { class68 public static final ProgramType AM = new AMProgramType(ID_AM);71 public static final ProgramType FM = new FMProgramType(ID_FM);74 public static final ProgramType DAB = new DABProgramType(ID_DAB);83 protected ProgramType(@TypeId int id) { in ProgramType() method in ProgramType121 public static @Nullable ProgramType fromSelector(@Nullable ProgramSelector sel) { in fromSelector()196 if (!(obj instanceof ProgramType)) return false; in equals()197 ProgramType other = (ProgramType) obj; in equals()211 public static final Parcelable.Creator<ProgramType> CREATOR =212 new Parcelable.Creator<ProgramType>() {[all …]
42 private final List<ProgramType> mSupported;78 private List<ProgramType> createSupportedProgramTypes() { in createSupportedProgramTypes()79 List<ProgramType> supported = new ArrayList<>(); in createSupportedProgramTypes()80 if (!mAmConfig.isEmpty()) supported.add(ProgramType.AM); in createSupportedProgramTypes()81 if (!mFmConfig.isEmpty()) supported.add(ProgramType.FM); in createSupportedProgramTypes()86 public List<ProgramType> getSupportedProgramTypes() { in getSupportedProgramTypes()
33 abstract class AMFMProgramType extends ProgramType {43 return (this == ProgramType.AM) ? config.getAmConfig() : config.getFmConfig(); in getBands()
18 parcelable ProgramType;
31 class DABProgramType extends ProgramType {
22 import com.android.car.radio.bands.ProgramType;34 @NonNull private List<ProgramType> mSupportedBands = new ArrayList<>();35 @Nullable private ProgramType mCurrentBand;40 public void setSupportedProgramTypes(@NonNull List<ProgramType> supported) { in setSupportedProgramTypes()51 public ProgramType switchToNext() { in switchToNext()67 public void setType(@NonNull ProgramType programType) { in setType()76 public ProgramType getCurrentBand() { in getCurrentBand()
36 import com.android.car.radio.bands.ProgramType;89 ProgramType programType = ProgramType.fromSelector(info.getSelector()); in onCreate()182 public void setSupportedProgramTypes(@NonNull List<ProgramType> supported) { in setSupportedProgramTypes()197 ProgramType currentBand = mBandController.getCurrentBand(); in updateMenuItems()201 ProgramType programType = mBandController.switchToNext(); in updateMenuItems()
25 import com.android.car.radio.bands.ProgramType;41 private ProgramType mProgramType;79 switchProgramType(ProgramType.FM); in ManualTunerController()120 public void switchProgramType(@NonNull ProgramType pt) { in switchProgramType()
29 import com.android.car.radio.bands.ProgramType;61 mController.switchProgramType(ProgramType.fromSelector(current.getSelector())); in setUserVisibleHint()
33 import com.android.car.radio.bands.ProgramType;219 } else if (ProgramType.fromSelector(mDisplayedChannel) in setChannel()220 != ProgramType.fromSelector(sel)) { in setChannel()
31 import com.android.car.radio.bands.ProgramType;139 public void switchBand(@NonNull ProgramType pt) { in switchBand()
29 import com.android.car.radio.bands.ProgramType;52 void onSwitchTo(@NonNull ProgramType pt); in onSwitchTo()63 private void switchTo(@NonNull ProgramType ptype) { in switchTo()81 public void setSupportedProgramTypes(@NonNull List<ProgramType> supported) { in setSupportedProgramTypes()87 for (ProgramType pt : supported) { in setSupportedProgramTypes()103 public void setType(@NonNull ProgramType ptype) { in setType()
32 import com.android.car.radio.bands.ProgramType;154 ProgramType pt = ProgramType.fromSelector(sel); in setRecentlySelected()186 public @Nullable ProgramSelector getRecentlySelected(@Nullable ProgramType pt) { in getRecentlySelected()
23 import com.android.car.radio.bands.ProgramType;85 void switchBand(in ProgramType band); in switchBand()
45 import com.android.car.radio.bands.ProgramType;216 private void tuneToDefault(@Nullable ProgramType pt) { in tuneToDefault()234 if (pt == null) pt = ProgramType.FM; in tuneToDefault()374 public void switchBand(ProgramType band) {
36 import com.android.car.radio.bands.ProgramType;374 public void switchBand(@NonNull ProgramType band) { in switchBand()
110 private static @ProgramSelector.ProgramType int identifierToProgramType( in identifierToProgramType()