/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | LifecycleActivity.kt | 22 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 …]
|
D | LifecycleFragment.java | 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; 30 import androidx.lifecycle.Lifecycle; 31 import androidx.lifecycle.LifecycleOwner; 32 import androidx.lifecycle.LifecycleRegistry;
|
D | SysuiLifecycle.java | 19 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/ |
D | SysuiLifecycleTest.java | 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; 40 import androidx.lifecycle.Lifecycle; 41 import androidx.lifecycle.LifecycleEventObserver; 42 import androidx.lifecycle.LifecycleOwner; 75 LifecycleOwner lifecycle = viewAttachLifecycle(mView); in testAttach() local [all …]
|
D | LifecycleFragmentTest.java | 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.LifecycleEventObserver;
|
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/ |
D | ActionBarShadowController.java | 19 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/ |
D | Lifecycle.java | 16 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 …]
|
D | ObservableDialogFragment.java | 16 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;
|
D | ObservableActivity.java | 16 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;
|
D | ObservableFragment.java | 17 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;
|
D | ObservablePreferenceFragment.java | 16 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/ |
D | CallbackControllerTest.java | 26 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/ |
D | CallbackController.java | 18 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/ |
D | AbstractConnectivityPreferenceController.java | 28 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()
|
D | AbstractUptimePreferenceController.java | 30 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/ |
D | LifecycleTest.java | 16 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/ |
D | NetworkDetailsTracker.java | 27 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/ |
D | SuggestionControllerMixin.java | 28 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()
|
D | SuggestionControllerMixinCompat.java | 27 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/ |
D | OnDestroy.java | 16 package com.android.settingslib.core.lifecycle.events; 18 import androidx.lifecycle.Lifecycle; 19 import androidx.lifecycle.OnLifecycleEvent;
|
D | OnStop.java | 16 package com.android.settingslib.core.lifecycle.events; 18 import androidx.lifecycle.Lifecycle; 19 import androidx.lifecycle.OnLifecycleEvent;
|
D | OnResume.java | 16 package com.android.settingslib.core.lifecycle.events; 18 import androidx.lifecycle.Lifecycle; 19 import androidx.lifecycle.OnLifecycleEvent;
|
D | OnPause.java | 16 package com.android.settingslib.core.lifecycle.events; 18 import androidx.lifecycle.Lifecycle; 19 import androidx.lifecycle.OnLifecycleEvent;
|
D | OnStart.java | 16 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/ |
D | WifiTrackerFactory.java | 23 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()
|