Home
last modified time | relevance | path

Searched refs:IdentifierType (Results 1 – 21 of 21) sorted by relevance

/aosp12/hardware/interfaces/broadcastradio/common/utils2x/
H A DUtils.cpp27 using V2_0::IdentifierType;
40 IdentifierType getType(uint32_t typeAsInt) { in getType()
119 case IdentifierType::RDS_PI: in tunesTo()
124 case IdentifierType::DAB_SID_EXT: in tunesTo()
211 case IdentifierType::INVALID: in isValid()
222 case IdentifierType::RDS_PI: in isValid()
255 case IdentifierType::DAB_ENSEMBLE: in isValid()
259 case IdentifierType::DAB_SCID: in isValid()
271 case IdentifierType::SXM_CHANNEL: in isValid()
274 case IdentifierType::VENDOR_START: in isValid()
[all …]
/aosp12/hardware/interfaces/broadcastradio/2.0/default/
H A DVirtualProgram.cpp40 auto isDigital = (pType != IdentifierType::AMFM_FREQUENCY && pType != IdentifierType::RDS_PI);
42 auto selectId = [&info](IdentifierType type) { in __anon4ff7c52f0102()
47 case IdentifierType::AMFM_FREQUENCY:
49 selectId(IdentifierType::AMFM_FREQUENCY);
51 case IdentifierType::RDS_PI:
52 info.logicallyTunedTo = selectId(IdentifierType::RDS_PI);
55 case IdentifierType::HD_STATION_ID_EXT:
59 case IdentifierType::DAB_SID_EXT:
60 info.logicallyTunedTo = selectId(IdentifierType::DAB_SID_EXT);
63 case IdentifierType::DRMO_SERVICE_ID:
[all …]
H A DTunerSession.cpp62 IdentifierType::AMFM_FREQUENCY, utils::getId(selector, IdentifierType::AMFM_FREQUENCY)); in makeDummyProgramInfo()
181 if (!utils::hasId(mCurrentProgram, IdentifierType::AMFM_FREQUENCY)) { in step()
186 auto stepTo = utils::getId(mCurrentProgram, IdentifierType::AMFM_FREQUENCY); in step()
218 if (utils::getType(mCurrentProgram.primaryId) != IdentifierType::INVALID) { in cancelLocked()
304 if (!utils::hasId(mCurrentProgram, IdentifierType::AMFM_FREQUENCY)) return {}; in getAmFmRangeLocked()
306 auto freq = utils::getId(mCurrentProgram, IdentifierType::AMFM_FREQUENCY); in getAmFmRangeLocked()
H A DBroadcastRadio.cpp49 static_cast<uint32_t>(IdentifierType::AMFM_FREQUENCY), in initProperties()
50 static_cast<uint32_t>(IdentifierType::RDS_PI), in initProperties()
51 static_cast<uint32_t>(IdentifierType::HD_STATION_ID_EXT), in initProperties()
52 static_cast<uint32_t>(IdentifierType::DAB_SID_EXT), in initProperties()
/aosp12/hardware/interfaces/broadcastradio/common/utils1x/
H A DUtils.cpp29 using V1_1::IdentifierType;
47 const IdentifierType type) { in bothHaveId()
52 const IdentifierType type) { in anyHaveId()
57 const IdentifierType type) { in haveEqualIds()
78 if (anyHaveId(a, b, IdentifierType::HD_SUBCHANNEL)) { in tunesTo()
80 auto aCh = getId(a, IdentifierType::HD_SUBCHANNEL, 0); in tunesTo()
81 auto bCh = getId(b, IdentifierType::HD_SUBCHANNEL, 0); in tunesTo()
89 return haveEqualIds(a, b, IdentifierType::DAB_SIDECC); in tunesTo()
93 if (anyHaveId(a, b, IdentifierType::SXM_SERVICE_ID)) { in tunesTo()
96 return haveEqualIds(a, b, IdentifierType::SXM_CHANNEL); in tunesTo()
[all …]
/aosp12/hardware/interfaces/broadcastradio/2.0/vts/functional/
H A DVtsHalBroadcastradioV2_0TargetTest.cpp148 logically == IdentifierType::AMFM_FREQUENCY || logically == IdentifierType::RDS_PI || in onCurrentProgramInfoChanged()
150 logically == IdentifierType::DAB_SID_EXT || logically == IdentifierType::DRMO_SERVICE_ID || in onCurrentProgramInfoChanged()
151 logically == IdentifierType::SXM_SERVICE_ID || in onCurrentProgramInfoChanged()
152 (logically >= IdentifierType::VENDOR_START && logically <= IdentifierType::VENDOR_END) || in onCurrentProgramInfoChanged()
153 logically > IdentifierType::SXM_CHANNEL); in onCurrentProgramInfoChanged()
158 physically == IdentifierType::AMFM_FREQUENCY || in onCurrentProgramInfoChanged()
159 physically == IdentifierType::DAB_ENSEMBLE || in onCurrentProgramInfoChanged()
160 physically == IdentifierType::DRMO_FREQUENCY || physically == IdentifierType::SXM_CHANNEL || in onCurrentProgramInfoChanged()
161 (physically >= IdentifierType::VENDOR_START && physically <= IdentifierType::VENDOR_END) || in onCurrentProgramInfoChanged()
162 physically > IdentifierType::SXM_CHANNEL); in onCurrentProgramInfoChanged()
[all …]
/aosp12/hardware/interfaces/broadcastradio/common/tests/
H A DIdentifierIterator_test.cpp25 using V2_0::IdentifierType;
31 utils::make_identifier(IdentifierType::RDS_PI, 0xBEEF), in TEST()
32 {utils::make_identifier(IdentifierType::AMFM_FREQUENCY, 100100)} in TEST()
90 utils::make_identifier(IdentifierType::RDS_PI, rds_pi1), in TEST()
92 utils::make_identifier(IdentifierType::AMFM_FREQUENCY, freq1), in TEST()
93 utils::make_identifier(IdentifierType::RDS_PI, rds_pi2), in TEST()
94 utils::make_identifier(IdentifierType::AMFM_FREQUENCY, freq2), in TEST()
99 auto typeEquals = [](const V2_0::ProgramIdentifier& id, V2_0::IdentifierType type) { in TEST()
102 auto isRdsPi = std::bind(typeEquals, _1, IdentifierType::RDS_PI); in TEST()
103 auto isFreq = std::bind(typeEquals, _1, IdentifierType::AMFM_FREQUENCY); in TEST()
/aosp12/hardware/interfaces/broadcastradio/1.1/vts/functional/
H A DVtsHalBroadcastradioV1_1TargetTest.cpp516 case IdentifierType::AMFM_FREQUENCY: in verifyIdentifier()
517 case IdentifierType::DAB_FREQUENCY: in verifyIdentifier()
518 case IdentifierType::DRMO_FREQUENCY: in verifyIdentifier()
522 case IdentifierType::RDS_PI: in verifyIdentifier()
538 case IdentifierType::HD_SUBCHANNEL: in verifyIdentifier()
541 case IdentifierType::DAB_SIDECC: { in verifyIdentifier()
550 case IdentifierType::DAB_ENSEMBLE: in verifyIdentifier()
554 case IdentifierType::DAB_SCID: in verifyIdentifier()
558 case IdentifierType::DRMO_SERVICE_ID: in verifyIdentifier()
566 case IdentifierType::SXM_SERVICE_ID: in verifyIdentifier()
[all …]
/aosp12/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/
H A DUtils.h39 V2_0::IdentifierType getType(uint32_t typeAsInt);
40 V2_0::IdentifierType getType(const V2_0::ProgramIdentifier& id);
94 bool hasId(const V2_0::ProgramSelector& sel, const V2_0::IdentifierType type);
101 uint64_t getId(const V2_0::ProgramSelector& sel, const V2_0::IdentifierType type);
108 uint64_t getId(const V2_0::ProgramSelector& sel, const V2_0::IdentifierType type, uint64_t defval);
113 std::vector<uint64_t> getAllIds(const V2_0::ProgramSelector& sel, const V2_0::IdentifierType type);
127 V2_0::ProgramIdentifier make_identifier(V2_0::IdentifierType type, uint64_t value);
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/storage/
H A DIdentifierEntity.java20 import android.hardware.radio.ProgramSelector.IdentifierType;
28 @IdentifierType
33 IdentifierEntity(@IdentifierType int type, long value) { in IdentifierEntity()
/aosp12/hardware/interfaces/broadcastradio/1.1/default/
H A DBroadcastRadio.cpp36 using V1_1::IdentifierType;
116 static_cast<uint32_t>(IdentifierType::AMFM_FREQUENCY), in getProperties_1_1()
117 static_cast<uint32_t>(IdentifierType::RDS_PI), in getProperties_1_1()
118 static_cast<uint32_t>(IdentifierType::HD_STATION_ID_EXT), in getProperties_1_1()
119 static_cast<uint32_t>(IdentifierType::HD_SUBCHANNEL), in getProperties_1_1()
H A DTuner.cpp38 using V1_1::IdentifierType;
254 auto current = utils::getId(mCurrentProgram, IdentifierType::AMFM_FREQUENCY, 0); in step()
295 auto freq = utils::getId(sel, IdentifierType::AMFM_FREQUENCY); in tuneByProgramSelector()
300 if (!utils::hasId(sel, IdentifierType::DAB_SIDECC)) return Result::INVALID_ARGUMENTS; in tuneByProgramSelector()
302 if (!utils::hasId(sel, IdentifierType::DRMO_SERVICE_ID)) return Result::INVALID_ARGUMENTS; in tuneByProgramSelector()
304 if (!utils::hasId(sel, IdentifierType::SXM_SERVICE_ID)) return Result::INVALID_ARGUMENTS; in tuneByProgramSelector()
H A DVirtualProgram.cpp33 using V1_1::IdentifierType;
/aosp12/hardware/interfaces/broadcastradio/common/utils1x/include/broadcastradio-utils-1x/
H A DUtils.h52 bool hasId(const V1_1::ProgramSelector& sel, const V1_1::IdentifierType type);
59 uint64_t getId(const V1_1::ProgramSelector& sel, const V1_1::IdentifierType type);
66 uint64_t getId(const V1_1::ProgramSelector& sel, const V1_1::IdentifierType type, uint64_t defval);
/aosp12/frameworks/base/core/java/android/hardware/radio/
H A DProgramSelector.java251 public @interface IdentifierType {} annotation in ProgramSelector
325 public long getFirstId(@IdentifierType int type) { in getFirstId()
342 public @NonNull Identifier[] getAllIds(@IdentifierType int type) { in getAllIds()
556 private final @IdentifierType int mType;
559 public Identifier(@IdentifierType int type, long value) { in Identifier()
573 public @IdentifierType int getType() { in getType()
H A DRadioManager.java229 @ProgramSelector.IdentifierType int[] supportedIdentifierTypes, in ModuleProperties()
388 public boolean isProgramIdentifierSupported(@ProgramSelector.IdentifierType int type) { in isProgramIdentifierSupported()
/aosp12/hardware/interfaces/broadcastradio/1.1/
H A Dtypes.hal98 * A list of supported IdentifierType values.
121 * Used as a value for DRMO_MODULATION IdentifierType.
169 enum IdentifierType : uint32_t {
228 * The uint32_t type field maps to IdentifierType enum. It's not straight,
233 * IdentifierType enum.
236 uint32_t type; // IdentifierType
/aosp12/hardware/interfaces/broadcastradio/2.0/
H A Dtypes.hal165 * (see IdentifierType::AMFM_FREQUENCY).
264 * A list of supported IdentifierType values.
295 * IdentifierType::INVALID.
312 * initialized to IdentifierType::INVALID.
337 * initialized to IdentifierType::INVALID.
449 enum IdentifierType : uint32_t {
567 * Maps to IdentifierType enum. The enum may be extended in future versions
575 * for IdentifierType enum.
/aosp12/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DConvert.java25 import android.hardware.broadcastradio.V2_0.IdentifierType;
115 @ProgramSelector.IdentifierType int idType) { in identifierTypeToProgramType()
261 if (id.type == IdentifierType.INVALID) return null; in programIdentifierFromHal()
/aosp12/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
H A DProgramSelectorExt.java228 @ProgramSelector.IdentifierType int type) { in hasId()
/aosp12/frameworks/base/core/api/
H A Dsystem-current.txt4066 …ProgramSelector.Identifier[] getAllIds(@android.hardware.radio.ProgramSelector.IdentifierType int);
4067 method public long getFirstId(@android.hardware.radio.ProgramSelector.IdentifierType int);
4108 …ctor public ProgramSelector.Identifier(@android.hardware.radio.ProgramSelector.IdentifierType int,…
4110 method @android.hardware.radio.ProgramSelector.IdentifierType public int getType();
4117 …a.lang.annotation.RetentionPolicy.SOURCE) public static @interface ProgramSelector.IdentifierType {
4251 …c boolean isProgramIdentifierSupported(@android.hardware.radio.ProgramSelector.IdentifierType int);