/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | ObservableActivity.java | 40 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableActivity 43 return mLifecycle; in getSettingsLifecycle() 48 mLifecycle.onAttach(this); in onCreate() 49 mLifecycle.onCreate(savedInstanceState); in onCreate() 50 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 57 mLifecycle.onAttach(this); in onCreate() 58 mLifecycle.onCreate(savedInstanceState); in onCreate() 59 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 65 mLifecycle.handleLifecycleEvent(ON_START); in onStart() 71 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume() [all …]
|
D | ObservablePreferenceFragment.java | 43 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservablePreferenceFragment 46 return mLifecycle; in getSettingsLifecycle() 53 mLifecycle.onAttach(context); in onAttach() 59 mLifecycle.onCreate(savedInstanceState); in onCreate() 60 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 66 mLifecycle.setPreferenceScreen(preferenceScreen); in setPreferenceScreen() 74 mLifecycle.onSaveInstanceState(outState); in onSaveInstanceState() 80 mLifecycle.handleLifecycleEvent(ON_START); in onStart() 87 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume() 94 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause() [all …]
|
D | ObservableDialogFragment.java | 39 protected final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableDialogFragment 42 return mLifecycle; in getSettingsLifecycle() 48 mLifecycle.onAttach(context); in onAttach() 53 mLifecycle.onCreate(savedInstanceState); in onCreate() 54 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 60 mLifecycle.handleLifecycleEvent(ON_START); in onStart() 66 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume() 72 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause() 78 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop() 84 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy() [all …]
|
D | ObservableFragment.java | 38 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableFragment 41 return mLifecycle; in getSettingsLifecycle() 48 mLifecycle.onAttach(context); in onAttach() 54 mLifecycle.onCreate(savedInstanceState); in onCreate() 55 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 63 mLifecycle.onSaveInstanceState(outState); in onSaveInstanceState() 69 mLifecycle.handleLifecycleEvent(ON_START); in onStart() 76 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume() 83 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause() 90 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | LifecycleTest.java | 40 private Lifecycle<Object> mLifecycle; field in LifecycleTest 45 mLifecycle = new Lifecycle<>(); in setUp() 51 mLifecycle.addObserver(mObj1); in addObserver_addsObserver() 53 mLifecycle.dispatch(mDispatchedObjects::add); in addObserver_addsObserver() 59 mLifecycle.addObserver(mObj1); in removeObserver() 60 mLifecycle.removeObserver(mObj1); in removeObserver() 62 mLifecycle.dispatch(mDispatchedObjects::add); in removeObserver() 69 mLifecycle.addObserver(mObj1); in dispatch() 70 mLifecycle.addObserver(mObj2); in dispatch() 72 mLifecycle.dispatch(mDispatchedObjects::add); in dispatch()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | LifecycleFragment.java | 39 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in LifecycleFragment 42 return mLifecycle; in getLifecycle() 48 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 55 mLifecycle.handleLifecycleEvent(ON_START); in onStart() 62 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume() 69 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause() 76 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop() 83 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | ActionBarShadowControllerTest.java | 58 private Lifecycle mLifecycle; field in ActionBarShadowControllerTest 67 mLifecycleOwner = () -> mLifecycle; in setUp() 68 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 75 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_shouldAddScrollWatcherAndUpdateActionBar() 84 ActionBarShadowController.attachToView(mActivity, mLifecycle, mScrollView); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar() 95 ActionBarShadowController.attachToView(mView, mLifecycle, mRecyclerView); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll() 106 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_lifecycleChange_shouldAttachDetach() 110 mLifecycle.handleLifecycleEvent(ON_START); in attachToView_lifecycleChange_shouldAttachDetach() 111 mLifecycle.handleLifecycleEvent(ON_STOP); in attachToView_lifecycleChange_shouldAttachDetach() 114 mLifecycle.handleLifecycleEvent(ON_START); in attachToView_lifecycleChange_shouldAttachDetach() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
D | SuggestionControllerMixinTest.java | 55 private Lifecycle mLifecycle; field in SuggestionControllerMixinTest 62 mLifecycleOwner = () -> mLifecycle; in setUp() 63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 76 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController() 78 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_onStartStop_shouldStartStopController() 81 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_onStartStop_shouldStartStopController() 90 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion() 101 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing() 111 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing() 119 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in doneLoadingg_shouldSetSuggestionLoaded()
|
D | SuggestionControllerMixinCompatTest.java | 55 private Lifecycle mLifecycle; field in SuggestionControllerMixinCompatTest 62 mLifecycleOwner = () -> mLifecycle; in setUp() 63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 76 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController() 78 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_onStartStop_shouldStartStopController() 81 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_onStartStop_shouldStartStopController() 90 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion() 101 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing() 111 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing() 119 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in doneLoadingg_shouldSetSuggestionLoaded()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/ |
D | LifecycleTest.java | 53 private Lifecycle mLifecycle; field in LifecycleTest 61 mLifecycle.addObserver(mFragObserver); in TestDialogFragment() 157 mLifecycleOwner = () -> mLifecycle; in setUp() 158 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 233 mLifecycle.addObserver(new OnStartObserver(mLifecycle)); in addObserverDuringObserve_shoudNotCrash() 234 mLifecycle.handleLifecycleEvent(ON_START); in addObserverDuringObserve_shoudNotCrash() 266 private final Lifecycle mLifecycle; field in LifecycleTest.OnStartObserver 269 mLifecycle = lifecycle; in OnStartObserver() 274 mLifecycle.addObserver(new LifecycleObserver() { in onStart()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | BluetoothAddressPreferenceControllerTest.java | 46 private Lifecycle mLifecycle; field in BluetoothAddressPreferenceControllerTest 71 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testNoBluetooth() 81 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testHasBluetooth() 91 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testHasBluetoothStateChangedFilter()
|
D | IpAddressPreferenceControllerTest.java | 47 private Lifecycle mLifecycle; field in IpAddressPreferenceControllerTest 63 new ConcreteIpAddressPreferenceController(mContext, mLifecycle); in testHasIntentFilters()
|
D | UptimePreferenceControllerTest.java | 46 private Lifecycle mLifecycle; field in UptimePreferenceControllerTest 62 new ConcreteUptimePreferenceController(mContext, mLifecycle); in testDisplayPreference()
|
D | ConnectivityPreferenceControllerTest.java | 50 private Lifecycle mLifecycle; field in ConnectivityPreferenceControllerTest 60 spy(new ConcreteConnectivityPreferenceController(mContext, mLifecycle)); in testBroadcastReceiver()
|
D | ImsStatusPreferenceControllerTest.java | 47 private Lifecycle mLifecycle; field in ImsStatusPreferenceControllerTest 72 new ConcreteImsStatusPreferenceController(mContext, mLifecycle); in testIsAvailable()
|
D | WifiMacAddressPreferenceControllerTest.java | 52 private Lifecycle mLifecycle; field in WifiMacAddressPreferenceControllerTest 78 mController = new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | LogpersistPreferenceControllerTest.java | 46 private Lifecycle mLifecycle; field in LogpersistPreferenceControllerTest 59 mLifecycleOwner = () -> mLifecycle; in setUp() 60 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 62 mLifecycle) { in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImpl.java | 65 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in AccessPointControllerImpl 80 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.CREATED)); in AccessPointControllerImpl() 97 return mLifecycle; in getLifecycle() 102 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.DESTROYED)); in finalize() 127 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.STARTED)); in addAccessPointCallback() 137 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.CREATED)); in removeAccessPointCallback()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/touch/ |
D | CommunalTouchHandlerTest.java | 61 Lifecycle mLifecycle; field in CommunalTouchHandlerTest 69 when(mLifecycle.getInternalScopeRef()).thenReturn(reference); in setup() 70 when(mLifecycle.getCurrentState()).thenReturn(Lifecycle.State.CREATED); in setup() 75 mLifecycle in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackControllerTest.java | 97 LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in CallbackControllerTest.SimpleLifecycleOwner 101 return mLifecycle; in getLifecycle() 105 mLifecycle.setCurrentState(state); in setState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/ |
D | CommunalTouchHandler.java | 44 private final Lifecycle mLifecycle; field in CommunalTouchHandler 62 mLifecycle = lifecycle; in CommunalTouchHandler() 66 mLifecycle, in CommunalTouchHandler()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 126 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in QSTileImpl 205 mUiHandler.post(() -> mLifecycle.setCurrentState(CREATED)); in QSTileImpl() 218 return mLifecycle; in getLifecycle() 470 if (mLifecycle.getCurrentState().equals(DESTROYED)) return; in handleSetListeningInternal() 471 mLifecycle.setCurrentState(RESUMED); in handleSetListeningInternal() 484 if (mLifecycle.getCurrentState().equals(DESTROYED)) return; in handleSetListeningInternal() 485 mLifecycle.setCurrentState(STARTED); in handleSetListeningInternal() 519 mLifecycle.setCurrentState(DESTROYED); in handleDestroy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/ |
D | TouchMonitor.java | 81 private final Lifecycle mLifecycle; field in TouchMonitor 538 mLifecycle = lifecycle; 552 mLifecycle.addObserver(mLifecycleObserver); 554 mBoundsFlow = collectFlow(mLifecycle, mConfigurationInteractor.getMaxBounds(), 571 mLifecycle.removeObserver(mLifecycleObserver);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/ |
D | TouchMonitorTest.java | 93 LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in TouchMonitorTest.SimpleLifecycleOwner 97 return mLifecycle; in getLifecycle() 101 mLifecycle.setCurrentState(state); in setState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialogLite.java | 221 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in GlobalActionsDialogLite 1361 mLifecycle.setCurrentState(Lifecycle.State.RESUMED); 1383 mLifecycle.setCurrentState(Lifecycle.State.CREATED); 2260 return mLifecycle;
|