/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
H A D | ObservableActivity.java | 38 private final Lifecycle mLifecycle = new Lifecycle(this); field in class:ObservableActivity 41 return mLifecycle; 46 mLifecycle.onAttach(this); 47 mLifecycle.onCreate(savedInstanceState); 48 mLifecycle.handleLifecycleEvent(ON_CREATE); 55 mLifecycle.onAttach(this); 56 mLifecycle.onCreate(savedInstanceState); 57 mLifecycle.handleLifecycleEvent(ON_CREATE); 63 mLifecycle.handleLifecycleEvent(ON_START); 69 mLifecycle [all...] |
H A D | ObservableDialogFragment.java | 38 protected final Lifecycle mLifecycle = new Lifecycle(this); field in class:ObservableDialogFragment 43 mLifecycle.onAttach(context); 48 mLifecycle.onCreate(savedInstanceState); 49 mLifecycle.handleLifecycleEvent(ON_CREATE); 55 mLifecycle.handleLifecycleEvent(ON_START); 61 mLifecycle.handleLifecycleEvent(ON_RESUME); 67 mLifecycle.handleLifecycleEvent(ON_PAUSE); 73 mLifecycle.handleLifecycleEvent(ON_STOP); 79 mLifecycle.handleLifecycleEvent(ON_DESTROY); 85 mLifecycle [all...] |
H A D | ObservablePreferenceFragment.java | 42 private final Lifecycle mLifecycle = new Lifecycle(this); field in class:ObservablePreferenceFragment 45 return mLifecycle; 52 mLifecycle.onAttach(context); 58 mLifecycle.onCreate(savedInstanceState); 59 mLifecycle.handleLifecycleEvent(ON_CREATE); 65 mLifecycle.setPreferenceScreen(preferenceScreen); 73 mLifecycle.onSaveInstanceState(outState); 79 mLifecycle.handleLifecycleEvent(ON_START); 86 mLifecycle.handleLifecycleEvent(ON_RESUME); 93 mLifecycle [all...] |
H A D | ObservableFragment.java | 37 private final Lifecycle mLifecycle = new Lifecycle(this); field in class:ObservableFragment 40 return mLifecycle; 47 mLifecycle.onAttach(context); 53 mLifecycle.onCreate(savedInstanceState); 54 mLifecycle.handleLifecycleEvent(ON_CREATE); 62 mLifecycle.onSaveInstanceState(outState); 68 mLifecycle.handleLifecycleEvent(ON_START); 75 mLifecycle.handleLifecycleEvent(ON_RESUME); 82 mLifecycle.handleLifecycleEvent(ON_PAUSE); 89 mLifecycle [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | LifecycleTest.java | 40 private Lifecycle<Object> mLifecycle; field in class:LifecycleTest 45 mLifecycle = new Lifecycle<>(); 51 mLifecycle.addObserver(mObj1); 53 mLifecycle.dispatch(mDispatchedObjects::add); 60 mLifecycle.addObserver(mObj1); 61 mLifecycle.removeObserver(mObj1); 63 mLifecycle.dispatch(mDispatchedObjects::add); 70 mLifecycle.addObserver(mObj1); 71 mLifecycle.addObserver(mObj2); 73 mLifecycle [all...] |
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/ |
H A D | FullLifecycleObserverTest.java | 44 private Lifecycle mLifecycle; field in class:FullLifecycleObserverTest 49 mLifecycle = mock(Lifecycle.class); 50 when(mOwner.getLifecycle()).thenReturn(mLifecycle); 57 when(mLifecycle.getCurrentState()).thenReturn(CREATED); 64 when(mLifecycle.getCurrentState()).thenReturn(STARTED); 69 when(mLifecycle.getCurrentState()).thenReturn(RESUMED); 74 when(mLifecycle.getCurrentState()).thenReturn(STARTED); 79 when(mLifecycle.getCurrentState()).thenReturn(CREATED); 84 when(mLifecycle.getCurrentState()).thenReturn(INITIALIZED);
|
H A D | ReflectiveGenericLifecycleObserverTest.java | 49 private Lifecycle mLifecycle; field in class:ReflectiveGenericLifecycleObserverTest 54 mLifecycle = mock(Lifecycle.class); 55 when(mOwner.getLifecycle()).thenReturn(mLifecycle); 62 when(mLifecycle.getCurrentState()).thenReturn(STARTED); 99 when(mLifecycle.getCurrentState()).thenReturn(CREATED); 121 when(mLifecycle.getCurrentState()).thenReturn(CREATED); 127 when(mLifecycle.getCurrentState()).thenReturn(STARTED); 132 when(mLifecycle.getCurrentState()).thenReturn(RESUMED); 137 when(mLifecycle.getCurrentState()).thenReturn(STARTED); 142 when(mLifecycle [all...] |
/frameworks/support/lifecycle/runtime/src/test/java/ |
H A D | NoPackageTest.java | 36 private Lifecycle mLifecycle; field in class:NoPackageTest 42 mLifecycle = mock(Lifecycle.class); 43 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycle);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
H A D | SuggestionControllerMixinTest.java | 52 private Lifecycle mLifecycle; field in class:SuggestionControllerMixinTest 59 mLifecycleOwner = () -> mLifecycle; 60 mLifecycle = new Lifecycle(mLifecycleOwner); 73 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); 75 mLifecycle.handleLifecycleEvent(ON_START); 78 mLifecycle.handleLifecycleEvent(ON_STOP); 87 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); 98 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); 108 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); 116 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentNam [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
H A D | BluetoothAddressPreferenceControllerTest.java | 45 private Lifecycle mLifecycle; field in class:BluetoothAddressPreferenceControllerTest 70 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); 80 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); 90 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle);
|
H A D | IpAddressPreferenceControllerTest.java | 46 private Lifecycle mLifecycle; field in class:IpAddressPreferenceControllerTest 62 new ConcreteIpAddressPreferenceController(mContext, mLifecycle);
|
H A D | UptimePreferenceControllerTest.java | 45 private Lifecycle mLifecycle; field in class:UptimePreferenceControllerTest 61 new ConcreteUptimePreferenceController(mContext, mLifecycle);
|
H A D | WifiMacAddressPreferenceControllerTest.java | 53 private Lifecycle mLifecycle; field in class:WifiMacAddressPreferenceControllerTest 71 new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle); 92 new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle);
|
H A D | ConnectivityPreferenceControllerTest.java | 48 private Lifecycle mLifecycle; field in class:ConnectivityPreferenceControllerTest 58 spy(new ConcreteConnectivityPreferenceController(mContext, mLifecycle));
|
H A D | ImsStatusPreferenceControllerTest.java | 48 private Lifecycle mLifecycle; field in class:ImsStatusPreferenceControllerTest 72 new ConcreteImsStatusPreferenceController(mContext, mLifecycle);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A D | FooterPreferenceMixinTest.java | 50 private Lifecycle mLifecycle; field in class:FooterPreferenceMixinTest 56 mLifecycleOwner = () -> mLifecycle; 57 mLifecycle = new Lifecycle(mLifecycleOwner); 61 mMixin = new FooterPreferenceMixin(mFragment, mLifecycle); 83 mLifecycle.setPreferenceScreen(mScreen);
|
/frameworks/support/lifecycle/reactivestreams/src/main/java/androidx/lifecycle/ |
H A D | LiveDataReactiveStreams.java | 61 final LifecycleOwner mLifecycle; field in class:LiveDataReactiveStreams.LiveDataPublisher 65 this.mLifecycle = lifecycle; 71 subscriber.onSubscribe(new LiveDataSubscription<T>(subscriber, mLifecycle, mLiveData)); 76 final LifecycleOwner mLifecycle; field in class:LiveDataReactiveStreams.LiveDataPublisher.LiveDataSubscription 90 this.mLifecycle = lifecycle; 138 mLiveData.observe(mLifecycle, LiveDataSubscription.this);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/ |
H A D | LifecycleTest.java | 49 private Lifecycle mLifecycle; field in class:LifecycleTest 57 mLifecycle.addObserver(mFragObserver); 147 mLifecycleOwner = () -> mLifecycle; 148 mLifecycle = new Lifecycle(mLifecycleOwner); 224 mLifecycle.addObserver(new OnStartObserver(mLifecycle)); 225 mLifecycle.handleLifecycleEvent(ON_START); 257 private final Lifecycle mLifecycle; field in class:LifecycleTest.OnStartObserver 260 mLifecycle = lifecycle; 265 mLifecycle [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
H A D | LogpersistPreferenceControllerTest.java | 44 private Lifecycle mLifecycle; field in class:LogpersistPreferenceControllerTest 57 mLifecycleOwner = () -> mLifecycle; 58 mLifecycle = new Lifecycle(mLifecycleOwner); 60 mLifecycle) {
|
/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/ |
H A D | ComputableLiveDataTest.java | 231 private LifecycleRegistry mLifecycle; field in class:ComputableLiveDataTest.TestLifecycleOwner 234 mLifecycle = new LifecycleRegistry(this); 239 return mLifecycle; 243 mLifecycle.handleLifecycleEvent(event);
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/ |
H A D | DataSourceFactoryTest.java | 207 private LifecycleRegistry mLifecycle; field in class:DataSourceFactoryTest.TestLifecycleOwner 210 mLifecycle = new LifecycleRegistry(this); 215 return mLifecycle; 219 mLifecycle.handleLifecycleEvent(event);
|
/frameworks/support/lifecycle/integration-tests/testapp/src/test/java/androidx/lifecycle/ |
H A D | GeneratedAdaptersTest.java | 44 private Lifecycle mLifecycle; field in class:GeneratedAdaptersTest 49 mLifecycle = mock(Lifecycle.class); 50 when(mOwner.getLifecycle()).thenReturn(mLifecycle);
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/ |
H A D | LoaderManagerTest.java | 282 private LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in class:LoaderManagerTest.LoaderOwner 286 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_START); 292 return mLifecycle;
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
H A D | LiveDataQueryTest.java | 364 private LifecycleRegistry mLifecycle; field in class:LiveDataQueryTest.TestLifecycleOwner 367 mLifecycle = new LifecycleRegistry(this); 372 return mLifecycle; 376 mLifecycle.handleLifecycleEvent(event);
|
/frameworks/support/lifecycle/runtime/src/test/java/androidx/lifecycle/ |
H A D | LifecycleRegistryTest.java | 46 private Lifecycle mLifecycle; field in class:LifecycleRegistryTest 52 mLifecycle = mock(Lifecycle.class); 53 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycle); 589 when(mLifecycle.getCurrentState()).thenReturn(LifecycleRegistry.getStateAfter(event));
|