Searched refs:cv (Results 1 - 25 of 62) sorted by relevance

123

/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DCalendarSyncParser.java162 public void newAttendee(ContentValues cv) { argument
163 newAttendee(cv, mEventStart);
166 public void newAttendee(ContentValues cv, int eventStart) { argument
168 .withValues(cv),
173 public void updatedAttendee(ContentValues cv, long id) { argument
174 cv.put(Attendees.EVENT_ID, id);
176 .withValues(cv)));
179 public void newException(ContentValues cv) { argument
181 .withValues(cv)));
282 * @param cv th
287 setTimeRelatedValues(ContentValues cv, long startTime, long endTime, int allDayEvent) argument
675 logEventColumns(ContentValues cv, String reason) argument
687 isValidEventValues(ContentValues cv) argument
930 exceptionsParser(CalendarOperations ops, ContentValues cv, ArrayList<ContentValues> attendeeValues, int reminderMins, int busyStatus, long startTime, long endTime) argument
[all...]
H A DFolderSyncParser.java368 ContentValues cv = new ContentValues();
372 cv.put(MailboxColumns.SYNC_INTERVAL, options.mInterval);
373 cv.put(MailboxColumns.SYNC_LOOKBACK, options.mLookback);
376 mContentResolver.update(Mailbox.CONTENT_URI, cv, WHERE_SERVER_ID_AND_ACCOUNT,
396 final ContentValues cv = new ContentValues(10);
397 cv.put(MailboxColumns.DISPLAY_NAME, name);
399 cv.put(MailboxColumns.SERVER_ID, serverId);
403 cv.put(MailboxColumns.PARENT_KEY, Mailbox.NO_MAILBOX);
408 cv.put(MailboxColumns.PARENT_SERVER_ID, parentId);
410 cv
[all...]
H A DContactsSyncParser.java531 final ContentValues cv = new ContentValues();
532 cv.put(RawContacts.DIRTY, 0);
539 addCallerIsSyncAdapterParameter(RawContacts.CONTENT_URI), cv,
549 ContentValues cv = new ContentValues();
572 cv.put(RawContacts.SOURCE_ID, serverId);
573 cv.put(RawContacts.DIRTY, 0);
578 .withValues(cv)
781 ContentValues cv; field in class:ContactsSyncParser.RowBuilder
789 cv = _ncv.values;
878 final ContentValues cv
1030 cvCompareString(ContentValues cv, String column, String oldValue) argument
[all...]
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasSyncContacts.java324 * @param cv The {@link ContentValues} that contains the values
325 * @param column The column name in cv for the data
329 public static String tryGetStringData(final ContentValues cv, final String column) argument
331 if ((cv == null) || (column == null)) {
334 if (cv.containsKey(column)) {
335 final String value = cv.getAsString(column);
346 * @param cv The {@link ContentValues} with the data for this string.
347 * @param column The column name in cv to find the string.
352 private static boolean sendStringData(final Serializer s, final ContentValues cv, argument
354 final String dataValue = tryGetStringData(cv, colum
387 sendDateData(final Serializer s, final ContentValues cv, final String column, final int tag) argument
417 sendNickname(final Serializer s, final ContentValues cv) argument
428 sendChildren(final Serializer s, final ContentValues cv) argument
452 sendBusiness(final Serializer s, final ContentValues cv) argument
465 sendWebpage(final Serializer s, final ContentValues cv) argument
475 sendPersonal(final Serializer s, final ContentValues cv) argument
486 trySendFileAs(final Serializer s, final ContentValues cv) argument
499 sendPhone(final Serializer s, final ContentValues cv, final int workCount, final int homeCount) argument
554 sendRelation(final Serializer s, final ContentValues cv) argument
583 sendStructuredName(final Serializer s, final ContentValues cv) argument
601 sendOnePostal(final Serializer s, final ContentValues cv, final int[] fieldNames) argument
616 sendStructuredPostal(final Serializer s, final ContentValues cv) argument
642 sendOrganization(final Serializer s, final ContentValues cv) argument
656 sendIm(final Serializer s, final ContentValues cv, final int count) argument
671 sendBirthday(final Serializer s, final ContentValues cv) argument
683 sendNote(final Serializer s, final ContentValues cv, final double protocolVersion) argument
708 sendPhoto(final Serializer s, final ContentValues cv) argument
728 sendEmail(final Serializer s, final ContentValues cv, final int count, final String displayName, final double protocolVersion) argument
[all...]
H A DEasFullSyncOperation.java247 final ContentValues cv = new ContentValues(2);
248 updateMailbox(mailbox, cv, isUserSync ?
263 updateMailbox(mailbox, cv, EmailContent.SYNC_STATUS_NONE);
332 * @param cv A {@link ContentValues} object to use for updating the provider.
335 private void updateMailbox(final Mailbox mailbox, final ContentValues cv, argument
337 cv.put(Mailbox.UI_SYNC_STATUS, syncStatus);
339 cv.put(Mailbox.SYNC_TIME, System.currentTimeMillis());
341 mailbox.update(mContext, cv);
H A DEasSyncCalendar.java269 final ContentValues cv = new ContentValues(1);
272 cv.put(EVENT_SYNC_MARK, "1");
276 final int cnt = cr.update(asSyncAdapter(Events.CONTENT_URI, account), cv,
337 * @param cv The {@link ContentValues} to find the value in.
338 * @param column The name of the column in cv to get.
341 private static int getInt(final ContentValues cv, final String column) { argument
342 final Integer i = cv.getAsInteger(column);
415 final ContentValues cv = new ContentValues(1);
416 cv.put(Events.STATUS, Events.STATUS_CANCELED);
419 cv, nul
[all...]
H A DEasMoveItems.java165 final ContentValues cv = new ContentValues(1);
168 cv.put(EmailContent.MessageColumns.MAILBOX_KEY, request.getSourceFolderKey());
171 cv.put(EmailContent.SyncColumns.SERVER_ID, response.newMessageId);
174 if (cv.size() != 0) {
177 request.getMessageId()), cv, null, null);
/packages/apps/Gallery2/jni/filters/
H A Dhsv.c94 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/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProviderTests.java78 ContentValues cv = new ContentValues();
79 cv.put(PONY_COLUMN_NAME, name);
80 cv.put(PONY_COLUMN_TYPE, type);
81 cv.put(PONY_COLUMN_LEGS, legs);
82 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0);
83 return cv;
165 // ContentValues cv = new ContentValues();
166 // cv.put(PONY_COLUMN_LEGS, 5);
167 // assertEquals(2, mMockResolver.update(MockProvider.uri(uri), cv, null, null));
H A DMockProvider.java169 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastDatabaseHelper.java182 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 DCellBroadcastContentProvider.java191 ContentValues cv = message.getContentValues();
198 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv);
257 ContentValues cv = new ContentValues(1);
258 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, 1);
263 int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMessageChangeLogTable.java80 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);
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DContactLoader.java644 ContentValues cv = new ContentValues();
646 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID));
648 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME);
649 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE);
650 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET);
651 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY);
652 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION);
653 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID);
654 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1);
655 cursorColumnToContentValues(cursor, cv, ContactQuer
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DConversationCursorTests.java84 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 DEmlMessageLoaderTest.java59 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 DTestProviderTests.java72 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 DTestProvider.java169 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 DAccountFinalizeFragment.java120 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);
H A DAccountSettingsUtils.java84 ContentValues cv = new ContentValues();
85 cv.put(QuickResponse.ACCOUNT_KEY, account.mId);
91 cv.put(QuickResponse.TEXT, quickResponse);
92 resolver.insert(QuickResponse.CONTENT_URI, cv);
96 ContentValues cv = getAccountContentValues(account);
97 account.update(context, cv);
109 ContentValues cv = new ContentValues();
110 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName());
111 cv.put(AccountColumns.SENDER_NAME, account.getSenderName());
112 cv
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2TransactionTest.java19 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 DDictionaryBackupAgent.java193 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/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java398 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/Browser/src/com/android/browser/view/
H A DBookmarkExpandableView.java328 View cv = null;
330 cv = row.getChildAt(i);
334 View v = childAdapter.getView(realChildPosition, cv, row);
339 if (cv == null) {
341 } else if (cv != v) {
345 cv.setVisibility(View.VISIBLE);
347 } else if (cv != null) {
348 cv.setVisibility(View.GONE);
/packages/apps/Email/src/com/android/email/provider/
H A DUtilities.java172 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);

Completed in 2225 milliseconds

123