Home
last modified time | relevance | path

Searched refs:observe (Results 1 – 25 of 56) sorted by relevance

123

/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/
H A DCallbackController.java36 default T observe(LifecycleOwner owner, T listener) { in observe() method
37 return observe(owner.getLifecycle(), listener); in observe()
44 default T observe(Lifecycle lifecycle, T listener) { in observe() method
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
H A DSkinThermalStatusObserverTest.java72 mObserver.observe(); in testRegisterListenersOnObserve()
84 mObserver.observe(); in testFailToRegisterThermalListenerOnObserve()
93 mObserver.observe(); in testNotifyWithDefaultVotesForCritical()
121 mObserver.observe(); in testNotifyWithDefaultVotesChangeFromCriticalToSevere()
136 mObserver.observe(); in testNotifyWithDefaultVotesForSevere()
157 mObserver.observe(); in testNotifiesWithConfigVotes()
178 mObserver.observe(); in testDisplayAdded()
198 mObserver.observe(); in testDisplayAddedAndThenImmediatelyRemoved()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DDeviceControlsTileTest.kt185 verify(controlsListingController).observe(
208 verify(controlsListingController).observe(
221 verify(controlsListingController).observe(
235 verify(controlsListingController).observe(
256 verify(controlsListingController).observe(
273 verify(controlsListingController).observe(
289 verify(controlsListingController).observe(
304 verify(controlsListingController).observe(
328 verify(controlsListingController).observe(
358 verify(controlsListingController).observe(
H A DCastTileTest.java530 verify(mNetworkController).observe(any(LifecycleOwner.class), in createAndStartTileOldImpl()
536 verify(mHotspotController).observe(any(LifecycleOwner.class), in createAndStartTileOldImpl()
572 verify(mHotspotController).observe(any(LifecycleOwner.class), in createAndStartTileNewImpl()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DCallbackControllerTest.java55 controller.observe(owner, callback); in testAddCallback()
73 controller.observe(owner, callback); in testRemoveCallback()
87 controller.observe(owner, callback); in testCallbackIsRemovedOnDestroy()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DAppAdapterTest.kt74 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture())
91 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture())
109 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture())
127 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture())
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/
H A DCondition.java152 public Callback observe(LifecycleOwner owner, Callback listener) { in observe() method in Condition
153 return observe(owner.getLifecycle(), listener); in observe()
160 public Callback observe(Lifecycle lifecycle, Callback listener) { in observe() method in Condition
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DAlwaysOnDisplayPolicy.java143 mSettingsObserver.observe(); in AlwaysOnDisplayPolicy()
154 void observe() { in observe() method in AlwaysOnDisplayPolicy.SettingsObserver
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java123 mController.observe(this, mCallback); in CastTile()
124 mKeyguard.observe(this, mCallback); in CastTile()
126 mNetworkController.observe(this, mSignalCallback); in CastTile()
130 hotspotController.observe(this, mHotspotCallback); in CastTile()
H A DLocationTile.java80 mController.observe(this, mCallback); in LocationTile()
81 mKeyguard.observe(this, mCallback); in LocationTile()
H A DUiModeNightTile.java90 configurationController.observe(getLifecycle(), this); in UiModeNightTile()
91 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
H A DHotspotTile.java80 mHotspotController.observe(this, mCallbacks); in HotspotTile()
81 mDataSaverController.observe(this, mCallbacks); in HotspotTile()
H A DRotationLockTile.java92 mController.observe(this, mCallback); in RotationLockTile()
108 mBatteryController.observe(getLifecycle(), this); in RotationLockTile()
H A DReduceBrightColorsTile.java75 mReduceBrightColorsController.observe(getLifecycle(), this); in ReduceBrightColorsTile()
H A DAlarmTile.kt67 nextAlarmController.observe(this, callback)
H A DQRCodeScannerTile.java78 mQRCodeScannerController.observe(getLifecycle(), mCallback); in QRCodeScannerTile()
/aosp14/frameworks/base/core/java/android/os/
H A DFileObserver.java116 observe(m_fd); in run()
174 private native void observe(int fd); in observe() method in FileObserver.ObserverThread
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
H A DAppClipsActivity.java166 mViewModel.getScreenshot().observe(this, this::setScreenshot); in onCreate()
167 mViewModel.getResultLiveData().observe(this, this::setResultThenFinish); in onCreate()
168 mViewModel.getErrorLiveData().observe(this, this::setErrorThenFinish); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/
H A DDreamOverlayTouchMonitor.java376 private void observe(Consumer<GestureDetector.OnGestureListener> consumer) {
395 observe(listener -> listener.onLongPress(e));
405 observe(listener -> listener.onShowPress(e));
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/presenter/
H A DDemo.kt45 update = { view -> sliceData.observe(lifecycleOwner, view) }
/aosp14/frameworks/base/services/core/java/com/android/server/display/mode/
H A DDisplayModeDirector.java190 mSettingsObserver.observe(); in start()
191 mDisplayObserver.observe(); in start()
193 mSensorObserver.observe(); in start()
194 mHbmObserver.observe(); in start()
195 mSkinThermalStatusObserver.observe(); in start()
210 mUdfpsObserver.observe(); in onBootCompleted()
1112 public void observe() { in observe() method in DisplayModeDirector.SettingsObserver
1403 public void observe() { in observe() method in DisplayModeDirector.DisplayObserver
2426 public void observe() { in observe() method in DisplayModeDirector.UdfpsObserver
2530 public void observe() { in observe() method in DisplayModeDirector.SensorObserver
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumePanelSlicesAdapter.java112 sliceLiveData.observe(mLifecycleOwner, mSliceView); in onBind()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationHistoryManager.java92 mSettingsObserver.observe(); in onBootPhaseAppsCanStart()
398 void observe() { in observe() method in NotificationHistoryManager.SettingsObserver
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DAppAdapter.kt78 controlsListingController.observe(lifecycle, callback)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeParameters.java164 quickPickupSettingsObserver.observe(); in DozeParameters()
510 void observe() { in observe() method in DozeParameters.SettingsObserver

123