/packages/apps/Gallery2/jni/filters/ |
H A D | hsv.c | 94 short cv = hsv[hsvOff+0]; local 99 //chroma = ( cv * cs )/k1; 100 //m = cv - chroma; 101 m = ((int)cv*(k1 - (int)cs ))/k1; 103 // chroma == 0 <-> cs == 0 --> m=cv 105 rb = ( rg = ( rr =( cv >> ABITS) )); 109 iv=(int)cv; 118 // ( chroma + m ) --> cv ; 119 cv=(short) (cv >> ABIT [all...] |
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
H A D | BlockedNumberProviderTest.java | 86 private static ContentValues cv(Object... namesAndValues) { method in class:BlockedNumberProviderTest 126 insertExpectingFailure(cv()); 127 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, null)); 128 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "")); 129 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ID, 1)); 130 insertExpectingFailure(cv(BlockedNumbers.COLUMN_E164_NUMBER, "1")); 132 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); 133 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); 134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); 135 insert(cv(BlockedNumber 186 insert(ContentValues cv) argument 197 insertExpectingFailure(ContentValues cv) argument [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastDatabaseHelper.java | 182 ContentValues cv = new ContentValues(16); 183 cv.put(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE, geographicalScope); 184 cv.put(Telephony.CellBroadcasts.SERIAL_NUMBER, serialNumber); 185 cv.put(Telephony.CellBroadcasts.SERVICE_CATEGORY, messageId); 186 cv.put(Telephony.CellBroadcasts.LANGUAGE_CODE, languageCode); 187 cv.put(Telephony.CellBroadcasts.MESSAGE_BODY, messageBody); 188 cv.put(Telephony.CellBroadcasts.DELIVERY_TIME, deliveryTime); 189 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, isRead); 190 cv.put(Telephony.CellBroadcasts.MESSAGE_FORMAT, SmsCbMessage.MESSAGE_FORMAT_3GPP); 297 cv [all...] |
H A D | CellBroadcastContentProvider.java | 193 ContentValues cv = message.getContentValues(); 200 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); 259 ContentValues cv = new ContentValues(1); 260 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, 1); 265 int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | MessageChangeLogTable.java | 80 final ContentValues cv = new ContentValues(1); 84 cv.put(STATUS, STATUS_FAILED); 85 cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); 89 cv.put(STATUS, STATUS_PROCESSING); 90 return cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); 158 final ContentValues cv = new ContentValues(1); 159 cv.put(STATUS, status); 160 return cr.update(uri, cv, getSelectionForMessages(messageKeys, count), null);
|
H A D | Account.java | 609 ContentValues cv = new ContentValues(); 610 cv.put(AccountColumns.FLAGS, flags & ~FLAGS_SECURITY_HOLD); 613 resolver.update(uri, cv, null, null); 659 final ContentValues cv = new ContentValues(); 660 cv.put(HostAuthColumns.CREDENTIAL_KEY, recvCredentialsIndex); 661 b.withValueBackReferences(cv); 683 final ContentValues cv = new ContentValues(); 684 cv.put(HostAuthColumns.CREDENTIAL_KEY, sendCredentialsIndex); 685 b.withValueBackReferences(cv); 691 ContentValues cv [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
H A D | ConversationCursorTests.java | 84 ContentValues cv = new ContentValues(); 85 cv.put(SUBJECT_COLUMN, subject); 86 cv.put(FOLDER_COLUMN, folder); 87 cv.put(READ_COLUMN, read); 88 cv.put(STARRED_COLUMN, starred); 89 return cv;
|
H A D | EmlMessageLoaderTest.java | 59 final ContentValues cv = new ContentValues(2); 60 cv.put(OpenableColumns.DISPLAY_NAME, "Empty.eml"); 61 cv.put(OpenableColumns.SIZE, 0); 62 mTestProvider.insert(emptyEmlUri, cv);
|
H A D | TestProviderTests.java | 72 ContentValues cv = new ContentValues(); 73 cv.put(PONY_COLUMN_NAME, name); 74 cv.put(PONY_COLUMN_TYPE, type); 75 cv.put(PONY_COLUMN_LEGS, legs); 76 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0); 77 return cv; 159 ContentValues cv = new ContentValues(); 160 cv.put(PONY_COLUMN_LEGS, 5); 161 assertEquals(2, mMockResolver.update(TestProvider.uri(uri), cv, null, null));
|
H A D | TestProvider.java | 169 for (ContentValues cv : valuesList) { 173 rowValues[i++] = cv.get(column); 199 ContentValues cv = mMockStore.get(path); 200 if (cv != null) { 201 updateValuesList.add(cv);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountFinalizeFragment.java | 120 final ContentValues cv = new ContentValues(); 121 cv.put(EmailContent.AccountColumns.DISPLAY_NAME, mAccount.getDisplayName()); 122 cv.put(EmailContent.AccountColumns.SENDER_NAME, mAccount.getSenderName()); 123 mAccount.update(getContext(), cv);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | ContactLoader.java | 679 ContentValues cv = new ContentValues(); 681 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); 683 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); 684 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); 685 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); 686 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); 687 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); 688 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); 689 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); 690 cursorColumnToContentValues(cursor, cv, ContactQuer [all...] |
/packages/apps/Email/provider_src/com/android/email/activity/setup/ |
H A D | AccountSettingsUtils.java | 81 ContentValues cv = new ContentValues(); 82 cv.put(QuickResponse.ACCOUNT_KEY, account.mId); 88 cv.put(QuickResponse.TEXT, quickResponse); 89 resolver.insert(QuickResponse.CONTENT_URI, cv); 93 ContentValues cv = getAccountContentValues(account); 94 account.update(context, cv); 106 ContentValues cv = new ContentValues(); 107 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName()); 108 cv.put(AccountColumns.SENDER_NAME, account.getSenderName()); 109 cv [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | CallLogDatabaseHelper.java | 277 final ContentValues cv = new ContentValues(); 282 cv.clear(); 284 DatabaseUtils.cursorRowToContentValues(source, cv); 286 calllog.insertOrThrow(Tables.CALLS, null, cv); 293 cv.clear(); 295 DatabaseUtils.cursorRowToContentValues(source, cv); 297 calllog.insertOrThrow(Tables.VOICEMAIL_STATUS, null, cv);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsProvider2TransactionTest.java | 19 import static com.android.providers.contacts.TestUtils.cv; 63 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 153 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 198 assertStoredValues(Contacts.CONTENT_URI, cv( 228 assertStoredValues(Profile.CONTENT_URI, cv(
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | DictionaryBackupAgent.java | 193 ContentValues cv = new ContentValues(2); 253 cv.clear(); 254 cv.put(Words.WORD, word); 255 cv.put(Words.FREQUENCY, frequencyInt); 256 cv.put(Words.LOCALE, locale); 257 cv.put(Words.APP_ID, appidInt); 258 cv.put(Words.SHORTCUT, shortcut); 267 getContentResolver().insert(contentUri, cv);
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | TelephonyProvider.java | 441 ContentValues cv = new ContentValues(); 442 cv.put(EDITED, USER_DELETED); 443 db.update(CARRIERS_TABLE, cv, IS_USER_DELETED_BUT_PRESENT_IN_XML, null); 446 cv = new ContentValues(); 447 cv.put(EDITED, CARRIER_DELETED); 448 db.update(CARRIERS_TABLE, cv, IS_CARRIER_DELETED_BUT_PRESENT_IN_XML, null); 927 ContentValues cv = new ContentValues(); 930 // Include only non-null values in cv so that null values can be replaced 934 getStringValueFromCursor(cv, c, NAME); 935 getStringValueFromCursor(cv, 1031 getStringValueFromCursor(ContentValues cv, Cursor c, String key) argument 1038 getIntValueFromCursor(ContentValues cv, Cursor c, String key) argument [all...] |
H A D | MmsSmsDatabaseHelper.java | 506 ContentValues cv = new ContentValues(); 508 cv.clear(); 513 cv.put(Telephony.MmsSms.WordsTable.ID, id); 514 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, body); 515 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, id); 516 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); 517 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); 539 ContentValues cv = new ContentValues(); 541 cv.clear(); 546 cv [all...] |
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
H A D | BluetoothMapIMContentTest.java | 73 ContentValues cv = new ContentValues(); 74 cv.put(BluetoothMapContract.MessageColumns.BODY, "This is a test to insert a message"); 75 cv.put(BluetoothMapContract.MessageColumns.DATE, System.currentTimeMillis()); 76 cv.put(BluetoothMapContract.MessageColumns.THREAD_ID, 2); 78 Uri uriWithId = mResolver.insert(uri, cv);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilities.java | 398 final ContentValues cv = new ContentValues(); 455 cv.put(AttachmentColumns.SIZE, size); 456 cv.put(AttachmentColumns.CONTENT_URI, contentUri); 457 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); 460 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); 462 context.getContentResolver().update(uri, cv, null, null);
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
H A D | Utilities.java | 172 ContentValues cv = new ContentValues(); 173 cv.put(EmailContent.MessageColumns.FLAG_ATTACHMENT, localMessage.mFlagAttachment); 174 cv.put(EmailContent.MessageColumns.FLAG_LOADED, localMessage.mFlagLoaded); 177 context.getContentResolver().update(uri, cv, null, null);
|
H A D | DBHelper.java | 1328 final ContentValues cv = new ContentValues(1); 1329 cv.put(MailboxColumns.LAST_FULL_SYNC_TIME, 0); 1330 db.update(Mailbox.TABLE_NAME, cv, null, null); 1341 final ContentValues cv = new ContentValues(1); 1342 cv.put(AccountColumns.PING_DURATION, 0); 1343 db.update(Account.TABLE_NAME, cv, null, null); 1447 final ContentValues cv = new ContentValues(1); 1448 cv.put(AccountColumns.MAX_ATTACHMENT_SIZE, 0); 1449 db.update(Account.TABLE_NAME, cv, null, null); 1496 ContentValues cv [all...] |
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
H A D | SoundRecorder.java | 577 ContentValues cv = new ContentValues(); 578 cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name)); 579 Uri uri = resolver.insert(MediaStore.Audio.Playlists.getContentUri("external"), cv); 596 ContentValues cv = new ContentValues(); 607 cv.put(MediaStore.Audio.Media.IS_MUSIC, "0"); 609 cv.put(MediaStore.Audio.Media.TITLE, title); 610 cv.put(MediaStore.Audio.Media.DATA, file.getAbsolutePath()); 611 cv.put(MediaStore.Audio.Media.DATE_ADDED, (int) (current / 1000)); 612 cv.put(MediaStore.Audio.Media.DATE_MODIFIED, (int) (modDate / 1000)); 613 cv [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | ProviderTests.java | 1031 ContentValues cv; 1041 cv = msgX_A.toContentValues(); 1042 cv.put(EmailContent.RECORD_ID, msgId++); 1043 resolver.insert(Message.DELETED_CONTENT_URI, cv); 1047 cv = msgX_B.toContentValues(); 1048 cv.put(EmailContent.RECORD_ID, msgId++); 1049 resolver.insert(Message.DELETED_CONTENT_URI, cv); 1053 cv = msgX_C.toContentValues(); 1054 cv.put(EmailContent.RECORD_ID, msgId++); 1055 resolver.insert(Message.UPDATED_CONTENT_URI, cv); [all...] |
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
H A D | BlockedNumberProvider.java | 145 private Uri insertBlockedNumber(ContentValues cv) { argument 146 throwIfSpecified(cv, BlockedNumberContract.BlockedNumbers.COLUMN_ID); 148 final String phoneNumber = cv.getAsString( 158 cv.getAsString(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER)); 159 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, e164Number); 162 Log.d(TAG, String.format("inserted blocked number: %s", cv)); 167 BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS, null, cv, 173 private static void throwIfSpecified(ContentValues cv, String column) { argument 174 if (cv.containsKey(column)) {
|