Home
last modified time | relevance | path

Searched refs:RadioManager (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/hardware/radio/
DTunerAdapter.java39 private @RadioManager.Band int mBand;
45 @RadioManager.Band int band) { in TunerAdapter()
73 public int setConfiguration(RadioManager.BandConfig config) { in setConfiguration()
74 if (config == null) return RadioManager.STATUS_BAD_VALUE; in setConfiguration()
78 return RadioManager.STATUS_OK; in setConfiguration()
81 return RadioManager.STATUS_BAD_VALUE; in setConfiguration()
84 return RadioManager.STATUS_DEAD_OBJECT; in setConfiguration()
89 public int getConfiguration(RadioManager.BandConfig[] config) { in getConfiguration()
95 return RadioManager.STATUS_OK; in getConfiguration()
98 return RadioManager.STATUS_DEAD_OBJECT; in getConfiguration()
[all …]
DTunerCallbackAdapter.java43 @Nullable List<RadioManager.ProgramInfo> mLastCompleteList;
45 @Nullable RadioManager.ProgramInfo mCurrentProgramInfo;
93 @Nullable List<RadioManager.ProgramInfo> getLastCompleteList() { in getLastCompleteList()
105 @Nullable RadioManager.ProgramInfo getCurrentProgramInformation() { in getCurrentProgramInformation()
126 case RadioManager.STATUS_PERMISSION_DENIED: in onTuneFailed()
127 case RadioManager.STATUS_DEAD_OBJECT: in onTuneFailed()
130 case RadioManager.STATUS_ERROR: in onTuneFailed()
131 case RadioManager.STATUS_NO_INIT: in onTuneFailed()
132 case RadioManager.STATUS_BAD_VALUE: in onTuneFailed()
133 case RadioManager.STATUS_INVALID_OPERATION: in onTuneFailed()
[all …]
DRadioTuner.java70 public abstract int setConfiguration(RadioManager.BandConfig config); in setConfiguration()
89 public abstract int getConfiguration(RadioManager.BandConfig[] config); in getConfiguration()
239 public abstract int getProgramInformation(RadioManager.ProgramInfo[] info); in getProgramInformation()
293 public abstract @NonNull List<RadioManager.ProgramInfo>
346 public boolean isConfigFlagSupported(@RadioManager.ConfigFlag int flag) { in isConfigFlagSupported()
360 public boolean isConfigFlagSet(@RadioManager.ConfigFlag int flag) { in isConfigFlagSet()
374 public void setConfigFlag(@RadioManager.ConfigFlag int flag, boolean value) { in setConfigFlag()
530 public void onConfigurationChanged(RadioManager.BandConfig config) {} in onConfigurationChanged()
539 public void onProgramInfoChanged(RadioManager.ProgramInfo info) {} in onProgramInfoChanged()
DProgramSelector.java407 @RadioManager.Band int band, int frequencyKhz) { in createAmFmSelector()
444 @RadioManager.Band int band, int frequencyKhz, int subChannel) { in createAmFmSelector()
445 if (band == RadioManager.BAND_INVALID) { in createAmFmSelector()
448 band = (subChannel <= 0) ? RadioManager.BAND_AM : RadioManager.BAND_AM_HD; in createAmFmSelector()
450 band = (subChannel <= 0) ? RadioManager.BAND_FM : RadioManager.BAND_FM_HD; in createAmFmSelector()
454 boolean isAm = (band == RadioManager.BAND_AM || band == RadioManager.BAND_AM_HD); in createAmFmSelector()
455 boolean isDigital = (band == RadioManager.BAND_AM_HD || band == RadioManager.BAND_FM_HD); in createAmFmSelector()
456 if (!isAm && !isDigital && band != RadioManager.BAND_FM) { in createAmFmSelector()
DRadioManager.aidl20 parcelable RadioManager.BandConfig;
23 parcelable RadioManager.ModuleProperties;
26 parcelable RadioManager.ProgramInfo;
DIRadioService.aidl23 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()
DITunerCallback.aidl21 import android.hardware.radio.RadioManager;
28 void onConfigurationChanged(in RadioManager.BandConfig config); in onConfigurationChanged()
29 void onCurrentProgramInfoChanged(in RadioManager.ProgramInfo info); in onCurrentProgramInfoChanged()
DITuner.aidl22 import android.hardware.radio.RadioManager;
33 void setConfiguration(in RadioManager.BandConfig config); in setConfiguration()
35 RadioManager.BandConfig getConfiguration(); in getConfiguration()
DProgramList.java44 private final Map<ProgramSelector.Identifier, RadioManager.ProgramInfo> mPrograms =
196 private void putLocked(@NonNull RadioManager.ProgramInfo value) { in putLocked()
204 RadioManager.ProgramInfo removed = mPrograms.remove(Objects.requireNonNull(key)); in removeLocked()
215 public @NonNull List<RadioManager.ProgramInfo> toList() { in toList()
227 public @Nullable RadioManager.ProgramInfo get(@NonNull ProgramSelector.Identifier id) { in get()
380 private final @NonNull Set<RadioManager.ProgramInfo> mModified;
384 @Nullable Set<RadioManager.ProgramInfo> modified, in Chunk()
395 mModified = Utils.createSet(in, RadioManager.ProgramInfo.CREATOR); in Chunk()
430 public @NonNull Set<RadioManager.ProgramInfo> getModified() { in getModified()
DRadioManager.java64 public class RadioManager { class
1844 public RadioManager(@NonNull Context context) throws ServiceNotFoundException { in RadioManager() method in RadioManager
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
DRadioTunerTest.java22 import android.hardware.radio.RadioManager;
73 private RadioManager mRadioManager;
75 private RadioManager.ModuleProperties mModule;
76 private final List<RadioManager.ModuleProperties> mModules = new ArrayList<>();
79 RadioManager.AmBandDescriptor mAmBandDescriptor;
80 RadioManager.FmBandDescriptor mFmBandDescriptor;
82 RadioManager.BandConfig mAmBandConfig;
83 RadioManager.BandConfig mFmBandConfig;
100 mRadioManager = (RadioManager)mContext.getSystemService(Context.RADIO_SERVICE); in setup()
104 assertEquals(RadioManager.STATUS_OK, status); in setup()
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTuner.java26 import android.hardware.radio.RadioManager;
80 @NonNull RadioManager.BandConfig config); in nativeSetConfiguration()
81 private native RadioManager.BandConfig nativeGetConfiguration(long nativeContext, int region); in nativeGetConfiguration()
91 private native List<RadioManager.ProgramInfo> nativeGetProgramList(long nativeContext, in nativeGetProgramList()
128 public void setConfiguration(RadioManager.BandConfig config) { in setConfiguration()
140 public RadioManager.BandConfig getConfiguration() { in getConfiguration()
244 List<RadioManager.ProgramInfo> getProgramList(Map vendorFilter) { in getProgramList()
248 List<RadioManager.ProgramInfo> list = nativeGetProgramList(mNativeContext, sFilter); in getProgramList()
268 return flag == RadioManager.CONFIG_FORCE_ANALOG; in isConfigFlagSupported()
273 if (flag == RadioManager.CONFIG_FORCE_ANALOG) { in isConfigFlagSet()
[all …]
DBroadcastRadioService.java26 import android.hardware.radio.RadioManager;
50 private native List<RadioManager.ModuleProperties> nativeLoadModules(long nativeContext); in nativeLoadModules()
52 RadioManager.BandConfig config, boolean withAudio, ITunerCallback callback); in nativeOpenTuner()
54 public @NonNull List<RadioManager.ModuleProperties> loadModules() { in loadModules()
60 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner()
DTunerCallback.java25 import android.hardware.radio.RadioManager;
116 public void onConfigurationChanged(RadioManager.BandConfig config) { in onConfigurationChanged()
122 public void onCurrentProgramInfoChanged(RadioManager.ProgramInfo info) { in onCurrentProgramInfoChanged()
161 List<RadioManager.ProgramInfo> modified; in sendProgramListUpdate()
168 Set<RadioManager.ProgramInfo> modifiedSet = modified.stream().collect(Collectors.toSet()); in sendProgramListUpdate()
/frameworks/base/services/core/java/com/android/server/broadcastradio/
DBroadcastRadioService.java28 import android.hardware.radio.RadioManager;
54 private List<RadioManager.ModuleProperties> mModules = null;
68 private static int getNextId(@NonNull List<RadioManager.ModuleProperties> modules) { in getNextId()
69 OptionalInt max = modules.stream().mapToInt(RadioManager.ModuleProperties::getId).max(); in getNextId()
82 public List<RadioManager.ModuleProperties> listModules() { in listModules()
95 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DConvert.java38 import android.hardware.radio.RadioManager;
167 private static @NonNull RadioManager.BandDescriptor[]
169 if (config == null) return new RadioManager.BandDescriptor[0]; in amfmConfigToBands()
172 List<RadioManager.BandDescriptor> bands = new ArrayList<>(len); in amfmConfigToBands()
175 int region = RadioManager.REGION_ITU_1; in amfmConfigToBands()
184 bands.add(new RadioManager.FmBandDescriptor(region, RadioManager.BAND_FM, in amfmConfigToBands()
191 bands.add(new RadioManager.AmBandDescriptor(region, RadioManager.BAND_AM, in amfmConfigToBands()
200 return bands.toArray(new RadioManager.BandDescriptor[bands.size()]); in amfmConfigToBands()
209 static @NonNull RadioManager.ModuleProperties
219 return new RadioManager.ModuleProperties( in propertiesFromHal()
[all …]
DRadioModule.java24 import android.hardware.radio.RadioManager;
48 @NonNull public final RadioManager.ModuleProperties mProperties;
51 @NonNull RadioManager.ModuleProperties properties) { in RadioModule()
71 RadioManager.ModuleProperties prop = Convert.propertiesFromHal(idx, fqName, in tryLoadingModule()
DTunerSession.java27 import android.hardware.radio.RadioManager;
50 private RadioManager.BandConfig mDummyConfig = null;
79 public void setConfiguration(RadioManager.BandConfig config) { in setConfiguration()
89 public RadioManager.BandConfig getConfiguration() { in getConfiguration()
DBroadcastRadioService.java25 import android.hardware.radio.RadioManager;
64 public @NonNull Collection<RadioManager.ModuleProperties> loadModules(int idx) { in loadModules()
90 public ITuner openSession(int moduleId, @Nullable RadioManager.BandConfig legacyConfig, in openSession()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java62 import android.hardware.radio.RadioManager;
876 registerService(Context.RADIO_SERVICE, RadioManager.class, in registerService()
877 new CachedServiceFetcher<RadioManager>() { in registerService()
879 public RadioManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
880 return new RadioManager(ctx); in registerService()
/frameworks/base/api/
Dsystem-current.txt1903 …method public android.hardware.radio.RadioManager.ProgramInfo get(android.hardware.radio.ProgramSe…
1907 method public java.util.List<android.hardware.radio.RadioManager.ProgramInfo> toList();
1993 public class RadioManager {
1996 …method public int listModules(java.util.List<android.hardware.radio.RadioManager.ModuleProperties>…
1997 …droid.hardware.radio.RadioTuner openTuner(int, android.hardware.radio.RadioManager.BandConfig, boo…
2031 …public static class RadioManager.AmBandConfig extends android.hardware.radio.RadioManager.BandConf…
2033 …field public static final android.os.Parcelable.Creator<android.hardware.radio.RadioManager.AmBand…
2036 public static class RadioManager.AmBandConfig.Builder {
2037 …ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandDescriptor…
2038 ctor public RadioManager.AmBandConfig.Builder(android.hardware.radio.RadioManager.AmBandConfig);
[all …]
/frameworks/base/config/
Dhiddenapi-public-dex.txt14308 …ndroid/hardware/radio/ProgramSelector$Identifier;)Landroid/hardware/radio/RadioManager$ProgramInfo;
14373 Landroid/hardware/radio/RadioManager$AmBandConfig$Builder;
14374 Landroid/hardware/radio/RadioManager$AmBandConfig$Builder;-><init>(Landroid/hardware/radio/RadioMan…
14375 Landroid/hardware/radio/RadioManager$AmBandConfig$Builder;-><init>(Landroid/hardware/radio/RadioMan…
14376 Landroid/hardware/radio/RadioManager$AmBandConfig$Builder;->build()Landroid/hardware/radio/RadioMan…
14377 Landroid/hardware/radio/RadioManager$AmBandConfig$Builder;->setStereo(Z)Landroid/hardware/radio/Rad…
14378 Landroid/hardware/radio/RadioManager$AmBandConfig;
14379 Landroid/hardware/radio/RadioManager$AmBandConfig;->CREATOR:Landroid/os/Parcelable$Creator;
14380 Landroid/hardware/radio/RadioManager$AmBandConfig;->describeContents()I
14381 Landroid/hardware/radio/RadioManager$AmBandConfig;->equals(Ljava/lang/Object;)Z
[all …]
Dboot-image-profile.txt21803 HSPLandroid/hardware/radio/ITuner;->getConfiguration()Landroid/hardware/radio/RadioManager$BandConf…
21812 HSPLandroid/hardware/radio/ITuner;->setConfiguration(Landroid/hardware/radio/RadioManager$BandConfi…
21823 …re/radio/ITunerCallback;->onConfigurationChanged(Landroid/hardware/radio/RadioManager$BandConfig;)V
21824 …io/ITunerCallback;->onCurrentProgramInfoChanged(Landroid/hardware/radio/RadioManager$ProgramInfo;)V
21834 HSPLandroid/hardware/radio/RadioManager$AmBandConfig$1;-><init>()V
21835 HSPLandroid/hardware/radio/RadioManager$AmBandDescriptor$1;-><init>()V
21836 HSPLandroid/hardware/radio/RadioManager$BandConfig$1;-><init>()V
21837 HSPLandroid/hardware/radio/RadioManager$BandDescriptor$1;-><init>()V
21838 HSPLandroid/hardware/radio/RadioManager$FmBandConfig$1;-><init>()V
21839 HSPLandroid/hardware/radio/RadioManager$FmBandDescriptor$1;-><init>()V
[all …]
Dpreloaded-classes1405 android.hardware.radio.RadioManager