/hardware/interfaces/broadcastradio/common/utils2x/ |
D | Utils.cpp | 48 IdentifierIterator::IdentifierIterator(const V2_0::ProgramSelector& sel) in IdentifierIterator() argument 49 : IdentifierIterator(sel, 0) {} in IdentifierIterator() 51 IdentifierIterator::IdentifierIterator(const V2_0::ProgramSelector& sel, size_t pos) in IdentifierIterator() argument 52 : mSel(sel), mPos(pos) {} in IdentifierIterator() 66 if (mPos == 0) return sel().primaryId; in operator *() 69 DCHECK(mPos <= sel().secondaryIds.size()); in operator *() 70 return sel().secondaryIds[mPos - 1]; in operator *() 75 if (reinterpret_cast<uintptr_t>(&sel()) != reinterpret_cast<uintptr_t>(&rhs.sel())) { in operator ==() 108 static int getHdSubchannel(const ProgramSelector& sel) { in getHdSubchannel() argument 109 auto hdsidext = getId(sel, IdentifierType::HD_STATION_ID_EXT, 0); in getHdSubchannel() [all …]
|
/hardware/interfaces/broadcastradio/common/utils1x/ |
D | Utils.cpp | 103 ProgramType getType(const ProgramSelector& sel) { in getType() argument 104 return static_cast<ProgramType>(sel.programType); in getType() 127 static bool maybeGetId(const ProgramSelector& sel, const IdentifierType type, uint64_t* val) { in maybeGetId() argument 130 if (sel.primaryId.type == itype) { in maybeGetId() 131 if (val) *val = sel.primaryId.value; in maybeGetId() 136 for (auto&& id : sel.secondaryIds) { in maybeGetId() 146 bool hasId(const ProgramSelector& sel, const IdentifierType type) { in hasId() argument 147 return maybeGetId(sel, type, nullptr); in hasId() 150 uint64_t getId(const ProgramSelector& sel, const IdentifierType type) { in getId() argument 153 if (maybeGetId(sel, type, &val)) { in getId() [all …]
|
/hardware/interfaces/broadcastradio/common/tests/ |
D | IdentifierIterator_test.cpp | 30 V2_0::ProgramSelector sel { in TEST() local 36 auto it = V2_0::begin(sel); in TEST() 37 auto end = V2_0::end(sel); in TEST() 40 EXPECT_EQ(sel.primaryId, *it); in TEST() 42 EXPECT_EQ(sel.secondaryIds[0], *it); in TEST() 47 V2_0::ProgramSelector sel{}; in TEST() local 49 auto it = V2_0::begin(sel); in TEST() 50 auto end = V2_0::end(sel); in TEST() 67 V2_0::ProgramSelector sel{{}, {{}, {}}}; in TEST() local 69 auto it = V2_0::begin(sel); in TEST() [all …]
|
/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/ |
D | Utils.h | 51 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(); } in sel() function 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); 122 bool isSupported(const V2_0::Properties& prop, const V2_0::ProgramSelector& sel); 125 bool isValid(const V2_0::ProgramSelector& sel); 133 bool satisfies(const V2_0::ProgramFilter& filter, const V2_0::ProgramSelector& sel); [all …]
|
/hardware/interfaces/broadcastradio/common/utils1x/include/broadcastradio-utils-1x/ |
D | Utils.h | 46 V1_1::ProgramType getType(const V1_1::ProgramSelector& sel); 52 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); 70 bool getLegacyChannel(const V1_1::ProgramSelector& sel, uint32_t* channelOut, 73 bool isDigital(const V1_1::ProgramSelector& sel);
|
/hardware/interfaces/broadcastradio/2.0/default/ |
D | TunerSession.cpp | 67 void TunerSession::tuneInternalLocked(const ProgramSelector& sel) { in tuneInternalLocked() argument 68 LOG(VERBOSE) << "tune (internal) to " << toString(sel); in tuneInternalLocked() 72 if (virtualRadio().getProgram(sel, virtualProgram)) { in tuneInternalLocked() 76 mCurrentProgram = sel; in tuneInternalLocked() 77 programInfo = makeDummyProgramInfo(sel); in tuneInternalLocked() 92 Return<Result> TunerSession::tune(const ProgramSelector& sel) { in tune() argument 93 LOG(DEBUG) << "tune to " << toString(sel); in tune() 98 if (!utils::isSupported(module().mProperties, sel)) { in tune() 99 LOG(WARNING) << "selector not supported: " << toString(sel); in tune() 103 if (!utils::isValid(sel)) { in tune() [all …]
|
D | TunerSession.h | 67 void tuneInternalLocked(const ProgramSelector& sel);
|
/hardware/interfaces/broadcastradio/1.1/default/ |
D | Tuner.cpp | 157 void Tuner::tuneInternalLocked(const ProgramSelector& sel) { in tuneInternalLocked() argument 159 if (mVirtualRadio.get().getProgram(sel, virtualProgram)) { in tuneInternalLocked() 163 mCurrentProgram = sel; in tuneInternalLocked() 164 mCurrentProgramInfo = makeDummyProgramInfo(sel); in tuneInternalLocked() 282 Return<Result> Tuner::tuneByProgramSelector(const ProgramSelector& sel) { in tuneByProgramSelector() argument 283 ALOGV("%s(%s)", __func__, toString(sel).c_str()); in tuneByProgramSelector() 288 auto programType = utils::getType(sel); in tuneByProgramSelector() 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() [all …]
|
D | Tuner.h | 76 void tuneInternalLocked(const V1_1::ProgramSelector& sel);
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_pcm.c | 668 struct snd_timer_select sel; in enable_timer() local 672 memset(&sel, 0, sizeof(sel)); in enable_timer() 673 sel.id.dev_class = SNDRV_TIMER_CLASS_PCM; in enable_timer() 674 sel.id.dev_sclass = SNDRV_TIMER_SCLASS_NONE; in enable_timer() 675 sel.id.card = pcm->card_no; in enable_timer() 676 sel.id.device = pcm->device_no; in enable_timer() 678 sel.id.subdevice = 1; in enable_timer() 680 sel.id.subdevice = 0; in enable_timer() 683 ALOGD("sel.id.dev_class= %d\n", sel.id.dev_class); in enable_timer() 684 ALOGD("sel.id.dev_sclass = %d\n", sel.id.dev_sclass); in enable_timer() [all …]
|
/hardware/interfaces/broadcastradio/2.0/vts/functional/ |
D | VtsHalBroadcastradioV2_0TargetTest.cpp | 419 auto sel = make_selector_amfm(freq); in TEST_P() local 437 auto result = mSession->tune(sel); in TEST_P() 440 if (!utils::isSupported(mProperties, sel)) { in TEST_P() 476 ProgramSelector sel{id, {}}; in TEST_P() local 478 auto result = mSession->tune(sel); in TEST_P() 480 if (utils::isSupported(mProperties, sel)) { in TEST_P() 498 ProgramSelector sel = {}; in TEST_P() local 499 auto result = mSession->tune(sel); in TEST_P()
|
/hardware/interfaces/broadcastradio/1.1/vts/functional/ |
D | VtsHalBroadcastradioV1_1TargetTest.cpp | 365 ProgramSelector sel = {}; in TEST_P() local 366 sel.programType = static_cast<uint32_t>(ptype); in TEST_P() 367 sel.primaryId.type = static_cast<uint32_t>(IdentifierType::VENDOR_PRIMARY_START); in TEST_P() 369 auto tuneResult = mTuner->tuneByProgramSelector(sel); in TEST_P() 385 ProgramSelector sel = {}; in TEST_P() local 386 auto tuneResult = mTuner->tuneByProgramSelector(sel); in TEST_P()
|
/hardware/qcom/msm8998/json-c/ |
D | linkhash.c | 102 (defined(sparc) || defined(POWERPC) || defined(mc68000) || defined(sel))
|