/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeObserver.java | 34 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()
|
D | DarkModeSettingsFragment.java | 43 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/ |
D | DisplayWhiteBalancePreferenceController.java | 42 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()
|
D | ColorModePreferenceFragment.java | 57 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/ |
D | AccessibilityButtonPreviewPreferenceController.java | 48 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()
|
D | FloatingMenuTransparencyPreferenceController.java | 53 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()
|
D | FloatingMenuFadePreferenceController.java | 45 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()
|
D | FloatingMenuSizePreferenceController.java | 50 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/ |
D | AccessibilityButtonPreviewPreferenceControllerTest.java | 73 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()
|
D | FloatingMenuTransparencyPreferenceControllerTest.java | 92 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()
|
D | FloatingMenuSizePreferenceControllerTest.java | 100 mController.mContentObserver.onChange(false); in onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled() 111 mController.mContentObserver); in onResume_registerSpecificContentObserver() 118 verify(mContentResolver).unregisterContentObserver(mController.mContentObserver); in onPause_unregisterContentObserver()
|
D | FloatingMenuFadePreferenceControllerTest.java | 111 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/ |
D | DarkModeObserverTest.java | 37 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/ |
D | AggregationSuggestionEngine.java | 113 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/ |
D | ObservableAsyncQuery.java | 58 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/ |
D | FocusInteraction.java | 285 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/ |
D | CarrierIdProviderTest.java | 77 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/ |
D | ContactsContentObserver.java | 45 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/ |
D | ContentProviderLiveData.java | 35 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/ |
D | PreferenceContentProviderLiveData.java | 34 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/ |
D | AdaptiveConnectivityEnabledSettingObserver.java | 52 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/ |
D | LocalPhotoSource.java | 62 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/ |
D | StorageVolumesFragment.java | 74 .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/ |
D | WellbeingModel.java | 99 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/ |
D | RedactNotificationPreferenceController.java | 58 private ContentObserver mContentObserver = field in RedactNotificationPreferenceController 153 false /* notifyForDescendants */, mContentObserver); in onStart() local 158 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in onStop()
|