Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
H A DTestUtils.java20 import android.hardware.broadcastradio.V2_0.ProgramInfo;
45 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo()
48 return new RadioManager.ProgramInfo(selector, in makeProgramInfo()
54 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo()
59 static RadioManager.ProgramInfo makeProgramInfo(int programType, in makeProgramInfo()
77 static ProgramInfo programInfoToHal(RadioManager.ProgramInfo info) { in programInfoToHal()
80 ProgramInfo hwInfo = new ProgramInfo(); in programInfoToHal()
98 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
100 ProgramInfo hwInfo = new ProgramInfo(); in makeHalProgramInfo()
H A DProgramInfoCacheTest.java47 private final RadioManager.ProgramInfo mAmFmInfo = TestUtils.makeProgramInfo(
52 private final RadioManager.ProgramInfo mRdsInfo = TestUtils.makeProgramInfo(
86 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testUpdateFromHal()
168 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsIncluded()
170 RadioManager.ProgramInfo newSxmInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsIncluded()
205 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsExcluded()
207 RadioManager.ProgramInfo newSxmInfo = TestUtils.makeProgramInfo( in testDeltaUpdateChunksModificationsExcluded()
253 HashSet<RadioManager.ProgramInfo> expectedSet = new HashSet<>(); in verifyChunkListModified()
254 for (RadioManager.ProgramInfo programInfo : expectedProgramInfos) { in verifyChunkListModified()
258 HashSet<RadioManager.ProgramInfo> actualSet = new HashSet<>(); in verifyChunkListModified()
[all …]
H A DStartProgramListUpdatesFanoutTest.java77 private final RadioManager.ProgramInfo mAmFmInfo = TestUtils.makeProgramInfo(
79 private final RadioManager.ProgramInfo mModifiedAmFmInfo = TestUtils.makeProgramInfo(
84 private final RadioManager.ProgramInfo mRdsInfo = TestUtils.makeProgramInfo(
89 private final RadioManager.ProgramInfo mDabEnsembleInfo = TestUtils.makeProgramInfo(
296 private void updateHalProgramInfo(boolean purge, List<RadioManager.ProgramInfo> modified, in updateHalProgramInfo()
302 for (RadioManager.ProgramInfo mod : modified) { in updateHalProgramInfo()
315 boolean purge, List<RadioManager.ProgramInfo> modified, in verifyAidlClientReceivedChunk()
317 HashSet<RadioManager.ProgramInfo> modifiedSet = new HashSet<>(); in verifyAidlClientReceivedChunk()
H A DTunerSessionHidlTest.java42 import android.hardware.broadcastradio.V2_0.ProgramInfo;
98 private ProgramInfo mHalCurrentInfo;
327 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession()
340 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions()
377 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune()
406 RadioManager.ProgramInfo tuneInfo = TestUtils.makeProgramInfo(initialSel, SIGNAL_QUALITY); in tune_forSystemUser()
418 RadioManager.ProgramInfo stepUpInfo = TestUtils.makeProgramInfo( in step_withDirectionUp()
434 RadioManager.ProgramInfo stepDownInfo = TestUtils.makeProgramInfo( in step_withDirectionDown()
479 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionUp()
509 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionDown()
[all …]
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
H A DAidlTestUtils.java21 import android.hardware.broadcastradio.ProgramInfo;
50 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo()
53 return new RadioManager.ProgramInfo(selector, in makeProgramInfo()
97 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
102 static ProgramInfo programInfoToHalProgramInfo(RadioManager.ProgramInfo info) { in programInfoToHalProgramInfo()
110 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
114 ProgramInfo hwInfo = new ProgramInfo(); in makeHalProgramInfo()
126 ProgramInfo[] halModified = in makeHalChunk()
141 ProgramInfo[] modified, ProgramIdentifier[] removed) { in makeHalChunk()
151 List<RadioManager.ProgramInfo> modified, in makeChunk()
[all …]
H A DConversionUtilsTest.java27 import android.hardware.broadcastradio.ProgramInfo;
308 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in programInfoFromHalProgramInfo_withValidProgramInfo()
311 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withValidProgramInfo()
332 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(invalidHalDabSelector, in programInfoFromHalProgramInfo_withInvalidDabProgramInfo()
335 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withInvalidDabProgramInfo()
349 ProgramInfo halDabInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in chunkFromHalProgramListChunk_withValidChunk()
351 RadioManager.ProgramInfo dabInfo = in chunkFromHalProgramListChunk_withValidChunk()
354 new ProgramInfo[]{halDabInfo}, in chunkFromHalProgramListChunk_withValidChunk()
376 ProgramInfo halDabInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in chunkFromHalProgramListChunk_withInvalidModifiedProgramInfo()
419 RadioManager.ProgramInfo fmProgramInfo = AidlTestUtils.makeProgramInfo(TEST_FM_SELECTOR, in programInfoMeetsSdkVersionRequirement_withRequiredVersionId_returnsTrue()
[all …]
H A DProgramInfoCacheTest.java20 import android.hardware.broadcastradio.ProgramInfo;
49 private static final RadioManager.ProgramInfo TEST_FM_INFO = AidlTestUtils.makeProgramInfo(
53 private static final RadioManager.ProgramInfo TEST_FM_INFO_MODIFIED =
61 private static final RadioManager.ProgramInfo TEST_AM_INFO = AidlTestUtils.makeProgramInfo(
69 private static final RadioManager.ProgramInfo TEST_RDS_INFO = AidlTestUtils.makeProgramInfo(
84 private static final RadioManager.ProgramInfo TEST_DAB_INFO = AidlTestUtils.makeProgramInfo(
93 private static final RadioManager.ProgramInfo TEST_VENDOR_INFO = AidlTestUtils.makeProgramInfo(
134 new ProgramInfo[]{AidlTestUtils.programInfoToHalProgramInfo(TEST_RDS_INFO), in updateFromHalProgramListChunk_withPurgingCompleteChunk()
371 int maxModifiedPerChunk, RadioManager.ProgramInfo... expectedProgramInfos) { in verifyChunkListModified()
378 ArraySet<RadioManager.ProgramInfo> actualSet = new ArraySet<>(); in verifyChunkListModified()
[all …]
H A DTunerSessionTest.java42 import android.hardware.broadcastradio.ProgramInfo;
105 private static final RadioManager.ProgramInfo TEST_FM_INFO_MODIFIED =
127 private ProgramInfo mHalCurrentInfo;
346 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession()
360 RadioManager.ProgramInfo tuneInfo = in tune_withLowerSdkVersion()
373 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions()
425 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune()
440 RadioManager.ProgramInfo tuneInfo = in tune_forSystemUser()
468 RadioManager.ProgramInfo stepUpInfo = AidlTestUtils.makeProgramInfo( in step_withDirectionUp()
531 RadioManager.ProgramInfo seekUpInfo = AidlTestUtils.makeProgramInfo( in seek_withDirectionUp()
[all …]
/aosp14/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()
219 RadioManager.ProgramInfo oldInfo = mProgramInfoMap.get( in shouldIncludeInModified()
259 Iterator<RadioManager.ProgramInfo> modifiedIter = null; in buildChunks()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
H A DProgramInfoCache.java80 RadioManager.ProgramInfo... programInfos) { in ProgramInfoCache()
89 List<RadioManager.ProgramInfo> toProgramInfoList() { in toProgramInfoList()
123 RadioManager.ProgramInfo programInfo = in updateFromHalProgramListChunk()
158 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in filterAndUpdateFromInternal()
168 RadioManager.ProgramInfo newInfo = entry.getValue(); in filterAndUpdateFromInternal()
197 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in filterAndApplyChunkInternal()
199 for (RadioManager.ProgramInfo info : chunk.getModified()) { in filterAndApplyChunkInternal()
236 private boolean shouldIncludeInModified(RadioManager.ProgramInfo newInfo) { in shouldIncludeInModified()
237 RadioManager.ProgramInfo oldInfo = mProgramInfoMap.get( in shouldIncludeInModified()
277 Iterator<RadioManager.ProgramInfo> modifiedIter = null; in buildChunks()
[all …]
H A DConversionUtils.java31 import android.hardware.broadcastradio.ProgramInfo;
501 private static boolean isValidHalProgramInfo(ProgramInfo info) { in isValidHalProgramInfo()
508 static RadioManager.ProgramInfo programInfoFromHalProgramInfo(ProgramInfo info) { in programInfoFromHalProgramInfo()
523 return new RadioManager.ProgramInfo( in programInfoFromHalProgramInfo()
562 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(chunk.modified.length); in chunkFromHalProgramListChunk()
564 RadioManager.ProgramInfo modifiedInfo = in chunkFromHalProgramListChunk()
606 static boolean programInfoMeetsSdkVersionRequirement(RadioManager.ProgramInfo info, int uid) { in programInfoMeetsSdkVersionRequirement()
633 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in convertChunkToTargetSdkVersion()
634 Iterator<RadioManager.ProgramInfo> modifiedIterator = chunk.getModified().iterator(); in convertChunkToTargetSdkVersion()
636 RadioManager.ProgramInfo info = modifiedIterator.next(); in convertChunkToTargetSdkVersion()
H A DRadioModule.java29 import android.hardware.broadcastradio.ProgramInfo;
72 private RadioManager.ProgramInfo mCurrentProgramInfo;
120 public void onCurrentProgramInfoChanged(ProgramInfo halProgramInfo) {
122 RadioManager.ProgramInfo currentProgramInfo =
254 RadioManager.ProgramInfo currentProgramInfo; in openSession()
/aosp14/frameworks/base/core/java/android/hardware/radio/
H A DProgramList.java48 private final Map<ProgramSelector.Identifier, RadioManager.ProgramInfo> mPrograms =
206 Iterator<Map.Entry<ProgramSelector.Identifier, RadioManager.ProgramInfo>> in apply()
209 RadioManager.ProgramInfo removed = programsIterator.next().getValue(); in apply()
244 private void putLocked(RadioManager.ProgramInfo value, in putLocked()
255 RadioManager.ProgramInfo removed = mPrograms.remove(Objects.requireNonNull(key)); in removeLocked()
266 public @NonNull List<RadioManager.ProgramInfo> toList() { in toList()
278 public @Nullable RadioManager.ProgramInfo get(@NonNull ProgramSelector.Identifier id) { in get()
461 private final @NonNull Set<RadioManager.ProgramInfo> mModified;
465 @Nullable Set<RadioManager.ProgramInfo> modified, in Chunk()
476 mModified = Utils.createSet(in, RadioManager.ProgramInfo.CREATOR); in Chunk()
[all …]
H A DTunerCallbackAdapter.java48 @Nullable List<RadioManager.ProgramInfo> mLastCompleteList;
54 @Nullable RadioManager.ProgramInfo mCurrentProgramInfo;
110 @Nullable List<RadioManager.ProgramInfo> getLastCompleteList() { in getLastCompleteList()
122 @Nullable RadioManager.ProgramInfo getCurrentProgramInformation() { in getCurrentProgramInformation()
180 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
H A DRadioTuner.java332 public abstract int getProgramInformation(RadioManager.ProgramInfo[] info); in getProgramInformation()
394 public abstract @NonNull List<RadioManager.ProgramInfo>
715 public void onProgramInfoChanged(RadioManager.ProgramInfo info) {} in onProgramInfoChanged()
H A DTunerAdapter.java238 public int getProgramInformation(RadioManager.ProgramInfo[] info) { in getProgramInformation()
244 RadioManager.ProgramInfo current = mCallback.getCurrentProgramInformation(); in getProgramInformation()
273 public List<RadioManager.ProgramInfo>
292 List<RadioManager.ProgramInfo> list = mCallback.getLastCompleteList(); in getProgramList()
H A DRadioManager.java1435 public static class ProgramInfo implements Parcelable { class in RadioManager
1455 public ProgramInfo(@NonNull ProgramSelector selector, in ProgramInfo() method in RadioManager.ProgramInfo
1654 private ProgramInfo(Parcel in) { in ProgramInfo() method in RadioManager.ProgramInfo
1665 public static final @android.annotation.NonNull Parcelable.Creator<ProgramInfo> CREATOR
1666 = new Parcelable.Creator<ProgramInfo>() {
1667 public ProgramInfo createFromParcel(Parcel in) {
1668 return new ProgramInfo(in);
1671 public ProgramInfo[] newArray(int size) {
1672 return new ProgramInfo[size];
1716 if (!(obj instanceof ProgramInfo)) return false; in equals()
[all …]
H A DRadioManager.aidl29 parcelable RadioManager.ProgramInfo;
/aosp14/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()
H A Dconvert.h54 JavaRef<jobject> ProgramInfoFromHal(JNIEnv *env, const V1_0::ProgramInfo &info, V1_0::Band band);
55 JavaRef<jobject> ProgramInfoFromHal(JNIEnv *env, const V1_1::ProgramInfo &info);
/aosp14/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
H A DTunerCallback.java120 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
159 List<RadioManager.ProgramInfo> modified; in sendProgramListUpdate()
166 Set<RadioManager.ProgramInfo> modifiedSet = modified.stream().collect(Collectors.toSet()); in sendProgramListUpdate()
H A DTuner.java93 private native List<RadioManager.ProgramInfo> nativeGetProgramList(long nativeContext, in nativeGetProgramList()
275 List<RadioManager.ProgramInfo> getProgramList(Map vendorFilter) { in getProgramList()
279 List<RadioManager.ProgramInfo> list = nativeGetProgramList(mNativeContext, sFilter); in getProgramList()
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
H A DTunerAdapterTest.java65 private static final RadioManager.ProgramInfo FM_PROGRAM_INFO = createFmProgramInfo();
450 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[2]; in getProgramInfo_withInvalidInput_fails()
460 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[1]; in getProgramInfo_beforeProgramInfoSetForTunerAdapter_fails()
472 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[1]; in getProgramInfo_afterTuneForTunerAdapter()
788 private static RadioManager.ProgramInfo createFmProgramInfo() { in createFmProgramInfo()
789 return new RadioManager.ProgramInfo(FM_SELECTOR, FM_IDENTIFIER, FM_IDENTIFIER, in createFmProgramInfo()
H A DDefaultRadioTunerTest.java87 public int getProgramInformation(RadioManager.ProgramInfo[] info) {
104 public List<RadioManager.ProgramInfo> getProgramList(
H A DRadioManagerTest.java116 private static final RadioManager.ProgramInfo DAB_PROGRAM_INFO =
955 RadioManager.ProgramInfo[] programInfoArray = in newArray_forProgramInfoCreator()
956 RadioManager.ProgramInfo.CREATOR.newArray(CREATOR_ARRAY_SIZE); in newArray_forProgramInfoCreator()
968 RadioManager.ProgramInfo programInfoFromParcel = in writeToParcel_forProgramInfo()
969 RadioManager.ProgramInfo.CREATOR.createFromParcel(parcel); in writeToParcel_forProgramInfo()
976 RadioManager.ProgramInfo dabProgramInfoCompared = createDabProgramInfo(DAB_SELECTOR); in equals_withSameProgramInfo_returnsTrue()
988 RadioManager.ProgramInfo dabProgramInfoCompared = createDabProgramInfo(dabSelectorCompared); in equals_withSameProgramInfoOfDifferentSecondaryIdSelectors_returnsFalse()
1158 private static RadioManager.ProgramInfo createDabProgramInfo(ProgramSelector selector) { in createDabProgramInfo()
1159 return new RadioManager.ProgramInfo(selector, DAB_SID_EXT_IDENTIFIER, in createDabProgramInfo()

12