Home
last modified time | relevance | path

Searched refs:Lifecycle (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DLifecycleActivity.kt23 import com.android.settingslib.core.lifecycle.Lifecycle
27 private val lifecycle = Lifecycle(this)
34 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_CREATE) in getLifecycle()
44 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_CREATE) in onCreate()
49 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_START) in onStart()
54 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_RESUME) in onResume()
59 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_PAUSE) in onPause()
64 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_STOP) in onStop()
69 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_DESTROY) in onDestroy()
DLifecycleFragment.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
30 import androidx.lifecycle.Lifecycle;
41 public Lifecycle getLifecycle() { in getLifecycle()
DSysuiLifecycle.java19 import static androidx.lifecycle.Lifecycle.State.DESTROYED;
20 import static androidx.lifecycle.Lifecycle.State.RESUMED;
26 import androidx.lifecycle.Lifecycle;
58 public Lifecycle getLifecycle() { in getLifecycle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DObservableDialogFragment.java18 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
19 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
20 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
21 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
22 import static androidx.lifecycle.Lifecycle.Event.ON_START;
23 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
39 protected final Lifecycle mLifecycle = new Lifecycle(this);
41 public Lifecycle getSettingsLifecycle() { in getSettingsLifecycle()
DObservableActivity.java18 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
19 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
20 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
21 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
22 import static androidx.lifecycle.Lifecycle.Event.ON_START;
23 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
40 private final Lifecycle mLifecycle = new Lifecycle(this);
42 public Lifecycle getSettingsLifecycle() { in getSettingsLifecycle()
DObservableFragment.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
38 private final Lifecycle mLifecycle = new Lifecycle(this);
40 public Lifecycle getSettingsLifecycle() { in getSettingsLifecycle()
DObservablePreferenceFragment.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
43 private final Lifecycle mLifecycle = new Lifecycle(this);
45 public Lifecycle getSettingsLifecycle() { in getSettingsLifecycle()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DSysuiLifecycleTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
40 import androidx.lifecycle.Lifecycle;
109 Lifecycle.State.INITIALIZED); in testStateBeforeAttach()
120 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterAttach()
133 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in testStateAfterDetach()
[all …]
DLifecycleFragmentTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY;
21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
23 import static androidx.lifecycle.Lifecycle.Event.ON_START;
24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/
DActionBarShadowController.java19 import static androidx.lifecycle.Lifecycle.Event.ON_START;
20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 import androidx.lifecycle.Lifecycle;
51 Activity activity, Lifecycle lifecycle, View scrollView) { in attachToView()
59 View anchorView, Lifecycle lifecycle, View scrollView) { in attachToView()
63 private ActionBarShadowController(Activity activity, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController()
70 private ActionBarShadowController(View anchorView, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java26 import androidx.lifecycle.Lifecycle;
27 import androidx.lifecycle.Lifecycle.Event;
45 Lifecycle lifecycle = mock(Lifecycle.class); in testAddCallback()
63 Lifecycle lifecycle = mock(Lifecycle.class); in testRemoveCallback()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
DSuggestionControllerMixinCompatTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_START;
20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
34 import com.android.settingslib.core.lifecycle.Lifecycle;
55 private Lifecycle mLifecycle;
63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
DSuggestionControllerMixinTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_START;
20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
34 import com.android.settingslib.core.lifecycle.Lifecycle;
55 private Lifecycle mLifecycle;
63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.Lifecycle.Event;
39 default T observe(Lifecycle lifecycle, T listener) { in observe()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionBarShadowControllerTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_START;
20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
37 import com.android.settingslib.core.lifecycle.Lifecycle;
58 private Lifecycle mLifecycle;
68 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionControllerMixin.java30 import com.android.settingslib.core.lifecycle.Lifecycle;
67 Lifecycle lifecycle, ComponentName componentName) { in SuggestionControllerMixin()
77 @OnLifecycleEvent(Lifecycle.Event.ON_START)
85 @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
DSuggestionControllerMixinCompat.java31 import com.android.settingslib.core.lifecycle.Lifecycle;
66 Lifecycle lifecycle, ComponentName componentName) { in SuggestionControllerMixinCompat()
76 @OnLifecycleEvent(Lifecycle.Event.ON_START)
84 @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DIpAddressPreferenceControllerTest.java30 import com.android.settingslib.core.lifecycle.Lifecycle;
47 private Lifecycle mLifecycle;
78 private ConcreteIpAddressPreferenceController(Context context, Lifecycle lifecycle) { in ConcreteIpAddressPreferenceController()
DBluetoothAddressPreferenceControllerTest.java29 import com.android.settingslib.core.lifecycle.Lifecycle;
46 private Lifecycle mLifecycle;
102 Lifecycle lifecycle) { in ConcreteBluetoothAddressPreferenceController()
DUptimePreferenceControllerTest.java31 import com.android.settingslib.core.lifecycle.Lifecycle;
46 private Lifecycle mLifecycle;
96 Lifecycle lifecycle) { in ConcreteUptimePreferenceController()
DImsStatusPreferenceControllerTest.java32 import com.android.settingslib.core.lifecycle.Lifecycle;
47 private Lifecycle mLifecycle;
97 Lifecycle lifecycle) { in ConcreteImsStatusPreferenceController()
DConnectivityPreferenceControllerTest.java33 import com.android.settingslib.core.lifecycle.Lifecycle;
49 private Lifecycle mLifecycle;
95 Lifecycle lifecycle) { in ConcreteConnectivityPreferenceController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsAnimations.kt33 import androidx.lifecycle.Lifecycle in <lambda>()
73 @OnLifecycleEvent(Lifecycle.Event.ON_START) in <lambda>()
84 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME) in <lambda>()
92 @OnLifecycleEvent(Lifecycle.Event.ON_STOP) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTrackerFactory.java23 import com.android.settingslib.core.lifecycle.Lifecycle;
37 Context context, WifiTracker.WifiListener wifiListener, @NonNull Lifecycle lifecycle, in create()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DLogpersistPreferenceControllerTest.java32 import com.android.settingslib.core.lifecycle.Lifecycle;
46 private Lifecycle mLifecycle;
60 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()

12345