/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | AidlTestUtils.java | 22 import android.hardware.broadcastradio.ProgramInfo; 52 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo() 55 return new RadioManager.ProgramInfo(selector, in makeProgramInfo() 61 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo() 99 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo() 104 static ProgramInfo programInfoToHalProgramInfo(RadioManager.ProgramInfo info) { in programInfoToHalProgramInfo() 112 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo() 120 static ProgramInfo makeHalProgramInfo( in makeHalProgramInfo() 125 ProgramInfo hwInfo = new ProgramInfo(); in makeHalProgramInfo() 140 List<RadioManager.ProgramInfo> modified, List<ProgramSelector.Identifier> removed) { in makeHalChunk() [all …]
|
D | ProgramInfoCacheTest.java | 20 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 …]
|
D | ConversionUtilsTest.java | 45 import android.hardware.broadcastradio.ProgramInfo; 597 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in programInfoFromHalProgramInfo_withValidProgramInfo() 600 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withValidProgramInfo() 621 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(halDabSelector, in programInfoFromHalProgramInfo_withRelatedContent() 625 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withRelatedContent() 637 ProgramInfo halProgramInfo = AidlTestUtils.makeHalProgramInfo(invalidHalDabSelector, in programInfoFromHalProgramInfo_withInvalidDabProgramInfo() 641 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withInvalidDabProgramInfo() 654 ProgramInfo halHdProgramInfo = AidlTestUtils.makeHalProgramInfo(halHdSelector, in programInfoFromHalProgramInfo_withAlertMessageAndFlagEnabled() 659 RadioManager.ProgramInfo programInfo = in programInfoFromHalProgramInfo_withAlertMessageAndFlagEnabled() 672 ProgramInfo halHdProgramInfo = AidlTestUtils.makeHalProgramInfo(halHdSelector, in programInfoFromHalProgramInfo_withAlertMessageAndFlagDisabled() [all …]
|
D | TunerSessionTest.java | 42 import android.hardware.broadcastradio.ProgramInfo; 107 private static final RadioManager.ProgramInfo TEST_FM_INFO = AidlTestUtils.makeProgramInfo( 111 private static final RadioManager.ProgramInfo TEST_FM_INFO_MODIFIED = 140 private static final RadioManager.ProgramInfo TEST_DAB_INFO = 143 private static final RadioManager.ProgramInfo TEST_DAB_INFO_ALT = 159 private ProgramInfo mHalCurrentInfo; 354 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession() 368 RadioManager.ProgramInfo tuneInfo = in tune_withLowerSdkVersion() 381 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions() 435 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | TestUtils.java | 21 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()
|
D | ProgramInfoCacheTest.java | 55 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 …]
|
D | StartProgramListUpdatesFanoutTest.java | 85 private static final RadioManager.ProgramInfo TEST_AM_FM_INFO = TestUtils.makeProgramInfo( 87 private static final RadioManager.ProgramInfo TEST_AM_FM_MODIFIED_INFO = 98 private static final RadioManager.ProgramInfo TEST_RDS_INFO = TestUtils.makeProgramInfo( 113 private static final RadioManager.ProgramInfo TEST_DAB_INFO = TestUtils.makeProgramInfo( 315 private void updateHalProgramInfo(boolean purge, List<RadioManager.ProgramInfo> modified, in updateHalProgramInfo() 321 for (RadioManager.ProgramInfo mod : modified) { in updateHalProgramInfo() 334 boolean purge, List<RadioManager.ProgramInfo> modified, in verifyAidlClientReceivedChunk() 336 HashSet<RadioManager.ProgramInfo> modifiedSet = new HashSet<>(); in verifyAidlClientReceivedChunk()
|
D | TunerSessionHidlTest.java | 40 import android.hardware.broadcastradio.V2_0.ProgramInfo; 96 private ProgramInfo mHalCurrentInfo; 336 RadioManager.ProgramInfo tuneInfo = in tune_withOneSession() 349 RadioManager.ProgramInfo tuneInfo = in tune_withMultipleSessions() 398 RadioManager.ProgramInfo tuneInfo = in tune_forNonCurrentUser_doesNotTune() 438 RadioManager.ProgramInfo stepUpInfo = TestUtils.makeProgramInfo( in step_withDirectionUp() 454 RadioManager.ProgramInfo stepDownInfo = TestUtils.makeProgramInfo( in step_withDirectionDown() 499 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionUp() 529 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_withDirectionDown() 546 RadioManager.ProgramInfo seekUpInfo = TestUtils.makeProgramInfo( in seek_forNonCurrentUser_doesNotSeek() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCache.java | 49 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/ |
D | ProgramInfoCache.java | 61 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 …]
|
D | ConversionUtils.java | 33 import android.hardware.broadcastradio.ProgramInfo; 676 static RadioManager.ProgramInfo programInfoFromHalProgramInfo(ProgramInfo info) { in programInfoFromHalProgramInfo() 691 return new RadioManager.ProgramInfo( in programInfoFromHalProgramInfo() 702 return new RadioManager.ProgramInfo( in programInfoFromHalProgramInfo() 716 static RadioManager.ProgramInfo tunedProgramInfoFromHalProgramInfo(ProgramInfo info) { in tunedProgramInfoFromHalProgramInfo() 782 static boolean programInfoMeetsSdkVersionRequirement(RadioManager.ProgramInfo info, int uid) { in programInfoMeetsSdkVersionRequirement() 802 Set<RadioManager.ProgramInfo> modified = new ArraySet<>(); in convertChunkToTargetSdkVersion() 803 Iterator<RadioManager.ProgramInfo> modifiedIterator = chunk.getModified().iterator(); in convertChunkToTargetSdkVersion() 805 RadioManager.ProgramInfo info = modifiedIterator.next(); in convertChunkToTargetSdkVersion()
|
D | RadioModule.java | 29 import android.hardware.broadcastradio.ProgramInfo; 74 private RadioManager.ProgramInfo mCurrentProgramInfo; 122 public void onCurrentProgramInfoChanged(ProgramInfo halProgramInfo) { 124 RadioManager.ProgramInfo currentProgramInfo = 260 RadioManager.ProgramInfo currentProgramInfo; in openSession()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | ProgramList.java | 50 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 …]
|
D | TunerCallbackAdapter.java | 48 @Nullable List<RadioManager.ProgramInfo> mLastCompleteList; 54 @Nullable RadioManager.ProgramInfo mCurrentProgramInfo; 115 @Nullable List<RadioManager.ProgramInfo> getLastCompleteList() { in getLastCompleteList() 127 @Nullable RadioManager.ProgramInfo getCurrentProgramInformation() { in getCurrentProgramInformation() 185 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
|
D | RadioTuner.java | 333 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()
|
D | RadioManager.aidl | 29 parcelable RadioManager.ProgramInfo;
|
D | TunerAdapter.java | 239 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()
|
D | RadioManager.java | 1528 public static class ProgramInfo implements Parcelable { class in RadioManager 1553 public ProgramInfo(@NonNull ProgramSelector selector, in ProgramInfo() method in RadioManager.ProgramInfo 1577 public ProgramInfo(@NonNull ProgramSelector selector, in ProgramInfo() method in RadioManager.ProgramInfo 1819 private ProgramInfo(Parcel in) { in ProgramInfo() method in RadioManager.ProgramInfo 1836 public static final @android.annotation.NonNull Parcelable.Creator<ProgramInfo> CREATOR 1837 = new Parcelable.Creator<ProgramInfo>() { 1838 public ProgramInfo createFromParcel(Parcel in) { 1839 return new ProgramInfo(in); 1842 public ProgramInfo[] newArray(int size) { 1843 return new ProgramInfo[size]; [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | TunerCallback.cpp | 50 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()
|
D | convert.h | 54 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/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioManagerTest.java | 148 private static final RadioManager.ProgramInfo DAB_PROGRAM_INFO = 150 private static final RadioManager.ProgramInfo HD_PROGRAM_INFO = createHdProgramInfo( 152 private static final RadioManager.ProgramInfo HD_PROGRAM_INFO_WITH_ALERT = createHdProgramInfo( 1192 RadioManager.ProgramInfo[] programInfoArray = in newArray_forProgramInfoCreator() 1193 RadioManager.ProgramInfo.CREATOR.newArray(CREATOR_ARRAY_SIZE); in newArray_forProgramInfoCreator() 1205 RadioManager.ProgramInfo programInfoFromParcel = in writeToParcel_forProgramInfo() 1206 RadioManager.ProgramInfo.CREATOR.createFromParcel(parcel); in writeToParcel_forProgramInfo() 1221 RadioManager.ProgramInfo sameProgramInfoWithAlert = createHdProgramInfo(HD_SELECTOR, in equals_forProgramInfoWithAlertAndFlagEnabled() 1238 RadioManager.ProgramInfo sameProgramInfoWithAlert = createHdProgramInfo(HD_SELECTOR, in hashcode_forProgramInfoWithAlertAndFlagEnabled() 1254 RadioManager.ProgramInfo programInfoFromParcel = in writeToParcel_forProgramInfoWithAlertAndFlagDisabled() [all …]
|
D | DefaultRadioTunerTest.java | 85 public int getProgramInformation(RadioManager.ProgramInfo[] info) { 96 public List<RadioManager.ProgramInfo> getProgramList(
|
D | TunerAdapterTest.java | 68 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()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/ |
D | TunerCallback.java | 121 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()
|
D | Tuner.java | 94 private native List<RadioManager.ProgramInfo> nativeGetProgramList(long nativeContext, in nativeGetProgramList() 276 List<RadioManager.ProgramInfo> getProgramList(Map vendorFilter) { in getProgramList() 280 List<RadioManager.ProgramInfo> list = nativeGetProgramList(mNativeContext, sFilter); in getProgramList()
|