Home
last modified time | relevance | path

Searched refs:ContentObserver (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/settings/
DFakeGlobalSettings.java22 import android.database.ContentObserver;
32 private final Map<String, List<ContentObserver>> mContentObserversAllUsers = new HashMap<>();
48 ContentObserver settingsObserver) { in registerContentObserverSync()
49 List<ContentObserver> observers; in registerContentObserverSync()
56 public void unregisterContentObserverSync(ContentObserver settingsObserver) { in unregisterContentObserverSync()
57 for (Map.Entry<String, List<ContentObserver>> entry : in unregisterContentObserverSync()
85 for (ContentObserver observer : in putString()
DFakeSettings.java21 import android.database.ContentObserver;
37 private final Map<SettingsKey, List<ContentObserver>> mContentObservers =
39 private final Map<String, List<ContentObserver>> mContentObserversAllUsers = new HashMap<>();
70 ContentObserver settingsObserver, int userHandle) { in registerContentObserverForUserSync()
71 List<ContentObserver> observers; in registerContentObserverForUserSync()
84 public void unregisterContentObserverSync(ContentObserver settingsObserver) { in unregisterContentObserverSync()
86 List<ContentObserver> observers = mContentObservers.get(key); in unregisterContentObserverSync()
90 List<ContentObserver> observers = mContentObserversAllUsers.get(key); in unregisterContentObserverSync()
141 for (ContentObserver observer : mContentObservers.getOrDefault(key, new ArrayList<>())) { in putStringForUser()
144 for (ContentObserver observer : in putStringForUser()
/frameworks/base/core/java/android/database/
DContentObservable.java27 public class ContentObservable extends Observable<ContentObserver> {
32 public void registerObserver(ContentObserver observer) { in registerObserver()
69 for (ContentObserver observer : mObservers) { in dispatchChange()
87 for (ContentObserver observer : mObservers) { in notifyChange()
DContentObserver.java41 public abstract class ContentObserver { class
65 public ContentObserver(Handler handler) { in ContentObserver() method in ContentObserver
77 public ContentObserver(@Nullable Executor executor, int unused) { in ContentObserver() method in ContentObserver
340 private ContentObserver mContentObserver;
342 public Transport(ContentObserver contentObserver) { in Transport()
355 ContentObserver contentObserver = mContentObserver; in onChangeEtc()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentResolver.java22 import android.database.ContentObserver;
85 ContentObserver observer) { in registerContentObserver()
94 ContentObserver observer, int userHandle) { in registerContentObserver()
102 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver()
110 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { in notifyChange()
/frameworks/base/services/flags/java/com/android/server/flags/
DSettingsProxy.java23 import android.database.ContentObserver;
299 default void registerContentObserver(String name, ContentObserver settingsObserver) { in registerContentObserver()
307 default void registerContentObserver(Uri uri, ContentObserver settingsObserver) { in registerContentObserver()
318 ContentObserver settingsObserver) { in registerContentObserver()
327 ContentObserver settingsObserver) { in registerContentObserver()
338 String name, ContentObserver settingsObserver, int userHandle) { in registerContentObserverForUser()
348 Uri uri, ContentObserver settingsObserver, int userHandle) { in registerContentObserverForUser()
360 String name, boolean notifyForDescendants, ContentObserver settingsObserver, in registerContentObserverForUser()
371 Uri uri, boolean notifyForDescendants, ContentObserver settingsObserver, in registerContentObserverForUser()
378 default void unregisterContentObserver(ContentObserver settingsObserver) { in unregisterContentObserver()
/frameworks/base/test-mock/src/android/test/mock/
DMockContentResolver.java25 import android.database.ContentObserver;
141 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer) { in notifyChange()
156 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer, in notifyChange()
166 public void notifyChange(@NonNull Uri uri, @Nullable ContentObserver observer, in notifyChange()
176 public void notifyChange(@NonNull Collection<Uri> uris, @Nullable ContentObserver observer, in notifyChange()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/
DFakeSecureSettings.java19 import android.database.ContentObserver;
32 private final Multimap<SettingsKey, ContentObserver> mContentObservers = HashMultimap.create();
38 for (ContentObserver observer : mContentObservers.get(settingsKey)) { in putStringForUser()
50 ContentObserver settingsObserver, int userHandle) { in registerContentObserver()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/
DFlagSettingsHelper.kt20 import android.database.ContentObserver
32 observer: ContentObserver in getStringFromSecure()
41 fun unregisterContentObserver(observer: ContentObserver) { in unregisterContentObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/
DSettingsProxy.kt19 import android.database.ContentObserver
56 fun registerContentObserverSync(name: String, settingsObserver: ContentObserver) { in getContentResolver()
61 fun registerContentObserverSync(uri: Uri, settingsObserver: ContentObserver) = in registerContentObserverSync()
72 settingsObserver: ContentObserver in registerContentObserverSync()
79 settingsObserver: ContentObserver in registerContentObserverSync()
88 fun unregisterContentObserverSync(settingsObserver: ContentObserver) { in unregisterContentObserverSync()
DSettingsProxyExt.kt21 import android.database.ContentObserver in <lambda>()
36 object : ContentObserver(null) { in <lambda>()
54 object : ContentObserver(null) { in <lambda>()
DUserSettingsProxy.kt19 import android.database.ContentObserver
65 override fun registerContentObserverSync(uri: Uri, settingsObserver: ContentObserver) { in registerContentObserverSync()
73 settingsObserver: ContentObserver in registerContentObserverSync()
85 settingsObserver: ContentObserver, in registerContentObserverForUserSync()
94 settingsObserver: ContentObserver, in registerContentObserverForUserSync()
108 settingsObserver: ContentObserver, in registerContentObserverForUserSync()
123 settingsObserver: ContentObserver, in registerContentObserverForUserSync()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessWearBedtimeModeClamper.java22 import android.database.ContentObserver;
37 private final ContentObserver mSettingsObserver;
50 mSettingsObserver = new ContentObserver(mHandler) { in BrightnessWearBedtimeModeClamper()
93 @NonNull ContentObserver observer) { in registerBedtimeModeObserver()
/frameworks/base/core/java/android/util/
DKeyValueSettingObserver.java20 import android.database.ContentObserver;
44 private final ContentObserver mObserver;
86 private class SettingObserver extends ContentObserver {
/frameworks/base/core/tests/coretests/BinderProxyCountingTestApp/src/com/android/frameworks/coretests/binderproxycountingtestapp/
DBpcTestAppCmdService.java24 import android.database.ContentObserver;
53 private ArrayList<ContentObserver> mCoList = new ArrayList();
61 final ContentObserver co = new ContentObserver(mHandler) {};
74 ContentObserver co;
/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
DSecureSettings.java19 import android.database.ContentObserver;
29 ContentObserver settingsObserver, int userHandle); in registerContentObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/
DDemoModeAvailabilityTracker.kt20 import android.database.ContentObserver
70 private val allowedObserver = object : ContentObserver(Handler(Looper.getMainLooper())) {
86 private val onObserver = object : ContentObserver(Handler(Looper.getMainLooper())) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuInfoRepository.java37 import android.database.ContentObserver;
99 final ContentObserver mMenuTargetFeaturesContentObserver =
100 new ContentObserver(mHandler) {
108 final ContentObserver mMenuSizeContentObserver =
109 new ContentObserver(mHandler) {
118 final ContentObserver mMenuFadeOutContentObserver =
119 new ContentObserver(mHandler) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationTypesUpdater.java19 import android.database.ContentObserver;
64 final ContentObserver settingsObserver = new ContentObserver(null /*handler*/) { in onStart()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DRawFoldingFeatureProducer.java22 import android.database.ContentObserver;
54 private final ContentObserver mObserver;
127 private final class SettingsObserver extends ContentObserver {
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DDeviceActivityMonitorImpl.java22 import android.database.ContentObserver;
54 ContentObserver airplaneModeObserver = new ContentObserver(handler) { in DeviceActivityMonitorImpl()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DOneFingerPanningSettingsProvider.java22 import android.database.ContentObserver;
42 ContentObserver mObserver;
59 mObserver = new ContentObserver(context.getMainThreadHandler()) { in OneFingerPanningSettingsProvider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DSecureSettingsContentObserver.java21 import android.database.ContentObserver;
50 final ContentObserver mContentObserver;
62 mContentObserver = new ContentObserver(new Handler(Looper.getMainLooper())) { in SecureSettingsContentObserver()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchControllerTest.java30 import android.database.ContentObserver;
180 ArgumentCaptor<ContentObserver> observerCaptor = in testChangeToDoubleLineClockSetsSmallClock()
181 ArgumentCaptor.forClass(ContentObserver.class); in testChangeToDoubleLineClockSetsSmallClock()
187 ContentObserver observer = observerCaptor.getValue(); in testChangeToDoubleLineClockSetsSmallClock()
246 ArgumentCaptor<ContentObserver> observerCaptor = in testChangeLockscreenWeatherEnabledSetsWeatherViewVisible()
247 ArgumentCaptor.forClass(ContentObserver.class); in testChangeLockscreenWeatherEnabledSetsWeatherViewVisible()
253 ContentObserver observer = observerCaptor.getValue(); in testChangeLockscreenWeatherEnabledSetsWeatherViewVisible()
/frameworks/base/core/java/android/content/
DContentQueryMap.java19 import android.database.ContentObserver;
45 private ContentObserver mContentObserver;
98 mContentObserver = new ContentObserver(mHandlerForUpdateNotifications) { in setKeepUpdated()

12345678910>>...12