/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 661 ContentValues cv = new ContentValues(); in loadRawContactValues() local 663 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues() 665 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues() 666 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues() 667 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues() 668 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues() 669 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues() 670 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues() 671 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues() 672 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | TelephonyProvider.java | 372 ContentValues cv = new ContentValues(); in initDatabase() local 373 cv.put(Telephony.Carriers.EDITED, Telephony.Carriers.USER_DELETED); in initDatabase() 374 … db.update(CARRIERS_TABLE, cv, "edited=" + Telephony.Carriers.USER_DELETED_BUT_PRESENT_IN_XML, in initDatabase() 378 cv = new ContentValues(); in initDatabase() 379 cv.put(Telephony.Carriers.EDITED, Telephony.Carriers.CARRIER_DELETED); in initDatabase() 380 … db.update(CARRIERS_TABLE, cv, "edited=" + Telephony.Carriers.CARRIER_DELETED_BUT_PRESENT_IN_XML, in initDatabase() 821 ContentValues cv = new ContentValues(); in copyPreservedApnsToNewTable() local 828 getStringValueFromCursor(cv, c, Telephony.Carriers.NAME); in copyPreservedApnsToNewTable() 829 getStringValueFromCursor(cv, c, Telephony.Carriers.NUMERIC); in copyPreservedApnsToNewTable() 830 getStringValueFromCursor(cv, c, Telephony.Carriers.MCC); in copyPreservedApnsToNewTable() [all …]
|
D | MmsSmsDatabaseHelper.java | 472 ContentValues cv = new ContentValues(); in populateWordsTable() local 474 cv.clear(); in populateWordsTable() 479 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable() 480 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, body); in populateWordsTable() 481 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, id); in populateWordsTable() 482 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in populateWordsTable() 483 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in populateWordsTable() 505 ContentValues cv = new ContentValues(); in populateWordsTable() local 507 cv.clear(); in populateWordsTable() 512 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable() [all …]
|
/packages/apps/FMRadio/src/com/android/fmradio/ |
D | FmRecorder.java | 386 ContentValues cv = new ContentValues(size); in addRecordingToDatabase() local 387 cv.put(MediaStore.Audio.Media.IS_MUSIC, 1); in addRecordingToDatabase() 388 cv.put(MediaStore.Audio.Media.TITLE, title); in addRecordingToDatabase() 389 cv.put(MediaStore.Audio.Media.DATA, mRecordFile.getAbsolutePath()); in addRecordingToDatabase() 391 cv.put(MediaStore.Audio.Media.DATE_ADDED, (int) (curTime / oneSecond)); in addRecordingToDatabase() 392 cv.put(MediaStore.Audio.Media.DATE_MODIFIED, (int) (modDate / oneSecond)); in addRecordingToDatabase() 393 cv.put(MediaStore.Audio.Media.MIME_TYPE, RECORDING_FILE_TYPE); in addRecordingToDatabase() 394 cv.put(MediaStore.Audio.Media.ARTIST, artist); in addRecordingToDatabase() 395 cv.put(MediaStore.Audio.Media.ALBUM, RECORDING_FILE_SOURCE); in addRecordingToDatabase() 396 cv.put(MediaStore.Audio.Media.DURATION, mRecordTime); in addRecordingToDatabase() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 182 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 …]
|
D | CellBroadcastContentProvider.java | 193 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/ |
D | hsv.c | 94 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/ |
D | AccountSettingsUtils.java | 81 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 19 import static com.android.providers.contacts.TestUtils.cv; 1172 cv(Phone.NUMBER, "1234", Phone.NORMALIZED_NUMBER, "5678") in testPhonesNormalizedNumber() 1190 cv(Phone.NUMBER, "4321", Phone.NORMALIZED_NUMBER, "8765") in testPhonesNormalizedNumber() 1206 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber() 1221 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber() 1237 cv(Phone.NUMBER, "888", Phone.NORMALIZED_NUMBER, "999") in testPhonesNormalizedNumber() 1249 cv(Phone.NUMBER, "1", Phone.NORMALIZED_NUMBER, null) in testPhonesNormalizedNumber() 1373 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890"), in testPhonesFilterSearchParams() 1374 cv(Phone.DISPLAY_NAME, "Mam", Phone.NUMBER, "323-123-4567") in testPhonesFilterSearchParams() 1380 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890") in testPhonesFilterSearchParams() [all …]
|
D | ContactsProvider2TransactionTest.java | 19 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/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 1031 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/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 577 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/ |
D | Account.java | 609 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 …]
|
D | MessageChangeLogTable.java | 80 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/ |
D | TestProviderTests.java | 72 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()
|
D | ConversationCursorTests.java | 84 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()
|
D | TestProvider.java | 169 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()
|
D | EmlMessageLoaderTest.java | 59 final ContentValues cv = new ContentValues(2); in testLoadingBlankEml() local 60 cv.put(OpenableColumns.DISPLAY_NAME, "Empty.eml"); in testLoadingBlankEml() 61 cv.put(OpenableColumns.SIZE, 0); in testLoadingBlankEml() 62 mTestProvider.insert(emptyEmlUri, cv); in testLoadingBlankEml()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | DBHelper.java | 1328 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/ |
D | DictionaryBackupAgent.java | 193 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/Browser/src/com/android/browser/view/ |
D | BookmarkExpandableView.java | 328 View cv = null; in getChildView() local 330 cv = row.getChildAt(i); in getChildView() 334 View v = childAdapter.getView(realChildPosition, cv, row); in getChildView() 339 if (cv == null) { in getChildView() 341 } else if (cv != v) { in getChildView() 345 cv.setVisibility(View.VISIBLE); in getChildView() 347 } else if (cv != null) { in getChildView() 348 cv.setVisibility(View.GONE); in getChildView()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 299 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
|
D | AccountFinalizeFragment.java | 120 final ContentValues cv = new ContentValues(); in loadInBackground() local 121 cv.put(EmailContent.AccountColumns.DISPLAY_NAME, mAccount.getDisplayName()); in loadInBackground() 122 cv.put(EmailContent.AccountColumns.SENDER_NAME, mAccount.getSenderName()); in loadInBackground() 123 mAccount.update(getContext(), cv); in loadInBackground() local
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 398 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/ |
D | BluetoothMapIMContentTest.java | 73 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()
|