Home
last modified time | relevance | path

Searched refs:mContentObserver (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeObserver.java34 private ContentObserver mContentObserver; field in DarkModeObserver
46 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in DarkModeObserver()
72 .registerContentObserver(uri, false, mContentObserver); in subscribe()
74 .registerContentObserver(customStart, false, mContentObserver); in subscribe()
76 .registerContentObserver(customEnd, false, mContentObserver); in subscribe()
87 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in unsubscribe()
100 mContentObserver = co; in setContentObserver()
105 return mContentObserver; in getContentObserver()
DDarkModeSettingsFragment.java43 private DarkModeObserver mContentObserver; field in DarkModeSettingsFragment
56 mContentObserver = new DarkModeObserver(context); in onCreate()
63 mContentObserver.subscribe(mCallback); in onStart()
82 mContentObserver.unsubscribe(); in onStop()
/packages/apps/Settings/src/com/android/settings/display/
DDisplayWhiteBalancePreferenceController.java42 ContentObserver mContentObserver; field in DisplayWhiteBalancePreferenceController
72 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in onStart()
81 false /* notifyForDescendants */, mContentObserver, in onStart() local
85 false /* notifyForDescendants */, mContentObserver, in onStart() local
89 false /* notifyForDescendants */, mContentObserver, in onStart() local
97 if (mContentObserver != null) { in onStop()
98 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in onStop()
99 mContentObserver = null; in onStop()
DColorModePreferenceFragment.java57 private ContentObserver mContentObserver; field in ColorModePreferenceFragment
69 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in onAttach()
82 false /* notifyForDescendants */, mContentObserver, mUserId); in onAttach() local
85 false /* notifyForDescendants */, mContentObserver, mUserId); in onAttach() local
90 if (mContentObserver != null) { in onDetach()
91 getContext().getContentResolver().unregisterContentObserver(mContentObserver); in onDetach()
92 mContentObserver = null; in onDetach()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityButtonPreviewPreferenceController.java48 final ContentObserver mContentObserver; field in AccessibilityButtonPreviewPreferenceController
57 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in AccessibilityButtonPreviewPreferenceController()
83 /* notifyForDescendants= */ false, mContentObserver); in onResume() local
86 /* notifyForDescendants= */ false, mContentObserver); in onResume() local
89 /* notifyForDescendants= */ false, mContentObserver); in onResume() local
94 mContentResolver.unregisterContentObserver(mContentObserver); in onPause()
DFloatingMenuTransparencyPreferenceController.java53 final ContentObserver mContentObserver; field in FloatingMenuTransparencyPreferenceController
62 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in FloatingMenuTransparencyPreferenceController()
94 false, mContentObserver); in onResume() local
98 /* notifyForDescendants= */ false, mContentObserver); in onResume() local
103 mContentResolver.unregisterContentObserver(mContentObserver); in onPause()
DFloatingMenuFadePreferenceController.java45 final ContentObserver mContentObserver; field in FloatingMenuFadePreferenceController
53 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in FloatingMenuFadePreferenceController()
94 /* notifyForDescendants= */ false, mContentObserver); in onResume() local
99 mContentResolver.unregisterContentObserver(mContentObserver); in onPause()
DFloatingMenuSizePreferenceController.java50 final ContentObserver mContentObserver; field in FloatingMenuSizePreferenceController
72 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in FloatingMenuSizePreferenceController()
119 false, mContentObserver); in onResume() local
125 mContentResolver.unregisterContentObserver(mContentObserver); in onPause()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityButtonPreviewPreferenceControllerTest.java73 mController.mContentObserver.onChange(false); in onChange_a11yBtnModeNavigationBar_getNavigationBarDrawable()
90 mController.mContentObserver.onChange(false); in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
105 mController.mContentObserver); in onResume_registerSpecificContentObserver()
108 mController.mContentObserver); in onResume_registerSpecificContentObserver()
112 mController.mContentObserver); in onResume_registerSpecificContentObserver()
119 verify(mContentResolver).unregisterContentObserver(mController.mContentObserver); in onPause_unregisterContentObserver()
DFloatingMenuTransparencyPreferenceControllerTest.java92 mController.mContentObserver.onChange(false); in onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled()
132 mController.mContentObserver); in onResume_registerSpecificContentObserver()
136 mController.mContentObserver); in onResume_registerSpecificContentObserver()
143 verify(mContentResolver).unregisterContentObserver(mController.mContentObserver); in onPause_unregisterContentObserver()
DFloatingMenuSizePreferenceControllerTest.java100 mController.mContentObserver.onChange(false); in onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled()
111 mController.mContentObserver); in onResume_registerSpecificContentObserver()
118 verify(mContentResolver).unregisterContentObserver(mController.mContentObserver); in onPause_unregisterContentObserver()
DFloatingMenuFadePreferenceControllerTest.java111 mController.mContentObserver.onChange(false); in onChange_floatingMenuFadeChangeToDisabled_preferenceDisabled()
122 mController.mContentObserver); in onResume_registerSpecificContentObserver()
129 verify(mContentResolver).unregisterContentObserver(mController.mContentObserver); in onPause_unregisterContentObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeObserverTest.java37 private ContentObserver mContentObserver; field in DarkModeObserverTest
47 mContentObserver = mDarkModeObserver.getContentObserver(); in setUp()
54 mContentObserver.onChange(false, mUri); in callbackTest_subscribedCallbackCalled()
61 mContentObserver.onChange(false, mUri); in callbackTest_unsubscribedCallNotbackCalled()
63 mContentObserver.onChange(false, mUri); in callbackTest_unsubscribedCallNotbackCalled()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java113 private ContentObserver mContentObserver; field in AggregationSuggestionEngine
160 if (mContentObserver != null) { in quit()
161 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in quit()
162 mContentObserver = null; in quit()
176 if (mContentObserver == null) { in onNameChange()
177 mContentObserver = new SuggestionContentObserver(getHandler()); in onNameChange()
179 Contacts.CONTENT_URI, true, mContentObserver); in onNameChange()
181 } else if (mContentObserver != null) { in onNameChange()
182 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in onNameChange()
183 mContentObserver = null; in onNameChange()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DObservableAsyncQuery.java58 private ContentObserver mContentObserver; field in ObservableAsyncQuery
74 mContentObserver = new ContentObserver(mAsyncQueryHandler) { in ObservableAsyncQuery()
92 mContentResolver.unregisterContentObserver(mContentObserver); in startQuery()
106 mContentResolver.registerContentObserver(queryParam.mUri, false, mContentObserver); in startQuery()
121 mContentResolver.unregisterContentObserver(mContentObserver); in stopQuery()
/packages/services/Car/service/src/com/android/car/audio/
DFocusInteraction.java285 private ContentObserver mContentObserver; field in FocusInteraction
373 if (mContentObserver != null) { in setUserIdForSettings()
375 .unregisterContentObserver(mContentObserver); in setUserIdForSettings()
376 mContentObserver = null; in setUserIdForSettings()
382 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in setUserIdForSettings()
392 false, mContentObserver, userId); in setUserIdForSettings()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierIdProviderTest.java77 private FakeContentObserver mContentObserver; field in CarrierIdProviderTest
86 mContentObserver.dispatchChange(false, uri); in notifyChange()
154 mContentObserver = new FakeContentObserver(null); in setUp()
177 assertTrue(mContentObserver.changed); in testInsertCarrierInfo()
212 assertFalse(mContentObserver.changed); in testInvalidInsertionCarrierInfo()
237 assertTrue(mContentObserver.changed); in testDeleteCarrierInfo()
273 assertTrue(mContentObserver.changed); in testUpdateCarrierInfo()
418 assertFalse(mContentObserver.changed); in testUpdateCurrentSubscription_WrongURI()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsContentObserver.java45 private ContentObserver mContentObserver; field in ContactsContentObserver
65 mContentObserver = new ContentObserver(null /* handler */) { in registerObserver()
73 contentResolver.registerContentObserver(Contacts.CONTENT_URI, true, mContentObserver); in registerObserver()
134 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in unregister()
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/
DContentProviderLiveData.java35 private final ContentObserver mContentObserver = field in ContentProviderLiveData
59 uri, /* notifyForDescendants =*/ true, mContentObserver); in onActive()
68 getContext().getContentResolver().unregisterContentObserver(mContentObserver); in onInactive()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DPreferenceContentProviderLiveData.java34 private final ContentObserver mContentObserver = new ContentObserver(null) { field in PreferenceContentProviderLiveData
58 mContentObserver); in onActive()
65 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in onInactive()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAdaptiveConnectivityEnabledSettingObserver.java52 private final ContentObserver mContentObserver; field in AdaptiveConnectivityEnabledSettingObserver
62 mContentObserver = new ContentObserver(handler) { in AdaptiveConnectivityEnabledSettingObserver()
87 mContext, uri, true, mContentObserver); in initialize()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java62 private ContentObserver mContentObserver; field in LocalPhotoSource
70 mContentObserver = new ContentObserver(new Handler()) { in LocalPhotoSource()
78 .registerContentObserver(CONTENT_URI, true, mContentObserver); in LocalPhotoSource()
83 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in close()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagevolumes/
DStorageVolumesFragment.java74 .registerContentObserver(MediaStore.AUTHORITY_URI, true, mContentObserver); in onResume()
80 .unregisterContentObserver(mContentObserver); in onPause()
92 private final ContentObserver mContentObserver = new ContentObserver(new Handler()) { field in StorageVolumesFragment
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWellbeingModel.java99 private ContentObserver mContentObserver; field in WellbeingModel
117 mContentObserver = newContentObserver(mWorkerHandler, this::onWellbeingUriChanged); in onInitialized()
179 resolver.unregisterContentObserver(mContentObserver); in restartObserver()
184 actionsUri, true /* notifyForDescendants */, mContentObserver); in restartObserver()
186 minimalDeviceUri, true /* notifyForDescendants */, mContentObserver); in restartObserver()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactNotificationPreferenceController.java58 private ContentObserver mContentObserver = field in RedactNotificationPreferenceController
153 false /* notifyForDescendants */, mContentObserver); in onStart() local
158 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in onStop()

12