/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | ProgramListTest.java | 115 private static final ProgramList.Chunk FM_DAB_ADD_CHUNK = new ProgramList.Chunk(IS_PURGE, 118 private static final ProgramList.Chunk FM_ADD_INCOMPLETE_CHUNK = new ProgramList.Chunk(IS_PURGE, 120 private static final ProgramList.Filter TEST_FILTER = new ProgramList.Filter( 135 private ProgramList mProgramList; 137 private ProgramList.ListCallback[] mListCallbackMocks; 138 private ProgramList.OnCompleteListener[] mOnCompleteListenerMocks; 155 ProgramList.Filter filter = new ProgramList.Filter(FILTER_IDENTIFIER_TYPES, in getIdentifierTypes_forFilter() 164 ProgramList.Filter filter = new ProgramList.Filter(FILTER_IDENTIFIER_TYPES, in getIdentifiers_forFilter() 173 ProgramList.Filter filter = new ProgramList.Filter(FILTER_IDENTIFIER_TYPES, in areCategoriesIncluded_forFilter() 182 ProgramList.Filter filter = new ProgramList.Filter(FILTER_IDENTIFIER_TYPES, in areModificationsExcluded_forFilter() [all …]
|
D | DefaultRadioTunerTest.java | 145 .that(DEFAULT_RADIO_TUNER.getDynamicProgramList(new ProgramList.Filter())).isNull(); in getDynamicProgramList_forRadioTuner_returnsNull()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | ProgramInfoCacheTest.java | 22 import android.hardware.radio.ProgramList; 145 ProgramList.Filter fmFilter = new ProgramList.Filter( in getFilter_forProgramInfoCache() 221 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withEmptyFilter() 236 new ProgramList.Filter(Set.of(ProgramSelector.IDENTIFIER_TYPE_AMFM_FREQUENCY, in filterAndUpdateFromInternal_withFilterByIdentifierType() 249 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter( in filterAndUpdateFromInternal_withFilterByIdentifier() 253 List<ProgramList.Chunk> programListChunks = cache.filterAndUpdateFromInternal( in filterAndUpdateFromInternal_withFilterByIdentifier() 269 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withPurging() 275 List<ProgramList.Chunk> programListChunks = cache.filterAndUpdateFromInternal(otherCache, in filterAndUpdateFromInternal_withPurging() 288 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new ArraySet<>(), in filterAndUpdateFromInternal_withoutPurging() 295 List<ProgramList.Chunk> programListChunks = cache.filterAndUpdateFromInternal(otherCache, in filterAndUpdateFromInternal_withoutPurging() [all …]
|
D | TunerSessionTest.java | 47 import android.hardware.radio.ProgramList; 699 ProgramList.Filter filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates_withEmptyFilter() 707 ProgramList.Chunk expectedProgramList = in startProgramListUpdates_withEmptyFilter() 721 ProgramList.Filter filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates_withCallbackCalledForMultipleTimes() 745 ProgramList.Filter filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates_withTheSameFilterForMultipleTimes() 799 ProgramList.Filter idFilter = new ProgramList.Filter(new ArraySet<>(), in startProgramListUpdates_withIdFilter() 822 ProgramList.Filter filterExcludingModifications = new ProgramList.Filter( in startProgramListUpdates_withFilterExcludingModifications() 848 ProgramList.Filter filterIncludingModifications = new ProgramList.Filter( in startProgramListUpdates_withFilterIncludingModifications() 874 ProgramList.Filter filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in onProgramListUpdated_afterSessionClosed_doesNotUpdates() 893 ProgramList.Filter fmIdFilter = new ProgramList.Filter(new ArraySet<>(), in startProgramListUpdates_forMultipleSessions() [all …]
|
D | AidlTestUtils.java | 24 import android.hardware.radio.ProgramList; 159 static ProgramList.Chunk makeChunk(boolean purge, boolean complete, in makeChunk() 170 ProgramList.Chunk chunk = new ProgramList.Chunk(purge, complete, modifiedSet, removedSet); in makeChunk()
|
D | ConversionUtilsTest.java | 38 import android.hardware.radio.ProgramList; 649 ProgramList.Chunk chunk = new ProgramList.Chunk(/* purge= */ true, in convertChunkToTargetSdkVersion_withLowerSdkVersion() 653 ProgramList.Chunk convertedChunk = ConversionUtils.convertChunkToTargetSdkVersion(chunk, in convertChunkToTargetSdkVersion_withLowerSdkVersion() 676 ProgramList.Chunk chunk = new ProgramList.Chunk(/* purge= */ true, in convertChunkToTargetSdkVersion_withRequiredSdkVersion() 680 ProgramList.Chunk convertedChunk = ConversionUtils.convertChunkToTargetSdkVersion(chunk, in convertChunkToTargetSdkVersion_withRequiredSdkVersion() 911 ProgramList.Filter filter = new ProgramList.Filter(/* identifierTypes */ new ArraySet<>(), in filterToHalProgramFilter_withInvalidIdentifier()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/ |
D | TunerCallback.java | 22 import android.hardware.radio.ProgramList; 49 private final AtomicReference<ProgramList.Filter> mProgramListFilter = new AtomicReference<>(); 90 void startProgramListUpdates(@Nullable ProgramList.Filter filter) { in startProgramListUpdates() 91 if (filter == null) filter = new ProgramList.Filter(); in startProgramListUpdates() 157 ProgramList.Filter filter = mProgramListFilter.get(); in sendProgramListUpdate() 168 ProgramList.Chunk chunk = new ProgramList.Chunk(true, true, modifiedSet, null); in sendProgramListUpdate() 173 public void onProgramListUpdated(ProgramList.Chunk chunk) { in onProgramListUpdated()
|
D | Tuner.java | 24 import android.hardware.radio.ProgramList; 287 public void startProgramListUpdates(ProgramList.Filter filter) { in startProgramListUpdates()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCacheTest.java | 22 import android.hardware.radio.ProgramList; 141 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testEmptyFilter() 154 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(filterTypes, in testFilterByType() 166 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testFilterByIdentifier() 175 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testFilterExcludeCategories() 186 List<ProgramList.Chunk> chunks = in testPurgeUpdateChunks() 221 List<ProgramList.Chunk> chunks = cache.filterAndUpdateFromInternal(halCache, false, 5, 1); in testDeltaUpdateChunksModificationsIncluded() 235 ProgramInfoCache cache = new ProgramInfoCache(new ProgramList.Filter(new HashSet<Integer>(), in testDeltaUpdateChunksModificationsExcluded() 256 List<ProgramList.Chunk> chunks = cache.filterAndUpdateFromInternal(halCache, false, 5, 1); in testDeltaUpdateChunksModificationsExcluded() 278 List<ProgramList.Chunk> programListChunks = cache.filterAndApplyChunkInternal(halChunk, in filterAndApplyChunkInternal_withInvalidIdentifier() [all …]
|
D | StartProgramListUpdatesFanoutTest.java | 35 import android.hardware.radio.ProgramList; 140 ProgramList.Filter aidlFilter = new ProgramList.Filter(new HashSet<Integer>(), in testFanout() 180 ProgramList.Filter idFilter = new ProgramList.Filter(new HashSet<Integer>(), in testFiltering() 182 ProgramList.Filter categoryFilter = new ProgramList.Filter(new HashSet<Integer>(), in testFiltering() 184 ProgramList.Filter typeFilterWithoutModifications = new ProgramList.Filter( in testFiltering() 187 ProgramList.Filter typeFilterWithModifications = new ProgramList.Filter( in testFiltering() 244 ProgramList.Filter idFilter = new ProgramList.Filter(new HashSet<Integer>(), in testClientClosing() 247 ProgramList.Filter typeFilter = new ProgramList.Filter( in testClientClosing() 346 ProgramList.Chunk expectedChunk = new ProgramList.Chunk(purge, true, modifiedSet, in verifyAidlClientReceivedChunk()
|
D | TunerSessionHidlTest.java | 43 import android.hardware.radio.ProgramList; 677 ProgramList.Filter filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates_forNonCurrentUser_doesNotStartUpdates() 703 ProgramList.Filter aidlFilter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in stopProgramListUpdates() 715 ProgramList.Filter aidlFilter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in stopProgramListUpdates_forNonCurrentUser_doesNotStopUpdates()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCache.java | 21 import android.hardware.radio.ProgramList; 58 private final ProgramList.Filter mFilter; 60 ProgramInfoCache(@Nullable ProgramList.Filter filter) { in ProgramInfoCache() 66 ProgramInfoCache(@Nullable ProgramList.Filter filter, boolean complete, in ProgramInfoCache() 107 public @Nullable ProgramList.Filter getFilter() { in getFilter() 125 List<ProgramList.Chunk> filterAndUpdateFrom(ProgramInfoCache other, boolean purge) { in filterAndUpdateFrom() 131 List<ProgramList.Chunk> filterAndUpdateFromInternal(ProgramInfoCache other, in filterAndUpdateFromInternal() 174 List<ProgramList.Chunk> filterAndApplyChunk(ProgramListChunk chunk) { in filterAndApplyChunk() 181 List<ProgramList.Chunk> filterAndApplyChunkInternal(ProgramListChunk chunk, in filterAndApplyChunkInternal() 274 private static List<ProgramList.Chunk> buildChunks(boolean purge, boolean complete, in buildChunks() [all …]
|
D | TunerSession.java | 27 import android.hardware.radio.ProgramList; 243 public void startProgramListUpdates(ProgramList.Filter filter) { in startProgramListUpdates() 253 filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates() 265 ProgramList.Filter getProgramListFilter() { in getProgramListFilter() 272 List<ProgramList.Chunk> clientUpdateChunks = null; in onMergedProgramListUpdateFromHal() 283 List<ProgramList.Chunk> clientUpdateChunks = null; in updateProgramInfoFromHalCache() 293 private void dispatchClientUpdateChunks(@Nullable List<ProgramList.Chunk> chunks) { in dispatchClientUpdateChunks() 297 for (ProgramList.Chunk chunk : chunks) { in dispatchClientUpdateChunks()
|
D | RadioModule.java | 84 private android.hardware.radio.ProgramList.Filter mUnionOfAidlProgramFilters = null; 245 private android.hardware.radio.ProgramList.Filter 253 android.hardware.radio.ProgramList.Filter filter = in buildUnionOfTunerSessionFiltersLocked() 286 return idTypes == null ? null : new android.hardware.radio.ProgramList.Filter(idTypes, ids, in buildUnionOfTunerSessionFiltersLocked() 298 android.hardware.radio.ProgramList.Filter newFilter = in onTunerSessionProgramListFilterChangedLocked()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | ProgramInfoCache.java | 21 import android.hardware.radio.ProgramList; 74 @Nullable private final ProgramList.Filter mFilter; 76 ProgramInfoCache(@Nullable ProgramList.Filter filter) { in ProgramInfoCache() 81 ProgramInfoCache(@Nullable ProgramList.Filter filter, boolean complete, in ProgramInfoCache() 122 public ProgramList.Filter getFilter() { in getFilter() 150 List<ProgramList.Chunk> filterAndUpdateFromInternal(ProgramInfoCache other, in filterAndUpdateFromInternal() 157 List<ProgramList.Chunk> filterAndUpdateFromInternal(ProgramInfoCache other, in filterAndUpdateFromInternal() 200 List<ProgramList.Chunk> filterAndApplyChunk(ProgramListChunk chunk) { in filterAndApplyChunk() 207 List<ProgramList.Chunk> filterAndApplyChunkInternal(ProgramListChunk chunk, in filterAndApplyChunkInternal() 307 private static List<ProgramList.Chunk> buildChunks(boolean purge, boolean complete, in buildChunks() [all …]
|
D | TunerSession.java | 25 import android.hardware.radio.ProgramList; 269 public void startProgramListUpdates(ProgramList.Filter filter) throws RemoteException { in startProgramListUpdates() 279 filter = new ProgramList.Filter(new ArraySet<>(), new ArraySet<>(), in startProgramListUpdates() 296 ProgramList.Filter getProgramListFilter() { in getProgramListFilter() 303 List<ProgramList.Chunk> clientUpdateChunks; in onMergedProgramListUpdateFromHal() 314 List<ProgramList.Chunk> clientUpdateChunks; in updateProgramInfoFromHalCache() 325 private void dispatchClientUpdateChunks(@Nullable List<ProgramList.Chunk> chunks) { in dispatchClientUpdateChunks() 332 ProgramList.Chunk downgradedChunk = in dispatchClientUpdateChunks()
|
D | RadioModule.java | 79 private android.hardware.radio.ProgramList.Filter mUnionOfAidlProgramFilters; 301 private android.hardware.radio.ProgramList.Filter buildUnionOfTunerSessionFiltersLocked() { in buildUnionOfTunerSessionFiltersLocked() 308 android.hardware.radio.ProgramList.Filter filter = in buildUnionOfTunerSessionFiltersLocked() 341 return idTypes == null ? null : new android.hardware.radio.ProgramList.Filter(idTypes, ids, in buildUnionOfTunerSessionFiltersLocked() 353 android.hardware.radio.ProgramList.Filter newFilter = in onTunerSessionProgramListFilterChangedLocked()
|
D | ConversionUtils.java | 37 import android.hardware.radio.ProgramList; 627 static ProgramFilter filterToHalProgramFilter(@Nullable ProgramList.Filter filter) { in filterToHalProgramFilter() 629 filter = new ProgramList.Filter(); in filterToHalProgramFilter() 702 static ProgramList.Chunk convertChunkToTargetSdkVersion(ProgramList.Chunk chunk, int uid) { in convertChunkToTargetSdkVersion() 719 return new ProgramList.Chunk(chunk.isPurge(), chunk.isComplete(), modified, removed); in convertChunkToTargetSdkVersion()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | ProgramList.aidl | 20 parcelable ProgramList.Filter; 23 parcelable ProgramList.Chunk;
|
D | TunerAdapter.java | 49 private ProgramList mLegacyListProxy; 287 mLegacyListProxy = new ProgramList(); in getProgramList() 296 mTuner.startProgramListUpdates(new ProgramList.Filter(vendorFilter)); in getProgramList() 310 public ProgramList getDynamicProgramList(@Nullable ProgramList.Filter filter) { in getDynamicProgramList() 318 ProgramList list = new ProgramList(); in getDynamicProgramList()
|
D | ITunerCallback.aidl | 19 import android.hardware.radio.ProgramList; 43 void onProgramListUpdated(in ProgramList.Chunk chunk); in onProgramListUpdated()
|
D | ITuner.aidl | 20 import android.hardware.radio.ProgramList; 75 void startProgramListUpdates(in ProgramList.Filter filter); in startProgramListUpdates()
|
D | TunerCallbackAdapter.java | 41 @Nullable ProgramList mProgramList; 73 void setProgramListObserver(@Nullable ProgramList programList, in setProgramListObserver() 74 ProgramList.OnCloseListener closeListener) { in setProgramListObserver() 246 public void onProgramListUpdated(ProgramList.Chunk chunk) { in onProgramListUpdated()
|
D | RadioTuner.java | 413 public @Nullable ProgramList getDynamicProgramList(@Nullable ProgramList.Filter filter) { in getDynamicProgramList()
|
D | ProgramList.java | 44 public final class ProgramList implements AutoCloseable { class 67 ProgramList() {} in ProgramList() method in ProgramList 198 List<ProgramList.ListCallback> listCallbacksCopied; in apply()
|