Home
last modified time | relevance | path

Searched refs:contentValues (Results 1 – 22 of 22) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java333 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket() local
334 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_PRIMARY, 0); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
335 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
350 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket() local
351 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_ALTERNATIVE, 0); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
352 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
368 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket() local
369 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_PRIMARY, primaryBucket); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket()
370 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket()
381 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonNullPrimarySortKey() local
[all …]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContentProvider.java216 public Insert(Uri uri, ContentValues contentValues, Uri resultUri) { in Insert() argument
218 mContentValues = Preconditions.checkNotNull(contentValues); in Insert()
233 private boolean equals(Uri uri, ContentValues contentValues) { in equals() argument
234 return mUri.equals(uri) && mContentValues.equals(contentValues); in equals()
359 ContentValues contentValues, in Update() argument
363 mContentValues = Preconditions.checkNotNull(contentValues); in Update()
391 ContentValues contentValues, in equals() argument
394 return mUri.equals(uri) && mContentValues.equals(contentValues) && in equals()
456 public void expectInsert(Uri contentUri, ContentValues contentValues, Uri resultUri) { in expectInsert() argument
457 mExpectedInserts.add(new Insert(contentUri, contentValues, resultUri)); in expectInsert()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/compat/
DFilteredNumberCompatTest.java142 ContentValues contentValues = new ContentValues(); in testNewBlockNumberContentValues_N_Migrated() local
143 contentValues.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, NON_E164_NUMBER); in testNewBlockNumberContentValues_N_Migrated()
147 assertEquals(contentValues, FilteredNumberCompat.newBlockNumberContentValues( in testNewBlockNumberContentValues_N_Migrated()
280 ContentValues contentValues = new ContentValues(); in newExpectedContentValuesM() local
281 contentValues.put(FilteredNumberColumns.NUMBER, number); in newExpectedContentValuesM()
282 contentValues.put(FilteredNumberColumns.NORMALIZED_NUMBER, e164Number); in newExpectedContentValuesM()
283 contentValues.put(FilteredNumberColumns.COUNTRY_ISO, countryIso); in newExpectedContentValuesM()
284 contentValues.put(FilteredNumberColumns.TYPE, FilteredNumberTypes.BLOCKED_NUMBER); in newExpectedContentValuesM()
285 contentValues.put(FilteredNumberColumns.SOURCE, FilteredNumberSources.USER); in newExpectedContentValuesM()
286 return contentValues; in newExpectedContentValuesM()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java85 ArrayList<ContentValues> contentValues) { in createEditOtherContactIntent() argument
92 if (contentValues != null && contentValues.size() != 0) { in createEditOtherContactIntent()
93 intent.putParcelableArrayListExtra(ContactsContract.Intents.Insert.DATA, contentValues); in createEditOtherContactIntent()
166 ArrayList<ContentValues> contentValues = rawContactDeltaList.get(0).getContentValues(); in putRawContactDeltaValues() local
167 if (contentValues != null && contentValues.size() != 0) { in putRawContactDeltaValues()
169 ContactsContract.Intents.Insert.DATA, contentValues); in putRawContactDeltaValues()
DContactEditorBaseFragment.java252 ArrayList<ContentValues> contentValues); in onEditOtherContactRequested() argument
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandlerTest.java355 ContentValues contentValues = new ContentValues(); in newBlockNumberContentValuesN() local
356 contentValues.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, NUMBER); in newBlockNumberContentValuesN()
357 return contentValues; in newBlockNumberContentValuesN()
361 ContentValues contentValues = new ContentValues(); in newBlockNumberContentValuesM() local
362 contentValues.put(FilteredNumberColumns.NORMALIZED_NUMBER, E164_NUMBER); in newBlockNumberContentValuesM()
363 contentValues.put(FilteredNumberColumns.NUMBER, NUMBER); in newBlockNumberContentValuesM()
364 contentValues.put(FilteredNumberColumns.COUNTRY_ISO, COUNTRY_ISO); in newBlockNumberContentValuesM()
365 contentValues.put(FilteredNumberColumns.TYPE, FilteredNumberTypes.BLOCKED_NUMBER); in newBlockNumberContentValuesM()
366 contentValues.put(FilteredNumberColumns.SOURCE, FilteredNumberSources.USER); in newBlockNumberContentValuesM()
367 return contentValues; in newBlockNumberContentValuesM()
/packages/apps/Dialer/src/com/android/dialer/compat/
DFilteredNumberCompat.java235 ContentValues contentValues = new ContentValues(); in newBlockNumberContentValues() local
236 contentValues.put(getOriginalNumberColumnName(), Preconditions.checkNotNull(number)); in newBlockNumberContentValues()
241 contentValues.put(getE164NumberColumnName(), e164Number); in newBlockNumberContentValues()
242 contentValues.put(getCountryIsoColumnName(), countryIso); in newBlockNumberContentValues()
243 contentValues.put(getTypeColumnName(), FilteredNumberTypes.BLOCKED_NUMBER); in newBlockNumberContentValues()
244 contentValues.put(getSourceColumnName(), FilteredNumberSources.USER); in newBlockNumberContentValues()
246 return contentValues; in newBlockNumberContentValues()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DVoicemailsQueryHelper.java175 ContentValues contentValues = new ContentValues(); in markReadInDatabase() local
176 contentValues.put(Voicemails.IS_READ, "1"); in markReadInDatabase()
177 mContentResolver.update(uri, contentValues, null, null); in markReadInDatabase()
185 ContentValues contentValues = new ContentValues(); in updateWithTranscription() local
186 contentValues.put(Voicemails.TRANSCRIPTION, transcription); in updateWithTranscription()
187 mContentResolver.update(uri, contentValues, null, null); in updateWithTranscription()
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/
DFillCallLogTestActivity.java629 final ContentValues contentValues = new ContentValues(); in addManualVoicemail() local
630 contentValues.put(Voicemails.DATE, time); in addManualVoicemail()
631 contentValues.put(Voicemails.NUMBER, mPhoneNumber.getText().toString()); in addManualVoicemail()
632 contentValues.put(Voicemails.DURATION, 5000); in addManualVoicemail()
633 contentValues.put(Voicemails.SOURCE_PACKAGE, getPackageName()); in addManualVoicemail()
634 contentValues.put(Voicemails.SOURCE_DATA, 500); in addManualVoicemail()
635 contentValues.put(Voicemails.IS_READ, 0); in addManualVoicemail()
638 contentValues); in addManualVoicemail() local
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java2042 ContentValues contentValues = new ContentValues(); in setEmailMessageStatusDelete() local
2045 contentValues.put(BluetoothMapContract.MessageColumns._ID, handle); in setEmailMessageStatusDelete()
2054 contentValues.put(BluetoothMapContract.MessageColumns.FOLDER_ID,folderId); in setEmailMessageStatusDelete()
2055 updateCount = mResolver.update(uri, contentValues, null, null); in setEmailMessageStatusDelete()
2089 contentValues.put(BluetoothMapContract.MessageColumns.FOLDER_ID, folderId); in setEmailMessageStatusDelete()
2090 updateCount = mResolver.update(uri, contentValues, null, null); in setEmailMessageStatusDelete()
2130 ContentValues contentValues = new ContentValues(); in updateThreadId() local
2131 contentValues.put(valueString, threadId); in updateThreadId()
2132 mResolver.update(uri, contentValues, null, null); in updateThreadId()
2352 ContentValues contentValues = new ContentValues(); in setMessageStatusRead() local
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DNameConverter.java156 ContentValues contentValues) { in displayNameToStructuredName() argument
157 if (contentValues == null) { in displayNameToStructuredName()
158 contentValues = new ContentValues(); in displayNameToStructuredName()
162 contentValues.put(key, mapValues.get(key)); in displayNameToStructuredName()
164 return contentValues; in displayNameToStructuredName()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DStructuredNameDataItem.java96 final ContentValues contentValues = getContentValues(); in isSuperPrimary() local
97 return contentValues == null || !contentValues.containsKey(StructuredName.IS_SUPER_PRIMARY) in isSuperPrimary()
98 ? false : contentValues.getAsBoolean(StructuredName.IS_SUPER_PRIMARY); in isSuperPrimary()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java224 ContentValues contentValues = new ContentValues(); in writeToProvider() local
225 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER, in writeToProvider()
227 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, in writeToProvider()
231 BlockedNumberContract.BlockedNumbers.CONTENT_URI, contentValues); in writeToProvider()
/packages/apps/UnifiedEmail/assets/
Dscript.js149 var contentValues;
161 contentValues = [metaViewport.getAttribute("content")];
163 contentValues.push(metaViewport.getAttribute("data-zoom-off"));
165 contentValues.push(metaViewport.getAttribute("data-zoom-on"));
167 metaViewport.setAttribute("content", contentValues.join(","));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataHandler.java119 final ContentValues contentValues = MetadataDbHelper.getContentValuesByWordListId( in getCurrentMetadataForWordList() local
121 if (contentValues == null) { in getCurrentMetadataForWordList()
129 return WordListMetadata.createFromContentValues(contentValues); in getCurrentMetadataForWordList()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailConversationCursor.java227 final ContentValues contentValues = new ContentValues(1); in markContentsSeen() local
228 contentValues.put(EmailContent.MessageColumns.FLAG_SEEN, true); in markContentsSeen()
233 resolver.update(uri, contentValues, where, selectionArgs); in markContentsSeen()
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcher.java331 private static void putValue(ContentValues contentValues, String key, String value) {
333 contentValues.putNull(key);
335 contentValues.put(key, value);
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java1601 ContentValues contentValues = new ContentValues(); in upgradeDatabaseToVersion51() local
1602 contentValues.put("seen", 1); in upgradeDatabaseToVersion51()
1603 int count = db.update("sms", contentValues, "read=1", null); in upgradeDatabaseToVersion51()
1606 count = db.update("pdu", contentValues, "read=1", null); in upgradeDatabaseToVersion51()
DMmsSmsProvider.java554 ContentValues contentValues = new ContentValues(1); in getSingleAddressId() local
555 contentValues.put(CanonicalAddressesColumns.ADDRESS, refinedAddress); in getSingleAddressId()
559 CanonicalAddressesColumns.ADDRESS, contentValues); in getSingleAddressId()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java385 public int update(Context context, ContentValues contentValues) { in update() argument
389 return context.getContentResolver().update(getUri(), contentValues, null, null); in update()
392 static public int update(Context context, Uri baseUri, long id, ContentValues contentValues) { in update() argument
394 .update(ContentUris.withAppendedId(baseUri, id), contentValues, null, null); in update()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java2984 ContentValues contentValues = new ContentValues(); in updateValueForKey() local
2985 contentValues.put(CalendarCache.COLUMN_NAME_VALUE, value); in updateValueForKey()
2988 contentValues, in updateValueForKey()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java809 ArrayList<ContentValues> contentValues = new ArrayList<ContentValues>(); in moveItemsInDatabase() local
833 contentValues.add(values); in moveItemsInDatabase()
835 updateItemsInDatabaseHelper(context, contentValues, items, "moveItemInDatabase"); in moveItemsInDatabase()