/aosp12/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
H A D | CarrierProviderTest.java | 146 ContentValues contentValues = new ContentValues(); in testInsertCertificates() local 148 contentValues.put(CarrierDatabaseHelper.MCC, test_mcc); in testInsertCertificates() 149 contentValues.put(CarrierDatabaseHelper.MNC, test_mnc); in testInsertCertificates() 182 ContentValues contentValues = new ContentValues(); in testUpdateCertificates() local 184 contentValues.put(CarrierDatabaseHelper.MCC, test_mcc); in testUpdateCertificates() 185 contentValues.put(CarrierDatabaseHelper.MNC, test_mnc); in testUpdateCertificates() 228 ContentValues contentValues = new ContentValues(); in testMultipleCertificates() local 230 contentValues.put(CarrierDatabaseHelper.MCC, test_mcc); in testMultipleCertificates() 231 contentValues.put(CarrierDatabaseHelper.MNC, test_mnc); in testMultipleCertificates() 272 ContentValues contentValues = new ContentValues(); in testDuplicateFailure() local [all …]
|
H A D | TelephonyProviderTest.java | 221 return contentValues; in populateContentValues() 391 contentValues.put(Carriers.APN, insertApn); in testBulkInsertCarriers() 990 contentValues.put(Carriers.APN, apn); in insertApnRecord() 991 contentValues.put(Carriers.NAME, name); in insertApnRecord() 1914 contentValues.put(Carriers.APN, apnName); in testSIMAPNLIST_MatchTheMVNOAPN() 1922 contentValues = new ContentValues(); in testSIMAPNLIST_MatchTheMVNOAPN() 1923 contentValues.put(Carriers.APN, apnName); in testSIMAPNLIST_MatchTheMVNOAPN() 1968 contentValues.put(Carriers.APN, apnName); in testSIMAPNLIST_MatchTheMNOAPN() 2008 contentValues = new ContentValues(); in testSIMAPNLIST_MatchTheCarrierIDANDMNOAPN() 2048 contentValues = new ContentValues(); in testSIMAPNLIST_MatchTheCarrierAPNAndMVNOAPN() [all …]
|
H A D | CarrierIdProviderTest.java | 255 contentValues.put(CarrierId.CARRIER_ID, 1); in testUpdateCarrierInfo() 284 contentValues = new ContentValues(); in testMultiRowInsertionQuery() 286 contentValues.put(CarrierId.CARRIER_ID, 1); in testMultiRowInsertionQuery() 423 ContentValues contentValues = new ContentValues(); in createCarrierInfoInternal() local 425 contentValues.put(CarrierId.All.GID1, test_gid1); in createCarrierInfoInternal() 426 contentValues.put(CarrierId.All.GID2, test_gid2); in createCarrierInfoInternal() 427 contentValues.put(CarrierId.All.PLMN, test_plmn); in createCarrierInfoInternal() 429 contentValues.put(CarrierId.All.SPN, test_spn); in createCarrierInfoInternal() 430 contentValues.put(CarrierId.All.APN, test_apn); in createCarrierInfoInternal() 433 contentValues.put(CarrierId.CARRIER_ID, test_cid); in createCarrierInfoInternal() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/utils/ |
H A 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 64 contentValues.put(Voicemails.NUMBER, voicemail.getNumber()); 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() 73 contentValues.put( in getContentValues() 76 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId()); in getContentValues() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
H A D | AnnotatedCallLogConstraints.java | 46 checkBooleanColumn(AnnotatedCallLog.IS_READ, contentValues, operationType); in check() 47 checkBooleanColumn(AnnotatedCallLog.NEW, 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 101 if (!contentValues.containsKey(columnName)) { in checkColumn() 107 predicate.test(contentValues), in checkColumn() [all …]
|
/aosp12/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardBuilder.java | 230 if (contentValues == null){ in getPrimaryContentValueWithStructuredName() 290 final ContentValues contentValues = in appendNamePropertiesV40() local 367 appendPhoneticNameFields(contentValues); in appendNamePropertiesV40() 394 final ContentValues contentValues = in appendNameProperties() local 524 appendPhoneticNameFields(contentValues); in appendNameProperties() 1003 if (contentValues == null) { in appendPostalsForDoCoMo() 1031 if (contentValues == null) { in appendPostalsForGeneric() 1302 if (contentValues == null) { in appendPhotos() 1378 if (contentValues == null) { in appendEvents() 1432 if (contentValues == null) { in appendRelation() [all …]
|
/aosp12/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/ |
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/frameworks/base/core/java/android/provider/ |
H A D | VoicemailContract.java | 412 ContentValues contentValues = getContentValues(voicemail); in insert() local 429 ContentValues contentValues = getContentValues(voicemails.get(i)); in insert() local 452 ContentValues contentValues = new ContentValues(); in getContentValues() local 454 contentValues.put(Voicemails.NUMBER, voicemail.getNumber()); in getContentValues() 456 contentValues.put(Voicemails.SOURCE_PACKAGE, voicemail.getSourcePackage()); in getContentValues() 457 contentValues.put(Voicemails.SOURCE_DATA, voicemail.getSourceData()); in getContentValues() 458 contentValues.put(Voicemails.IS_READ, voicemail.isRead() ? 1 : 0); in getContentValues() 462 contentValues.put(Voicemails.PHONE_ACCOUNT_COMPONENT_NAME, in getContentValues() 464 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId()); in getContentValues() 468 contentValues.put(Voicemails.TRANSCRIPTION, voicemail.getTranscription()); in getContentValues() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
H A D | SystemCallLogDataSource.java | 320 ContentValues contentValues = new ContentValues(); in handleInsertsAndUpdates() local 321 contentValues.put(AnnotatedCallLog.TIMESTAMP, date); in handleInsertsAndUpdates() 337 contentValues.put( 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() 347 contentValues.put(AnnotatedCallLog.FEATURES, features); in handleInsertsAndUpdates() 348 contentValues.put(AnnotatedCallLog.DURATION, duration); in handleInsertsAndUpdates() 355 setTranscriptionState(cursor, contentValues); in handleInsertsAndUpdates() 358 mutations.update(id, contentValues); in handleInsertsAndUpdates() [all …]
|
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/ |
H A D | EabControllerImpl.java | 609 ContentValues contentValues = new ContentValues(); in insertNewContact() local 638 ContentValues contentValues = new ContentValues(); in insertNewPresenceCapability() local 642 contentValues.put(EabProvider.EabCommonColumns.REQUEST_RESULT, in insertNewPresenceCapability() 670 contentValues = new ContentValues(); in insertNewPresenceCapability() 676 contentValues.put(EabProvider.PresenceTupleColumns.DESCRIPTION, in insertNewPresenceCapability() 683 contentValues.put(EabProvider.PresenceTupleColumns.CONTACT_URI, in insertNewPresenceCapability() 695 presenceContent[i] = contentValues; in insertNewPresenceCapability() 724 ContentValues contentValues = new ContentValues(); in insertNewOptionCapability() local 728 contentValues.put(EabProvider.EabCommonColumns.REQUEST_RESULT, in insertNewOptionCapability() 735 contentValues = new ContentValues(); in insertNewOptionCapability() [all …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
H A D | FakeProviderWithAsserts.java | 64 ExpectedInsert(Uri uri, ContentValues contentValues, Uri returnValue) { in ExpectedInsert() argument 66 mContentValues = contentValues; in ExpectedInsert() 79 ContentValues contentValues, int returnValue) { in ExpectedUpdate() argument 83 mContentValues = contentValues; in ExpectedUpdate() 114 public Uri insert(Uri uri, ContentValues contentValues) { in insert() argument 117 assertThatContentValuesAreEquivalent(contentValues, expectedInsert.mContentValues); in insert() 122 public int update(Uri uri, ContentValues contentValues, String whereClause, in update() argument 126 assertThatContentValuesAreEquivalent(contentValues, expectedUpdate.mContentValues); in update()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A 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()
|
/aosp12/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/tvinput/datamanager/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
H A 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 …]
|
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsDatabaseHelperTest.java | 347 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket() local 349 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetPrimaryPhonebookBucketToNumberBucket() 364 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket() local 366 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_SetAltPhonebookBucketToNumberBucket() 382 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket() local 384 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_NonZeroPrimaryPhonebookBucket() 395 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonNullPrimarySortKey() local 397 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_NonNullPrimarySortKey() 409 final ContentValues contentValues = new ContentValues(); in testUpgradeToVersion111_NonZeroAltPhonebookBucket() local 411 mDb.insert(Tables.RAW_CONTACTS, null, contentValues); in testUpgradeToVersion111_NonZeroAltPhonebookBucket() [all …]
|
/aosp12/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/ |
H A 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()
|
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ContactEntry.java | 34 ContentValues contentValues = new ContentValues(); in addContentValues() local 35 contentValues.put(Data.MIMETYPE, mimeType); in addContentValues() 36 mContentValuesList.add(contentValues); in addContentValues() 37 return new ContentValuesBuilder(contentValues); in addContentValues()
|
H A D | ContentValuesVerifierElem.java | 36 ContentValues contentValues = new ContentValues(); in addExpected() local 37 contentValues.put(Data.MIMETYPE, mimeType); in addExpected() 38 mResolver.addExpectedContentValues(contentValues); in addExpected() 39 return new ContentValuesBuilder(contentValues); in addExpected()
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A 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() 501 ContentValues contentValues, in expectUpdate() argument 575 private String insertToString(Uri uri, ContentValues contentValues) { in insertToString() argument [all …]
|
/aosp12/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/blocking/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/protos/ |
H A 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()
|