Home
last modified time | relevance | path

Searched refs:oldKey (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataCombineLatest.kt33 oldKey: String?, in onMediaDataLoaded()
39 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { in onMediaDataLoaded()
40 entries[key] = data to entries.remove(oldKey)?.second in onMediaDataLoaded()
41 update(key, oldKey) in onMediaDataLoaded()
64 override fun onMediaDeviceChanged(key: String, oldKey: String?, data: MediaDeviceData?) { in onMediaDeviceChanged()
65 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { in onMediaDeviceChanged()
66 entries[key] = entries.remove(oldKey)?.first to data in onMediaDeviceChanged()
67 update(key, oldKey) in onMediaDeviceChanged()
86 private fun update(key: String, oldKey: String?) { in addListener()
91 listenersCopy.forEach { it.onMediaDataLoaded(key, oldKey, data) } in addListener()
DMediaSessionBasedFilter.kt97 oldKey: String?, in <lambda>()
105 val isMigration = oldKey != null && key != oldKey in <lambda>()
107 keyedTokens.remove(oldKey)?.let { removed -> keyedTokens.put(key, removed) } in <lambda>()
131 dispatchMediaDataLoaded(key, oldKey, data, immediately) in <lambda>()
168 oldKey: String?, in <lambda>()
173 listeners.toSet().forEach { it.onMediaDataLoaded(key, oldKey, info, immediately) } in <lambda>()
DLegacyMediaDataFilterImpl.kt106 oldKey: String?, in <lambda>()
112 if (oldKey != null && oldKey != key) { in <lambda>()
113 allEntries.remove(oldKey) in <lambda>()
124 if (oldKey != null && oldKey != key) { in <lambda>()
125 userEntries.remove(oldKey) in <lambda>()
130 listeners.forEach { it.onMediaDataLoaded(key, oldKey, data) } in <lambda>()
DMediaDeviceManager.kt91 oldKey: String?, in <lambda>()
97 if (oldKey != null && oldKey != key) { in <lambda>()
98 val oldEntry = entries.remove(oldKey) in <lambda>()
107 processDevice(key, oldKey, data.device) in <lambda>()
115 entry = Entry(key, oldKey, controller, localMediaManager, muteAwaitConnectionManager) in <lambda>()
138 private fun processDevice(key: String, oldKey: String?, device: MediaDeviceData?) { in <lambda>()
139 listeners.forEach { it.onMediaDeviceChanged(key, oldKey, device) } in <lambda>()
144 fun onMediaDeviceChanged(key: String, oldKey: String?, data: MediaDeviceData?) in <lambda>()
151 val oldKey: String?, in <lambda>() constant in com.android.systemui.media.controls.domain.pipeline.MediaDeviceManager.Entry
170 fgExecutor.execute { processDevice(key, oldKey, value) } in <lambda>()
DMediaTimeoutListener.kt122 oldKey: String?, in <lambda>()
143 val migrating = oldKey != null && key != oldKey in <lambda>()
145 reusedListener = mediaListeners.remove(oldKey) in <lambda>()
146 logger.logMigrateListener(oldKey, key, reusedListener != null) in <lambda>()
DMediaDataFilterImpl.kt101 oldKey: String?, in <lambda>()
107 if (oldKey != null && oldKey != key) { in <lambda>()
108 mediaFilterRepository.removeMediaEntry(oldKey) in <lambda>()
127 listeners.forEach { it.onMediaDataLoaded(key, oldKey, data) } in <lambda>()
DMediaDataProcessor.kt327 val oldKey = findExistingEntry(key, sbn.packageName) in <lambda>() constant
328 if (oldKey == null) { in <lambda>()
339 } else if (oldKey != key) { in <lambda>()
341 val oldData = mediaDataRepository.removeMediaEntry(oldKey)!! in <lambda>()
345 loadMediaData(key, sbn, oldKey, isNewlyActiveEntry) in <lambda>()
468 oldKey: String?, in <lambda>()
471 backgroundExecutor.execute { loadMediaDataInBg(key, sbn, oldKey, isNewlyActiveEntry) } in <lambda>()
483 private fun notifyMediaDataLoaded(key: String, oldKey: String?, info: MediaData) { in <lambda>()
484 internalListeners.forEach { it.onMediaDataLoaded(key, oldKey, info) } in <lambda>()
732 oldKey: String?, in <lambda>()
[all …]
DMediaTimeoutLogger.kt36 fun logMigrateListener(oldKey: String?, newKey: String?, hadListener: Boolean) = in logMigrateListener()
41 str1 = oldKey in logMigrateListener()
DLegacyMediaDataManagerImpl.kt398 val oldKey = findExistingEntry(key, sbn.packageName) in onNotificationAdded() constant
399 if (oldKey == null) { in onNotificationAdded()
409 } else if (oldKey != key) { in onNotificationAdded()
411 val oldData = mediaEntries.remove(oldKey)!! in onNotificationAdded()
415 loadMediaData(key, sbn, oldKey, isNewlyActiveEntry) in onNotificationAdded()
498 oldKey: String?, in loadMediaData()
501 backgroundExecutor.execute { loadMediaDataInBg(key, sbn, oldKey, isNewlyActiveEntry) } in loadMediaData()
528 private fun notifyMediaDataLoaded(key: String, oldKey: String?, info: MediaData) { in addInternalListener()
529 internalListeners.forEach { it.onMediaDataLoaded(key, oldKey, info) } in addInternalListener()
786 oldKey: String?, in loadMediaDataInBg()
[all …]
DMediaDataManager.kt118 oldKey: String?, in setInactive()
/frameworks/base/services/core/java/com/android/server/location/listeners/
DListenerMultiplexer.java210 @NonNull TKey oldKey, in onRegistrationReplaced()
214 onRegistrationRemoved(oldKey, oldRegistration); in onRegistrationReplaced()
260 protected final void replaceRegistration(@NonNull TKey oldKey, @NonNull TKey key, in replaceRegistration() argument
262 Objects.requireNonNull(oldKey); in replaceRegistration()
271 Preconditions.checkArgument(oldKey == key || !mRegistrations.containsKey(key)); in replaceRegistration()
285 int oldIndex = mRegistrations.indexOfKey(oldKey); in replaceRegistration()
291 if (oldKey != key) { in replaceRegistration()
295 if (oldKey == key && oldIndex >= 0) { in replaceRegistration()
308 onRegistrationReplaced(oldKey, oldRegistration, key, registration); in replaceRegistration()
/frameworks/base/media/jni/soundpool/
DStreamManager.h228 K generateKey(V value, std::function<K(V)> getKforV, K oldKey = 0) {
231 if (oldKey > 0) { // key valid
232 const V v = getValue(oldKey);
236 atPosition == oldKey || // value's key still valid and matches old key
237 ((atPosition ^ oldKey) & (mHashCapacity - 1)) != 0) { // stale key entry
238 getValue(oldKey) = nullptr; // invalidate
/frameworks/base/core/java/android/app/
DResourcesManager.java1352 final ResourcesKey oldKey = findKeyForResourceImplLocked(resources.getImpl()); in rebaseActivityOverrideConfig() local
1353 if (oldKey == null) { in rebaseActivityOverrideConfig()
1369 displayAdjustments.setCompatibilityInfo(oldKey.mCompatInfo); in rebaseActivityOverrideConfig()
1393 final ResourcesKey newKey = new ResourcesKey(oldKey.mResDir, in rebaseActivityOverrideConfig()
1394 oldKey.mSplitResDirs, oldKey.mOverlayPaths, oldKey.mLibDirs, in rebaseActivityOverrideConfig()
1395 displayId, rebasedOverrideConfig, oldKey.mCompatInfo, oldKey.mLoaders); in rebaseActivityOverrideConfig()
1398 Slog.d(TAG, "rebasing ref=" + resources + " from oldKey=" + oldKey in rebaseActivityOverrideConfig()
1880 final ResourcesKey oldKey = findKeyForResourceImplLocked(resources.getImpl()); in onLoadersChanged() local
1881 if (oldKey == null) { in onLoadersChanged()
1887 oldKey.mResDir, in onLoadersChanged()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DLegacyMediaDataFilterImplTest.kt243 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in hasAnyMedia_mediaSet_returnsTrue()
262 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in hasAnyMediaOrRecommendation_mediaSet_returnsTrue()
282 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMedia_inactiveMediaSet_returnsFalse()
290 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMedia_activeMediaSet_returnsTrue()
303 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMediaOrRecommendation_inactiveMediaSet_returnsFalse()
311 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMediaOrRecommendation_activeMediaSet_returnsTrue()
345 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataGuest) in testHasAnyMediaOrRecommendation_onlyCurrentUser()
355 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in testHasActiveMediaOrRecommendation_onlyCurrentUser()
362 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in testOnNotificationRemoved_doesntHaveMedia()
DMediaDataFilterImplTest.kt325 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in hasAnyMedia_mediaSet_returnsTrue()
344 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in hasAnyMediaOrRecommendation_mediaSet_returnsTrue()
367 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMedia_inactiveMediaSet_returnsFalse()
377 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMedia_activeMediaSet_returnsTrue()
389 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMediaOrRecommendation_inactiveMediaSet_returnsFalse()
408 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMediaOrRecommendation_activeMediaSet_returnsTrue()
486 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataGuest) in hasAnyMediaOrRecommendation_onlyCurrentUser()
508 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) in hasActiveMediaOrRecommendation_onlyCurrentUser()
526 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) in onNotificationRemoved_doesNotHaveMedia()
DMediaDeviceManagerTest.kt239 val oldKey = "unknown" in unknownOldKey() constant
240 manager.onMediaDataLoaded(KEY, oldKey, mediaData) in unknownOldKey()
243 verify(listener).onMediaDeviceChanged(eq(KEY), eq(oldKey), any()) in unknownOldKey()
939 private fun captureDeviceData(key: String, oldKey: String? = null): MediaDeviceData { in captureDeviceData()
941 verify(listener).onMediaDeviceChanged(eq(key), eq(oldKey), captor.capture()) in captureDeviceData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalMediaRepository.kt47 oldKey: String?, in onMediaDataLoaded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaCarouselController.kt437 oldKey: String?, in <lambda>()
444 if (addOrUpdatePlayer(key, oldKey, data, isSsReactivated)) { in <lambda>()
910 oldKey: String?, in <lambda>()
915 MediaPlayerData.moveIfExists(oldKey, key) in <lambda>()
1125 oldKey = null, in <lambda>()
1718 oldKey: String?, in moveIfExists()
1722 if (oldKey == null || oldKey == newKey) { in moveIfExists()
1726 mediaData.remove(oldKey)?.let { in moveIfExists()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/
DMediaDreamSentinel.java76 public void onMediaDataLoaded(@NonNull String key, @Nullable String oldKey,
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/resume/
DMediaResumeListener.kt238 oldKey: String?, in onMediaDataLoaded()
246 if (!key.equals(oldKey)) { in onMediaDataLoaded()
/frameworks/base/telecomm/java/android/telecom/
DConference.java911 for (String oldKey : mPreviousExtraKeys) { in setExtras()
912 if (extras == null || !extras.containsKey(oldKey)) { in setExtras()
913 toRemove.add(oldKey); in setExtras()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/resume/
DMediaResumeListenerTest.kt549 resumeListener.onMediaDataLoaded(key = KEY, oldKey = null, data) in capture()
552 resumeListener.onMediaDataLoaded(key = "newKey", oldKey = KEY, data) in capture()
564 resumeListener.onMediaDataLoaded(key = KEY, oldKey = null, data) in capture()
582 resumeListener.onMediaDataLoaded(key = KEY, oldKey = null, data) in capture()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/
DListenerMultiplexerTest.java464 protected void onRegistrationReplaced(Consumer<TestListenerRegistration> oldKey, in onRegistrationReplaced() argument
468 mCallbacks.onRegistrationReplaced(oldKey, oldRegistration, newKey, newRegistration); in onRegistrationReplaced()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaHost.kt89 oldKey: String?, in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java880 Key oldKey = keys[oldKeyIndex]; in showPreview() local
881 oldKey.onReleased(mCurrentKeyIndex == NOT_A_KEY); in showPreview()
883 final int keyCode = oldKey.codes[0]; in showPreview()

12