Home
last modified time | relevance | path

Searched refs:ProgramType (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Car/Radio/src/com/android/car/radio/bands/
DProgramType.java44 public abstract class ProgramType implements Parcelable { class
68 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 ProgramType
121 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 …]
DRegionConfig.java42 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()
DAMFMProgramType.java33 abstract class AMFMProgramType extends ProgramType {
43 return (this == ProgramType.AM) ? config.getAmConfig() : config.getFmConfig(); in getBands()
DProgramType.aidl18 parcelable ProgramType;
DDABProgramType.java31 class DABProgramType extends ProgramType {
/packages/apps/Car/Radio/src/com/android/car/radio/
DBandController.java22 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()
DRadioActivity.java36 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()
DManualTunerController.java25 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()
DManualTunerFragment.java29 import com.android.car.radio.bands.ProgramType;
61 mController.switchProgramType(ProgramType.fromSelector(current.getSelector())); in setUserVisibleHint()
DDisplayController.java33 import com.android.car.radio.bands.ProgramType;
219 } else if (ProgramType.fromSelector(mDisplayedChannel) in setChannel()
220 != ProgramType.fromSelector(sel)) { in setChannel()
DRadioController.java31 import com.android.car.radio.bands.ProgramType;
139 public void switchBand(@NonNull ProgramType pt) { in switchBand()
/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DBandSelectorFlat.java29 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()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioStorage.java32 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()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DIRadioAppService.aidl23 import com.android.car.radio.bands.ProgramType;
85 void switchBand(in ProgramType band); in switchBand()
DRadioAppService.java45 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) {
DRadioAppServiceWrapper.java36 import com.android.car.radio.bands.ProgramType;
374 public void switchBand(@NonNull ProgramType band) { in switchBand()
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramSelectorExt.java110 private static @ProgramSelector.ProgramType int identifierToProgramType( in identifierToProgramType()