/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 | 32 public static void assertDeleteIsUnsupported(ContentResolver resolver, Uri uri) { in assertDeleteIsUnsupported() argument 34 resolver.delete(uri, null, null); in assertDeleteIsUnsupported() 42 public static void assertInsertIsUnsupported(ContentResolver resolver, Uri uri) { in assertInsertIsUnsupported() argument 45 resolver.insert(uri, values); in assertInsertIsUnsupported() 58 public static ContactIdPair assertAndCreateContact(ContentResolver resolver) { in assertAndCreateContact() argument 59 return assertAndCreateContact(resolver, null); in assertAndCreateContact() 67 public static ContactIdPair assertAndCreateContact(ContentResolver resolver, Account account) { in assertAndCreateContact() argument 68 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account); in assertAndCreateContact() 70 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() 81 public static ContactIdPair assertAndCreateContactWithName(ContentResolver resolver, in assertAndCreateContactWithName() argument [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/MediaProvider/tests/src/com/android/providers/media/ |
D | IdleServiceTest.java | 101 final ContentResolver resolver = context.getContentResolver(); in testPruneThumbnails() local 104 MediaStore.runIdleMaintenance(resolver); in testPruneThumbnails() 105 MediaStore.waitForIdle(resolver); in testPruneThumbnails() 113 final Uri uri = MediaStore.scanFile(resolver, file); in testPruneThumbnails() 117 MediaStore.waitForIdle(resolver); in testPruneThumbnails() 126 MediaStore.runIdleMaintenance(resolver); in testPruneThumbnails() 140 MediaStore.runIdleMaintenance(resolver); in testPruneThumbnails() 154 final ContentResolver resolver = context.getContentResolver(); in testExtendTrashedItemsHaveSameName() local 158 final Uri uri1 = createExpiredTrashedItem(resolver, dateExpires1, displayName); in testExtendTrashedItemsHaveSameName() 161 final Uri uri2 = createExpiredTrashedItem(resolver, dateExpires2, displayName); in testExtendTrashedItemsHaveSameName() [all …]
|
D | MediaDocumentsProviderTest.java | 84 final ContentResolver resolver = isolatedContext.getContentResolver(); in testSimple() local 89 assertProbe(resolver, "root"); in testSimple() 97 assertProbe(resolver, "root", root, "search"); in testSimple() 99 assertProbe(resolver, "document", root); in testSimple() 100 assertProbe(resolver, "document", root, "children"); in testSimple() 108 assertProbe(resolver, "root", recent, "recent"); in testSimple() 116 assertProbe(resolver, "document", dir, "children"); in testSimple() 131 assertProbe(resolver, "document", item); in testSimple() 140 final ContentResolver resolver = isolatedContext.getContentResolver(); in testOpenFile() local 156 assertOpenFile(resolver, item); in testOpenFile() [all …]
|
/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/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactsProviderUtilTest.java | 59 ContentResolver resolver = mContext.getContentResolver(); in testGetUpdatedContactIds_getAll() local 63 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds_getAll() 80 ContentResolver resolver = mContext.getContentResolver(); in testGetUpdatedContactIds_getNone() local 83 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds_getNone() 97 ContentResolver resolver = mContext.getContentResolver(); in testGetUpdatedContactIds() local 100 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds() 105 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds() 120 ContentResolver resolver = mContext.getContentResolver(); in testGetDeletedContactIds_getAll() local 123 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetDeletedContactIds_getAll() 127 resolver.delete(ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, i), in testGetDeletedContactIds_getAll() [all …]
|
D | ContactsIndexerUserInstanceTest.java | 161 ContentResolver resolver = mContext.getContentResolver(); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() local 164 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() 175 ContentResolver resolver = mContext.getContentResolver(); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() local 178 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() 206 ContentResolver resolver = mContext.getContentResolver(); in testHandleNotificationDuringUpdate_oneAdditionalUpdateWillBeRun() local 210 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleNotificationDuringUpdate_oneAdditionalUpdateWillBeRun() 219 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleNotificationDuringUpdate_oneAdditionalUpdateWillBeRun() 284 ContentResolver resolver = mContext.getContentResolver(); in testStart_initialRun_schedulesFullUpdateJob() local 287 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testStart_initialRun_schedulesFullUpdateJob() 337 ContentResolver resolver = mContext.getContentResolver(); in testStart_subsequentRun_doesNotScheduleFullUpdateJob() local [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtil.java | 125 public static boolean isInputMethodEnabled(ContentResolver resolver, in isInputMethodEnabled() argument 127 sInputMethodSplitter.setString(getEnabledInputMethodsConcatenatedIds(resolver)); in isInputMethodEnabled() 140 public static void enableInputMethod(ContentResolver resolver, in enableInputMethod() argument 142 if (isInputMethodEnabled(resolver, inputMethodInfo)) { in enableInputMethod() 147 builder.append(getEnabledInputMethodsConcatenatedIds(resolver)); in enableInputMethod() 155 setEnabledInputMethodsConcatenatedIds(resolver, builder.toString()); in enableInputMethod() 196 private static String getEnabledInputMethodsConcatenatedIds(ContentResolver resolver) { in getEnabledInputMethodsConcatenatedIds() argument 197 return Settings.Secure.getString(resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsConcatenatedIds() 200 private static String getDefaultInputMethodId(ContentResolver resolver) { in getDefaultInputMethodId() argument 201 return Settings.Secure.getString(resolver, Settings.Secure.DEFAULT_INPUT_METHOD); in getDefaultInputMethodId() [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | ArchivesProviderTest.java | 81 final ContentResolver resolver = mContext.getContentResolver(); in testQueryRoots() local 83 try (ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testQueryRoots() 101 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Success() local 104 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Success() 109 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 120 resolver.registerContentObserver(notificationUri, false, new ContentObserver(null) { in testOpen_Success() 130 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() 153 final ContentResolver resolver = mContext.getContentResolver(); in testOpen_Failure() local 156 final ContentProviderClient client = resolver.acquireUnstableContentProviderClient( in testOpen_Failure() 162 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Failure() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | InputMethodAndSubtypeUtilCompat.java | 86 private static int getInputMethodSubtypeSelected(ContentResolver resolver) { in getInputMethodSubtypeSelected() argument 88 return Settings.Secure.getInt(resolver, in getInputMethodSubtypeSelected() 95 private static boolean isInputMethodSubtypeSelected(ContentResolver resolver) { in isInputMethodSubtypeSelected() argument 96 return getInputMethodSubtypeSelected(resolver) != NOT_A_SUBTYPE_ID; in isInputMethodSubtypeSelected() 99 private static void putSelectedInputMethodSubtype(ContentResolver resolver, int hashCode) { in putSelectedInputMethodSubtype() argument 100 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); in putSelectedInputMethodSubtype() 105 ContentResolver resolver) { in getEnabledInputMethodsAndSubtypeList() argument 107 resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsAndSubtypeList() 137 private static HashSet<String> getDisabledSystemIMEs(ContentResolver resolver) { in getDisabledSystemIMEs() argument 140 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); in getDisabledSystemIMEs() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | BucketHelper.java | 75 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntries() argument 77 return loadBucketEntriesFromFilesTable(jc, resolver, type); in loadBucketEntries() 79 return loadBucketEntriesFromImagesAndVideoTable(jc, resolver, type); in loadBucketEntries() 84 ContentResolver resolver, Uri tableUri, HashMap<Integer, BucketEntry> buckets) { in updateBucketEntriesFromTable() argument 85 Cursor cursor = resolver.query(tableUri, PROJECTION_BUCKET_IN_ONE_TABLE, in updateBucketEntriesFromTable() 110 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromImagesAndVideoTable() argument 114 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 118 jc, resolver, Video.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable() 132 JobContext jc, ContentResolver resolver, int type) { in loadBucketEntriesFromFilesTable() argument 135 Cursor cursor = resolver.query(uri, PROJECTION_BUCKET, null, null, null); in loadBucketEntriesFromFilesTable() [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/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBroadcastReceiverTest.java | 90 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_toggleChanged() local 91 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_toggleChanged() 112 verify(resolver).notifyChange(uri, null); in onReceive_toggleChanged() 119 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_synchronously_notifyChange_should_be_called() local 120 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_synchronously_notifyChange_should_be_called() 144 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_synchronously_notifyChange_should_be_called() 151 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local 152 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 165 verify(resolver, never()).notifyChange(null, null); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 173 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_sliderChanged() local [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 511 final ContentResolver resolver = getContext().getContentResolver(); in getDocumentMetadataFromIndex() local 515 cursor = resolver.query( in getDocumentMetadataFromIndex() 605 final ContentResolver resolver = getContext().getContentResolver(); in queryDocument() local 618 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 621 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument() 627 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument() 630 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument() 639 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() 642 result.setNotificationUri(resolver, Video.Media.EXTERNAL_CONTENT_URI); in queryDocument() 648 cursor = resolver.query(Video.Media.EXTERNAL_CONTENT_URI, in queryDocument() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | AlwaysOnDisplaySliceTest.java | 113 final ContentResolver resolver = mContext.getContentResolver(); in onNotifyChange_toggleOff_disableAoD() local 114 assertThat(Settings.Secure.getInt(resolver, DOZE_ALWAYS_ON, 0)).isEqualTo(0); in onNotifyChange_toggleOff_disableAoD() 115 assertThat(Settings.Secure.getInt(resolver, DOZE_WAKE_DISPLAY_GESTURE, 0)).isEqualTo(0); in onNotifyChange_toggleOff_disableAoD() 127 final ContentResolver resolver = mContext.getContentResolver(); in onNotifyChange_toggleOn_awareNotSupported_enableAoD() local 128 assertThat(Settings.Secure.getInt(resolver, DOZE_ALWAYS_ON, 0)).isEqualTo(1); in onNotifyChange_toggleOn_awareNotSupported_enableAoD() 129 assertThat(Settings.Secure.getInt(resolver, DOZE_WAKE_DISPLAY_GESTURE, 0)).isEqualTo(0); in onNotifyChange_toggleOn_awareNotSupported_enableAoD() 141 final ContentResolver resolver = mContext.getContentResolver(); in onNotifyChange_toggleOn_awareDisabled_enableAoD() local 142 assertThat(Settings.Secure.getInt(resolver, DOZE_ALWAYS_ON, 0)).isEqualTo(1); in onNotifyChange_toggleOn_awareDisabled_enableAoD() 143 assertThat(Settings.Secure.getInt(resolver, DOZE_WAKE_DISPLAY_GESTURE, 0)).isEqualTo(0); in onNotifyChange_toggleOn_awareDisabled_enableAoD() 155 final ContentResolver resolver = mContext.getContentResolver(); in onNotifyChange_toggleOn_awareSupported_enableAoD() local [all …]
|
/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/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | PerformanceTest.java | 97 final ContentResolver resolver = InstrumentationRegistry.getContext().getContentResolver(); in doSingle() local 100 MediaStore.waitForIdle(resolver); in doSingle() 110 res = resolver.insert(collection, values); in doSingle() 117 MediaStore.waitForIdle(resolver); in doSingle() 126 resolver.update(res, values, null); in doSingle() 133 MediaStore.waitForIdle(resolver); in doSingle() 139 resolver.delete(res, null); in doSingle() 146 MediaStore.waitForIdle(resolver); in doSingle() 166 final ContentResolver resolver = InstrumentationRegistry.getContext().getContentResolver(); in doBulk() local 169 MediaStore.waitForIdle(resolver); in doBulk() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 100 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument 104 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 129 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument 135 return addImageToMediaStore(resolver, title, date, location, orientation, data.length, in addImage() 159 public Uri addImageToMediaStore(ContentResolver resolver, String title, long date, in addImageToMediaStore() argument 167 uri = resolver.insert(Media.EXTERNAL_CONTENT_URI, values); in addImageToMediaStore() 168 writeBitmap(uri, exif, bitmap, resolver); in addImageToMediaStore() 177 resolver.delete(uri, null, null); in addImageToMediaStore() 183 private void writeBitmap(Uri uri, ExifInterface exif, Bitmap bitmap, ContentResolver resolver) in writeBitmap() argument 185 OutputStream os = resolver.openOutputStream(uri); in writeBitmap() [all …]
|
/packages/providers/MediaProvider/apex/framework/java/android/provider/ |
D | MediaStore.java | 1080 public static void startLegacyMigration(@NonNull ContentResolver resolver, in startLegacyMigration() argument 1083 resolver.call(AUTHORITY_LEGACY, START_LEGACY_MIGRATION_CALL, volumeName, null); in startLegacyMigration() 1096 public static void finishLegacyMigration(@NonNull ContentResolver resolver, in finishLegacyMigration() argument 1099 resolver.call(AUTHORITY_LEGACY, FINISH_LEGACY_MIGRATION_CALL, volumeName, null); in finishLegacyMigration() 1105 private static @NonNull PendingIntent createRequest(@NonNull ContentResolver resolver, in createRequest() argument 1107 Objects.requireNonNull(resolver); in createRequest() 1119 return resolver.call(AUTHORITY, method, null, extras).getParcelable(EXTRA_RESULT); in createRequest() 1166 public static @NonNull PendingIntent createWriteRequest(@NonNull ContentResolver resolver, in createWriteRequest() argument 1168 return createRequest(resolver, CREATE_WRITE_REQUEST_CALL, uris, null); in createWriteRequest() 1201 public static @NonNull PendingIntent createTrashRequest(@NonNull ContentResolver resolver, in createTrashRequest() argument [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | SmsMmsContacts.java | 76 public String getPhoneNumber(ContentResolver resolver, long id) { in getPhoneNumber() argument 81 fillPhoneCache(resolver); in getPhoneNumber() 85 public static String getPhoneNumberUncached(ContentResolver resolver, long id) { in getPhoneNumberUncached() argument 87 Cursor c = BluetoothMethodProxy.getInstance().contentResolverQuery(resolver, ADDRESS_URI, in getPhoneNumberUncached() 122 void fillPhoneCache(ContentResolver resolver) { in fillPhoneCache() argument 123 Cursor c = BluetoothMethodProxy.getInstance().contentResolverQuery(resolver, ADDRESS_URI, in fillPhoneCache() 154 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver) { in getContactNameFromPhone() argument 155 return getContactNameFromPhone(phone, resolver, null); in getContactNameFromPhone() 164 public MapContact getContactNameFromPhone(String phone, ContentResolver resolver, in getContactNameFromPhone() argument 196 Cursor c = BluetoothMethodProxy.getInstance().contentResolverQuery(resolver, uri, in getContactNameFromPhone()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | DataMigration.java | 138 ContentResolver resolver = ctx.getContentResolver(); in bluetoothDatabaseMigration() local 139 Cursor cursor = resolver.query( in bluetoothDatabaseMigration() 149 resolver.call(AUTHORITY, FINISH_MIGRATION_CALL, BLUETOOTH_DATABASE, null); in bluetoothDatabaseMigration() 160 ContentResolver resolver = ctx.getContentResolver(); in oppDatabaseMigration() local 161 Cursor cursor = resolver.query( in oppDatabaseMigration() 171 resolver.call(AUTHORITY, FINISH_MIGRATION_CALL, OPP_DATABASE, null); in oppDatabaseMigration() 205 ContentResolver resolver = ctx.getContentResolver(); in sharedPreferencesMigration() local 206 Bundle b = resolver.call(AUTHORITY, START_MIGRATION_CALL, prefKey, null); in sharedPreferencesMigration() 229 resolver.call(AUTHORITY, FINISH_MIGRATION_CALL, prefKey, null); in sharedPreferencesMigration() 255 ContentResolver resolver = ctx.getContentResolver(); in isMigrationApkInstalled() local [all …]
|