/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; 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 …]
|
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/src/com/android/systemui/util/ |
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/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/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; 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/ |
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/src/com/android/settingslib/widget/ |
D | FooterPreferenceMixinCompat.java | 24 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()
|
D | FooterPreferenceMixin.java | 24 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/ |
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()
|
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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/ |
D | OnStart.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 | OnResume.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 | OnDestroy.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()
|