Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 64) sorted by relevance

123

/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java114 ContentValues cv = new ContentValues(); in testSetTimeRelatedValues_NonRecurring() local
121 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_NonRecurring()
122 assertNull(cv.getAsInteger(Events.DURATION)); in testSetTimeRelatedValues_NonRecurring()
123 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_NonRecurring()
124 assertEquals(endTime, cv.getAsLong(Events.DTEND)); in testSetTimeRelatedValues_NonRecurring()
125 assertEquals(endTime, cv.getAsLong(Events.LAST_DATE)); in testSetTimeRelatedValues_NonRecurring()
126 assertNull(cv.getAsString(Events.EVENT_TIMEZONE)); in testSetTimeRelatedValues_NonRecurring()
132 ContentValues cv = new ContentValues(); in testSetTimeRelatedValues_Recurring() local
138 cv.put(Events.RRULE, "FREQ=DAILY"); in testSetTimeRelatedValues_Recurring()
139 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_Recurring()
[all …]
DEmailSyncAdapterTests.java196 ContentValues cv = new ContentValues(); in testDeleteParser() local
197 cv.put(SyncColumns.SERVER_ID, TEST_SERVER_ID); in testDeleteParser()
199 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, deleteMessageId), cv, in testDeleteParser() local
225 ContentValues cv = new ContentValues(); in testChangeParser() local
227 cv.put(SyncColumns.SERVER_ID, TEST_SERVER_ID); in testChangeParser()
228 cv.put(MessageColumns.FLAGS, randomFlags); in testChangeParser()
230 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, changeMessageId), cv, in testChangeParser() local
279 ContentValues cv = new ContentValues(); in testCleanup() local
280 cv.put(Message.FLAG_READ, 0); in testCleanup()
282 id), cv, null, null); in testCleanup() local
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DCalendarSyncAdapterTests.java114 ContentValues cv = new ContentValues(); in testSetTimeRelatedValues_NonRecurring() local
121 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_NonRecurring()
122 assertNull(cv.getAsInteger(Events.DURATION)); in testSetTimeRelatedValues_NonRecurring()
123 assertEquals(startTime, cv.getAsLong(Events.DTSTART)); in testSetTimeRelatedValues_NonRecurring()
124 assertEquals(endTime, cv.getAsLong(Events.DTEND)); in testSetTimeRelatedValues_NonRecurring()
125 assertEquals(endTime, cv.getAsLong(Events.LAST_DATE)); in testSetTimeRelatedValues_NonRecurring()
126 assertNull(cv.getAsString(Events.EVENT_TIMEZONE)); in testSetTimeRelatedValues_NonRecurring()
132 ContentValues cv = new ContentValues(); in testSetTimeRelatedValues_Recurring() local
138 cv.put(Events.RRULE, "FREQ=DAILY"); in testSetTimeRelatedValues_Recurring()
139 p.setTimeRelatedValues(cv, startTime, endTime, 0); in testSetTimeRelatedValues_Recurring()
[all …]
DEmailSyncAdapterTests.java196 ContentValues cv = new ContentValues(); in testDeleteParser() local
197 cv.put(SyncColumns.SERVER_ID, TEST_SERVER_ID); in testDeleteParser()
199 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, deleteMessageId), cv, in testDeleteParser() local
225 ContentValues cv = new ContentValues(); in testChangeParser() local
227 cv.put(SyncColumns.SERVER_ID, TEST_SERVER_ID); in testChangeParser()
228 cv.put(MessageColumns.FLAGS, randomFlags); in testChangeParser()
230 mResolver.update(ContentUris.withAppendedId(Message.CONTENT_URI, changeMessageId), cv, in testChangeParser() local
279 ContentValues cv = new ContentValues(); in testCleanup() local
280 cv.put(Message.FLAG_READ, 0); in testCleanup()
282 id), cv, null, null); in testCleanup() local
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DContactsSyncAdapter.java259 ContentValues cv = new ContentValues(); in getSyncKey() local
260 cv.put(Groups.ACCOUNT_NAME, mAccount.mEmailAddress); in getSyncKey()
261 cv.put(Groups.ACCOUNT_TYPE, Eas.EXCHANGE_ACCOUNT_MANAGER_TYPE); in getSyncKey()
262 cv.put(Settings.UNGROUPED_VISIBLE, true); in getSyncKey()
263 client.insert(addCallerIsSyncAdapterParameter(Settings.CONTENT_URI), cv); in getSyncKey() local
876 ContentValues cv = new ContentValues(); in commit() local
877 cv.put(RawContacts.DIRTY, 0); in commit()
884 addCallerIsSyncAdapterParameter(RawContacts.CONTENT_URI), cv, in commit() local
894 ContentValues cv = new ContentValues(); in addResponsesParser() local
917 cv.put(RawContacts.SOURCE_ID, serverId); in addResponsesParser()
[all …]
DCalendarSyncAdapter.java367 /*package*/ void setTimeRelatedValues(ContentValues cv, long startTime, long endTime, in setTimeRelatedValues() argument
379 String originalTimeZone = cv.getAsString(Events.EVENT_TIMEZONE); in setTimeRelatedValues()
380 cv.put(EVENT_SAVED_TIMEZONE_COLUMN, originalTimeZone); in setTimeRelatedValues()
381 cv.put(Events.EVENT_TIMEZONE, UTC_TIMEZONE.getID()); in setTimeRelatedValues()
386 if (cv.containsKey(Events.ORIGINAL_INSTANCE_TIME) && in setTimeRelatedValues()
387 cv.containsKey(Events.ORIGINAL_ALL_DAY)) { in setTimeRelatedValues()
388 Integer ade = cv.getAsInteger(Events.ORIGINAL_ALL_DAY); in setTimeRelatedValues()
390 long exceptionTime = cv.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in setTimeRelatedValues()
396 cv.put(Events.ORIGINAL_INSTANCE_TIME, cal.getTimeInMillis()); in setTimeRelatedValues()
401 cv.put(Events.DTSTART, startTime); in setTimeRelatedValues()
[all …]
DFolderSyncParser.java168 ContentValues cv = new ContentValues(); in parse() local
169 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in parse()
171 mAccount.mId), cv, null, null); in parse() local
300 ContentValues cv = new ContentValues(); in restoreMailboxSyncOptions() local
304 cv.put(MailboxColumns.SYNC_INTERVAL, options.mInterval); in restoreMailboxSyncOptions()
305 cv.put(MailboxColumns.SYNC_LOOKBACK, options.mLookback); in restoreMailboxSyncOptions()
308 mContentResolver.update(Mailbox.CONTENT_URI, cv, WHERE_SERVER_ID_AND_ACCOUNT, in restoreMailboxSyncOptions()
485 ContentValues cv = new ContentValues(); in updateParser() local
487 cv.put(Mailbox.DISPLAY_NAME, displayName); in updateParser()
490 cv.put(Mailbox.PARENT_SERVER_ID, parentId); in updateParser()
[all …]
DAbstractSyncParser.java124 ContentValues cv = new ContentValues(); in parse() local
180 cv.put(MailboxColumns.SYNC_KEY, newKey); in parse()
205 cv.put(MailboxColumns.SYNC_INTERVAL, mMailbox.mSyncInterval); in parse()
212 cv.put(MailboxColumns.SYNC_INTERVAL, Mailbox.CHECK_INTERVAL_PING); in parse()
220 mMailbox.update(mContext, cv); in parse()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DCandidatesContainer.java187 CandidateView cv = (CandidateView) mFlipper.getChildAt(i); in initialize() local
188 cv.initialize(this, balloonHint, gestureDetector, mCvListener); in initialize()
207 CandidateView cv = (CandidateView) mFlipper.getChildAt(i); in showCandidates() local
208 cv.setDecodingInfo(mDecInfo); in showCandidates()
212 CandidateView cv = (CandidateView) mFlipper.getCurrentView(); in showCandidates() local
213 cv.showPage(mCurrentPage, 0, enableActiveHighlight); in showCandidates()
224 CandidateView cv = (CandidateView) mFlipper.getCurrentView(); in enableActiveHighlight() local
225 cv.enableActiveHighlight(enableActiveHighlight); in enableActiveHighlight()
251 CandidateView cv = (CandidateView) mFlipper.getCurrentView(); in activeCurseBackward() local
253 if (cv.activeCurseBackward()) { in activeCurseBackward()
[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.java191 ContentValues cv = message.getContentValues(); in insertNewBroadcast() local
193 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast()
254 ContentValues cv = new ContentValues(1); in markBroadcastRead() local
255 cv.put(Telephony.CellBroadcasts.MESSAGE_READ, 1); in markBroadcastRead()
260 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead()
/packages/apps/Contacts/src/com/android/contacts/
DContactLoader.java956 ContentValues cv = new ContentValues(); in loadRawContact() local
958 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContact()
960 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContact()
961 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContact()
962 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContact()
963 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE_AND_DATA_SET); in loadRawContact()
964 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContact()
965 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContact()
966 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContact()
967 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContact()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsUtils.java55 ContentValues cv = getAccountContentValues(account); in commitSettings() local
56 account.update(context, cv); in commitSettings()
67 ContentValues cv = new ContentValues(); in getAccountContentValues() local
68 cv.put(AccountColumns.IS_DEFAULT, account.mIsDefault); in getAccountContentValues()
69 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName()); in getAccountContentValues()
70 cv.put(AccountColumns.SENDER_NAME, account.getSenderName()); in getAccountContentValues()
71 cv.put(AccountColumns.SIGNATURE, account.getSignature()); in getAccountContentValues()
72 cv.put(AccountColumns.SYNC_INTERVAL, account.mSyncInterval); in getAccountContentValues()
73 cv.put(AccountColumns.RINGTONE_URI, account.mRingtoneUri); in getAccountContentValues()
74 cv.put(AccountColumns.FLAGS, account.mFlags); in getAccountContentValues()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProviderTests.java75 ContentValues cv = new ContentValues(); in ponyValues() local
76 cv.put(PONY_COLUMN_NAME, name); in ponyValues()
77 cv.put(PONY_COLUMN_TYPE, type); in ponyValues()
78 cv.put(PONY_COLUMN_LEGS, legs); in ponyValues()
79 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0); in ponyValues()
80 return cv; in ponyValues()
162 ContentValues cv = new ContentValues(); in testUpdate() local
163 cv.put(PONY_COLUMN_LEGS, 5); in testUpdate()
164 assertEquals(2, mMockResolver.update(MockProvider.uri(uri), cv, null, null)); in testUpdate()
DMockProvider.java166 for (ContentValues cv: valuesList) { in query()
170 rowValues[i++] = cv.get(column); in query()
196 ContentValues cv = mMockStore.get(path); in update() local
197 if (cv != null) { in update()
198 updateValuesList.add(cv); in update()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMockProviderTests.java75 ContentValues cv = new ContentValues(); in ponyValues() local
76 cv.put(PONY_COLUMN_NAME, name); in ponyValues()
77 cv.put(PONY_COLUMN_TYPE, type); in ponyValues()
78 cv.put(PONY_COLUMN_LEGS, legs); in ponyValues()
79 cv.put(PONY_COLUMN_CAN_RIDE, canRide ? 1 : 0); in ponyValues()
80 return cv; in ponyValues()
162 ContentValues cv = new ContentValues(); in testUpdate() local
163 cv.put(PONY_COLUMN_LEGS, 5); in testUpdate()
164 assertEquals(2, mMockResolver.update(MockProvider.uri(uri), cv, null, null)); in testUpdate()
DMockProvider.java166 for (ContentValues cv: valuesList) { in query()
170 rowValues[i++] = cv.get(column); in query()
196 ContentValues cv = mMockStore.get(path); in update() local
197 if (cv != null) { in update()
198 updateValuesList.add(cv); in update()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEasAccountService.java232 ContentValues cv = new ContentValues(); in sync() local
233 cv.put(AccountColumns.SYNC_KEY, mAccount.mSyncKey); in sync()
234 mAccount.update(mContext, cv); in sync()
243 ContentValues cv = new ContentValues(); in sync() local
244 cv.put(Mailbox.SYNC_INTERVAL, Mailbox.CHECK_INTERVAL_PUSH); in sync()
245 if (mContentResolver.update(Mailbox.CONTENT_URI, cv, in sync()
272 cv.clear(); in sync()
275 cv.put(Account.PROTOCOL_VERSION, mProtocolVersion); in sync()
277 cv.put(Account.FLAGS, in sync()
283 mAccount.update(mContext, cv); in sync()
[all …]
/packages/apps/Email/src/com/android/email/
DController.java449 ContentValues cv = new ContentValues(); in loadMessageForView() local
450 cv.put(MessageColumns.FLAG_LOADED, Message.FLAG_LOADED_COMPLETE); in loadMessageForView()
451 mProviderContext.getContentResolver().update(uri, cv, null, null); in loadMessageForView()
578 ContentValues cv = new ContentValues(); in sendMessage() local
579 cv.put(EmailContent.MessageColumns.MAILBOX_KEY, outboxId); in sendMessage()
583 resolver.update(uri, cv, null, null); in sendMessage()
661 ContentValues cv = new ContentValues(); in resetVisibleLimits()
662 cv.put(MailboxColumns.VISIBLE_LIMIT, Email.VISIBLE_LIMIT_DEFAULT); in resetVisibleLimits()
663 resolver.update(Mailbox.CONTENT_URI, cv, in resetVisibleLimits()
704 ContentValues cv = new ContentValues();; in loadMoreMessages()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java188 ContentValues cv = new ContentValues(2); in restoreDictionary() local
234 cv.clear(); in restoreDictionary()
235 cv.put(Words.WORD, word); in restoreDictionary()
236 cv.put(Words.FREQUENCY, frequencyInt); in restoreDictionary()
237 cv.put(Words.LOCALE, locale); in restoreDictionary()
238 cv.put(Words.APP_ID, appidInt); in restoreDictionary()
239 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
243 getContentResolver().insert(contentUri, cv); in restoreDictionary()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DShortcutRepositoryImplLog.java556 ContentValues cv = new ContentValues(); in makeShortcutRow() local
557 cv.put(Shortcuts.intent_key.name(), intentKey); in makeShortcutRow()
558 cv.put(Shortcuts.source.name(), sourceName); in makeShortcutRow()
559 cv.put(Shortcuts.source_version_code.name(), source.getVersionCode()); in makeShortcutRow()
560 cv.put(Shortcuts.format.name(), suggestion.getSuggestionFormat()); in makeShortcutRow()
561 cv.put(Shortcuts.title.name(), suggestion.getSuggestionText1()); in makeShortcutRow()
562 cv.put(Shortcuts.description.name(), suggestion.getSuggestionText2()); in makeShortcutRow()
563 cv.put(Shortcuts.description_url.name(), suggestion.getSuggestionText2Url()); in makeShortcutRow()
564 cv.put(Shortcuts.icon1.name(), icon1Uri); in makeShortcutRow()
565 cv.put(Shortcuts.icon2.name(), icon2Uri); in makeShortcutRow()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java677 ContentValues cv = new ContentValues(); in clearSecurityHoldOnAllAccounts() local
678 cv.put(AccountColumns.FLAGS, flags & ~FLAGS_SECURITY_HOLD); in clearSecurityHoldOnAllAccounts()
681 resolver.update(uri, cv, null, null); in clearSecurityHoldOnAllAccounts()
721 public int update(Context context, ContentValues cv) { in update() argument
722 if (cv.containsKey(AccountColumns.IS_DEFAULT) && in update()
723 cv.getAsBoolean(AccountColumns.IS_DEFAULT)) { in update()
732 .withValues(cv).build()); in update()
743 return super.update(context, cv); in update()
794 ContentValues cv = null; in save() local
796 cv = new ContentValues(); in save()
[all …]
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java579 ContentValues cv = new ContentValues(); in createPlaylist() local
580 cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name)); in createPlaylist()
581 Uri uri = resolver.insert(MediaStore.Audio.Playlists.getContentUri("external"), cv); in createPlaylist()
598 ContentValues cv = new ContentValues(); in addToMediaDB() local
609 cv.put(MediaStore.Audio.Media.IS_MUSIC, "0"); in addToMediaDB()
611 cv.put(MediaStore.Audio.Media.TITLE, title); in addToMediaDB()
612 cv.put(MediaStore.Audio.Media.DATA, file.getAbsolutePath()); in addToMediaDB()
613 cv.put(MediaStore.Audio.Media.DATE_ADDED, (int) (current / 1000)); in addToMediaDB()
614 cv.put(MediaStore.Audio.Media.DATE_MODIFIED, (int) (modDate / 1000)); in addToMediaDB()
615 cv.put(MediaStore.Audio.Media.DURATION, sampleLengthMillis); in addToMediaDB()
[all …]
/packages/apps/Browser/src/com/android/browser/view/
DBookmarkExpandableView.java325 View cv = null; in getChildView() local
327 cv = row.getChildAt(i); in getChildView()
331 View v = childAdapter.getView(realChildPosition, cv, row); in getChildView()
336 if (cv == null) { in getChildView()
338 } else if (cv != v) { in getChildView()
342 cv.setVisibility(View.VISIBLE); in getChildView()
344 } else if (cv != null) { in getChildView()
345 cv.setVisibility(View.GONE); in getChildView()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java379 ContentValues cv = new ContentValues(); in saveAttachment() local
423 cv.put(AttachmentColumns.SIZE, size); in saveAttachment()
424 cv.put(AttachmentColumns.CONTENT_URI, contentUri); in saveAttachment()
425 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachment()
428 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in saveAttachment()
430 context.getContentResolver().update(uri, cv, null, null); in saveAttachment()

123