/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | CarrierProviderTest.java | 146 ContentValues contentValues = new ContentValues(); in testInsertCertificates() local 147 contentValues.put(CarrierDatabaseHelper.KEY_TYPE, test_type); in testInsertCertificates() 148 contentValues.put(CarrierDatabaseHelper.MCC, test_mcc); in testInsertCertificates() 149 contentValues.put(CarrierDatabaseHelper.MNC, test_mnc); in testInsertCertificates() 150 contentValues.put(CarrierDatabaseHelper.MVNO_TYPE, test_mvno_type); in testInsertCertificates() 151 contentValues.put(CarrierDatabaseHelper.MVNO_MATCH_DATA, test_mvno_match_data); in testInsertCertificates() 152 contentValues.put(CarrierDatabaseHelper.KEY_IDENTIFIER, test_key_identifier_data); in testInsertCertificates() 153 contentValues.put(CarrierDatabaseHelper.PUBLIC_KEY, test_key1.getBytes()); in testInsertCertificates() 154 contentValues.put(CarrierDatabaseHelper.EXPIRATION_TIME, test_key_expiration); in testInsertCertificates() 157 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates() [all …]
|
D | TelephonyProviderTest.java | 200 ContentValues contentValues = new ContentValues(); in populateContentValues() local 202 contentValues.put(Telephony.SimInfo.COLUMN_UNIQUE_KEY_SUBSCRIPTION_ID, arbitraryIntVal); in populateContentValues() 203 contentValues.put(Telephony.SimInfo.COLUMN_ICC_ID, iccId); in populateContentValues() 204 contentValues.put(Telephony.SimInfo.COLUMN_NUMBER, phoneNumber); in populateContentValues() 205 contentValues.put(Telephony.SimInfo.COLUMN_CARD_ID, arbitraryStringVal); in populateContentValues() 206 contentValues.put(Telephony.SimInfo.COLUMN_CARRIER_ID, carrierId); in populateContentValues() 207 contentValues.put(Telephony.SimInfo.COLUMN_ENHANCED_4G_MODE_ENABLED, arbitraryIntVal); in populateContentValues() 208 contentValues.put(Telephony.SimInfo.COLUMN_VT_IMS_ENABLED, arbitraryIntVal); in populateContentValues() 209 contentValues.put(Telephony.SimInfo.COLUMN_IMS_RCS_UCE_ENABLED, arbitraryIntVal); in populateContentValues() 210 contentValues.put(Telephony.SimInfo.COLUMN_WFC_IMS_ENABLED, arbitraryIntVal); in populateContentValues() [all …]
|
D | CarrierIdProviderTest.java | 190 ContentValues contentValues = createCarrierInfoInternal(); in testDuplicateInsertionCarrierInfo() local 191 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 192 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 206 ContentValues contentValues = new ContentValues(); in testInvalidInsertionCarrierInfo() local 207 contentValues.put(CarrierId.All.GID1, test_gid1); in testInvalidInsertionCarrierInfo() 208 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo() 246 ContentValues contentValues = createCarrierInfoInternal(); in testUpdateCarrierInfo() local 249 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo() 255 contentValues.put(CarrierId.CARRIER_ID, 1); in testUpdateCarrierInfo() 256 mContentResolver.update(CarrierId.All.CONTENT_URI, contentValues, in testUpdateCarrierInfo() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/ |
D | VoicemailDatabaseUtil.java | 40 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/ |
D | AnnotatedCallLogConstraints.java | 45 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 …]
|
D | MutationApplier.java | 76 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/ |
D | SystemCallLogDataSource.java | 320 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/ |
D | EpgInput.java | 34 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()
|
D | Lineup.java | 61 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()
|
D | Lineups.java | 34 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/ |
D | ContactsDatabaseHelperTest.java | 347 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/ |
D | VoicemailsQueryHelper.java | 158 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/ |
D | MockContentProvider.java | 249 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/ |
D | EditorIntents.java | 96 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/ |
D | UsbSettingsStorage.java | 175 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/ |
D | ChannelDataManagerTest.java | 61 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/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/ |
D | ChatManager.java | 271 ContentValues contentValues = new ContentValues(); in addNewMessage() local 272 contentValues.put(ChatProvider.RcsColumns.SRC_PHONE_NUMBER, src); in addNewMessage() 273 contentValues.put(ChatProvider.RcsColumns.DEST_PHONE_NUMBER, dest); in addNewMessage() 274 contentValues.put(ChatProvider.RcsColumns.CHAT_MESSAGE, message); in addNewMessage() 275 contentValues.put(ChatProvider.RcsColumns.MSG_TIMESTAMP, currentTime); in addNewMessage() 276 contentValues.put(ChatProvider.RcsColumns.IS_READ, Boolean.TRUE); in addNewMessage() 278 Uri result = mContext.getContentResolver().insert(ChatProvider.CHAT_URI, contentValues); in addNewMessage() 301 ContentValues contentValues = new ContentValues(); in updateMsgResult() local 302 contentValues.put(ChatProvider.RcsColumns.RESULT, success); in updateMsgResult() 303 mContext.getContentResolver().update(ChatProvider.CHAT_URI, contentValues, in updateMsgResult()
|
D | ChatProvider.java | 84 public Uri insert(Uri uri, ContentValues contentValues) { in insert() argument 90 id = db.insert(CHAT_TABLE_NAME, "", contentValues); in insert() 93 id = db.insert(SUMMARY_TABLE_NAME, "", contentValues); in insert() 115 public int update(Uri uri, ContentValues contentValues, String selection, in update() argument 130 result = db.updateWithOnConflict(tableName, contentValues, in update()
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberCompat.java | 203 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/ |
D | CallLogMutations.java | 36 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/calllog/datasources/phonelookup/ |
D | PhoneLookupDataSource.java | 269 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/protos/ |
D | ProtoParsers.java | 52 @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/Contacts/src/com/android/contacts/model/dataitem/ |
D | StructuredNameDataItem.java | 96 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/contacts/common/model/dataitem/ |
D | StructuredNameDataItem.java | 95 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/Dialer/java/com/android/incallui/ |
D | PhoneLookupHistoryRecorder.java | 65 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()
|