/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
H A D | ObservableActivity.java | 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() 77 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause() 83 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop() [all …]
|
H A D | ObservablePreferenceFragment.java | 46 return mLifecycle; in getSettingsLifecycle() 53 mLifecycle.onAttach(context); in onAttach() 59 mLifecycle.onCreate(savedInstanceState); in onCreate() 60 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 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() 101 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop() 108 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy() [all …]
|
H A D | ObservableFragment.java | 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() 97 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy() [all …]
|
H A D | ObservableDialogFragment.java | 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() 90 mLifecycle.onCreateOptionsMenu(menu, inflater); in onCreateOptionsMenu() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | LifecycleTest.java | 41 private Lifecycle<Object> mLifecycle; field in LifecycleTest 46 mLifecycle = new Lifecycle<>(); in setUp() 52 mLifecycle.addObserver(mObj1); in addObserver_addsObserver() 54 mLifecycle.dispatch(mDispatchedObjects::add); in addObserver_addsObserver() 61 mLifecycle.addObserver(mObj1); in removeObserver() 62 mLifecycle.removeObserver(mObj1); in removeObserver() 64 mLifecycle.dispatch(mDispatchedObjects::add); in removeObserver() 71 mLifecycle.addObserver(mObj1); in dispatch() 72 mLifecycle.addObserver(mObj2); in dispatch() 74 mLifecycle.dispatch(mDispatchedObjects::add); in dispatch()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A 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()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A 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 …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/ |
H A 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()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
H A 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()
|
H A D | WifiMacAddressPreferenceControllerTest.java | 54 private Lifecycle mLifecycle; field in WifiMacAddressPreferenceControllerTest 80 mController = new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle); in setUp() 99 mController = spy(new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle) { in updateConnectivity_notAvailable_notCalled()
|
H A D | IpAddressPreferenceControllerTest.java | 47 private Lifecycle mLifecycle; field in IpAddressPreferenceControllerTest 63 new ConcreteIpAddressPreferenceController(mContext, mLifecycle); in testHasIntentFilters()
|
H A D | UptimePreferenceControllerTest.java | 46 private Lifecycle mLifecycle; field in UptimePreferenceControllerTest 62 new ConcreteUptimePreferenceController(mContext, mLifecycle); in testDisplayPreference()
|
H A D | ConnectivityPreferenceControllerTest.java | 50 private Lifecycle mLifecycle; field in ConnectivityPreferenceControllerTest 60 spy(new ConcreteConnectivityPreferenceController(mContext, mLifecycle)); in testBroadcastReceiver()
|
H A D | ImsStatusPreferenceControllerTest.java | 47 private Lifecycle mLifecycle; field in ImsStatusPreferenceControllerTest 72 new ConcreteImsStatusPreferenceController(mContext, mLifecycle); in testIsAvailable()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
H A 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()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | CallbackControllerTest.java | 97 LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in CallbackControllerTest.SimpleLifecycleOwner 101 return mLifecycle; in getLifecycle() 105 mLifecycle.setCurrentState(state); in setState()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileImpl.java | 127 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in QSTileImpl 206 mUiHandler.post(() -> mLifecycle.setCurrentState(CREATED)); in QSTileImpl() 219 return mLifecycle; in getLifecycle() 479 if (mLifecycle.getCurrentState().equals(DESTROYED)) return; in handleSetListeningInternal() 480 mLifecycle.setCurrentState(RESUMED); in handleSetListeningInternal() 493 if (mLifecycle.getCurrentState().equals(DESTROYED)) return; in handleSetListeningInternal() 494 mLifecycle.setCurrentState(STARTED); in handleSetListeningInternal() 528 mLifecycle.setCurrentState(DESTROYED); in handleDestroy()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/ |
H A D | DreamOverlayTouchMonitor.java | 62 private final Lifecycle mLifecycle; field in DreamOverlayTouchMonitor 439 mLifecycle = lifecycle; 447 mLifecycle.addObserver(mLifecycleObserver);
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/ |
H A D | DreamOverlayTouchMonitorTest.java | 78 private final Lifecycle mLifecycle; field in DreamOverlayTouchMonitorTest.Environment 89 mLifecycle = Mockito.mock(Lifecycle.class); in Environment() 103 mMonitor = new DreamOverlayTouchMonitor(mExecutor, mLifecycle, mInputFactory, in Environment() 109 verify(mLifecycle).addObserver(lifecycleObserverCaptor.capture()); in Environment()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsDialogLite.java | 215 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in GlobalActionsDialogLite 1295 mLifecycle.setCurrentState(Lifecycle.State.RESUMED); 1317 mLifecycle.setCurrentState(Lifecycle.State.CREATED); 2192 return mLifecycle;
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | CentralSurfacesImpl.java | 611 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in CentralSurfacesImpl 1080 mBatteryController.observe(mLifecycle, mBatteryStateChangeCallback); in start() 1081 mLifecycle.setCurrentState(RESUMED); in start() 1531 return mLifecycle; in getLifecycle()
|