/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...] |
ExportTestProvider.java | 19 import android.content.ContentValues; 45 public MockEntityIterator(List<ContentValues> contentValuesList) { 47 Entity entity = new Entity(new ContentValues()); 48 for (ContentValues contentValues : contentValuesList) { 49 entity.addSubValue(Data.CONTENT_URI, contentValues);
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentQueryMapTest.java | 22 import android.content.ContentValues; 61 ContentValues values0 = new ContentValues(); 66 ContentValues values1 = new ContentValues(); 112 Map<String, ContentValues> rows = mContentQueryMap.getRows(); 133 ContentValues contentValues = mContentQueryMap.getValues(NAME0); 134 assertNotNull(contentValues); 135 assertEquals(VALUE0, contentValues.getAsString(DummyProvider.VALUE)) [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...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardBuilder.java | 18 import android.content.ContentValues; 239 private boolean containsNonEmptyName(final ContentValues contentValues) { 240 final String familyName = contentValues.getAsString(StructuredName.FAMILY_NAME); 241 final String middleName = contentValues.getAsString(StructuredName.MIDDLE_NAME); 242 final String givenName = contentValues.getAsString(StructuredName.GIVEN_NAME); 243 final String prefix = contentValues.getAsString(StructuredName.PREFIX); 244 final String suffix = contentValues.getAsString(StructuredName.SUFFIX); 246 contentValues.getAsString(StructuredName.PHONETIC_FAMILY_NAME); 248 contentValues.getAsString(StructuredName.PHONETIC_MIDDLE_NAME) [all...] |
VCardComposer.java | 19 import android.content.ContentValues; 495 final Map<String, List<ContentValues>> contentValuesListMap = 496 new HashMap<String, List<ContentValues>>(); 538 ContentValues contentValues = namedContentValues.values; 539 String key = contentValues.getAsString(Data.MIMETYPE); 541 List<ContentValues> contentValuesList = 544 contentValuesList = new ArrayList<ContentValues>(); 547 contentValuesList.add(contentValues); 582 public String buildVCard(final Map<String, List<ContentValues>> contentValuesListMap) [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
MessageStatusService.java | 21 import android.content.ContentValues; 86 ContentValues contentValues = new ContentValues(2); 93 contentValues.put(Sms.STATUS, status); 94 contentValues.put(Inbox.DATE_SENT, System.currentTimeMillis()); 96 updateUri, contentValues, null, null);
|
/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...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
NameConverter.java | 19 import android.content.ContentValues; 71 * Converts the given structured name (provided as ContentValues) into a display name string. 76 public static String structuredNameToDisplayName(Context context, ContentValues values) { 138 * values into a new or existing ContentValues object). 144 * @param contentValues The content values object to place the structured name values into. If 146 * @return The ContentValues object containing the structured name fields derived from the 149 public static ContentValues displayNameToStructuredName(Context context, String displayName, 150 ContentValues contentValues) { 151 if (contentValues == null) [all...] |
/external/robolectric/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/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapContentObserver.java | 38 import android.content.ContentValues; 447 ContentValues contentValues = new ContentValues(); 448 contentValues.put(Mms.THREAD_ID, DELETED_THREAD_ID); 449 mResolver.update(uri, contentValues, null, null); 465 ContentValues contentValues = new ContentValues(); 466 contentValues.put(Mms.THREAD_ID, threadId) [all...] |
/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...] |
VCardExporterTests.java | 25 import android.content.ContentValues; 245 final ContentValues contentValues = new ContentValues(); 246 contentValues.put("SORT-AS", 255 contentValues); 344 final ContentValues contentValues = new ContentValues(); 345 contentValues.put("SORT-AS" [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContentResolver.java | 94 public final Uri insert(Uri url, ContentValues values) { 99 InsertStatement insertStatement = new InsertStatement(url, new ContentValues(values)); 106 public int update(Uri uri, ContentValues values, String where, String[] selectionArgs) { 111 UpdateStatement updateStatement = new UpdateStatement(uri, new ContentValues(values), where, selectionArgs); 148 public final int bulkInsert(Uri url, ContentValues[] values) { 346 private final ContentValues contentValues; 348 public InsertStatement(Uri uri, ContentValues contentValues) { 350 this.contentValues = contentValues [all...] |
/frameworks/base/cmds/content/src/com/android/commands/content/ |
Content.java | 22 import android.content.ContentValues; 170 ContentValues values = new ContentValues(); 219 ContentValues values = new ContentValues(); 249 ContentValues values = new ContentValues(); 304 private void parseBindValue(ContentValues values) { 397 final ContentValues mContentValues; 399 public InsertCommand(Uri uri, int userId, ContentValues contentValues) [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 25 import android.content.ContentValues; 90 final ContentValues contentValues = new ContentValues(); 91 contentValues.put(Groups.ACCOUNT_NAME, account.name); 92 contentValues.put(Groups.ACCOUNT_TYPE, account.type); 93 contentValues.put(Groups.TITLE, SAMPLE_GROUP_NAME); 94 contentValues.put(Groups.GROUP_IS_READ_ONLY, true); 96 final Uri newGroupUri = resolver.insert(Groups.CONTENT_URI, contentValues); 487 ContentValues values = new ContentValues() [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsBackupAgent.java | 24 import android.content.ContentValues; 668 ContentValues contentValues = new ContentValues(2); 705 contentValues.clear(); 706 contentValues.put(Settings.NameValueTable.NAME, key); 707 contentValues.put(Settings.NameValueTable.VALUE, value); 708 getContentResolver().insert(destination, contentValues); [all...] |
SettingsProvider.java | 31 import android.content.ContentValues; 204 private Uri getUriFor(Uri tableUri, ContentValues values, long rowId) { 493 final ContentValues values = new ContentValues(); 640 final ContentValues values = new ContentValues(); [all...] |
/packages/apps/UnifiedEmail/assets/ |
script.js | 148 var contentValues; 160 contentValues = [metaViewport.getAttribute("content")]; 162 contentValues.push(metaViewport.getAttribute("data-zoom-off")); 164 contentValues.push(metaViewport.getAttribute("data-zoom-on")); 166 metaViewport.setAttribute("content", contentValues.join(","));
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentProviderOperationTest.java | 19 import android.content.ContentValues; 39 private final static ContentValues sTestValues1; 47 sTestValues1 = new ContentValues(); 57 public Uri insert(Uri uri, ContentValues values) { 70 public Uri insert(Uri uri, ContentValues values) { 85 public Uri insert(Uri uri, ContentValues values) { 109 public Uri insert(Uri uri, ContentValues values) { 111 ContentValues expected = new ContentValues(sTestValues1); 127 public Uri insert(Uri uri, ContentValues values) [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
MmsSmsDatabaseHelper.java | 28 import android.content.ContentValues; 471 ContentValues cv = new ContentValues(); 504 ContentValues cv = new ContentValues(); [all...] |