Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DLifecycleActivity.kt22 import androidx.lifecycle.LifecycleOwner
23 import com.android.settingslib.core.lifecycle.Lifecycle
27 private val lifecycle = Lifecycle(this) constant in com.android.systemui.util.LifecycleActivity
29 override fun getLifecycle() = lifecycle in getLifecycle()
32 lifecycle.onAttach(this) in getLifecycle()
33 lifecycle.onCreate(savedInstanceState) in getLifecycle()
34 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_CREATE) in getLifecycle()
42 lifecycle.onAttach(this) in onCreate()
43 lifecycle.onCreate(savedInstanceState) in onCreate()
44 lifecycle.handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event.ON_CREATE) in onCreate()
[all …]
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/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;
41 import androidx.lifecycle.LifecycleEventObserver;
42 import androidx.lifecycle.LifecycleOwner;
75 LifecycleOwner lifecycle = viewAttachLifecycle(mView); in testAttach() local
[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/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/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/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;
28 import androidx.lifecycle.LifecycleOwner;
30 import com.android.settingslib.core.lifecycle.events.OnAttach;
31 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
32 import com.android.settingslib.core.lifecycle.events.OnDestroy;
33 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
34 import com.android.settingslib.core.lifecycle.events.OnPause;
35 import com.android.settingslib.core.lifecycle.events.OnPrepareOptionsMenu;
36 import com.android.settingslib.core.lifecycle.events.OnResume;
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DNetworkDetailsTracker.java27 import androidx.lifecycle.Lifecycle;
53 public static NetworkDetailsTracker createNetworkDetailsTracker(@NonNull Lifecycle lifecycle, in createNetworkDetailsTracker() argument
66 return new StandardNetworkDetailsTracker(lifecycle, context, wifiManager, in createNetworkDetailsTracker()
70 return new PasspointNetworkDetailsTracker(lifecycle, context, wifiManager, in createNetworkDetailsTracker()
83 NetworkDetailsTracker(@NonNull Lifecycle lifecycle, @NonNull Context context, in NetworkDetailsTracker() argument
93 super(lifecycle, context, wifiManager, connectivityManager, networkScoreManager, in NetworkDetailsTracker()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
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()
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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/
DOnDestroy.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;
DOnResume.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;
DOnStart.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()

1234