Home
last modified time | relevance | path

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

12

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierProviderTest.java146 ContentValues contentValues = new ContentValues(); in testInsertCertificates() local
147 contentValues.put(CarrierDatabaseHelper.KEY_TYPE, dummy_type); in testInsertCertificates()
148 contentValues.put(CarrierDatabaseHelper.MCC, dummy_mcc); in testInsertCertificates()
149 contentValues.put(CarrierDatabaseHelper.MNC, dummy_mnc); in testInsertCertificates()
150 contentValues.put(CarrierDatabaseHelper.MVNO_TYPE, dummy_mvno_type); in testInsertCertificates()
151 contentValues.put(CarrierDatabaseHelper.MVNO_MATCH_DATA, dummy_mvno_match_data); in testInsertCertificates()
152 contentValues.put(CarrierDatabaseHelper.KEY_IDENTIFIER, dummy_key_identifier_data); in testInsertCertificates()
153 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, dummy_key1.getBytes()); in testInsertCertificates()
154 contentValues.put(CarrierDatabaseHelper.EXPIRATION_TIME, dummy_key_expiration); in testInsertCertificates()
157 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates()
[all …]
DTelephonyProviderTest.java256 ContentValues contentValues = new ContentValues(); in testBulkInsertCarriers() local
261 contentValues.put(Carriers.APN, insertApn); in testBulkInsertCarriers()
262 contentValues.put(Carriers.NAME, insertName); in testBulkInsertCarriers()
263 contentValues.put(Carriers.CURRENT, insertCurrent); in testBulkInsertCarriers()
264 contentValues.put(Carriers.NUMERIC, insertNumeric); in testBulkInsertCarriers()
276 Log.d(TAG, "testInsertCarriers: Bulk inserting contentValues=" + contentValues in testBulkInsertCarriers()
278 ContentValues[] values = new ContentValues[]{ contentValues, contentValues2 }; in testBulkInsertCarriers()
390 ContentValues contentValues = new ContentValues(); in testUpdateConflictingCarriers() local
396 contentValues.put(Carriers.APN, insertApn); in testUpdateConflictingCarriers()
397 contentValues.put(Carriers.NAME, insertName); in testUpdateConflictingCarriers()
[all …]
DCarrierIdProviderTest.java192 ContentValues contentValues = createCarrierInfoInternal(); in testDuplicateInsertionCarrierInfo() local
193 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
194 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
208 ContentValues contentValues = new ContentValues(); in testInvalidInsertionCarrierInfo() local
209 contentValues.put(CarrierId.All.GID1, dummy_gid1); in testInvalidInsertionCarrierInfo()
210 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo()
248 ContentValues contentValues = createCarrierInfoInternal(); in testUpdateCarrierInfo() local
251 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo()
257 contentValues.put(CarrierId.CARRIER_ID, 1); in testUpdateCarrierInfo()
258 mContentResolver.update(CarrierId.All.CONTENT_URI, contentValues, in testUpdateCarrierInfo()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DVoicemailDatabaseUtil.java40 ContentValues contentValues = getContentValues(voicemail); in insert() local
42 Voicemails.buildSourceUri(context.getPackageName()), contentValues); in insert()
62 ContentValues contentValues = new ContentValues(); in getContentValues() local
63 contentValues.put(Voicemails.DATE, String.valueOf(voicemail.getTimestampMillis())); in getContentValues()
64 contentValues.put(Voicemails.NUMBER, voicemail.getNumber()); in getContentValues()
65 contentValues.put(Voicemails.DURATION, String.valueOf(voicemail.getDuration())); in getContentValues()
66 contentValues.put(Voicemails.SOURCE_PACKAGE, voicemail.getSourcePackage()); in getContentValues()
67 contentValues.put(Voicemails.SOURCE_DATA, voicemail.getSourceData()); in getContentValues()
68 contentValues.put(Voicemails.IS_READ, voicemail.isRead() ? 1 : 0); in getContentValues()
69 contentValues.put(Voicemails.IS_OMTP_VOICEMAIL, 1); in getContentValues()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogConstraints.java45 public static void check(ContentValues contentValues, @Operation int operationType) { in check() argument
46 checkBooleanColumn(AnnotatedCallLog.IS_READ, contentValues, operationType); in check()
47 checkBooleanColumn(AnnotatedCallLog.NEW, contentValues, operationType); in check()
48 checkBooleanColumn(AnnotatedCallLog.IS_VOICEMAIL_CALL, contentValues, operationType); in check()
49 checkCallTypeColumn(contentValues, operationType); in check()
59 String columnName, ContentValues contentValues, @Operation int operationType) { in checkBooleanColumn() argument
62 contentValues, in checkBooleanColumn()
76 ContentValues contentValues, @Operation int operationType) { in checkCallTypeColumn() argument
79 contentValues, in checkCallTypeColumn()
96 ContentValues contentValues, in checkColumn() argument
[all …]
DMutationApplier.java76 ContentValues contentValues = entry.getValue(); in applyToDatabaseInternal() local
80 .withValues(contentValues) in applyToDatabaseInternal()
90 ContentValues contentValues = entry.getValue(); in applyToDatabaseInternal() local
94 .withValues(contentValues) in applyToDatabaseInternal()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java320 ContentValues contentValues = new ContentValues(); in handleInsertsAndUpdates() local
321 contentValues.put(AnnotatedCallLog.TIMESTAMP, date); in handleInsertsAndUpdates()
329 contentValues.put(AnnotatedCallLog.NUMBER, dialerPhoneNumber.toByteArray()); in handleInsertsAndUpdates()
335 contentValues.put(AnnotatedCallLog.FORMATTED_NUMBER, formattedNumber); in handleInsertsAndUpdates()
337 contentValues.put( in handleInsertsAndUpdates()
340 contentValues.put(AnnotatedCallLog.NUMBER_PRESENTATION, presentation); in handleInsertsAndUpdates()
341 contentValues.put(AnnotatedCallLog.CALL_TYPE, type); in handleInsertsAndUpdates()
342 contentValues.put(AnnotatedCallLog.IS_READ, isRead); in handleInsertsAndUpdates()
343 contentValues.put(AnnotatedCallLog.NEW, isNew); in handleInsertsAndUpdates()
344 contentValues.put(AnnotatedCallLog.GEOCODED_LOCATION, geocodedLocation); in handleInsertsAndUpdates()
[all …]
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DEpgInput.java34 public static EpgInput createEpgChannel(ContentValues contentValues) { in createEpgChannel() argument
35 long id = contentValues.getAsLong(EpgContract.EpgInputs.COLUMN_ID); in createEpgChannel()
36 String inputId = contentValues.getAsString(EpgContract.EpgInputs.COLUMN_INPUT_ID); in createEpgChannel()
37 String lineupId = contentValues.getAsString(EpgContract.EpgInputs.COLUMN_LINEUP_ID); in createEpgChannel()
59 ContentValues contentValues = new ContentValues(); in toContentValues() local
60 contentValues.put(EpgContract.EpgInputs.COLUMN_ID, getId()); in toContentValues()
61 contentValues.put(EpgContract.EpgInputs.COLUMN_INPUT_ID, getInputId()); in toContentValues()
62 contentValues.put(EpgContract.EpgInputs.COLUMN_LINEUP_ID, getLineupId()); in toContentValues()
63 return contentValues; in toContentValues()
DLineup.java61 public static Lineup createLineup(ContentValues contentValues) { in createLineup() argument
62 String id = contentValues.getAsString(EpgContract.Lineups.COLUMN_ID); in createLineup()
63 int type = contentValues.getAsInteger(EpgContract.Lineups.COLUMN_TYPE); in createLineup()
64 String name = contentValues.getAsString(EpgContract.Lineups.COLUMN_NAME); in createLineup()
65 String channels = contentValues.getAsString(EpgContract.Lineups.COLUMN_CHANNELS); in createLineup()
DLineups.java34 ContentValues contentValues = new ContentValues(); in query() local
36 contentValues.clear(); in query()
37 DatabaseUtils.cursorRowToContentValues(cursor, contentValues); in query()
38 result.add(Lineup.createLineup(contentValues)); in query()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java347 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket() local
348 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_PRIMARY, 0); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
349 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket()
364 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket() local
365 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_ALTERNATIVE, 0); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
366 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket()
382 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket() local
383 contentValues.put(RawContactsColumns.PHONEBOOK_BUCKET_PRIMARY, primaryBucket); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket()
384 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket()
395 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonNullPrimarySortKey() local
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVoicemailsQueryHelper.java158 ContentValues contentValues = new ContentValues(); in markReadInDatabase() local
159 contentValues.put(Voicemails.IS_READ, "1"); in markReadInDatabase()
160 contentResolver.update(uri, contentValues, null, null); in markReadInDatabase()
183 ContentValues contentValues = new ContentValues(); in markCleanInDatabase() local
184 contentResolver.update(uri, contentValues, null, null); in markCleanInDatabase()
190 ContentValues contentValues = new ContentValues(); in updateWithTranscription() local
191 contentValues.put(Voicemails.TRANSCRIPTION, transcription); in updateWithTranscription()
192 contentResolver.update(uri, contentValues, null, null); in updateWithTranscription()
251 ContentValues contentValues = new ContentValues(); in markArchiveInDatabase() local
252 contentValues.put(Voicemails.ARCHIVED, "1"); in markArchiveInDatabase()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java249 public Insert(Uri uri, ContentValues contentValues, Uri resultUri) { in Insert() argument
251 mContentValues = Preconditions.checkNotNull(contentValues); in Insert()
266 private boolean equals(Uri uri, ContentValues contentValues) { in equals() argument
267 return mUri.equals(uri) && mContentValues.equals(contentValues); in equals()
392 ContentValues contentValues, in Update() argument
396 mContentValues = Preconditions.checkNotNull(contentValues); in Update()
424 ContentValues contentValues, in equals() argument
427 return mUri.equals(uri) && mContentValues.equals(contentValues) && in equals()
496 public void expectInsert(Uri contentUri, ContentValues contentValues, Uri resultUri) { in expectInsert() argument
497 mExpectedInserts.add(new Insert(contentUri, contentValues, resultUri)); in expectInsert()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java96 long rawContactId, ArrayList<ContentValues> contentValues) { in createEditOtherRawContactIntent() argument
105 if (contentValues != null && contentValues.size() != 0) { in createEditOtherRawContactIntent()
106 intent.putParcelableArrayListExtra(ContactsContract.Intents.Insert.DATA, contentValues); in createEditOtherRawContactIntent()
132 ArrayList<ContentValues> contentValues = rawContactDeltaList.get(0).getContentValues(); in putRawContactDeltaValues() local
133 if (contentValues != null && contentValues.size() != 0) { in putRawContactDeltaValues()
135 ContactsContract.Intents.Insert.DATA, contentValues); in putRawContactDeltaValues()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbSettingsStorage.java175 ContentValues contentValues = new ContentValues(); in settingsToContentValues() local
176 contentValues.put(COLUMN_SERIAL, settings.getSerialNumber()); in settingsToContentValues()
177 contentValues.put(COLUMN_VID, settings.getVid()); in settingsToContentValues()
178 contentValues.put(COLUMN_PID, settings.getPid()); in settingsToContentValues()
179 contentValues.put(COLUMN_NAME, settings.getDeviceName()); in settingsToContentValues()
180 contentValues.put(COLUMN_HANDLER, settings.getHandler().flattenToShortString()); in settingsToContentValues()
181 contentValues.put(COLUMN_AOAP, settings.getAoap() ? 1 : 0); in settingsToContentValues()
182 contentValues.put(COLUMN_DEFAULT_HANDLER, settings.isDefaultHandler() ? 1 : 0); in settingsToContentValues()
183 return contentValues; in settingsToContentValues()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/tvinput/datamanager/
DChannelDataManagerTest.java61 ContentValues contentValues = new ContentValues(); in setup() local
62 contentValues.put(TvContract.Channels.COLUMN_INPUT_ID, "com.android.tv"); in setup()
63 contentValues.put( in setup()
66 contentValues.put(TvContract.Channels.COLUMN_LOCKED, 0); in setup()
67 provider.insert(TvContract.Channels.CONTENT_URI, contentValues); in setup()
68 contentValues.put(TvContract.Channels.COLUMN_LOCKED, 1); in setup()
69 provider.insert(TvContract.Channels.CONTENT_URI, contentValues); in setup()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberCompat.java203 ContentValues contentValues = new ContentValues(); in newBlockNumberContentValues() local
204 contentValues.put(getOriginalNumberColumnName(context), Objects.requireNonNull(number)); in newBlockNumberContentValues()
209 contentValues.put(getE164NumberColumnName(context), e164Number); in newBlockNumberContentValues()
210 contentValues.put(getCountryIsoColumnName(context), countryIso); in newBlockNumberContentValues()
211 contentValues.put(getTypeColumnName(context), FilteredNumberTypes.BLOCKED_NUMBER); in newBlockNumberContentValues()
212 contentValues.put(getSourceColumnName(context), FilteredNumberSources.USER); in newBlockNumberContentValues()
214 return contentValues; in newBlockNumberContentValues()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java269 ContentValues contentValues = new ContentValues(); in writePhoneLookupHistory() local
270 contentValues.put(PhoneLookupHistory.PHONE_LOOKUP_INFO, phoneLookupInfo.toByteArray()); in writePhoneLookupHistory()
271 contentValues.put(PhoneLookupHistory.LAST_MODIFIED, currentTimestamp); in writePhoneLookupHistory()
275 .withValues(contentValues) in writePhoneLookupHistory()
494 ContentValues contentValues = entry.getValue();
498 updateContentValues(contentValues, phoneLookupInfo);
547 ContentValues contentValues = new ContentValues();
548 updateContentValues(contentValues, phoneLookupInfo);
549 mutations.getUpdates().put(id, contentValues);
588 private void updateContentValues(ContentValues contentValues, PhoneLookupInfo phoneLookupInfo) {
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/
DCallLogMutations.java36 public void insert(long id, ContentValues contentValues) { in insert() argument
41 inserts.put(id, contentValues); in insert()
54 public void update(long id, ContentValues contentValues) { in update() argument
60 existingContentValues.putAll(contentValues); in update()
62 updates.put(id, contentValues); in update()
/packages/apps/Dialer/java/com/android/dialer/protos/
DProtoParsers.java52 @NonNull ContentValues contentValues, @NonNull String key, @NonNull T defaultInstance) in get()
55 Assert.isNotNull(contentValues); in get()
59 byte[] bytes = contentValues.getAsByteArray(key); in get()
84 @NonNull ContentValues contentValues, @NonNull String key, @NonNull T defaultInstance) { in getTrusted()
86 return get(contentValues, key, defaultInstance); in getTrusted()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DStructuredNameDataItem.java95 final ContentValues contentValues = getContentValues(); in isSuperPrimary() local
96 return contentValues == null || !contentValues.containsKey(StructuredName.IS_SUPER_PRIMARY) in isSuperPrimary()
98 : contentValues.getAsBoolean(StructuredName.IS_SUPER_PRIMARY); in isSuperPrimary()
/packages/apps/Contacts/src/com/android/contacts/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/apps/Dialer/java/com/android/incallui/
DPhoneLookupHistoryRecorder.java65 ContentValues contentValues = new ContentValues(); in recordPhoneLookupInfo()
66 contentValues.put(PhoneLookupHistory.PHONE_LOOKUP_INFO, result.toByteArray()); in recordPhoneLookupInfo()
67 contentValues.put(PhoneLookupHistory.LAST_MODIFIED, System.currentTimeMillis()); in recordPhoneLookupInfo()
72 contentValues, in recordPhoneLookupInfo()
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/
DBlockedBumberPopulator.java61 ContentValues contentValues = new ContentValues(); in createContentValuesWithNumber() local
62 contentValues.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, number); in createContentValuesWithNumber()
63 return contentValues; in createContentValuesWithNumber()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DRealtimeRowProcessor.java163 ContentValues contentValues = new ContentValues(); in writePhoneLookupHistory()
164 contentValues.put( in writePhoneLookupHistory()
166 contentValues.put(PhoneLookupHistory.LAST_MODIFIED, currentTimestamp); in writePhoneLookupHistory()
170 .withValues(contentValues) in writePhoneLookupHistory()

12