Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSTileImplTest.java353 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle()
358 assertEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle()
382 assertTrue(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningTrue_stateAtLeastResumed()
387 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testTileDoesntStartResumed()
398 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningFalse_stateAtMostCreated()
409 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testListeningFalse_stateNotDestroyed()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/
H A DCallbackController.java37 return observe(owner.getLifecycle(), listener); in observe()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DAccessPointControllerImpl.java90 mWifiPickerTracker = mWifiPickerTrackerFactory.create(this.getLifecycle(), this); in init()
96 public Lifecycle getLifecycle() { in getLifecycle() method in AccessPointControllerImpl
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUiModeNightTile.java90 configurationController.observe(getLifecycle(), this); in UiModeNightTile()
91 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
H A DReduceBrightColorsTile.java75 mReduceBrightColorsController.observe(getLifecycle(), this); in ReduceBrightColorsTile()
H A DQRCodeScannerTile.java78 mQRCodeScannerController.observe(getLifecycle(), mCallback); in QRCodeScannerTile()
H A DWorkModeTile.java76 mProfileController.observe(getLifecycle(), this); in WorkModeTile()
H A DSensorPrivacyToggleTile.java88 mSensorPrivacyController.observe(getLifecycle(), this); in SensorPrivacyToggleTile()
H A DFlashlightTile.java72 mFlashlightController.observe(getLifecycle(), this); in FlashlightTile()
H A DBatterySaverTile.java80 mBatteryController.observe(getLifecycle(), this); in BatterySaverTile()
H A DDataSaverTile.java77 mDataSaverController.observe(getLifecycle(), this); in DataSaverTile()
H A DRotationLockTile.java108 mBatteryController.observe(getLifecycle(), this); in RotationLockTile()
H A DBluetoothTile.java91 mController.observe(getLifecycle(), mCallback); in BluetoothTile()
H A DDndTile.java110 mController.observe(getLifecycle(), mZenCallback); in DndTile()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DLifecycleFragment.java41 public Lifecycle getLifecycle() { in getLifecycle() method in LifecycleFragment
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
H A DHideNonSystemOverlayMixinTest.java97 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
H A DLifecycleTest.java254 fragment.getLifecycle().addObserver(accepter); in onOptionItemSelectedShortCircuitsIfAnObserverHandlesTheMenuItem()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DCallbackControllerTest.java100 public Lifecycle getLifecycle() { in getLifecycle() method in CallbackControllerTest.SimpleLifecycleOwner
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/dagger/
H A DDreamOverlayModule.java170 return lifecycleOwner.getLifecycle(); in providesLifecycle()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
H A DVisibilityLoggerMixinTest.java135 getLifecycle().addObserver(mixin); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/condition/
H A DCondition.java153 return observe(owner.getLifecycle(), listener); in observe()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DCentralSurfaces.java194 Lifecycle getLifecycle(); in getLifecycle() method
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSTileImpl.java218 public Lifecycle getLifecycle() { in getLifecycle() method in QSTileImpl
353 return getLifecycle().getCurrentState().isAtLeast(RESUMED); in isListening()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumePanelDialog.java300 public Lifecycle getLifecycle() { in getLifecycle() method in VolumePanelDialog

12