Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 52) sorted by relevance

123

/hardware/interfaces/broadcastradio/aidl/default/
DVirtualRadio.cpp43 bool VirtualRadio::getProgram(const ProgramSelector& selector, VirtualProgram* programOut) const { in getProgram() argument
45 if (!utils::tunesTo(selector, it->selector)) { in getProgram()
49 if (utils::hasAmFmFrequency(it->selector)) { in getProgram()
50 uint32_t channelFreq = utils::getAmFmFrequency(it->selector); in getProgram()
52 while (it != mPrograms.end() && utils::hasAmFmFrequency(it->selector) && in getProgram()
53 utils::getAmFmFrequency(it->selector) == channelFreq) { in getProgram()
54 if (it->selector == selector) { in getProgram()
70 IdentifierType type = program.selector.primaryId.type; in getSupportedIdentifierTypes()
DVirtualProgram.cpp31 info.selector = selector; in operator ProgramInfo()
33 IdentifierType programType = selector.primaryId.type; in operator ProgramInfo()
38 return utils::makeIdentifier(type, utils::getId(info.selector, type)); in operator ProgramInfo()
52 if (utils::hasId(info.selector, IdentifierType::AMFM_FREQUENCY_KHZ)) { in operator ProgramInfo()
56 IdentifierType::AMFM_FREQUENCY_KHZ, utils::getHdFrequency(info.selector)); in operator ProgramInfo()
96 return utils::ProgramSelectorComparator()(lhs.selector, rhs.selector); in operator <()
DBroadcastRadio.cpp116 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()
[all …]
DVirtualProgram.h34 ProgramSelector selector; member
DVirtualRadio.h38 bool getProgram(const ProgramSelector& selector, VirtualProgram* program) const;
/hardware/interfaces/broadcastradio/2.0/default/
DVirtualProgram.cpp37 info.selector = selector; in operator ProgramInfo()
39 auto pType = getType(selector.primaryId); in operator ProgramInfo()
43 return utils::make_identifier(type, utils::getId(info.selector, type)); in operator ProgramInfo()
96 auto& l = lhs.selector; in operator <()
97 auto& r = rhs.selector; in operator <()
DVirtualRadio.cpp67 bool VirtualRadio::getProgram(const ProgramSelector& selector, VirtualProgram& programOut) const { in getProgram() argument
70 if (utils::tunesTo(selector, program.selector)) { in getProgram()
DTunerSession.cpp58 static ProgramInfo makeDummyProgramInfo(const ProgramSelector& selector) { in makeDummyProgramInfo() argument
60 info.selector = selector; in makeDummyProgramInfo()
62 IdentifierType::AMFM_FREQUENCY, utils::getId(selector, IdentifierType::AMFM_FREQUENCY)); in makeDummyProgramInfo()
73 mCurrentProgram = virtualProgram.selector; in tuneInternalLocked()
149 if (tunesTo(current, found->selector)) found++; in scan()
160 auto tuneTo = found->selector; in scan()
240 return utils::satisfies(filter, program.selector); in startProgramListUpdates()
DVirtualProgram.h34 ProgramSelector selector; member
DVirtualRadio.h44 bool getProgram(const ProgramSelector& selector, VirtualProgram& program) const;
/hardware/interfaces/broadcastradio/1.1/default/
DVirtualProgram.cpp52 utils::getLegacyChannel(selector, &info10.channel, &info10.subChannel); in getProgramInfo()
53 info11.selector = selector; in getProgramInfo()
56 info10.digital = utils::isDigital(selector); in getProgramInfo()
78 auto& l = lhs.selector; in operator <()
79 auto& r = rhs.selector; in operator <()
DVirtualRadio.cpp61 bool VirtualRadio::getProgram(const ProgramSelector& selector, VirtualProgram& programOut) { in getProgram() argument
64 if (utils::tunesTo(selector, program.selector)) { in getProgram()
DTuner.cpp138 static ProgramInfo makeDummyProgramInfo(const ProgramSelector& selector) { in makeDummyProgramInfo() argument
142 utils::getLegacyChannel(selector, &info10.channel, &info10.subChannel); in makeDummyProgramInfo()
143 info11.selector = selector; in makeDummyProgramInfo()
160 mCurrentProgram = virtualProgram.selector; in tuneInternalLocked()
171 mCallback1_1->tuneComplete_1_1(Result::OK, mCurrentProgramInfo.selector); in tuneInternalLocked()
206 if (utils::tunesTo(current, found->selector)) found++; in scan()
217 auto tuneTo = found->selector; in scan()
DVirtualProgram.h35 V1_1::ProgramSelector selector; member
/hardware/interfaces/broadcastradio/aidl/default/test/
DDefaultBroadcastRadioHalTest.cpp109 EXPECT_EQ(infoCb1.selector, sel); in verifyUpdatedProgramInfo()
111 EXPECT_EQ(infoCb2.selector, sel); in verifyUpdatedProgramInfo()
113 EXPECT_EQ(infoCb3.selector, sel); in verifyUpdatedProgramInfo()
116 EXPECT_EQ(infoCb1.selector, sel); in verifyUpdatedProgramInfo()
222 EXPECT_NE(supportedTypeSet.find(program.selector.primaryId.type), supportedTypeSet.end()); in TEST_F()
255 EXPECT_EQ(infoCb.selector, kFmSel1); in TEST_F()
484 EXPECT_EQ(utils::getBand(utils::getAmFmFrequency(it->selector)), utils::FrequencyBand::FM); in TEST_F()
499 EXPECT_TRUE(utils::hasId(it->selector, IdentifierType::AMFM_FREQUENCY_KHZ)); in TEST_F()
500 EXPECT_EQ(utils::getBand(utils::getAmFmFrequency(it->selector)), utils::FrequencyBand::FM); in TEST_F()
512 EXPECT_FALSE(utils::hasId(it->selector, IdentifierType::HD_STATION_ID_EXT)); in TEST_F()
[all …]
DMockBroadcastRadioCallback.cpp32 const ProgramSelector& selector) { in onTuneFailed() argument
33 LOG(DEBUG) << "onTuneFailed with result with " << selector.toString().c_str(); in onTuneFailed()
/hardware/interfaces/broadcastradio/aidl/vts/src/
DVtsHalBroadcastradioAidlTargetTest.cpp150 ScopedAStatus onTuneFailed(Result result, const ProgramSelector& selector) override;
196 vector<int64_t> ids = bcutils::getAllIds(arg.selector, id.type);
205 ScopedAStatus TunerCallbackImpl::onTuneFailed(Result result, const ProgramSelector& selector) { in onTuneFailed() argument
206 LOG(DEBUG) << "Tune failed for selector" << selector.toString(); in onTuneFailed()
213 for (const auto& id : info.selector) { in onCurrentProgramInfoChanged()
700 vector<int64_t> freqs = bcutils::getAllIds(infoCb.selector, IdentifierType::AMFM_FREQUENCY_KHZ); in TEST_P()
725 if (programInfo.selector.primaryId.type != IdentifierType::HD_STATION_ID_EXT) { in TEST_P()
728 hdSel = programInfo.selector; in TEST_P()
752 EXPECT_EQ(infoCb.selector.primaryId, hdSel.primaryId); in TEST_P()
788 if (!utils::hasId(programInfo.selector, IdentifierType::DAB_FREQUENCY_KHZ)) { in TEST_P()
[all …]
/hardware/interfaces/broadcastradio/aidl/aidl_api/android.hardware.broadcastradio/1/android/hardware/broadcastradio/
DAnnouncement.aidl37 android.hardware.broadcastradio.ProgramSelector selector;
DProgramInfo.aidl37 android.hardware.broadcastradio.ProgramSelector selector;
/hardware/interfaces/broadcastradio/aidl/aidl_api/android.hardware.broadcastradio/current/android/hardware/broadcastradio/
DAnnouncement.aidl37 android.hardware.broadcastradio.ProgramSelector selector;
DProgramInfo.aidl37 android.hardware.broadcastradio.ProgramSelector selector;
/hardware/interfaces/broadcastradio/aidl/android/hardware/broadcastradio/
DAnnouncement.aidl32 ProgramSelector selector;
DProgramInfo.aidl96 ProgramSelector selector;
/hardware/interfaces/broadcastradio/aidl/aidl_api/android.hardware.broadcastradio/2/android/hardware/broadcastradio/
DAnnouncement.aidl37 android.hardware.broadcastradio.ProgramSelector selector;
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_color_unquantize.cpp798 int selector = ((v6 >> 7) & 1) | ((v7 >> 6) & 2); in hdr_alpha_unpack() local
801 if (selector == 3) in hdr_alpha_unpack()
808 v6 |= (v7 << (selector + 1)) & 0x780; in hdr_alpha_unpack()
809 v7 &= (0x3f >> selector); in hdr_alpha_unpack()
810 v7 ^= 32 >> selector; in hdr_alpha_unpack()
811 v7 -= 32 >> selector; in hdr_alpha_unpack()
812 v6 <<= (4 - selector); in hdr_alpha_unpack()
813 v7 <<= (4 - selector); in hdr_alpha_unpack()

123