Home
last modified time | relevance | path

Searched refs:resolver (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/core/java/android/database/sqlite/
DSqliteWrapper.java56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument
59 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query()
76 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument
79 return resolver.update(uri, values, where, selectionArgs); in update()
87 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument
90 return resolver.delete(uri, where, selectionArgs); in delete()
98 public static Uri insert(Context context, ContentResolver resolver, in insert() argument
101 return resolver.insert(uri, values); in insert()
/frameworks/opt/mms/src/java/com/google/android/mms/util/
DSqliteWrapper.java68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument
71 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query()
88 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument
91 return resolver.update(uri, values, where, selectionArgs); in update()
99 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument
102 return resolver.delete(uri, where, selectionArgs); in delete()
110 public static Uri insert(Context context, ContentResolver resolver, in insert() argument
113 return resolver.insert(uri, values); in insert()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java37 ContentResolver resolver = getContext().getContentResolver(); in testRead() local
40 InputStream in = resolver.openInputStream(uri); in testRead()
52 ContentResolver resolver = getContext().getContentResolver(); in testClose() local
57 InputStream in = resolver.openInputStream(uri); in testClose()
70 ContentResolver resolver = getContext().getContentResolver(); in testFile() local
73 InputStream in = resolver.openInputStream(uri); in testFile()
/frameworks/base/core/java/android/provider/
DCallLog.java280 final ContentResolver resolver = context.getContentResolver(); in addCall() local
323 cursor = resolver.query(Phone.CONTENT_URI, in addCall()
330 cursor = resolver.query( in addCall()
347 resolver.update(feedbackUri, new ContentValues(), null, null); in addCall()
355 Uri result = resolver.insert(CONTENT_URI, values); in addCall()
369 final ContentResolver resolver = context.getContentResolver(); in getLastOutgoingCall() local
372 c = resolver.query( in getLastOutgoingCall()
388 final ContentResolver resolver = context.getContentResolver(); in removeExpiredEntries() local
389 resolver.delete(CONTENT_URI, "_id IN " + in removeExpiredEntries()
DContacts.java448 public static void markAsContacted(ContentResolver resolver, long personId) { in markAsContacted() argument
455 resolver.update(uri, values, null, null); in markAsContacted()
463 public static long tryGetMyContactsGroupId(ContentResolver resolver) { in tryGetMyContactsGroupId() argument
464 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in tryGetMyContactsGroupId()
488 public static Uri addToMyContactsGroup(ContentResolver resolver, long personId) { in addToMyContactsGroup() argument
489 long groupId = tryGetMyContactsGroupId(resolver); in addToMyContactsGroup()
494 return addToGroup(resolver, personId, groupId); in addToMyContactsGroup()
508 public static Uri addToGroup(ContentResolver resolver, long personId, String groupName) { in addToGroup() argument
510 Cursor groupsCursor = resolver.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in addToGroup()
526 return addToGroup(resolver, personId, groupId); in addToGroup()
[all …]
DSettings.java751 protected static boolean putString(ContentResolver resolver, Uri uri, in putString() argument
758 resolver.insert(uri, values); in putString()
1032 public static String getString(ContentResolver resolver, String name) { in getString() argument
1033 return getStringForUser(resolver, name, UserHandle.myUserId()); in getString()
1037 public static String getStringForUser(ContentResolver resolver, String name, in getStringForUser() argument
1042 return Secure.getStringForUser(resolver, name, userHandle); in getStringForUser()
1047 return Global.getStringForUser(resolver, name, userHandle); in getStringForUser()
1049 return sNameValueCache.getStringForUser(resolver, name, userHandle); in getStringForUser()
1059 public static boolean putString(ContentResolver resolver, String name, String value) { in putString() argument
1060 return putStringForUser(resolver, name, value, UserHandle.myUserId()); in putString()
[all …]
DApplications.java76 public static Cursor search(ContentResolver resolver, String query) { in search() argument
78 return resolver.query(searchUri, null, null, null, null); in search()
DUserDictionary.java160 final ContentResolver resolver = context.getContentResolver(); in addWord() local
178 Uri result = resolver.insert(CONTENT_URI, values); in addWord()
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/
DSymbolResolverInterface.h27 SymbolResolverInterface *resolver = in LookupFunction() local
29 return ((resolver != NULL) ? resolver->getAddress(pName) : NULL); in LookupFunction()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java100 public static BitmapResult createLocalBitmap(ContentResolver resolver, Uri uri, int maxSize) { in createLocalBitmap() argument
106 final Point bounds = getImageBounds(resolver, uri); in createLocalBitmap()
107 inputStream = openInputStream(resolver, uri); in createLocalBitmap()
226 private static Point getImageBounds(ContentResolver resolver, Uri uri) in getImageBounds() argument
233 inputStream = openInputStream(resolver, uri); in getImageBounds()
250 private static InputStream openInputStream(ContentResolver resolver, Uri uri) throws in openInputStream() argument
259 return resolver.openInputStream(uri); in openInputStream()
270 return resolver.openInputStream(uri); in openInputStream()
/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java101 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql() local
107 resolver, targetContextWrapper); in newResolverWithContentProviderFromSql()
112 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
114 return resolver; in newResolverWithContentProviderFromSql()
DProviderTestCase2.java213 MockContentResolver resolver = new MockContentResolver(); in newResolverWithContentProviderFromSql() local
218 Context context = new IsolatedContext(resolver, targetContextWrapper); in newResolverWithContentProviderFromSql()
223 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
225 return resolver; in newResolverWithContentProviderFromSql()
DIsolatedContext.java59 ContentResolver resolver, Context targetContext) { in IsolatedContext() argument
61 mResolver = resolver; in IsolatedContext()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java67 public CustomMockContext(ContentResolver resolver) { in CustomMockContext() argument
68 mResolver = resolver; in CustomMockContext()
327 final ContentResolver resolver, in mockGetEntityIteratorMethod() argument
330 if (ExportTestResolver.class.equals(resolver.getClass())) { in mockGetEntityIteratorMethod()
331 return ((ExportTestResolver)resolver).getProvider().queryEntities( in mockGetEntityIteratorMethod()
347 final ContentResolver resolver = context.getContentResolver(); in verifyForExportTest() local
350 final Cursor cursor = resolver.query(CONTACTS_TEST_CONTENT_URI, null, null, null, null); in verifyForExportTest()
/frameworks/opt/telephony/src/java/android/provider/
DTelephony.java216 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument
219 return addMessageToUri(resolver, uri, address, body, subject, in addMessageToUri()
237 public static Uri addMessageToUri(ContentResolver resolver, in addMessageToUri() argument
255 return resolver.insert(uri, values); in addMessageToUri()
341 public static Uri addMessage(ContentResolver resolver, in addMessage() argument
344 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
374 public static Uri addMessage(ContentResolver resolver, in addMessage() argument
376 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
406 public static Uri addMessage(ContentResolver resolver, in addMessage() argument
408 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
[all …]
/frameworks/base/core/java/android/content/
DAsyncQueryHandler.java67 final ContentResolver resolver = mResolver.get(); in handleMessage() local
68 if (resolver == null) return; in handleMessage()
79 cursor = resolver.query(args.uri, args.projection, in handleMessage()
96 args.result = resolver.insert(args.uri, args.values); in handleMessage()
100 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage()
105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); in handleMessage()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DEnableAccessibilityController.java250 ContentResolver resolver = mContext.getContentResolver(); in enableAccessibility() local
252 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
256 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
261 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED, in enableAccessibility()
265 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION, in enableAccessibility()
268 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_ENABLED, in enableAccessibility()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java55 final ContentResolver resolver = context.getContentResolver(); in getInstance() local
63 resolver, Settings.Global.NTP_SERVER); in getInstance()
65 resolver, Settings.Global.NTP_TIMEOUT, defaultTimeout); in getInstance()
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java290 private void updatePrefs(ContentResolver resolver) { in updatePrefs() argument
291 boolean cap = System.getInt(resolver, System.TEXT_AUTO_CAPS, 1) > 0; in updatePrefs()
292 boolean text = System.getInt(resolver, System.TEXT_AUTO_REPLACE, 1) > 0; in updatePrefs()
293 boolean period = System.getInt(resolver, System.TEXT_AUTO_PUNCTUATE, 1) > 0; in updatePrefs()
294 boolean pw = System.getInt(resolver, System.TEXT_SHOW_PASSWORD, 1) > 0; in updatePrefs()
/frameworks/base/core/java/android/widget/
DTextClock.java488 final ContentResolver resolver = getContext().getContentResolver(); in registerObserver() local
489 resolver.registerContentObserver(Settings.System.CONTENT_URI, true, mFormatChangeObserver); in registerObserver()
497 final ContentResolver resolver = getContext().getContentResolver(); in unregisterObserver() local
498 resolver.unregisterContentObserver(mFormatChangeObserver); in unregisterObserver()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryCommitter.java49 public VCardEntryCommitter(ContentResolver resolver) { in VCardEntryCommitter() argument
50 mContentResolver = resolver; in VCardEntryCommitter()
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoader.java52 final ContentResolver resolver = context.getContentResolver(); in loadInBackground() local
54 result = ImageUtils.createLocalBitmap(resolver, Uri.parse(mPhotoUri), in loadInBackground()
/frameworks/base/services/java/com/android/server/power/
DPowerManagerService.java478 final ContentResolver resolver = mContext.getContentResolver(); in systemReady() local
479 resolver.registerContentObserver(Settings.Secure.getUriFor( in systemReady()
482 resolver.registerContentObserver(Settings.Secure.getUriFor( in systemReady()
485 resolver.registerContentObserver(Settings.Secure.getUriFor( in systemReady()
488 resolver.registerContentObserver(Settings.System.getUriFor( in systemReady()
491 resolver.registerContentObserver(Settings.Global.getUriFor( in systemReady()
494 resolver.registerContentObserver(Settings.System.getUriFor( in systemReady()
497 resolver.registerContentObserver(Settings.System.getUriFor( in systemReady()
525 final ContentResolver resolver = mContext.getContentResolver(); in updateSettingsLocked() local
527 mDreamsEnabledSetting = (Settings.Secure.getIntForUser(resolver, in updateSettingsLocked()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetadataRetriever.java161 ContentResolver resolver = context.getContentResolver(); in setDataSource() local
163 fd = resolver.openAssetFileDescriptor(uri, "r"); in setDataSource()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java245 ContentResolver resolver = context.getContentResolver(); in SettingsObserverHandler() local
247 resolver.registerContentObserver(Settings.Global.getUriFor( in SettingsObserverHandler()
258 ContentResolver resolver = context.getContentResolver(); in SmsUsageMonitor() local
260 mMaxAllowed = Settings.Global.getInt(resolver, in SmsUsageMonitor()
264 mCheckPeriod = Settings.Global.getInt(resolver, in SmsUsageMonitor()

123