Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DContentQueryMap.java45 private ContentObserver mContentObserver; field in ContentQueryMap
91 mCursor.unregisterContentObserver(mContentObserver); in setKeepUpdated()
92 mContentObserver = null; in setKeepUpdated()
97 if (mContentObserver == null) { in setKeepUpdated()
98 mContentObserver = new ContentObserver(mHandlerForUpdateNotifications) { in setKeepUpdated()
112 mCursor.registerContentObserver(mContentObserver); in setKeepUpdated()
169 if (mContentObserver != null) { in close()
170 mCursor.unregisterContentObserver(mContentObserver); in close()
171 mContentObserver = null; in close()
/frameworks/base/core/java/android/hardware/display/
DNightDisplayListener.java40 private final ContentObserver mContentObserver; field in NightDisplayListener
60 mContentObserver = new ContentObserver(mHandler) { in NightDisplayListener()
106 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in setCallbackInternal()
110 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
112 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
115 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
118 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
121 false /* notifyForDescendants */, mContentObserver, mUserId); in setCallbackInternal() local
/frameworks/base/core/java/android/database/
DContentObserver.java223 private ContentObserver mContentObserver; field in ContentObserver.Transport
226 mContentObserver = contentObserver; in Transport()
231 ContentObserver contentObserver = mContentObserver; in onChange()
238 mContentObserver = null; in releaseContentObserver()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockManagerTest.java67 private ContentObserver mContentObserver; field in ClockManagerTest
100 mContentObserver = mClockManager.getContentObserver(); in setUp()
127 mContentObserver.onChange(false, SETTINGS_URI, MAIN_USER_ID); in getCurrentClock_default()
137 mContentObserver.onChange(false, SETTINGS_URI, MAIN_USER_ID); in getCurrentClock_customClock()
147 mContentObserver.onChange(false, SETTINGS_URI, MAIN_USER_ID); in onClockChanged_customClock()
159 mContentObserver.onChange(false, SETTINGS_URI, MAIN_USER_ID); in onClockChanged_uniqueInstances()
176 mContentObserver.onChange(false, SETTINGS_URI, MAIN_USER_ID); in getCurrentClock_badSettingsValue()
/frameworks/base/services/core/java/com/android/server/vr/
DSettingsObserver.java42 private final ContentObserver mContentObserver; field in SettingsObserver
84 mContentObserver = new ContentObserver(handler) { in SettingsObserver()
94 resolver.registerContentObserver(settingUri, false, mContentObserver, in SettingsObserver()
/frameworks/base/core/java/android/widget/
DCursorTreeAdapter.java405 private MyContentObserver mContentObserver; field in CursorTreeAdapter.MyCursorHelper
413 mContentObserver = new MyContentObserver(); in MyCursorHelper()
416 cursor.registerContentObserver(mContentObserver); in MyCursorHelper()
459 cursor.registerContentObserver(mContentObserver); in changeCursor()
478 mCursor.unregisterContentObserver(mContentObserver); in deactivate()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockManager.java73 private final ContentObserver mContentObserver = field in ClockManager
210 return mContentObserver; in getContentObserver()
223 false, mContentObserver, UserHandle.USER_ALL); in register() local
226 false, mContentObserver, UserHandle.USER_ALL); in register() local
235 mContentResolver.unregisterContentObserver(mContentObserver); in unregister()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java170 private ContentObserver mContentObserver; field in ColorDisplayService
305 if (mContentObserver == null) { in setUp()
306 mContentObserver = new ContentObserver(mHandler) { in setUp()
366 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
368 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
370 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
372 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
374 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
376 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
379 false /* notifyForDescendants */, mContentObserver, mCurrentUser); in setUp() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java55 private final ContentObserver mContentObserver; field in ScoredNetworkEvaluator
70 mContentObserver = new ContentObserver(new Handler(looper)) { in ScoredNetworkEvaluator()
79 false /* notifyForDescendents */, mContentObserver); in ScoredNetworkEvaluator()
80 mContentObserver.onChange(false /* unused */); in ScoredNetworkEvaluator()
DWakeupController.java59 private final ContentObserver mContentObserver; field in WakeupController
152 mContentObserver = new ContentObserver(mHandler) { in WakeupController()
160 Settings.Global.WIFI_WAKEUP_ENABLED), true, mContentObserver); in WakeupController()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java53 private final ContentObserver mContentObserver; field in CaptioningManager
64 mContentObserver = new MyContentObserver(handler); in CaptioningManager()
165 mContentResolver.registerContentObserver(Secure.getUriFor(key), false, mContentObserver); in registerObserver() local
179 mContentResolver.unregisterContentObserver(mContentObserver); in removeCaptioningChangeListener()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java75 ContentObserver mContentObserver; field in CarrierNetworkConfigTest
125 mContentObserver = observerCaptor.getValue(); in setUp()
265 mContentObserver.onChange(false); in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
DLinkProbeManagerTest.java70 private ContentObserver mContentObserver; field in LinkProbeManagerTest
93 mContentObserver = observerCaptor.getValue(); in setUp()
96 mContentObserver.onChange(false); in setUp()
298 mContentObserver.onChange(false); in testLinkProbeFeatureDisabled()
DCarrierNetworkNotifierTest.java92 private ContentObserver mContentObserver; field in CarrierNetworkNotifierTest
130 mContentObserver = observerCaptor.getValue(); in setUp()
152 mContentObserver.onChange(false); in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
189 mContentObserver.onChange(false); in handleScanResults_featureDisabled_notificationNotDisplayed()
DScoredNetworkEvaluatorTest.java66 private ContentObserver mContentObserver; field in ScoredNetworkEvaluatorTest
102 mContentObserver = observerCaptor.getValue(); in setUp()
135 mContentObserver.onChange(false /* unused */); in testUpdate_recommendationsDisabled()
221 mContentObserver.onChange(false /* unused */); in testEvaluateNetworks_recommendationsDisabled()
DOpenNetworkNotifierTest.java92 private ContentObserver mContentObserver; field in OpenNetworkNotifierTest
129 mContentObserver = observerCaptor.getValue(); in setUp()
151 mContentObserver.onChange(false); in onFeatureDisable_setWifiNetworksAvailableNotificationSettingDisabled()
188 mContentObserver.onChange(false); in handleScanResults_featureDisabled_notificationNotDisplayed()
DSoftApManagerTest.java107 private ContentObserver mContentObserver; field in SoftApManagerTest
1041 mContentObserver.onChange(false); in cancelsTimeoutTimerOnTimeoutToggleChangeWhenNoClients()
1059 mContentObserver.onChange(false); in schedulesTimeoutTimerOnTimeoutToggleChangeWhenNoClients()
1111 verify(mFrameworkFacade).unregisterContentObserver(eq(mContext), eq(mContentObserver)); in unregistersSettingsObserverOnStop()
1170 mContentObserver = observerCaptor.getValue(); in startSoftApAndVerifyEnabled()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java210 assertNotNull(mInjector.mContentObserver); in testAdaptiveOnOff()
247 assertNull(mInjector.mContentObserver); in testAdaptiveOnOff()
821 ContentObserver mContentObserver; field in BrightnessTrackerTest.TestInjector
841 mContentObserver.dispatchChange(false, null); in setBrightnessMode()
875 mContentObserver = settingsObserver; in registerBrightnessModeObserver()
881 mContentObserver = null; in unregisterBrightnessModeObserver()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierResolver.java101 private final ContentObserver mContentObserver = new ContentObserver(this) { field in CarrierResolver
122 mContentObserver); in CarrierResolver()
124 CarrierId.All.CONTENT_URI, false, mContentObserver); in CarrierResolver()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java218 private final ContentObserver mContentObserver; field in NetworkStatsService
447 mContentObserver = mDeps.makeContentObserver(mHandler, mSettings, in NetworkStatsService()
563 false /* notifyForDescendants */, mContentObserver);
567 mHandler.post(() -> mContentObserver.onChange(false, Settings.Global
594 mContentResolver.unregisterContentObserver(mContentObserver);
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java180 private ContentObserver mContentObserver; field in NetworkStatsServiceTest
258 return mContentObserver = super.makeContentObserver(handler, settings, monitor); in makeDependencies()
1216 mHandler.post(() -> mContentObserver.onChange(false, Settings.Global
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt13048 Landroid/content/ContentQueryMap;->mContentObserver:Landroid/database/ContentObserver;
17187 Landroid/database/ContentObserver$Transport;->mContentObserver:Landroid/database/ContentObserver;
73273 Landroid/view/accessibility/CaptioningManager;->mContentObserver:Landroid/database/ContentObserver;
81002 Landroid/widget/CursorTreeAdapter$MyCursorHelper;->mContentObserver:Landroid/widget/CursorTreeAdapt…