Home
last modified time | relevance | path

Searched refs:mResolver (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageCache.java35 private NotificationInlineImageResolver mResolver; field in NotificationInlineImageCache
44 mResolver = resolver; in setImageResolver()
54 PreloadImageTask newTask = new PreloadImageTask(mResolver); in preload()
72 Set<Uri> wantedSet = mResolver.getWantedUriSet(); in purge()
77 private final NotificationInlineImageResolver mResolver; field in NotificationInlineImageCache.PreloadImageTask
80 mResolver = resolver; in PreloadImageTask()
89 drawable = mResolver.resolveImage(target); in doInBackground()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DContentValuesVerifierElem.java27 private final ImportTestResolver mResolver; field in ContentValuesVerifierElem
31 mResolver = new ImportTestResolver(androidTestCase); in ContentValuesVerifierElem()
32 mHandler = new VCardEntryCommitter(mResolver); in ContentValuesVerifierElem()
38 mResolver.addExpectedContentValues(contentValues); in addExpected()
43 mResolver.verify(); in verifyResolver()
/frameworks/base/core/java/android/util/
DKeyValueSettingObserver.java45 private final ContentResolver mResolver; field in KeyValueSettingObserver
51 mResolver = resolver; in KeyValueSettingObserver()
57 mResolver.registerContentObserver(mSettingUri, false, mObserver); in start()
64 mResolver.unregisterContentObserver(mObserver); in stop()
75 String setting = getSettingValue(mResolver); in setParserValue()
/frameworks/base/core/tests/coretests/src/android/provider/
DDocumentsProviderTest.java42 private ContentResolver mResolver; field in DocumentsProviderTest
52 mResolver = getMockContentResolver(); in setUp()
62 mResolver.acquireUnstableContentProviderClient(docUri)) { in testFindDocumentPath_docUri()
77 final Path actual = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri()
89 DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_throwsOnNonChildDocument()
101 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesNonNullRootId()
114 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DDocumentLoaderTest.java38 private TestContentResolver mResolver; field in DocumentLoaderTest
59 mResolver = new TestContentResolver(); in setUp()
85 mResolver.waitForNotification(uri, 1); in testBasic()
96 mResolver.waitForNotification(uri, 2); in testBasic()
104 assertEquals(2, mResolver.getChangeCount(uri)); in testBasic()
161 assertEquals(0, mResolver.getChangeCount(uri)); in testCancelTask()
168 assertEquals(0, mResolver.getChangeCount(uri)); in testCancelTask()
175 mResolver.waitForNotification(uri, 1); in testCancelTask()
184 mResolver, in setUpLoader()
DMtpDocumentsProviderTest.java48 private TestContentResolver mResolver; field in MtpDocumentsProviderTest
56 mResolver = new TestContentResolver(); in setUp()
86 mResolver.waitForNotification(ROOTS_URI, 1); in testOpenAndCloseDevice()
89 mResolver.waitForNotification(ROOTS_URI, 2); in testOpenAndCloseDevice()
92 mResolver.waitForNotification(ROOTS_URI, 3); in testOpenAndCloseDevice()
123 mResolver.waitForNotification(ROOTS_URI, 1); in testOpenAndCloseErrorDevice()
125 mResolver.waitForNotification(ROOTS_URI, 2); in testOpenAndCloseErrorDevice()
148 mResolver.waitForNotification(ROOTS_URI, 1); in testOpenDeviceOnDemand()
210 mResolver.waitForNotification(ROOTS_URI, 1); in testQueryRoots()
228 mResolver.waitForNotification(ROOTS_URI, 2); in testQueryRoots()
[all …]
/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java42 private MockContentResolver mResolver; field in ProviderTestCase
62 mResolver = new MockContentResolver(); in setUp()
68 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); in setUp()
72 mResolver.addProvider(mProviderAuthority, getProvider()); in setUp()
88 return mResolver; in getMockContentResolver()
DProviderTestCase2.java77 private MockContentResolver mResolver; field in ProviderTestCase2
134 mResolver = new MockContentResolver(); in setUp()
142 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); in setUp()
144 mResolver.addProvider(mProviderAuthority, getProvider()); in setUp()
179 return mResolver; in getMockContentResolver()
DIsolatedContext.java47 private ContentResolver mResolver; field in IsolatedContext
55 mResolver = resolver; in IsolatedContext()
70 return mResolver; in getContentResolver()
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java65 private WeakReference<ContentResolver> mResolver; field in TextKeyListener
251 if (mResolver != null) { in release()
252 final ContentResolver contentResolver = mResolver.get(); in release()
255 mResolver.clear(); in release()
258 mResolver = null; in release()
265 mResolver = new WeakReference<ContentResolver>(contentResolver); in initPrefs()
282 if (mResolver != null) { in onChange()
283 final ContentResolver contentResolver = mResolver.get(); in onChange()
309 if (!mPrefsInited || mResolver.get() == null) { in getPrefs()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DOneTimeSettingsListener.java39 private final ContentResolver mResolver; field in OneTimeSettingsListener
47 mResolver = context.getContentResolver(); in OneTimeSettingsListener()
57 mResolver.registerContentObserver(uri, false, this); in OneTimeSettingsListener()
62 mResolver.unregisterContentObserver(this); in onChange()
/frameworks/base/core/java/android/net/util/
DMultinetworkPolicyTracker.java69 private final ContentResolver mResolver; field in MultinetworkPolicyTracker
88 mResolver = mContext.getContentResolver(); in MultinetworkPolicyTracker()
112 mResolver.registerContentObserver(uri, false, mSettingObserver); in start()
124 mResolver.unregisterContentObserver(mSettingObserver); in shutdown()
158 return Settings.Global.getString(mResolver, NETWORK_AVOID_BAD_WIFI); in getAvoidBadWifiSetting()
192 String setting = Settings.Global.getString(mResolver, NETWORK_METERED_MULTIPATH_PREFERENCE); in updateMeteredMultipathPreference()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastConstants.java71 private ContentResolver mResolver; field in BroadcastConstants
96 mResolver = resolver; in startObserving()
99 mResolver.registerContentObserver(Settings.Global.getUriFor(mSettingsKey), in startObserving()
108 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateConstants()
DActivityManagerConstants.java258 private ContentResolver mResolver; field in ActivityManagerConstants
340 mResolver = resolver; in start()
341 mResolver.registerContentObserver(ACTIVITY_MANAGER_CONSTANTS_URI, false, this); in start()
342 mResolver.registerContentObserver(ACTIVITY_STARTS_LOGGING_ENABLED_URI, false, this); in start()
344 mResolver.registerContentObserver(ENABLE_AUTOMATIC_SYSTEM_SERVER_HEAP_DUMPS_URI, in start()
385 final String setting = Settings.Global.getString(mResolver, in updateConstants()
464 mFlagActivityStartsLoggingEnabled = Settings.Global.getInt(mResolver, in updateActivityStartsLoggingEnabled()
484 final boolean enabled = Settings.Global.getInt(mResolver, in updateEnableAutomaticSystemServerHeapDumps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java308 private final ContentResolver mResolver; field in ZenModeControllerImpl.SetupObserver
314 mResolver = mContext.getContentResolver(); in SetupObserver()
318 return Secure.getIntForUser(mResolver, Secure.USER_SETUP_COMPLETE, 0, mUserId) != 0; in isUserSetup()
322 return Global.getInt(mResolver, Global.DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
327 mResolver.unregisterContentObserver(this); in register()
329 mResolver.registerContentObserver( in register()
331 mResolver.registerContentObserver( in register()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DRootScanner.java54 final ContentResolver mResolver; field in RootScanner
65 mResolver = resolver; in RootScanner()
75 mResolver.notifyChange(uri, null, false); in notifyChange()
DMtpDocumentsProvider.java90 private ContentResolver mResolver; field in MtpDocumentsProvider
113 mResolver = getContext().getContentResolver(); in onCreate()
116 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreate()
123 final int bootCount = Settings.Global.getInt(mResolver, Settings.Global.BOOT_COUNT, -1); in onCreate()
128 mResolver.getOutgoingPersistedUriPermissions(); in onCreate()
157 mResolver = resolver; in onCreateForTesting()
160 mRootScanner = new RootScanner(mResolver, mMtpManager, mDatabase); in onCreateForTesting()
175 mResolver, DocumentsContract.buildRootsUri(MtpDocumentsProvider.AUTHORITY)); in queryRoots()
588 new DeviceToolkit(mMtpManager, mResolver, mDatabase, device); in openDevice()
667 mResolver.notifyChange( in notifyChildDocumentsChange()
DDocumentLoader.java52 private final ContentResolver mResolver; field in DocumentLoader
61 mResolver = resolver; in DocumentLoader()
97 return task.createCursor(mResolver, columnNames); in queryChildDocuments()
204 task.notify(mResolver); in run()
/frameworks/base/core/tests/coretests/src/android/content/
DContentResolverTest.java47 private ContentResolver mResolver; field in ContentResolverTest
56 mResolver = InstrumentationRegistry.getInstrumentation().getTargetContext() in setUp()
59 mClient = new ContentProviderClient(mResolver, mProvider, false); in setUp()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java229 protected final ContentResolver mResolver; field in ImageUtils.BaseInputStreamFactory
233 mResolver = resolver; in BaseInputStreamFactory()
239 return mResolver.openInputStream(mUri); in createInputStream()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java117 private ContentResolver mResolver = null; field in DataEnabledSettings
181 mResolver = mPhone.getContext().getContentResolver(); in DataEnabledSettings()
360 return Settings.Global.getInt(mResolver, Settings.Global.DEVICE_PROVISIONED, 0) == 0; in isProvisioning()
373 final int prov_mobile_data = Settings.Global.getInt(mResolver, in isProvisioningDataEnabled()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceManager.java118 private ContentResolver mResolver; field in GeofenceManager
128 mResolver = mContext.getContentResolver(); in GeofenceManager()
130 mResolver.registerContentObserver( in GeofenceManager()
148 mEffectiveMinIntervalMs = Settings.Global.getLong(mResolver, in updateMinInterval()
/frameworks/base/core/java/android/app/
DDownloadManager.java1033 private final ContentResolver mResolver; field in DownloadManager
1043 mResolver = context.getContentResolver(); in DownloadManager()
1081 Uri downloadUri = mResolver.insert(Downloads.Impl.CONTENT_URI, values);
1100 return mResolver.delete(mBaseUri, getWhereClauseForIds(ids), getWhereArgsForIds(ids));
1127 Cursor underlyingCursor = query.runQuery(mResolver, projection, mBaseUri);
1141 return mResolver.openFileDescriptor(getDownloadUri(id), "r");
1231 mResolver.update(mBaseUri, values, getWhereClauseForIds(ids), getWhereArgsForIds(ids));
1245 mResolver.update(mBaseUri, values, getWhereClauseForIds(ids), getWhereArgsForIds(ids));
1326 return mResolver.update(
1530 Uri downloadUri = mResolver.insert(Downloads.Impl.CONTENT_URI, values);
/frameworks/base/core/java/android/content/
DAsyncQueryHandler.java42 /* package */ final WeakReference<ContentResolver> mResolver; field in AsyncQueryHandler
67 final ContentResolver resolver = mResolver.get(); in handleMessage()
126 mResolver = new WeakReference<ContentResolver>(cr); in AsyncQueryHandler()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java73 private final ContentResolver mResolver; field in WatchlistLoggingHandler
96 mResolver = mContext.getContentResolver(); in WatchlistLoggingHandler()
244 final long lastReportTime = Settings.Global.getLong(mResolver, in shouldReportNetworkWatchlist()
264 Settings.Global.putLong(mResolver, in tryAggregateRecords()

123