Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSettings.java137 use(CallsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
138 use(SmsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
139 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach()
143 use(DataDuringCallsPreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
144 use(DisabledSubscriptionController.class).init(getLifecycle(), mSubId); in onAttach()
155 use(EnabledNetworkModePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
162 use(OpenNetworkSelectPagePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
165 .init(getLifecycle(), mSubId) in onAttach()
167 use(NetworkPreferenceCategoryController.class).init(getLifecycle(), mSubId) in onAttach()
185 getLifecycle()); in onAttach()
DMobileNetworkActivity.java118 getProxySubscriptionManager().setLifecycle(getLifecycle()); in onCreate()
171 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/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/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkSettings.java134 use(CallsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
135 use(SmsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
136 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach()
/packages/apps/Settings/src/com/android/settings/homepage/
DSettingsHomepageActivity.java58 getLifecycle().addObserver(new AvatarViewMixin(this, avatarView)); in onCreate()
59 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Settings/src/com/android/settings/network/
DProxySubscriptionManager.java54 default Lifecycle getLifecycle() { in getLifecycle() method
104 final Lifecycle lifecycle = listener.getLifecycle(); in notifyAllListeners()
DMobileNetworkListFragment.java54 controllers.add(new MobileNetworkListController(getContext(), getLifecycle())); in createPreferenceControllers()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAllAppsFragment.java144 }, getLifecycle()); in onActivityCreated()
157 }, getLifecycle()); in onActivityCreated()
172 }, getLifecycle()); in onActivityCreated()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSettingsPreferenceFragment.java62 public Lifecycle getLifecycle() { in getLifecycle() method in SettingsPreferenceFragment
71 getLifecycle().addObserver(mVisibilityLoggerMixin); in SettingsPreferenceFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/
DSettingsHomepageActivityTest.java94 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
114 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java110 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
126 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryPreferenceFragment.java63 getLifecycle().addObserver(mVisibilityLoggerMixin); in AddAccessoryPreferenceFragment()
154 public Lifecycle getLifecycle() { in getLifecycle() method in AddAccessoryPreferenceFragment
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSettingsPreferenceFragment.java62 public Lifecycle getLifecycle() { in getLifecycle() method in SettingsPreferenceFragment
71 getLifecycle().addObserver(mVisibilityLoggerMixin); in SettingsPreferenceFragment()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsFragment.java134 getLifecycle().addObserver(mWifiInfoProvider); in onAttach()
183 getLifecycle().removeObserver(mWifiInfoProvider); in onDetach()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSettingsFragment.java162 Lifecycle lifecycle = getLifecycle(); in onAttach()
227 Lifecycle lifecycle = getLifecycle(); in onDetach()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DManageDomainUrlsFragment.java40 getLifecycle()); in onAttach()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/core/instrumentation/
DInstrumentedActivity.java42 getLifecycle().addObserver(mVisibilityLoggerMixin); 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMobileNetworkListFragment.java54 controllers.add(new MobileNetworkListController(getContext(), getLifecycle())); in createPreferenceControllers()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/livedata/
DHeartBeatLiveDataTest.java51 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycleRegistry); in setup()
/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/storage/
DStorageOtherCategoryDetailFragment.java49 mAppListItemManager = new ApplicationListItemManager(volume, getLifecycle(), in onAttach()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksActivity.java57 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()

123