Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/packages/SettingsLib/tests/robotests/fragment/
Dbuild.gradle32 compileOnly "androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01"
33 compileOnly "androidx.lifecycle:lifecycle-common:2.0.0-beta01"
43 testImplementation "androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc01"
44 testImplementation "androidx.lifecycle:lifecycle-common:2.0.0-beta01"
45 testImplementation "androidx.lifecycle:lifecycle-runtime:2.0.0-rc01"
46 testImplementation "androidx.lifecycle:lifecycle-livedata-core:2.0.0-rc01"
/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;
DHideNonSystemOverlayMixin.java17 package com.android.settingslib.core.lifecycle;
21 import static androidx.lifecycle.Lifecycle.Event.ON_START;
22 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
30 import androidx.lifecycle.LifecycleObserver;
31 import androidx.lifecycle.OnLifecycleEvent;
/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;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java27 import androidx.lifecycle.Lifecycle;
28 import androidx.lifecycle.Lifecycle.Event;
29 import androidx.lifecycle.LifecycleEventObserver;
30 import androidx.lifecycle.LifecycleOwner;
31 import androidx.lifecycle.LifecycleRegistry;
47 Lifecycle lifecycle = mock(Lifecycle.class); in testAddCallback() local
48 LifecycleOwner owner = () -> lifecycle; in testAddCallback()
56 verify(lifecycle).addObserver(observer.capture()); in testAddCallback()
65 Lifecycle lifecycle = mock(Lifecycle.class); in testRemoveCallback() local
66 LifecycleOwner owner = () -> lifecycle; in testRemoveCallback()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/binder/
DInternetTileBinder.kt19 import androidx.lifecycle.Lifecycle
20 import androidx.lifecycle.coroutineScope
21 import androidx.lifecycle.repeatOnLifecycle
32 lifecycle: Lifecycle, in bind()
36 lifecycle.coroutineScope.launch { in bind()
37 lifecycle.repeatOnLifecycle(Lifecycle.State.RESUMED) { in bind()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/
DCallbackController.java19 import androidx.lifecycle.Lifecycle;
20 import androidx.lifecycle.Lifecycle.Event;
21 import androidx.lifecycle.LifecycleEventObserver;
22 import androidx.lifecycle.LifecycleOwner;
49 default T observe(Lifecycle lifecycle, T listener) { in observe() argument
50 lifecycle.addObserver((LifecycleEventObserver) (lifecycleOwner, event) -> { in observe()
/frameworks/base/packages/SystemUI/src/com/android/systemui/compose/
DComposeInitializer.kt20 import androidx.lifecycle.Lifecycle
21 import androidx.lifecycle.findViewTreeLifecycleOwner
22 import androidx.lifecycle.setViewTreeLifecycleOwner
26 import com.android.systemui.lifecycle.ViewLifecycleOwner
79 override val lifecycle: Lifecycle in onAttachedToWindow() constant
80 get() = lifecycleOwner.lifecycle in onAttachedToWindow()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DLifecycleEffect.kt21 import androidx.lifecycle.Lifecycle in <lambda>()
22 import androidx.lifecycle.LifecycleEventObserver in <lambda>()
23 import androidx.lifecycle.compose.LocalLifecycleOwner in <lambda>()
40 lifecycleOwner.lifecycle.addObserver(observer) in <lambda>()
43 lifecycleOwner.lifecycle.removeObserver(observer) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
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()
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()
/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/base/packages/EasterEgg/src/com/android/egg/landroid/
DDreamUniverse.kt24 import androidx.lifecycle.Lifecycle
25 import androidx.lifecycle.LifecycleRegistry
26 import androidx.lifecycle.setViewTreeLifecycleOwner
38 override val lifecycle = LifecycleRegistry(this) constant in com.android.egg.landroid.DreamUniverse
47 lifecycle.currentState = Lifecycle.State.CREATED in onCreate()
51 lifecycle.currentState = Lifecycle.State.STARTED in onStart()
55 lifecycle.currentState = Lifecycle.State.CREATED in onStop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayLifecycleOwner.kt19 import androidx.lifecycle.Lifecycle
20 import androidx.lifecycle.LifecycleOwner
21 import androidx.lifecycle.LifecycleRegistry
31 override val lifecycle: Lifecycle constant in com.android.systemui.dreams.DreamOverlayLifecycleOwner
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DJavaAdapter.kt20 import androidx.lifecycle.Lifecycle
21 import androidx.lifecycle.coroutineScope
22 import androidx.lifecycle.repeatOnLifecycle
25 import com.android.systemui.lifecycle.repeatWhenAttached
87 lifecycle: Lifecycle, in collectFlow()
92 return lifecycle.coroutineScope.launch { in collectFlow()
93 lifecycle.repeatOnLifecycle(state) { flow.collect { consumer.accept(it) } } in collectFlow()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DNetworkDetailsTracker.java38 import androidx.lifecycle.Lifecycle;
63 public static NetworkDetailsTracker createNetworkDetailsTracker(@NonNull Lifecycle lifecycle, in createNetworkDetailsTracker() argument
75 lifecycle, in createNetworkDetailsTracker()
90 @NonNull Lifecycle lifecycle, in createNetworkDetailsTracker() argument
101 return new StandardNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
105 return new PasspointNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
109 return new HotspotNetworkDetailsTracker(injector, lifecycle, context, wifiManager, in createNetworkDetailsTracker()
124 @NonNull Lifecycle lifecycle, in NetworkDetailsTracker() argument
134 super(injector, lifecycle, context, wifiManager, connectivityManager, 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/SystemUI/src/com/android/systemui/qs/tiles/
DTileJavaAdapter.kt19 import androidx.lifecycle.Lifecycle
20 import androidx.lifecycle.LifecycleOwner
21 import androidx.lifecycle.lifecycleScope
22 import androidx.lifecycle.repeatOnLifecycle
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
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;

12345678910>>...15