Lines Matching refs:selector

116 ProgramInfo makeSampleProgramInfo(const ProgramSelector& selector) {  in makeSampleProgramInfo()  argument
118 info.selector = selector; in makeSampleProgramInfo()
119 switch (info.selector.primaryId.type) { in makeSampleProgramInfo()
123 utils::getId(selector, IdentifierType::AMFM_FREQUENCY_KHZ)); in makeSampleProgramInfo()
128 utils::getAmFmFrequency(info.selector)); in makeSampleProgramInfo()
132 info.logicallyTunedTo = info.selector.primaryId; in makeSampleProgramInfo()
135 utils::getId(selector, IdentifierType::DAB_FREQUENCY_KHZ)); in makeSampleProgramInfo()
138 info.logicallyTunedTo = info.selector.primaryId; in makeSampleProgramInfo()
165 mCurrentProgram = virtualProgram.selector; in BroadcastRadio()
233 mCurrentProgram = virtualProgram.selector; in tuneInternalLocked()
244 if (programInfo.selector.primaryId.type != IdentifierType::HD_STATION_ID_EXT) { in tuneInternalLocked()
280 if (programInfo.selector.primaryId.type != IdentifierType::HD_STATION_ID_EXT) { in handleProgramInfoUpdateRadioCallback()
283 ProgramSelector sel = programInfo.selector; in handleProgramInfoUpdateRadioCallback()
363 if (utils::tunesTo(current, found->selector)) found++; in findNextLocked()
368 utils::getAmFmFrequency(found->selector) == currentChannel) || in findNextLocked()
369 (hasDabSId && utils::getDabSId(found->selector) == currentChannel)) { in findNextLocked()
398 if ((hasAmFmFrequency && utils::hasAmFmFrequency(found->selector)) || in findNextLocked()
399 (hasDabSId && utils::hasId(found->selector, IdentifierType::DAB_SID_EXT))) { in findNextLocked()
400 uint32_t nextChannel = hasAmFmFrequency ? utils::getAmFmFrequency(found->selector) in findNextLocked()
401 : utils::getDabSId(found->selector); in findNextLocked()
438 bool hasAmFmFrequency = utils::hasAmFmFrequency(it->selector); in jumpToFirstSubChannelLocked()
439 bool hasDabSId = utils::hasId(it->selector, IdentifierType::DAB_SID_EXT); in jumpToFirstSubChannelLocked()
441 uint32_t currentChannel = hasAmFmFrequency ? utils::getAmFmFrequency(it->selector) in jumpToFirstSubChannelLocked()
442 : utils::getDabSId(it->selector); in jumpToFirstSubChannelLocked()
445 if (hasAmFmFrequency && utils::hasAmFmFrequency(it->selector) && in jumpToFirstSubChannelLocked()
446 utils::getAmFmFrequency(it->selector) == currentChannel) { in jumpToFirstSubChannelLocked()
448 } else if (hasDabSId && utils::hasId(it->selector, IdentifierType::DAB_SID_EXT) && in jumpToFirstSubChannelLocked()
449 utils::getDabSId(it->selector) == currentChannel) { in jumpToFirstSubChannelLocked()
473 return isProgramInBand(program.selector, mCurrentAmFmBandRange, in seek()
501 programInfo = tuneInternalLocked(nextProgram.selector); in seek()
587 return utils::satisfies(filter, program.selector) && in startProgramListUpdatesLocked()
588 isProgramInBand(program.selector, mCurrentAmFmBandRange, in startProgramListUpdatesLocked()