Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DAidlTestUtils.java21 import android.hardware.broadcastradio.ProgramInfo;
51 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo()
54 return new RadioManager.ProgramInfo(selector, in makeProgramInfo()
60 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo()
98 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
103 static ProgramInfo programInfoToHalProgramInfo(RadioManager.ProgramInfo info) { in programInfoToHalProgramInfo()
111 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
119 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
123 ProgramInfo hwInfo = new ProgramInfo(); in makeHalProgramInfo()
134 List<RadioManager.ProgramInfo> modified, List<ProgramSelector.Identifier> removed) { in makeHalChunk()
[all …]
DProgramInfoCacheTest.java20 import android.hardware.broadcastradio.ProgramInfo;
54 private static final RadioManager.ProgramInfo TEST_FM_INFO = AidlTestUtils.makeProgramInfo(
58 private static final RadioManager.ProgramInfo TEST_FM_INFO_MODIFIED =
68 private static final RadioManager.ProgramInfo TEST_AM_INFO = AidlTestUtils.makeProgramInfo(
78 private static final RadioManager.ProgramInfo TEST_RDS_INFO = AidlTestUtils.makeProgramInfo(
108 private static final RadioManager.ProgramInfo TEST_DAB_INFO =
111 private static final RadioManager.ProgramInfo TEST_DAB_INFO_ALTERNATIVE =
118 private static final RadioManager.ProgramInfo TEST_VENDOR_INFO = AidlTestUtils.makeProgramInfo(
159 new ProgramInfo[]{AidlTestUtils.programInfoToHalProgramInfo(TEST_RDS_INFO), in updateFromHalProgramListChunk_withPurgingCompleteChunk()
177 new ProgramInfo[]{AidlTestUtils.programInfoToHalProgramInfo(TEST_FM_INFO_MODIFIED), in updateFromHalProgramListChunk_withNonPurgingIncompleteChunk()
[all …]
DConversionUtilsTest.java32 import android.hardware.broadcastradio.ProgramInfo;
516 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in programInfoFromHalProgramInfo_withValidProgramInfo()
519 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withValidProgramInfo()
540 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in programInfoFromHalProgramInfo_withRelatedContent()
544 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withRelatedContent()
556 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(invalidHalDabSelector, in programInfoFromHalProgramInfo_withInvalidDabProgramInfo()
559 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withInvalidDabProgramInfo()
602 RadioManager.ProgramInfo dabProgramInfo = AidlTestUtils.makeProgramInfo(TEST_DAB_SELECTOR, in programInfoMeetsSdkVersionRequirement_withLowerVersionId_returnsFalse()
612 RadioManager.ProgramInfo dabProgramInfo = AidlTestUtils.makeProgramInfo( in programInfoMeetsSdkVersionRequirement_withLowerVersionIdForLogicallyTunedTo()
623 RadioManager.ProgramInfo dabProgramInfo = new RadioManager.ProgramInfo( in programInfoMeetsSdkVersionRequirement_withLowerVersionIdForRelatedContent()
[all …]
DTunerSessionTest.java42 import android.hardware.broadcastradio.ProgramInfo;
108 private static final RadioManager.ProgramInfo TEST_FM_INFO = AidlTestUtils.makeProgramInfo(
112 private static final RadioManager.ProgramInfo TEST_FM_INFO_MODIFIED =
141 private static final RadioManager.ProgramInfo TEST_DAB_INFO =
144 private static final RadioManager.ProgramInfo TEST_DAB_INFO_ALT =
160 private ProgramInfo mHalCurrentInfo;
345 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession()
359 RadioManager.ProgramInfo tuneInfo = in tune_withLowerSdkVersion()
372 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions()
426 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune()
[all …]
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DTestUtils.java21 import android.hardware.broadcastradio.V2_0.ProgramInfo;
46 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo()
66 return new RadioManager.ProgramInfo(selector, in makeProgramInfo()
72 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo()
93 static ProgramInfo programInfoToHal(RadioManager.ProgramInfo info) { in programInfoToHal()
96 ProgramInfo hwInfo = new ProgramInfo(); in programInfoToHal()
129 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
136 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo()
139 ProgramInfo hwInfo = new ProgramInfo(); in makeHalProgramInfo()
DProgramInfoCacheTest.java55 private static final RadioManager.ProgramInfo TEST_AM_FM_INFO = TestUtils.makeProgramInfo(
62 private static final RadioManager.ProgramInfo TEST_RDS_INFO = TestUtils.makeProgramInfo(
84 private static final RadioManager.ProgramInfo TEST_DAB_INFO = TestUtils.makeProgramInfo(
92 private static final RadioManager.ProgramInfo TEST_VENDOR_INFO = TestUtils.makeProgramInfo(
120 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo(TEST_RDS_SELECTOR, 1); in testUpdateFromHal()
208 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo(TEST_RDS_SELECTOR, in testDeltaUpdateChunksModificationsIncluded()
210 RadioManager.ProgramInfo newHdInfo = TestUtils.makeProgramInfo(TEST_HD_SELECTOR, in testDeltaUpdateChunksModificationsIncluded()
245 RadioManager.ProgramInfo updatedRdsInfo = TestUtils.makeProgramInfo(TEST_RDS_SELECTOR, 1); in testDeltaUpdateChunksModificationsExcluded()
246 RadioManager.ProgramInfo newHdInfo = TestUtils.makeProgramInfo(TEST_HD_SELECTOR, in testDeltaUpdateChunksModificationsExcluded()
306 int maxModifiedPerChunk, RadioManager.ProgramInfo... expectedProgramInfos) { in verifyChunkListModified()
[all …]
DStartProgramListUpdatesFanoutTest.java82 private static final RadioManager.ProgramInfo TEST_AM_FM_INFO = TestUtils.makeProgramInfo(
84 private static final RadioManager.ProgramInfo TEST_AM_FM_MODIFIED_INFO =
95 private static final RadioManager.ProgramInfo TEST_RDS_INFO = TestUtils.makeProgramInfo(
110 private static final RadioManager.ProgramInfo TEST_DAB_INFO = TestUtils.makeProgramInfo(
317 private void updateHalProgramInfo(boolean purge, List<RadioManager.ProgramInfo> modified, in updateHalProgramInfo()
323 for (RadioManager.ProgramInfo mod : modified) { in updateHalProgramInfo()
336 boolean purge, List<RadioManager.ProgramInfo> modified, in verifyAidlClientReceivedChunk()
338 HashSet<RadioManager.ProgramInfo> modifiedSet = new HashSet<>(); in verifyAidlClientReceivedChunk()
DTunerSessionHidlTest.java40 import android.hardware.broadcastradio.V2_0.ProgramInfo;
100 private ProgramInfo mHalCurrentInfo;
346 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession()
359 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions()
408 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune()
448 RadioManager.ProgramInfo stepUpInfo = TestUtils.makeProgramInfo( in step_withDirectionUp()
464 RadioManager.ProgramInfo stepDownInfo = TestUtils.makeProgramInfo( in step_withDirectionDown()
509 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionUp()
539 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionDown()
556 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_forNonCurrentUser_doesNotSeek()
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DProgramInfoCache.java49 private final ArrayMap<Identifier, ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo>>
67 RadioManager.ProgramInfo... programInfos) { in ProgramInfoCache()
76 List<RadioManager.ProgramInfo> toProgramInfoList() { in toProgramInfoList()
77 List<RadioManager.ProgramInfo> programInfoList = new ArrayList<>(); in toProgramInfoList()
92 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = in toString()
115 for (android.hardware.broadcastradio.V2_0.ProgramInfo halProgramInfo : chunk.modified) { in updateFromHalProgramListChunk()
116 RadioManager.ProgramInfo programInfo = Convert.programInfoFromHal(halProgramInfo); in updateFromHalProgramListChunk()
142 ArraySet<RadioManager.ProgramInfo> modified = new ArraySet<>(); in filterAndUpdateFromInternal()
152 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = in filterAndUpdateFromInternal()
157 RadioManager.ProgramInfo newInfo = entries.valueAt(entryIndex); in filterAndUpdateFromInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DProgramInfoCache.java61 private final ArrayMap<Identifier, ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo>>
82 RadioManager.ProgramInfo... programInfos) { in ProgramInfoCache()
91 List<RadioManager.ProgramInfo> toProgramInfoList() { in toProgramInfoList()
92 List<RadioManager.ProgramInfo> programInfoList = new ArrayList<>(); in toProgramInfoList()
107 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = in toString()
132 RadioManager.ProgramInfo programInfo = in updateFromHalProgramListChunk()
168 ArraySet<RadioManager.ProgramInfo> modified = new ArraySet<>(); in filterAndUpdateFromInternal()
178 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = in filterAndUpdateFromInternal()
183 RadioManager.ProgramInfo newInfo = entries.valueAt(entryIndex); in filterAndUpdateFromInternal()
213 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in filterAndApplyChunkInternal()
[all …]
DConversionUtils.java32 import android.hardware.broadcastradio.ProgramInfo;
593 private static boolean isValidHalProgramInfo(ProgramInfo info) { in isValidHalProgramInfo()
600 static RadioManager.ProgramInfo programInfoFromHalProgramInfo(ProgramInfo info) { in programInfoFromHalProgramInfo()
615 return new RadioManager.ProgramInfo( in programInfoFromHalProgramInfo()
685 static boolean programInfoMeetsSdkVersionRequirement(RadioManager.ProgramInfo info, int uid) { in programInfoMeetsSdkVersionRequirement()
703 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in convertChunkToTargetSdkVersion()
704 Iterator<RadioManager.ProgramInfo> modifiedIterator = chunk.getModified().iterator(); in convertChunkToTargetSdkVersion()
706 RadioManager.ProgramInfo info = modifiedIterator.next(); in convertChunkToTargetSdkVersion()
DRadioModule.java29 import android.hardware.broadcastradio.ProgramInfo;
73 private RadioManager.ProgramInfo mCurrentProgramInfo;
121 public void onCurrentProgramInfoChanged(ProgramInfo halProgramInfo) {
123 RadioManager.ProgramInfo currentProgramInfo =
255 RadioManager.ProgramInfo currentProgramInfo; in openSession()
/frameworks/base/core/java/android/hardware/radio/
DProgramList.java50 RadioManager.ProgramInfo>> mPrograms = new ArrayMap<>();
208 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo>>> in apply()
212 RadioManager.ProgramInfo>> removed = programsIterator.next(); in apply()
224 Iterator<RadioManager.ProgramInfo> modifiedIterator = chunk.getModified().iterator(); in apply()
255 private void putLocked(RadioManager.ProgramInfo value, in putLocked()
274 Map<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = mPrograms.get(primaryKey); in removeLocked()
275 RadioManager.ProgramInfo removed = entries.remove(Objects.requireNonNull(key)); in removeLocked()
287 public @NonNull List<RadioManager.ProgramInfo> toList() { in toList()
288 List<RadioManager.ProgramInfo> list = new ArrayList<>(); in toList()
291 ArrayMap<UniqueProgramIdentifier, RadioManager.ProgramInfo> entries = in toList()
[all …]
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()
DRadioTuner.java333 public abstract int getProgramInformation(RadioManager.ProgramInfo[] info); in getProgramInformation()
396 public abstract @NonNull List<RadioManager.ProgramInfo>
717 public void onProgramInfoChanged(RadioManager.ProgramInfo info) {} in onProgramInfoChanged()
DRadioManager.aidl29 parcelable RadioManager.ProgramInfo;
DTunerAdapter.java239 public int getProgramInformation(RadioManager.ProgramInfo[] info) { in getProgramInformation()
245 RadioManager.ProgramInfo current = mCallback.getCurrentProgramInformation(); in getProgramInformation()
282 public List<RadioManager.ProgramInfo>
301 List<RadioManager.ProgramInfo> list = mCallback.getLastCompleteList(); in getProgramList()
DRadioManager.java1528 public static class ProgramInfo implements Parcelable { class in RadioManager
1552 public ProgramInfo(@NonNull ProgramSelector selector, in ProgramInfo() method in RadioManager.ProgramInfo
1780 private ProgramInfo(Parcel in) { in ProgramInfo() method in RadioManager.ProgramInfo
1791 public static final @android.annotation.NonNull Parcelable.Creator<ProgramInfo> CREATOR
1792 = new Parcelable.Creator<ProgramInfo>() {
1793 public ProgramInfo createFromParcel(Parcel in) {
1794 return new ProgramInfo(in);
1797 public ProgramInfo[] newArray(int size) {
1798 return new ProgramInfo[size];
1842 if (!(obj instanceof ProgramInfo)) return false; in equals()
[all …]
DITunerCallback.aidl36 void onCurrentProgramInfoChanged(in RadioManager.ProgramInfo info); in onCurrentProgramInfoChanged()
/frameworks/base/services/core/jni/BroadcastRadio/
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()
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);
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTunerCallback.java121 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
160 List<RadioManager.ProgramInfo> modified; in sendProgramListUpdate()
167 Set<RadioManager.ProgramInfo> modifiedSet = modified.stream().collect(Collectors.toSet()); in sendProgramListUpdate()
DTuner.java92 private native List<RadioManager.ProgramInfo> nativeGetProgramList(long nativeContext, in nativeGetProgramList()
274 List<RadioManager.ProgramInfo> getProgramList(Map vendorFilter) { in getProgramList()
278 List<RadioManager.ProgramInfo> list = nativeGetProgramList(mNativeContext, sFilter); in getProgramList()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DDefaultRadioTunerTest.java85 public int getProgramInformation(RadioManager.ProgramInfo[] info) {
96 public List<RadioManager.ProgramInfo> getProgramList(
DTunerAdapterTest.java68 private static final RadioManager.ProgramInfo FM_PROGRAM_INFO = createFmProgramInfo();
472 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[2]; in getProgramInfo_withInvalidInput_fails()
482 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[1]; in getProgramInfo_beforeProgramInfoSetForTunerAdapter_fails()
494 RadioManager.ProgramInfo[] programInfoArray = new RadioManager.ProgramInfo[1]; in getProgramInfo_afterTuneForTunerAdapter()
914 private static RadioManager.ProgramInfo createFmProgramInfo() { in createFmProgramInfo()
915 return new RadioManager.ProgramInfo(FM_SELECTOR, FM_IDENTIFIER, FM_IDENTIFIER, in createFmProgramInfo()

12