Home
last modified time | relevance | path

Searched refs:mSettingsObserver (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/
DSettingPrefController.java43 protected SettingsObserver mSettingsObserver; field in SettingPrefController
60 mSettingsObserver = new SettingsObserver(); in displayPreference()
81 if (mSettingsObserver != null) { in onResume()
82 mSettingsObserver.register(true /* register */); in onResume()
88 if (mSettingsObserver != null) { in onPause()
89 mSettingsObserver.register(false /* register */); in onPause()
DZenModeSettingsBase.java40 private final SettingsObserver mSettingsObserver = new SettingsObserver(); field in ZenModeSettingsBase
75 mSettingsObserver.register(); in onResume()
89 mSettingsObserver.unregister(); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DSettingPrefController.java43 protected SettingsObserver mSettingsObserver; field in SettingPrefController
60 mSettingsObserver = new SettingsObserver(); in displayPreference()
81 if (mSettingsObserver != null) { in onResume()
82 mSettingsObserver.register(true /* register */); in onResume()
88 if (mSettingsObserver != null) { in onPause()
89 mSettingsObserver.register(false /* register */); in onPause()
DZenModeSettingsBase.java40 private final SettingsObserver mSettingsObserver = new SettingsObserver(); field in ZenModeSettingsBase
75 mSettingsObserver.register(); in onResume()
89 mSettingsObserver.unregister(); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DStayAwakePreferenceController.java55 SettingsObserver mSettingsObserver; field in StayAwakePreferenceController
106 if (mSettingsObserver == null) { in onResume()
107 mSettingsObserver = new SettingsObserver(); in onResume()
109 mSettingsObserver.register(true /* register */); in onResume()
114 if (mPreference == null || mSettingsObserver == null) { in onPause()
117 mSettingsObserver.register(false /* unregister */); in onPause()
/packages/apps/Settings/src/com/android/settings/development/
DStayAwakePreferenceController.java55 SettingsObserver mSettingsObserver; field in StayAwakePreferenceController
106 if (mSettingsObserver == null) { in onResume()
107 mSettingsObserver = new SettingsObserver(); in onResume()
109 mSettingsObserver.register(true /* register */); in onResume()
114 if (mPreference == null || mSettingsObserver == null) { in onPause()
117 mSettingsObserver.register(false /* unregister */); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/autofill/
DAutofillPreferenceCategory.java36 private final ContentObserver mSettingsObserver; field in AutofillPreferenceCategory
42 mSettingsObserver = new ContentObserver(mHandler) { in AutofillPreferenceCategory()
61 mSettingsObserver); in onAttached() local
66 mContentResolver.unregisterContentObserver(mSettingsObserver); in onDetached()
/packages/apps/Settings/src/com/android/settings/development/autofill/
DAutofillPreferenceCategory.java36 private final ContentObserver mSettingsObserver; field in AutofillPreferenceCategory
42 mSettingsObserver = new ContentObserver(mHandler) { in AutofillPreferenceCategory()
61 mSettingsObserver); in onAttached() local
66 mContentResolver.unregisterContentObserver(mSettingsObserver); in onDetached()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsPreferenceController.java68 private final ContentObserver mSettingsObserver; field in PrivateDnsPreferenceController
76 mSettingsObserver = new PrivateDnsSettingsObserver(mHandler); in PrivateDnsPreferenceController()
102 mContext.getContentResolver().registerContentObserver(uri, false, mSettingsObserver); in onStart()
113 mContext.getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsPreferenceController.java68 private final ContentObserver mSettingsObserver; field in PrivateDnsPreferenceController
76 mSettingsObserver = new PrivateDnsSettingsObserver(mHandler); in PrivateDnsPreferenceController()
102 mContext.getContentResolver().registerContentObserver(uri, false, mSettingsObserver); in onStart()
113 mContext.getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DVibrationPreferenceFragment.java63 private final SettingsObserver mSettingsObserver; field in VibrationPreferenceFragment
67 mSettingsObserver = new SettingsObserver(); in VibrationPreferenceFragment()
73 mSettingsObserver.register(); in onAttach()
137 mSettingsObserver.unregister(); in onDetach()
/packages/apps/Settings/src/com/android/settings/accessibility/
DVibrationPreferenceFragment.java63 private final SettingsObserver mSettingsObserver; field in VibrationPreferenceFragment
67 mSettingsObserver = new SettingsObserver(); in VibrationPreferenceFragment()
73 mSettingsObserver.register(); in onAttach()
160 mSettingsObserver.unregister(); in onDetach()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java63 final SettingsObserver mSettingsObserver; field in PreferredServices
100 mSettingsObserver = new SettingsObserver(mHandler); in PreferredServices()
103 true, mSettingsObserver, UserHandle.USER_ALL); in PreferredServices()
107 true, mSettingsObserver, UserHandle.USER_ALL); in PreferredServices()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleSettings.java64 final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in BatterySaverScheduleSettings
92 mSettingsObserver); in onResume() local
109 mContext.getContentResolver().unregisterContentObserver(mSettingsObserver); in onPause()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java183 private final SettingsObserver mSettingsObserver; field in PhoneGlobals
269 mSettingsObserver = new SettingsObserver(context, mHandler); in PhoneGlobals()
433 mSettingsObserver.unobserve(); in registerSettingsObserver()
445 mSettingsObserver.observe(Settings.Global.getUriFor(dataRoamingSetting), in registerSettingsObserver()
449 mSettingsObserver.observe(Settings.Global.getUriFor(mobileDataSetting), in registerSettingsObserver()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wfd/
DWifiDisplaySettings.java172 Settings.Global.WIFI_DISPLAY_ON), false, mSettingsObserver); in onStart() local
174 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON), false, mSettingsObserver); in onStart() local
176 Settings.Global.WIFI_DISPLAY_WPS_CONFIG), false, mSettingsObserver); in onStart() local
192 getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
629 private final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in WifiDisplaySettings
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java173 Settings.Global.WIFI_DISPLAY_ON), false, mSettingsObserver); in onStart() local
175 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON), false, mSettingsObserver); in onStart() local
177 Settings.Global.WIFI_DISPLAY_WPS_CONFIG), false, mSettingsObserver); in onStart() local
193 getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
630 private final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in WifiDisplaySettings
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java112 final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in PowerUsageSummary
247 mSettingsObserver); in onResume() local
252 getContentResolver().unregisterContentObserver(mSettingsObserver); in onPause()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DStayAwakePreferenceControllerTest.java125 mController.mSettingsObserver.onChange(false, in observerOnChangeCalledWithSameUri_preferenceShouldBeUpdated()
136 mController.mSettingsObserver.onChange(false, null); in observerOnChangeCalledWithDifferentUri_preferenceShouldNotBeUpdated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java366 mFragment.mSettingsObserver); in onResume_registerContentObserver()
374 mFragment.mSettingsObserver); in onPause_unregisterContentObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSettingPrefControllerTest.java169 return mSettingsObserver; in getObserver()