Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyItemControllerTest.kt135 privacyItemController.addCallback(callback) in testSetListeningTrueByAddingCallback()
137 verify(appOpsController).addCallback(eq(PrivacyItemController.OPS), in testSetListeningTrueByAddingCallback()
144 privacyItemController.addCallback(callback) in testSetListeningFalseByRemovingLastCallback()
161 privacyItemController.addCallback(callback) in testDistinctItems()
173 privacyItemController.addCallback(callback) in testSimilarItemsDifferentTimeStamp()
181 privacyItemController.addCallback(callback) in testRegisterCallback()
183 verify(userTracker, atLeastOnce()).addCallback( in testRegisterCallback()
205 privacyItemController.addCallback(callback) in testAddMultipleCallbacks()
209 privacyItemController.addCallback(otherCallback) in testAddMultipleCallbacks()
221 privacyItemController.addCallback(callback) in testMultipleCallbacksAreUpdated()
[all …]
DPrivacyItemControllerFlagsTest.kt91 privacyItemController.addCallback(callback) in setup()
138 verify(appOpsController).addCallback(eq(PrivacyItemController.OPS), any()) in testAll_listeningToAll()
146 verify(appOpsController).addCallback(eq(PrivacyItemController.OPS), any()) in testMicCamera_listening()
154 verify(appOpsController).addCallback(eq(PrivacyItemController.OPS), any()) in testLocation_listening()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DDismissCallbackRegistryTest.java56 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/
DHotspotControllerImplTest.java105 mController.addCallback(mCallback1); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
106 mController.addCallback(mCallback2); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
113 mController.addCallback(mCallback1); in testAddingCallbacksDoesntUpdateAll()
114 mController.addCallback(mCallback2); in testAddingCallbacksDoesntUpdateAll()
124 mController.addCallback(mCallback1); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
125 mController.addCallback(mCallback2); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
135 mController.addCallback(mCallback1); in testDoNotUnregisterIfRemainingCallbacks()
136 mController.addCallback(mCallback2); in testDoNotUnregisterIfRemainingCallbacks()
160 mController.addCallback(mCallback1); in testHotspotSupported_callbackCalledOnChange_tetheringSupported()
170 mController.addCallback(mCallback1); in testHotspotSupported_callbackCalledOnChange_tetherableInterfaces()
DLocationControllerImplTest.java86 mLocationController.addCallback(callback); in testRemoveSelfActive_DoesNotCrash()
87 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfActive_DoesNotCrash()
107 mLocationController.addCallback(callback); in testRemoveSelfSettings_DoesNotCrash()
108 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfSettings_DoesNotCrash()
117 mLocationController.addCallback(callback); in testAddCallback_notifiedImmediately()
128 mLocationController.addCallback(callback); in testCallbackNotified()
151 mLocationController.addCallback(callback); in testCallbackRemoved()
DCallbackControllerTest.java60 verify(controller).addCallback(eq(callback)); in testAddCallback()
90 verify(controller).addCallback(callback); in testCallbackIsRemovedOnDestroy()
111 public void addCallback(Object listener) { in addCallback() method in CallbackControllerTest.Controller
DZenModeControllerImplTest.java78 mController.addCallback(mCallback); in testRemoveDuringCallback()
80 mController.addCallback(mockCallback); in testRemoveDuringCallback()
119 mController.addCallback(null); in testAddNullCallback()
DDeviceControlsControllerImplTest.kt129 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testNoCallbackWhenNoServicesAvailable()
139 verify(controlsListingController, never()).addCallback(anyObject()) in testCallbackWithNullValueWhenSettingIsDisabled()
148 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testSetPriorityPositionIsSetWhenFavoritesAreAvailable()
162 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testSetDefaultPositionIsSetWhenNoFavoritesAreAvailable()
DCastControllerImplTest.java62 mController.addCallback(mockCallback); in testAddCallback()
70 mController.addCallback(mockCallback); in testRemoveCallback()
109 mController.addCallback(mCallback); in testAddCallbackRemoveCallback_concurrently()
DBluetoothControllerImplTest.java115 mBluetoothControllerImpl.addCallback(callback); in testAsyncBondState()
131 mBluetoothControllerImpl.addCallback(callback); in testAsyncConnectionState()
149 mBluetoothControllerImpl.addCallback(callback); in testNullAsync_DoesNotCrash()
196 mBluetoothControllerImpl.addCallback(callback); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
/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()
DFakeKeyguardStateController.java32 public void addCallback(Callback callback) { in addCallback() method in FakeKeyguardStateController
33 mCallbackController.addCallback(callback); in addCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java149 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/controls/management/
DControlsListingControllerImplTest.kt101 verify(mockSL).addCallback(capture(serviceListingCallbackCaptor)) in capture()
121 `when`(mockServiceListing.addCallback(any<ServiceListing.Callback>())).then { in testImmediateListingReload_doesNotCrash()
138 controller.addCallback(mockCallback) in testCallbackCalledWhenAdded()
143 controller.addCallback(mockCallbackOther) in testCallbackCalledWhenAdded()
152 controller.addCallback(mockCallback) in testCallbackGetsList()
153 controller.addCallback(mockCallbackOther) in testCallbackGetsList()
184 inOrder.verify(mockSL).addCallback(any()) // We add a callback because we replaced the SL in testChangeUser()
192 controller.addCallback(mockCallback) in testChangeUserSendsCorrectServiceUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java190 verify(hC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
191 verify(dSC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
192 verify(mPC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
194 verify(cC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
195 verify(rBC, never()).addCallback(any()); in testCreatedAutoTileManagerIsNotInitialized()
222 inOrderHotspot.verify(mHotspotController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
226 inOrderDataSaver.verify(mDataSaverController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
230 inOrderManagedProfile.verify(mManagedProfileController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
240 inOrderReduceBrightColors.verify(mReduceBrightColorsController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
244 inOrderCast.verify(mCastController).addCallback(any()); in testChangeUserCallbacksStoppedAndStarted()
[all …]
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/controls/management/
DControlsListingControllerImpl.kt107 serviceListing.addCallback(serviceListingCallback)
121 serviceListing.addCallback(serviceListingCallback) in changeUser()
136 override fun addCallback(listener: ControlsListingController.ControlsListingCallback) { in addCallback() method
141 addCallback(listener) in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/
DWMShell.java166 mCommandQueue.addCallback(this); in start()
175 mCommandQueue.addCallback(new CommandQueue.Callbacks() { in initPip()
192 mSysUiState.addCallback(sysUiStateFlag -> { in initPip()
197 mConfigurationController.addCallback(new ConfigurationController.ConfigurationListener() { in initPip()
216 userInfoController.addCallback((String name, Drawable picture, String userAccount) -> in initPip()
312 mCommandQueue.addCallback(new CommandQueue.Callbacks() { in initOneHanded()
328 mConfigurationController.addCallback(new ConfigurationController.ConfigurationListener() { in initOneHanded()
338 mConfigurationController.addCallback(new ConfigurationController.ConfigurationListener() { in initHideDisplayCutout()
/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.java27 void addCallback(@NonNull T listener); in addCallback() method
47 addCallback(listener); in observe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java329 mRotationLockController.addCallback(this); in init()
330 mBluetooth.addCallback(this); in init()
331 mProvisionedController.addCallback(this); in init()
332 mZenController.addCallback(this); in init()
333 mCast.addCallback(mCastCallback); in init()
334 mHotspot.addCallback(mHotspotCallback); in init()
335 mNextAlarmController.addCallback(mNextAlarmCallback); in init()
336 mDataSaver.addCallback(this); in init()
337 mKeyguardStateController.addCallback(this); in init()
338 mPrivacyItemController.addCallback(this); in init()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionTests.java57 transaction.addCallback(callback1); in testPreExecute()
58 transaction.addCallback(callback2); in testPreExecute()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DWMShellTest.java95 verify(mCommandQueue).addCallback(any(CommandQueue.Callbacks.class)); in initPip_registersCommandQueueCallback()
110 verify(mCommandQueue).addCallback(any(CommandQueue.Callbacks.class)); in initOneHanded_registersCallbacks()
120 verify(mConfigurationController).addCallback( in initHideDisplayCutout_registersCallbacks()
/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/privacy/
DPrivacyItemController.kt187 userTracker.addCallback(userTrackerCallback, bgExecutor) in registerReceiver()
215 appOpsController.addCallback(OPS, cb) in setListeningState()
227 private fun addCallback(callback: WeakReference<Callback>) { in addCallback() method
246 fun addCallback(callback: Callback) { in addCallback() method
247 addCallback(WeakReference(callback)) in addCallback()

12345678910>>...14