Home
last modified time | relevance | path

Searched refs:addIfAbsent (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/
DListenerSetTest.kt42 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in makeRunnableListenerSet()
46 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in makeRunnableListenerSet()
50 assertThat(runnableSet.addIfAbsent(runnable1)).isFalse() in makeRunnableListenerSet()
61 assertThat(runnableSet.addIfAbsent(runnable)).isTrue() in isEmpty_changes()
77 assertThat(runnableSet.addIfAbsent(Runnable {})).isTrue() in size_changes()
80 assertThat(runnableSet.addIfAbsent(Runnable {})).isTrue() in size_changes()
94 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in contains_worksAsExpected()
100 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in contains_worksAsExpected()
124 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in containsAll_worksAsExpected()
130 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in containsAll_worksAsExpected()
[all …]
DNamedListenerSetTest.kt44 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in <lambda>()
48 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in <lambda>()
52 assertThat(runnableSet.addIfAbsent(runnable1)).isFalse() in <lambda>()
63 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in <lambda>()
69 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in <lambda>()
76 assertThat(runnableSet.addIfAbsent(runnable3)).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DListenerSet.kt37 override fun addIfAbsent(element: E): Boolean = listeners.addIfAbsent(element) method in com.android.systemui.util.ListenerSet
DNamedListenerSet.kt53 override fun addIfAbsent(element: E): Boolean = listeners.addIfAbsent(NamedListener(element)) in addIfAbsent() method in com.android.systemui.util.NamedListenerSet
DIListenerSet.kt32 fun addIfAbsent(element: E): Boolean method
DCopyOnLoopListenerSet.kt38 override fun addIfAbsent(element: E): Boolean = in iterator() method in com.android.systemui.util.CopyOnLoopListenerSet
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/
DVisualStabilityProvider.kt38 allListeners.addIfAbsent(listener) in <lambda>()
45 if (allListeners.addIfAbsent(listener)) { in <lambda>()
DLaunchFullScreenIntentProvider.kt40 listeners.addIfAbsent(listener) in registerListener()
DDebugModeFilterProvider.kt74 listeners.addIfAbsent(listener) in registerInvalidationListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifPipelineChoreographer.kt97 listeners.addIfAbsent(onEvalListener) in addOnEvalListener()
134 listeners.addIfAbsent(onEvalListener) in addOnEvalListener()
DNotifLiveDataStoreImpl.kt131 syncObservers.addIfAbsent(observer) in addSyncObserver()
135 asyncObservers.addIfAbsent(observer) in addAsyncObserver()
DShadeListBuilder.java188 mOnBeforeTransformGroupsListeners.addIfAbsent(listener); in addOnBeforeTransformGroupsListener()
195 mOnBeforeSortListeners.addIfAbsent(listener); in addOnBeforeSortListener()
202 mOnBeforeFinalizeFilterListeners.addIfAbsent(listener); in addOnBeforeFinalizeFilterListener()
209 mOnBeforeRenderListListeners.addIfAbsent(listener); in addOnBeforeRenderListListener()
DNotificationEntry.java939 mOnSensitivityChangedListeners.addIfAbsent(listener); in addOnSensitivityChangedListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/
DBindEventManager.kt35 listeners.addIfAbsent(listener) in addListener()
DNotifUiAdjustmentProvider.kt85 dirtyListeners.addIfAbsent(listener) in addDirtyListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
DPrimaryBouncerCallbackInteractor.kt34 resetCallbacks.addIfAbsent(callback) in addKeyguardResetCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarBoundsProvider.kt51 changeListeners.addIfAbsent(listener) in <lambda>()
DDozeServiceHost.java221 mCallbacks.addIfAbsent(callback); in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIndividualSensorPrivacyControllerImpl.java119 mCallbacks.addIfAbsent(listener); in addCallback()
DSensitiveNotificationProtectionControllerImpl.java338 mListeners.addIfAbsent(onSensitiveStateChanged); in registerSensitiveStateListener()
DBaseHeadsUpManager.java151 mListeners.addIfAbsent(listener); in addListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DKeyguardNotificationVisibilityProvider.kt175 onStateChangedListeners.addIfAbsent(listener) in addOnStateChangedListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java381 mActionPressListeners.addIfAbsent(listener); in addActionPressListener()
DNotificationLockscreenUserManagerImpl.java795 mNotifStateChangedListeners.addIfAbsent(listener); in addNotificationStateChangedListener()
/frameworks/base/media/java/android/media/
DMediaRouter2.java718 mRouteCallbackRecords.addIfAbsent(record); in registerRouteCallback()
909 if (!mTransferCallbackRecords.addIfAbsent(record)) { in registerTransferCallback()
941 if (!mControllerCallbackRecords.addIfAbsent(record)) { in registerControllerCallback()

12