OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:rawContact
(Results
1 - 13
of
13
) sorted by null
/cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsContract_RawContactsTest.java
86
TestRawContact
rawContact
= mBuilder.newRawContact()
94
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
98
Uri lookupUri = RawContacts.getContactLookupUri(mResolver,
rawContact
.getUri());
103
lookupContact.getId(),
rawContact
.load().getContactId());
107
TestRawContact
rawContact
= mBuilder.newRawContact()
111
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
115
Uri lookupUri = RawContacts.getContactLookupUri(mResolver,
rawContact
.getUri());
120
lookupContact.getId(),
rawContact
.load().getContactId());
221
TestRawContact
rawContact
= mBuilder.newRawContact()
225
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE
[
all
...]
ContactsContract_GroupMembershipTest.java
51
TestRawContact
rawContact
= mBuilder.newRawContact().insert();
53
TestData groupMembership =
rawContact
.newDataRow(GroupMembership.CONTENT_ITEM_TYPE)
58
groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID,
rawContact
.getId());
63
TestRawContact
rawContact
= mBuilder.newRawContact()
72
TestData groupMembership =
rawContact
.newDataRow(GroupMembership.CONTENT_ITEM_TYPE)
77
groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID,
rawContact
.getId());
83
TestRawContact
rawContact
= mBuilder.newRawContact()
87
TestData groupMembership =
rawContact
.newDataRow(GroupMembership.CONTENT_ITEM_TYPE)
98
groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID,
rawContact
.getId());
ContactsContract_PhotoTest.java
63
TestRawContact
rawContact
= mBuilder.newRawContact().insert().load();
64
TestContact contact =
rawContact
.getContact().load();
70
TestData photoData =
rawContact
.newDataRow(Photo.CONTENT_ITEM_TYPE)
75
photoData.assertColumn(Photo.RAW_CONTACT_ID,
rawContact
.getId());
84
TestRawContact
rawContact
= mBuilder.newRawContact().insert().load();
85
TestContact contact =
rawContact
.getContact().load();
91
TestData photoData =
rawContact
.newDataRow(Photo.CONTENT_ITEM_TYPE)
ContactsContract_ContactsTest.java
65
TestRawContact
rawContact
= mBuilder.newRawContact().insert().load();
66
TestContact contact =
rawContact
.getContact().load();
71
assertEquals(0,
rawContact
.getLong(Contacts.LAST_TIME_CONTACTED));
72
assertEquals(0,
rawContact
.getLong(Contacts.TIMES_CONTACTED));
80
rawContact
.load();
85
assertEquals(0,
rawContact
.getLong(Contacts.LAST_TIME_CONTACTED));
86
assertEquals("#" + i, 0,
rawContact
.getLong(Contacts.TIMES_CONTACTED));
100
TestRawContact
rawContact
= mBuilder.newRawContact().insert().load();
101
TestContact contact =
rawContact
.getContact().load();
182
final TestRawContact
rawContact
= mBuilder.newRawContact().insert().load()
[
all
...]
ContactsContract_DataUsageTest.java
157
final TestRawContact
rawContact
= mBuilder.newRawContact().insert().load();
158
final TestContact contact =
rawContact
.getContact().load();
168
assertEquals(1, RawContactUtil.update(mResolver,
rawContact
.getId(), values));
176
assertEquals(1, RawContactUtil.update(mResolver,
rawContact
.getId(), values));
187
assertEquals(1, RawContactUtil.update(mResolver,
rawContact
.getId(), values));
190
rawContact
.load();
195
assertEquals(0,
rawContact
.getLong(Contacts.LAST_TIME_CONTACTED));
196
assertEquals(0,
rawContact
.getLong(Contacts.TIMES_CONTACTED));
ContactsContract_DataTest.java
209
TestRawContact
rawContact
= mBuilder.newRawContact()
217
TestData data =
rawContact
.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
230
TestRawContact
rawContact
= mBuilder.newRawContact()
235
TestData data =
rawContact
.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
246
TestRawContact
rawContact
= mBuilder.newRawContact()
251
TestData data =
rawContact
.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
303
new long[]{
rawContact
.getId()}
308
TestRawContact
rawContact
= mBuilder.newRawContact()
313
TestData data =
rawContact
.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
316
long contactId =
rawContact
.load().getContactId()
[
all
...]
ContactsContract_ContactCountsTest.java
117
TestRawContact
rawContact
= mBuilder.newRawContact()
121
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
124
rawContact
.load();
125
TestContact contact =
rawContact
.getContact().load();
ContactsContract_PhoneLookup.java
74
TestRawContact
rawContact
= mBuilder.newRawContact()
78
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
81
long dataId =
rawContact
.newDataRow(Phone.CONTENT_ITEM_TYPE)
85
rawContact
.load();
86
TestContact contact =
rawContact
.getContact().load();
ContactsContract_TestDataBuilder.java
299
public NestedTestContact(TestRawContact
rawContact
) {
300
mRawContact =
rawContact
;
325
public TestData(TestRawContact
rawContact
, String mimeType) {
326
this.mRawContact =
rawContact
;
ContactsContract_FrequentsStrequentsTest.java
424
TestRawContact
rawContact
= mBuilder.newRawContact()
428
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
431
mDataIds[0] =
rawContact
.newDataRow(Phone.CONTENT_ITEM_TYPE)
435
rawContact
.load();
436
TestContact contact =
rawContact
.getContact().load();
ContactsContract_SearchSnippetsTest.java
329
TestRawContact
rawContact
= mBuilder.newRawContact()
333
rawContact
.newDataRow(StructuredName.CONTENT_ITEM_TYPE)
336
rawContact
.newDataRow(Phone.CONTENT_ITEM_TYPE)
340
rawContact
.load();
341
TestContact contact =
rawContact
.getContact().load();
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactManager.java
20
import com.example.android.samplesync.client.
RawContact
;
106
List<
RawContact
> rawContacts, long groupId, long lastSyncMarker) {
111
final List<
RawContact
> newUsers = new ArrayList<
RawContact
>();
114
for (final
RawContact
rawContact
: rawContacts) {
121
if (
rawContact
.getSyncState() > currentSyncMarker) {
122
currentSyncMarker =
rawContact
.getSyncState();
132
if (
rawContact
.getRawContactId() > 0) {
133
rawContactId =
rawContact
.getRawContactId()
[
all
...]
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
NetworkUtilities.java
160
public static List<
RawContact
> syncContacts(
161
Account account, String authtoken, long serverSyncState, List<
RawContact
> dirtyContacts)
165
for (
RawContact
rawContact
: dirtyContacts) {
166
jsonContacts.add(
rawContact
.toJSONObject());
174
final ArrayList<
RawContact
> serverDirtyList = new ArrayList<
RawContact
>();
202
RawContact
rawContact
=
RawContact
.valueOf(serverContacts.getJSONObject(i))
[
all
...]
Completed in 392 milliseconds