/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | SettingsPreferenceFragment.java | 49 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/ |
D | DevelopmentSwitchBarControllerTest.java | 56 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 …]
|
D | PictureColorModePreferenceControllerTest.java | 58 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/ |
D | PrintJobMessagePreferenceControllerTest.java | 66 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()
|
D | PrintSettingsPreferenceControllerTest.java | 68 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()
|
D | PrintJobPreferenceControllerTest.java | 65 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/ |
D | ZenAccessSettingObserverMixinTest.java | 52 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/src/com/android/settings/network/ |
D | ProxySubscriptionManager.java | 96 private Lifecycle mLifecycle; field in ProxySubscriptionManager 118 if (mLifecycle == lifecycle) { in setLifecycle() 121 if (mLifecycle != null) { in setLifecycle() 122 mLifecycle.removeObserver(this); in setLifecycle() 127 mLifecycle = lifecycle; in setLifecycle() 146 if (mLifecycle != null) { in onDestroy() 147 mLifecycle.removeObserver(this); in onDestroy() 148 mLifecycle = null; in onDestroy()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminListPreferenceControllerTest.java | 54 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/ |
D | MultiNetworkHeaderControllerTest.java | 69 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()
|
D | MobileNetworkPreferenceControllerTest.java | 70 private Lifecycle mLifecycle; field in MobileNetworkPreferenceControllerTest 79 mLifecycleOwner = () -> mLifecycle; in setUp() 80 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 114 mLifecycle.addObserver(mController); in goThroughLifecycle_isAvailable_shouldListenToServiceChange() 117 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_isAvailable_shouldListenToServiceChange() 121 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_isAvailable_shouldListenToServiceChange() 131 mLifecycle.addObserver(mController); in serviceStateChange_shouldUpdatePrefSummary() 138 mLifecycle.handleLifecycleEvent(ON_START); in serviceStateChange_shouldUpdatePrefSummary()
|
D | VpnPreferenceControllerTest.java | 71 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()
|
D | PrivateDnsPreferenceControllerTest.java | 118 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/ |
D | WifiP2PPreferenceControllerTest.java | 67 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/network/telephony/ |
D | ContactDiscoveryPreferenceControllerTest.java | 82 private Lifecycle mLifecycle; field in ContactDiscoveryPreferenceControllerTest 90 mLifecycleOwner = () -> mLifecycle; in setUp() 91 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 107 mPreferenceControllerUT.init(mFragmentManager, TEST_SUB_ID, mLifecycle); in setUp() 133 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in testRegisterObserver() 136 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_PAUSE); in testRegisterObserver() 168 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in getUceChangeObserver()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountHeaderPreferenceControllerTest.java | 70 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/ |
D | AssistFlashScreenPreferenceControllerTest.java | 68 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()
|
D | AssistContextPreferenceControllerTest.java | 60 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/ |
D | BatteryHeaderPreferenceControllerTest.java | 91 private Lifecycle mLifecycle; field in BatteryHeaderPreferenceControllerTest 97 mLifecycleOwner = () -> mLifecycle; in setUp() 98 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp() 120 mLifecycle.addObserver(mController); in setUp() 123 mController.setLifecycle(mLifecycle); in setUp() 178 when(mEntityHeaderController.setRecyclerView(nullable(RecyclerView.class), eq(mLifecycle))) in onStart_shouldStyleActionBar() 182 mLifecycle.handleLifecycleEvent(ON_START); in onStart_shouldStyleActionBar()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/ |
D | AutofillLoggingLevelPreferenceControllerTest.java | 71 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/ |
D | AppHeaderViewPreferenceController.java | 43 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/ |
D | AppHeaderViewPreferenceController.java | 43 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/ |
D | WifiInfoPreferenceControllerTest.java | 72 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/ |
D | WifiTetherPreferenceControllerTest.java | 74 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/ |
D | LockScreenPreferenceControllerTest.java | 65 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()
|