/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | MediaDataCombineLatest.kt | 32 oldKey: String?, 37 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { 38 entries[key] = data to entries.remove(oldKey)?.second 39 update(key, oldKey) 65 oldKey: String?, 68 if (oldKey != null && oldKey != key && entries.contains(oldKey)) { 69 entries[key] = entries.remove(oldKey)?.first to data 70 update(key, oldKey) 91 private fun update(key: String, oldKey: String?) { 97 it.onMediaDataLoaded(key, oldKey, data)
|
H A D | MediaDeviceManager.kt | 68 oldKey: String?, 73 if (oldKey != null && oldKey != key) { 74 val oldEntry = entries.remove(oldKey) 83 entry = Entry(key, oldKey, controller, 112 private fun processDevice(key: String, oldKey: String?, device: MediaDeviceData?) { 114 it.onMediaDeviceChanged(key, oldKey, device) 120 fun onMediaDeviceChanged(key: String, oldKey: String?, data: MediaDeviceData?) 127 val oldKey: String?, 141 processDevice(key, oldKey, value)
|
H A D | MediaSessionBasedFilter.kt | 96 oldKey: String?, 105 val isMigration = oldKey != null && key != oldKey 107 keyedTokens.remove(oldKey)?.let { removed -> keyedTokens.put(key, removed) } 128 dispatchMediaDataLoaded(key, oldKey, data, immediately) 170 oldKey: String?, 175 listeners.toSet().forEach { it.onMediaDataLoaded(key, oldKey, info, immediately) }
|
H A D | MediaDataFilter.kt | 87 oldKey: String?, 92 if (oldKey != null && oldKey != key) { 93 allEntries.remove(oldKey) 101 if (oldKey != null && oldKey != key) { 102 userEntries.remove(oldKey) 108 it.onMediaDataLoaded(key, oldKey, data)
|
H A D | MediaTimeoutListener.kt | 63 oldKey: String?, 85 val migrating = oldKey != null && key != oldKey 87 reusedListener = mediaListeners.remove(oldKey) 89 if (DEBUG) Log.d(TAG, "migrating key $oldKey to $key, for resumption") 91 Log.w(TAG, "Old key $oldKey for player $key doesn't exist. Continuing...")
|
H A D | MediaDataManager.kt | 282 val oldKey = findExistingEntry(key, sbn.packageName) regex 283 if (oldKey == null) { 286 } else if (oldKey != key) { 288 val oldData = mediaEntries.remove(oldKey)!! 291 loadMediaData(key, sbn, oldKey) 351 oldKey: String? 354 loadMediaDataInBg(key, sbn, oldKey) 534 oldKey: String? 727 fun onMediaDataLoaded(key: String, oldKey: String?, data: MediaData) { 732 notifyMediaDataLoaded(key, oldKey, data) [all …]
|
H A D | MediaCarouselController.kt | 209 oldKey: String?, 214 if (addOrUpdatePlayer(key, oldKey, data)) { 411 private fun addOrUpdatePlayer(key: String, oldKey: String?, data: MediaData): Boolean { 413 MediaPlayerData.moveIfExists(oldKey, key) 527 addOrUpdatePlayer(key = key, oldKey = null, data = data) 917 fun moveIfExists(oldKey: String?, newKey: String) { 918 if (oldKey == null || oldKey == newKey) { 922 mediaData.remove(oldKey)?.let {
|
H A D | MediaResumeListener.kt | 184 oldKey: String?, 191 if (!key.equals(oldKey)) {
|
H A D | MediaHost.kt | 61 oldKey: String?,
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | PointerTracker.java | 825 private void processDraggingFingerOutFromOldKey(final Key oldKey) { in processDraggingFingerOutFromOldKey() argument 826 setReleasedKeyGraphics(oldKey, true /* withAnimation */); in processDraggingFingerOutFromOldKey() 827 callListenerOnRelease(oldKey, oldKey.getCode(), true /* withSliding */); in processDraggingFingerOutFromOldKey() 828 startKeySelectionByDraggingFinger(oldKey); in processDraggingFingerOutFromOldKey() 837 processDraggingFingerOutFromOldKey(oldKey); in dragFingerFromOldKeyToNewKey() 869 setReleasedKeyGraphics(oldKey, true /* withAnimation */); in dragFingerFromOldKeyToNewKey() 874 setReleasedKeyGraphics(oldKey, true /* withAnimation */); in dragFingerFromOldKeyToNewKey() 881 processDraggingFingerOutFromOldKey(oldKey); in dragFingerOutFromOldKey() 894 final Key oldKey = mCurrentKey; in onMoveEventInternal() local 910 } else if (oldKey == null) { in onMoveEventInternal() [all …]
|
H A D | MoreKeysKeyboardView.java | 210 final Key oldKey = mCurrentKey; in detectKey() local 212 if (newKey == oldKey) { in detectKey() 216 if (oldKey != null) { in detectKey() 217 updateReleaseKeyGraphics(oldKey); in detectKey() 218 invalidateKey(oldKey); in detectKey()
|
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | ExpectedKeyboardBuilder.java | 63 ExpectedKey[] replacingKeys(final ExpectedKey oldKey); in replacingKeys() argument 171 public ExpectedKey[] replacingKeys(final ExpectedKey oldKey) { in setMoreKeysOf() 172 return new ExpectedKey[] { oldKey.setMoreKeys(moreKeys) }; in setMoreKeysOf() 198 public ExpectedKey[] replacingKeys(final ExpectedKey oldKey) { in setAdditionalMoreKeysPositionOf() 200 oldKey.setAdditionalMoreKeysIndex(additionalMoreKeysIndex) in setAdditionalMoreKeysPositionOf() 274 public ExpectedKey[] replacingKeys(final ExpectedKey oldKey) { in replaceKeyOfLabel() 296 public ExpectedKey[] replacingKeys(final ExpectedKey oldKey) { in replaceKeysOfAll() argument
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | BugleSubscriptionPrefs.java | 73 private void migratePrefBooleanInternal(final BuglePrefs oldPrefs, final String oldKey, in migratePrefBooleanInternal() argument 77 final boolean oldValue = oldPrefs.getBoolean(oldKey, defaultValue); in migratePrefBooleanInternal() 85 private void migratePrefStringInternal(final BuglePrefs oldPrefs, final String oldKey, in migratePrefStringInternal() argument 88 final String oldValue = oldPrefs.getString(oldKey, defaultValue); in migratePrefStringInternal()
|
/aosp12/frameworks/base/media/jni/soundpool/ |
H A D | StreamManager.h | 224 K generateKey(V value, std::function<K(V)> getKforV, K oldKey = 0) { 227 if (oldKey > 0) { // key valid 228 const V v = getValue(oldKey); 232 atPosition == oldKey || // value's key still valid and matches old key 233 ((atPosition ^ oldKey) & (mHashCapacity - 1)) != 0) { // stale key entry 234 getValue(oldKey) = nullptr; // invalidate
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | ResourcesManager.java | 1231 if (oldKey == null) { in rebaseActivityOverrideConfig() 1272 oldKey.mSplitResDirs, oldKey.mOverlayPaths, oldKey.mLibDirs, in rebaseActivityOverrideConfig() 1273 displayId, rebasedOverrideConfig, oldKey.mCompatInfo, oldKey.mLoaders); in rebaseActivityOverrideConfig() 1641 if (oldKey == null) { in onLoadersChanged() 1647 oldKey.mResDir, in onLoadersChanged() 1648 oldKey.mSplitResDirs, in onLoadersChanged() 1649 oldKey.mOverlayPaths, in onLoadersChanged() 1650 oldKey.mLibDirs, in onLoadersChanged() 1651 oldKey.mDisplayId, in onLoadersChanged() 1652 oldKey.mOverrideConfiguration, in onLoadersChanged() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/location/listeners/ |
H A D | ListenerMultiplexer.java | 235 protected final void replaceRegistration(@NonNull TKey oldKey, @NonNull TKey key, in replaceRegistration() argument 237 Objects.requireNonNull(oldKey); in replaceRegistration() 246 Preconditions.checkArgument(oldKey == key || !mRegistrations.containsKey(key)); in replaceRegistration() 260 int index = mRegistrations.indexOfKey(oldKey); in replaceRegistration() 262 oldRegistration = removeRegistration(index, oldKey != key); in replaceRegistration() 264 if (oldKey == key && index >= 0) { in replaceRegistration()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
H A D | MediaDeviceManagerTest.kt | 176 val oldKey = "unknown" regex 177 manager.onMediaDataLoaded(KEY, oldKey, mediaData) 180 verify(listener).onMediaDeviceChanged(eq(KEY), eq(oldKey), any()) 370 fun captureDeviceData(key: String, oldKey: String? = null): MediaDeviceData { 372 verify(listener).onMediaDeviceChanged(eq(key), eq(oldKey), captor.capture())
|
H A D | MediaDataFilterTest.kt | 194 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain) 203 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) 211 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataGuest) 220 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = data) 226 mediaDataFilter.onMediaDataLoaded(KEY, oldKey = null, data = dataMain)
|
H A D | MediaDataManagerTest.kt | 181 mediaDataManager.onMediaDataLoaded(KEY, oldKey = null, data = data) 215 mediaDataManager.onMediaDataLoaded(KEY, oldKey = null, data = mock(MediaData::class.java)) 260 mediaDataManager.onMediaDataLoaded(KEY, oldKey = null, data = mock(MediaData::class.java)) 373 mediaDataManager.onMediaDataLoaded(KEY, oldKey = null, data = mock(MediaData::class.java))
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
H A D | TertiaryKeyStoreTest.java | 132 SecretKey oldKey = generateAesKey(); in save_overwritesPreviousKey() local 133 mTertiaryKeyStore.save(packageName, oldKey); in save_overwritesPreviousKey() 141 assertThat(loadedKey).isNotEqualTo(oldKey); in save_overwritesPreviousKey()
|
/aosp12/frameworks/base/telecomm/java/android/telecom/ |
H A D | Conference.java | 837 for (String oldKey : mPreviousExtraKeys) { in setExtras() 838 if (extras == null || !extras.containsKey(oldKey)) { in setExtras() 839 toRemove.add(oldKey); in setExtras()
|
H A D | Connection.java | 2939 for (String oldKey : mPreviousExtraKeys) { in setExtras() 2940 if (extras == null || !extras.containsKey(oldKey)) { in setExtras() 2941 toRemove.add(oldKey); in setExtras()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationMediaManager.java | 244 @Nullable String oldKey, @NonNull MediaData data, boolean immediately, in setupNotifPipeline() 319 @Nullable String oldKey, @NonNull MediaData data, boolean immediately, in setupNEM()
|
/aosp12/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 878 Key oldKey = keys[oldKeyIndex]; in showPreview() local 879 oldKey.onReleased(mCurrentKeyIndex == NOT_A_KEY); in showPreview() 881 final int keyCode = oldKey.codes[0]; in showPreview()
|
/aosp12/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/ |
H A D | KeyboardView.java | 995 Key oldKey = keys[oldKeyIndex]; in showPreview() local 999 oldKey.pressed = false; in showPreview()
|