Home
last modified time | relevance | path

Searched refs:ProgramInfo (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
H A DProgramInfoCache.java66 RadioManager.ProgramInfo... programInfos) { in ProgramInfoCache()
69 for (RadioManager.ProgramInfo programInfo : programInfos) { in ProgramInfoCache()
75 boolean programInfosAreExactly(RadioManager.ProgramInfo... programInfos) { in programInfosAreExactly()
77 for (RadioManager.ProgramInfo programInfo : programInfos) { in programInfosAreExactly()
139 Set<RadioManager.ProgramInfo> modified = new HashSet<>(); in filterAndUpdateFromInternal()
149 RadioManager.ProgramInfo newInfo = entry.getValue(); in filterAndUpdateFromInternal()
176 Set<RadioManager.ProgramInfo> modified = new HashSet<>(); in filterAndApplyChunkInternal()
178 for (RadioManager.ProgramInfo info : chunk.getModified()) { in filterAndApplyChunkInternal()
218 RadioManager.ProgramInfo oldInfo = mProgramInfoMap.get( in shouldIncludeInModified()
257 Iterator<RadioManager.ProgramInfo> modifiedIter = null; in buildChunks()
[all …]
/aosp12/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DTestUtils.java18 import android.hardware.broadcastradio.V2_0.ProgramInfo;
26 static RadioManager.ProgramInfo makeProgramInfo(int programType, in makeProgramInfo()
29 return new RadioManager.ProgramInfo(new ProgramSelector(programType, identifier, null, in makeProgramInfo()
34 static ProgramInfo programInfoToHal(RadioManager.ProgramInfo info) { in programInfoToHal()
37 ProgramInfo hwInfo = new ProgramInfo(); in programInfoToHal()
H A DProgramInfoCacheTest.java45 private final RadioManager.ProgramInfo mAmFmInfo = TestUtils.makeProgramInfo(
50 private final RadioManager.ProgramInfo mRdsInfo = TestUtils.makeProgramInfo(
84 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testUpdateFromHal()
166 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsIncluded()
168 RadioManager.ProgramInfo newSxmInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsIncluded()
203 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsExcluded()
205 RadioManager.ProgramInfo newSxmInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsExcluded()
251 HashSet<RadioManager.ProgramInfo> expectedSet = new HashSet<>(); in verifyChunkListModified()
252 for (RadioManager.ProgramInfo programInfo : expectedProgramInfos) { in verifyChunkListModified()
256 HashSet<RadioManager.ProgramInfo> actualSet = new HashSet<>(); in verifyChunkListModified()
[all …]
H A DStartProgramListUpdatesFanoutTest.java79 private final RadioManager.ProgramInfo mAmFmInfo = TestUtils.makeProgramInfo(
81 private final RadioManager.ProgramInfo mModifiedAmFmInfo = TestUtils.makeProgramInfo(
86 private final RadioManager.ProgramInfo mRdsInfo = TestUtils.makeProgramInfo(
91 private final RadioManager.ProgramInfo mDabEnsembleInfo = TestUtils.makeProgramInfo(
290 private void updateHalProgramInfo(boolean purge, List<RadioManager.ProgramInfo> modified, in updateHalProgramInfo()
296 for (RadioManager.ProgramInfo mod : modified) { in updateHalProgramInfo()
309 boolean purge, List<RadioManager.ProgramInfo> modified, in verifyAidlClientReceivedChunk()
311 HashSet<RadioManager.ProgramInfo> modifiedSet = new HashSet<>(); in verifyAidlClientReceivedChunk()
/aosp12/packages/apps/TV/tests/robotests/src/com/android/tv/data/
H A DProgramDataManagerTest.java36 import com.android.tv.testing.data.ProgramInfo;
118 ProgramInfo stub = ProgramInfo.create(); in testProgramUtils()
122 ProgramInfo programAt = stub.build(RuntimeEnvironment.application, index); in testProgramUtils()
160 ProgramInfo stub = ProgramInfo.create(); in testGetPrograms()
163 ProgramInfo programInfoAt = stub.build(RuntimeEnvironment.application, index); in testGetPrograms()
192 ProgramInfo stub = ProgramInfo.create(); in testCurrentProgramListener()
197 ProgramInfo nextProgramInfo = stub.build(RuntimeEnvironment.application, index + 1); in testCurrentProgramListener()
235 ProgramInfo.create(), in testContentProviderUpdate()
258 ProgramInfo.create(), in testSetPauseProgramUpdate()
267 long expectedStartTime, ProgramInfo expectedInfo, Program actualProgram) { in assertProgramEquals()
/aosp12/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
H A DSampleTunerTvInputSetupActivity.java9 import com.android.tv.testing.data.ProgramInfo;
30 new ProgramInfo( in onCreate()
35 ProgramInfo.GEN_POSTER, in onCreate()
37 ProgramInfo.GEN_DURATION, in onCreate()
39 ProgramInfo.GEN_GENRE, in onCreate()
/aosp12/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
H A DProgramInfo.java29 public final class ProgramInfo { class
106 public static ProgramInfo fromCursor(Cursor c) { in fromCursor()
124 public ProgramInfo( in ProgramInfo() method in ProgramInfo
150 public static ProgramInfo create() { in create()
199 public ProgramInfo build(Context context, int index) { in build()
207 return new ProgramInfo( in build()
242 ProgramInfo that = (ProgramInfo) o; in equals()
322 public ProgramInfo build() { in build()
323 return new ProgramInfo( in build()
H A DProgramUtils.java49 Context context, Uri channelUri, ProgramInfo program, Clock clock) { in populatePrograms()
56 ProgramInfo program, in populatePrograms()
67 ProgramInfo program, in populatePrograms()
88 ProgramInfo programAt = program.build(context, index++); in populatePrograms()
142 ProgramInfo programInfo = ProgramInfo.create(); in updateProgramForAllChannelsOf()
/aosp12/hardware/interfaces/broadcastradio/1.1/default/
H A DVirtualProgram.cpp34 using V1_1::ProgramInfo;
48 ProgramInfo VirtualProgram::getProgramInfo(HalRevision halRev) const { in getProgramInfo()
49 ProgramInfo info11 = {}; in getProgramInfo()
89 vector<ProgramInfo> getProgramInfoVector(const vector<VirtualProgram>& vec, HalRevision halRev) { in getProgramInfoVector()
90 vector<ProgramInfo> out; in getProgramInfoVector()
H A DVirtualProgram.h41 V1_1::ProgramInfo getProgramInfo(utils::HalRevision halRev) const;
46 std::vector<V1_1::ProgramInfo> getProgramInfoVector(const std::vector<VirtualProgram>& vec,
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/
H A DBrowseAdapter.java20 import android.hardware.radio.RadioManager.ProgramInfo;
50 private @Nullable ProgramInfo mCurrentProgram;
96 @NonNull LiveData<ProgramInfo> currentProgram, in BrowseAdapter()
123 public void setProgramList(@NonNull List<ProgramInfo> programs) { in setProgramList()
124 Map<ProgramSelector.Identifier, ProgramInfo> liveMap = programs.stream().collect( in setProgramList()
131 ProgramInfo liveEntry = liveMap.get(id); in setProgramList()
190 private void onCurrentProgramChanged(@NonNull ProgramInfo info) { in onCurrentProgramChanged()
H A DRadioController.java20 import android.hardware.radio.RadioManager.ProgramInfo;
55 @Nullable private ProgramInfo mCurrentProgram;
108 public LiveData<ProgramInfo> getCurrentProgram() { in getCurrentProgram()
116 public LiveData<List<ProgramInfo>> getProgramList() { in getProgramList()
163 private void onCurrentProgramChanged(@NonNull ProgramInfo info) { in onCurrentProgramChanged()
/aosp12/frameworks/base/core/java/android/hardware/radio/
H A DProgramList.java44 private final Map<ProgramSelector.Identifier, RadioManager.ProgramInfo> mPrograms =
196 private void putLocked(@NonNull RadioManager.ProgramInfo value) { in putLocked()
204 RadioManager.ProgramInfo removed = mPrograms.remove(Objects.requireNonNull(key)); in removeLocked()
215 public @NonNull List<RadioManager.ProgramInfo> toList() { in toList()
227 public @Nullable RadioManager.ProgramInfo get(@NonNull ProgramSelector.Identifier id) { in get()
410 private final @NonNull Set<RadioManager.ProgramInfo> mModified;
414 @Nullable Set<RadioManager.ProgramInfo> modified, in Chunk()
425 mModified = Utils.createSet(in, RadioManager.ProgramInfo.CREATOR); in Chunk()
460 public @NonNull Set<RadioManager.ProgramInfo> getModified() { in getModified()
H A DTunerCallbackAdapter.java43 @Nullable List<RadioManager.ProgramInfo> mLastCompleteList;
45 @Nullable RadioManager.ProgramInfo mCurrentProgramInfo;
93 @Nullable List<RadioManager.ProgramInfo> getLastCompleteList() { in getLastCompleteList()
105 @Nullable RadioManager.ProgramInfo getCurrentProgramInformation() { in getCurrentProgramInformation()
150 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
H A DRadioTuner.java239 public abstract int getProgramInformation(RadioManager.ProgramInfo[] info); in getProgramInformation()
294 public abstract @NonNull List<RadioManager.ProgramInfo>
540 public void onProgramInfoChanged(RadioManager.ProgramInfo info) {} in onProgramInfoChanged()
/aosp12/hardware/interfaces/broadcastradio/1.1/vts/functional/
H A DVtsHalBroadcastradioV1_1TargetTest.cpp85 MOCK_METHOD2(tuneComplete, Return<void>(Result, const V1_0::ProgramInfo&));
87 MOCK_METHOD1(afSwitch, Return<void>(const V1_0::ProgramInfo&));
95 MOCK_TIMEOUT_METHOD1(currentProgramInfoChanged, Return<void>(const ProgramInfo&));
106 bool getProgramList(std::function<void(const hidl_vec<ProgramInfo>& list)> cb);
241 std::function<void(const hidl_vec<ProgramInfo>& list)> cb) { in getProgramList()
244 auto getListCb = [&](ProgramListResult result, const hidl_vec<ProgramInfo>& list) { in getProgramList()
312 ProgramInfo firstProgram; in TEST_P()
315 auto getCb = [&](const hidl_vec<ProgramInfo>& list) { in TEST_P()
327 ProgramInfo infoCb; in TEST_P()
434 auto getCb = [&](const hidl_vec<ProgramInfo>& list) { in TEST_P()
[all …]
/aosp12/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/
H A DUtils.h136 size_t operator()(const V2_0::ProgramInfo& info) const;
140 bool operator()(const V2_0::ProgramInfo& info1, const V2_0::ProgramInfo& info2) const;
143 typedef std::unordered_set<V2_0::ProgramInfo, ProgramInfoHasher, ProgramInfoKeyEqual>
148 std::optional<std::string> getMetadataString(const V2_0::ProgramInfo& info,
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/service/
H A DRadioAppServiceWrapper.java24 import android.hardware.radio.RadioManager.ProgramInfo;
93 private final MutableLiveData<ProgramInfo> mCurrentProgram = new MutableLiveData<>();
94 private final MutableLiveData<List<ProgramInfo>> mProgramList = new MutableLiveData<>();
169 public void onCurrentProgramChanged(ProgramInfo info) {
179 public void onProgramListChanged(List<ProgramInfo> plist) {
288 public LiveData<ProgramInfo> getCurrentProgram() { in getCurrentProgram()
298 public LiveData<List<ProgramInfo>> getProgramList() { in getProgramList()
H A DIRadioAppCallback.aidl39 void onCurrentProgramChanged(in RadioManager.ProgramInfo info); in onCurrentProgramChanged()
53 void onProgramListChanged(in List<RadioManager.ProgramInfo> plist); in onProgramListChanged()
/aosp12/frameworks/base/services/core/jni/BroadcastRadio/
H A DTunerCallback.cpp50 using V1_1::ProgramInfo;
99 V1_0::ProgramInfo mCurrentProgramInfo;
111 virtual Return<void> tuneComplete(Result result, const V1_0::ProgramInfo& info);
112 virtual Return<void> afSwitch(const V1_0::ProgramInfo& info);
122 virtual Return<void> currentProgramInfoChanged(const ProgramInfo& info);
186 Return<void> NativeCallback::tuneComplete(Result result, const V1_0::ProgramInfo& info) { in tuneComplete()
230 Return<void> NativeCallback::afSwitch(const V1_0::ProgramInfo& info) { in afSwitch()
274 V1_0::ProgramInfo info; in newMetadata()
332 Return<void> NativeCallback::currentProgramInfoChanged(const ProgramInfo& info) { in currentProgramInfoChanged()
/aosp12/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
H A DRadioTunerTest.java292 ArgumentCaptor<RadioManager.ProgramInfo> infoc = in testTuneAndGetPI()
293 ArgumentCaptor.forClass(RadioManager.ProgramInfo.class); in testTuneAndGetPI()
299 RadioManager.ProgramInfo[] info = new RadioManager.ProgramInfo[1]; in testTuneAndGetPI()
360 List<RadioManager.ProgramInfo> list = mRadioTuner.getProgramList(filter); in testGetProgramList()
372 List<RadioManager.ProgramInfo> list; in testTuneFromProgramList()
395 ArgumentCaptor<RadioManager.ProgramInfo> infoc = in testTuneFromProgramList()
396 ArgumentCaptor.forClass(RadioManager.ProgramInfo.class); in testTuneFromProgramList()
/aosp12/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
H A DProgramInfoExt.java24 import android.hardware.radio.RadioManager.ProgramInfo;
77 public static @NonNull String getProgramName(@NonNull ProgramInfo info, @NameFlag int flags) { in getProgramName()
111 public static @NonNull RadioMetadata getMetadata(@NonNull ProgramInfo info) { in getMetadata()
130 public static @NonNull MediaMetadata toMediaMetadata(@NonNull ProgramInfo info, in toMediaMetadata()
/aosp12/hardware/interfaces/broadcastradio/1.0/
H A DITunerCallback.hal42 * @param info A ProgramInfo structure describing the tuned station.
44 oneway tuneComplete(Result result, ProgramInfo info);
48 * @param info A ProgramInfo structure describing the new tuned station.
50 oneway afSwitch(ProgramInfo info);
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/media/
H A DTunerSession.java21 import android.hardware.radio.RadioManager.ProgramInfo;
63 @Nullable private ProgramInfo mCurrentProgram;
106 private void updateMetadata(@Nullable ProgramInfo info) { in updateMetadata()
168 ProgramInfo info = mAppService.getCurrentProgram().getValue(); in onSetRating()
/aosp12/hardware/interfaces/broadcastradio/common/utils2x/
H A DUtils.cpp32 using V2_0::ProgramInfo;
353 size_t ProgramInfoHasher::operator()(const ProgramInfo& info) const { in operator ()()
365 bool ProgramInfoKeyEqual::operator()(const ProgramInfo& info1, const ProgramInfo& info2) const { in operator ()()
377 ProgramInfo info = {}; in updateProgramList()
383 std::optional<std::string> getMetadataString(const V2_0::ProgramInfo& info, in getMetadataString()

123