OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:contentValues
(Results
1 - 9
of
9
) sorted by null
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowContentValuesTest.java
5
import android.content.
ContentValues
;
15
private
ContentValues
contentValues
;
19
contentValues
= new
ContentValues
();
24
ContentValues
valuesA = new
ContentValues
();
25
ContentValues
valuesB = new
ContentValues
();
31
ContentValues
valuesA = new ContentValues()
[
all
...]
ShadowContentResolverTest.java
21
import android.content.
ContentValues
;
85
assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new
ContentValues
())).isEqualTo(uri21);
86
assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new
ContentValues
())).isEqualTo(uri22);
103
@Override public Uri insert(Uri uri,
ContentValues
values) {
109
@Override public int update(Uri uri,
ContentValues
values, String selection, String[] selectionArgs) {
122
ContentValues
contentValues
= new
ContentValues
();
123
contentValues
.put("foo", "bar");
124
contentResolver.insert(EXTERNAL_CONTENT_URI,
contentValues
);
[
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
...]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
ThreadsTest.java
8
import android.content.
ContentValues
;
69
ContentValues
contentValues
= new
ContentValues
();
70
contentValues
.put(Telephony.Sms.THREAD_ID, threadId);
71
contentValues
.put(Telephony.Sms.ADDRESS, address);
72
contentValues
.put(Telephony.Sms.BODY, body);
74
return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI,
contentValues
);
/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
...]
/cts/tests/tests/database/src/android/database/cts/
DatabaseUtilsTest.java
20
import android.content.
ContentValues
;
166
ContentValues
contentValues
= new
ContentValues
();
169
DatabaseUtils.cursorDoubleToContentValues(cursor, "age",
contentValues
, key);
170
assertEquals(20.0,
contentValues
.getAsDouble(key));
172
DatabaseUtils.cursorDoubleToContentValues(cursor, "Error Field Name",
contentValues
, key);
173
assertNull(
contentValues
.getAsDouble(key));
175
DatabaseUtils.cursorDoubleToContentValues(cursor, "name",
contentValues
, key);
176
assertEquals(0.0,
contentValues
.getAsDouble(key))
[
all
...]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
ApnDatabaseTest.java
25
import android.content.
ContentValues
;
125
ContentValues
contentValues
= makeDefaultContentValues();
129
Log.d(TAG, "testInsertCarriers Inserting
contentValues
: " +
contentValues
.toString());
130
Uri newUri = mContentResolver.insert(uri,
contentValues
);
157
contentValues
.put(Carriers.APN, newApn);
158
final int updateCount = mContentResolver.update(uri,
contentValues
, selection,
194
ContentValues
contentValues
= new ContentValues()
[
all
...]
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactManager.java
25
import android.content.
ContentValues
;
81
final
ContentValues
contentValues
= new
ContentValues
();
82
contentValues
.put(Groups.ACCOUNT_NAME, account.name);
83
contentValues
.put(Groups.ACCOUNT_TYPE, account.type);
84
contentValues
.put(Groups.TITLE, SAMPLE_GROUP_NAME);
85
contentValues
.put(Groups.GROUP_IS_READ_ONLY, true);
87
final Uri newGroupUri = resolver.insert(Groups.CONTENT_URI,
contentValues
);
441
ContentValues
values = new ContentValues()
[
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
...]
Completed in 3078 milliseconds