/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/ |
ChatListActivity.java | 29 import com.example.android.wearable.wear.messaging.contacts.ContactsListActivity; 124 // Selected contacts confirmed. 126 ArrayList<Profile> contacts = local 128 mCreateChatTask = new CreateNewChatAsyncTask(this, getUser(), contacts); 160 CreateNewChatAsyncTask(Context context, Profile user, List<Profile> contacts) { 163 this.mContacts = contacts;
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/ |
ContactsListActivity.java | 16 package com.example.android.wearable.wear.messaging.contacts; 41 * Displays a selectable list of contacts. Tapping on a contact (item) causes the action drawer to 42 * peek. Tapping the check returns the selected contacts/profiles. 157 * Since messaging apps will retrieve contacts remotely, {@link AsyncTask} will allow us to 160 * <p>Retrieves the user's contacts and updates the adapter with the new list of contacts. 176 protected void onPostExecute(List<Profile> contacts) { 177 super.onPostExecute(contacts); 178 mAdapter.addAll(contacts);
|
ContactsListAdapter.java | 16 package com.example.android.wearable.wear.messaging.contacts; 68 * thing as when the user *submits* their selected contacts. 219 * Adds the contacts to the collection of contacts to be displayed. 221 * @param contacts 223 public void addAll(List<Profile> contacts) { 224 this.mContacts.addAll(contacts); 234 Log.d(TAG, "Adding position to selected contacts: " + position);
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
MockDatabase.java | 227 * Generates a set of predefined dummy contacts. You may need to add in extra logic for 230 * @return a list of profiles to be used as contacts 234 List<Profile> contacts = SharedPreferencesHelper.readContactsFromJsonPref(context); local 235 if (!contacts.isEmpty()) { 236 return contacts; 239 // Cannot find contacts so we will persist and return a default set of contacts.
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/ |
ChatListActivity.java | 29 import com.example.android.wearable.wear.messaging.contacts.ContactsListActivity; 124 // Selected contacts confirmed. 126 ArrayList<Profile> contacts = local 128 mCreateChatTask = new CreateNewChatAsyncTask(this, getUser(), contacts); 160 CreateNewChatAsyncTask(Context context, Profile user, List<Profile> contacts) { 163 this.mContacts = contacts;
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/ |
ContactsListActivity.java | 16 package com.example.android.wearable.wear.messaging.contacts; 41 * Displays a selectable list of contacts. Tapping on a contact (item) causes the action drawer to 42 * peek. Tapping the check returns the selected contacts/profiles. 157 * Since messaging apps will retrieve contacts remotely, {@link AsyncTask} will allow us to 160 * <p>Retrieves the user's contacts and updates the adapter with the new list of contacts. 176 protected void onPostExecute(List<Profile> contacts) { 177 super.onPostExecute(contacts); 178 mAdapter.addAll(contacts);
|
ContactsListAdapter.java | 16 package com.example.android.wearable.wear.messaging.contacts; 68 * thing as when the user *submits* their selected contacts. 219 * Adds the contacts to the collection of contacts to be displayed. 221 * @param contacts 223 public void addAll(List<Profile> contacts) { 224 this.mContacts.addAll(contacts); 234 Log.d(TAG, "Adding position to selected contacts: " + position);
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
MockDatabase.java | 227 * Generates a set of predefined dummy contacts. You may need to add in extra logic for 230 * @return a list of profiles to be used as contacts 234 List<Profile> contacts = SharedPreferencesHelper.readContactsFromJsonPref(context); local 235 if (!contacts.isEmpty()) { 236 return contacts; 239 // Cannot find contacts so we will persist and return a default set of contacts.
|
/external/ims/rcs/rcsservice/src/com/android/service/ims/ |
TaskManager.java | 118 public int addCapabilityTask(Context context, String[] contacts, 123 listener, contacts, timeout); 133 String[] contacts = new String[1]; local 134 contacts[0] = contact; 136 listener, contacts); 146 String[] contacts = new String[1]; local 147 contacts[0] = contact; 148 Task task = new PresenceTask(taskId, TASK_TYPE_PUBLISH, listener, contacts);
|
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/ |
PresenceSubscriber.java | 405 String[] contacts = ((PresenceTask)task).mContacts; local 406 if(contacts != null && contacts.length>0){ 407 mAvailabilityRetryNumber = contacts[0]; 413 // need handle 404 for multiple contacts as per CV 3.24. 416 String[] contacts = ((PresenceTask)task).mContacts; local 419 for(int i=0; i<contacts.length; i++){ 420 if(TextUtils.isEmpty(contacts[i])){ 424 RcsPresenceInfo presenceInfo = new RcsPresenceInfo(contacts[i], 592 logger.error("updateAvailabilityToUnknown no contacts"); [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
BluetoothMapClientFacade.java | 145 Uri[] contacts = new Uri[phoneNumbers.length]; local 149 contacts[i] = Uri.parse(phoneNumbers[i]); 151 return sMapProfile.sendMessage(device, contacts, message, mSentIntent,
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_ContactsTest.java | 17 package android.provider.cts.contacts; 31 import android.provider.ContactsContract.Contacts; 34 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 35 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 36 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 68 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); 69 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); 71 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); 72 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); 78 Contacts.markAsContacted(mResolver, contact.getId()) [all...] |
ContactsContract_FrequentsStrequentsTest.java | 17 package android.provider.cts.contacts; 29 import android.provider.ContactsContract.Contacts; 33 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 34 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 38 * CTS tests for {@link android.provider.ContactsContract.Contacts#CONTENT_FREQUENT_URI}, 39 * {@link android.provider.ContactsContract.Contacts#CONTENT_STREQUENT_URI} and 40 * {@link android.provider.ContactsContract.Contacts#CONTENT_STREQUENT_FILTER_URI} APIs. 50 Contacts._ID, 51 Contacts.HAS_PHONE_NUMBER, 52 Contacts.NAME_RAW_CONTACT_ID [all...] |
ContactsContract_SearchSnippetsTest.java | 17 package android.provider.cts.contacts; 30 import android.provider.ContactsContract.Contacts; 34 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 35 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 46 Contacts._ID, 53 cv1.put(Contacts.DISPLAY_NAME, "Hot Tamale"); 57 cv2.put(Contacts.DISPLAY_NAME, "Cold Tamago"); 61 cv3.put(Contacts.DISPLAY_NAME, "John Doe"); 82 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() 90 final Uri uri = ContactsContract.Contacts.ENTERPRISE_CONTENT_FILTER_URI.buildUpon( [all...] |
Contacts_PeopleTest.java | 17 package android.provider.cts.contacts; 30 import android.provider.Contacts; 31 import android.provider.Contacts.GroupMembership; 32 import android.provider.Contacts.Groups; 33 import android.provider.Contacts.GroupsColumns; 34 import android.provider.Contacts.People; 71 mProvider = mContentResolver.acquireContentProviderClient(Contacts.AUTHORITY); 117 // Add the My Contacts group, since it is no longer automatically created. 137 cursor.getColumnIndex(android.provider.Contacts.GroupMembership.GROUP_ID); 139 cursor.getColumnIndex(android.provider.Contacts.GroupMembership.PERSON_ID) [all...] |
ContactsContract_DataTest.java | 17 package android.provider.cts.contacts; 36 import android.provider.ContactsContract.Contacts; 37 import android.provider.ContactsContract.Contacts.Entity; 42 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestContact; 43 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestData; 44 import android.provider.cts.contacts.ContactsContract_TestDataBuilder.TestRawContact; 101 Contacts.CUSTOM_RINGTONE, 102 Contacts.DISPLAY_NAME, 103 Contacts.DISPLAY_NAME_ALTERNATIVE, 104 Contacts.DISPLAY_NAME_SOURCE [all...] |
ContactsContract_TestDataBuilder.java | 17 package android.provider.cts.contacts; 26 import android.provider.ContactsContract.Contacts; 292 return Contacts.CONTENT_URI; 310 return with(Contacts._ID, mRawContact.getContactId()).loadUsingValues();
|
ContactsTest.java | 17 package android.provider.cts.contacts; 31 import android.provider.Contacts; 32 import android.provider.Contacts.ContactMethods; 33 import android.provider.Contacts.Extensions; 34 import android.provider.Contacts.GroupMembership; 35 import android.provider.Contacts.Groups; 36 import android.provider.Contacts.GroupsColumns; 37 import android.provider.Contacts.Organizations; 38 import android.provider.Contacts.People; 39 import android.provider.Contacts.PeopleColumns [all...] |
VoicemailContractTest.java | 17 package android.provider.cts.contacts; 63 private final String FOREIGN_SOURCE = "android.provider.cts.contacts.foreign_source";
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ContactsFacade.java | 48 * Provides access to contacts related functionality. 52 private static final Uri CONTACTS_URI = ContactsContract.Contacts.CONTENT_URI; 73 ContactsContract.Contacts.CONTENT_URI, true, mContactsStatusReceiver); 84 Log.e(TAG, "Unable to get field from Contacts Database"); 89 return ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); 93 description = "Displays a list of contacts to pick from.", 121 @Rpc(description = "Returns a List of all possible attributes for contacts.") 149 @Rpc(description = "Returns a List of all contacts.", returns = "a List of contacts as Maps") 152 List<JSONObject> contacts = new ArrayList<JSONObject>() local [all...] |