Home
last modified time | relevance | path

Searched refs:mSettingsObserver (Results 1 – 22 of 22) 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()
/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.java48 private final ContentObserver mSettingsObserver; field in WirelessDebuggingEnabler
64 mSettingsObserver = new ContentObserver(mHandler) { in WirelessDebuggingEnabler()
99 mSettingsObserver); in onResume() local
108 mContentResolver.unregisterContentObserver(mSettingsObserver); in onPause()
DWirelessDebuggingPreferenceController.java56 private final ContentObserver mSettingsObserver; field in WirelessDebuggingPreferenceController
68 mSettingsObserver = new ContentObserver(mHandler) { in WirelessDebuggingPreferenceController()
123 mSettingsObserver); in onResume() local
128 mContentResolver.unregisterContentObserver(mSettingsObserver); 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/apps/Settings/src/com/android/settings/gestures/
DOneHandedSettingsUtils.java66 private final SettingsObserver mSettingsObserver; field in OneHandedSettingsUtils
73 mSettingsObserver = new SettingsObserver(new Handler(Looper.getMainLooper())); in OneHandedSettingsUtils()
261 mSettingsObserver.observe(); in registerToggleAwareObserver()
262 mSettingsObserver.setCallback(callback); in registerToggleAwareObserver()
270 resolver.unregisterContentObserver(mSettingsObserver); in unregisterToggleAwareObserver()
/packages/apps/Settings/src/com/android/settings/emergency/
DEmergencyGestureNumberOverridePreferenceController.java48 private final ContentObserver mSettingsObserver; field in EmergencyGestureNumberOverridePreferenceController
56 mSettingsObserver = new EmergencyGestureNumberOverrideSettingsObserver(mHandler); in EmergencyGestureNumberOverridePreferenceController()
91 false, mSettingsObserver); in onStart()
96 mContext.getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsPreferenceController.java69 private final ContentObserver mSettingsObserver; field in PrivateDnsPreferenceController
77 mSettingsObserver = new PrivateDnsSettingsObserver(mHandler); in PrivateDnsPreferenceController()
103 mContext.getContentResolver().registerContentObserver(uri, false, mSettingsObserver); in onStart()
114 mContext.getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
/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/Settings/src/com/android/settings/notification/zen/
DZenModeSettingsBase.java40 private final SettingsObserver mSettingsObserver = new SettingsObserver(); field in ZenModeSettingsBase
75 mSettingsObserver.register(); in onResume()
89 mSettingsObserver.unregister(); in onPause()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java64 final SettingsObserver mSettingsObserver; field in PreferredServices
101 mSettingsObserver = new SettingsObserver(mHandler); in PreferredServices()
104 true, mSettingsObserver, UserHandle.USER_ALL); in PreferredServices()
108 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/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java88 final ContentObserver mSettingsObserver = new ContentObserver(new Handler()) { field in PowerUsageSummary
182 mSettingsObserver); in onResume() local
187 getContentResolver().unregisterContentObserver(mSettingsObserver); in onPause()
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java169 Settings.Global.WIFI_DISPLAY_ON), false, mSettingsObserver); in onStart() local
171 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON), false, mSettingsObserver); in onStart() local
173 Settings.Global.WIFI_DISPLAY_WPS_CONFIG), false, mSettingsObserver); in onStart() local
189 getContentResolver().unregisterContentObserver(mSettingsObserver); in onStop()
631 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/development/qstile/
DDevelopmentTiles.java398 private final ContentObserver mSettingsObserver = new ContentObserver(mHandler) { field in DevelopmentTiles.WirelessDebugging
420 mSettingsObserver); in onStartListening() local
426 getContentResolver().unregisterContentObserver(mSettingsObserver); in onStopListening()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java213 private final SettingsObserver mSettingsObserver; field in PhoneGlobals
371 mSettingsObserver = new SettingsObserver(context, mHandler); in PhoneGlobals()
581 mSettingsObserver.unobserve(); in registerSettingsObserver()
593 mSettingsObserver.observe(Settings.Global.getUriFor(dataRoamingSetting), in registerSettingsObserver()
597 mSettingsObserver.observe(Settings.Global.getUriFor(mobileDataSetting), in registerSettingsObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java212 mFragment.mSettingsObserver); in onResume_registerContentObserver()
220 mFragment.mSettingsObserver); in onPause_unregisterContentObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSettingPrefControllerTest.java169 return mSettingsObserver; in getObserver()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java269 private SettingsObserver mSettingsObserver; field in Tethering
321 mSettingsObserver = new SettingsObserver(mHandler); in Tethering()
323 Settings.Global.getUriFor(TETHER_FORCE_USB_FUNCTIONS), false, mSettingsObserver); in Tethering() local
393 return mSettingsObserver; in getSettingsObserverForTest()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java354 mTracker.mSettingsObserver.onChange( in testGetMultipathPreference_SettingChanged()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java730 final private SettingsObserver mSettingsObserver; field in ConnectivityService
1454 mSettingsObserver = new SettingsObserver(mContext, mHandler); in ConnectivityService()
1600 mSettingsObserver.observe( in registerSettingsCallbacks()
1605 mSettingsObserver.observe( in registerSettingsCallbacks()
1610 mSettingsObserver.observe( in registerSettingsCallbacks()
1615 mSettingsObserver.observe( in registerSettingsCallbacks()
1622 mSettingsObserver.observe(uri, EVENT_PRIVATE_DNS_SETTINGS_CHANGED); in registerPrivateDnsSettingsCallbacks()