Home
last modified time | relevance | path

Searched refs:getLifecycle (Results 1 – 25 of 107) sorted by relevance

12345

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTestHelper.java166 private Lifecycle getLifecycle() { in getLifecycle() method in PreferenceControllerTestHelper
174 mPreferenceController.onCreate(this::getLifecycle); in dispatchEvent()
177 mPreferenceController.onStart(this::getLifecycle); in dispatchEvent()
180 mPreferenceController.onResume(this::getLifecycle); in dispatchEvent()
183 mPreferenceController.onPause(this::getLifecycle); in dispatchEvent()
186 mPreferenceController.onStop(this::getLifecycle); in dispatchEvent()
190 mPreferenceController.onDestroy(this::getLifecycle); in dispatchEvent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DWifiBaseWorkerTestCase.java46 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onCreate_lifecycleCreated()
53 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in onSubscribe_lifecycleResumed()
61 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onUnsubscribe_lifecycleCreated()
69 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in onClose_lifecycleDestroyed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java82 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
90 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
98 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
106 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in close_shouldBeInDestroyedState()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkProviderWorkerTest.java87 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
96 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
106 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
115 assertThat(mMockNetworkProviderWorker.getLifecycle().getCurrentState()) in close_shouldBeInDestroyedState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerLifecycleService.java95 public Lifecycle getLifecycle() { in getLifecycle() method in PermissionControllerLifecycleService
96 return mDispatcher.getLifecycle(); in getLifecycle()
DServiceLifecycleDispatcher.java98 public Lifecycle getLifecycle() { in getLifecycle() method in ServiceLifecycleDispatcher
/packages/services/Car/car-lib/src/android/car/app/
DCarTaskViewControllerHostLifecycleFactory.java44 return new CarTaskViewControllerHostActivityLifecycleAdapter(activity).getLifecycle(); in forActivity()
97 public CarTaskViewControllerHostLifecycle getLifecycle() { in getLifecycle() method in CarTaskViewControllerHostLifecycleFactory.CarTaskViewControllerHostActivityLifecycleAdapter
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsFragment.java84 getLifecycle().addObserver(mWifiInfoProvider); in onAttach()
126 getLifecycle().removeObserver(mWifiInfoProvider); in onDetach()
146 mNetworkDetailsTracker = WifiUtil.createNetworkDetailsTracker(getLifecycle(), in setUpNetworksDetailTracker()
/packages/apps/Settings/src/com/android/settings/accounts/
DWorkModePreferenceController.java62 lifecycleOwner.getLifecycle().addObserver(mQuietModeEnabler); in onStart()
67 lifecycleOwner.getLifecycle().removeObserver(mQuietModeEnabler); in onStop()
DContactSearchPreferenceController.java82 lifecycleOwner.getLifecycle().addObserver(mQuietModeEnabler); in onStart()
87 lifecycleOwner.getLifecycle().removeObserver(mQuietModeEnabler); in onStop()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFreeUpStorageFragment.java56 volumeName, applicationsState, getLifecycle(), in onCreatePreferences()
60 volumeName, applicationsState, getLifecycle(), in onCreatePreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSettingsFragment.java172 Lifecycle lifecycle = getLifecycle(); in onAttach()
228 Lifecycle lifecycle = getLifecycle(); in onDetach()
335 return getLifecycle(); in getSettingsLifecycle()
/packages/apps/Settings/src/com/android/settings/network/
DProxySubscriptionManager.java65 default Lifecycle getLifecycle() { in getLifecycle() method
280 Lifecycle lifecycle = listener.getLifecycle(); in getListenerState()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java102 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
104 mCarWifiManager = new CarWifiManager(getApplicationContext(), getLifecycle()); in onCreate()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DTestLifecycleOwner.java33 public Lifecycle getLifecycle() { in getLifecycle() method in TestLifecycleOwner
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAllAppsFragment.java145 }, getLifecycle()); in onActivityCreated()
158 }, getLifecycle()); in onActivityCreated()
173 }, getLifecycle()); in onActivityCreated()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DManageDomainUrlsFragment.java40 getLifecycle()); in onAttach()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/
DNetworkRequestDialogActivity.java36 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledByAdminActivity.java43 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java116 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
133 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/apps/Settings/src/com/android/settings/display/
DDeviceStateAutoRotateDetailsFragment.java52 getLifecycle(), in onAttach()
/packages/apps/Settings/src/com/android/settings/core/
DSettingsBaseActivity.java101 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
105 getLifecycle().addObserver(mCategoryMixin); in onCreate()
/packages/apps/Settings/src/com/android/settings/homepage/
DSettingsHomepageActivity.java268 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
270 getLifecycle().addObserver(mCategoryMixin); in onCreate()
437 getLifecycle().addObserver(new AvatarViewMixin(this, avatarView)); in initAvatarView()
441 getLifecycle().addObserver(new AvatarViewMixin(this, avatarTwoPaneView)); in initAvatarView()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsSettingsFragment.java49 mAppListItemManager = new ApplicationListItemManager(volume, getLifecycle(), in onAttach()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiBaseWorker.java80 public Lifecycle getLifecycle() { in getLifecycle() method in WifiBaseWorker

12345