Home
last modified time | relevance | path

Searched refs:mModules (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DBroadcastRadioServiceImpl.java63 private final SparseArray<RadioModule> mModules = new SparseArray<>(); field in BroadcastRadioServiceImpl
89 RadioModule prevModule = mModules.get(moduleId);
90 mModules.put(moduleId, radioModule);
106 mModules.remove(moduleId);
123 RadioModule prevModule = mModules.removeReturnOld(mModuleId); in binderDied()
165 List<RadioManager.ModuleProperties> moduleList = new ArrayList<>(mModules.size()); in listModules()
166 for (int i = 0; i < mModules.size(); i++) { in listModules()
167 moduleList.add(mModules.valueAt(i).getProperties()); in listModules()
182 return mModules.contains(id); in hasModule()
191 return mModules.size() != 0; in hasAnyModules()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareImpl.java52 private final SoundTriggerModule[] mModules; field in SoundTriggerMiddlewareImpl
92 mModules = modules.toArray(new SoundTriggerModule[0]); in SoundTriggerMiddlewareImpl()
106 SoundTriggerModuleDescriptor[] result = new SoundTriggerModuleDescriptor[mModules.length]; in listModules()
108 for (int i = 0; i < mModules.length; ++i) { in listModules()
111 desc.properties = mModules[i].getProperties(); in listModules()
121 return mModules[handle].attach(callback); in attach()
DSoundTriggerMiddlewareValidation.java125 private Map<Integer, ModuleState> mModules; field in SoundTriggerMiddlewareValidation
167 if (mModules == null) { in listModules()
168 mModules = new HashMap<>(result.length); in listModules()
170 mModules.put(desc.handle, new ModuleState(desc.properties)); in listModules()
173 if (result.length != mModules.size()) { in listModules()
178 if (!mModules.containsKey(desc.handle)) { in listModules()
182 mModules.get(desc.handle).properties = desc.properties; in listModules()
201 if (mModules == null) { in attach()
205 if (!mModules.containsKey(handle)) { in attach()
229 if (mModules != null) { in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DBroadcastRadioService.java61 private final Map<Integer, RadioModule> mModules = new ArrayMap<>(); field in BroadcastRadioService
84 RadioModule prevModule = mModules.put(moduleId, radioModule);
98 mModules.remove(moduleId);
110 RadioModule prevModule = mModules.remove(moduleId);
154 return mModules.values().stream().map(module -> module.getProperties()) in listModules()
161 return mModules.containsKey(id); in hasModule()
167 return !mModules.isEmpty(); in hasAnyModules()
186 module = mModules.get(moduleId); in openSession()
205 for (RadioModule module : mModules.values()) { in addAnnouncementListener()
236 for (Map.Entry<Integer, RadioModule> moduleEntry : mModules.entrySet()) { in dumpInfo()
/frameworks/base/services/core/jni/BroadcastRadio/
DBroadcastRadioService.cpp81 std::vector<Module> mModules; member
139 ctx.mModules.clear(); in nativeLoadModules()
172 auto idx = ctx.mModules.size(); in nativeLoadModules()
173 ctx.mModules.push_back({module10, halRev, {}}); in nativeLoadModules()
174 auto& nModule = ctx.mModules[idx]; in nativeLoadModules()
215 if (moduleId < 0 || static_cast<size_t>(moduleId) >= ctx.mModules.size()) { in nativeOpenTuner()
221 auto module = ctx.mModules[moduleId]; in nativeOpenTuner()