Home
last modified time | relevance | path

Searched refs:mLifecycle (Results 1 – 25 of 93) sorted by relevance

1234

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSettingsPreferenceFragment.java49 private final Lifecycle mLifecycle = new Lifecycle(this); field in SettingsPreferenceFragment
55 return mLifecycle; in getLifecycle()
70 mLifecycle.onAttach(context); in onAttach()
76 mLifecycle.onCreate(savedInstanceState); in onCreate()
77 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
83 mLifecycle.setPreferenceScreen(preferenceScreen); in setPreferenceScreen()
91 mLifecycle.onSaveInstanceState(outState); in onSaveInstanceState()
97 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
105 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
112 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java56 private Lifecycle mLifecycle; field in DevelopmentSwitchBarControllerTest
64 mLifecycleOwner = () -> mLifecycle; in setUp()
65 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
79 true /* isAvailable */, mLifecycle); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
83 mLifecycle.handleLifecycleEvent(ON_START); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
86 mLifecycle.handleLifecycleEvent(ON_STOP); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
94 true /* isAvailable */, mLifecycle); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
98 mLifecycle.handleLifecycleEvent(ON_START); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
101 mLifecycle.handleLifecycleEvent(ON_STOP); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
110 true /* isAvailable */, mLifecycle); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
[all …]
DPictureColorModePreferenceControllerTest.java58 private Lifecycle mLifecycle; field in PictureColorModePreferenceControllerTest
64 mLifecycleOwner = () -> mLifecycle; in setup()
65 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
66 mController = new PictureColorModePreferenceController(mContext, mLifecycle); in setup()
130 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldStartListening()
137 mLifecycle.handleLifecycleEvent(ON_RESUME); in onPause_shouldStopListening()
138 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause_shouldStopListening()
DLogPersistPreferenceControllerTest.java53 private Lifecycle mLifecycle; field in LogPersistPreferenceControllerTest
59 mLifecycleOwner = () -> mLifecycle; in setup()
60 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
61 mController = spy(new LogPersistPreferenceController(mContext, mFragment, mLifecycle)); in setup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintJobMessagePreferenceControllerTest.java66 private Lifecycle mLifecycle; field in PrintJobMessagePreferenceControllerTest
80 mLifecycleOwner = () -> mLifecycle; in setUp()
81 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
82 mLifecycle.addObserver(mController); in setUp()
87 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
88 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
97 mLifecycle.handleLifecycleEvent(ON_START); in updateUi_visiblePreference()
101 mLifecycle.handleLifecycleEvent(ON_STOP); in updateUi_visiblePreference()
107 mLifecycle.handleLifecycleEvent(ON_START); in updateUi_invisiblePreference()
111 mLifecycle.handleLifecycleEvent(ON_STOP); in updateUi_invisiblePreference()
DPrintSettingsPreferenceControllerTest.java68 private Lifecycle mLifecycle; field in PrintSettingsPreferenceControllerTest
77 mLifecycleOwner = () -> mLifecycle; in setUp()
78 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
80 mLifecycle.addObserver(mController); in setUp()
85 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
86 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
DPrintJobPreferenceControllerTest.java65 private Lifecycle mLifecycle; field in PrintJobPreferenceControllerTest
84 mLifecycleOwner = () -> mLifecycle; in setUp()
85 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
86 mLifecycle.addObserver(mController); in setUp()
91 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
92 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessSettingObserverMixinTest.java52 private Lifecycle mLifecycle; field in ZenAccessSettingObserverMixinTest
59 mLifecycleOwner = () -> mLifecycle; in setUp()
60 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
64 mLifecycle.addObserver(mMixin); in setUp()
73 mLifecycle.handleLifecycleEvent(ON_START); in onStart_lowMemory_shouldNotRegisterListener()
87 mLifecycle.handleLifecycleEvent(ON_START); in onStart_highMemory_shouldRegisterListener()
101 mLifecycle.handleLifecycleEvent(ON_START); in onStop_shouldUnregisterListener()
102 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop_shouldUnregisterListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceControllerTest.java54 private Lifecycle mLifecycle; field in DeviceAdminListPreferenceControllerTest
61 mLifecycleOwner = () -> mLifecycle; in setUp()
62 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
66 mLifecycle.addObserver(mController); in setUp()
71 mLifecycle.handleLifecycleEvent(ON_START); in onStart_registerReceiver()
79 mLifecycle.handleLifecycleEvent(ON_START); in onStop_unregisterReceiver()
80 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop_unregisterReceiver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMultiNetworkHeaderControllerTest.java69 private Lifecycle mLifecycle; field in MultiNetworkHeaderControllerTest
76 mLifecycleOwner = () -> mLifecycle; in setUp()
77 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
85 doReturn(mWifiController).when(mHeaderController).createWifiController(mLifecycle); in setUp()
87 mLifecycle); in setUp()
102 mHeaderController.init(mLifecycle); in displayPreferenceTest()
131 mHeaderController.init(mLifecycle); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible()
151 mHeaderController.init(mLifecycle); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible()
172 mHeaderController.init(mLifecycle); in onChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount()
DMobileNetworkPreferenceControllerTest.java76 private Lifecycle mLifecycle; field in MobileNetworkPreferenceControllerTest
85 mLifecycleOwner = () -> mLifecycle; in setUp()
86 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
119 mLifecycle.addObserver(mController); in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
122 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
126 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
136 mLifecycle.addObserver(mController); in serviceStateChange_shouldUpdatePrefSummary()
143 mLifecycle.handleLifecycleEvent(ON_START); in serviceStateChange_shouldUpdatePrefSummary()
DVpnPreferenceControllerTest.java71 private Lifecycle mLifecycle; field in VpnPreferenceControllerTest
85 mLifecycleOwner = () -> mLifecycle; in setUp()
86 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
87 mLifecycle.addObserver(mController); in setUp()
102 mLifecycle.handleLifecycleEvent(ON_RESUME); in goThroughLifecycle_shouldRegisterUnregisterListener()
106 mLifecycle.handleLifecycleEvent(ON_PAUSE); in goThroughLifecycle_shouldRegisterUnregisterListener()
DPrivateDnsPreferenceControllerTest.java118 private Lifecycle mLifecycle; field in PrivateDnsPreferenceControllerTest
137 mLifecycleOwner = () -> mLifecycle; in setUp()
138 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
139 mLifecycle.addObserver(mController); in setUp()
178 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_shouldRegisterUnregisterSettingsObserver()
186 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_shouldRegisterUnregisterSettingsObserver()
205 mLifecycle.handleLifecycleEvent(ON_START); in getSummary_PrivateDnsModeOpportunistic()
228 mLifecycle.handleLifecycleEvent(ON_START); in getSummary_PrivateDnsModeProviderHostname()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2PPreferenceControllerTest.java67 private Lifecycle mLifecycle; field in WifiP2PPreferenceControllerTest
74 mLifecycleOwner = () -> mLifecycle; in setUp()
75 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
79 mController = new WifiP2pPreferenceController(mContext, mLifecycle, mWifiManager); in setUp()
89 mLifecycle.handleLifecycleEvent(ON_RESUME); in testOnResume_shouldRegisterListener()
96 mLifecycle.handleLifecycleEvent(ON_RESUME); in testOnPause_shouldUnregisterListener()
97 mLifecycle.handleLifecycleEvent(ON_PAUSE); in testOnPause_shouldUnregisterListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountHeaderPreferenceControllerTest.java70 private Lifecycle mLifecycle; field in AccountHeaderPreferenceControllerTest
79 mLifecycleOwner = () -> mLifecycle; in setUp()
80 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
86 mLifecycle, mActivity, mFragment, null /* args */); in isAvailable_noArgs_shouldReturnNull()
98 mLifecycle, mActivity, mFragment, args); in onResume_shouldDisplayAccountInEntityHeader()
105 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldDisplayAccountInEntityHeader()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DAssistFlashScreenPreferenceControllerTest.java68 private Lifecycle mLifecycle; field in AssistFlashScreenPreferenceControllerTest
74 mLifecycleOwner = () -> mLifecycle; in setUp()
75 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
77 mController = spy(new AssistFlashScreenPreferenceController(mContext, mLifecycle)); in setUp()
78 mLifecycle.addObserver(mController); in setUp()
124 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldUpdatePreference()
DAssistContextPreferenceControllerTest.java60 private Lifecycle mLifecycle; field in AssistContextPreferenceControllerTest
66 mLifecycleOwner = () -> mLifecycle; in setUp()
67 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
69 mController = new AssistContextPreferenceController(mContext, mLifecycle); in setUp()
95 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldUpdatePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java92 private Lifecycle mLifecycle; field in BatteryHeaderPreferenceControllerTest
98 mLifecycleOwner = () -> mLifecycle; in setUp()
99 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
122 mLifecycle.addObserver(mController); in setUp()
125 mController.setLifecycle(mLifecycle); in setUp()
181 when(mEntityHeaderController.setRecyclerView(nullable(RecyclerView.class), eq(mLifecycle))) in onStart_shouldStyleActionBar()
185 mLifecycle.handleLifecycleEvent(ON_START); in onStart_shouldStyleActionBar()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/
DAutofillLoggingLevelPreferenceControllerTest.java71 private Lifecycle mLifecycle; field in AutofillLoggingLevelPreferenceControllerTest
76 mLifecycleOwner = () -> mLifecycle; in setup()
77 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
83 mController = new AutofillLoggingLevelPreferenceController(mContext, mLifecycle); in setup()
168 mLifecycle.handleLifecycleEvent(ON_CREATE); in onDestory_shouldUnregisterObserver()
169 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestory_shouldUnregisterObserver()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppHeaderViewPreferenceController.java43 private final Lifecycle mLifecycle; field in AppHeaderViewPreferenceController
52 mLifecycle = lifecycle; in AppHeaderViewPreferenceController()
53 if (mLifecycle != null) { in AppHeaderViewPreferenceController()
54 mLifecycle.addObserver(this); in AppHeaderViewPreferenceController()
79 .setRecyclerView(mParent.getListView(), mLifecycle) in onStart()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppHeaderViewPreferenceController.java43 private final Lifecycle mLifecycle; field in AppHeaderViewPreferenceController
52 mLifecycle = lifecycle; in AppHeaderViewPreferenceController()
53 if (mLifecycle != null) { in AppHeaderViewPreferenceController()
54 mLifecycle.addObserver(this); in AppHeaderViewPreferenceController()
79 .setRecyclerView(mParent.getListView(), mLifecycle) in onStart()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiInfoPreferenceControllerTest.java72 private Lifecycle mLifecycle; field in WifiInfoPreferenceControllerTest
79 mLifecycleOwner = () -> mLifecycle; in setUp()
80 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
89 mController = new WifiInfoPreferenceController(mContext, mLifecycle, mWifiManager); in setUp()
104 mLifecycle.handleLifecycleEvent(ON_RESUME); in runThroughLifecycle_shouldInstallListenerOnResume()
107 mLifecycle.handleLifecycleEvent(ON_PAUSE); in runThroughLifecycle_shouldInstallListenerOnResume()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherPreferenceControllerTest.java74 private Lifecycle mLifecycle; field in WifiTetherPreferenceControllerTest
83 mLifecycleOwner = () -> mLifecycle; in setUp()
84 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
95 mController = new WifiTetherPreferenceController(mContext, mLifecycle, in setUp()
103 mController = new WifiTetherPreferenceController(mContext, mLifecycle, in isAvailable_noTetherRegex_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/
DLockScreenPreferenceControllerTest.java65 private Lifecycle mLifecycle; field in LockScreenPreferenceControllerTest
84 mLifecycleOwner = () -> mLifecycle; in setUp()
85 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
130 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_available_shouldShow()
142 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_unavailable_shouldHide()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppHeaderViewPreferenceControllerTest.java72 private Lifecycle mLifecycle; field in AppHeaderViewPreferenceControllerTest
81 mLifecycleOwner = () -> mLifecycle; in setUp()
82 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
90 new AppHeaderViewPreferenceController(mContext, mFragment, "Package1", mLifecycle); in setUp()
126 mLifecycle.handleLifecycleEvent(ON_START); in onStart_shouldStyleActionBar()

1234