/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | RawContactUtil.java | 36 public static void update(ContentResolver resolver, long rawContactId, in update() argument 39 resolver.update(uri, values, null, null); in update() 42 public static String[] queryByRawContactId(ContentResolver resolver, in queryByRawContactId() argument 46 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByRawContactId() 50 public static void delete(ContentResolver resolver, long rawContactId, in delete() argument 56 resolver.delete(uri, null, null); in delete() 59 public static long queryContactIdByRawContactId(ContentResolver resolver, long rawContactid) { in queryContactIdByRawContactId() argument 63 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid, in queryContactIdByRawContactId() 71 public static boolean rawContactExistsById(ContentResolver resolver, long rawContactid) { in rawContactExistsById() argument 72 long contactId = queryContactIdByRawContactId(resolver, rawContactid); in rawContactExistsById() [all …]
|
D | DatabaseAsserts.java | 31 public static void assertDeleteIsUnsupported(ContentResolver resolver, Uri uri) { in assertDeleteIsUnsupported() argument 33 resolver.delete(uri, null, null); in assertDeleteIsUnsupported() 41 public static void assertInsertIsUnsupported(ContentResolver resolver, Uri uri) { in assertInsertIsUnsupported() argument 44 resolver.insert(uri, values); in assertInsertIsUnsupported() 57 public static ContactIdPair assertAndCreateContact(ContentResolver resolver) { in assertAndCreateContact() argument 58 long rawContactId = RawContactUtil.createRawContactWithName(resolver); in assertAndCreateContact() 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() 71 public static ContactIdPair assertAndCreateContactWithName(ContentResolver resolver, in assertAndCreateContactWithName() argument 73 long rawContactId = RawContactUtil.createRawContactWithName(resolver, firstName, lastName); in assertAndCreateContactWithName() 75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() [all …]
|
D | DataUtil.java | 34 public static void delete(ContentResolver resolver, long dataId) { in delete() argument 36 resolver.delete(uri, null, null); in delete() 39 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument 41 resolver.update(uri, values, null, null); in update() 44 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, in insertStructuredName() argument 49 Uri resultUri = resolver.insert(ContactsContract.Data.CONTENT_URI, values); in insertStructuredName() 53 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId, in insertStructuredName() argument 55 return insertStructuredName(resolver, rawContactId, givenName, familyName, in insertStructuredName() 60 ContentResolver resolver, long rawContactId, String givenName, String familyName, in insertStructuredName() argument 62 return insertStructuredName(resolver, rawContactId, givenName, familyName, phoneticFamily, in insertStructuredName() [all …]
|
D | ContactUtil.java | 33 public static void update(ContentResolver resolver, long contactId, in update() argument 36 resolver.update(uri, values, null, null); in update() 39 public static void delete(ContentResolver resolver, long contactId) { in delete() argument 41 resolver.delete(uri, null, null); in delete() 44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { in recordExistsForContactId() argument 49 Cursor cursor = resolver.query(uri, projection, null, null, null); in recordExistsForContactId() 56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { in queryContactLastUpdatedTimestamp() argument 62 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryContactLastUpdatedTimestamp()
|
D | DeletedContactUtil.java | 35 public static long queryDeletedTimestampForContactId(ContentResolver resolver, long contactId) { in queryDeletedTimestampForContactId() argument 40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId() 47 public static long getCount(ContentResolver resolver) { in getCount() argument 51 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount() 64 public static List<String[]> query(ContentResolver resolver, String[] projection) { in query() argument 65 Cursor cursor = resolver.query(URI, projection, null, null, null); in query() 74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection, in querySinceTimestamp() argument 78 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | Utils.java | 40 public static void clearTvProvider(ContentResolver resolver) { in clearTvProvider() argument 41 resolver.delete(Channels.CONTENT_URI, null, null); in clearTvProvider() 44 resolver.delete(TvContract.RecordedPrograms.CONTENT_URI, null, null); in clearTvProvider() 45 resolver.delete(TvContract.WatchNextPrograms.CONTENT_URI, null, null); in clearTvProvider() 191 public static long insertChannel(ContentResolver resolver) { in insertChannel() argument 194 Uri uri = resolver.insert(Channels.CONTENT_URI, values); in insertChannel() 200 ContentResolver resolver, long channelId, Program... programs) { in insertPrograms() argument 204 Uri uri = resolver.insert(TvContract.Programs.CONTENT_URI, values); in insertPrograms() 210 public static Set<Program> queryPrograms(ContentResolver resolver) { in queryPrograms() argument 217 resolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in queryPrograms() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowSecureSettings.java | 38 public static boolean putStringForUser(ContentResolver resolver, String name, String value, in putStringForUser() argument 40 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putStringForUser() 52 public static String getStringForUser(ContentResolver resolver, String name, int userHandle) { in getStringForUser() argument 53 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getStringForUser() 60 public static boolean putIntForUser(ContentResolver resolver, String name, int value, in putIntForUser() argument 62 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putIntForUser() 70 public static int getIntForUser(ContentResolver resolver, String name, int def, in getIntForUser() argument 72 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getIntForUser() 80 public static boolean putLongForUser(ContentResolver resolver, String name, long value, in putLongForUser() argument 82 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putLongForUser() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtil.java | 91 public static boolean isInputMethodEnabled(ContentResolver resolver, in isInputMethodEnabled() argument 93 sInputMethodSplitter.setString(getEnabledInputMethodsConcatenatedIds(resolver)); in isInputMethodEnabled() 106 public static void enableInputMethod(ContentResolver resolver, in enableInputMethod() argument 108 if (isInputMethodEnabled(resolver, inputMethodInfo)) { in enableInputMethod() 113 builder.append(getEnabledInputMethodsConcatenatedIds(resolver)); in enableInputMethod() 121 setEnabledInputMethodsConcatenatedIds(resolver, builder.toString()); in enableInputMethod() 162 private static String getEnabledInputMethodsConcatenatedIds(ContentResolver resolver) { in getEnabledInputMethodsConcatenatedIds() argument 163 return Settings.Secure.getString(resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsConcatenatedIds() 166 private static String getDefaultInputMethodId(ContentResolver resolver) { in getDefaultInputMethodId() argument 167 return Settings.Secure.getString(resolver, Settings.Secure.DEFAULT_INPUT_METHOD); in getDefaultInputMethodId() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
D | ArchivesProviderTest.java | 80 final ContentResolver resolver = mContext.getContentResolver(); in testQueryRoots() local 82 try (final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testQueryRoots() 100 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Success() local 103 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Success() 108 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 119 resolver.registerContentObserver(notificationUri, false, new ContentObserver(null) { in testOpen_Success() 129 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 152 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Failure() local 155 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Failure() 161 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Failure() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | BucketHelper.java | 89 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntries() argument 91 return loadBucketEntriesFromFilesTable(jc, resolver, type); in loadBucketEntries() 93 return loadBucketEntriesFromImagesAndVideoTable(jc, resolver, type); in loadBucketEntries() 98 ContentResolver resolver, Uri tableUri, HashMap<Integer, BucketEntry> buckets) { in updateBucketEntriesFromTable() argument 99 Cursor cursor = resolver.query(tableUri, PROJECTION_BUCKET_IN_ONE_TABLE, in updateBucketEntriesFromTable() 124 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromImagesAndVideoTable() argument 128 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 132 jc, resolver, Video.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 146 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromFilesTable() argument 149 Cursor cursor = resolver.query(uri, in loadBucketEntriesFromFilesTable() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBroadcastReceiverTest.java | 101 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_toggleChanged() local 102 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_toggleChanged() 121 verify(resolver).notifyChange(uri, null); in onReceive_toggleChanged() 127 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_synchronously_notifyChange_should_be_called() local 128 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_synchronously_notifyChange_should_be_called() 155 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_synchronously_notifyChange_should_be_called() 161 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local 162 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 180 verify(resolver, never()).notifyChange(null, null); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 192 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_sliderChanged() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowSecureSettings.java | 32 protected static int getInt(ContentResolver resolver, String name) { in getInt() argument 36 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt() 41 protected static int getInt(ContentResolver resolver, String name, int def) { in getInt() argument 45 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getInt() 51 protected static int getIntForUser(ContentResolver resolver, String name, int def, in getIntForUser() argument 56 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in getIntForUser() 63 protected static boolean putInt(ContentResolver resolver, String name, int value) { in putInt() argument 67 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in putInt() 73 protected static boolean putIntForUser(ContentResolver resolver, String name, int value, in putIntForUser() argument 78 ReflectionHelpers.ClassParameter.from(ContentResolver.class, resolver), in putIntForUser()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | PlaylistResolver.java | 63 @NonNull ContentResolver resolver, @NonNull Uri uri) throws IOException { in resolvePlaylist() 66 try (Cursor cursor = resolver.query(uri, new String[] { in resolvePlaylist() 81 return resolvePlaylistM3u(resolver, uri, file); in resolvePlaylist() 83 return resolvePlaylistPls(resolver, uri, file); in resolvePlaylist() 86 return resolvePlaylistWpl(resolver, uri, file); in resolvePlaylist() 93 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistM3u() 106 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistM3u() 116 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistPls() 130 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistPls() 140 @NonNull ContentResolver resolver, @NonNull Uri uri, @NonNull File file) in resolvePlaylistWpl() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 470 final ContentResolver resolver = getContext().getContentResolver(); in getDocumentMetadataFromIndex() local 474 cursor = resolver.query( in getDocumentMetadataFromIndex() 555 final ContentResolver resolver = getContext().getContentResolver(); in queryDocument() local 568 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 577 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 589 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 598 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 610 cursor = resolver.query(Artists.EXTERNAL_CONTENT_URI, in queryDocument() 619 cursor = resolver.query(Albums.EXTERNAL_CONTENT_URI, in queryDocument() 628 cursor = resolver.query(Audio.Media.EXTERNAL_CONTENT_URI, in queryDocument() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | MailboxUtilities.java | 51 ContentResolver resolver = context.getContentResolver(); in setFlagsAndChildrensParentKey() local 74 Cursor childCursor = resolver.query(Mailbox.CONTENT_URI, in setFlagsAndChildrensParentKey() 84 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, childId), in setFlagsAndChildrensParentKey() 99 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, parentId), in setFlagsAndChildrensParentKey() 140 ContentResolver resolver = context.getContentResolver(); in fixupUninitializedParentKeys() local 142 resolver.query(Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, in fixupUninitializedParentKeys() 162 resolver.update(Mailbox.CONTENT_URI, values, noParentKeySelection, null); in fixupUninitializedParentKeys() 213 ContentResolver resolver = context.getContentResolver(); in checkMailboxConsistency() local 214 resolver.update(Mailbox.CONTENT_URI, values, accountSelector, null); in checkMailboxConsistency() 254 ContentResolver resolver = context.getContentResolver(); in setupHierarchicalNames() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | SmsMmsContacts.java | 70 public String getPhoneNumber(ContentResolver resolver, long id) { in getPhoneNumber() argument 75 fillPhoneCache(resolver); in getPhoneNumber() 79 public static String getPhoneNumberUncached(ContentResolver resolver, long id) { in getPhoneNumberUncached() argument 81 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, where, null, null); in getPhoneNumberUncached() 114 private void fillPhoneCache(ContentResolver resolver) { in fillPhoneCache() argument 115 Cursor c = resolver.query(ADDRESS_URI, ADDRESS_PROJECTION, null, null, null); in fillPhoneCache() 145 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver) { in getContactNameFromPhone() argument 146 return getContactNameFromPhone(phone, resolver, null); in getContactNameFromPhone() 155 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver, in getContactNameFromPhone() argument 187 Cursor c = resolver.query(uri, CONTACT_PROJECTION, selection, selectionArgs, null); in getContactNameFromPhone()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/ |
D | SqliteWrapper.java | 37 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 40 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query() 50 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument 53 return resolver.update(uri, values, where, selectionArgs); in update() 63 public static int delete(Context context, ContentResolver resolver, Uri uri, in delete() argument 66 return resolver.delete(uri, where, selectionArgs); in delete() 76 public static Uri insert(Context context, ContentResolver resolver, in insert() argument 79 return resolver.insert(uri, values); in insert()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 96 public MockContentResolver resolver; field in ContactsActor 308 resolver = new MockContentResolver(); in ContactsActor() 309 context = new RestrictionMockContext(overallContext, packageName, resolver, in ContactsActor() 349 mProviderContext = new IsolatedContext(resolver, targetContextWrapper) { in ContactsActor() 435 resolver.addProvider(a, provider); in addProvider() 436 resolver.addProvider("0@" + a, provider); in addProvider() 497 ContentResolver resolver, Set<String> grantedPermissions, in RestrictionMockContext() argument 501 mResolver = resolver; in RestrictionMockContext() 625 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact() 647 Uri dataUri = resolver.insert(insertUri, values); in createName() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobServiceTest.java | 210 ContentResolver resolver = mContext.getContentResolver(); in testNonDefaultDaysToRetain() local 211 Settings.Secure.putInt(resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN, in testNonDefaultDaysToRetain() 266 ContentResolver resolver = mContext.getContentResolver(); in disableSmartStorageIfPastThreshold() local 279 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED)) in disableSmartStorageIfPastThreshold() 285 ContentResolver resolver = mContext.getContentResolver(); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() local 288 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 1); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 300 resolver, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED)) in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast() 306 ContentResolver resolver = mContext.getContentResolver(); in logDisabledByPolicyIfPastThreshold() local 319 resolver, in logDisabledByPolicyIfPastThreshold() 326 ContentResolver resolver = mContext.getContentResolver(); in dontDisableSmartStorageIfNotPastThreshold() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | ContentProviderTask.java | 94 public void run(ContentResolver resolver, String authority, in run() argument 96 mResolver = resolver; in run() 104 public void run(ContentResolver resolver, Uri uri, ContentValues values) { in run() argument 109 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run() 116 public void run(ContentResolver resolver, Uri uri, ContentValues values, in run() argument 123 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run() 130 public void run(ContentResolver resolver, Uri uri, String selection, in run() argument 136 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 416 ContentResolver resolver = getContentResolver(); in createRawContact() local 419 results = resolver.applyBatch(ContactsContract.AUTHORITY, operations); in createRawContact() 425 callbackIntent.setData(RawContacts.getContactLookupUri(resolver, rawContactUri)); in createRawContact() 506 final ContentResolver resolver = getContentResolver(); in saveContact() local 537 … final int subsetCount = applyDiffSubset(diff, numberProcessed, results, resolver); in saveContact() 563 Cursor c = resolver.query(Profile.CONTENT_URI, in saveContact() 581 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); in saveContact() 629 resolver, sb.toString(), null, null); in saveContact() 681 ContentProviderResult[] results, ContentResolver resolver) in applyDiffSubset() argument 686 final ContentProviderResult[] subsetResult = resolver.applyBatch(ContactsContract in applyDiffSubset() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | Pop3Service.java | 210 FetchCallback(ContentResolver resolver, Uri attachmentUri) { in FetchCallback() argument 211 mResolver = resolver; in FetchCallback() 233 ContentResolver resolver = context.getContentResolver(); in synchronizePop3Mailbox() local 246 localUidCursor = resolver.query( in synchronizePop3Mailbox() 278 Cursor updates = resolver.query( in synchronizePop3Mailbox() 393 Cursor c = resolver.query(Attachment.CONTENT_URI, Attachment.CONTENT_PROJECTION, in synchronizePop3Mailbox() 406 resolver.update(ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId), in synchronizePop3Mailbox() 416 new FetchCallback(resolver, attUri)); in synchronizePop3Mailbox() 423 resolver.update(attUri, values, null, null); in synchronizePop3Mailbox() 432 resolver.delete(attUri, null, null); in synchronizePop3Mailbox() [all …]
|
D | PopImapSyncAdapterService.java | 110 ContentResolver resolver = context.getContentResolver(); in sync() 116 resolver.delete(Message.UPDATED_CONTENT_URI, MessageColumns.MAILBOX_KEY + "=?", in sync() 128 resolver.update(mailboxUri, values, null, null); in sync() 138 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 148 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, status, 0, in sync() 158 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 165 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 172 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 179 EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, in sync() 187 resolver.update(mailboxUri, values, null, null); in sync()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 146 private final ContentResolver resolver; field in MediaSaverImpl.ImageSaveTask 151 ExifInterface exif, ContentResolver resolver, in ImageSaveTask() argument 162 this.resolver = resolver; in ImageSaveTask() 183 resolver, title, date, loc, orientation, exif, data, width, height, in doInBackground() 208 private final ContentResolver resolver; field in MediaSaverImpl.VideoSaveTask 215 this.resolver = r; in VideoSaveTask() 223 uri = resolver.insert(videoTable, values); in doInBackground() 233 resolver.update(uri, values, null, null); in doInBackground()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 155 public static Thumbnail getLastThumbnail(ContentResolver resolver) { in getLastThumbnail() argument 156 Media image = getLastImageThumbnail(resolver); in getLastThumbnail() 157 Media video = getLastVideoThumbnail(resolver); in getLastThumbnail() 165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail() 169 bitmap = Video.Thumbnails.getThumbnail(resolver, video.id, in getLastThumbnail() 175 if (Util.isUriValid(lastMedia.uri, resolver)) { in getLastThumbnail() 195 public static Media getLastImageThumbnail(ContentResolver resolver) { in getLastImageThumbnail() argument 207 cursor = resolver.query(query, projection, selection, null, order); in getLastImageThumbnail() 221 private static Media getLastVideoThumbnail(ContentResolver resolver) { in getLastVideoThumbnail() argument 232 cursor = resolver.query(query, projection, selection, null, order); in getLastVideoThumbnail()
|