Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
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;
55 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/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/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;
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/tests/robotests/src/com/android/settingslib/suggestions/
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()
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()
/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()
DFooterPreferenceMixinCompatTest.java32 import com.android.settingslib.core.lifecycle.Lifecycle;
51 private Lifecycle mLifecycle;
58 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
DFooterPreferenceMixinTest.java32 import com.android.settingslib.core.lifecycle.Lifecycle;
51 private Lifecycle mLifecycle;
58 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
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)
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)
/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()
DConnectivityPreferenceControllerTest.java33 import com.android.settingslib.core.lifecycle.Lifecycle;
49 private Lifecycle mLifecycle;
95 Lifecycle lifecycle) { in ConcreteConnectivityPreferenceController()
DImsStatusPreferenceControllerTest.java32 import com.android.settingslib.core.lifecycle.Lifecycle;
47 private Lifecycle mLifecycle;
97 Lifecycle lifecycle) { in ConcreteImsStatusPreferenceController()
DWifiMacAddressPreferenceControllerTest.java35 import com.android.settingslib.core.lifecycle.Lifecycle;
52 private Lifecycle mLifecycle;
118 Lifecycle lifecycle) { in ConcreteWifiMacAddressPreferenceController()
/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()

1234