Home
last modified time | relevance | path

Searched refs:lifecycle (Results 1 – 25 of 65) sorted by relevance

123

/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;
38 import androidx.lifecycle.LifecycleEventObserver;
39 import androidx.lifecycle.LifecycleOwner;
56 LifecycleOwner lifecycle = viewAttachLifecycle(v); in testAttach() local
57 lifecycle.getLifecycle().addObserver(observer); in testAttach()
[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;
34 import androidx.lifecycle.LifecycleEventObserver;
/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;
28 import androidx.lifecycle.LifecycleObserver;
29 import androidx.lifecycle.OnLifecycleEvent;
51 Activity activity, Lifecycle lifecycle, View scrollView) { in attachToView() argument
52 return new ActionBarShadowController(activity, lifecycle, scrollView); in attachToView()
59 View anchorView, Lifecycle lifecycle, View scrollView) { in attachToView() argument
60 return new ActionBarShadowController(anchorView, lifecycle, scrollView); in attachToView()
63 private ActionBarShadowController(Activity activity, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DLifecycle.java16 package com.android.settingslib.core.lifecycle;
18 import static androidx.lifecycle.Lifecycle.Event.ON_ANY;
30 import androidx.lifecycle.LifecycleOwner;
31 import androidx.lifecycle.LifecycleRegistry;
32 import androidx.lifecycle.OnLifecycleEvent;
35 import com.android.settingslib.core.lifecycle.events.OnAttach;
36 import com.android.settingslib.core.lifecycle.events.OnCreate;
37 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
38 import com.android.settingslib.core.lifecycle.events.OnDestroy;
39 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
[all …]
DObservableDialogFragment.java16 package com.android.settingslib.core.lifecycle;
18 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;
32 import androidx.lifecycle.LifecycleOwner;
DObservableActivity.java16 package com.android.settingslib.core.lifecycle;
18 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;
33 import androidx.lifecycle.LifecycleOwner;
DObservableFragment.java17 package com.android.settingslib.core.lifecycle;
19 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;
34 import androidx.lifecycle.LifecycleOwner;
DObservablePreferenceFragment.java16 package com.android.settingslib.core.lifecycle;
19 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;
33 import androidx.lifecycle.LifecycleOwner;
/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;
31 import androidx.lifecycle.LifecycleOwner;
32 import androidx.lifecycle.LifecycleRegistry;
DSysuiLifecycle.java19 import static androidx.lifecycle.Lifecycle.State.DESTROYED;
20 import static androidx.lifecycle.Lifecycle.State.RESUMED;
26 import androidx.lifecycle.Lifecycle;
27 import androidx.lifecycle.LifecycleOwner;
28 import androidx.lifecycle.LifecycleRegistry;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java26 import androidx.lifecycle.Lifecycle;
27 import androidx.lifecycle.Lifecycle.Event;
28 import androidx.lifecycle.LifecycleEventObserver;
29 import androidx.lifecycle.LifecycleOwner;
45 Lifecycle lifecycle = mock(Lifecycle.class); in testAddCallback() local
46 LifecycleOwner owner = () -> lifecycle; in testAddCallback()
54 verify(lifecycle).addObserver(observer.capture()); in testAddCallback()
63 Lifecycle lifecycle = mock(Lifecycle.class); in testRemoveCallback() local
64 LifecycleOwner owner = () -> lifecycle; in testRemoveCallback()
72 verify(lifecycle).addObserver(observer.capture()); in testRemoveCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCallbackController.java18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.Lifecycle.Event;
20 import androidx.lifecycle.LifecycleEventObserver;
21 import androidx.lifecycle.LifecycleOwner;
39 default T observe(Lifecycle lifecycle, T listener) { in observe() argument
40 lifecycle.addObserver((LifecycleEventObserver) (lifecycleOwner, event) -> { in observe()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java16 package com.android.settingslib.core.lifecycle;
18 import static androidx.lifecycle.Lifecycle.Event.ON_START;
29 import androidx.lifecycle.LifecycleOwner;
31 import com.android.settingslib.core.lifecycle.events.OnAttach;
32 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
33 import com.android.settingslib.core.lifecycle.events.OnDestroy;
34 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
35 import com.android.settingslib.core.lifecycle.events.OnPause;
36 import com.android.settingslib.core.lifecycle.events.OnPrepareOptionsMenu;
37 import com.android.settingslib.core.lifecycle.events.OnResume;
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractConnectivityPreferenceController.java28 import com.android.settingslib.core.lifecycle.Lifecycle;
29 import com.android.settingslib.core.lifecycle.LifecycleObserver;
30 import com.android.settingslib.core.lifecycle.events.OnStart;
31 import com.android.settingslib.core.lifecycle.events.OnStop;
55 public AbstractConnectivityPreferenceController(Context context, Lifecycle lifecycle) { in AbstractConnectivityPreferenceController() argument
57 if (lifecycle != null) { in AbstractConnectivityPreferenceController()
58 lifecycle.addObserver(this); in AbstractConnectivityPreferenceController()
DAbstractUptimePreferenceController.java30 import com.android.settingslib.core.lifecycle.Lifecycle;
31 import com.android.settingslib.core.lifecycle.LifecycleObserver;
32 import com.android.settingslib.core.lifecycle.events.OnStart;
33 import com.android.settingslib.core.lifecycle.events.OnStop;
50 public AbstractUptimePreferenceController(Context context, Lifecycle lifecycle) { in AbstractUptimePreferenceController() argument
52 if (lifecycle != null) { in AbstractUptimePreferenceController()
53 lifecycle.addObserver(this); in AbstractUptimePreferenceController()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/widget/
DFooterPreferenceMixinCompat.java24 import com.android.settingslib.core.lifecycle.Lifecycle;
25 import com.android.settingslib.core.lifecycle.LifecycleObserver;
26 import com.android.settingslib.core.lifecycle.events.SetPreferenceScreen;
33 public FooterPreferenceMixinCompat(PreferenceFragmentCompat fragment, Lifecycle lifecycle) { in FooterPreferenceMixinCompat() argument
35 lifecycle.addObserver(this); in FooterPreferenceMixinCompat()
DFooterPreferenceMixin.java24 import com.android.settingslib.core.lifecycle.Lifecycle;
25 import com.android.settingslib.core.lifecycle.LifecycleObserver;
26 import com.android.settingslib.core.lifecycle.events.SetPreferenceScreen;
39 public FooterPreferenceMixin(PreferenceFragment fragment, Lifecycle lifecycle) { in FooterPreferenceMixin() argument
41 lifecycle.addObserver(this); in FooterPreferenceMixin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionControllerMixinCompat.java27 import androidx.lifecycle.OnLifecycleEvent;
31 import com.android.settingslib.core.lifecycle.Lifecycle;
39 SuggestionController.ServiceConnectionListener, androidx.lifecycle.LifecycleObserver,
66 Lifecycle lifecycle, ComponentName componentName) { in SuggestionControllerMixinCompat() argument
71 if (lifecycle != null) { in SuggestionControllerMixinCompat()
72 lifecycle.addObserver(this); in SuggestionControllerMixinCompat()
DSuggestionControllerMixin.java28 import androidx.lifecycle.OnLifecycleEvent;
30 import com.android.settingslib.core.lifecycle.Lifecycle;
41 androidx.lifecycle.LifecycleObserver, LoaderManager.LoaderCallbacks<List<Suggestion>> {
67 Lifecycle lifecycle, ComponentName componentName) { in SuggestionControllerMixin() argument
72 if (lifecycle != null) { in SuggestionControllerMixin()
73 lifecycle.addObserver(this); in SuggestionControllerMixin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/
DOnStart.java16 package com.android.settingslib.core.lifecycle.events;
18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.OnLifecycleEvent;
DOnPause.java16 package com.android.settingslib.core.lifecycle.events;
18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.OnLifecycleEvent;
DOnResume.java16 package com.android.settingslib.core.lifecycle.events;
18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.OnLifecycleEvent;
DOnStop.java16 package com.android.settingslib.core.lifecycle.events;
18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.OnLifecycleEvent;
DOnDestroy.java16 package com.android.settingslib.core.lifecycle.events;
18 import androidx.lifecycle.Lifecycle;
19 import androidx.lifecycle.OnLifecycleEvent;
/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() argument
42 return new WifiTracker(context, wifiListener, lifecycle, includeSaved, includeScans); in create()

123