/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
ContactEntry.java | 18 import android.content.ContentValues; 26 * The class representing one contact, which should contain multiple ContentValues like 31 private final List<ContentValues> mContentValuesList = new ArrayList<ContentValues>(); 34 ContentValues contentValues = new ContentValues(); 35 contentValues.put(Data.MIMETYPE, mimeType); 36 mContentValuesList.add(contentValues); 37 return new ContentValuesBuilder(contentValues); [all...] |
ContentValuesVerifierElem.java | 18 import android.content.ContentValues; 36 ContentValues contentValues = new ContentValues(); 37 contentValues.put(Data.MIMETYPE, mimeType); 38 mResolver.addExpectedContentValues(contentValues); 39 return new ContentValuesBuilder(contentValues);
|
ContentValuesBuilder.java | 18 import android.content.ContentValues; 21 * ContentValues-like class which enables users to chain put() methods and restricts 25 private final ContentValues mContentValues; 27 public ContentValuesBuilder(final ContentValues contentValues) { 28 mContentValues = contentValues;
|
PropertyNodesVerifierElem.java | 18 import android.content.ContentValues; 67 String propName, String propValue, ContentValues contentValues) { 69 null, contentValues, null, null); 73 String propName, List<String> propValueList, ContentValues contentValues) { 75 null, contentValues, null, null); 104 List<String> propValueList, ContentValues paramMap, TypeSet paramMap_TYPE) { 110 ContentValues paramMap, TypeSet paramMap_TYPE) { 122 List<String> propValueList, ContentValues paramMap) [all...] |
ImportTestProvider.java | 20 import android.content.ContentValues; 41 private final Map<String, Collection<ContentValues>> 42 mMimeTypeToExpectedContentValues = new HashMap<String, Collection<ContentValues>>(); 44 public void addExpectedContentValues(ContentValues expectedContentValues) { 47 final Collection<ContentValues> contentValuesCollection; 51 contentValuesCollection = new ArrayList<ContentValues>(); 74 ContentValues contentValues = operation.resolveValueBackReferences( 79 ContentValues actualContentValues = operation.resolveValueBackReferences( 115 final Collection<ContentValues> contentValuesCollection [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentQueryMapTest.java | 22 import android.content.ContentValues; 65 ContentValues values0 = new ContentValues(); 70 ContentValues values1 = new ContentValues(); 118 Map<String, ContentValues> rows = mContentQueryMap.getRows(); 139 ContentValues contentValues = mContentQueryMap.getValues(NAME0); 140 assertNotNull(contentValues); 141 assertEquals(VALUE0, contentValues.getAsString(DummyProvider.VALUE)) [all...] |
/frameworks/base/core/java/android/provider/ |
VoicemailContract.java | 24 import android.content.ContentValues; 341 ContentValues contentValues = getContentValues(voicemail); 342 return contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); 358 ContentValues contentValues = getContentValues(voicemails.get(i)); 359 contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); 378 * Maps structured {@link Voicemail} to {@link ContentValues} in content provider. 380 private static ContentValues getContentValues(Voicemail voicemail) { 381 ContentValues contentValues = new ContentValues() [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtilsTest.java | 20 import android.content.ContentValues; 164 ContentValues contentValues = new ContentValues(); 167 DatabaseUtils.cursorDoubleToContentValues(cursor, "age", contentValues, key); 168 assertEquals(20.0, contentValues.getAsDouble(key)); 170 DatabaseUtils.cursorDoubleToContentValues(cursor, "Error Field Name", contentValues, key); 171 assertNull(contentValues.getAsDouble(key)); 173 DatabaseUtils.cursorDoubleToContentValues(cursor, "name", contentValues, key); 174 assertEquals(0.0, contentValues.getAsDouble(key)) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactUtil.java | 21 import android.content.ContentValues; 37 ContentValues values) { 80 * into a new ContentValues object as a set of name-value pairs, and returns the newly created 81 * ContentValues object. Throws an exception if the number of string parameters is odd, or a 87 * @return newly created ContentValues containing the provided name-value pairs 89 public static ContentValues newContentValues(Object... namesAndValues) { 92 final ContentValues contentValues = new ContentValues(); 98 contentValues.putNull(name) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
StructuredNameDataItem.java | 19 import android.content.ContentValues; 31 super(new ContentValues()); 35 /* package */ StructuredNameDataItem(ContentValues values) { 96 final ContentValues contentValues = getContentValues(); 97 return contentValues == null || !contentValues.containsKey(StructuredName.IS_SUPER_PRIMARY) 98 ? false : contentValues.getAsBoolean(StructuredName.IS_SUPER_PRIMARY);
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardBuilder.java | 18 import android.content.ContentValues; 205 private boolean containsNonEmptyName(final ContentValues contentValues) { 206 final String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME); 207 final String middleName = contentValues.getAsString(StructuredName.MIDDLE_NAME); 208 final String givenName = contentValues.getAsString(StructuredName.GIVEN_NAME); 209 final String prefix = contentValues.getAsString(StructuredName.PREFIX); 210 final String suffix = contentValues.getAsString(StructuredName.SUFFIX); 212 contentValues.getAsString(StructuredName.PHONETIC_FAMILY_NAME); 214 contentValues.getAsString(StructuredName.PHONETIC_MIDDLE_NAME) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsDatabaseHelperTest.java | 19 import android.content.ContentValues; 264 ContentValues rawContactValues = new ContentValues(); 276 final ContentValues values = new ContentValues(); 302 ContentValues rawContactValues = new ContentValues(); 311 final ContentValues values = new ContentValues(); 333 final ContentValues contentValues = new ContentValues() [all...] |
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/ |
VoicemailProviderHelpers.java | 25 import android.content.ContentValues; 101 ContentValues contentValues = getContentValues(voicemail); 104 contentValues.put(Voicemails.IS_READ, 0); 106 return mContentResolver.insert(mBaseUri, contentValues); 113 ContentValues values = getContentValues(voicemail); 149 ContentValues values = new ContentValues(); 297 * Maps structured {@link Voicemail} to {@link ContentValues} understood by content provider. 299 private ContentValues getContentValues(Voicemail voicemail) [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
ContactDbUtil.java | 34 import android.content.ContentValues; 76 final ContentValues contentValues = new ContentValues(); 77 contentValues.put(Groups.ACCOUNT_NAME, AccountUtil.ACCOUNT_NAME); 78 contentValues.put(Groups.ACCOUNT_TYPE, AccountUtil.ACCOUNT_TYPE); 79 contentValues.put(Groups.TITLE, context.getString(R.string.video_calling_contact_group)); 80 contentValues.put(Groups.GROUP_IS_READ_ONLY, 1); 81 contentValues.put(Groups.GROUP_VISIBLE, 1); 82 contentValues.put(Groups.SYSTEM_ID, "com.android.vt.eab") [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EditorIntents.java | 25 import android.content.ContentValues; 85 ArrayList<ContentValues> contentValues) { 92 if (contentValues != null && contentValues.size() != 0) { 93 intent.putParcelableArrayListExtra(ContactsContract.Intents.Insert.DATA, contentValues); 166 ArrayList<ContentValues> contentValues = rawContactDeltaList.get(0).getContentValues(); 167 if (contentValues != null && contentValues.size() != 0) [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/ |
VoicemailsQueryHelper.java | 20 import android.content.ContentValues; 165 ContentValues contentValues = new ContentValues(); 166 contentValues.put(Voicemails.IS_READ, "1"); 167 mContentResolver.update(uri, contentValues, null, null); 192 ContentValues contentValues = new ContentValues(); 193 mContentResolver.update(uri, contentValues, null, null) [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/compat/ |
FilteredNumberCompatTest.java | 27 import android.content.ContentValues; 142 ContentValues contentValues = new ContentValues(); 143 contentValues.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, NON_E164_NUMBER); 147 assertEquals(contentValues, FilteredNumberCompat.newBlockNumberContentValues( 278 private ContentValues newExpectedContentValuesM(String number, String e164Number, 280 ContentValues contentValues = new ContentValues(); [all...] |
/packages/apps/Dialer/src/com/android/dialer/compat/ |
FilteredNumberCompat.java | 25 import android.content.ContentValues; 225 * Creates a new {@link ContentValues} suitable for inserting in the filtered number table. 230 * @return The ContentValues to insert. 233 public static ContentValues newBlockNumberContentValues(String number, 235 ContentValues contentValues = new ContentValues(); 236 contentValues.put(getOriginalNumberColumnName(), Preconditions.checkNotNull(number)); 241 contentValues.put(getE164NumberColumnName(), e164Number); 242 contentValues.put(getCountryIsoColumnName(), countryIso) [all...] |
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
MockContentProvider.java | 22 import android.content.ContentValues; 104 public Query returnRow(ContentValues values) { 162 ContentValues values = (ContentValues) row; 203 private final ContentValues mContentValues; 212 * @param contentValues the ContentValues to insert. 216 public Insert(Uri uri, ContentValues contentValues, Uri resultUri) { 218 mContentValues = Preconditions.checkNotNull(contentValues); [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
FilteredNumberAsyncQueryHandlerTest.java | 20 import android.content.ContentValues; 347 private ContentValues newBlockNumberContentValues() { 354 private ContentValues newBlockNumberContentValuesN() { 355 ContentValues contentValues = new ContentValues(); 356 contentValues.put(BlockedNumbers.COLUMN_ORIGINAL_NUMBER, NUMBER); 357 return contentValues; 360 private ContentValues newBlockNumberContentValuesM() { 361 ContentValues contentValues = new ContentValues() [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
NameConverter.java | 19 import android.content.ContentValues; 73 * Converts the given structured name (provided as ContentValues) into a display name string. 78 public static String structuredNameToDisplayName(Context context, ContentValues values) { 144 * values into a new or existing ContentValues object). 150 * @param contentValues The content values object to place the structured name values into. If 152 * @return The ContentValues object containing the structured name fields derived from the 155 public static ContentValues displayNameToStructuredName(Context context, String displayName, 156 ContentValues contentValues) { 157 if (contentValues == null) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContentResolverTest.java | 59 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21)); 60 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri22)); 65 ContentValues contentValues = new ContentValues(); 66 contentValues.put("foo", "bar"); 67 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); 72 contentValues = new ContentValues(); 73 contentValues.put("hello", "world") [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MetadataHandler.java | 19 import android.content.ContentValues; 119 final ContentValues contentValues = MetadataDbHelper.getContentValuesByWordListId( 121 if (contentValues == null) { 129 return WordListMetadata.createFromContentValues(contentValues);
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
BlockedNumberBackupAgent.java | 24 import android.content.ContentValues; 224 ContentValues contentValues = new ContentValues(); 225 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_ORIGINAL_NUMBER, 227 contentValues.put(BlockedNumberContract.BlockedNumbers.COLUMN_E164_NUMBER, 231 BlockedNumberContract.BlockedNumbers.CONTENT_URI, contentValues);
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardJapanizationTests.java | 18 import android.content.ContentValues; 44 ContentValues contentValues = 48 contentValues) 52 null, contentValues, null, null); 119 final ContentValues contentValues = 126 contentValues) 129 contentValues) 131 contentValues); [all...] |