/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyItemControllerTest.kt | 135 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 …]
|
D | PrivacyItemControllerFlagsTest.kt | 91 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/ |
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 | 105 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()
|
D | LocationControllerImplTest.java | 86 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()
|
D | CallbackControllerTest.java | 60 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
|
D | ZenModeControllerImplTest.java | 78 mController.addCallback(mCallback); in testRemoveDuringCallback() 80 mController.addCallback(mockCallback); in testRemoveDuringCallback() 119 mController.addCallback(null); in testAddNullCallback()
|
D | DeviceControlsControllerImplTest.kt | 129 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()
|
D | CastControllerImplTest.java | 62 mController.addCallback(mockCallback); in testAddCallback() 70 mController.addCallback(mockCallback); in testRemoveCallback() 109 mController.addCallback(mCallback); in testAddCallbackRemoveCallback_concurrently()
|
D | BluetoothControllerImplTest.java | 115 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/ |
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()
|
D | FakeKeyguardStateController.java | 32 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/ |
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/controls/management/ |
D | ControlsListingControllerImplTest.kt | 101 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/ |
D | AutoTileManagerTest.java | 190 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 …]
|
D | ConfigurationControllerImplTest.kt | 38 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/ |
D | ControlsListingControllerImpl.kt | 107 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/ |
D | WMShell.java | 166 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/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CallbackController.java | 27 void addCallback(@NonNull T listener); in addCallback() method 47 addCallback(listener); in observe()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarPolicy.java | 329 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/ |
D | ClientTransactionTests.java | 57 transaction.addCallback(callback1); in testPreExecute() 58 transaction.addCallback(callback2); in testPreExecute()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | WMShellTest.java | 95 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/ |
D | FilterSurfaceView.java | 44 getHolder().addCallback(this); in FilterSurfaceView() 49 getHolder().addCallback(this); in FilterSurfaceView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | PrivacyItemController.kt | 187 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()
|