/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/ |
D | ConditionTest.java | 52 mCondition.addCallback(callback); in addCallback_addFirstCallback_triggerStart() 65 mCondition.addCallback(callback1); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 66 mCondition.addCallback(callback2); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 67 mCondition.addCallback(callback3); in addCallback_addMultipleCallbacks_triggerStartOnlyOnce() 76 mCondition.addCallback(callback1); in addCallback_alreadyStarted_triggerUpdate() 82 mCondition.addCallback(callback2); in addCallback_alreadyStarted_triggerUpdate() 91 mCondition.addCallback(callback); in removeCallback_removeLastCallback_triggerStop() 104 mCondition.addCallback(callback); in updateCondition_falseToTrue_reportTrue() 117 mCondition.addCallback(callback); in updateCondition_trueToFalse_reportFalse() 130 mCondition.addCallback(callback); in updateCondition_trueToTrue_reportNothing() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyItemControllerTest.kt | 112 privacyItemController.addCallback(callback) in testStartListeningByAddingCallback() 121 privacyItemController.addCallback(callback) in testStopListeningByRemovingLastCallback() 142 privacyItemController.addCallback(callback) in testPrivacyItemsAggregated() 163 privacyItemController.addCallback(callback) in testDistinctItems() 178 privacyItemController.addCallback(callback) in testSimilarItemsDifferentTimeStamp() 187 privacyItemController.addCallback(callback) in testAddMultipleCallbacks() 191 privacyItemController.addCallback(otherCallback) in testAddMultipleCallbacks() 203 privacyItemController.addCallback(callback) in testMultipleCallbacksAreUpdated() 204 privacyItemController.addCallback(otherCallback) in testMultipleCallbacksAreUpdated() 220 privacyItemController.addCallback(callback) in testRemoveCallback() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | DismissCallbackRegistryTest.java | 56 mDismissCallbackRegistry.addCallback(mMockCallback); in testCancelled() 64 mDismissCallbackRegistry.addCallback(mMockCallback); in testCancelled_multiple() 65 mDismissCallbackRegistry.addCallback(mMockCallback2); in testCancelled_multiple() 74 mDismissCallbackRegistry.addCallback(mMockCallback); in testSucceeded() 82 mDismissCallbackRegistry.addCallback(mMockCallback); in testSucceeded_multiple() 83 mDismissCallbackRegistry.addCallback(mMockCallback2); in testSucceeded_multiple() 92 mDismissCallbackRegistry.addCallback(mMockCallback); in testOnlyOnce()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImplTest.java | 118 mController.addCallback(mCallback1); in testAddingTwoCallbacksRegistersToWifiManagerOnce() 119 mController.addCallback(mCallback2); in testAddingTwoCallbacksRegistersToWifiManagerOnce() 126 mController.addCallback(mCallback1); in testAddingCallbacksDoesntUpdateAll() 127 mController.addCallback(mCallback2); in testAddingCallbacksDoesntUpdateAll() 137 mController.addCallback(mCallback1); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce() 138 mController.addCallback(mCallback2); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce() 148 mController.addCallback(mCallback1); in testDoNotUnregisterIfRemainingCallbacks() 149 mController.addCallback(mCallback2); in testDoNotUnregisterIfRemainingCallbacks() 173 mController.addCallback(mCallback1); in testHotspotSupported_callbackCalledOnChange_tetheringSupported() 183 mController.addCallback(mCallback1); in testHotspotSupported_callbackCalledOnChange_tetherableInterfaces()
|
D | LocationControllerImplTest.java | 114 mLocationController.addCallback(callback); in testRemoveSelfActive_DoesNotCrash() 115 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfActive_DoesNotCrash() 138 mLocationController.addCallback(callback); in testRemoveSelfSettings_DoesNotCrash() 139 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfSettings_DoesNotCrash() 148 mLocationController.addCallback(callback); in testAddCallback_notifiedImmediately() 159 mLocationController.addCallback(callback); in testCallbackNotified() 190 mLocationController.addCallback(callback); in testCallbackNotified_additionalOps() 227 mLocationController.addCallback(callback); in testCallbackNotified_additionalOps_shouldNotShowSystem() 253 mLocationController.addCallback(callback); in testCallbackNotified_additionalOps_shouldShowSystem() 302 mLocationController.addCallback(callback); in testCallbackNotified_verifyMetrics() [all …]
|
D | SafetyControllerTest.kt | 83 controller.addCallback(listener) in addingFirstListenerRegistersReceiver() 94 controller.addCallback(listener) in removingLastListenerDeregistersReceiver() 103 controller.addCallback(listener) in listenersCalledWhenBroadcastReceivedWithPCPackageAndStateChange() 115 controller.addCallback(listener) in listenersNotCalledWhenBroadcastReceivedWithOtherPackage() 126 controller.addCallback(listener) in listenersNotCalledWhenBroadcastReceivedWithNoStateChange()
|
D | DeviceProvisionedControllerImplTest.kt | 186 controller.addCallback(listener) in testListenerNotCalledOnAdd() 199 controller.addCallback(listener) in testListenerCalledOnUserSwitched() 215 controller.addCallback(listener) in testListenerCalledOnUserSetupChanged() 230 controller.addCallback(listener) in testListenerCalledOnDeviceProvisionedChanged() 245 controller.addCallback(listener) in testListenerCalledOnFrpActiveChanged() 260 controller.addCallback(listener) in testRemoveListener() 279 verify(userTracker).addCallback(capture(userTrackerCallbackCaptor), any()) in init()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
D | MmTelFeatureConnectionTest.java | 122 mCallbackManagerUT.addCallback(testCallback); in testCallbackAdapter_addAndRemoveCallback() 171 mCallbackManagerUT.addCallback(testCallback1); in testCallbackAdapter_closeSlotBasedCallbacks() 173 mCallbackManagerUT.addCallback(testCallback2); in testCallbackAdapter_closeSlotBasedCallbacks() 191 mCallbackManagerUT.addCallback(testCallback1); in testCallbackAdapter_removeCallbackSuccessAfterImsFeatureStateChangeToUnavailable() 197 mCallbackManagerUT.addCallback(testCallback2); in testCallbackAdapter_removeCallbackSuccessAfterImsFeatureStateChangeToUnavailable() 213 mCallbackManagerUT.addCallback(testCallback1); in testCallbackAdapter_removeCallbackFailedAfterBinderIsNotAlive() 230 mCallbackManagerUT.addCallback(testCallback1); in testCallbackAdapter_addCallbackFailedAfterBinderIsNotReady() 236 mCallbackManagerUT.addCallback(testCallback1); in testCallbackAdapter_addCallbackFailedAfterBinderIsNotReady()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/ |
D | DreamOverlayStatusBarItemsProviderTest.java | 60 mProvider.addCallback(mCallback); in addingCallbackCallsOnStatusBarItemsChanged() 66 mProvider.addCallback(mCallback); in addingStatusBarItemCallsOnStatusBarItemsChanged() 73 mProvider.addCallback(mCallback); in addingDuplicateStatusBarItemDoesNotCallOnStatusBarItemsChanged() 83 mProvider.addCallback(mCallback); in removingStatusBarItemCallsOnStatusBarItemsChanged() 92 mProvider.addCallback(mCallback); in removingNonexistentStatusBarItemDoesNotCallOnStatusBarItemsChanged()
|
D | DreamOverlayStatusBarViewControllerTest.java | 155 verify(mNextAlarmController).addCallback(any()); in testOnViewAttachedAddsCallbacks() 156 verify(mSensorPrivacyController).addCallback(any()); in testOnViewAttachedAddsCallbacks() 157 verify(mZenModeController).addCallback(any()); in testOnViewAttachedAddsCallbacks() 158 verify(mDreamOverlayNotificationCountProvider).addCallback(any()); in testOnViewAttachedAddsCallbacks() 159 verify(mDreamOverlayStatusBarItemsProvider).addCallback(any()); in testOnViewAttachedAddsCallbacks() 160 verify(mDreamOverlayStateController).addCallback(any()); in testOnViewAttachedAddsCallbacks() 255 verify(mDreamOverlayNotificationCountProvider).addCallback(callbackCapture.capture()); in testOnViewAttachedShowsNotificationsIconWhenNotificationsExist() 268 verify(mDreamOverlayNotificationCountProvider).addCallback(callbackCapture.capture()); in testOnViewAttachedHidesNotificationsIconWhenNoNotificationsExist() 401 verify(mDreamOverlayNotificationCountProvider).addCallback(callbackCapture.capture()); in testNotificationsIconShownWhenNotificationAdded() 414 verify(mDreamOverlayNotificationCountProvider).addCallback(callbackCapture.capture()); in testNotificationsIconHiddenWhenLastNotificationRemoved() [all …]
|
D | DreamOverlayCallbackControllerTest.kt | 51 underTest.addCallback(callback) in onWakeUpInvokesCallback() 58 underTest.addCallback(callback) in onWakeUpInvokesCallback() 71 underTest.addCallback(callback) in onStartDreamInvokesCallback() 81 underTest.addCallback(callback) in onStartDreamInvokesCallback()
|
D | DreamOverlayStateControllerTest.java | 73 stateController.addCallback(mCallback); in testStateChange_overlayActive() 94 stateController.addCallback(mCallback); in testCallback() 124 stateController.addCallback(mCallback); in testNotifyOnCallbackAdd() 137 stateController.addCallback(mCallback); in testNotifyOnCallbackAddOverlayDisabled() 161 stateController.addCallback(callback); in testComplicationFilteringWhenShouldShowComplications() 201 stateController.addCallback(callback); in testComplicationFilteringWhenShouldHideComplications() 258 stateController.addCallback(mCallback); in testNotifyLowLightChanged() 273 stateController.addCallback(mCallback); in testNotifyLowLightExit() 296 stateController.addCallback(mCallback); in testNotifyEntryAnimationsFinishedChanged() 330 stateController.addCallback(callback); in testShouldShowComplicationsSetToFalse_stillShowsSupportedTypes_featureEnabled() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakePluginManager.java | 34 mLeakChecker.addCallback(listener); in addPluginListener() 39 mLeakChecker.addCallback(listener); in addPluginListener() 45 mLeakChecker.addCallback(listener); in addPluginListener() 51 mLeakChecker.addCallback(listener); in addPluginListener()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ObservableServiceConnectionTest.java | 109 mConnection.addCallback(mCallback); in testConnect() 110 mConnection.addCallback(mCallback); in testConnect() 128 mConnection.addCallback(mCallback); in testDisconnectBeforeBind() 138 mConnection.addCallback(mCallback); in testDisconnect() 160 mConnection.addCallback(mCallback); in testBindingDied() 177 mConnection.addCallback(mCallback); in testNullBinding() 194 mConnection.addCallback(mCallback); in testUnbind()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 149 verify(mSensorPrivacyController, times(1)).addCallback(mController); in testOnlyListenForFewOps() 162 mController.addCallback( in addCallback_includedCode() 176 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode() 186 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in removeCallback_sameCode() 197 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in addCallback_notSameCode() 260 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in exemptedRoleNotNotified() 359 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testActiveOpNotRemovedAfterNoted() 392 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testNotedNotRemovedAfterActive() 421 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testNotedAndActiveOnlyOneCall() 436 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testActiveAndNotedOnlyOneCall() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | AutoTileManagerTest.java | 219 verify(hC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 220 verify(dSC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 221 verify(mPC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 223 verify(cC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 224 verify(rBC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 227 verify(sC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized() 252 inOrderHotspot.verify(mHotspotController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted() 256 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted() 260 inOrderManagedProfile.verify(mManagedProfileController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted() 270 inOrderReduceBrightColors.verify(mReduceBrightColorsController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
D | LockoutResetDispatcherTest.java | 71 mDispatcher.addCallback(mCallback, "package"); in linksToDeath() 79 mDispatcher.addCallback(mCallback, "some.package"); in notifyLockoutReset() 90 mDispatcher.addCallback(mCallback, "a.b.cee"); in releaseWakeLockOnDeath() 100 mDispatcher.addCallback(mCallback, "a.b"); in releaseCorrectWakeLockOnDeath()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardRepository.kt | 222 keyguardStateController.addCallback(callback) in isKeyguardShowing() 247 dozeParameters.addCallback(callback) in isKeyguardShowing() 272 keyguardStateController.addCallback(callback) in isKeyguardShowing() 297 keyguardStateController.addCallback(callback) in isKeyguardShowing() 321 keyguardStateController.addCallback(callback) in isKeyguardShowing() 340 dozeHost.addCallback(callback) in isKeyguardShowing() 362 dreamOverlayCallbackController.addCallback(callback) in isKeyguardShowing() 400 statusBarStateController.addCallback(callback) in isKeyguardShowing() 424 dozeTransitionListener.addCallback(callback) in isKeyguardShowing() 449 statusBarStateController.addCallback(callback) in isKeyguardShowing() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/util/ |
D | NaturalRotationUnfoldProgressProvider.kt | 41 rotationChangeProvider.addCallback(rotationListener) in <lambda>() 60 override fun addCallback(listener: TransitionProgressListener) { in <lambda>() method 61 scopedUnfoldTransitionProgressProvider.addCallback(listener) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/ |
D | SmartSpaceComplicationTest.java | 100 verify(mDreamOverlayStateController).addCallback(any()); in testRegistrantStart_featureEnabled_addOverlayStateCallback() 110 verify(mDreamOverlayStateController, never()).addCallback(any()); in testRegistrantStart_featureDisabled_doesNotAddOverlayStateCallback() 120 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_addsTargetListener() 138 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_targetsNonEmpty_addsComplication() 160 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_targetsEmpty_addsComplication() 181 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayInActive_removesTargetListener_removesComplication()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/ |
D | ObservableServiceConnectionTest.java | 106 connection.addCallback(mCallback); in testConnect() 107 connection.addCallback(mCallback); in testConnect() 125 connection.addCallback(mCallback); in testDisconnect() 155 connection.addCallback(mCallback); in testUnbind() 179 connection.addCallback(mCallback); in testBindServiceThrowsError()
|
D | PersistentConnectionManagerTest.java | 78 verify(mConnection).addCallback(connectionCallbackCaptor.capture()); in captureCallbackAndSend() 110 verify(mConnection).addCallback(connectionCallbackCaptor.capture()); in testRetryOnBindFailure() 132 verify(mConnection).addCallback(connectionCallbackCaptor.capture()); in testStopDoesNotReconnect() 152 verify(mObserver).addCallback(callbackCaptor.capture()); in testAttemptOnPackageChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/ |
D | WMShell.java | 216 mConfigurationController.addCallback(mConfigurationListener); in start() 219 mKeyguardStateController.addCallback(mKeyguardStateCallback); in start() 223 mUserTracker.addCallback(mUserChangedCallback, mContext.getMainExecutor()); in start() 226 mCommandQueue.addCallback(this); in start() 237 mCommandQueue.addCallback(new CommandQueue.Callbacks() { in initPip() 244 mSysUiState.addCallback(sysUiStateFlag -> { in initPip() 258 mCommandQueue.addCallback(new CommandQueue.Callbacks() { in initSplitScreen() 329 mCommandQueue.addCallback(new CommandQueue.Callbacks() { in initOneHanded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessMirrorHandler.kt | 29 mirrorController?.addCallback(brightnessMirrorListener) in onQsPanelAttached() 39 mirrorController?.addCallback(brightnessMirrorListener) in setController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | MediaRouterWrapper.java | 36 public void addCallback(MediaRouteSelector selector, MediaRouter.Callback callback, int flags) { in addCallback() method in MediaRouterWrapper 37 mRouter.addCallback(selector, callback, flags); in addCallback()
|