/aosp12/hardware/interfaces/broadcastradio/common/utils1x/ |
H A D | Utils.cpp | 32 using V1_1::ProgramType; 39 if (a == ProgramType::AM && b == ProgramType::AM_HD) return true; in isCompatibleProgramType() 40 if (a == ProgramType::AM_HD && b == ProgramType::AM) return true; in isCompatibleProgramType() 41 if (a == ProgramType::FM && b == ProgramType::FM_HD) return true; in isCompatibleProgramType() 42 if (a == ProgramType::FM_HD && b == ProgramType::FM) return true; in isCompatibleProgramType() 71 case ProgramType::AM: in tunesTo() 73 case ProgramType::FM: in tunesTo() 88 case ProgramType::DAB: in tunesTo() 109 case ProgramType::AM: in isAmFm() 110 case ProgramType::FM: in isAmFm() [all …]
|
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/bands/ |
H A D | ProgramType.java | 44 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); 83 protected ProgramType(@TypeId int id) { in ProgramType() method in ProgramType 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>() { 213 public ProgramType createFromParcel(Parcel in) { 228 public ProgramType[] newArray(int size) { [all …]
|
H A D | RegionConfig.java | 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()
|
H A D | ProgramType.aidl | 18 parcelable ProgramType;
|
H A D | AMFMProgramType.java | 33 abstract class AMFMProgramType extends ProgramType { 43 return (this == ProgramType.AM) ? config.getAmConfig() : config.getFmConfig(); in getBands()
|
H A D | DABProgramType.java | 31 class DABProgramType extends ProgramType {
|
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/ |
H A D | BandController.java | 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()
|
H A D | RadioActivity.java | 33 import com.android.car.radio.bands.ProgramType; 90 ProgramType programType = ProgramType.fromSelector(info.getSelector()); in onCreate() 201 public void setSupportedProgramTypes(@NonNull List<ProgramType> supported) { in setSupportedProgramTypes() 216 ProgramType currentBand = mBandController.getCurrentBand(); in updateMenuItems() 220 ProgramType programType = mBandController.switchToNext(); in updateMenuItems()
|
H A D | ManualTunerController.java | 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()
|
H A D | ManualTunerFragment.java | 29 import com.android.car.radio.bands.ProgramType; 61 mController.switchProgramType(ProgramType.fromSelector(current.getSelector())); in setUserVisibleHint()
|
H A D | DisplayController.java | 33 import com.android.car.radio.bands.ProgramType; 219 } else if (ProgramType.fromSelector(mDisplayedChannel) in setChannel() 220 != ProgramType.fromSelector(sel)) { in setChannel()
|
H A D | RadioController.java | 31 import com.android.car.radio.bands.ProgramType; 139 public void switchBand(@NonNull ProgramType pt) { in switchBand()
|
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/widget/ |
H A D | BandSelectorFlat.java | 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()
|
/aosp12/hardware/interfaces/broadcastradio/1.1/default/ |
H A D | BroadcastRadio.cpp | 38 using V1_1::ProgramType; 112 static_cast<uint32_t>(ProgramType::AM), static_cast<uint32_t>(ProgramType::FM), in getProperties_1_1() 113 static_cast<uint32_t>(ProgramType::AM_HD), static_cast<uint32_t>(ProgramType::FM_HD), in getProperties_1_1()
|
H A D | Tuner.cpp | 43 using V1_1::ProgramType; 299 } else if (programType == ProgramType::DAB) { in tuneByProgramSelector() 301 } else if (programType == ProgramType::DRMO) { in tuneByProgramSelector() 303 } else if (programType == ProgramType::SXM) { in tuneByProgramSelector()
|
/aosp12/frameworks/av/cmds/screenrecord/ |
H A D | Program.h | 34 enum ProgramType { PROGRAM_UNKNOWN=0, PROGRAM_EXTERNAL_TEXTURE, enum 49 status_t setup(ProgramType type); 82 ProgramType mProgramType;
|
H A D | Program.cpp | 71 status_t Program::setup(ProgramType type) { in setup()
|
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
H A D | RadioStorage.java | 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()
|
/aosp12/hardware/interfaces/broadcastradio/1.1/vts/functional/ |
H A D | VtsHalBroadcastradioV1_1TargetTest.cpp | 72 static constexpr ProgramType kStandardProgramTypes[] = { 73 ProgramType::AM, ProgramType::FM, ProgramType::AM_HD, ProgramType::FM_HD, 74 ProgramType::DAB, ProgramType::DRMO, ProgramType::SXM};
|
/aosp12/frameworks/base/core/java/android/hardware/radio/ |
H A D | ProgramSelector.java | 125 public @interface ProgramType {} annotation in ProgramSelector 253 private final @ProgramType int mProgramType; 271 public ProgramSelector(@ProgramType int programType, @NonNull Identifier primaryId, in ProgramSelector() 291 public @ProgramType int getProgramType() { in getProgramType() 471 @ProgramType int programType = isAm ? PROGRAM_TYPE_AM : PROGRAM_TYPE_FM; in createAmFmSelector()
|
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/service/ |
H A D | IRadioAppService.aidl | 23 import com.android.car.radio.bands.ProgramType; 85 void switchBand(in ProgramType band); in switchBand()
|
H A D | RadioAppService.java | 47 import com.android.car.radio.bands.ProgramType; 225 private void tuneToDefault(@Nullable ProgramType pt) { in tuneToDefault() 243 if (pt == null) pt = ProgramType.FM; in tuneToDefault() 384 public void switchBand(ProgramType band) {
|
H A D | RadioAppServiceWrapper.java | 36 import com.android.car.radio.bands.ProgramType; 374 public void switchBand(@NonNull ProgramType band) { in switchBand()
|
/aosp12/hardware/interfaces/broadcastradio/common/utils1x/include/broadcastradio-utils-1x/ |
H A D | Utils.h | 46 V1_1::ProgramType getType(const V1_1::ProgramSelector& sel); 47 bool isAmFm(const V1_1::ProgramType type);
|
/aosp12/hardware/interfaces/broadcastradio/1.1/ |
H A D | types.hal | 87 * A list of supported ProgramType values. 140 enum ProgramType : uint32_t { 221 VENDOR_PRIMARY_START = ProgramType:VENDOR_START, 222 VENDOR_PRIMARY_END = ProgramType:VENDOR_END, 248 * The uint32_t programType field maps to ProgramType enum. It's not straight, 270 uint32_t programType; // ProgramType
|