/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
H A D | SysuiLifecycleTest.java | 76 lifecycle.getLifecycle().addObserver(observer); in testAttach() 90 lifecycle.getLifecycle().addObserver(observer); in testDetach() 108 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateBeforeAttach() 120 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterAttach() 133 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in testStateAfterDetach() 148 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterReattach() 159 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateWhenViewAlreadyAttached() 172 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateWhenViewAlreadyDetached()
|
H A D | LifecycleFragmentTest.java | 55 fragment.getLifecycle().addObserver(observer); in testCreateLifecycle() 67 fragment.getLifecycle().addObserver(observer); in testResumeLifecycle() 79 fragment.getLifecycle().addObserver(observer); in testStartLifecycle() 91 fragment.getLifecycle().addObserver(observer); in testStopLifecycle() 105 fragment.getLifecycle().addObserver(observer); in testPauseLifecycle() 119 fragment.getLifecycle().addObserver(observer); in testDestroyLifecycle()
|
/aosp12/packages/apps/Settings/src/com/android/settings/network/telephony/ |
H A D | MobileNetworkSettings.java | 139 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 …]
|
H A D | MobileNetworkActivity.java | 129 getProxySubscriptionManager().setLifecycle(getLifecycle()); in onCreate() 176 if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { in onChanged() 198 if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED)) { in onChanged() 229 getProxySubscriptionManager().setLifecycle(getLifecycle()); in onStart()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
H A D | PreferenceControllerTestHelper.java | 166 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()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
H A D | WifiBaseWorkerTestCase.java | 46 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
H A D | WifiScanWorkerTest.java | 68 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()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
H A D | PermissionControllerLifecycleService.java | 95 public Lifecycle getLifecycle() { in getLifecycle() method in PermissionControllerLifecycleService 96 return mDispatcher.getLifecycle(); in getLifecycle()
|
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
H A D | NetworkProviderWorkerTest.java | 87 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()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
H A D | WifiDetailsFragment.java | 84 getLifecycle().addObserver(mWifiInfoProvider); in onAttach() 126 getLifecycle().removeObserver(mWifiInfoProvider); in onDetach() 146 mNetworkDetailsTracker = WifiUtil.createNetworkDetailsTracker(getLifecycle(), in setUpNetworksDetailTracker()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
H A D | QSTileImplTest.java | 267 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle() 272 assertEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testHandleDestroyLifecycle() 296 assertTrue(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningTrue_stateAtLeastResumed() 301 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testTileDoesntStartResumed() 312 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningFalse_stateAtMostCreated() 323 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testListeningFalse_stateNotDestroyed()
|
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/ |
H A D | SettingsHomepageActivity.java | 163 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate() 165 getLifecycle().addObserver(mCategoryMixin); in onCreate() 242 getLifecycle().addObserver(new AvatarViewMixin(this, avatarView)); in initAvatarView() 246 getLifecycle().addObserver(new AvatarViewMixin(this, avatarTwoPaneView)); in initAvatarView()
|
/aosp12/packages/apps/ThemePicker/src/com/android/customization/picker/theme/ |
H A D | CustomThemeNameFragment.java | 78 mThemeOptionPreviewer = new ThemeOptionPreviewer(getLifecycle(), getContext(), in onCreateView() 86 getLifecycle(), in onCreateView()
|
H A D | ThemeFullPreviewFragment.java | 110 getLifecycle(), in onCreateView() 118 getLifecycle(), in onCreateView()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
H A D | SettingsFragment.java | 181 Lifecycle lifecycle = getLifecycle(); in onAttach() 238 Lifecycle lifecycle = getLifecycle(); in onDetach() 343 return getLifecycle(); in getSettingsLifecycle()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
H A D | TestLifecycleOwner.java | 33 public Lifecycle getLifecycle() { in getLifecycle() method in TestLifecycleOwner
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
H A D | SettingsPanelActivityTest.java | 90 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStart_isNotDebuggable_shouldHideSystemOverlay() 106 activity.getLifecycle().addObserver(new HideNonSystemOverlayMixin(activity)); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
|
/aosp12/packages/apps/Settings/src/com/android/settings/network/ |
H A D | ProxySubscriptionManager.java | 65 default Lifecycle getLifecycle() { in getLifecycle() method 280 Lifecycle lifecycle = listener.getLifecycle(); in getListenerState()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
H A D | WifiRequestToggleActivity.java | 102 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate() 104 mCarWifiManager = new CarWifiManager(getApplicationContext(), getLifecycle()); in onCreate()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
H A D | ManageDomainUrlsFragment.java | 40 getLifecycle()); in onAttach()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/networkrequest/ |
H A D | NetworkRequestDialogActivity.java | 36 getLifecycle().addObserver(new HideNonSystemOverlayMixin(this)); in onCreate()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | UiModeNightTile.java | 87 configurationController.observe(getLifecycle(), this); in UiModeNightTile() 88 batteryController.observe(getLifecycle(), this); in UiModeNightTile()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/statusbar/policy/ |
H A D | CallbackController.java | 37 return observe(owner.getLifecycle(), listener); in observe()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/testutils/ |
H A D | TestLifecycleOwner.java | 38 public Lifecycle getLifecycle() { in getLifecycle() method in TestLifecycleOwner
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
H A D | AllAppsFragment.java | 145 }, getLifecycle()); in onActivityCreated() 158 }, getLifecycle()); in onActivityCreated() 173 }, getLifecycle()); in onActivityCreated()
|