/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioManagerTest.java | 56 private static final int REGION = RadioManager.REGION_ITU_2; 71 private static final int CLASS_ID = RadioManager.CLASS_AM_FM; 88 private static final RadioManager.FmBandDescriptor FM_BAND_DESCRIPTOR = 90 private static final RadioManager.AmBandDescriptor AM_BAND_DESCRIPTOR = 92 private static final RadioManager.FmBandConfig FM_BAND_CONFIG = createFmBandConfig(); 93 private static final RadioManager.AmBandConfig AM_BAND_CONFIG = createAmBandConfig(); 94 private static final RadioManager.ModuleProperties AMFM_PROPERTIES = 145 private static final RadioManager.ProgramInfo DAB_PROGRAM_INFO = 147 private static final RadioManager.ProgramInfo HD_PROGRAM_INFO = createHdProgramInfo( 155 private RadioManager mRadioManager; [all …]
|
D | TunerAdapterTest.java | 61 private static final RadioManager.BandConfig TEST_BAND_CONFIG = createBandConfig(); 68 private static final RadioManager.ProgramInfo FM_PROGRAM_INFO = createFmProgramInfo(); 90 RadioManager radioManager = new RadioManager(mContextMock, mRadioServiceMock); in setUp() 108 return RadioManager.STATUS_OK; in setUp() 143 .that(status).isEqualTo(RadioManager.STATUS_OK); in setConfiguration_forTunerAdapter() 149 .that(mRadioTuner.setConfiguration(null)).isEqualTo(RadioManager.STATUS_BAD_VALUE); in setConfiguration_withNull_fails() 158 .isEqualTo(RadioManager.STATUS_BAD_VALUE); in setConfiguration_withInvalidParameters_fails() 167 .isEqualTo(RadioManager.STATUS_DEAD_OBJECT); in setConfiguration_whenServiceDied_fails() 173 RadioManager.BandConfig[] bandConfigs = new RadioManager.BandConfig[1]; in getConfiguration_forTunerAdapter() 178 .that(status).isEqualTo(RadioManager.STATUS_OK); in getConfiguration_forTunerAdapter() [all …]
|
D | DefaultRadioTunerTest.java | 39 public int setConfiguration(RadioManager.BandConfig config) { 44 public int getConfiguration(RadioManager.BandConfig[] config) { 85 public int getProgramInformation(RadioManager.ProgramInfo[] info) { 96 public List<RadioManager.ProgramInfo> getProgramList(
|
/frameworks/base/core/java/android/hardware/radio/ |
D | TunerAdapter.java | 45 @RadioManager.Band 55 @RadioManager.Band int band) { in TunerAdapter() 83 public int setConfiguration(RadioManager.BandConfig config) { in setConfiguration() 85 return RadioManager.STATUS_BAD_VALUE; in setConfiguration() 92 return RadioManager.STATUS_OK; in setConfiguration() 95 return RadioManager.STATUS_BAD_VALUE; in setConfiguration() 98 return RadioManager.STATUS_DEAD_OBJECT; in setConfiguration() 103 public int getConfiguration(RadioManager.BandConfig[] config) { in getConfiguration() 109 return RadioManager.STATUS_OK; in getConfiguration() 112 return RadioManager.STATUS_DEAD_OBJECT; in getConfiguration() [all …]
|
D | RadioTuner.java | 83 @RadioManager.RadioStatusType 84 public abstract int setConfiguration(RadioManager.BandConfig config); in setConfiguration() 105 @RadioManager.RadioStatusType 106 public abstract int getConfiguration(RadioManager.BandConfig[] config); in getConfiguration() 130 @RadioManager.RadioStatusType 167 @RadioManager.RadioStatusType 197 @RadioManager.RadioStatusType 225 @RadioManager.RadioStatusType 257 @RadioManager.RadioStatusType 296 @RadioManager.RadioStatusType [all …]
|
D | TunerCallbackAdapter.java | 48 @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() 150 case RadioManager.STATUS_PERMISSION_DENIED: in onTuneFailed() 151 case RadioManager.STATUS_DEAD_OBJECT: in onTuneFailed() 154 case RadioManager.STATUS_ERROR: in onTuneFailed() 155 case RadioManager.STATUS_NO_INIT: in onTuneFailed() 156 case RadioManager.STATUS_BAD_VALUE: in onTuneFailed() 157 case RadioManager.STATUS_INVALID_OPERATION: in onTuneFailed() [all …]
|
D | RadioManager.aidl | 20 parcelable RadioManager.BandConfig; 23 parcelable RadioManager.BandDescriptor; 26 parcelable RadioManager.ModuleProperties; 29 parcelable RadioManager.ProgramInfo;
|
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 | ProgramSelector.java | 589 @RadioManager.Band int band, int frequencyKhz) { in createAmFmSelector() 626 @RadioManager.Band int band, int frequencyKhz, int subChannel) { in createAmFmSelector() 627 if (band == RadioManager.BAND_INVALID) { in createAmFmSelector() 630 band = (subChannel <= 0) ? RadioManager.BAND_AM : RadioManager.BAND_AM_HD; in createAmFmSelector() 632 band = (subChannel <= 0) ? RadioManager.BAND_FM : RadioManager.BAND_FM_HD; in createAmFmSelector() 636 boolean isAm = (band == RadioManager.BAND_AM || band == RadioManager.BAND_AM_HD); in createAmFmSelector() 637 boolean isDigital = (band == RadioManager.BAND_AM_HD || band == RadioManager.BAND_FM_HD); in createAmFmSelector() 638 if (!isAm && !isDigital && band != RadioManager.BAND_FM) { in createAmFmSelector()
|
D | IRadioService.aidl | 23 import android.hardware.radio.RadioManager; 31 List<RadioManager.ModuleProperties> listModules(); in listModules() 33 ITuner openTuner(int moduleId, in RadioManager.BandConfig bandConfig, boolean withAudio, in openTuner()
|
D | ITunerCallback.aidl | 21 import android.hardware.radio.RadioManager; 35 void onConfigurationChanged(in RadioManager.BandConfig config); in onConfigurationChanged() 36 void onCurrentProgramInfoChanged(in RadioManager.ProgramInfo info); in onCurrentProgramInfoChanged()
|
D | ITuner.aidl | 22 import android.hardware.radio.RadioManager; 33 void setConfiguration(in RadioManager.BandConfig config); in setConfiguration() 35 RadioManager.BandConfig getConfiguration(); in getConfiguration()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCache.java | 23 import android.hardware.radio.RadioManager; 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() 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 …]
|
D | Convert.java | 36 import android.hardware.radio.RadioManager; 194 private static @NonNull RadioManager.BandDescriptor[] 196 if (config == null) return new RadioManager.BandDescriptor[0]; in amfmConfigToBands() 199 List<RadioManager.BandDescriptor> bands = new ArrayList<>(len); in amfmConfigToBands() 202 int region = RadioManager.REGION_ITU_1; in amfmConfigToBands() 211 bands.add(new RadioManager.FmBandDescriptor(region, RadioManager.BAND_FM, in amfmConfigToBands() 218 bands.add(new RadioManager.AmBandDescriptor(region, RadioManager.BAND_AM, in amfmConfigToBands() 227 return bands.toArray(new RadioManager.BandDescriptor[bands.size()]); in amfmConfigToBands() 236 static @NonNull RadioManager.ModuleProperties 246 return new RadioManager.ModuleProperties( in propertiesFromHal() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | ProgramInfoCache.java | 23 import android.hardware.radio.RadioManager; 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() [all …]
|
D | ConversionUtils.java | 39 import android.hardware.radio.RadioManager; 257 private static RadioManager.BandDescriptor[] amfmConfigToBands( in amfmConfigToBands() 260 return new RadioManager.BandDescriptor[0]; in amfmConfigToBands() 264 List<RadioManager.BandDescriptor> bands = new ArrayList<>(); in amfmConfigToBands() 267 int region = RadioManager.REGION_ITU_1; in amfmConfigToBands() 276 bands.add(new RadioManager.FmBandDescriptor(region, RadioManager.BAND_FM, in amfmConfigToBands() 285 bands.add(new RadioManager.AmBandDescriptor(region, RadioManager.BAND_AM, in amfmConfigToBands() 295 return bands.toArray(RadioManager.BandDescriptor[]::new); in amfmConfigToBands() 311 static RadioManager.ModuleProperties propertiesFromHalProperties(int id, in propertiesFromHalProperties() 319 return new RadioManager.ModuleProperties( in propertiesFromHalProperties() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/ |
D | BroadcastRadioService.java | 22 import android.hardware.radio.RadioManager; 49 private native List<RadioManager.ModuleProperties> nativeLoadModules(long nativeContext); in nativeLoadModules() 51 RadioManager.BandConfig config, boolean withAudio, ITunerCallback callback); in nativeOpenTuner() 53 public @NonNull List<RadioManager.ModuleProperties> loadModules() { in loadModules() 59 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner()
|
D | Tuner.java | 26 import android.hardware.radio.RadioManager; 81 @NonNull RadioManager.BandConfig config); in nativeSetConfiguration() 82 private native RadioManager.BandConfig nativeGetConfiguration(long nativeContext, int region); in nativeGetConfiguration() 92 private native List<RadioManager.ProgramInfo> nativeGetProgramList(long nativeContext, in nativeGetProgramList() 129 public void setConfiguration(RadioManager.BandConfig config) { in setConfiguration() 145 public RadioManager.BandConfig getConfiguration() { in getConfiguration() 274 List<RadioManager.ProgramInfo> getProgramList(Map vendorFilter) { in getProgramList() 278 List<RadioManager.ProgramInfo> list = nativeGetProgramList(mNativeContext, sFilter); in getProgramList() 308 return flag == RadioManager.CONFIG_FORCE_ANALOG; in isConfigFlagSupported() 313 if (flag == RadioManager.CONFIG_FORCE_ANALOG) { in isConfigFlagSet() [all …]
|
D | TunerCallback.java | 24 import android.hardware.radio.RadioManager; 115 public void onConfigurationChanged(RadioManager.BandConfig config) { in onConfigurationChanged() 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()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCacheTest.java | 24 import android.hardware.radio.RadioManager; 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() [all …]
|
D | TestUtils.java | 24 import android.hardware.radio.RadioManager; 36 static RadioManager.ModuleProperties makeDefaultModuleProperties() { in makeDefaultModuleProperties() 37 return new RadioManager.ModuleProperties( in makeDefaultModuleProperties() 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()
|
D | ConvertTest.java | 33 import android.hardware.radio.RadioManager; 73 private static final RadioManager.ModuleProperties MODULE_PROPERTIES = 149 RadioManager.BandDescriptor[] bands = MODULE_PROPERTIES.getBands(); in propertiesFromHalProperties_bandsMatch() 175 RadioManager.ModuleProperties properties = convertToModuleProperties(amFmRegionConfig, in propertiesFromHalProperties_withInvalidBand() 178 RadioManager.BandDescriptor[] bands = properties.getBands(); in propertiesFromHalProperties_withInvalidBand() 260 RadioManager.ProgramInfo info = Convert.programInfoFromHal(halInfo); in programInfoFromHal_withMetadata() 273 private static RadioManager.ModuleProperties convertToModuleProperties() { in convertToModuleProperties() 282 private static RadioManager.ModuleProperties convertToModuleProperties( in convertToModuleProperties()
|
D | StartProgramListUpdatesFanoutTest.java | 37 import android.hardware.radio.RadioManager; 82 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()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | AidlTestUtils.java | 26 import android.hardware.radio.RadioManager; 41 static RadioManager.ModuleProperties makeDefaultModuleProperties() { in makeDefaultModuleProperties() 42 return new RadioManager.ModuleProperties( in makeDefaultModuleProperties() 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() 103 static ProgramInfo programInfoToHalProgramInfo(RadioManager.ProgramInfo info) { in programInfoToHalProgramInfo() 134 List<RadioManager.ProgramInfo> modified, List<ProgramSelector.Identifier> removed) { in makeHalChunk() 160 List<RadioManager.ProgramInfo> modified, in makeChunk() 162 ArraySet<RadioManager.ProgramInfo> modifiedSet = new ArraySet<>(); in makeChunk()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/ |
D | IRadioServiceHidlImpl.java | 26 import android.hardware.radio.RadioManager; 60 private final List<RadioManager.ModuleProperties> mV1Modules; 66 OptionalInt max = mV1Modules.stream().mapToInt(RadioManager.ModuleProperties::getId).max(); in IRadioServiceHidlImpl() 84 public List<RadioManager.ModuleProperties> listModules() { in listModules() 86 Collection<RadioManager.ModuleProperties> v2Modules = mHal2Client.listModules(); in listModules() 87 List<RadioManager.ModuleProperties> modules; in listModules() 97 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner()
|