Home
last modified time | relevance | path

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

12345

/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMessageChangeLogTable.java76 private static int startProcessing(final ContentResolver cr, final Uri uri, in startProcessing() argument
85 cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
90 return cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
103 private static Cursor getRowsToProcess(final ContentResolver cr, final Uri uri, in getRowsToProcess() argument
106 return cr.query(uri, projection, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args, ID + " ASC"); in getRowsToProcess()
136 protected static int deleteRowsForMessages(final ContentResolver cr, final Uri uri, in deleteRowsForMessages() argument
141 return cr.delete(uri, getSelectionForMessages(messageKeys, count), null); in deleteRowsForMessages()
153 private static int updateStatusForMessages(final ContentResolver cr, final Uri uri, in updateStatusForMessages() argument
160 return cr.update(uri, cv, getSelectionForMessages(messageKeys, count), null); in updateStatusForMessages()
171 protected static int retryMessages(final ContentResolver cr, final Uri uri, in retryMessages() argument
[all …]
DMessageMove.java120 final ContentResolver cr = context.getContentResolver(); in getMoves() local
121 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionMoveQuery.PROJECTION, accountId); in getMoves()
179 deleteRowsForMessages(cr, CONTENT_URI, unmovedMessages, unmovedMessagesCount); in getMoves()
193 public static void upsyncSuccessful(final ContentResolver cr, final long[] messageKeys, in upsyncSuccessful() argument
195 deleteRowsForMessages(cr, CONTENT_URI, messageKeys, count); in upsyncSuccessful()
204 public static void upsyncRetry(final ContentResolver cr, final long[] messageKeys, in upsyncRetry() argument
206 retryMessages(cr, CONTENT_URI, messageKeys, count); in upsyncRetry()
215 public static void upsyncFail(final ContentResolver cr, final long[] messageKeys, in upsyncFail() argument
217 failMessages(cr, CONTENT_URI, messageKeys, count); in upsyncFail()
226 public static long getLastSyncedMailboxForMessage(final ContentResolver cr, in getLastSyncedMailboxForMessage() argument
[all …]
DMessageStateChange.java114 final ContentResolver cr = context.getContentResolver(); in getChanges() local
115 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionChangeQuery.PROJECTION, accountId); in getChanges()
152 final long mailboxId = MessageMove.getLastSyncedMailboxForMessage(cr, in getChanges()
186 deleteRowsForMessages(cr, CONTENT_URI, unchangedMessages, unchangedMessagesCount); in getChanges()
225 public static void upsyncSuccessful(final ContentResolver cr, final long[] messageKeys, in upsyncSuccessful() argument
227 deleteRowsForMessages(cr, CONTENT_URI, messageKeys, count); in upsyncSuccessful()
236 public static void upsyncRetry(final ContentResolver cr, final long[] messageKeys, in upsyncRetry() argument
238 retryMessages(cr, CONTENT_URI, messageKeys, count); in upsyncRetry()
DMailbox.java879 public static Cursor getMailboxesForPush(final ContentResolver cr, final long accountId) { in getMailboxesForPush() argument
880 return cr.query(Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, in getMailboxesForPush()
891 public static Cursor getMailboxIdsForSync(final ContentResolver cr, final long accountId) { in getMailboxIdsForSync() argument
895 return cr.query(Mailbox.CONTENT_URI, Mailbox.ID_PROJECTION, in getMailboxIdsForSync()
906 public static Cursor getMailboxIdsForSyncByType(final ContentResolver cr, final long accountId, in getMailboxIdsForSyncByType() argument
908 return cr.query(Mailbox.CONTENT_URI, Mailbox.ID_PROJECTION, in getMailboxIdsForSyncByType()
943 public static void resyncMailbox(final ContentResolver cr, in resyncMailbox() argument
945 final Cursor cursor = cr.query(Mailbox.CONTENT_URI, in resyncMailbox()
979 cr.applyBatch(AUTHORITY, ops); in resyncMailbox()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java200 public static Uri addImage(ContentResolver cr, String title, long dateTaken, in addImage() argument
246 return cr.insert(STORAGE_URI, values); in addImage()
280 public static IImageList makeImageList(ContentResolver cr, in makeImageList() argument
289 if (isEmptyImageList || cr == null) { in makeImageList()
294 return new SingleImageList(cr, singleImageUri); in makeImageList()
305 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId)); in makeImageList()
308 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId)); in makeImageList()
313 l.add(new ImageList(cr, in makeImageList()
340 public static IImageList makeImageList(ContentResolver cr, Uri uri, in makeImageList() argument
345 return makeImageList(cr, DataLocation.EXTERNAL, INCLUDE_VIDEOS, in makeImageList()
[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/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java108 final ContentResolver cr = context.getContentResolver(); in notifyEverythingChanged() local
109 cr.notifyChange(uri, null); in notifyEverythingChanged()
129 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyParticipantsChanged() local
130 cr.notifyChange(uri, null); in notifyParticipantsChanged()
134 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllMessagesChanged() local
135 cr.notifyChange(CONVERSATION_MESSAGES_URI, null); in notifyAllMessagesChanged()
139 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllParticipantsChanged() local
140 cr.notifyChange(CONVERSATION_PARTICIPANTS_URI, null); in notifyAllParticipantsChanged()
184 final ContentResolver cr = context.getContentResolver(); in notifyMessagesChanged() local
185 cr.notifyChange(uri, null); in notifyMessagesChanged()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DFavoriteChannelEvaluator.java28 for (ChannelRecord cr : channelRecords) { in onChannelRecordListChanged()
29 WatchedProgram[] watchedPrograms = cr.getWatchHistory(); in onChannelRecordListChanged()
39 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel() local
40 if (cr == null) { in evaluateChannel()
44 if (cr.getTotalWatchDurationMs() == 0) { in evaluateChannel()
49 return (double) cr.getTotalWatchDurationMs() / in evaluateChannel()
DRecentChannelEvaluator.java40 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel() local
41 if (cr == null) { in evaluateChannel()
44 WatchedProgram[] watchHistory = cr.getWatchHistory(); in evaluateChannel()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.java68 ContentResolver cr = mAppContext.getContentResolver(); in asyncAddAlarm()
71 Alarm newAlarm = Alarm.addAlarm(cr, alarm); in asyncAddAlarm()
109 ContentResolver cr = mAppContext.getContentResolver(); in asyncUpdateAlarm()
112 Alarm.updateAlarm(cr, alarm); in asyncUpdateAlarm()
117 AlarmInstance.getInstancesByAlarmId(cr, alarm.id); in asyncUpdateAlarm()
129 AlarmInstance.updateInstance(cr, newInstance); in asyncUpdateAlarm()
217 final ContentResolver cr = mAppContext.getContentResolver(); in setupAlarmInstance() local
219 newInstance = AlarmInstance.addInstance(cr, newInstance); in setupAlarmInstance()
DAlarmStateManager.java193 final ContentResolver cr = context.getContentResolver(); in getNextFiringAlarm() local
195 final List<AlarmInstance> alarmInstances = AlarmInstance.getInstances(cr, activeAlarmQuery); in getNextFiringAlarm()
269 ContentResolver cr = context.getContentResolver(); in updateParentAlarm() local
270 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in updateParentAlarm()
279 Alarm.deleteAlarm(cr, alarm.id); in updateParentAlarm()
283 Alarm.updateAlarm(cr, alarm); in updateParentAlarm()
290 AlarmInstance.addInstance(cr, nextRepeatedInstance); in updateParentAlarm()
666 final ContentResolver cr = context.getContentResolver(); in registerInstance() local
667 final Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in registerInstance()
705 Alarm.updateAlarm(cr, alarm); in registerInstance()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionPropertiesFragment.java213 final ContentResolver cr = context.getContentResolver(); in applyCaptionProperties() local
343 final ContentResolver cr = getContentResolver(); in updateAllPreferences() local
344 final CaptionStyle attrs = CaptionStyle.getCustomStyle(cr); in updateAllPreferences()
427 final ContentResolver cr = getActivity().getContentResolver(); in onValueChanged() local
431 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged()
435 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged()
439 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged()
441 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged()
443 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); in onValueChanged()
446 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, value); in onValueChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DSettingPref.java138 protected static boolean putInt(int type, ContentResolver cr, String setting, int value) { in putInt() argument
141 return Global.putInt(cr, setting, value); in putInt()
143 return System.putInt(cr, setting, value); in putInt()
148 protected static int getInt(int type, ContentResolver cr, String setting, int def) { in getInt() argument
151 return Global.getInt(cr, setting, def); in getInt()
153 return System.getInt(cr, setting, def); in getInt()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DEmailServiceStatus.java109 private static void syncStatus(final ContentResolver cr, final Bundle syncExtras, in syncStatus() argument
128 cr.call(Uri.parse(callbackUri), callbackMethod, callbackArg, statusExtras); in syncStatus()
142 public static void syncMailboxStatus(final ContentResolver cr, final Bundle syncExtras, in syncMailboxStatus() argument
144 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress, in syncMailboxStatus()
/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/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.java72 final ContentResolver cr = mContext.getContentResolver(); in run() local
111 AlarmInstance.getNextUpcomingInstanceByAlarmId(cr, alarm.id); in run()
132 nextTime.get(Calendar.HOUR_OF_DAY), nextTime.get(Calendar.MINUTE), cr); in run()
164 private List<Alarm> getAlarmsByHourMinutes(int hour24, int minutes, ContentResolver cr) {
169 return Alarm.getAlarms(cr, selection, args);
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java105 ContentResolver cr = mMockContext.getContentResolver(); in testBackupAndRestore() local
106 cr.delete(Account.CONTENT_URI, null, null); in testBackupAndRestore()
107 cr.delete(HostAuth.CONTENT_URI, null, null); in testBackupAndRestore()
123 Cursor c = cr.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, "_id ASC"); in testBackupAndRestore()
/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/Settings/src/com/android/settings/
DDevelopmentSettings.java581 final ContentResolver cr = getActivity().getContentResolver(); in onResume() local
582 mLastEnabledState = Settings.Global.getInt(cr, in onResume()
644 final ContentResolver cr = context.getContentResolver(); in updateAllOptions() local
646 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions()
653 updateSwitchPreference(mBugreportInPower, Settings.Secure.getInt(cr, in updateAllOptions()
655 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions()
657 updateSwitchPreference(mBtHciSnoopLog, Settings.Secure.getInt(cr, in updateAllOptions()
662 updateSwitchPreference(mDebugViewAttributes, Settings.Global.getInt(cr, in updateAllOptions()
664 updateSwitchPreference(mForceAllowOnExternal, Settings.Global.getInt(cr, in updateAllOptions()
977 final ContentResolver cr = getActivity().getContentResolver(); in enableVerifierSetting() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherBackupHelper.java456 ContentResolver cr = mContext.getContentResolver(); in backupFavorites() local
458 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION, in backupFavorites()
496 ContentResolver cr = mContext.getContentResolver(); in restoreFavorite() local
498 cr.insert(Favorites.CONTENT_URI, values); in restoreFavorite()
509 ContentResolver cr = mContext.getContentResolver(); in backupScreens() local
510 Cursor cursor = cr.query(WorkspaceScreens.CONTENT_URI, SCREEN_PROJECTION, in backupScreens()
546 ContentResolver cr = mContext.getContentResolver(); in restoreScreen() local
548 cr.insert(WorkspaceScreens.CONTENT_URI, values); in restoreScreen()
559 final ContentResolver cr = mContext.getContentResolver(); in backupIcons() local
568 Cursor cursor = cr.query(Favorites.CONTENT_URI, FAVORITE_PROJECTION, in backupIcons()
[all …]
DAppWidgetsRestoredReceiver.java41 final ContentResolver cr = context.getContentResolver(); in restoreAppWidgetIds() local
63 int result = cr.update(Favorites.CONTENT_URI, values, in restoreAppWidgetIds()
66 Cursor cursor = cr.query(Favorites.CONTENT_URI, in restoreAppWidgetIds()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailMessageCursor.java64 final ContentResolver cr = c.getContentResolver(); in EmailMessageCursor() local
72 final InputStream in = cr.openInputStream(htmlUri); in EmailMessageCursor()
88 final InputStream in = cr.openInputStream(textUri); in EmailMessageCursor()
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializerService.java103 ContentResolver cr = getContentResolver(); in updateDialtactsLauncher() local
104 Cursor c = cr.query(LAUNCHER_CONTENT_URI, in updateDialtactsLauncher()
138 cr.update(LAUNCHER_CONTENT_URI, values, updateWhere, null); in updateDialtactsLauncher()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java225 public static String getContentType(final ContentResolver cr, final Uri uri) { in getContentType() argument
231 cursor = cr.query(uri, MEDIA_CONTENT_PROJECTION, null, null, null); in getContentType()
568 final ContentResolver cr = mContext.getContentResolver(); in ensureImageSizeSet() local
573 inputStream = cr.openInputStream(mUri); in ensureImageSizeSet()
675 final ContentResolver cr = mContext.getContentResolver(); in recodeImage() local
685 final InputStream inputStream = cr.openInputStream(mUri); in recodeImage()
886 final ContentResolver cr = context.getContentResolver(); in decodeImageBounds() local
888 final InputStream inputStream = cr.openInputStream(imageUri); in decodeImageBounds()

12345