/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeTaskRepositoryTest.kt | 43 val listener = TestListener() in addActiveTask_listenerNotifiedAndTaskIsActive() constant 53 val listener = TestListener() in addActiveTask_sameTaskDoesNotNotify() constant 63 val listener = TestListener() in addActiveTask_multipleTasksAddedNotifiesForEach() constant 73 val listener = TestListener() in addActiveTask_multipleDisplays_notifiesCorrectListener() constant 86 val listener = TestListener() in removeActiveTask_listenerNotifiedAndTaskNotActive() constant 98 val listener = TestListener() in removeActiveTask_removeNotExistingTaskDoesNotNotify() constant 106 val listener = TestListener() in remoteActiveTask_listenerForOtherDisplayNotNotified() constant 122 val listener = TestVisibilityListener() in addListener_notifiesVisibleFreeformTask() constant 134 val listener = TestVisibilityListener() in addListener_notifiesStashed() constant 146 val listener = TestVisibilityListener() in addListener_tasksOnDifferentDisplay_doesNotNotify() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
D | ProximitySensorImplDualTest.java | 68 TestableListener listener = new TestableListener(); in testInitiallyAbovePrimary() local 86 TestableListener listener = new TestableListener(); in testInitiallyBelowPrimaryAboveSecondary() local 108 TestableListener listener = new TestableListener(); in testInitiallyBelowPrimaryAndSecondary() local 129 TestableListener listener = new TestableListener(); in testPrimaryBelowDoesNotInvokeSecondary() local 146 TestableListener listener = new TestableListener(); in testSingleListener() local 182 TestableListener listener = new TestableListener(); in testSecondaryPausing() local 217 TestableListener listener = new TestableListener(); in testUnregister() local 267 TestableListener listener = new TestableListener(); in testPauseAndResume() local 311 TestableListener listener = new TestableListener(); in testPrimarySecondaryDisagreement() local 342 TestableListener listener = new TestableListener(); in testSecondaryCancelsSecondary() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | ShadeExpansionStateManagerTest.kt | 37 val listener = TestShadeExpansionListener() in onPanelExpansionChanged_listenerNotified() constant 70 val listener = TestShadeExpansionListener() in addExpansionListener_listenerNotifiedOfCurrentValues() constant 83 val listener = TestShadeStateListener() in updateState_listenerNotified() constant 97 val listener = TestShadeStateListener() in onPEC_fractionLessThanOne_expandedTrue_trackingFalse_becomesStateOpening() constant 112 val listener = TestShadeStateListener() in onPEC_fractionLessThanOne_expandedTrue_trackingTrue_becomesStateOpening() constant 127 val listener = TestShadeStateListener() in onPEC_fractionLessThanOne_expandedFalse_trackingFalse_becomesStateClosed() constant 144 val listener = TestShadeStateListener() in onPEC_fractionLessThanOne_expandedFalse_trackingTrue_doesNotBecomeStateClosed() constant 163 val listener = TestShadeStateListener() in onPEC_fractionOne_expandedTrue_trackingFalse_becomesStateOpeningThenStateOpen() constant 179 val listener = TestShadeStateListener() in onPEC_fractionOne_expandedTrue_trackingTrue_becomesStateOpening() constant 194 val listener = TestShadeStateListener() in onPEC_fractionOne_expandedFalse_trackingFalse_becomesStateClosed() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 52 val listener = mock(ConfigurationListener::class.java) in testThemeChange() constant 61 val listener = mock(ConfigurationListener::class.java) in testRemoveListenerDuringCallback() constant 83 val listener = createAndAddListener() in configChanged_listenerNotified() constant 101 val listener = createAndAddListener() in densityChanged_listenerNotified() constant 117 val listener = createAndAddListener() in fontChanged_listenerNotified() constant 134 val listener = createAndAddListener() in isCarAndUiModeChanged_densityListenerNotified() constant 151 val listener = createAndAddListener() in isNotCarAndUiModeChanged_densityListenerNotNotified() constant 167 val listener = createAndAddListener() in smallestScreenWidthChanged_listenerNotified() constant 183 val listener = createAndAddListener() in maxBoundsChange_newConfigObject_listenerNotified() constant 201 val listener = createAndAddListener() in maxBoundsChange_sameObject_listenerNotified() constant [all …]
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SettingsHelper.java | 69 public abstract void addOnLocationEnabledChangedListener(UserSettingChangedListener listener); in addOnLocationEnabledChangedListener() 75 UserSettingChangedListener listener); in removeOnLocationEnabledChangedListener() 87 GlobalSettingChangedListener listener); in addOnBackgroundThrottleIntervalChangedListener() 93 GlobalSettingChangedListener listener); in removeOnBackgroundThrottleIntervalChangedListener() 105 UserSettingChangedListener listener); in addOnLocationPackageBlacklistChangedListener() 111 UserSettingChangedListener listener); in removeOnLocationPackageBlacklistChangedListener() 123 GlobalSettingChangedListener listener); in addOnBackgroundThrottlePackageWhitelistChangedListener() 129 GlobalSettingChangedListener listener); in removeOnBackgroundThrottlePackageWhitelistChangedListener() 141 GlobalSettingChangedListener listener); in addOnGnssMeasurementsFullTrackingEnabledChangedListener() 147 GlobalSettingChangedListener listener); in removeOnGnssMeasurementsFullTrackingEnabledChangedListener() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserVisibilityMediatorVisibleBackgroundUserTestCase.java | 49 AsyncUserVisibilityListener listener = addListenerForEvents( in testStartFgUser_onDefaultDisplay() local 80 AsyncUserVisibilityListener listener = addListenerForEvents( in testSwitchFgUser_onDefaultDisplay() local 113 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartFgUser_onInvalidDisplay() local 127 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartVisibleBgUser_onInvalidDisplay() local 145 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAvailable() local 195 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(OTHER_USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAlreadyAssigned() local 214 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_displayAlreadyAssignedToSameUser() local 246 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(USER_ID)); in testStartVisibleBgUser_onSecondaryDisplay_userAlreadyAssigned() local 280 AsyncUserVisibilityListener listener = addListenerForEvents( in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsCurrentUser() local 309 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(PARENT_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnAnotherDisplay() local [all …]
|
D | UserVisibilityMediatorMUPANDTest.java | 55 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(visibleBgUserId)); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId() local 95 AsyncUserVisibilityListener listener = addListenerForEvents( in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId() local 136 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(PARENT_USER_ID)); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnSecondaryDisplay() local 156 AsyncUserVisibilityListener listener = addListenerForEvents( in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBgOnDefaultDisplay() local 187 AsyncUserVisibilityListener listener = addListenerForEvents(onVisible(PARENT_USER_ID)); in testStartBgProfile_onDefaultDisplay_whenParentIsStartedVisibleOnBg() local 213 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartVisibleBgUser_onDefaultDisplay_currentUserId() local
|
D | UserVisibilityMediatorTestCase.java | 168 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartFgUser_onSecondaryDisplay() local 183 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartBgUser_onDefaultDisplay() local 199 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in visibleBgUserCannotBeStartedOnDefaultDisplayTest() local 215 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartBgUser_onSecondaryDisplay() local 232 AsyncUserVisibilityListener listener = addListenerForEvents( in testStartBgSystemUser_onSecondaryDisplay() local 255 AsyncUserVisibilityListener listener = addListenerForEvents( in testStopVisibleBgProfile() local 274 AsyncUserVisibilityListener listener = addListenerForEvents( in testVisibleBgProfileBecomesInvisibleWhenParentIsSwitchedOut() local 297 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsNotStarted() local 312 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartVisibleBgProfile_onDefaultDisplay_whenParentIsStartedOnBg() local 332 AsyncUserVisibilityListener listener = addListenerForNoEvents(); in testStartVisibleBgProfile_onSecondaryDisplay() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 160 val listener = mock(IInputDeviceBatteryListener::class.java) in createMockListener() constant 263 val listener = createMockListener() in testRegisterAndUnregisterBinderLifecycle() constant 295 val listener = createMockListener() in testProcessDeathRemovesListener() constant 312 val listener = createMockListener() in testRegisteringListenerNotifiesStateImmediately() constant 327 val listener = createMockListener() in testListenersNotifiedOnUEventNotification() constant 359 val listener = createMockListener() in testBatteryPresenceChanged() constant 384 val listener = createMockListener() in testStartPollingWhenListenerIsRegistered() constant 415 val listener = createMockListener() in testNoPollingWhenTheDeviceIsNotInteractive() constant 452 val listener = createMockListener() in testGetBatteryStateWithListener() constant 479 val listener = createMockListener() in testUsiDeviceIsMonitoredPersistently() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayControllerTest.kt | 189 val listener = registerListener() in displayView_twiceWithDifferentIds_oldViewRemovedNewViewAdded() constant 222 val listener = registerListener() in displayView_viewDoesNotDisappearsBeforeTimeout() constant 236 val listener = registerListener() in displayView_viewDisappearsAfterTimeout() constant 250 val listener = registerListener() in displayView_calledAgainBeforeTimeout_timeoutReset() constant 271 val listener = registerListener() in displayView_calledAgainBeforeTimeout_eventuallyTimesOut() constant 303 val listener = registerListener() in multipleViewsWithDifferentIds_moreRecentReplacesOlder() constant 338 val listener = registerListener() in multipleViewsWithDifferentIds_newViewRemoved_previousViewIsDisplayed() constant 377 val listener = registerListener() in multipleViewsWithDifferentIds_oldViewRemoved_recentViewIsDisplayed() constant 410 val listener = registerListener() in multipleViewsWithDifferentIds_threeDifferentViews_recentActiveViewIsDisplayed() constant 477 val listener = registerListener() in multipleViews_mostRecentViewRemoved_otherViewsTimedOutAndNotDisplayed() constant [all …]
|
/frameworks/native/libs/gui/ |
D | BufferQueue.cpp | 35 sp<ConsumerListener> listener(mConsumerListener.promote()); in onDisconnect() local 42 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameDequeued() local 49 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameCancelled() local 56 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameDetached() local 64 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameAvailable() local 72 sp<ConsumerListener> listener(mConsumerListener.promote()); in onFrameReplaced() local 79 sp<ConsumerListener> listener(mConsumerListener.promote()); in onBuffersReleased() local 86 sp<ConsumerListener> listener(mConsumerListener.promote()); in onSidebandStreamChanged() local 95 sp<ConsumerListener> listener(mConsumerListener.promote()); in addAndGetFrameTimestamps() local
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeSettingsHelper.java | 50 public void addListener(UserSettingChangedListener listener) { in addListener() 54 public void removeListener(UserSettingChangedListener listener) { in removeListener() 106 public void addOnLocationEnabledChangedListener(UserSettingChangedListener listener) { in addOnLocationEnabledChangedListener() 111 public void removeOnLocationEnabledChangedListener(UserSettingChangedListener listener) { in removeOnLocationEnabledChangedListener() 126 GlobalSettingChangedListener listener) { in addOnBackgroundThrottleIntervalChangedListener() 132 GlobalSettingChangedListener listener) { in removeOnBackgroundThrottleIntervalChangedListener() 146 public void addOnLocationPackageBlacklistChangedListener(UserSettingChangedListener listener) { in addOnLocationPackageBlacklistChangedListener() 152 UserSettingChangedListener listener) { in removeOnLocationPackageBlacklistChangedListener() 167 GlobalSettingChangedListener listener) { in addOnBackgroundThrottlePackageWhitelistChangedListener() 173 GlobalSettingChangedListener listener) { in removeOnBackgroundThrottlePackageWhitelistChangedListener() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | PendingInsetsControllerTest.java | 97 WindowInsetsAnimationControlListener listener = in testControl() local 101 systemBars(), 0, new LinearInterpolator(), cancellationSignal, listener); in testControl() local 108 WindowInsetsAnimationControlListener listener = in testControl_direct() local 113 new LinearInterpolator(), cancellationSignal, listener); in testControl_direct() local 172 OnControllableInsetsChangedListener listener = in testAddOnControllableInsetsChangedListener() local 182 OnControllableInsetsChangedListener listener = in testAddRemoveControllableInsetsChangedListener() local 194 OnControllableInsetsChangedListener listener = in testAddOnControllableInsetsChangedListener_direct() local 217 WindowInsetsAnimationControlListener listener = in testSystemDrivenInsetsAnimationLoggingListener() local 227 WindowInsetsAnimationControlListener listener = in testSystemDrivenInsetsAnimationLoggingListener_direct() local
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/ |
D | TelephonyListenerManager.java | 60 public void addActiveDataSubscriptionIdListener(ActiveDataSubscriptionIdListener listener) { in addActiveDataSubscriptionIdListener() 66 public void removeActiveDataSubscriptionIdListener(ActiveDataSubscriptionIdListener listener) { in removeActiveDataSubscriptionIdListener() 72 public void addCallStateListener(CallStateListener listener) { in addCallStateListener() 78 public void removeCallStateListener(CallStateListener listener) { in removeCallStateListener() 84 public void addServiceStateListener(ServiceStateListener listener) { in addServiceStateListener() 90 public void removeServiceStateListener(ServiceStateListener listener) { in removeServiceStateListener()
|
D | TelephonyCallback.java | 64 void addActiveDataSubscriptionIdListener(ActiveDataSubscriptionIdListener listener) { in addActiveDataSubscriptionIdListener() 68 void removeActiveDataSubscriptionIdListener(ActiveDataSubscriptionIdListener listener) { in removeActiveDataSubscriptionIdListener() 81 void addCallStateListener(CallStateListener listener) { in addCallStateListener() 85 void removeCallStateListener(CallStateListener listener) { in removeCallStateListener() 98 void addServiceStateListener(ServiceStateListener listener) { in addServiceStateListener() 102 void removeServiceStateListener(ServiceStateListener listener) { in removeServiceStateListener()
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | CapabilityExchangeAidlWrapper.java | 45 public CapabilityExchangeAidlWrapper(@Nullable ICapabilityExchangeEventListener listener) { in CapabilityExchangeAidlWrapper() 54 ICapabilityExchangeEventListener listener = mListenerBinder; in onRequestPublishCapabilities() local 71 ICapabilityExchangeEventListener listener = mListenerBinder; in onUnpublish() local 94 ICapabilityExchangeEventListener listener = mListenerBinder; in onPublishUpdated() local 116 ICapabilityExchangeEventListener listener = mListenerBinder; in onPublishUpdated() local 136 ICapabilityExchangeEventListener listener = mListenerBinder; in onRemoteCapabilityRequest() local
|
/frameworks/base/core/java/android/speech/ |
D | IRecognitionService.aidl | 47 void startListening(in Intent recognizerIntent, in IRecognitionListener listener, in startListening() 57 void stopListening(in IRecognitionListener listener); in stopListening() 64 void cancel(in IRecognitionListener listener, boolean isShutdown); in cancel() 74 in IRecognitionSupportCallback listener); in checkRecognitionSupport() 86 in IModelDownloadListener listener); in triggerModelDownload()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/ |
D | LocationProviderManagerTest.java | 293 ProviderEnabledListener listener = mock(ProviderEnabledListener.class); in testIsEnabledListener() local 458 ILocationListener listener = createMockLocationListener(); in testPassive_Listener() local 478 ILocationListener listener = createMockLocationListener(); in testRegisterListener() local 519 ILocationListener listener = createMockLocationListener(); in testRegisterListener_SameProcess() local 534 ILocationListener listener = createMockLocationListener(); in testRegisterListener_Unregister() local 555 ILocationListener listener = createMockLocationListener(); in testRegisterListener_Unregister_SameProcess() local 580 ILocationListener listener = createMockLocationListener(); in testRegisterListener_NumUpdates() local 600 ILocationListener listener = createMockLocationListener(); in testRegisterListener_InvisibleUser() local 619 ILocationListener listener = createMockLocationListener(); in testRegisterListener_ExpiringAlarm() local 634 ILocationListener listener = createMockLocationListener(); in testRegisterListener_ExpiringNoAlarm() local [all …]
|
/frameworks/base/core/java/android/telephony/ |
D | TelephonyCallback.java | 1653 ServiceStateListener listener = (ServiceStateListener) mTelephonyCallbackWeakRef.get(); in onServiceStateChanged() local 1665 MessageWaitingIndicatorListener listener = in onMessageWaitingIndicatorChanged() local 1674 CallForwardingIndicatorListener listener = in onCallForwardingIndicatorChanged() local 1687 CellLocationListener listener = (CellLocationListener) mTelephonyCallbackWeakRef.get(); in onCellLocationChanged() local 1700 CallStateListener listener = (CallStateListener) mTelephonyCallbackWeakRef.get(); in onCallStateChanged() local 1708 DataConnectionStateListener listener = in onDataConnectionStateChanged() local 1726 DataActivityListener listener = (DataActivityListener) mTelephonyCallbackWeakRef.get(); in onDataActivity() local 1734 SignalStrengthsListener listener = in onSignalStrengthsChanged() local 1744 CellInfoListener listener = (CellInfoListener) mTelephonyCallbackWeakRef.get(); in onCellInfoChanged() local 1752 PreciseCallStateListener listener = in onPreciseCallStateChanged() local [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/ |
D | CallbackController.java | 27 void addCallback(@NonNull T listener); in addCallback() 30 void removeCallback(@NonNull T listener); in removeCallback() 36 default T observe(LifecycleOwner owner, T listener) { in observe() 44 default T observe(Lifecycle lifecycle, T listener) { in observe()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowStateControllerTest.kt | 55 val listener = TestListener() in setWindowState_notSameDisplayId_listenersNotNotified() constant 65 val listener = TestListener() in setWindowState_notStatusBarWindow_listenersNotNotified() constant 75 val listener = TestListener() in setWindowState_sameState_listenersNotNotified() constant 85 val listener = TestListener() in setWindowState_newState_listenersNotified() constant
|
/frameworks/base/core/java/android/os/ |
D | IThermalService.aidl | 35 boolean registerThermalEventListener(in IThermalEventListener listener); in registerThermalEventListener() 44 boolean registerThermalEventListenerWithType(in IThermalEventListener listener, in int type); in registerThermalEventListenerWithType() 52 boolean unregisterThermalEventListener(in IThermalEventListener listener); in unregisterThermalEventListener() 75 boolean registerThermalStatusListener(in IThermalStatusListener listener); in registerThermalStatusListener() 83 boolean unregisterThermalStatusListener(in IThermalStatusListener listener); in unregisterThermalStatusListener()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeThermalService.java | 40 public boolean registerThermalEventListener(IThermalEventListener listener) { in registerThermalEventListener() 45 public boolean registerThermalEventListenerWithType(IThermalEventListener listener, int type) { in registerThermalEventListenerWithType() 50 public boolean unregisterThermalEventListener(IThermalEventListener listener) { in unregisterThermalEventListener() 65 public boolean registerThermalStatusListener(IThermalStatusListener listener) { in registerThermalStatusListener() 70 public boolean unregisterThermalStatusListener(IThermalStatusListener listener) { in unregisterThermalStatusListener()
|
/frameworks/base/media/java/android/media/ |
D | CallbackUtil.java | 52 ListenerInfo(@NonNull T listener, @NonNull Executor exe) { in ListenerInfo() 65 static <T> @Nullable ListenerInfo<T> getListenerInfo( in getListenerInfo() 85 static <T> boolean hasListener(@NonNull T listener, in hasListener() 97 static <T> boolean removeListener(@NonNull T listener, in removeListener() 128 @NonNull T listener, in addListener() 178 @NonNull T listener, in removeListener() 197 void callbackMethod(T listener); in callbackMethod() 271 void addListener(@NonNull Executor executor, @NonNull T listener, String methodName, in addListener() 290 void removeListener(@NonNull T listener, String methodName) { in removeListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | FakeFeatureFlagsTest.kt | 120 val listener = VerifyingListener() in listenerForBooleanFlag_calledOnlyWhenFlagChanged() constant 134 val listener = VerifyingListener() in listenerForStringFlag_calledOnlyWhenFlagChanged() constant 146 val listener = VerifyingListener() in listenerForBooleanFlag_notCalledAfterRemoved() constant 158 val listener = VerifyingListener() in listenerForStringFlag_notCalledAfterRemoved() constant 171 val listener = VerifyingListener() in listenerForMultipleFlags_calledWhenFlagsChange() constant 184 val listener = VerifyingListener() in listenerForMultipleFlags_notCalledAfterRemoved() constant
|