Home
last modified time | relevance | path

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

123

/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/src/com/android/settings/network/telephony/
DMobileNetworkSettings.java141 use(CallsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
142 use(SmsDefaultSubscriptionController.class).init(getLifecycle()); in onAttach()
143 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach()
147 use(DataDuringCallsPreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
148 use(DisabledSubscriptionController.class).init(getLifecycle(), mSubId); in onAttach()
159 use(EnabledNetworkModePreferenceController.class).init(getLifecycle(), mSubId); in onAttach()
188 getLifecycle()); in onAttach()
/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/TvSettings/Settings/src/com/android/tv/settings/
DSettingsPreferenceFragment.java54 public Lifecycle getLifecycle() { in getLifecycle() method in SettingsPreferenceFragment
63 getLifecycle().addObserver(mVisibilityLoggerMixin); in SettingsPreferenceFragment()
DMainFragment.java126 new ConnectivityListener(getContext(), this::updateWifi, getLifecycle()); in onCreate()
471 context, this, getLifecycle(), componentName); in onAttach()
/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.java55 controllers.add(new MobileNetworkListController(getContext(), getLifecycle())); in createPreferenceControllers()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAllAppsFragment.java137 }, getLifecycle()); in onActivityCreated()
150 }, getLifecycle()); in onActivityCreated()
165 }, getLifecycle()); in onActivityCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java109 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay()
125 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/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/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/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.java157 Lifecycle lifecycle = getLifecycle(); in onAttach()
221 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.java39 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/Settings/tests/robotests/src/com/android/settings/core/
DHideNonSystemOverlayMixinTest.java90 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageOtherCategoryDetailFragment.java49 mAppListItemManager = new ApplicationListItemManager(volume, getLifecycle(), in onAttach()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DStatusFragment.java62 final Lifecycle lifecycle = getLifecycle(); in onCreatePreferenceControllers()
/packages/apps/Settings/src/com/android/settings/panel/
DSettingsPanelActivity.java66 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkFragment.java73 getLifecycle().addObserver(mMobileNetworkUpdateManager); in onAttach()

123