Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSettings.java139 use(CallsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
140 use(SmsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
141 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach()
145 use(DataDuringCallsPreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
146 use(DisabledSubscriptionController.class).init(getLifecycle(), mSubId); in onAttach()
160 use(EnabledNetworkModePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
163 use(CarrierWifiTogglePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
169 use(OpenNetworkSelectPagePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
172 .init(getLifecycle(), mSubId) in onAttach()
174 use(NetworkPreferenceCategoryController.class).init(getLifecycle(), mSubId) in onAttach()
[all …]
DMobileNetworkActivity.java126 getProxySubscriptionManager().setLifecycle(getLifecycle()); in onCreate()
161 if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { in onChanged()
186 getProxySubscriptionManager().setLifecycle(getLifecycle()); in onStart()
/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/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java68 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
76 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
84 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
92 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/apps/Settings/src/com/android/settings/homepage/
DSettingsHomepageActivity.java87 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
89 getLifecycle().addObserver(mCategoryMixin); in onCreate()
96 getLifecycle().addObserver(new AvatarViewMixin(this, avatarView)); in onCreate()
/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/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()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSettingsFragment.java181 Lifecycle lifecycle = getLifecycle(); in onAttach()
238 Lifecycle lifecycle = getLifecycle(); in onDetach()
343 return getLifecycle(); in getSettingsLifecycle()
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DCustomThemeNameFragment.java78 mThemeOptionPreviewer = new ThemeOptionPreviewer(getLifecycle(), getContext(), in onCreateView()
86 getLifecycle(), in onCreateView()
DThemeFullPreviewFragment.java110 getLifecycle(), in onCreateView()
118 getLifecycle(), in onCreateView()
DThemeFragment.java122 getLifecycle(), in onCreateView()
129 getLifecycle(), in onCreateView()
/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/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java90 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
106 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/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.java104 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
106 mCarWifiManager = new CarWifiManager(getApplicationContext(), getLifecycle()); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/
DSettingsHomepageActivityTest.java161 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
180 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/apps/Settings/src/com/android/settings/core/
DSettingsBaseActivity.java81 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
85 getLifecycle().addObserver(mCategoryMixin); in onCreate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DWallpaperSectionController.java188 mLockScreenPreviewer = new LockScreenPreviewer(mLifecycleOwner.getLifecycle(), context, in createView()
195 mLifecycleOwner.getLifecycle().addObserver(this); in createView()
238 mLifecycleOwner.getLifecycle().removeObserver(this); in release()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DTestLifecycleOwner.java33 public Lifecycle getLifecycle() { in getLifecycle() method in TestLifecycleOwner
/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/libs/car-arch-common/src/com/android/car/arch/common/testing/
DTestLifecycleOwner.java38 public Lifecycle getLifecycle() { in getLifecycle() method in TestLifecycleOwner
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledByAdminActivity.java41 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Car/Media/src/com/android/car/media/
DBrowseViewController.java199 activity.getLifecycle().addObserver(mUxrContentLimiter); in BrowseViewController()
256 mCallbacks.getActivity().getLifecycle().removeObserver(mUxrContentLimiter); in destroy()

1234