Home
last modified time | relevance | path

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

12

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastProviderTest.java100 ContentValues cv = fakeCellBroadcast(); in testUpdate() local
101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate()
105 int messageDisplayed = 1 - cv.getAsInteger(CellBroadcasts.MESSAGE_DISPLAYED); in testUpdate()
107 cv.put(CellBroadcasts.MESSAGE_DISPLAYED, messageDisplayed); in testUpdate()
108 cv.put(CellBroadcasts.RECEIVED_TIME, receivedTime); in testUpdate()
109 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate()
126 ContentValues cv = fakeCellBroadcast(); in testUpdate_WithoutWritePermission_fail() local
127 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate_WithoutWritePermission_fail()
134 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate_WithoutWritePermission_fail()
146 ContentValues cv = fakeCellBroadcast(); in testGetAllCellBroadcast() local
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java215 ContentValues cv = new ContentValues(); in getContentValues() local
216 cv.put(Telephony.CellBroadcasts.SLOT_INDEX, message.getSlotIndex()); in getContentValues()
217 cv.put(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE, message.getGeographicalScope()); in getContentValues()
219 cv.put(Telephony.CellBroadcasts.PLMN, location.getPlmn()); in getContentValues()
221 cv.put(Telephony.CellBroadcasts.LAC, location.getLac()); in getContentValues()
224 cv.put(Telephony.CellBroadcasts.CID, location.getCid()); in getContentValues()
226 cv.put(Telephony.CellBroadcasts.SERIAL_NUMBER, message.getSerialNumber()); in getContentValues()
227 cv.put(Telephony.CellBroadcasts.SERVICE_CATEGORY, message.getServiceCategory()); in getContentValues()
228 cv.put(Telephony.CellBroadcasts.LANGUAGE_CODE, message.getLanguageCode()); in getContentValues()
229 cv.put(Telephony.CellBroadcasts.MESSAGE_BODY, message.getMessageBody()); in getContentValues()
[all …]
DCellBroadcastAlertService.java318 ContentValues cv = new ContentValues(); in markMessageDisplayed() local
319 cv.put(Telephony.CellBroadcasts.MESSAGE_DISPLAYED, 1); in markMessageDisplayed()
320 mContext.getContentResolver().update(Telephony.CellBroadcasts.CONTENT_URI, cv, in markMessageDisplayed()
840 ContentValues cv = new ContentValues(); in writeMessageToSmsInbox() local
841 cv.put(Telephony.Sms.Inbox.BODY, message.getMessageBody()); in writeMessageToSmsInbox()
842 cv.put(Telephony.Sms.Inbox.DATE, message.getReceivedTime()); in writeMessageToSmsInbox()
843 cv.put(Telephony.Sms.Inbox.SUBSCRIPTION_ID, message.getSubscriptionId()); in writeMessageToSmsInbox()
844 cv.put(Telephony.Sms.Inbox.SUBJECT, CellBroadcastResources.getDialogTitleResource(mContext, in writeMessageToSmsInbox()
846 cv.put(Telephony.Sms.Inbox.ADDRESS, mContext.getString(R.string.sms_cb_sender_name)); in writeMessageToSmsInbox()
848 cv.put(Telephony.Sms.Inbox.THREAD_ID, Telephony.Threads.getOrCreateThreadId(mContext, in writeMessageToSmsInbox()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java88 private static ContentValues cv(Object... namesAndValues) { in cv() method in BlockedNumberProviderTest
128 insertExpectingFailure(cv()); in testInsert()
129 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, null)); in testInsert()
130 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "")); in testInsert()
131 insertExpectingFailure(cv(BlockedNumbers.COLUMN_ID, 1)); in testInsert()
132 insertExpectingFailure(cv(BlockedNumbers.COLUMN_E164_NUMBER, "1")); in testInsert()
134 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "123")); in testInsert()
135 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-2-3")); in testInsert()
136 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "+1-408-454-1111")); in testInsert()
137 insert(cv(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, "1-408-454-2222")); in testInsert()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java383 ContentValues cv; in updateDatabaseFromPb()
391 cv = new ContentValues(); in updateDatabaseFromPb()
392 cv.put(CarrierId.CARRIER_ID, id.canonicalId); in updateDatabaseFromPb()
393 cv.put(CarrierId.CARRIER_NAME, id.carrierName); in updateDatabaseFromPb()
397 cv.put(CarrierId.PARENT_CARRIER_ID, id.parentCanonicalId); in updateDatabaseFromPb()
400 convertCarrierAttrToContentValues(cv, cvs, attr, 0); in updateDatabaseFromPb()
431 private void convertCarrierAttrToContentValues(ContentValues cv, List<ContentValues> cvs, in convertCarrierAttrToContentValues() argument
434 ContentValues carrier = new ContentValues(cv); in convertCarrierAttrToContentValues()
443 cv.put(CarrierId.All.MCCMNC, str); in convertCarrierAttrToContentValues()
444 convertCarrierAttrToContentValues(cv, cvs, attr, index + 1); in convertCarrierAttrToContentValues()
[all …]
DTelephonyProvider.java793 ContentValues cv = new ContentValues(); in initDatabase() local
794 cv.put(EDITED_STATUS, USER_DELETED); in initDatabase()
795 db.update(CARRIERS_TABLE, cv, IS_USER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
798 cv = new ContentValues(); in initDatabase()
799 cv.put(EDITED_STATUS, CARRIER_DELETED); in initDatabase()
800 db.update(CARRIERS_TABLE, cv, IS_CARRIER_DELETED_BUT_PRESENT_IN_XML, null); in initDatabase()
1513 ContentValues cv = new ContentValues(); in copySimInfoDataToTmpTable() local
1514 copySimInfoValuesV24(cv, c); in copySimInfoDataToTmpTable()
1521 getCardIdfromIccid(cv, c); in copySimInfoDataToTmpTable()
1523 db.insert(SIMINFO_TABLE_TMP, null, cv); in copySimInfoDataToTmpTable()
[all …]
DMmsSmsDatabaseHelper.java599 ContentValues cv = new ContentValues(); in populateWordsTable() local
601 cv.clear(); in populateWordsTable()
606 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
607 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, body); in populateWordsTable()
608 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, id); in populateWordsTable()
609 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in populateWordsTable()
610 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in populateWordsTable()
632 ContentValues cv = new ContentValues(); in populateWordsTable() local
634 cv.clear(); in populateWordsTable()
639 cv.put(Telephony.MmsSms.WordsTable.ID, id); in populateWordsTable()
[all …]
DSmsProvider.java767 ContentValues cv = new ContentValues(); in insertInner() local
768 cv.put(Telephony.MmsSms.WordsTable.ID, rowID); in insertInner()
769 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, values.getAsString("body")); in insertInner()
770 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, rowID); in insertInner()
771 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 1); in insertInner()
772 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in insertInner()
892 ContentValues cv = new ContentValues(); in delete() local
893 cv.put("deleted", 1); in delete()
894 count = db.update(TABLE_RAW, cv, where, whereArgs); in delete()
DMmsProvider.java547 ContentValues cv = new ContentValues(); in insert() local
552 cv.put(Telephony.MmsSms.WordsTable.ID, (2L << 32) + rowId); in insert()
553 cv.put(Telephony.MmsSms.WordsTable.INDEXED_TEXT, values.getAsString("text")); in insert()
554 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, rowId); in insert()
555 cv.put(Telephony.MmsSms.WordsTable.TABLE_ID, 2); in insert()
556 db.insert(TABLE_WORDS, Telephony.MmsSms.WordsTable.INDEXED_TEXT, cv); in insert()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java470 ContentValues cv = new ContentValues(); in loadRawContactValues() local
472 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues()
474 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues()
475 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues()
476 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues()
477 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues()
478 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues()
479 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues()
480 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues()
481 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java620 ContentValues cv = new ContentValues(); in loadRawContactValues() local
622 cv.put(RawContacts._ID, cursor.getLong(ContactQuery.RAW_CONTACT_ID)); in loadRawContactValues()
624 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues()
625 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues()
626 cursorColumnToContentValues(cursor, cv, ContactQuery.DATA_SET); in loadRawContactValues()
627 cursorColumnToContentValues(cursor, cv, ContactQuery.DIRTY); in loadRawContactValues()
628 cursorColumnToContentValues(cursor, cv, ContactQuery.VERSION); in loadRawContactValues()
629 cursorColumnToContentValues(cursor, cv, ContactQuery.SOURCE_ID); in loadRawContactValues()
630 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC1); in loadRawContactValues()
631 cursorColumnToContentValues(cursor, cv, ContactQuery.SYNC2); in loadRawContactValues()
[all …]
/packages/apps/Gallery2/jni/filters/
Dhsv.c94 short cv = hsv[hsvOff+0]; in hsv2rgb() local
101 m = ((int)cv*(k1 - (int)cs ))/k1; in hsv2rgb()
105 rb = ( rg = ( rr =( cv >> ABITS) )); in hsv2rgb()
109 iv=(int)cv; in hsv2rgb()
119 cv=(short) (cv >> ABITS); in hsv2rgb()
122 rr = cv; in hsv2rgb()
128 rg = cv; in hsv2rgb()
133 rg = cv; in hsv2rgb()
139 rb = cv; in hsv2rgb()
144 rb = cv; in hsv2rgb()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DApnEditorTest.java156 final ContentValues cv = new ContentValues(); in testSetStringValue_valueChanged_shouldSetValue() local
160 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_valueChanged_shouldSetValue()
165 assertThat(apnValue).isEqualTo(cv.getAsString(apnKey)); in testSetStringValue_valueChanged_shouldSetValue()
173 final ContentValues cv = new ContentValues(); in testSetStringValue_valueNotChanged_shouldNotSetValue() local
177 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_valueNotChanged_shouldNotSetValue()
182 assertThat(cv.get(apnKey)).isNull(); in testSetStringValue_valueNotChanged_shouldNotSetValue()
190 final ContentValues cv = new ContentValues(); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue() local
194 cv, apnKey, apnValue, false /* assumeDiff */, ApnEditor.APN_INDEX); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue()
199 assertThat(cv.get(apnKey)).isNull(); in testSetStringValue_nullValue_shouldNotSetValue_shouldNotSetValue()
208 final ContentValues cv = new ContentValues(); in testSetIntValue_valueChanged_shouldSetValue() local
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java193 ContentValues cv = new ContentValues(2); in restoreDictionary() local
253 cv.clear(); in restoreDictionary()
254 cv.put(Words.WORD, word); in restoreDictionary()
255 cv.put(Words.FREQUENCY, frequencyInt); in restoreDictionary()
256 cv.put(Words.LOCALE, locale); in restoreDictionary()
257 cv.put(Words.APP_ID, appidInt); in restoreDictionary()
258 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
267 getContentResolver().insert(contentUri, cv); in restoreDictionary()
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java655 final ContentValues cv = new ContentValues(); in testAllOperations() local
661 cv.clear(); in testAllOperations()
663 cv.put(getColumns(uri)[0], 1); in testAllOperations()
665 cv.put("_id", 1); in testAllOperations()
668 cv.put(SyncState.ACCOUNT_NAME, "abc"); in testAllOperations()
669 cv.put(SyncState.ACCOUNT_TYPE, "def"); in testAllOperations()
673 final Uri newUri = mResolver.insert(uri, cv); in testAllOperations()
682 mResolver.update(newUri, cv, null, null); in testAllOperations()
691 mResolver.update(uri, cv, "1=2", null); in testAllOperations()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSqlInjectionDetectionTest.java20 import static com.android.providers.contacts.TestUtils.cv;
143 mResolver.update(Data.CONTENT_URI, cv(), ";delete from contacts;--", null); in testBadUpdate()
147 mResolver.update(Data.CONTENT_URI, cv(), "_id in data_usage_stat", null); in testBadUpdate()
150 mResolver.update(Data.CONTENT_URI, cv("_id/**/", 1), null, null); in testBadUpdate()
153 mResolver.update(Data.CONTENT_URI, cv("[data1]", 1), null, null); in testBadUpdate()
160 mResolver.insert(Data.CONTENT_URI, cv("_id/**/", 1)); in testBadInsert()
DContactsProvider2TransactionTest.java19 import static com.android.providers.contacts.TestUtils.cv;
63 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_insert()
90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_update()
124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_delete()
153 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400); in testTransactionCallback_bulkInsert()
198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact()
228 assertStoredValues(Profile.CONTENT_URI, cv( in checkStoredProfile()
DContactsProvider2Test.java19 import static com.android.providers.contacts.TestUtils.cv;
1433 cv(Phone.NUMBER, "1234", Phone.NORMALIZED_NUMBER, "5678") in testPhonesNormalizedNumber()
1451 cv(Phone.NUMBER, "4321", Phone.NORMALIZED_NUMBER, "8765") in testPhonesNormalizedNumber()
1467 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1482 cv(Phone.NUMBER, "+1-800-466-5432", Phone.NORMALIZED_NUMBER, "+18004665432") in testPhonesNormalizedNumber()
1498 cv(Phone.NUMBER, "888", Phone.NORMALIZED_NUMBER, "999") in testPhonesNormalizedNumber()
1510 cv(Phone.NUMBER, "1", Phone.NORMALIZED_NUMBER, null) in testPhonesNormalizedNumber()
1634 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890"), in testPhonesFilterSearchParams()
1635 cv(Phone.DISPLAY_NAME, "Mam", Phone.NUMBER, "323-123-4567") in testPhonesFilterSearchParams()
1641 cv(Phone.DISPLAY_NAME, "Dad", Phone.NUMBER, "123-456-7890") in testPhonesFilterSearchParams()
[all …]
DContactsDatabaseHelperUpgradeTest.java19 import static com.android.providers.contacts.TestUtils.cv;
157 cv(Contacts._ID, 1, in upgradeTo1201()
163 cv( in upgradeTo1201()
173 cv("_id", 1, in upgradeTo1201()
179 cv( in upgradeTo1201()
189 cv( in upgradeTo1201()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierIdProviderTest.java341 ContentValues cv = new ContentValues(); in testUpdateCurrentSubscription() local
342 cv.put(CarrierId.CARRIER_ID, dummy_cid); in testUpdateCurrentSubscription()
343 cv.put(CarrierId.CARRIER_NAME, dummy_name); in testUpdateCurrentSubscription()
347 "1"), cv, null, null); in testUpdateCurrentSubscription() local
416 ContentValues cv = new ContentValues(); in testUpdateCurrentSubscription_WrongURI() local
417 cv.put(CarrierId.CARRIER_ID, dummy_cid); in testUpdateCurrentSubscription_WrongURI()
418 cv.put(CarrierId.CARRIER_NAME, dummy_name); in testUpdateCurrentSubscription_WrongURI()
422 mContext.getContentResolver().update(CarrierId.CONTENT_URI, cv, null, null); in testUpdateCurrentSubscription_WrongURI()
DTelephonyProviderTest.java336 ContentValues cv = new ContentValues(1); in testMccMncMigration()
337 cv.put(Telephony.CarrierId.All.MCCMNC, mccMnc); in testMccMncMigration()
338 return cv; in testMccMncMigration()
347 ContentValues cv = new ContentValues(4); in testMccMncMigration()
348 cv.put(SubscriptionManager.MCC, mcc); in testMccMncMigration()
349 cv.put(SubscriptionManager.MNC, mnc); in testMccMncMigration()
350 cv.put(SubscriptionManager.ICC_ID, String.valueOf(idx)); in testMccMncMigration()
351 cv.put(SubscriptionManager.CARD_ID, String.valueOf(idx)); in testMccMncMigration()
352 return cv; in testMccMncMigration()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java149 private Uri insertBlockedNumber(ContentValues cv) { in insertBlockedNumber() argument
150 throwIfSpecified(cv, BlockedNumberContract.BlockedNumbers.COLUMN_ID); in insertBlockedNumber()
152 final String phoneNumber = cv.getAsString( in insertBlockedNumber()
162 cv.getAsString(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER)); in insertBlockedNumber()
163 cv.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, e164Number); in insertBlockedNumber()
166 Log.d(TAG, String.format("inserted blocked number: %s", cv)); in insertBlockedNumber()
171 BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS, null, cv, in insertBlockedNumber()
177 private static void throwIfSpecified(ContentValues cv, String column) { in throwIfSpecified() argument
178 if (cv.containsKey(column)) { in throwIfSpecified()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java485 final ContentValues cv = new ContentValues(); in migrateFromLegacyTables() local
490 cv.clear(); in migrateFromLegacyTables()
492 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
494 calllog.insertOrThrow(Tables.CALLS, null, cv); in migrateFromLegacyTables()
501 cv.clear(); in migrateFromLegacyTables()
503 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
505 calllog.insertOrThrow(Tables.VOICEMAIL_STATUS, null, cv); in migrateFromLegacyTables()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java264 ContentValues cv = message.getContentValues(); in handleBroadcastSms() local
265 Uri uri = mContext.getContentResolver().insert(CellBroadcasts.CONTENT_URI, cv); in handleBroadcastSms()
423 ContentValues cv = new ContentValues(); in performGeoFencing() local
424 cv.put(CellBroadcasts.LOCATION_CHECK_TIME, System.currentTimeMillis()); in performGeoFencing()
425 mContext.getContentResolver().update(CellBroadcasts.CONTENT_URI, cv, in performGeoFencing()
551 ContentValues cv = new ContentValues(); in broadcastMessage() local
552 cv.put(CellBroadcasts.MESSAGE_BROADCASTED, 1); in broadcastMessage()
553 mContext.getContentResolver().update(CellBroadcasts.CONTENT_URI, cv, in broadcastMessage()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1233 ContentValues cv = new ContentValues(); in updateAndCheckColor() local
1234 cv.put(Colors.COLOR, color); in updateAndCheckColor()
1235 cv.put(Colors.DATA, obsToString(colorType, colorKey, color)); in updateAndCheckColor()
1238 addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), cv, where, in updateAndCheckColor()
1264 private Uri insertEvent(int calId, EventInfo event, ContentValues cv) { in insertEvent() argument
1270 if (cv == null) { in insertEvent()
1271 cv = eventInfoToContentValues(calId, event); in insertEvent()
1274 Uri url = mResolver.insert(mEventsUri, cv); in insertEvent()
1498 ContentValues cv = this.eventInfoToContentValues(calendarId0, mEvents[0]); in testInsertUpdateDeleteColor() local
1499 cv.put(Events.EVENT_COLOR_KEY, colorKey); in testInsertUpdateDeleteColor()
[all …]

12