Searched refs:cr (Results 1 - 25 of 97) sorted by relevance

1234

/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarReceiver.java38 ContentResolver cr = context.getContentResolver();
40 cr.update(CalendarProvider2.SCHEDULE_ALARM_URI, null /* values */, null /* where */,
49 cr.update(CalendarProvider2.SCHEDULE_ALARM_REMOVE_URI,
/packages/apps/Camera/src/com/android/camera/gallery/
H A DImage.java30 public Image(ContentResolver cr, argument
34 super(cr, id, uri, miniThumbMagic,
H A DBaseImage.java42 protected BaseImage(ContentResolver cr, argument
45 mContentResolver = cr;
H A DVideoObject.java38 * @param cr the content resolver
40 protected VideoObject(ContentResolver cr, argument
43 super(cr, id, uri, miniThumbMagic,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
H A DSettingsUtil.java80 * @param cr The content resolver to use
85 public static String getSettingsString(ContentResolver cr, String key, String defaultValue) { argument
86 String result = Settings.Secure.getString(cr, key);
93 * @param cr The content resolver to use
98 public static int getSettingsInt(ContentResolver cr, String key, int defaultValue) { argument
99 return Settings.Secure.getInt(cr, key, defaultValue);
105 * @param cr The content resolver to use
110 public static float getSettingsFloat(ContentResolver cr, String key, float defaultValue) { argument
111 return Settings.Secure.getFloat(cr, key, defaultValue);
/packages/apps/IM/src/com/android/im/app/
H A DDatabaseUtils.java44 public static Cursor queryAccountsForProvider(ContentResolver cr, argument
48 Cursor c = cr.query(Imps.Account.CONTENT_URI, projection, where.toString(), null, null);
140 * @param cr the resolver
147 public static long updateProviderDb(ContentResolver cr, argument
153 long providerId = Imps.Provider.getProviderIdForName(cr, providerName);
157 if (!isPluginVersionChanged(cr, providerId, pluginVersion)) {
162 updateProviderRow(cr, providerId, providerFullName, signUpUrl);
164 clearBrandingResourceMapCache(cr, providerId);
170 providerId = insertProviderRow(cr, providerName, providerFullName, signUpUrl);
177 saveProviderSettings(cr, providerI
185 clearBrandingResourceMapCache(ContentResolver cr, long providerId) argument
196 saveProviderSettings(ContentResolver cr, long providerId, Map<String, String> config) argument
213 insertProviderRow(ContentResolver cr, String providerName, String providerFullName, String signUpUrl) argument
227 updateProviderRow(ContentResolver cr, long providerId, String providerFullName, String signUpUrl) argument
245 isPluginVersionChanged(ContentResolver cr, long providerId, String newVersion) argument
[all...]
H A DImPluginHelper.java187 ContentResolver cr = mContext.getContentResolver();
190 Cursor c = cr.query(Imps.Provider.CONTENT_URI,
200 pluginChanged = isPluginChanged(cr, providerId, config);
212 cr.update(uri, values, null, null);
221 Uri result = cr.insert(Imps.Provider.CONTENT_URI, values);
233 cr.delete(ContentUris.withAppendedId(
248 cr.bulkInsert(Imps.ProviderSettings.CONTENT_URI, settingValues);
267 private boolean isPluginChanged(ContentResolver cr, long providerId, argument
269 String origVersion = Imps.ProviderSettings.getStringValue(cr, providerId,
/packages/apps/Browser/src/com/android/browser/
H A DOpenDownloadReceiver.java39 ContentResolver cr = context.getContentResolver();
43 cursor = cr.query(data,
79 if (deleteFile(cr, filename, mimetype)) {
80 cr.delete(data, null, null);
91 * @param cr ContentResolver used to delete the file.
96 private boolean deleteFile(ContentResolver cr, String filename, argument
108 return (uri != null && cr.delete(uri, MediaStore.MediaColumns.DATA
H A DBookmarks.java56 * @param cr The ContentResolver being used to add the bookmark to the db.
65 ContentResolver cr, String url, String name,
72 cursor = Browser.getVisitedLike(cr, url);
82 cr.update(Browser.BOOKMARKS_URI, map,
97 cr.update(Browser.BOOKMARKS_URI, map,
127 cr.insert(Browser.BOOKMARKS_URI, map);
151 * @param cr The ContentResolver being used to remove the bookmark.
155 ContentResolver cr, String url, String title) {
158 cursor = cr.query(
177 cr
64 addBookmark(Context context, ContentResolver cr, String url, String name, Bitmap thumbnail, boolean retainIcon) argument
154 removeFromBookmarks(Context context, ContentResolver cr, String url, String title) argument
[all...]
H A DDownloadTouchIcon.java48 public DownloadTouchIcon(Tab tab, ContentResolver cr, WebView view) { argument
50 mContentResolver = cr;
57 public DownloadTouchIcon(ContentResolver cr, String url) { argument
59 mContentResolver = cr;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUninstallShortcutReceiver.java45 final ContentResolver cr = context.getContentResolver();
46 Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
61 cr.delete(uri, null, null);
76 cr.notifyChange(LauncherSettings.Favorites.CONTENT_URI, null);
/packages/apps/Mms/src/com/android/mms/drm/
H A DDrmUtils.java45 ContentResolver cr = context.getContentResolver();
46 Uri uri = SqliteWrapper.insert(context, cr, DRM_TEMP_URI,
50 os = cr.openOutputStream(uri);
/packages/apps/Gallery/src/com/android/camera/
H A DImageManager.java203 public static Uri addImage(ContentResolver cr, String title, long dateTaken, argument
249 return cr.insert(STORAGE_URI, values);
283 public static IImageList makeImageList(ContentResolver cr, argument
292 if (isEmptyImageList || cr == null) {
297 return new SingleImageList(cr, singleImageUri);
308 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId));
311 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId));
316 l.add(new ImageList(cr,
321 cr, DrmStore.Images.CONTENT_URI, sort, bucketId));
347 public static IImageList makeImageList(ContentResolver cr, Ur argument
436 makeImageList(ContentResolver cr, DataLocation location, int inclusion, int sort, String bucketId) argument
447 makeSingleImageList(ContentResolver cr, Uri uri) argument
515 isMediaScannerScanning(ContentResolver cr) argument
[all...]
H A DBitmapManager.java113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { argument
128 Images.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId());
129 Video.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId());
138 public Bitmap getThumbnail(ContentResolver cr, long origId, int kind, argument
153 return Video.Thumbnails.getThumbnail(cr, origId, t.getId(),
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(),
/packages/apps/Camera/src/com/android/camera/
H A DBitmapManager.java100 public Bitmap getThumbnail(ContentResolver cr, long origId, int kind, argument
112 return Video.Thumbnails.getThumbnail(cr, origId, t.getId(),
115 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(),
H A DImageManager.java189 public static Uri addImage(ContentResolver cr, String title, long dateTaken, argument
239 return cr.insert(STORAGE_URI, values);
273 public static IImageList makeImageList(ContentResolver cr, argument
281 if (isEmptyImageList || cr == null) {
293 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId));
296 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId));
301 l.add(new ImageList(cr,
350 public static IImageList makeImageList(ContentResolver cr, argument
354 return makeImageList(cr, param);
408 public static boolean isMediaScannerScanning(ContentResolver cr) { argument
[all...]
/packages/apps/Email/src/com/android/exchange/
H A DEmailSyncAlarmReceiver.java64 ContentResolver cr = context.getContentResolver();
71 Cursor c = cr.query(Message.DELETED_CONTENT_URI, MAILBOX_DATA_PROJECTION, selector,
87 c = cr.query(Message.UPDATED_CONTENT_URI, MAILBOX_DATA_PROJECTION, selector,
H A DCalendarSyncAdapterService.java100 ContentResolver cr = context.getContentResolver();
103 Cursor c = cr.query(Events.CONTENT_URI,
119 cr.query(EmailContent.Account.CONTENT_URI,
126 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_SYNC_KEY_PROJECTION,
H A DContactsSyncAdapterService.java97 ContentResolver cr = context.getContentResolver();
104 Cursor c = cr.query(uri,
118 cr.query(com.android.email.provider.EmailContent.Account.CONTENT_URI, ID_PROJECTION,
124 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_PROJECTION,
/packages/apps/IM/src/com/android/im/service/
H A DImConnectionAdapter.java120 ContentResolver cr = mService.getContentResolver();
122 HashMap<String, String> cookie = querySessionCookie(cr);
129 clearSessionCookie(cr);
155 private HashMap<String, String> querySessionCookie(ContentResolver cr) { argument
156 Cursor c = cr.query(getSessionCookiesUri(), SESSION_COOKIE_PROJECTION, null, null, null);
260 ContentResolver cr = mService.getContentResolver();
261 Cursor c = cr.query(ContentUris.withAppendedId(Imps.Invitation.CONTENT_URI, id), null, null, null, null);
281 void saveSessionCookie(ContentResolver cr) { argument
296 cr.bulkInsert(getSessionCookiesUri(), valuesList);
299 void clearSessionCookie(ContentResolver cr) { argument
[all...]
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DImageManager.java125 public static void setImageSize(ContentResolver cr, Uri uri, long size) { argument
128 cr.update(uri, values, null, null);
138 public static Uri addImage(ContentResolver cr, String title, long dateAdded, argument
190 return cr.insert(STORAGE_URI, values);
227 public AddImageCancelable(Uri uri, ContentResolver cr, int orientation, Bitmap source, byte[] jpegData) { argument
232 mCr = cr;
276 public static Cancelable<Void> storeImage(Uri uri, ContentResolver cr, int orientation, Bitmap source, byte[] jpegData) { argument
277 return new AddImageCancelable(uri, cr, orientation, source, jpegData);
335 public static final boolean isMediaScannerScanning(final ContentResolver cr) { argument
337 final Cursor cursor = query(cr, MediaStor
[all...]
/packages/apps/Mms/src/com/android/mms/model/
H A DAudioModel.java68 ContentResolver cr = mContext.getContentResolver();
69 Cursor c = SqliteWrapper.query(mContext, cr, uri, null, null, null, null);
160 ContentRestriction cr = ContentRestrictionFactory.getContentRestriction();
161 cr.checkAudioContentType(mContentType);
H A DVideoModel.java65 ContentResolver cr = mContext.getContentResolver();
66 Cursor c = SqliteWrapper.query(mContext, cr, uri, null, null, null, null);
133 ContentRestriction cr = ContentRestrictionFactory.getContentRestriction();
134 cr.checkVideoContentType(mContentType);
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DDrmImageList.java60 protected DrmImage(BaseImageList container, ContentResolver cr, argument
64 super(container, cr, id, index, uri, dataPath,
H A DVideoObject.java43 * @param cr the content resolver
45 protected VideoObject(BaseImageList container, ContentResolver cr, argument
48 super(container, cr, id, index, uri, dataPath,

Completed in 177 milliseconds

1234