Home
last modified time | relevance | path

Searched refs:moduleId (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DBroadcastRadioServiceImpl.java69 Integer moduleId;
72 moduleId = mServiceNameToModuleIdMap.get(name);
74 if (moduleId == null) {
76 moduleId = mNextModuleId;
80 RadioModule.tryLoadingModule(moduleId, name, newBinder);
82 Slogf.w(TAG, "No module %s with id %d (HAL AIDL)", name, moduleId);
87 name, moduleId);
89 RadioModule prevModule = mModules.get(moduleId);
90 mModules.put(moduleId, radioModule);
96 mServiceNameToModuleIdMap.put(name, moduleId);
[all …]
DRadioModule.java205 static RadioModule tryLoadingModule(int moduleId, String moduleName, IBinder serviceBinder) { in tryLoadingModule() argument
208 moduleId, moduleName); in tryLoadingModule()
233 moduleId, moduleName, service.getProperties(), amfmConfig, dabConfig); in tryLoadingModule()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DBroadcastRadioService.java68 Integer moduleId;
71 moduleId = mServiceNameToModuleIdMap.get(serviceName);
73 if (moduleId == null) {
75 moduleId = mNextModuleId;
78 RadioModule radioModule = RadioModule.tryLoadingModule(moduleId, serviceName);
82 Slogf.v(TAG, "loaded broadcast radio module " + moduleId + ": " + serviceName
84 RadioModule prevModule = mModules.put(moduleId, radioModule);
90 mServiceNameToModuleIdMap.put(serviceName, moduleId);
95 radioModule.getService().linkToDeath(mDeathRecipient, moduleId);
98 mModules.remove(moduleId);
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DBroadcastRadioService.java50 private native Tuner nativeOpenTuner(long nativeContext, int moduleId, in nativeOpenTuner() argument
59 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner() argument
66 return nativeOpenTuner(mNativeContext, moduleId, bandConfig, withAudio, callback); in openTuner()
/frameworks/base/services/core/java/com/android/server/broadcastradio/
DIRadioServiceHidlImpl.java97 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner() argument
100 Slog.d(TAG, "Opening module " + moduleId); in openTuner()
105 if (mHal2Client.hasModule(moduleId)) { in openTuner()
106 return mHal2Client.openSession(moduleId, bandConfig, withAudio, callback); in openTuner()
108 return mHal1Client.openTuner(moduleId, bandConfig, withAudio, callback); in openTuner()
DIRadioServiceAidlImpl.java91 public ITuner openTuner(int moduleId, RadioManager.BandConfig bandConfig, in openTuner() argument
94 Slogf.d(TAG, "Opening module %d", moduleId); in openTuner()
100 return mAidlHalClient.openSession(moduleId, bandConfig, withAudio, callback); in openTuner()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java65 int moduleId, @NonNull SoundTrigger.StatusListener listener, @NonNull Looper looper, in SoundTriggerModule() argument
67 mId = moduleId; in SoundTriggerModule()
71 mService = service.attachAsOriginator(moduleId, originatorIdentity, in SoundTriggerModule()
85 int moduleId, @NonNull SoundTrigger.StatusListener listener, @NonNull Looper looper, in SoundTriggerModule() argument
88 mId = moduleId; in SoundTriggerModule()
93 mService = service.attachAsMiddleman(moduleId, middlemanIdentity, in SoundTriggerModule()
DSoundTrigger.java2278 private static SoundTriggerModule attachModule(int moduleId, in attachModule() argument
2302 public static SoundTriggerModule attachModuleAsMiddleman(int moduleId, in attachModuleAsMiddleman() argument
2308 return new SoundTriggerModule(getService(), moduleId, listener, looper, in attachModuleAsMiddleman()
2331 public static SoundTriggerModule attachModuleAsOriginator(int moduleId, in attachModuleAsOriginator() argument
2336 return new SoundTriggerModule(getService(), moduleId, listener, looper, in attachModuleAsOriginator()
/frameworks/base/services/core/jni/BroadcastRadio/
DBroadcastRadioService.cpp204 static jobject nativeOpenTuner(JNIEnv *env, jobject obj, long nativeContext, jint moduleId, in nativeOpenTuner() argument
215 if (moduleId < 0 || static_cast<size_t>(moduleId) >= ctx.mModules.size()) { in nativeOpenTuner()
216 ALOGE("Invalid module ID: %d", moduleId); in nativeOpenTuner()
220 ALOGI("Opening tuner %d", moduleId); in nativeOpenTuner()
221 auto module = ctx.mModules[moduleId]; in nativeOpenTuner()
Dconvert.h44 jint moduleId, const std::string& serviceName);
46 jint moduleId, const std::string& serviceName);
Dconvert.cpp374 const V1_1::Properties *prop11, jint moduleId, const std::string& serviceName) { in ModulePropertiesFromHal() argument
396 gjni.ModuleProperties.cstor, moduleId, jServiceName.get(), prop10.classId, in ModulePropertiesFromHal()
404 jint moduleId, const std::string& serviceName) { in ModulePropertiesFromHal() argument
405 return ModulePropertiesFromHal(env, properties, nullptr, moduleId, serviceName); in ModulePropertiesFromHal()
409 jint moduleId, const std::string& serviceName) { in ModulePropertiesFromHal() argument
410 return ModulePropertiesFromHal(env, properties.base, &properties, moduleId, serviceName); in ModulePropertiesFromHal()
/frameworks/base/core/java/android/hardware/radio/
DIRadioService.aidl33 ITuner openTuner(int moduleId, in RadioManager.BandConfig bandConfig, boolean withAudio, in openTuner() argument
DRadioManager.java1915 public RadioTuner openTuner(int moduleId, BandConfig config, boolean withAudio, in openTuner() argument
1921 Log.d(TAG, "Opening tuner " + moduleId + "..."); in openTuner()
1926 tuner = mService.openTuner(moduleId, config, withAudio, halCallback); in openTuner()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/
DIRadioServiceHidlImplTest.java90 int moduleId = (int) invocation.getArguments()[0]; in setup()
91 return moduleId != HAL1_MODULE_ID; in setup()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DRadioManagerTest.java1255 int moduleId = 0; in openTuner_forRadioModule() local
1258 mRadioManager.openTuner(moduleId, FM_BAND_CONFIG, withAudio, mCallbackMock, in openTuner_forRadioModule()
1261 verify(mRadioServiceMock).openTuner(eq(moduleId), eq(FM_BAND_CONFIG), eq(withAudio), any()); in openTuner_forRadioModule()
1279 int moduleId = 0; in openTuner_withNullCallback() local
1283 () -> mRadioManager.openTuner(moduleId, FM_BAND_CONFIG, withAudio, in openTuner_withNullCallback()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java127 int moduleId, in SoundTriggerHelper() argument
129 mModuleId = moduleId; in SoundTriggerHelper()
134 if (moduleId == INVALID_MODULE_ID) { in SoundTriggerHelper()
DSoundTriggerService.java330 final int moduleId = (moduleProperties != null) ? in newSoundTriggerHelper() local
333 if (moduleId != SoundTriggerHelper.INVALID_MODULE_ID) { in newSoundTriggerHelper()
343 mMiddlewareService, moduleId, statusListener, in newSoundTriggerHelper()
345 moduleId, in newSoundTriggerHelper()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h911 bool isDeviceOfModule(const sp<DeviceDescriptor>& devDesc, const char *moduleId) const;
DAudioPolicyManager.cpp791 const sp<DeviceDescriptor>& devDesc, const char *moduleId) const { in isDeviceOfModule()
792 sp<HwModule> module = mHwModules.getModuleFromName(moduleId); in isDeviceOfModule()