Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 56) sorted by relevance

123

/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java86 private static ContentValues cv(Object... namesAndValues) { in cv() method in BlockedNumberProviderTest
126 insertExpectingFailure(cv()); in testInsert()
127 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, null)); in testInsert()
128 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "")); in testInsert()
129 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ID, 1)); in testInsert()
130 insertExpectingFailure(cv(BlockedNumbers.COLUMN_E164_NUMBER, "1")); in testInsert()
132 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); in testInsert()
133 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); in testInsert()
134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); in testInsert()
135 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222")); in testInsert()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java679 ContentValues cv = new ContentValues(); in loadRawContactValues() local
681 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues()
683 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues()
684 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues()
685 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues()
686 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues()
687 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues()
688 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues()
689 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues()
690 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java442 ContentValues cv = new ContentValues(); in initDatabase() local
443 cv.put(EDITED, USER_DELETED); in initDatabase()
444 db.update(CARRIERS_TABLE, cv, IS_USER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
447 cv = new ContentValues(); in initDatabase()
448 cv.put(EDITED, CARRIER_DELETED); in initDatabase()
449 db.update(CARRIERS_TABLE, cv, IS_CARRIER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
928 ContentValues cv = new ContentValues(); in copyPreservedApnsToNewTable() local
935 getStringValueFromCursor(cv, c, NAME); in copyPreservedApnsToNewTable()
936 getStringValueFromCursor(cv, c, NUMERIC); in copyPreservedApnsToNewTable()
937 getStringValueFromCursor(cv, c, MCC); in copyPreservedApnsToNewTable()
[all …]
DMmsSmsDatabaseHelper.java506 ContentValues cv = new ContentValues(); in populateWordsTable() local
508 cv.clear(); in populateWordsTable()
513 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
514 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, body); in populateWordsTable()
515 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, id); in populateWordsTable()
516 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in populateWordsTable()
517 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in populateWordsTable()
539 ContentValues cv = new ContentValues(); in populateWordsTable() local
541 cv.clear(); in populateWordsTable()
546 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
[all …]
DSmsProvider.java627 ContentValues cv = new ContentValues(); in insertInner() local
628 cv.put(Telephony.MmsSms.WordsTable.ID, rowID); in insertInner()
629 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, values.getAsString("body")); in insertInner()
630 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, rowID); in insertInner()
631 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in insertInner()
632 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in insertInner()
691 ContentValues cv = new ContentValues(); in delete() local
692 cv.put("deleted", 1); in delete()
693 count = db.update(TABLE_RAW, cv, where, whereArgs); in delete()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java182 ContentValues cv = new ContentValues(16); in upgradeMessageV1ToV2() local
183 cv.put(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE, geographicalScope); in upgradeMessageV1ToV2()
184 cv.put(Telephony.CellBroadcasts.SERIAL_NUMBER, serialNumber); in upgradeMessageV1ToV2()
185 cv.put(Telephony.CellBroadcasts.SERVICE_CATEGORY, messageId); in upgradeMessageV1ToV2()
186 cv.put(Telephony.CellBroadcasts.LANGUAGE_CODE, languageCode); in upgradeMessageV1ToV2()
187 cv.put(Telephony.CellBroadcasts.MESSAGE_BODY, messageBody); in upgradeMessageV1ToV2()
188 cv.put(Telephony.CellBroadcasts.DELIVERY_TIME, deliveryTime); in upgradeMessageV1ToV2()
189 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, isRead); in upgradeMessageV1ToV2()
190 cv.put(Telephony.CellBroadcasts.MESSAGE_FORMAT, SmsCbMessage.MESSAGE_FORMAT_3GPP); in upgradeMessageV1ToV2()
297 cv.put(Telephony.CellBroadcasts.MESSAGE_PRIORITY, in upgradeMessageV1ToV2()
[all …]
DCellBroadcastContentProvider.java193 ContentValues cv = message.getContentValues(); in insertNewBroadcast() local
200 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast()
259 ContentValues cv = new ContentValues(1); in markBroadcastRead() local
260 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, 1); in markBroadcastRead()
265 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead()
/packages/apps/Gallery2/jni/filters/
Dhsv.c94 short cv = hsv[hsvOff+0]; in hsv2rgb() local
101 m = ((int)cv*(k1 - (int)cs ))/k1; in hsv2rgb()
105 rb = ( rg = ( rr =( cv >> ABITS) )); in hsv2rgb()
109 iv=(int)cv; in hsv2rgb()
119 cv=(short) (cv >> ABITS); in hsv2rgb()
122 rr = cv; in hsv2rgb()
128 rg = cv; in hsv2rgb()
133 rg = cv; in hsv2rgb()
139 rb = cv; in hsv2rgb()
144 rb = cv; in hsv2rgb()
[all …]
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSettingsUtils.java81 ContentValues cv = new ContentValues(); in commitSettings() local
82 cv.put(QuickResponse.ACCOUNT_KEY, account.mId); in commitSettings()
88 cv.put(QuickResponse.TEXT, quickResponse); in commitSettings()
89 resolver.insert(QuickResponse.CONTENT_URI, cv); in commitSettings()
93 ContentValues cv = getAccountContentValues(account); in commitSettings() local
94 account.update(context, cv); in commitSettings()
106 ContentValues cv = new ContentValues(); in getAccountContentValues() local
107 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName()); in getAccountContentValues()
108 cv.put(AccountColumns.SENDER_NAME, account.getSenderName()); in getAccountContentValues()
109 cv.put(AccountColumns.SIGNATURE, account.getSignature()); in getAccountContentValues()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java1031 ContentValues cv; in testDeleteOrphanMessages() local
1041 cv = msgX_A.toContentValues(); in testDeleteOrphanMessages()
1042 cv.put(EmailContent.RECORD_ID, msgId++); in testDeleteOrphanMessages()
1043 resolver.insert(Message.DELETED_CONTENT_URI, cv); in testDeleteOrphanMessages()
1047 cv = msgX_B.toContentValues(); in testDeleteOrphanMessages()
1048 cv.put(EmailContent.RECORD_ID, msgId++); in testDeleteOrphanMessages()
1049 resolver.insert(Message.DELETED_CONTENT_URI, cv); in testDeleteOrphanMessages()
1053 cv = msgX_C.toContentValues(); in testDeleteOrphanMessages()
1054 cv.put(EmailContent.RECORD_ID, msgId++); in testDeleteOrphanMessages()
1055 resolver.insert(Message.UPDATED_CONTENT_URI, cv); in testDeleteOrphanMessages()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java19 import static com.android.providers.contacts.TestUtils.cv;
1373 cv(Phone.NUMBER, "1234", Phone.NORMALIZED_NUMBER, "5678") in testPhonesNormalizedNumber()
1391 cv(Phone.NUMBER, "4321", Phone.NORMALIZED_NUMBER, "8765") in testPhonesNormalizedNumber()
1407 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1422 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1438 cv(Phone.NUMBER, "888", Phone.NORMALIZED_NUMBER, "999") in testPhonesNormalizedNumber()
1450 cv(Phone.NUMBER, "1", Phone.NORMALIZED_NUMBER, null) in testPhonesNormalizedNumber()
1574 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890"), in testPhonesFilterSearchParams()
1575 cv(Phone.DISPLAY_NAME, "Mam", Phone.NUMBER, "323-123-4567") in testPhonesFilterSearchParams()
1581 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890") in testPhonesFilterSearchParams()
[all …]
DContactsProvider2TransactionTest.java19 import static com.android.providers.contacts.TestUtils.cv;
63 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); in testTransactionCallback_insert()
90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); in testTransactionCallback_update()
124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); in testTransactionCallback_delete()
153 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); in testTransactionCallback_bulkInsert()
198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact()
228 assertStoredValues(Profile.CONTENT_URI, cv( in checkStoredProfile()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java577 ContentValues cv = new ContentValues(); in createPlaylist() local
578 cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name)); in createPlaylist()
579 Uri uri = resolver.insert(MediaStore.Audio.Playlists.getContentUri("external"), cv); in createPlaylist()
596 ContentValues cv = new ContentValues(); in addToMediaDB() local
607 cv.put(MediaStore.Audio.Media.IS_MUSIC, "0"); in addToMediaDB()
609 cv.put(MediaStore.Audio.Media.TITLE, title); in addToMediaDB()
610 cv.put(MediaStore.Audio.Media.DATA, file.getAbsolutePath()); in addToMediaDB()
611 cv.put(MediaStore.Audio.Media.DATE_ADDED, (int) (current / 1000)); in addToMediaDB()
612 cv.put(MediaStore.Audio.Media.DATE_MODIFIED, (int) (modDate / 1000)); in addToMediaDB()
613 cv.put(MediaStore.Audio.Media.DURATION, sampleLengthMillis); in addToMediaDB()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java609 ContentValues cv = new ContentValues(); in clearSecurityHoldOnAllAccounts() local
610 cv.put(AccountColumns.FLAGS, flags & ~FLAGS_SECURITY_HOLD); in clearSecurityHoldOnAllAccounts()
613 resolver.update(uri, cv, null, null); in clearSecurityHoldOnAllAccounts()
659 final ContentValues cv = new ContentValues(); in save() local
660 cv.put(HostAuthColumns.CREDENTIAL_KEY, recvCredentialsIndex); in save()
661 b.withValueBackReferences(cv); in save()
683 final ContentValues cv = new ContentValues(); in save() local
684 cv.put(HostAuthColumns.CREDENTIAL_KEY, sendCredentialsIndex); in save()
685 b.withValueBackReferences(cv); in save()
691 ContentValues cv = null; in save() local
[all …]
DMessageChangeLogTable.java80 final ContentValues cv = new ContentValues(1); in startProcessing() local
84 cv.put(STATUS, STATUS_FAILED); in startProcessing()
85 cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
89 cv.put(STATUS, STATUS_PROCESSING); in startProcessing()
90 return cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
158 final ContentValues cv = new ContentValues(1); in updateStatusForMessages() local
159 cv.put(STATUS, status); in updateStatusForMessages()
160 return cr.update(uri, cv, getSelectionForMessages(messageKeys, count), null); in updateStatusForMessages()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProviderTests.java72 ContentValues cv = new ContentValues(); in ponyValues() local
73 cv.put(PONY_COLUMN_NAME, name); in ponyValues()
74 cv.put(PONY_COLUMN_TYPE, type); in ponyValues()
75 cv.put(PONY_COLUMN_LEGS, legs); in ponyValues()
76 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0); in ponyValues()
77 return cv; in ponyValues()
159 ContentValues cv = new ContentValues(); in testUpdate() local
160 cv.put(PONY_COLUMN_LEGS, 5); in testUpdate()
161 assertEquals(2, mMockResolver.update(TestProvider.uri(uri), cv, null, null)); in testUpdate()
DConversationCursorTests.java84 ContentValues cv = new ContentValues(); in makeConvo() local
85 cv.put(SUBJECT_COLUMN, subject); in makeConvo()
86 cv.put(FOLDER_COLUMN, folder); in makeConvo()
87 cv.put(READ_COLUMN, read); in makeConvo()
88 cv.put(STARRED_COLUMN, starred); in makeConvo()
89 return cv; in makeConvo()
DTestProvider.java169 for (ContentValues cv : valuesList) { in query()
173 rowValues[i++] = cv.get(column); in query()
199 ContentValues cv = mMockStore.get(path); in update() local
200 if (cv != null) { in update()
201 updateValuesList.add(cv); in update()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java1328 final ContentValues cv = new ContentValues(1); in onUpgrade() local
1329 cv.put(MailboxColumns.LAST_FULL_SYNC_TIME, 0); in onUpgrade()
1330 db.update(Mailbox.TABLE_NAME, cv, null, null); in onUpgrade()
1341 final ContentValues cv = new ContentValues(1); in onUpgrade() local
1342 cv.put(AccountColumns.PING_DURATION, 0); in onUpgrade()
1343 db.update(Account.TABLE_NAME, cv, null, null); in onUpgrade()
1447 final ContentValues cv = new ContentValues(1); in onUpgrade() local
1448 cv.put(AccountColumns.MAX_ATTACHMENT_SIZE, 0); in onUpgrade()
1449 db.update(Account.TABLE_NAME, cv, null, null); in onUpgrade()
1496 ContentValues cv = new ContentValues(); in convertPolicyFlagsToPolicyTable() local
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java193 ContentValues cv = new ContentValues(2); in restoreDictionary() local
253 cv.clear(); in restoreDictionary()
254 cv.put(Words.WORD, word); in restoreDictionary()
255 cv.put(Words.FREQUENCY, frequencyInt); in restoreDictionary()
256 cv.put(Words.LOCALE, locale); in restoreDictionary()
257 cv.put(Words.APP_ID, appidInt); in restoreDictionary()
258 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
267 getContentResolver().insert(contentUri, cv); in restoreDictionary()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java263 final ContentValues cv = new ContentValues(); in migrateFromLegacyTables() local
268 cv.clear(); in migrateFromLegacyTables()
270 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
272 calllog.insertOrThrow(Tables.CALLS, null, cv); in migrateFromLegacyTables()
279 cv.clear(); in migrateFromLegacyTables()
281 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
283 calllog.insertOrThrow(Tables.VOICEMAIL_STATUS, null, cv); in migrateFromLegacyTables()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java145 private Uri insertBlockedNumber(ContentValues cv) { in insertBlockedNumber() argument
146 throwIfSpecified(cv, BlockedNumberContract.BlockedNumbers.COLUMN_ID); in insertBlockedNumber()
148 final String phoneNumber = cv.getAsString( in insertBlockedNumber()
158 cv.getAsString(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER)); in insertBlockedNumber()
159 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, e164Number); in insertBlockedNumber()
162 Log.d(TAG, String.format("inserted blocked number: %s", cv)); in insertBlockedNumber()
167 BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS, null, cv, in insertBlockedNumber()
173 private static void throwIfSpecified(ContentValues cv, String column) { in throwIfSpecified() argument
174 if (cv.containsKey(column)) { in throwIfSpecified()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java299 final ContentValues cv = new ContentValues(1); in onPreferenceChange() local
307 cv.put(AccountColumns.DISPLAY_NAME, summary); in onPreferenceChange()
313 cv.put(AccountColumns.SENDER_NAME, summary); in onPreferenceChange()
326 cv.put(AccountColumns.SIGNATURE, signature); in onPreferenceChange()
338 cv.put(AccountColumns.SYNC_INTERVAL, Integer.parseInt(summary)); in onPreferenceChange()
356 cv.put(AccountColumns.SYNC_INTERVAL, Integer.parseInt(summary)); in onPreferenceChange()
364 cv.put(AccountColumns.SYNC_LOOKBACK, Integer.parseInt(summary)); in onPreferenceChange()
389 cv.put(AccountColumns.FLAGS, newFlags); in onPreferenceChange()
405 if (cv.size() > 0) { in onPreferenceChange()
406 new UpdateTask().run(mContext.getContentResolver(), mAccount.getUri(), cv, null, null); in onPreferenceChange() local
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java398 final ContentValues cv = new ContentValues(); in saveAttachment() local
455 cv.put(AttachmentColumns.SIZE, size); in saveAttachment()
456 cv.put(AttachmentColumns.CONTENT_URI, contentUri); in saveAttachment()
457 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachment()
460 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in saveAttachment()
462 context.getContentResolver().update(uri, cv, null, null); in saveAttachment()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapIMContentTest.java73 ContentValues cv = new ContentValues(); in insertImMessage() local
74 cv.put(BluetoothMapContract.MessageColumns.BODY, "This is a test to insert a message"); in insertImMessage()
75 cv.put(BluetoothMapContract.MessageColumns.DATE, System.currentTimeMillis()); in insertImMessage()
76 cv.put(BluetoothMapContract.MessageColumns.THREAD_ID, 2); in insertImMessage()
78 Uri uriWithId = mResolver.insert(uri, cv); in insertImMessage()

123