Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 61) 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/Contacts/src/com/android/contacts/model/
DContactLoader.java630 ContentValues cv = new ContentValues(); in loadRawContactValues() local
632 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues()
634 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues()
635 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues()
636 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues()
637 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues()
638 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues()
639 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues()
640 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues()
641 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java470 ContentValues cv = new ContentValues(); in loadRawContactValues() local
472 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues()
474 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues()
475 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues()
476 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues()
477 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues()
478 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues()
479 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues()
480 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues()
481 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java538 ContentValues cv = new ContentValues(); in initDatabase() local
539 cv.put(EDITED, USER_DELETED); in initDatabase()
540 db.update(CARRIERS_TABLE, cv, IS_USER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
543 cv = new ContentValues(); in initDatabase()
544 cv.put(EDITED, CARRIER_DELETED); in initDatabase()
545 db.update(CARRIERS_TABLE, cv, IS_CARRIER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
1102 ContentValues cv = new ContentValues(); in copyDataToTmpTable() local
1103 copyApnValuesV17(cv, c); in copyDataToTmpTable()
1105 db.insertWithOnConflict(CARRIERS_TABLE_TMP, null, cv, in copyDataToTmpTable()
1109 "insert successful for cv " + cv); in copyDataToTmpTable()
[all …]
DMmsSmsDatabaseHelper.java491 ContentValues cv = new ContentValues(); in populateWordsTable() local
493 cv.clear(); in populateWordsTable()
498 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
499 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, body); in populateWordsTable()
500 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, id); in populateWordsTable()
501 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in populateWordsTable()
502 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in populateWordsTable()
524 ContentValues cv = new ContentValues(); in populateWordsTable() local
526 cv.clear(); in populateWordsTable()
531 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
[all …]
/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/emailcommon/src/com/android/emailcommon/provider/
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()
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 …]
/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/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProviderTests.java70 ContentValues cv = new ContentValues(); in ponyValues() local
71 cv.put(PONY_COLUMN_NAME, name); in ponyValues()
72 cv.put(PONY_COLUMN_TYPE, type); in ponyValues()
73 cv.put(PONY_COLUMN_LEGS, legs); in ponyValues()
74 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0); in ponyValues()
75 return cv; in ponyValues()
153 ContentValues cv = new ContentValues(); in testUpdate() local
154 cv.put(PONY_COLUMN_LEGS, 5); in testUpdate()
155 assertEquals(2, mMockResolver.update(uri, cv, null, null)); in testUpdate()
DConversationCursorTests.java85 ContentValues cv = new ContentValues(); in makeConvo() local
86 cv.put(SUBJECT_COLUMN, subject); in makeConvo()
87 cv.put(FOLDER_COLUMN, folder); in makeConvo()
88 cv.put(READ_COLUMN, read); in makeConvo()
89 cv.put(STARRED_COLUMN, starred); in makeConvo()
90 return cv; in makeConvo()
DTestProvider.java159 for (ContentValues cv : valuesList) { in query()
163 rowValues[i++] = cv.get(column); in query()
189 ContentValues cv = mMockStore.get(path); in update() local
190 if (cv != null) { in update()
191 updateValuesList.add(cv); in update()
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java20 import static com.android.providers.contacts.TestUtils.cv;
1398 cv(Phone.NUMBER, "1234", Phone.NORMALIZED_NUMBER, "5678") in testPhonesNormalizedNumber()
1416 cv(Phone.NUMBER, "4321", Phone.NORMALIZED_NUMBER, "8765") in testPhonesNormalizedNumber()
1432 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1447 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1463 cv(Phone.NUMBER, "888", Phone.NORMALIZED_NUMBER, "999") in testPhonesNormalizedNumber()
1475 cv(Phone.NUMBER, "1", Phone.NORMALIZED_NUMBER, null) in testPhonesNormalizedNumber()
1599 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890"), in testPhonesFilterSearchParams()
1600 cv(Phone.DISPLAY_NAME, "Mam", Phone.NUMBER, "323-123-4567") in testPhonesFilterSearchParams()
1606 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, 86400); in testTransactionCallback_insert()
90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_update()
124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_delete()
153 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_bulkInsert()
198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact()
228 assertStoredValues(Profile.CONTENT_URI, cv( in checkStoredProfile()
DSqlInjectionDetectionTest.java20 import static com.android.providers.contacts.TestUtils.cv;
143 mResolver.update(Data.CONTENT_URI, cv(), ";delete from contacts;--", null); in testBadUpdate()
147 mResolver.update(Data.CONTENT_URI, cv(), "_id in data_usage_stat", null); in testBadUpdate()
150 mResolver.update(Data.CONTENT_URI, cv("_id/**/", 1), null, null); in testBadUpdate()
153 mResolver.update(Data.CONTENT_URI, cv("[data1]", 1), null, null); in testBadUpdate()
160 mResolver.insert(Data.CONTENT_URI, cv("_id/**/", 1)); in testBadInsert()
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java647 final ContentValues cv = new ContentValues(); in testAllOperations() local
652 cv.clear(); in testAllOperations()
654 cv.put(getColumns(uri)[0], 1); in testAllOperations()
656 cv.put("_id", 1); in testAllOperations()
659 cv.put(SyncState.ACCOUNT_NAME, "abc"); in testAllOperations()
660 cv.put(SyncState.ACCOUNT_TYPE, "def"); in testAllOperations()
664 final Uri newUri = mResolver.insert(uri, cv); in testAllOperations()
673 mResolver.update(newUri, cv, null, null); in testAllOperations()
682 mResolver.update(uri, cv, "1=2", null); in testAllOperations()
/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/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/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java314 final ContentValues cv = new ContentValues(); in migrateFromLegacyTables() local
319 cv.clear(); in migrateFromLegacyTables()
321 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
323 calllog.insertOrThrow(Tables.CALLS, null, cv); in migrateFromLegacyTables()
330 cv.clear(); in migrateFromLegacyTables()
332 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
334 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/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()

123