Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/
DCallbackController.java41 default T observe(LifecycleOwner owner, T listener) { in observe() method
42 return observe(owner.getLifecycle(), listener); in observe()
49 default T observe(Lifecycle lifecycle, T listener) { in observe() method
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSkinThermalStatusObserverTest.java74 mObserver.observe(); in testRegisterListenersOnObserve()
86 mObserver.observe(); in testFailToRegisterThermalListenerOnObserve()
95 mObserver.observe(); in testNotifyWithDefaultVotesForCritical()
127 mObserver.observe(); in testNotifyWithDefaultVotesChangeFromCriticalToSevere()
142 mObserver.observe(); in testNotifyWithDefaultVotesForSevere()
163 mObserver.observe(); in testNotifiesWithConfigVotes()
186 mObserver.observe(); in testDisplayAdded()
208 mObserver.observe(); in testDisplayAddedAndThenImmediatelyRemoved()
DProximitySensorObserverTest.java66 mSensorObserver.observe(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDeviceControlsTileTest.kt185 verify(controlsListingController).observe( in testObservingCallback()
208 verify(controlsListingController).observe( in testStateUnavailableIfNoListings()
221 verify(controlsListingController).observe( in testStateUnavailableIfNotEnabled()
235 verify(controlsListingController).observe( in testStateActiveIfListingsHasControlsFavorited()
256 verify(controlsListingController).observe( in testStateInactiveIfListingsHasNoControlsFavorited()
273 verify(controlsListingController).observe( in testStateActiveIfPreferredIsPanel()
289 verify(controlsListingController).observe( in testStateInactiveIfLocked()
304 verify(controlsListingController).observe( in testMoveBetweenStates()
328 verify(controlsListingController).observe( in handleClick_available_shownOverLockscreenWhenLocked()
358 verify(controlsListingController).observe( in handleClick_availableAfterUnlock_notShownOverLockscreenWhenLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java55 controller.observe(owner, callback); in testAddCallback()
73 controller.observe(owner, callback); in testRemoveCallback()
87 controller.observe(owner, callback); in testCallbackIsRemovedOnDestroy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DAppAdapterTest.kt74 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
91 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
109 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
127 verify(controlsListingController).observe(any(Lifecycle::class.java), captor.capture()) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/data/repository/
DQSPreferencesRepository.kt25 import com.android.systemui.util.kotlin.SharedPreferencesExt.observe in <lambda>()
50 prefs.observe().emitOnStart().map { prefs.getBoolean(ICON_LABELS_KEY, false) } in <lambda>()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/
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
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImpl.kt27 import com.android.systemui.util.kotlin.SharedPreferencesExt.observe
43 return prefs.observe().emitOnStart().map { getAuthorizedPanelsInternal(prefs) } in observeAuthorizedPanels()
DSelectedComponentRepositoryImpl.kt28 import com.android.systemui.util.kotlin.SharedPreferencesExt.observe
66 .observe() in selectedComponentFlow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicy.java143 mSettingsObserver.observe(); in AlwaysOnDisplayPolicy()
154 void observe() { in observe() method in AlwaysOnDisplayPolicy.SettingsObserver
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DSharedPreferencesExt.kt26 fun SharedPreferences.observe(): Flow<Unit> = conflatedCallbackFlow { in <lambda>() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalPrefsRepository.kt35 import com.android.systemui.util.kotlin.SharedPreferencesExt.observe in <lambda>()
129 .observe() in observeCtaDismissState()
/frameworks/base/core/java/android/os/
DFileObserver.java116 observe(m_fd); in run()
174 private native void observe(int fd); in observe() method in FileObserver.ObserverThread
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierActionAgent.java178 mSettingsObserver.observe(Settings.Global.getUriFor(mobileData), in handleMessage()
180 mSettingsObserver.observe( in handleMessage()
183 mSettingsObserver.observe( in handleMessage()
DSettingsObserver.java51 public void observe(Uri uri, int what) { in observe() method in SettingsObserver
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java122 mController.observe(this, mCallback); in CastTile()
123 mKeyguard.observe(this, mCallback); in CastTile()
125 mNetworkController.observe(this, mSignalCallback); in CastTile()
133 hotspotController.observe(this, mHotspotCallback); in CastTile()
DLocationTile.java80 mController.observe(this, mCallback); in LocationTile()
81 mKeyguard.observe(this, mCallback); in LocationTile()
DUiModeNightTile.java90 configurationController.observe(getLifecycle(), this); in UiModeNightTile()
91 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
DRotationLockTile.java92 mController.observe(this, mCallback); in RotationLockTile()
108 mBatteryController.observe(getLifecycle(), this); in RotationLockTile()
DHotspotTile.java80 mHotspotController.observe(this, mCallbacks); in HotspotTile()
81 mDataSaverController.observe(this, mCallbacks); in HotspotTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
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()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/presenter/
DDemo.kt45 update = { view -> sliceData.observe(lifecycleOwner, view) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DTouchMonitor.java456 private void observe(Consumer<GestureDetector.OnGestureListener> consumer) {
476 observe(listener -> listener.onLongPress(e));
487 observe(listener -> listener.onShowPress(e));
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanelSlicesAdapter.java112 sliceLiveData.observe(mLifecycleOwner, mSliceView); in onBind()

123