/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.java | 144 public static AlarmInstance getInstance(ContentResolver contentResolver, long instanceId) { in getInstance() argument 145 Cursor cursor = contentResolver.query(getUri(instanceId), QUERY_COLUMNS, null, null, null); in getInstance() 169 public static List<AlarmInstance> getInstancesByAlarmId(ContentResolver contentResolver, in getInstancesByAlarmId() argument 171 return getInstances(contentResolver, ALARM_ID + "=" + alarmId); in getInstancesByAlarmId() 186 public static List<AlarmInstance> getInstances(ContentResolver contentResolver, in getInstances() argument 188 Cursor cursor = contentResolver.query(CONTENT_URI, QUERY_COLUMNS, in getInstances() 208 public static AlarmInstance addInstance(ContentResolver contentResolver, in addInstance() argument 214 for (AlarmInstance otherInstances : getInstances(contentResolver, dupSelector)) { in addInstance() 220 updateInstance(contentResolver, instance); in addInstance() 226 Uri uri = contentResolver.insert(CONTENT_URI, values); in addInstance() [all …]
|
D | City.java | 80 public static City getCity(ContentResolver contentResolver, String cityId) { in getCity() argument 81 Cursor cursor = contentResolver.query(getContentUriForId(cityId), in getCity() 111 public static List<City> getCities(ContentResolver contentResolver, in getCities() argument 113 Cursor cursor = contentResolver.query(CONTENT_URI, QUERY_COLUMNS, in getCities() 133 public static City addCity(ContentResolver contentResolver, City city) { in addCity() argument 135 Uri uri = contentResolver.insert(CONTENT_URI, values); in addCity() 140 public static boolean updateCity(ContentResolver contentResolver, City city) { in updateCity() argument 143 long rowsUpdated = contentResolver.update(updateUri, values, null, null); in updateCity() 147 public static boolean deleteCity(ContentResolver contentResolver, String cityId) { in deleteCity() argument 149 int deletedRows = contentResolver.delete(uri, "", null); in deleteCity()
|
D | Alarm.java | 136 public static Alarm getAlarm(ContentResolver contentResolver, long alarmId) { in getAlarm() argument 137 Cursor cursor = contentResolver.query(getUri(alarmId), QUERY_COLUMNS, null, null, null); in getAlarm() 166 public static List<Alarm> getAlarms(ContentResolver contentResolver, in getAlarms() argument 168 Cursor cursor = contentResolver.query(CONTENT_URI, QUERY_COLUMNS, in getAlarms() 188 public static Alarm addAlarm(ContentResolver contentResolver, Alarm alarm) { in addAlarm() argument 190 Uri uri = contentResolver.insert(CONTENT_URI, values); in addAlarm() 195 public static boolean updateAlarm(ContentResolver contentResolver, Alarm alarm) { in updateAlarm() argument 198 long rowsUpdated = contentResolver.update(getUri(alarm.id), values, null, null); in updateAlarm() 202 public static boolean deleteAlarm(ContentResolver contentResolver, long alarmId) { in deleteAlarm() argument 204 int deletedRows = contentResolver.delete(getUri(alarmId), "", null); in deleteAlarm()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 264 ContentResolver contentResolver = context.getContentResolver(); in setSilentState() local 266 AlarmInstance.updateInstance(contentResolver, instance); in setSilentState() 286 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState() local 288 AlarmInstance.updateInstance(contentResolver, instance); in setLowNotificationState() 308 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState() local 310 AlarmInstance.updateInstance(contentResolver, instance); in setHideNotificationState() 330 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState() local 332 AlarmInstance.updateInstance(contentResolver, instance); in setHighNotificationState() 352 ContentResolver contentResolver = context.getContentResolver(); in setFiredState() local 354 AlarmInstance.updateInstance(contentResolver, instance); in setFiredState() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | AttachmentsView.java | 216 final ContentResolver contentResolver = getContext().getContentResolver(); in generateLocalAttachment() local 217 String contentType = contentResolver.getType(contentUri); in generateLocalAttachment() 233 metadataCursor = contentResolver.query( in generateLocalAttachment() 255 metadataCursor = getOptionalColumn(contentResolver, contentUri, in generateLocalAttachment() 267 getOptionalColumn(contentResolver, contentUri, OpenableColumns.SIZE); in generateLocalAttachment() 272 attachment.size = getSizeFromFile(contentUri, contentResolver); in generateLocalAttachment() 286 attachment.size = getSizeFromFile(contentUri, contentResolver); in generateLocalAttachment() 334 private static int getSizeFromFile(Uri uri, ContentResolver contentResolver) { in getSizeFromFile() argument 338 file = contentResolver.openFileDescriptor(uri, "r"); in getSizeFromFile() 360 private static Cursor getOptionalColumn(ContentResolver contentResolver, Uri uri, in getOptionalColumn() argument [all …]
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | DefaultVoicemailNotifier.java | 67 ContentResolver contentResolver = context.getContentResolver(); in getInstance() local 69 createNewCallsQuery(contentResolver), in getInstance() 70 createNameLookupQuery(contentResolver), in getInstance() 234 public static NewCallsQuery createNewCallsQuery(ContentResolver contentResolver) { in createNewCallsQuery() argument 235 return new DefaultNewCallsQuery(contentResolver); in createNewCallsQuery() 253 private DefaultNewCallsQuery(ContentResolver contentResolver) { in DefaultNewCallsQuery() argument 254 mContentResolver = contentResolver; in DefaultNewCallsQuery() 302 public static NameLookupQuery createNameLookupQuery(ContentResolver contentResolver) { in createNameLookupQuery() argument 303 return new DefaultNameLookupQuery(contentResolver); in createNameLookupQuery() 316 private DefaultNameLookupQuery(ContentResolver contentResolver) { in DefaultNameLookupQuery() argument [all …]
|
D | CallLogQueryHandler.java | 125 public CallLogQueryHandler(ContentResolver contentResolver, Listener listener) { in CallLogQueryHandler() argument 126 this(contentResolver, listener, -1); in CallLogQueryHandler() 129 public CallLogQueryHandler(ContentResolver contentResolver, Listener listener, int limit) { in CallLogQueryHandler() argument 130 super(contentResolver); in CallLogQueryHandler()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | DbTestUtils.java | 44 private final MockContentResolver contentResolver; field in DbTestUtils 50 private ContentResolver contentResolver; field in DbTestUtils.FakeContext 54 FakeContext(ContentResolver contentResolver, Resources resources) { in FakeContext() argument 55 this.contentResolver = contentResolver; in FakeContext() 61 return contentResolver; in getContentResolver() 174 this.contentResolver = new MockContentResolver(); in DbTestUtils() 175 this.context = new FakeContext(contentResolver, resources); in DbTestUtils() 182 return contentResolver; in getContentResolver()
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | AbstractSyncAdapter.java | 181 private static ContentProviderResult[] execute(final ContentResolver contentResolver, in execute() argument 185 ContentProviderResult[] result = contentResolver.applyBatch(authority, ops); in execute() 213 private static ContentProviderResult[] applyBatch(final ContentResolver contentResolver, in applyBatch() argument 224 return execute(contentResolver, authority, cpos); in applyBatch() 230 private static void applyAndCopyResults(final ContentResolver contentResolver, in applyAndCopyResults() argument 236 ContentProviderResult[] miniResult = applyBatch(contentResolver, authority, mini, in applyAndCopyResults() 257 protected static ContentProviderResult[] safeExecute(final ContentResolver contentResolver, in safeExecute() argument 263 return applyBatch(contentResolver, authority, ops, 0); in safeExecute() 276 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute() 294 applyAndCopyResults(contentResolver, authority, mini, result, offset); in safeExecute()
|
D | CalendarSyncParser.java | 132 public CalendarOperations(final ContentResolver contentResolver, in CalendarOperations() argument 135 mContentResolver = contentResolver; in CalendarOperations() 1230 private static ContentProviderResult[] execute(final ContentResolver contentResolver, in execute() argument 1234 ContentProviderResult[] result = contentResolver.applyBatch(authority, ops); in execute() 1262 private static ContentProviderResult[] applyBatch(final ContentResolver contentResolver, in applyBatch() argument 1273 return execute(contentResolver, authority, cpos); in applyBatch() 1279 private static void applyAndCopyResults(final ContentResolver contentResolver, in applyAndCopyResults() argument 1285 ContentProviderResult[] miniResult = applyBatch(contentResolver, authority, mini, in applyAndCopyResults() 1306 protected static ContentProviderResult[] safeExecute(final ContentResolver contentResolver, in safeExecute() argument 1312 return applyBatch(contentResolver, authority, ops, 0); in safeExecute() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | SaveVideoFileUtils.java | 38 ContentResolver contentResolver, Uri uri, String defaultFolderName) { in getDstMp4FileInfo() argument 42 dstFileInfo.mDirectory = getSaveDirectory(contentResolver, uri); in getDstMp4FileInfo() 57 private static void querySource(ContentResolver contentResolver, Uri uri, in querySource() argument 61 cursor = contentResolver.query(uri, projection, null, null, null); in querySource() 74 private static File getSaveDirectory(ContentResolver contentResolver, Uri uri) { in getSaveDirectory() argument 76 querySource(contentResolver, uri, in getSaveDirectory() 92 ContentResolver contentResolver, Uri uri ) { in insertContent() argument 115 querySource(contentResolver, uri, projection, in insertContent() 137 return contentResolver.insert(Video.Media.EXTERNAL_CONTENT_URI, values); in insertContent()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | SettingsContentObserver.java | 30 public void register(ContentResolver contentResolver) { in register() argument 31 contentResolver.registerContentObserver(Settings.Secure.getUriFor( in register() 33 contentResolver.registerContentObserver(Settings.Secure.getUriFor( in register() 37 public void unregister(ContentResolver contentResolver) { in unregister() argument 38 contentResolver.unregisterContentObserver(this); in unregister()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 102 ContentResolver contentResolver = context.getContentResolver(); in generateFileInfo() local 111 contentType = contentResolver.getType(uri); in generateFileInfo() 114 metadataCursor = contentResolver.query(uri, new String[] { in generateFileInfo() 152 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); in generateFileInfo() 177 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
|
D | BluetoothOppService.java | 161 final ContentResolver contentResolver = getContentResolver(); in onCreate() local 164 trimDatabase(contentResolver); in onCreate() 902 private static void trimDatabase(ContentResolver contentResolver) { in trimDatabase() argument 910 int delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase() 918 delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase() 927 Cursor cursor = contentResolver.query(BluetoothShare.CONTENT_URI, new String[] { in trimDatabase() 942 delNum = contentResolver.delete(BluetoothShare.CONTENT_URI, in trimDatabase()
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
D | SaveImage.java | 161 public static void deleteAuxFiles(ContentResolver contentResolver, in deleteAuxFiles() argument 165 querySourceFromContentResolver(contentResolver, in deleteAuxFiles() 350 ContentResolver contentResolver = context.getContentResolver(); in querySource() local 351 querySourceFromContentResolver(contentResolver, sourceUri, projection, callback); in querySource() 355 ContentResolver contentResolver, Uri sourceUri, String[] projection, in querySourceFromContentResolver() argument 359 cursor = contentResolver.query(sourceUri, projection, null, null, in querySourceFromContentResolver()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 175 public static void deleteAuxFiles(ContentResolver contentResolver, in deleteAuxFiles() argument 179 querySourceFromContentResolver(contentResolver, in deleteAuxFiles() 559 ContentResolver contentResolver = context.getContentResolver(); in querySource() local 560 querySourceFromContentResolver(contentResolver, sourceUri, projection, callback); in querySource() 564 ContentResolver contentResolver, Uri sourceUri, String[] projection, in querySourceFromContentResolver() argument 568 cursor = contentResolver.query(sourceUri, projection, null, null, in querySourceFromContentResolver()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlarmScheduler.java | 130 private static Cursor queryUpcomingEvents(Context context, ContentResolver contentResolver, in queryUpcomingEvents() argument 167 Cursor cursor = contentResolver.query(uriBuilder.build(), INSTANCES_PROJECTION, in queryUpcomingEvents() 177 ContentResolver contentResolver, AlarmManagerInterface alarmManager, in queryNextReminderAndSchedule() argument 240 cursor = contentResolver.query(Reminders.CONTENT_URI, REMINDERS_PROJECTION, in queryNextReminderAndSchedule()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailCleanupService.java | 45 ContentResolver contentResolver) { in handleIntentInternal() argument 51 contentResolver.delete(Voicemails.buildSourceUri(packageUninstalled), null, null); in handleIntentInternal() 52 contentResolver.delete(Status.buildSourceUri(packageUninstalled), null, null); in handleIntentInternal()
|
/packages/apps/Dialer/tests/src/com/android/dialer/ |
D | CallDetailActivityTest.java | 230 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestCallEntry() local 235 mCallLogUri = contentResolver.insert(CallLog.Calls.CONTENT_URI, values); in setActivityIntentForTestCallEntry() 241 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestVoicemailEntry() local 246 mVoicemailUri = contentResolver.insert(VoicemailContract.Voicemails.CONTENT_URI, values); in setActivityIntentForTestVoicemailEntry()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/ |
D | ContactsPreferences.java | 127 final ContentResolver contentResolver = mContext.getContentResolver(); in registerChangeListener() local 128 contentResolver.registerContentObserver( in registerChangeListener() 131 contentResolver.registerContentObserver( in registerChangeListener()
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | PrintSettingsFragment.java | 330 public void register(ContentResolver contentResolver) { in register() argument 331 contentResolver.registerContentObserver(Settings.Secure.getUriFor( in register() 335 public void unregister(ContentResolver contentResolver) { in unregister() argument 336 contentResolver.unregisterContentObserver(this); in unregister()
|
/packages/apps/Email/src/com/android/email2/ui/ |
D | MailActivityEmail.java | 273 final ContentResolver contentResolver = getContentResolver(); in getViewIntent() local 275 final Cursor accountCursor = contentResolver.query( in getViewIntent() 295 final Cursor folderCursor = contentResolver.query( in getViewIntent()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationActionUtils.java | 634 final ContentResolver contentResolver = context.getContentResolver(); in processDestructiveAction() local 646 contentResolver.update(uri, values, null, null); in processDestructiveAction() 655 contentResolver.update(uri, values, null, null); in processDestructiveAction() 660 contentResolver.delete(uri, null, null); in processDestructiveAction()
|
/packages/apps/Email/src/com/android/email/ |
D | NotificationController.java | 595 final ContentResolver contentResolver = context.getContentResolver(); in refreshNotificationsForAccountInternal() local 597 final Cursor accountCursor = contentResolver.query( in refreshNotificationsForAccountInternal() 621 final Cursor mailboxCursor = contentResolver.query( in refreshNotificationsForAccountInternal() 635 final Cursor folderCursor = contentResolver.query( in refreshNotificationsForAccountInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalImage.java | 269 ContentResolver contentResolver = mApplication.getContentResolver(); in delete() local 270 SaveImage.deleteAuxFiles(contentResolver, getContentUri()); in delete() 271 contentResolver.delete(baseUri, "_id=?", in delete()
|