Home
last modified time | relevance | path

Searched refs:resolver (Results 1 – 25 of 222) sorted by relevance

123456789

/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DRawContactUtil.java36 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 …]
DDatabaseAsserts.java32 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 …]
DDataUtil.java34 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 …]
DContactUtil.java33 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()
DDeletedContactUtil.java35 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/
DUtils.java40 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/
DShadowSecureSettings.java38 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/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java91 final ContentResolver resolver = context.getContentResolver(); in testPruneThumbnails() local
95 runIdleMaintenance(resolver); in testPruneThumbnails()
96 MediaStore.waitForIdle(resolver); in testPruneThumbnails()
104 final Uri uri = MediaStore.scanFile(resolver, file); in testPruneThumbnails()
108 MediaStore.waitForIdle(resolver); in testPruneThumbnails()
117 runIdleMaintenance(resolver); in testPruneThumbnails()
131 runIdleMaintenance(resolver); in testPruneThumbnails()
141 final ContentResolver resolver = context.getContentResolver(); in testExtendTrashedItemExpiresOverOneWeek() local
149 final Uri uri = MediaStore.scanFile(resolver, file); in testExtendTrashedItemExpiresOverOneWeek()
151 MediaStore.waitForIdle(resolver); in testExtendTrashedItemExpiresOverOneWeek()
[all …]
DMediaDocumentsProviderTest.java81 final ContentResolver resolver = isolatedContext.getContentResolver(); in testSimple() local
86 assertProbe(resolver, "root"); in testSimple()
94 assertProbe(resolver, "root", root, "search"); in testSimple()
96 assertProbe(resolver, "document", root); in testSimple()
97 assertProbe(resolver, "document", root, "children"); in testSimple()
105 assertProbe(resolver, "root", recent, "recent"); in testSimple()
113 assertProbe(resolver, "document", dir, "children"); in testSimple()
128 assertProbe(resolver, "document", item); in testSimple()
141 final ContentResolver resolver = isolatedContext.getContentResolver(); in testTraverse() local
147 try (Cursor c = resolver.query(roots, null, null, null)) { in testTraverse()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java81 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/Car/Settings/src/com/android/car/settings/inputmethod/
DInputMethodUtil.java117 public static boolean isInputMethodEnabled(ContentResolver resolver, in isInputMethodEnabled() argument
119 sInputMethodSplitter.setString(getEnabledInputMethodsConcatenatedIds(resolver)); in isInputMethodEnabled()
132 public static void enableInputMethod(ContentResolver resolver, in enableInputMethod() argument
134 if (isInputMethodEnabled(resolver, inputMethodInfo)) { in enableInputMethod()
139 builder.append(getEnabledInputMethodsConcatenatedIds(resolver)); in enableInputMethod()
147 setEnabledInputMethodsConcatenatedIds(resolver, builder.toString()); in enableInputMethod()
188 private static String getEnabledInputMethodsConcatenatedIds(ContentResolver resolver) { in getEnabledInputMethodsConcatenatedIds() argument
189 return Settings.Secure.getString(resolver, Settings.Secure.ENABLED_INPUT_METHODS); in getEnabledInputMethodsConcatenatedIds()
192 private static String getDefaultInputMethodId(ContentResolver resolver) { in getDefaultInputMethodId() argument
193 return Settings.Secure.getString(resolver, Settings.Secure.DEFAULT_INPUT_METHOD); in getDefaultInputMethodId()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java75 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/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java511 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/slices/
DSliceBroadcastReceiverTest.java88 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_toggleChanged() local
89 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_toggleChanged()
110 verify(resolver).notifyChange(uri, null); in onReceive_toggleChanged()
116 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_synchronously_notifyChange_should_be_called() local
117 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_synchronously_notifyChange_should_be_called()
141 verify(resolver).notifyChange(expectedUri, null); in toggleUpdate_synchronously_notifyChange_should_be_called()
147 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() local
148 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
161 verify(resolver, never()).notifyChange(null, null); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
168 final ContentResolver resolver = mock(ContentResolver.class); in onReceive_sliderChanged() local
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowSecureSettings.java32 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/display/
DAlwaysOnDisplaySliceTest.java113 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/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPerformanceTest.java97 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/
DStorage.java100 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/apps/Messaging/src/com/android/messaging/mmslib/
DSqliteWrapper.java37 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/apps/Bluetooth/src/com/android/bluetooth/map/
DSmsMmsContacts.java70 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/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java952 public static void startLegacyMigration(@NonNull ContentResolver resolver, in startLegacyMigration() argument
955 resolver.call(AUTHORITY_LEGACY, START_LEGACY_MIGRATION_CALL, volumeName, null); in startLegacyMigration()
968 public static void finishLegacyMigration(@NonNull ContentResolver resolver, in finishLegacyMigration() argument
971 resolver.call(AUTHORITY_LEGACY, FINISH_LEGACY_MIGRATION_CALL, volumeName, null); in finishLegacyMigration()
977 private static @NonNull PendingIntent createRequest(@NonNull ContentResolver resolver, in createRequest() argument
979 Objects.requireNonNull(resolver); in createRequest()
991 return resolver.call(AUTHORITY, method, null, extras).getParcelable(EXTRA_RESULT); in createRequest()
1038 public static @NonNull PendingIntent createWriteRequest(@NonNull ContentResolver resolver, in createWriteRequest() argument
1040 return createRequest(resolver, CREATE_WRITE_REQUEST_CALL, uris, null); in createWriteRequest()
1073 public static @NonNull PendingIntent createTrashRequest(@NonNull ContentResolver resolver, in createTrashRequest() argument
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java210 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java103 public MockContentResolver resolver; field in ContactsActor
319 resolver = new MockContentResolver(); in ContactsActor()
320 context = new RestrictionMockContext(overallContext, packageName, resolver, in ContactsActor()
363 mProviderContext = new IsolatedContext(resolver, targetContextWrapper) { in ContactsActor()
459 resolver.addProvider(a, provider); in addProvider()
460 resolver.addProvider("0@" + a, provider); in addProvider()
521 ContentResolver resolver, Set<String> grantedPermissions, in RestrictionMockContext() argument
525 mResolver = resolver; in RestrictionMockContext()
649 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact()
671 Uri dataUri = resolver.insert(insertUri, values); in createName()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DVibratorWrapper.java59 final ContentResolver resolver = context.getContentResolver(); in VibratorWrapper() local
60 mIsHapticFeedbackEnabled = isHapticFeedbackEnabled(resolver); in VibratorWrapper()
64 mIsHapticFeedbackEnabled = isHapticFeedbackEnabled(resolver); in VibratorWrapper()
67 resolver.registerContentObserver(Settings.System.getUriFor(HAPTIC_FEEDBACK_ENABLED), in VibratorWrapper()
74 private boolean isHapticFeedbackEnabled(ContentResolver resolver) { in isHapticFeedbackEnabled() argument
75 return Settings.System.getInt(resolver, HAPTIC_FEEDBACK_ENABLED, 0) == 1; in isHapticFeedbackEnabled()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java416 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 …]

123456789