Searched defs:sel (Results 1 - 8 of 8) sorted by relevance

/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/
H A DUtils.h51 explicit IdentifierIterator(const V2_0::ProgramSelector& sel);
62 explicit IdentifierIterator(const V2_0::ProgramSelector& sel, size_t pos);
66 const V2_0::ProgramSelector& sel() const { return mSel.get(); } function in class:android::hardware::broadcastradio::utils::IdentifierIterator
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);
119 * @param sel The selector to check.
122 bool isSupported(const V2_0::Properties& prop, const V2_0::ProgramSelector& sel);
125 bool isValid(const V2_0::ProgramSelector& sel);
[all...]
/hardware/interfaces/broadcastradio/common/utils1x/
H A DUtils.cpp103 ProgramType getType(const ProgramSelector& sel) { argument
104 return static_cast<ProgramType>(sel.programType);
127 static bool maybeGetId(const ProgramSelector& sel, const IdentifierType type, uint64_t* val) { argument
130 if (sel.primaryId.type == itype) {
131 if (val) *val = sel.primaryId.value;
136 for (auto&& id : sel.secondaryIds) {
146 bool hasId(const ProgramSelector& sel, const IdentifierType type) { argument
147 return maybeGetId(sel, type, nullptr);
150 uint64_t getId(const ProgramSelector& sel, const IdentifierType type) { argument
153 if (maybeGetId(sel, typ
161 getId(const ProgramSelector& sel, const IdentifierType type, uint64_t defval) argument
167 ProgramSelector sel = {}; local
199 getLegacyChannel(const ProgramSelector& sel, uint32_t* channelOut, uint32_t* subChannelOut) argument
213 isDigital(const ProgramSelector& sel) argument
[all...]
/hardware/interfaces/broadcastradio/common/utils2x/
H A DUtils.cpp50 IdentifierIterator::IdentifierIterator(const V2_0::ProgramSelector& sel) argument
51 : IdentifierIterator(sel, 0) {}
53 IdentifierIterator::IdentifierIterator(const V2_0::ProgramSelector& sel, size_t pos) argument
54 : mSel(sel), mPos(pos) {}
68 if (mPos == 0) return sel().primaryId;
71 DCHECK(mPos <= sel().secondaryIds.size());
72 return sel().secondaryIds[mPos - 1];
77 if (reinterpret_cast<uintptr_t>(&sel()) != reinterpret_cast<uintptr_t>(&rhs.sel())) {
110 static int getHdSubchannel(const ProgramSelector& sel) { argument
138 maybeGetId(const ProgramSelector& sel, const IdentifierType type, uint64_t* val) argument
158 hasId(const ProgramSelector& sel, const IdentifierType type) argument
162 getId(const ProgramSelector& sel, const IdentifierType type) argument
173 getId(const ProgramSelector& sel, const IdentifierType type, uint64_t defval) argument
178 getAllIds(const ProgramSelector& sel, const IdentifierType type) argument
192 isSupported(const Properties& prop, const ProgramSelector& sel) argument
[all...]
/hardware/interfaces/broadcastradio/1.1/default/
H A DTuner.cpp157 void Tuner::tuneInternalLocked(const ProgramSelector& sel) { argument
159 if (mVirtualRadio.get().getProgram(sel, virtualProgram)) {
163 mCurrentProgram = sel;
164 mCurrentProgramInfo = makeDummyProgramInfo(sel);
282 Return<Result> Tuner::tuneByProgramSelector(const ProgramSelector& sel) { argument
283 ALOGV("%s(%s)", __func__, toString(sel).c_str());
288 auto programType = utils::getType(sel);
295 auto freq = utils::getId(sel, IdentifierType::AMFM_FREQUENCY);
300 if (!utils::hasId(sel, IdentifierType::DAB_SIDECC)) return Result::INVALID_ARGUMENTS;
302 if (!utils::hasId(sel, IdentifierTyp
[all...]
/hardware/interfaces/broadcastradio/2.0/default/
H A DTunerSession.cpp70 void TunerSession::tuneInternalLocked(const ProgramSelector& sel) { argument
71 ALOGV("%s(%s)", __func__, toString(sel).c_str());
75 if (virtualRadio().getProgram(sel, virtualProgram)) {
79 mCurrentProgram = sel;
80 programInfo = makeDummyProgramInfo(sel);
95 Return<Result> TunerSession::tune(const ProgramSelector& sel) { argument
96 ALOGV("%s(%s)", __func__, toString(sel).c_str());
100 if (!utils::isSupported(module().mProperties, sel)) {
105 if (!utils::isValid(sel)) {
113 auto task = [this, sel]() {
[all...]
/hardware/interfaces/broadcastradio/1.1/vts/functional/
H A DVtsHalBroadcastradioV1_1TargetTest.cpp365 ProgramSelector sel = {}; local
366 sel.programType = static_cast<uint32_t>(ptype);
367 sel.primaryId.type = static_cast<uint32_t>(IdentifierType::VENDOR_PRIMARY_START);
369 auto tuneResult = mTuner->tuneByProgramSelector(sel);
385 ProgramSelector sel = {}; local
386 auto tuneResult = mTuner->tuneByProgramSelector(sel);
/hardware/interfaces/broadcastradio/2.0/vts/functional/
H A DVtsHalBroadcastradioV2_0TargetTest.cpp420 auto sel = make_selector_amfm(freq); local
437 auto result = mSession->tune(sel);
440 if (!utils::isSupported(mProperties, sel)) {
476 ProgramSelector sel{id, {}};
478 auto result = mSession->tune(sel);
480 if (utils::isSupported(mProperties, sel)) {
498 ProgramSelector sel = {}; local
499 auto result = mSession->tune(sel);
/hardware/qcom/audio/legacy/libalsa-intf/
H A Dalsa_pcm.c668 struct snd_timer_select sel; local
672 memset(&sel, 0, sizeof(sel));
673 sel.id.dev_class = SNDRV_TIMER_CLASS_PCM;
674 sel.id.dev_sclass = SNDRV_TIMER_SCLASS_NONE;
675 sel.id.card = pcm->card_no;
676 sel.id.device = pcm->device_no;
678 sel.id.subdevice = 1;
680 sel.id.subdevice = 0;
683 ALOGD("sel
[all...]

Completed in 113 milliseconds