Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageResolverTest.java46 NotificationInlineImageResolver mResolver; field in NotificationInlineImageResolverTest
53 mResolver = spy(new NotificationInlineImageResolver(mContext, null)); in setup()
61 assertNotEquals("Starts different height", mResolver.mMaxImageHeight, 20); in refreshMaxImageSizes()
62 assertNotEquals("Starts different width", mResolver.mMaxImageWidth, 15); in refreshMaxImageSizes()
64 doReturn(20).when(mResolver).getMaxImageHeight(); in refreshMaxImageSizes()
65 doReturn(15).when(mResolver).getMaxImageWidth(); in refreshMaxImageSizes()
67 mResolver.updateMaxImageSizes(); in refreshMaxImageSizes()
69 assertEquals("Height matches new config", mResolver.mMaxImageHeight, 20); in refreshMaxImageSizes()
70 assertEquals("Width matches new config", mResolver.mMaxImageWidth, 15); in refreshMaxImageSizes()
/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/libs/WindowManager/Jetpack/src/androidx/window/common/
DSettingsDevicePostureProducer.java43 private final ContentResolver mResolver; field in SettingsDevicePostureProducer
48 mResolver = context.getContentResolver(); in SettingsDevicePostureProducer()
55 int posture = Settings.Global.getInt(mResolver, DEVICE_POSTURE, -1); in getData()
68 mResolver.registerContentObserver(mDevicePostureUri, false /* notifyForDescendants */, in registerObserversIfNeeded()
81 mResolver.unregisterContentObserver(mObserver); in unregisterObserversIfNeeded()
DSettingsDisplayFeatureProducer.java50 private final ContentResolver mResolver; field in SettingsDisplayFeatureProducer
55 mResolver = context.getContentResolver(); in SettingsDisplayFeatureProducer()
62 String displayFeaturesString = Settings.Global.getString(mResolver, DISPLAY_FEATURES); in getData()
97 mResolver.registerContentObserver(mDisplayFeaturesUri, false /* notifyForDescendants */, in registerObserversIfNeeded()
110 mResolver.unregisterContentObserver(mObserver); in unregisterObserversIfNeeded()
/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/core/tests/coretests/src/android/content/
DContentResolverTest.java51 private ContentResolver mResolver; field in ContentResolverTest
60 mResolver = InstrumentationRegistry.getInstrumentation().getTargetContext() in setUp()
63 mClient = new ContentProviderClient(mResolver, mProvider, false); in setUp()
205 String type = mResolver.getType(Uri.parse("content://android.content.FakeProviderLocal")); in testGetType_localProvider()
213 String type = mResolver.getType(Uri.parse("content://android.content.FakeProviderRemote")); in testGetType_remoteProvider()
222 String type = mResolver.getType(Uri.parse("content://android.content.SlowProvider")); in testGetType_slowProvider()
233 String type = mResolver.getType(Uri.parse("content://android.content.NonexistentProvider")); in testGetType_unknownProvider()
242 mResolver.getType(Uri.parse("content://android.content.FakeProviderRemote/error")); in testGetType_providerException()
248 Uri canonical = mResolver.canonicalize( in testCanonicalize()
257 mResolver.canonicalize( in testCanonicalize_providerException()
[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/packages/SystemUI/src/com/android/systemui/screenshot/
DImageExporter.java83 private final ContentResolver mResolver; field in ImageExporter
89 mResolver = resolver; in ImageExporter()
160 final Task task = new Task(mResolver, requestId, bitmap, captureTime, mCompressFormat,
188 mResolver.delete(uri, null);
224 private final ContentResolver mResolver;
235 mResolver = resolver;
256 uri = createEntry(mResolver, mFormat, mCaptureTime, mFileName);
259 writeImage(mResolver, mBitmap, mFormat, mQuality, uri);
264 writeExif(mResolver, uri, mRequestId, width, height, mCaptureTime);
268 publishEntry(mResolver, uri);
[all …]
DImageLoader.java39 private final ContentResolver mResolver; field in ImageLoader
59 mResolver = resolver; in ImageLoader()
71 try (InputStream in = mResolver.openInputStream(uri)) { in load()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastConstants.java74 private ContentResolver mResolver; field in BroadcastConstants
99 mResolver = resolver; in startObserving()
102 mResolver.registerContentObserver(Settings.Global.getUriFor(mSettingsKey), in startObserving()
111 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateConstants()
DActivityManagerConstants.java523 private ContentResolver mResolver; field in ActivityManagerConstants
798 mResolver = resolver; in start()
799 mResolver.registerContentObserver(ACTIVITY_MANAGER_CONSTANTS_URI, false, this); in start()
800 mResolver.registerContentObserver(ACTIVITY_STARTS_LOGGING_ENABLED_URI, false, this); in start()
801 mResolver.registerContentObserver(FOREGROUND_SERVICE_STARTS_LOGGING_ENABLED_URI, in start()
804 mResolver.registerContentObserver(ENABLE_AUTOMATIC_SYSTEM_SERVER_HEAP_DUMPS_URI, in start()
853 final String setting = Settings.Global.getString(mResolver, in updateConstants()
956 mFlagActivityStartsLoggingEnabled = Settings.Global.getInt(mResolver, in updateActivityStartsLoggingEnabled()
968 mFlagForegroundServiceStartsLoggingEnabled = Settings.Global.getInt(mResolver, in updateForegroundServiceStartsLoggingEnabled()
1137 final boolean enabled = Settings.Global.getInt(mResolver, in updateEnableAutomaticSystemServerHeapDumps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java310 private final ContentResolver mResolver; field in ZenModeControllerImpl.SetupObserver
316 mResolver = mContext.getContentResolver(); in SetupObserver()
320 return Secure.getIntForUser(mResolver, Secure.USER_SETUP_COMPLETE, 0, mUserId) != 0; in isUserSetup()
324 return Global.getInt(mResolver, Global.DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
329 mResolver.unregisterContentObserver(this); in register()
331 mResolver.registerContentObserver( in register()
333 mResolver.registerContentObserver( in register()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationManagerTest.java80 private MockContentResolver mResolver; field in WindowMagnificationManagerTest
88 mResolver = new MockContentResolver(); in setUp()
93 when(mContext.getContentResolver()).thenReturn(mResolver); in setUp()
101 mResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); in setUp()
102 Settings.Secure.putFloatForUser(mResolver, in setUp()
241 assertEquals(Settings.Secure.getFloatForUser(mResolver, in persistScale_setValue_expectedValueInProvider()
DWindowMagnificationPromptControllerTest.java69 private ContentResolver mResolver = mTestableContext.getContentResolver(); field in WindowMagnificationPromptControllerTest
114 assertThat(Settings.Secure.getInt(mResolver, ACCESSIBILITY_SHOW_WINDOW_MAGNIFICATION_PROMPT, in tapTurnOnAction_isShown_settingsValueIsFalseAndUnregisterReceiver()
170 Settings.Secure.putIntForUser(mResolver, ACCESSIBILITY_SHOW_WINDOW_MAGNIFICATION_PROMPT, in setWindowMagnificationPromptSettings()
/frameworks/base/core/java/android/app/
DDownloadManager.java1040 private final ContentResolver mResolver; field in DownloadManager
1050 mResolver = context.getContentResolver(); in DownloadManager()
1090 try (ContentProviderClient client = mResolver
1119 Uri downloadUri = mResolver.insert(Downloads.Impl.CONTENT_URI, values); in enqueue()
1138 return mResolver.delete(mBaseUri, getWhereClauseForIds(ids), getWhereArgsForIds(ids)); in markRowDeleted()
1165 Cursor underlyingCursor = query.runQuery(mResolver, projection, mBaseUri); in query()
1179 return mResolver.openFileDescriptor(getDownloadUri(id), "r"); in openDownloadedFile()
1269 mResolver.update(mBaseUri, values, getWhereClauseForIds(ids), getWhereArgsForIds(ids)); in restartDownload()
1283 mResolver.update(mBaseUri, values, getWhereClauseForIds(ids), getWhereArgsForIds(ids)); in forceDownload()
1355 MediaStore.scanFile(mResolver, before); in rename()
[all …]
/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/base/services/core/java/com/android/server/search/
DSearchManagerService.java184 private final ContentResolver mResolver; field in SearchManagerService.GlobalSearchProviderObserver
188 mResolver = resolver; in GlobalSearchProviderObserver()
189 mResolver.registerContentObserver( in GlobalSearchProviderObserver()
/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java129 private ContentResolver mResolver = null; field in DataEnabledSettings
194 mResolver = mPhone.getContext().getContentResolver(); in DataEnabledSettings()
436 return Settings.Global.getInt(mResolver, Settings.Global.DEVICE_PROVISIONED, 0) == 0; in isProvisioning()
449 final int prov_mobile_data = Settings.Global.getInt(mResolver, in isProvisioningDataEnabled()

12