/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | BlockedNumberProviderTest.java | 88 private static ContentValues cv(Object... namesAndValues) { in cv() method in BlockedNumberProviderTest 128 insertExpectingFailure(cv()); in testInsert() 129 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, null)); in testInsert() 130 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "")); in testInsert() 131 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ID, 1)); in testInsert() 132 insertExpectingFailure(cv(BlockedNumbers.COLUMN_E164_NUMBER, "1")); in testInsert() 134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); in testInsert() 135 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); in testInsert() 136 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); in testInsert() 137 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222")); in testInsert() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | CarrierIdProvider.java | 380 ContentValues cv; in updateDatabaseFromPb() 388 cv = new ContentValues(); in updateDatabaseFromPb() 389 cv.put(CarrierId.CARRIER_ID, id.canonicalId); in updateDatabaseFromPb() 390 cv.put(CarrierId.CARRIER_NAME, id.carrierName); in updateDatabaseFromPb() 394 cv.put(CarrierId.PARENT_CARRIER_ID, id.parentCanonicalId); in updateDatabaseFromPb() 397 convertCarrierAttrToContentValues(cv, cvs, attr, 0); in updateDatabaseFromPb() 428 private void convertCarrierAttrToContentValues(ContentValues cv, List<ContentValues> cvs, in convertCarrierAttrToContentValues() argument 431 ContentValues carrier = new ContentValues(cv); in convertCarrierAttrToContentValues() 440 cv.put(CarrierId.All.MCCMNC, str); in convertCarrierAttrToContentValues() 441 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues() [all …]
|
D | TelephonyProvider.java | 723 ContentValues cv = new ContentValues(); in initDatabase() local 724 cv.put(EDITED_STATUS, USER_DELETED); in initDatabase() 725 db.update(CARRIERS_TABLE, cv, IS_USER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase() 728 cv = new ContentValues(); in initDatabase() 729 cv.put(EDITED_STATUS, CARRIER_DELETED); in initDatabase() 730 db.update(CARRIERS_TABLE, cv, IS_CARRIER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase() 1394 ContentValues cv = new ContentValues(); in copySimInfoDataToTmpTable() local 1395 copySimInfoValuesV24(cv, c); in copySimInfoDataToTmpTable() 1402 getCardIdfromIccid(cv, c); in copySimInfoDataToTmpTable() 1404 db.insert(SIMINFO_TABLE_TMP, null, cv); in copySimInfoDataToTmpTable() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | ContactLoader.java | 470 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/apps/Contacts/src/com/android/contacts/model/ |
D | ContactLoader.java | 620 ContentValues cv = new ContentValues(); in loadRawContactValues() local 622 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues() 624 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues() 625 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues() 626 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues() 627 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues() 628 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues() 629 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues() 630 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues() 631 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues() [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/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | ApnEditorTest.java | 147 final ContentValues cv = new ContentValues(); in testSetStringValue_valueChanged_shouldSetValue() local 151 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_valueChanged_shouldSetValue() 156 assertThat(apnValue).isEqualTo(cv.getAsString(apnKey)); in testSetStringValue_valueChanged_shouldSetValue() 164 final ContentValues cv = new ContentValues(); in testSetStringValue_valueNotChanged_shouldNotSetValue() local 168 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_valueNotChanged_shouldNotSetValue() 173 assertThat(cv.get(apnKey)).isNull(); in testSetStringValue_valueNotChanged_shouldNotSetValue() 181 final ContentValues cv = new ContentValues(); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue() local 185 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue() 190 assertThat(cv.get(apnKey)).isNull(); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue() 199 final ContentValues cv = new ContentValues(); in testSetIntValue_valueChanged_shouldSetValue() local [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
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()
|
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 …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | TestProviderTests.java | 70 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()
|
D | ConversationCursorTests.java | 85 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()
|
/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/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/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/ |
D | AllUriTest.java | 655 final ContentValues cv = new ContentValues(); in testAllOperations() local 661 cv.clear(); in testAllOperations() 663 cv.put(getColumns(uri)[0], 1); in testAllOperations() 665 cv.put("_id", 1); in testAllOperations() 668 cv.put(SyncState.ACCOUNT_NAME, "abc"); in testAllOperations() 669 cv.put(SyncState.ACCOUNT_TYPE, "def"); in testAllOperations() 673 final Uri newUri = mResolver.insert(uri, cv); in testAllOperations() 682 mResolver.update(newUri, cv, null, null); in testAllOperations() 691 mResolver.update(uri, cv, "1=2", null); in testAllOperations()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SqlInjectionDetectionTest.java | 20 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()
|
D | ContactsProvider2TransactionTest.java | 19 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()
|
D | ContactsProvider2Test.java | 19 import static com.android.providers.contacts.TestUtils.cv; 1407 cv(Phone.NUMBER, "1234", Phone.NORMALIZED_NUMBER, "5678") in testPhonesNormalizedNumber() 1425 cv(Phone.NUMBER, "4321", Phone.NORMALIZED_NUMBER, "8765") in testPhonesNormalizedNumber() 1441 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber() 1456 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber() 1472 cv(Phone.NUMBER, "888", Phone.NORMALIZED_NUMBER, "999") in testPhonesNormalizedNumber() 1484 cv(Phone.NUMBER, "1", Phone.NORMALIZED_NUMBER, null) in testPhonesNormalizedNumber() 1608 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890"), in testPhonesFilterSearchParams() 1609 cv(Phone.DISPLAY_NAME, "Mam", Phone.NUMBER, "323-123-4567") in testPhonesFilterSearchParams() 1615 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890") in testPhonesFilterSearchParams() [all …]
|
/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/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | CarrierIdProviderTest.java | 341 ContentValues cv = new ContentValues(); in testUpdateCurrentSubscription() local 342 cv.put(CarrierId.CARRIER_ID, dummy_cid); in testUpdateCurrentSubscription() 343 cv.put(CarrierId.CARRIER_NAME, dummy_name); in testUpdateCurrentSubscription() 347 "1"), cv, null, null); in testUpdateCurrentSubscription() local 416 ContentValues cv = new ContentValues(); in testUpdateCurrentSubscription_WrongURI() local 417 cv.put(CarrierId.CARRIER_ID, dummy_cid); in testUpdateCurrentSubscription_WrongURI() 418 cv.put(CarrierId.CARRIER_NAME, dummy_name); in testUpdateCurrentSubscription_WrongURI() 422 mContext.getContentResolver().update(CarrierId.CONTENT_URI, cv, null, null); in testUpdateCurrentSubscription_WrongURI()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 149 private Uri insertBlockedNumber(ContentValues cv) { in insertBlockedNumber() argument 150 throwIfSpecified(cv, BlockedNumberContract.BlockedNumbers.COLUMN_ID); in insertBlockedNumber() 152 final String phoneNumber = cv.getAsString( in insertBlockedNumber() 162 cv.getAsString(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER)); in insertBlockedNumber() 163 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, e164Number); in insertBlockedNumber() 166 Log.d(TAG, String.format("inserted blocked number: %s", cv)); in insertBlockedNumber() 171 BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS, null, cv, in insertBlockedNumber() 177 private static void throwIfSpecified(ContentValues cv, String column) { in throwIfSpecified() argument 178 if (cv.containsKey(column)) { in throwIfSpecified()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallLogDatabaseHelper.java | 485 final ContentValues cv = new ContentValues(); in migrateFromLegacyTables() local 490 cv.clear(); in migrateFromLegacyTables() 492 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables() 494 calllog.insertOrThrow(Tables.CALLS, null, cv); in migrateFromLegacyTables() 501 cv.clear(); in migrateFromLegacyTables() 503 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables() 505 calllog.insertOrThrow(Tables.VOICEMAIL_STATUS, null, cv); in migrateFromLegacyTables()
|