Home
last modified time | relevance | path

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

/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/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/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()
DWirelessDebuggingEnabler.java46 private final ContentObserver mSettingsObserver; field in WirelessDebuggingEnabler
62 mSettingsObserver = new ContentObserver(mHandler) { in WirelessDebuggingEnabler()
97 mSettingsObserver); in onResume() local
106 mContentResolver.unregisterContentObserver(mSettingsObserver); in onPause()
DWirelessDebuggingPreferenceController.java51 private final ContentObserver mSettingsObserver; field in WirelessDebuggingPreferenceController
63 mSettingsObserver = new ContentObserver(mHandler) { in WirelessDebuggingPreferenceController()
118 mSettingsObserver); in onResume() local
123 mContentResolver.unregisterContentObserver(mSettingsObserver); 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/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/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/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/services/Telephony/src/com/android/phone/
DPhoneGlobals.java206 private final SettingsObserver mSettingsObserver; field in PhoneGlobals
315 mSettingsObserver = new SettingsObserver(context, mHandler); in PhoneGlobals()
501 mSettingsObserver.unobserve(); in registerSettingsObserver()
513 mSettingsObserver.observe(Settings.Global.getUriFor(dataRoamingSetting), in registerSettingsObserver()
517 mSettingsObserver.observe(Settings.Global.getUriFor(mobileDataSetting), in registerSettingsObserver()
/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/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/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java110 final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in PowerUsageSummary
243 mSettingsObserver); in onResume() local
248 getContentResolver().unregisterContentObserver(mSettingsObserver); in onPause()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java363 mFragment.mSettingsObserver); in onResume_registerContentObserver()
371 mFragment.mSettingsObserver); in onPause_unregisterContentObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSettingPrefControllerTest.java169 return mSettingsObserver; in getObserver()