Home
last modified time | relevance | path

Searched refs:addCallback (Results 1 – 25 of 238) sorted by relevance

12345678910

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DDismissCallbackRegistryTest.java52 mDismissCallbackRegistry.addCallback(mMockCallback); in testCancelled()
60 mDismissCallbackRegistry.addCallback(mMockCallback); in testCancelled_multiple()
61 mDismissCallbackRegistry.addCallback(mMockCallback2); in testCancelled_multiple()
70 mDismissCallbackRegistry.addCallback(mMockCallback); in testSucceeded()
78 mDismissCallbackRegistry.addCallback(mMockCallback); in testSucceeded_multiple()
79 mDismissCallbackRegistry.addCallback(mMockCallback2); in testSucceeded_multiple()
88 mDismissCallbackRegistry.addCallback(mMockCallback); in testOnlyOnce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHotspotControllerImplTest.java84 mController.addCallback(mCallback1); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
85 mController.addCallback(mCallback2); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
92 mController.addCallback(mCallback1); in testAddingCallbacksDoesntUpdateAll()
93 mController.addCallback(mCallback2); in testAddingCallbacksDoesntUpdateAll()
103 mController.addCallback(mCallback1); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
104 mController.addCallback(mCallback2); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
114 mController.addCallback(mCallback1); in testDoNotUnregisterIfRemainingCallbacks()
115 mController.addCallback(mCallback2); in testDoNotUnregisterIfRemainingCallbacks()
DLocationControllerImplTest.java59 mLocationController.addCallback(callback); in testRemoveSelfActive_DoesNotCrash()
60 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfActive_DoesNotCrash()
81 mLocationController.addCallback(callback); in testRemoveSelfSettings_DoesNotCrash()
82 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfSettings_DoesNotCrash()
DZenModeControllerImplTest.java74 mController.addCallback(mCallback); in testRemoveDuringCallback()
76 mController.addCallback(mockCallback); in testRemoveDuringCallback()
115 mController.addCallback(null); in testAddNullCallback()
DCastControllerImplTest.java61 mController.addCallback(mockCallback); in testAddCallback()
69 mController.addCallback(mockCallback); in testRemoveCallback()
108 mController.addCallback(mCallback); in testAddCallbackRemoveCallback_concurrently()
DCallbackControllerTest.java58 verify(controller).addCallback(eq(callback)); in testAddCallback()
81 public void addCallback(Object listener) { in addCallback() method in CallbackControllerTest.Controller
DBluetoothControllerImplTest.java111 mBluetoothControllerImpl.addCallback(callback); in testAsyncBondState()
132 mBluetoothControllerImpl.addCallback(callback); in testAsyncConnectionState()
155 mBluetoothControllerImpl.addCallback(callback); in testNullAsync_DoesNotCrash()
210 mBluetoothControllerImpl.addCallback(callback); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java78 mWifiTrafficPoller.addCallback( in testClientNotification()
93 mWifiTrafficPoller.addCallback( in testRemoveClient()
110 mWifiTrafficPoller.addCallback( in testRemoveClientWithWrongIdentifier()
128 mWifiTrafficPoller.addCallback( in registersForBinderDeathOnAddClient()
141 mWifiTrafficPoller.addCallback( in addCallbackFailureOnLinkToDeath()
DWifiNetworkFactoryTest.java667 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testHandleCallbackRegistrationAndUnregistration()
689 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testHandleCallbackRegistrationWithNoActiveRequest()
726 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
769 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
813 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
857 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchSuccessUsingOuiPrefixBssidMatch()
902 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatchWithMultipleBssidMatches()
949 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchFailUsingLiteralSsidMatchWhenSsidNotFound()
989 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierMatchFailUsingLiteralSsidMatchWhenKeyMgmtDiffers()
1115 mWifiNetworkFactory.addCallback(mAppBinder, mNetworkRequestMatchCallback, in testNetworkSpecifierHandleUserSelectionConnectToNetworkExceedApprovedListCapacity()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakePluginManager.java34 mLeakChecker.addCallback(listener); in addPluginListener()
39 mLeakChecker.addCallback(listener); in addPluginListener()
45 mLeakChecker.addCallback(listener); in addPluginListener()
51 mLeakChecker.addCallback(listener); in addPluginListener()
DFakeKeyguardMonitor.java30 public void addCallback(Callback callback) { in addCallback() method in FakeKeyguardMonitor
31 mCallbackController.addCallback(callback); in addCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehaviorTest.java74 verify(mMockStatusBarStateController).addCallback( in onModeActivated_beginsObserving()
78 verify(mMockOverviewProxyService).addCallback(any( in onModeActivated_beginsObserving()
138 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onModeDeactivated_stopsObserving()
140 verify(mMockOverviewProxyService).addCallback(overviewProxyListener.capture()); in onModeDeactivated_stopsObserving()
214 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onBothAwakeAndUnDoze_handlesShow()
271 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onSleepOrDoze_handlesHide()
315 verify(mMockOverviewProxyService).addCallback(sysUiStateCallback.capture()); in onHomeHandleHide_handlesHide()
344 verify(mMockOverviewProxyService).addCallback(sysUiStateCallback.capture()); in onHomeHandleUnhide_handlesShow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java95 mController.addCallback( in addCallback_includedCode()
109 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode()
119 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in removeCallback_sameCode()
130 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in addCallback_notSameCode()
237 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testActiveOpNotRemovedAfterNoted()
266 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testNotedNotRemovedAfterActive()
295 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testNotedAndActiveOnlyOneCall()
310 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in testActiveAndNotedOnlyOneCall()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt38 mConfigurationController.addCallback(listener) in testThemeChange()
47 mConfigurationController.addCallback(listener) in testRemoveListenerDuringCallback()
49 mConfigurationController.addCallback(listener2) in testRemoveListenerDuringCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DMediaRouterWrapper.java36 public void addCallback(MediaRouteSelector selector, MediaRouter.Callback callback, int flags) { in addCallback() method in MediaRouterWrapper
37 mRouter.addCallback(selector, callback, flags); in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java24 void addCallback(T listener); in addCallback() method
42 addCallback(listener); in observe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java231 mRotationLockController.addCallback(this); in PhoneStatusBarPolicy()
232 mBluetooth.addCallback(this); in PhoneStatusBarPolicy()
233 mProvisionedController.addCallback(this); in PhoneStatusBarPolicy()
234 mZenController.addCallback(this); in PhoneStatusBarPolicy()
235 mCast.addCallback(mCastCallback); in PhoneStatusBarPolicy()
236 mHotspot.addCallback(mHotspotCallback); in PhoneStatusBarPolicy()
237 mNextAlarmController.addCallback(mNextAlarmCallback); in PhoneStatusBarPolicy()
238 mDataSaver.addCallback(this); in PhoneStatusBarPolicy()
239 mKeyguardMonitor.addCallback(this); in PhoneStatusBarPolicy()
240 mSensorPrivacyController.addCallback(mSensorPrivacyListener); in PhoneStatusBarPolicy()
[all …]
DAutoTileManager.java77 hotspotController.addCallback(mHotspotCallback); in AutoTileManager()
80 dataSaverController.addCallback(mDataSaverListener); in AutoTileManager()
98 managedProfileController.addCallback(mProfileCallback); in AutoTileManager()
105 castController.addCallback(mCastCallback); in AutoTileManager()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionTests.java57 transaction.addCallback(callback1); in testPreExecute()
58 transaction.addCallback(callback2); in testPreExecute()
/frameworks/base/services/core/java/com/android/server/hdmi/
DDevicePowerStatusAction.java58 addCallback(callback); in DevicePowerStatusAction()
101 public void addCallback(IHdmiControlCallback callback) { in addCallback() method in DevicePowerStatusAction
DOneTouchPlayAction.java72 addCallback(callback); in OneTouchPlayAction()
142 public void addCallback(IHdmiControlCallback callback) { in addCallback() method in OneTouchPlayAction
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterSurfaceView.java44 getHolder().addCallback(this); in FilterSurfaceView()
49 getHolder().addCallback(this); in FilterSurfaceView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DBypassHeadsUpNotifier.kt62 statusBarStateController.addCallback(this) in <lambda>()
75 mediaManager.addCallback(this) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehavior.java104 mStatusBarStateController.get().addCallback(mStatusBarStateListener); in onModeActivated()
108 mOverviewProxyService.get().addCallback(mOverviewProxyListener); in onModeActivated()
/frameworks/base/media/java/android/media/projection/
DMediaProjectionManager.java137 public void addCallback(@NonNull Callback callback, @Nullable Handler handler) { in addCallback() method in MediaProjectionManager
144 mService.addCallback(delegate); in addCallback()

12345678910