Home
last modified time | relevance | path

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

12345678910>>...31

/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 …]
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 …]
DCallLogProviderTest.java94 ContentValues values = getDefaultCallValues(); in testInsert_RegularCallRecord() local
95 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
96 values.put(Calls.COUNTRY_ISO, "us"); in testInsert_RegularCallRecord()
97 assertStoredValues(uri, values); in testInsert_RegularCallRecord()
98 assertSelection(uri, values, Calls._ID, ContentUris.parseId(uri)); in testInsert_RegularCallRecord()
111 final ContentValues values = getDefaultCallValues(); in testInsert_VoicemailCallRecord() local
112 values.put(Calls.TYPE, Calls.VOICEMAIL_TYPE); in testInsert_VoicemailCallRecord()
113 values.put(Calls.VOICEMAIL_URI, "content://foo/voicemail/2"); in testInsert_VoicemailCallRecord()
119 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
124 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
[all …]
DVoicemailProviderTest.java98 ContentValues values = getTestReadVoicemailValues(); in testInsertReadMessageIsNotNew() local
99 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
112 assertCursorValues(c, values); in testInsertReadMessageIsNotNew()
142 ContentValues values = new ContentValues(); in testUpdate() local
143 values.put(Voicemails.NUMBER, "1-800-263-7643"); in testUpdate()
144 values.put(Voicemails.DATE, 2000); in testUpdate()
145 values.put(Voicemails.DURATION, 40); in testUpdate()
146 values.put(Voicemails.TRANSCRIPTION, "Testing 123"); in testUpdate()
147 values.put(Voicemails.STATE, 2); in testUpdate()
148 values.put(Voicemails.HAS_CONTENT, 1); in testUpdate()
[all …]
DContactsProvider2Test.java958 ContentValues values = new ContentValues(); in testRawContactsInsert() local
960 values.put(RawContacts.ACCOUNT_NAME, "a"); in testRawContactsInsert()
961 values.put(RawContacts.ACCOUNT_TYPE, "b"); in testRawContactsInsert()
962 values.put(RawContacts.DATA_SET, "ds"); in testRawContactsInsert()
963 values.put(RawContacts.SOURCE_ID, "c"); in testRawContactsInsert()
964 values.put(RawContacts.VERSION, 42); in testRawContactsInsert()
965 values.put(RawContacts.DIRTY, 1); in testRawContactsInsert()
966 values.put(RawContacts.DELETED, 1); in testRawContactsInsert()
967 values.put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); in testRawContactsInsert()
968 values.put(RawContacts.CUSTOM_RINGTONE, "d"); in testRawContactsInsert()
[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.java579 final ContentValues values = new ContentValues(); in createRawContact() local
581 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); in createRawContact()
595 final ContentValues values = new ContentValues(); in createName() local
596 values.put(Data.RAW_CONTACT_ID, contactId); in createName()
597 values.put(Data.IS_PRIMARY, 1); in createName()
598 values.put(Data.IS_SUPER_PRIMARY, 1); in createName()
599 values.put(Data.MIMETYPE, CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); in createName()
600 values.put(CommonDataKinds.StructuredName.FAMILY_NAME, name); in createName()
603 Uri dataUri = resolver.insert(insertUri, values); in createName()
609 final ContentValues values = new ContentValues(); in createPhone() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseResultLoaderTest.java234 ContentValues values = new ContentValues(); in insertSpecialCase() local
235 values.put(IndexDatabaseHelper.IndexColumns.DOCID, normalized.hashCode()); in insertSpecialCase()
236 values.put(IndexDatabaseHelper.IndexColumns.LOCALE, "en-us"); in insertSpecialCase()
237 values.put(IndexDatabaseHelper.IndexColumns.DATA_RANK, 1); in insertSpecialCase()
238 values.put(IndexDatabaseHelper.IndexColumns.DATA_TITLE, specialCase); in insertSpecialCase()
239 values.put(IndexDatabaseHelper.IndexColumns.DATA_TITLE_NORMALIZED, normalized); in insertSpecialCase()
240 values.put(IndexDatabaseHelper.IndexColumns.DATA_SUMMARY_ON, ""); in insertSpecialCase()
241 values.put(IndexDatabaseHelper.IndexColumns.DATA_SUMMARY_ON_NORMALIZED, ""); in insertSpecialCase()
242 values.put(IndexDatabaseHelper.IndexColumns.DATA_SUMMARY_OFF, ""); in insertSpecialCase()
243 values.put(IndexDatabaseHelper.IndexColumns.DATA_SUMMARY_OFF_NORMALIZED, ""); in insertSpecialCase()
[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/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java134 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument
135 if (!values.containsKey(LauncherSettings.Favorites._ID)) { in dbInsertAndCheck()
138 return db.insert(table, nullColumnHack, values); in dbInsertAndCheck()
162 public int bulkInsert(Uri uri, ContentValues[] values) { in bulkInsert() argument
168 int numValues = values.length; in bulkInsert()
170 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert()
180 return values.length; in bulkInsert()
195 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
199 int count = db.update(args.table, values, args.where, args.args); in update()
459 ContentValues values = new ContentValues(c.getColumnCount()); in copyFromCursor() local
[all …]
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java305 ContentValues values = getContentValuesFromModel(model); in saveEvent() local
319 values.put(Events.HAS_ALARM, (len > 0) ? 1 : 0); in saveEvent()
323 values.put(Events.HAS_ATTENDEE_DATA, 1); in saveEvent()
324 values.put(Events.STATUS, Events.STATUS_CONFIRMED); in saveEvent()
327 Events.CONTENT_URI).withValues(values); in saveEvent()
333 checkTimeDependentFields(originalModel, model, values, modifyWhich); in saveEvent()
334 ops.add(ContentProviderOperation.newUpdate(uri).withValues(values).build()); in saveEvent()
339 ops.add(ContentProviderOperation.newUpdate(uri).withValues(values).build()); in saveEvent()
345 values.put(Events.ORIGINAL_SYNC_ID, originalModel.mSyncId); in saveEvent()
346 values.put(Events.ORIGINAL_INSTANCE_TIME, begin); in saveEvent()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java700 ContentValues values = new ContentValues(); in updateEventsStartEndLocked() local
701 values.put(Events.DTSTART, get2445ToMillis(timezone, dtStart2445)); in updateEventsStartEndLocked()
702 values.put(Events.DTEND, get2445ToMillis(timezone, dtEnd2445)); in updateEventsStartEndLocked()
704 int result = mDb.update(Tables.EVENTS, values, SQL_WHERE_ID, in updateEventsStartEndLocked()
708 Log.v(TAG, "Could not update Events table with values " + values); in updateEventsStartEndLocked()
1507 private boolean fixAllDayTime(ContentValues values, ContentValues modValues) { in fixAllDayTime() argument
1508 Integer allDayObj = values.getAsInteger(Events.ALL_DAY); in fixAllDayTime()
1515 Long dtstart = values.getAsLong(Events.DTSTART); in fixAllDayTime()
1516 Long dtend = values.getAsLong(Events.DTEND); in fixAllDayTime()
1517 String duration = values.getAsString(Events.DURATION); in fixAllDayTime()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java371 ContentValues values = new ContentValues(); in fillNullValues() local
372 values.put(Downloads.Impl.COLUMN_CURRENT_BYTES, 0); in fillNullValues()
373 fillNullValuesForColumn(db, values); in fillNullValues()
374 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, -1); in fillNullValues()
375 fillNullValuesForColumn(db, values); in fillNullValues()
376 values.put(Downloads.Impl.COLUMN_TITLE, ""); in fillNullValues()
377 fillNullValuesForColumn(db, values); in fillNullValues()
378 values.put(Downloads.Impl.COLUMN_DESCRIPTION, ""); in fillNullValues()
379 fillNullValuesForColumn(db, values); in fillNullValues()
382 private void fillNullValuesForColumn(SQLiteDatabase db, ContentValues values) { in fillNullValuesForColumn() argument
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
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 …]
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 …]
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()
157 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument
160 packagesModified.addAll(getModifiedPackages(values)); 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 …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java304 public Uri insert(Uri uri, ContentValues values) { in insert() argument
318 Object msgBoxObj = values.getAsInteger(Mms.MESSAGE_BOX); in insert()
366 boolean addDate = !values.containsKey(Mms.DATE); in insert()
367 boolean addMsgBox = !values.containsKey(Mms.MESSAGE_BOX); in insert()
370 filterUnsupportedKeys(values); in insert()
374 finalValues = new ContentValues(values); in insert()
392 Long threadId = values.getAsLong(Mms.THREAD_ID); in insert()
393 String address = values.getAsString(CanonicalAddressesColumns.ADDRESS); in insert()
414 finalValues = new ContentValues(values); in insert()
424 boolean containsDataPath = values != null && values.containsKey(Part._DATA); in insert()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessageModification.java40 public static void putSubject(ContentValues values, String subject) { in putSubject() argument
41 values.put(MessageColumns.SUBJECT, subject); in putSubject()
50 public static void putToAddresses(ContentValues values, String[] toAddresses) { in putToAddresses() argument
51 values.put(MessageColumns.TO, TextUtils.join(UIProvider.EMAIL_SEPARATOR, toAddresses)); in putToAddresses()
60 public static void putCcAddresses(ContentValues values, String[] ccAddresses) { in putCcAddresses() argument
61 values.put(MessageColumns.CC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, ccAddresses)); in putCcAddresses()
70 public static void putBccAddresses(ContentValues values, String[] bccAddresses) { in putBccAddresses() argument
71 values.put(MessageColumns.BCC, TextUtils.join(UIProvider.EMAIL_SEPARATOR, bccAddresses)); in putBccAddresses()
81 public static void putCustomFromAddress(ContentValues values, String customFromAddress) { in putCustomFromAddress() argument
82 values.put(MessageColumns.CUSTOM_FROM_ADDRESS, customFromAddress); in putCustomFromAddress()
[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/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/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/TvProvider/src/com/android/providers/tv/
DTvProvider.java1298 public Uri insert(Uri uri, ContentValues values) { in insert() argument
1305 if (values.get(Channels.COLUMN_INPUT_ID) == null in insert()
1306 && Channels.TYPE_PREVIEW.equals(values.get(Channels.COLUMN_TYPE))) { in insert()
1307 values.put(Channels.COLUMN_INPUT_ID, EMPTY_STRING); in insert()
1309 filterContentValues(values, sChannelProjectionMap); in insert()
1310 return insertChannel(uri, values); in insert()
1312 filterContentValues(values, sProgramProjectionMap); in insert()
1313 return insertProgram(uri, values); in insert()
1315 return insertWatchedProgram(uri, values); in insert()
1317 filterContentValues(values, sRecordedProgramProjectionMap); in insert()
[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 …]

12345678910>>...31