Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 88) sorted by relevance

1234

/packages/apps/Browser/src/com/android/browser/
DBookmarks.java102 ContentResolver cr, String url, String title) { in removeFromBookmarks() argument
106 cursor = cr.query(uri, in removeFromBookmarks()
121 cr.delete(uri, null, null); in removeFromBookmarks()
160 public static Cursor queryCombinedForUrl(ContentResolver cr, in queryCombinedForUrl() argument
162 if (cr == null || url == null) { in queryCombinedForUrl()
176 return cr.query(Combined.CONTENT_URI, projection, QUERY_BOOKMARKS_WHERE, selArgs, null); in queryCombinedForUrl()
200 /* package */ static void updateFavicon(final ContentResolver cr, in updateFavicon() argument
211 updateImages(cr, originalUrl, values); in updateFavicon()
212 updateImages(cr, url, values); in updateFavicon()
216 private void updateImages(final ContentResolver cr, in updateFavicon() argument
[all …]
DAccountsChangedReceiver.java55 ContentResolver cr = mContext.getContentResolver(); in run() local
56 Cursor c = cr.query(Accounts.CONTENT_URI, PROJECTION, in run()
62 delete(cr, name, type); in run()
65 cr.update(Accounts.CONTENT_URI, null, null, null); in run()
69 void delete(ContentResolver cr, String name, String type) { in delete() argument
77 cr.delete(uri, DELETE_SELECTION, new String[] { name, type }); in delete()
DDataController.java183 ContentResolver cr = mContext.getContentResolver(); in handleMessage() local
185 cr.delete(ContentUris.withAppendedId( in handleMessage()
216 ContentResolver cr = mContext.getContentResolver(); in doSaveThumbnail() local
220 cr.insert(Thumbnails.CONTENT_URI, values); in doSaveThumbnail()
224 ContentResolver cr = mContext.getContentResolver(); in doLoadThumbnail() local
228 c = cr.query(uri, new String[] {Thumbnails._ID, in doLoadThumbnail()
244 ContentResolver cr = mContext.getContentResolver(); in doUpdateVisitedHistory() local
247 c = cr.query(History.CONTENT_URI, new String[] { History._ID, History.VISITS }, in doUpdateVisitedHistory()
253 cr.update(ContentUris.withAppendedId(History.CONTENT_URI, c.getLong(0)), in doUpdateVisitedHistory()
256 android.provider.Browser.truncateHistory(cr); in doUpdateVisitedHistory()
[all …]
DDownloadTouchIcon.java61 public DownloadTouchIcon(Tab tab, Context ctx, ContentResolver cr, WebView view) { in DownloadTouchIcon() argument
64 mContentResolver = cr; in DownloadTouchIcon()
78 public DownloadTouchIcon(Context ctx, ContentResolver cr, String url) { in DownloadTouchIcon() argument
81 mContentResolver = cr; in DownloadTouchIcon()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java203 public static Uri addImage(ContentResolver cr, String title, long dateTaken, in addImage() argument
249 return cr.insert(STORAGE_URI, values); in addImage()
283 public static IImageList makeImageList(ContentResolver cr, in makeImageList() argument
292 if (isEmptyImageList || cr == null) { in makeImageList()
297 return new SingleImageList(cr, singleImageUri); in makeImageList()
308 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId)); in makeImageList()
311 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId)); in makeImageList()
316 l.add(new ImageList(cr, in makeImageList()
321 cr, DrmStore.Images.CONTENT_URI, sort, bucketId)); in makeImageList()
347 public static IImageList makeImageList(ContentResolver cr, Uri uri, in makeImageList() argument
[all …]
DBitmapManager.java113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { in cancelThreadDecoding() argument
128 Images.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
129 Video.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
138 public Bitmap getThumbnail(ContentResolver cr, long origId, int kind, in getThumbnail() argument
153 return Video.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
DUtil.java276 Uri uri, ContentResolver cr, boolean useNative) { in makeBitmap() argument
279 input = cr.openFileDescriptor(uri, "r"); in makeBitmap()
284 return makeBitmap(minSideLength, maxNumOfPixels, uri, cr, input, in makeBitmap()
304 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, in makeBitmap() argument
307 if (pfd == null) pfd = makeInputStream(uri, cr); in makeBitmap()
334 Uri uri, ContentResolver cr) { in makeInputStream() argument
336 return cr.openFileDescriptor(uri, "r"); in makeInputStream()
/packages/apps/Browser/tests/src/com/android/browser/tests/
DBookmarksTests.java41 ContentResolver cr = getMockContentResolver(); in testQueryCombinedForUrl() local
47 c = Bookmarks.queryCombinedForUrl(cr, null, url); in testQueryCombinedForUrl()
55 c = Bookmarks.queryCombinedForUrl(cr, null, url); in testQueryCombinedForUrl()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DContactsSyncAdapterService.java105 ContentResolver cr = context.getContentResolver(); in performSync() local
114 boolean changed = hasDirtyRows(cr, uri, RawContacts.DIRTY); in performSync()
121 changed = hasDirtyRows(cr, uri, Groups.DIRTY); in performSync()
131 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, ID_PROJECTION, in performSync()
137 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_PROJECTION, in performSync()
DEmailSyncAlarmReceiver.java65 ContentResolver cr = context.getContentResolver(); in handleReceive() local
73 Cursor c = cr.query(Message.DELETED_CONTENT_URI, MAILBOX_DATA_PROJECTION, selector, in handleReceive()
90 c = cr.query(Message.UPDATED_CONTENT_URI, MAILBOX_DATA_PROJECTION, selector, in handleReceive()
DCalendarSyncAdapterService.java100 ContentResolver cr = context.getContentResolver(); in performSync() local
103 Cursor c = cr.query(Events.CONTENT_URI, in performSync()
119 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, in performSync()
126 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_SYNC_KEY_PROJECTION, in performSync()
DEmailSyncAdapterService.java92 ContentResolver cr = context.getContentResolver(); in performSync() local
97 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, in performSync()
104 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_PROJECTION, in performSync()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarReceiver.java53 final ContentResolver cr = context.getContentResolver(); in onReceive() local
59 cr.update(CalendarAlarmManager.SCHEDULE_ALARM_URI, null /* values */, in onReceive()
62 removeScheduledAlarms(cr); in onReceive()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java273 public static long queryForContactId(ContentResolver cr, long rawContactId) { in queryForContactId() argument
277 contactIdCursor = cr.query(RawContacts.CONTENT_URI, in queryForContactId()
291 public static String querySuperPrimaryPhone(ContentResolver cr, long contactId) { in querySuperPrimaryPhone() argument
298 c = cr.query(dataUri, in querySuperPrimaryPhone()
315 public static long queryForRawContactId(ContentResolver cr, long contactId) { in queryForRawContactId() argument
319 rawContactIdCursor = cr.query(RawContacts.CONTENT_URI, in queryForRawContactId()
334 public static ArrayList<Long> queryForAllRawContactIds(ContentResolver cr, long contactId) { in queryForAllRawContactIds() argument
338 rawContactIdCursor = cr.query(RawContacts.CONTENT_URI, in queryForAllRawContactIds()
/packages/apps/Mms/src/com/android/mms/model/
DAudioModel.java60 ContentResolver cr = mContext.getContentResolver(); in initModelFromUri() local
61 Cursor c = SqliteWrapper.query(mContext, cr, uri, null, null, null, null); in initModelFromUri()
152 ContentRestriction cr = ContentRestrictionFactory.getContentRestriction(); in checkContentRestriction() local
153 cr.checkAudioContentType(mContentType); in checkContentRestriction()
DVideoModel.java99 ContentResolver cr = mContext.getContentResolver(); in initFromContentUri() local
100 Cursor c = SqliteWrapper.query(mContext, cr, uri, null, null, null, null); in initFromContentUri()
191 ContentRestriction cr = ContentRestrictionFactory.getContentRestriction(); in checkContentRestriction() local
192 cr.checkVideoContentType(mContentType); in checkContentRestriction()
/packages/apps/Launcher2/src/com/android/launcher2/
DUninstallShortcutReceiver.java102 final ContentResolver cr = context.getContentResolver(); in removeShortcut() local
103 Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, in removeShortcut()
118 cr.delete(uri, null, null); in removeShortcut()
133 cr.notifyChange(LauncherSettings.Favorites.CONTENT_URI, null); in removeShortcut()
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java109 ContentResolver cr = mMockContext.getContentResolver(); in testBackupAndRestore() local
110 cr.delete(Account.CONTENT_URI, null, null); in testBackupAndRestore()
111 cr.delete(HostAuth.CONTENT_URI, null, null); in testBackupAndRestore()
127 Cursor c = cr.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, "_id ASC"); in testBackupAndRestore()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiApEnabler.java112 final ContentResolver cr = mContext.getContentResolver(); in setSoftapEnabled() local
120 Settings.Secure.putInt(cr, Settings.Secure.WIFI_SAVED_STATE, 1); in setSoftapEnabled()
136 wifiSavedState = Settings.Secure.getInt(cr, Settings.Secure.WIFI_SAVED_STATE); in setSoftapEnabled()
142 Settings.Secure.putInt(cr, Settings.Secure.WIFI_SAVED_STATE, 0); in setSoftapEnabled()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider.java181 public static String getClientId(ContentResolver cr) { in getClientId() argument
188 searchClientIdCursor = cr.query(Uri.parse("content://com.google.settings/partner"), in getClientId()
193 legacyClientIdCursor = cr.query(Uri.parse("content://com.google.settings/partner"), in getClientId()
930 ContentResolver cr = getContext().getContentResolver(); in delete() local
934 Cursor cursor = cr.query(Browser.BOOKMARKS_URI, in delete()
947 cr.notifyChange(url, null); in delete()
974 ContentResolver cr = getContext().getContentResolver(); in update() local
992 Cursor cursor = cr.query(Browser.BOOKMARKS_URI, in update()
1009 cr.notifyChange(url, null); in update()
1034 public static Cursor getBookmarksSuggestions(ContentResolver cr, String constraint) { in getBookmarksSuggestions() argument
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
DTestSyncAdapter.java54 ContentResolver cr = mContext.getContentResolver(); in onPerformSync() local
58 final int count = cr.update(RawContacts.CONTENT_URI, values, in onPerformSync()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleSetAlarm.java93 ContentResolver cr = getContentResolver(); in onCreate() local
94 Uri result = cr.insert(Alarm.Columns.CONTENT_URI, values); in onCreate()
97 c = cr.query(result, Alarm.Columns.ALARM_QUERY_COLUMNS, null, in onCreate()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DLocalDataTest.java391 MockContentResolver cr = new MockContentResolver(); in newGalleryContext() local
392 ContentProvider cp = new DbContentProvider(db, cr); in newGalleryContext()
393 cr.addProvider("media", cp); in newGalleryContext()
394 return new GalleryAppMock(null, cr, mainLooper); in newGalleryContext()
403 DbContentProvider(SQLiteDatabase db, ContentResolver cr) { in DbContentProvider() argument
405 mContentResolver = cr; in DbContentProvider()
/packages/apps/Mms/src/com/android/mms/data/
DRecipientIdCache.java193 final ContentResolver cr = mContext.getContentResolver(); in updateCanonicalAddressInDb() local
199 cr.update(uri, values, buf.toString(), null); in updateCanonicalAddressInDb()
270 final ContentResolver cr = context.getContentResolver(); in insertCanonicalAddressInDb() local
276 cr.insert(sAllCanonical, values); in insertCanonicalAddressInDb()
/packages/apps/Gallery/src/com/android/camera/gallery/
DDrmImageList.java60 protected DrmImage(BaseImageList container, ContentResolver cr, in DrmImage() argument
64 super(container, cr, id, index, uri, dataPath, in DrmImage()

1234