Home
last modified time | relevance | path

Searched refs:getLifecycle (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DSysuiLifecycleTest.java76 lifecycle.getLifecycle().addObserver(observer); in testAttach()
90 lifecycle.getLifecycle().addObserver(observer); in testDetach()
108 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateBeforeAttach()
120 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterAttach()
133 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in testStateAfterDetach()
148 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterReattach()
159 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateWhenViewAlreadyAttached()
172 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateWhenViewAlreadyDetached()
DLifecycleFragmentTest.java55 fragment.getLifecycle().addObserver(observer); in testCreateLifecycle()
67 fragment.getLifecycle().addObserver(observer); in testResumeLifecycle()
79 fragment.getLifecycle().addObserver(observer); in testStartLifecycle()
91 fragment.getLifecycle().addObserver(observer); in testStopLifecycle()
105 fragment.getLifecycle().addObserver(observer); in testPauseLifecycle()
119 fragment.getLifecycle().addObserver(observer); in testDestroyLifecycle()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java267 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle()
272 assertEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle()
296 assertTrue(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningTrue_stateAtLeastResumed()
301 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testTileDoesntStartResumed()
312 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningFalse_stateAtMostCreated()
323 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testListeningFalse_stateNotDestroyed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java37 return observe(owner.getLifecycle(), listener); in observe()
DAccessPointControllerImpl.java100 mWifiPickerTracker = mWifiPickerTrackerFactory.create(this.getLifecycle(), this); in init()
106 public Lifecycle getLifecycle() { in getLifecycle() method in AccessPointControllerImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DSysuiLifecycle.java58 public Lifecycle getLifecycle() { in getLifecycle() method in SysuiLifecycle.ViewLifecycle
DLifecycleActivity.kt29 override fun getLifecycle() = lifecycle in getLifecycle() method in com.android.systemui.util.LifecycleActivity
DLifecycleFragment.java41 public Lifecycle getLifecycle() { in getLifecycle() method in LifecycleFragment
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java87 configurationController.observe(getLifecycle(), this); in UiModeNightTile()
88 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
DReduceBrightColorsTile.java73 mReduceBrightColorsController.observe(getLifecycle(), this); in ReduceBrightColorsTile()
DUserTile.java70 mUserInfoController.observe(getLifecycle(), this); in UserTile()
DWorkModeTile.java67 mProfileController.observe(getLifecycle(), this); in WorkModeTile()
DSensorPrivacyToggleTile.java86 mSensorPrivacyController.observe(getLifecycle(), this); in SensorPrivacyToggleTile()
DBatterySaverTile.java77 mBatteryController.observe(getLifecycle(), this); in BatterySaverTile()
DFlashlightTile.java68 mFlashlightController.observe(getLifecycle(), this); in FlashlightTile()
DDataSaverTile.java66 mDataSaverController.observe(getLifecycle(), this); in DataSaverTile()
DCellularTile.java94 mController.observe(getLifecycle(), mSignalCallback); in CellularTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsActivity.kt44 getLifecycle().addObserver( in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DHideNonSystemOverlayMixinTest.java97 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
DLifecycleTest.java249 fragment.getLifecycle().addObserver(accepter); in onOptionItemSelectedShortCircuitsIfAnObserverHandlesTheMenuItem()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java100 public Lifecycle getLifecycle() { in getLifecycle() method in CallbackControllerTest.SimpleLifecycleOwner
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DVisibilityLoggerMixinTest.java135 getLifecycle().addObserver(mixin); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsProviderSelectorActivity.kt78 getLifecycle().addObserver( in onCreate()
DControlsEditingActivity.kt123 getLifecycle().addObserver( in bindViews()
DControlsFavoritingActivity.kt238 getLifecycle().addObserver( in <lambda>()

12