Home
last modified time | relevance | path

Searched refs:mSettingObserver (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModePreferenceController.java38 private SettingObserver mSettingObserver; field in ZenModePreferenceController
49 mSettingObserver = new SettingObserver(screen.findPreference(getPreferenceKey())); in displayPreference()
54 if (mSettingObserver != null) { in onResume()
55 mSettingObserver.register(mContext.getContentResolver()); in onResume()
61 if (mSettingObserver != null) { in onPause()
62 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
DBubbleNotificationPreferenceController.java50 private SettingObserver mSettingObserver; field in BubbleNotificationPreferenceController
61 mSettingObserver = new SettingObserver(preference); in displayPreference()
67 if (mSettingObserver != null) { in onResume()
68 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
74 if (mSettingObserver != null) { in onPause()
75 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
DPulseNotificationPreferenceController.java41 private SettingObserver mSettingObserver; field in PulseNotificationPreferenceController
52 mSettingObserver = new SettingObserver(preference); in displayPreference()
58 if (mSettingObserver != null) { in onResume()
59 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
65 if (mSettingObserver != null) { in onPause()
66 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
DBadgingNotificationPreferenceController.java49 private SettingObserver mSettingObserver; field in BadgingNotificationPreferenceController
60 mSettingObserver = new SettingObserver(preference); in displayPreference()
66 if (mSettingObserver != null) { in onResume()
67 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
73 if (mSettingObserver != null) { in onPause()
74 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
DVibrateWhenRingPreferenceController.java47 private SettingObserver mSettingObserver; field in VibrateWhenRingPreferenceController
85 mSettingObserver = new SettingObserver(preference); in displayPreference()
92 if (mSettingObserver != null) { in onResume()
93 mSettingObserver.register(true /* register */); in onResume()
99 if (mSettingObserver != null) { in onPause()
100 mSettingObserver.register(false /* register */); in onPause()
DAbstractZenModePreferenceController.java51 protected SettingObserver mSettingObserver; field in AbstractZenModePreferenceController
87 mSettingObserver = new SettingObserver(pref); in displayPreference()
93 if (mSettingObserver != null) { in onResume()
94 mSettingObserver.register(mContext.getContentResolver()); in onResume()
95 mSettingObserver.onChange(false, null); in onResume()
101 if (mSettingObserver != null) { in onPause()
102 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
DLockScreenNotificationPreferenceController.java69 private SettingObserver mSettingObserver; field in LockScreenNotificationPreferenceController
108 mSettingObserver = new SettingObserver(); in displayPreference()
204 if (mSettingObserver != null) { in onResume()
205 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
211 if (mSettingObserver != null) { in onPause()
212 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModePreferenceController.java38 private SettingObserver mSettingObserver; field in ZenModePreferenceController
49 mSettingObserver = new SettingObserver(screen.findPreference(getPreferenceKey())); in displayPreference()
54 if (mSettingObserver != null) { in onResume()
55 mSettingObserver.register(mContext.getContentResolver()); in onResume()
61 if (mSettingObserver != null) { in onPause()
62 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
DPulseNotificationPreferenceController.java41 private SettingObserver mSettingObserver; field in PulseNotificationPreferenceController
52 mSettingObserver = new SettingObserver(preference); in displayPreference()
58 if (mSettingObserver != null) { in onResume()
59 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
65 if (mSettingObserver != null) { in onPause()
66 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
DVibrateWhenRingPreferenceController.java47 private SettingObserver mSettingObserver; field in VibrateWhenRingPreferenceController
85 mSettingObserver = new SettingObserver(preference); in displayPreference()
92 if (mSettingObserver != null) { in onResume()
93 mSettingObserver.register(true /* register */); in onResume()
99 if (mSettingObserver != null) { in onPause()
100 mSettingObserver.register(false /* register */); in onPause()
DBadgingNotificationPreferenceController.java49 private SettingObserver mSettingObserver; field in BadgingNotificationPreferenceController
60 mSettingObserver = new SettingObserver(preference); in displayPreference()
66 if (mSettingObserver != null) { in onResume()
67 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
73 if (mSettingObserver != null) { in onPause()
74 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
DAbstractZenModePreferenceController.java51 protected SettingObserver mSettingObserver; field in AbstractZenModePreferenceController
87 mSettingObserver = new SettingObserver(pref); in displayPreference()
93 if (mSettingObserver != null) { in onResume()
94 mSettingObserver.register(mContext.getContentResolver()); in onResume()
95 mSettingObserver.onChange(false, null); in onResume()
101 if (mSettingObserver != null) { in onPause()
102 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
/packages/apps/Settings/src/com/android/settings/wifi/
DNotifyOpenNetworksPreferenceController.java46 private SettingObserver mSettingObserver; field in NotifyOpenNetworksPreferenceController
56 mSettingObserver = new SettingObserver(screen.findPreference(KEY_NOTIFY_OPEN_NETWORKS)); in displayPreference()
61 if (mSettingObserver != null) { in onResume()
62 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
68 if (mSettingObserver != null) { in onPause()
69 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DNotifyOpenNetworksPreferenceController.java46 private SettingObserver mSettingObserver; field in NotifyOpenNetworksPreferenceController
56 mSettingObserver = new SettingObserver(screen.findPreference(KEY_NOTIFY_OPEN_NETWORKS)); in displayPreference()
61 if (mSettingObserver != null) { in onResume()
62 mSettingObserver.register(mContext.getContentResolver(), true /* register */); in onResume()
68 if (mSettingObserver != null) { in onPause()
69 mSettingObserver.register(mContext.getContentResolver(), false /* register */); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DPreventRingingGesturePreferenceController.java69 private SettingObserver mSettingObserver; field in PreventRingingGesturePreferenceController
91 mSettingObserver = new SettingObserver(mPreferenceCategory); in displayPreference()
158 if (mSettingObserver != null) { in onResume()
159 mSettingObserver.register(mContext.getContentResolver()); in onResume()
160 mSettingObserver.onChange(false, null); in onResume()
170 if (mSettingObserver != null) { in onPause()
171 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
/packages/apps/Settings/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceController.java69 private SettingObserver mSettingObserver; field in PreventRingingGesturePreferenceController
91 mSettingObserver = new SettingObserver(mPreferenceCategory); in displayPreference()
158 if (mSettingObserver != null) { in onResume()
159 mSettingObserver.register(mContext.getContentResolver()); in onResume()
160 mSettingObserver.onChange(false, null); in onResume()
170 if (mSettingObserver != null) { in onPause()
171 mSettingObserver.unregister(mContext.getContentResolver()); in onPause()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DAssistConfigBasePreferenceController.java41 private final SettingObserver mSettingObserver; field in AssistConfigBasePreferenceController
49 mSettingObserver = new SettingObserver(getSettingUris(), this::refreshUi); in AssistConfigBasePreferenceController()
67 mSettingObserver.register(getContext().getContentResolver(), true); in onStartInternal()
72 mSettingObserver.register(getContext().getContentResolver(), false); in onStopInternal()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DAssistContextPreferenceController.java46 private final SettingObserver mSettingObserver; field in AssistContextPreferenceController
54 mSettingObserver = new SettingObserver(); in AssistContextPreferenceController()
80 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
91 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DAssistScreenshotPreferenceController.java46 private final SettingObserver mSettingObserver; field in AssistScreenshotPreferenceController
54 mSettingObserver = new SettingObserver(); in AssistScreenshotPreferenceController()
79 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
90 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DDefaultVoiceInputPreferenceController.java47 private SettingObserver mSettingObserver; field in DefaultVoiceInputPreferenceController
51 mSettingObserver = new SettingObserver(); in DefaultVoiceInputPreferenceController()
85 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
97 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DAssistFlashScreenPreferenceController.java48 private final SettingObserver mSettingObserver; field in AssistFlashScreenPreferenceController
55 mSettingObserver = new SettingObserver(); in AssistFlashScreenPreferenceController()
81 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
92 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DAssistContextPreferenceController.java46 private final SettingObserver mSettingObserver; field in AssistContextPreferenceController
54 mSettingObserver = new SettingObserver(); in AssistContextPreferenceController()
80 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
91 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DAssistScreenshotPreferenceController.java46 private final SettingObserver mSettingObserver; field in AssistScreenshotPreferenceController
54 mSettingObserver = new SettingObserver(); in AssistScreenshotPreferenceController()
79 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
90 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DDefaultVoiceInputPreferenceController.java47 private SettingObserver mSettingObserver; field in DefaultVoiceInputPreferenceController
51 mSettingObserver = new SettingObserver(); in DefaultVoiceInputPreferenceController()
85 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
97 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()
DAssistFlashScreenPreferenceController.java48 private final SettingObserver mSettingObserver; field in AssistFlashScreenPreferenceController
55 mSettingObserver = new SettingObserver(); in AssistFlashScreenPreferenceController()
81 mSettingObserver.register(mContext.getContentResolver(), true); in onResume()
92 mSettingObserver.register(mContext.getContentResolver(), false); in onPause()

12