Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DAudioManager.java2193 DevRoleListeners<T> devRoleListeners = in addOnDevRoleForCapturePresetChangedListener() local
2195 if (devRoleListeners == null) { in addOnDevRoleForCapturePresetChangedListener()
2198 synchronized (devRoleListeners.mDevRoleListenersLock) { in addOnDevRoleForCapturePresetChangedListener()
2199 if (devRoleListeners.hasDevRoleListener(listener)) { in addOnDevRoleForCapturePresetChangedListener()
2203 if (devRoleListeners.mListenerInfos == null) { in addOnDevRoleForCapturePresetChangedListener()
2204 devRoleListeners.mListenerInfos = new ArrayList<>(); in addOnDevRoleForCapturePresetChangedListener()
2206 final int oldCbCount = devRoleListeners.mListenerInfos.size(); in addOnDevRoleForCapturePresetChangedListener()
2207 devRoleListeners.mListenerInfos.add(new DevRoleListenerInfo<T>(executor, listener)); in addOnDevRoleForCapturePresetChangedListener()
2208 if (oldCbCount == 0 && devRoleListeners.mListenerInfos.size() > 0) { in addOnDevRoleForCapturePresetChangedListener()
2236 DevRoleListeners<T> devRoleListeners = in removeOnDevRoleForCapturePresetChangedListener() local
[all …]