Home
last modified time | relevance | path

Searched refs:getLifecycle (Results 1 – 25 of 26) 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/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java64 configurationController.observe(getLifecycle(), this); in UiModeNightTile()
65 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
DWorkModeTile.java44 mProfileController.observe(getLifecycle(), this); in WorkModeTile()
DBatterySaverTile.java52 mBatteryController.observe(getLifecycle(), this); in BatterySaverTile()
DFlashlightTile.java45 mFlashlightController.observe(getLifecycle(), this); in FlashlightTile()
DDataSaverTile.java44 mDataSaverController.observe(getLifecycle(), this); in DataSaverTile()
DCellularTile.java75 mController.observe(getLifecycle(), mSignalCallback); in CellularTile()
DBluetoothTile.java71 mController.observe(getLifecycle(), mCallback); in BluetoothTile()
DWifiTile.java77 mController.observe(getLifecycle(), mSignalCallback); in WifiTile()
DDndTile.java102 mController.observe(getLifecycle(), mZenCallback); in DndTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java32 return observe(owner.getLifecycle(), listener); in observe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DSysuiLifecycle.java58 public Lifecycle getLifecycle() { in getLifecycle() method in SysuiLifecycle.ViewLifecycle
DLifecycleFragment.java41 public Lifecycle getLifecycle() { in getLifecycle() method in LifecycleFragment
DLifecycleActivity.kt29 override fun getLifecycle() = lifecycle in getLifecycle() method in com.android.systemui.util.LifecycleActivity
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java283 assertTrue(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningTrue_stateAtLeastResumed()
288 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testTileDoesntStartResumed()
299 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningFalse_stateAtMostCreated()
310 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testListeningFalse_stateNotDestroyed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsProviderSelectorActivity.kt76 getLifecycle().addObserver( in onCreate()
DControlsEditingActivity.kt120 getLifecycle().addObserver( in bindViews()
DControlsFavoritingActivity.kt237 getLifecycle().addObserver( in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DVisibilityLoggerMixinTest.java135 getLifecycle().addObserver(mixin); in onCreate()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java249 fragment.getLifecycle().addObserver(accepter); in onOptionItemSelectedShortCircuitsIfAnObserverHandlesTheMenuItem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSFragment.java108 commandQueue.observe(getLifecycle(), this); in QSFragment()
DQuickStatusBarHeader.java604 public Lifecycle getLifecycle() { in getLifecycle() method in QuickStatusBarHeader
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java170 public Lifecycle getLifecycle() { in getLifecycle() method in QSTileImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarFragment.java428 mCommandQueue.observe(getLifecycle(), this); in onCreate()

12