Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java78 ContentValues values = new ContentValues(); in testPeopleInsert() local
79 putContactValues(values); in testPeopleInsert()
81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
83 values = noStats(values); in testPeopleInsert()
85 assertStoredValues(uri, values); in testPeopleInsert()
87 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); in testPeopleInsert()
91 ContentValues values = new ContentValues(); in testPeopleUpdate() local
92 putContactValues(values); in testPeopleUpdate()
94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
95 values = noStats(values); in testPeopleUpdate()
[all …]
DCallLogProviderTest.java99 ContentValues values = getDefaultCallValues(); in testInsert_RegularCallRecord() local
100 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
101 values.put(Calls.COUNTRY_ISO, "us"); in testInsert_RegularCallRecord()
102 assertStoredValues(uri, values); in testInsert_RegularCallRecord()
103 assertSelection(uri, values, Calls._ID, ContentUris.parseId(uri)); in testInsert_RegularCallRecord()
116 final ContentValues values = getDefaultCallValues(); in testInsert_VoicemailCallRecord() local
117 values.put(Calls.TYPE, Calls.VOICEMAIL_TYPE); in testInsert_VoicemailCallRecord()
118 values.put(Calls.VOICEMAIL_URI, "content://foo/voicemail/2"); in testInsert_VoicemailCallRecord()
124 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
129 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
[all …]
DVoicemailProviderTest.java122 ContentValues values = getTestReadVoicemailValues(); in testInsertReadMessageIsNotNew() local
123 values.remove(Voicemails.NEW); in testInsertReadMessageIsNotNew()
124 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
138 assertCursorValues(c, values); in testInsertReadMessageIsNotNew()
176 ContentValues values = new ContentValues(); in testUpdate() local
177 values.put(Voicemails.NUMBER, "1-800-263-7643"); in testUpdate()
178 values.put(Voicemails.DATE, 2000); in testUpdate()
179 values.put(Voicemails.DURATION, 40); in testUpdate()
180 values.put(Voicemails.TRANSCRIPTION, "Testing 123"); in testUpdate()
181 values.put(Voicemails.STATE, 2); in testUpdate()
[all …]
DContactsProvider2Test.java995 ContentValues values = new ContentValues(); in testRawContactsInsert() local
997 values.put(RawContacts.ACCOUNT_NAME, "a"); in testRawContactsInsert()
998 values.put(RawContacts.ACCOUNT_TYPE, "b"); in testRawContactsInsert()
999 values.put(RawContacts.DATA_SET, "ds"); in testRawContactsInsert()
1000 values.put(RawContacts.SOURCE_ID, "c"); in testRawContactsInsert()
1001 values.put(RawContacts.VERSION, 42); in testRawContactsInsert()
1002 values.put(RawContacts.DIRTY, 1); in testRawContactsInsert()
1003 values.put(RawContacts.DELETED, 1); in testRawContactsInsert()
1004 values.put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); in testRawContactsInsert()
1005 values.put(RawContacts.CUSTOM_RINGTONE, "d"); in testRawContactsInsert()
[all …]
DBaseContactsProvider2Test.java192 ContentValues values = new ContentValues(); in updateItem() local
193 CommonDatabaseUtils.extrasVarArgsToValues(values, extras); in updateItem()
194 return mResolver.update(uri, values, null, null); in updateItem()
212 ContentValues values = new ContentValues(); in createGroup() local
213 values.put(Groups.SOURCE_ID, sourceId); in createGroup()
214 values.put(Groups.TITLE, title); in createGroup()
215 values.put(Groups.GROUP_VISIBLE, visible); in createGroup()
216 values.put(Groups.AUTO_ADD, autoAdd ? 1 : 0); in createGroup()
217 values.put(Groups.FAVORITES, favorite ? 1 : 0); in createGroup()
219 return ContentUris.parseId(mResolver.insert(uri, values)); in createGroup()
[all …]
DSearchIndexManagerTest.java55 ContentValues values = new ContentValues(); in testSearchIndexForStructuredName() local
56 values.put(StructuredName.DISPLAY_NAME, "Bob I. Parr"); in testSearchIndexForStructuredName()
57 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName()
58 values.clear(); in testSearchIndexForStructuredName()
59 values.put(StructuredName.PREFIX, "Mrs."); in testSearchIndexForStructuredName()
60 values.put(StructuredName.GIVEN_NAME, "Helen"); in testSearchIndexForStructuredName()
61 values.put(StructuredName.MIDDLE_NAME, "I."); in testSearchIndexForStructuredName()
62 values.put(StructuredName.FAMILY_NAME, "Parr"); in testSearchIndexForStructuredName()
63 values.put(StructuredName.SUFFIX, "PhD"); in testSearchIndexForStructuredName()
64 values.put(StructuredName.PHONETIC_FAMILY_NAME, "par"); in testSearchIndexForStructuredName()
[all …]
DGroupsTest.java162 ContentValues values = new ContentValues(); in testMarkAsDirtyParameter() local
163 values.put(Groups.NOTES, "New notes"); in testMarkAsDirtyParameter()
164 mResolver.update(updateUri, values, null, null); in testMarkAsDirtyParameter()
173 ContentValues values = new ContentValues(); in testGroupDirtyClearedWhenSetExplicitly() local
174 values.put(Groups.DIRTY, 0); in testGroupDirtyClearedWhenSetExplicitly()
175 values.put(Groups.NOTES, "other notes"); in testGroupDirtyClearedWhenSetExplicitly()
176 assertEquals(1, mResolver.update(uri, values, null, null)); in testGroupDirtyClearedWhenSetExplicitly()
209 ContentValues values = new ContentValues(); in testGroupVersionUpdates() local
210 values.put(Groups.TITLE, "title2"); in testGroupVersionUpdates()
211 mResolver.update(uri, values, null, null); in testGroupVersionUpdates()
[all …]
DContactsActor.java639 final ContentValues values = new ContentValues(); in createRawContact() local
641 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact()
655 final ContentValues values = new ContentValues(); in createName() local
656 values.put(Data.RAW_CONTACT_ID, contactId); in createName()
657 values.put(Data.IS_PRIMARY, 1); in createName()
658 values.put(Data.IS_SUPER_PRIMARY, 1); in createName()
659 values.put(Data.MIMETYPE, CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); in createName()
660 values.put(CommonDataKinds.StructuredName.FAMILY_NAME, name); in createName()
663 Uri dataUri = resolver.insert(insertUri, values); in createName()
669 final ContentValues values = new ContentValues(); in createPhone() local
[all …]
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/
DPublicApiAccessTest.java70 ContentValues values = buildValidValues(); in testMaximalValidWrite() local
71 values.put(Downloads.Impl.COLUMN_TITLE, "foo"); in testMaximalValidWrite()
72 values.put(Downloads.Impl.COLUMN_DESCRIPTION, "foo"); in testMaximalValidWrite()
73 values.put(Downloads.Impl.COLUMN_MIME_TYPE, "foo"); in testMaximalValidWrite()
74 values.put(Downloads.Impl.COLUMN_NOTIFICATION_PACKAGE, "foo"); in testMaximalValidWrite()
75 values.put(Downloads.Impl.COLUMN_ALLOWED_NETWORK_TYPES, 0); in testMaximalValidWrite()
76 values.put(Downloads.Impl.COLUMN_ALLOW_ROAMING, true); in testMaximalValidWrite()
77 values.put(Downloads.Impl.RequestHeaders.INSERT_KEY_PREFIX + "0", "X-Some-Header: value"); in testMaximalValidWrite()
78 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); in testMaximalValidWrite()
82 ContentValues values = new ContentValues(); in buildValidValues() local
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java565 final ContentValues values = computeDataValues(data); in testComputeDataValues_Grouped() local
566 assertVolume(values, "0000-0000"); in testComputeDataValues_Grouped()
567 assertBucket(values, "/storage/0000-0000/DCIM/Camera", "Camera"); in testComputeDataValues_Grouped()
568 assertGroup(values, "IMG1024"); in testComputeDataValues_Grouped()
569 assertDirectories(values, "DCIM/Camera/", "DCIM", "Camera"); in testComputeDataValues_Grouped()
575 ContentValues values; in testComputeDataValues_Extensions() local
577 values = computeDataValues("/storage/0000-0000/DCIM/Camera/IMG1024"); in testComputeDataValues_Extensions()
578 assertVolume(values, "0000-0000"); in testComputeDataValues_Extensions()
579 assertBucket(values, "/storage/0000-0000/DCIM/Camera", "Camera"); in testComputeDataValues_Extensions()
580 assertGroup(values, null); in testComputeDataValues_Extensions()
[all …]
DDatabaseHelperTest.java84 final ContentValues values = new ContentValues(); in assertDowngrade() local
85 values.put(FileColumns.DATA, in assertDowngrade()
87 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertDowngrade()
88 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertDowngrade()
89 values.put(FileColumns.DISPLAY_NAME, "global.jpg"); in assertDowngrade()
90 values.put(FileColumns.MEDIA_TYPE, FileColumns.MEDIA_TYPE_IMAGE); in assertDowngrade()
91 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertDowngrade()
124 final ContentValues values = new ContentValues(); in assertUpgrade() local
125 values.put(FileColumns.DATA, in assertUpgrade()
127 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertUpgrade()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java101 public long insert(String table, String nullColumnHack, ContentValues values) { in insert() argument
102 Set<String> packagesModified = getModifiedPackages(values); in insert()
104 values.put(Calls.LAST_MODIFIED, getTimeMillis()); in insert()
106 long rowId = mDb.insert(table, nullColumnHack, values); in insert()
118 public long insert(ContentValues values) { in insert() argument
119 Set<String> packagesModified = getModifiedPackages(values); in insert()
121 values.put(Calls.LAST_MODIFIED, getTimeMillis()); in insert()
123 long rowId = mInsertHelper.insert(values); in insert()
165 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument
168 packagesModified.addAll(getModifiedPackages(values)); in update()
[all …]
DDataRowHandler.java113 ContentValues values) { in insert() argument
116 handleHashIdForInsert(values); in insert()
117 final long dataId = db.insert(Tables.DATA, null, values); in insert()
119 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert()
120 final Integer superPrimary = values.getAsInteger(Data.IS_SUPER_PRIMARY); in insert()
143 if (containsSearchableColumns(values)) { in insert()
157 ContentValues values, Cursor c, boolean callerIsSyncAdapter, in update() argument
162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId, in update()
164 handleHashIdForUpdate(values, dataId); in update()
166 if (values.size() > 0) { in update()
[all …]
DDataRowHandlerForPhoto.java59 ContentValues values) { in insert() argument
61 if (values.containsKey(SKIP_PROCESSING_KEY)) { in insert()
62 values.remove(SKIP_PROCESSING_KEY); in insert()
65 if (!preProcessPhoto(values)) { in insert()
70 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
78 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
82 if (values.containsKey(SKIP_PROCESSING_KEY)) { in update()
83 values.remove(SKIP_PROCESSING_KEY); in update()
86 if (!preProcessPhoto(values)) { in update()
92 … if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) { in update()
[all …]
DLegacyApiSupport.java750 public Uri insert(Uri uri, ContentValues values) { in insert() argument
756 id = insertPeople(values); in insert()
760 id = insertOrganization(values); in insert()
765 id = insertContactMethod(rawContactId, values); in insert()
770 long rawContactId = getRequiredValue(values, ContactMethods.PERSON_ID); in insert()
771 id = insertContactMethod(rawContactId, values); in insert()
776 long rawContactId = getRequiredValue(values, in insert()
778 id = insertPhone(rawContactId, values); in insert()
784 id = insertPhone(rawContactId, values); in insert()
789 long rawContactId = getRequiredValue(values, in insert()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java733 ContentValues values = new ContentValues(); in updateEventsStartEndLocked() local
734 values.put(Events.DTSTART, get2445ToMillis(timezone, dtStart2445)); in updateEventsStartEndLocked()
735 values.put(Events.DTEND, get2445ToMillis(timezone, dtEnd2445)); in updateEventsStartEndLocked()
737 int result = mDb.update(Tables.EVENTS, values, SQL_WHERE_ID, in updateEventsStartEndLocked()
741 Log.v(TAG, "Could not update Events table with values " + values); in updateEventsStartEndLocked()
1690 private boolean fixAllDayTime(ContentValues values, ContentValues modValues) { in fixAllDayTime() argument
1691 Integer allDayObj = values.getAsInteger(Events.ALL_DAY); in fixAllDayTime()
1698 Long dtstart = values.getAsLong(Events.DTSTART); in fixAllDayTime()
1699 Long dtend = values.getAsLong(Events.DTEND); in fixAllDayTime()
1700 String duration = values.getAsString(Events.DURATION); in fixAllDayTime()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java81 final ContentValues values = new ContentValues(); in testImIntentCustom() local
82 values.put(Im.MIMETYPE, Im.CONTENT_ITEM_TYPE); in testImIntentCustom()
83 values.put(Im.TYPE, Im.TYPE_HOME); in testImIntentCustom()
84 values.put(Im.PROTOCOL, Im.PROTOCOL_CUSTOM); in testImIntentCustom()
85 values.put(Im.CUSTOM_PROTOCOL, TEST_PROTOCOL); in testImIntentCustom()
86 values.put(Im.DATA, TEST_ADDRESS); in testImIntentCustom()
87 final ImDataItem im = (ImDataItem) DataItem.createFrom(values); in testImIntentCustom()
104 final ContentValues values = new ContentValues(); in testImIntent() local
105 values.put(Im.MIMETYPE, Im.CONTENT_ITEM_TYPE); in testImIntent()
106 values.put(Im.TYPE, Im.TYPE_HOME); in testImIntent()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java306 public Uri insert(Uri uri, ContentValues values) { in insert() argument
320 Object msgBoxObj = values.getAsInteger(Mms.MESSAGE_BOX); in insert()
369 boolean addDate = !values.containsKey(Mms.DATE); in insert()
370 boolean addMsgBox = !values.containsKey(Mms.MESSAGE_BOX); in insert()
373 filterUnsupportedKeys(values); in insert()
377 finalValues = new ContentValues(values); in insert()
395 Long threadId = values.getAsLong(Mms.THREAD_ID); in insert()
396 String address = values.getAsString(CanonicalAddressesColumns.ADDRESS); in insert()
422 finalValues = new ContentValues(values); in insert()
432 boolean containsDataPath = values != null && values.containsKey(Part._DATA); in insert()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporter.java137 ContentValues values = new ContentValues(); in createCalendar() local
139 values.put(CalendarContract.Calendars.ACCOUNT_NAME, DEFAULT_ACCOUNT_NAME); in createCalendar()
140 values.put(CalendarContract.Calendars.OWNER_ACCOUNT, calendar.getAccountName()); in createCalendar()
141 values.put(CalendarContract.Calendars.ACCOUNT_TYPE, CalendarContract.ACCOUNT_TYPE_LOCAL); in createCalendar()
142 values.put(CalendarContract.Calendars.NAME, calendar.getTitle()); in createCalendar()
143 values.put(CalendarContract.Calendars.CALENDAR_DISPLAY_NAME, calendar.getTitle()); in createCalendar()
144 values.put(CalendarContract.Calendars._SYNC_ID, calendar.getUuid()); in createCalendar()
146 values.put(CalendarContract.Calendars.CALENDAR_COLOR, calendar.getColor().getArgb()); in createCalendar()
148 values.put(CalendarContract.Calendars.VISIBLE, 1); in createCalendar()
149 values.put(CalendarContract.Calendars.SYNC_EVENTS, 1); in createCalendar()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java419 ContentValues values = new ContentValues(); in fillNullValues() local
420 values.put(Downloads.Impl.COLUMN_CURRENT_BYTES, 0); in fillNullValues()
421 fillNullValuesForColumn(db, values); in fillNullValues()
422 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, -1); in fillNullValues()
423 fillNullValuesForColumn(db, values); in fillNullValues()
424 values.put(Downloads.Impl.COLUMN_TITLE, ""); in fillNullValues()
425 fillNullValuesForColumn(db, values); in fillNullValues()
426 values.put(Downloads.Impl.COLUMN_DESCRIPTION, ""); in fillNullValues()
427 fillNullValuesForColumn(db, values); in fillNullValues()
430 private void fillNullValuesForColumn(SQLiteDatabase db, ContentValues values) { in fillNullValuesForColumn() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java377 ValuesDelta values = state.getValues(); in trimEmpty() local
378 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty()
379 final String dataSet = values.getAsString(RawContacts.DATA_SET); in trimEmpty()
396 ValuesDelta values = state.getValues(); in hasChanges() local
397 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in hasChanges()
398 final String dataSet = values.getAsString(RawContacts.DATA_SET); in hasChanges()
476 public static boolean isEmpty(ValuesDelta values, DataKind kind) { in isEmpty() argument
478 return values.isInsert() && values.getAsByteArray(Photo.PHOTO) == null; in isEmpty()
486 final String value = values.getAsString(field.column); in isEmpty()
585 ArrayList<ContentValues> values = extras.getParcelableArrayList(Insert.DATA); in parseExtras() local
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DParametersTest.java73 ContentValues values = new ContentValues(); in createDummyChannelValues() local
74 values.put(Channels.COLUMN_INPUT_ID, FAKE_INPUT_ID); in createDummyChannelValues()
75 values.put(Channels.COLUMN_INTERNAL_PROVIDER_ID, "ID-4321"); in createDummyChannelValues()
76 values.put(Channels.COLUMN_TYPE, preview ? Channels.TYPE_PREVIEW : Channels.TYPE_OTHER); in createDummyChannelValues()
77 values.put(Channels.COLUMN_SERVICE_TYPE, Channels.SERVICE_TYPE_AUDIO_VIDEO); in createDummyChannelValues()
78 values.put(Channels.COLUMN_DISPLAY_NUMBER, "1"); in createDummyChannelValues()
79 values.put(Channels.COLUMN_VIDEO_FORMAT, Channels.VIDEO_FORMAT_480P); in createDummyChannelValues()
80 values.put(Channels.COLUMN_SEARCHABLE, searchable); in createDummyChannelValues()
82 return values; in createDummyChannelValues()
99 private void insertChannelWithPackageName(ContentValues values, String packageName) { in insertChannelWithPackageName() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java382 final ContentValues values = new ContentValues(); in createConversationInTransaction() local
383 values.put(ConversationColumns.SMS_THREAD_ID, threadId); in createConversationInTransaction()
385 values.put(ConversationColumns.SORT_TIMESTAMP, 0L); in createConversationInTransaction()
386 values.put(ConversationColumns.CURRENT_SELF_ID, selfId); in createConversationInTransaction()
387 values.put(ConversationColumns.PARTICIPANT_COUNT, participants.size()); in createConversationInTransaction()
388 values.put(ConversationColumns.INCLUDE_EMAIL_ADDRESS, (hasEmailAddress ? 1 : 0)); in createConversationInTransaction()
390 values.put(ConversationColumns.ARCHIVE_STATUS, 1); in createConversationInTransaction()
393 values.put(ConversationColumns.NOTIFICATION_ENABLED, 0); in createConversationInTransaction()
396 values.put(ConversationColumns.NOTIFICATION_VIBRATION, 0); in createConversationInTransaction()
399 values.put(ConversationColumns.NOTIFICATION_SOUND_URI, soundUri); in createConversationInTransaction()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DSmsProviderTest.java164 final ContentValues values = new ContentValues(); in testInsertUri() local
165 values.put(Telephony.Sms.SUBSCRIPTION_ID, 1); in testInsertUri()
166 values.put(Telephony.Sms.ADDRESS, "12345"); in testInsertUri()
167 values.put(Telephony.Sms.BODY, "test"); in testInsertUri()
168 values.put(Telephony.Sms.DATE, System.currentTimeMillis()); // milliseconds in testInsertUri()
169 values.put(Telephony.Sms.SEEN, 1); in testInsertUri()
170 values.put(Telephony.Sms.READ, 1); in testInsertUri()
171 values.put(Telephony.Sms.THREAD_ID, 1); in testInsertUri()
174 Log.d(TAG, "testInsertSmsTable Inserting contentValues: " + values); in testInsertUri()
176 mContentResolver.insert(Uri.parse("content://sms"), values)); in testInsertUri()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java151 ContentValues values = new ContentValues(); in restoreData() local
152 values.put(FIELD_APPWIDGET_ID, entry.widgetId); in restoreData()
153 values.put(FIELD_WIDGET_TYPE, entry.type); in restoreData()
154 values.put(FIELD_IMAGE_URI, entry.imageUri); in restoreData()
155 values.put(FIELD_PHOTO_BLOB, entry.imageData); in restoreData()
156 values.put(FIELD_ALBUM_PATH, entry.albumPath); in restoreData()
157 db.insert(TABLE_WIDGETS, null, values); in restoreData()
203 ContentValues values = new ContentValues(); in setPhoto() local
204 values.put(FIELD_APPWIDGET_ID, appWidgetId); in setPhoto()
205 values.put(FIELD_WIDGET_TYPE, TYPE_SINGLE_PHOTO); in setPhoto()
[all …]

12345678910>>...36