Searched refs:entity (Results 1 - 25 of 25) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/editor/
H A DViewIdGenerator.java65 * @param entity {@link EntityDelta} associated with the view
71 public int getId(EntityDelta entity, DataKind kind, ValuesDelta values, argument
73 final String k = getMapKey(entity, kind, values, viewIndex);
84 private static String getMapKey(EntityDelta entity, DataKind kind, ValuesDelta values, argument
87 if (entity != null) {
88 sWorkStringBuilder.append(entity.getValues().getId());
H A DContactEditorFragment.java452 Entity entity = entities.get(0);
453 ContentValues entityValues = entity.getEntityValues();
696 final EntityDelta entity = mState.get(i);
697 final ValuesDelta values = entity.getValues();
730 editor.setState(entity, type, mViewIdGenerator, isEditingUserProfile());
805 final EntityDelta entity = mState.get(0);
806 final ValuesDelta values = entity.getValues();
/packages/apps/Mms/src/com/android/mms/transaction/
H A DHttpUtils.java128 ProgressCallbackEntity entity = new ProgressCallbackEntity(
131 entity.setContentType("application/vnd.wap.mms-message");
134 post.setEntity(entity);
208 HttpEntity entity = response.getEntity();
210 if (entity != null) {
212 if (entity.getContentLength() > 0) {
213 body = new byte[(int) entity.getContentLength()];
214 DataInputStream dis = new DataInputStream(entity.getContent());
225 if (entity.isChunked()) {
229 DataInputStream dis = new DataInputStream(entity
[all...]
H A DProgressCallbackEntity.java20 import org.apache.http.entity.ByteArrayEntity;
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DContactsSyncAdapter.java353 public void addData(String serverId, ContactOperations ops, Entity entity) argument
378 if (entity == null) {
415 ops.addPhone(entity, Phone.TYPE_MMS, getValue());
418 ops.addPhone(entity, Phone.TYPE_FAX_WORK, getValue());
421 ops.addPhone(entity, Phone.TYPE_COMPANY_MAIN, getValue());
424 ops.addPhone(entity, Phone.TYPE_FAX_HOME, getValue());
431 ops.addPhone(entity, Phone.TYPE_MOBILE, getValue());
434 ops.addPhone(entity, Phone.TYPE_CAR, getValue());
437 ops.addPhone(entity, Phone.TYPE_RADIO, getValue());
440 ops.addPhone(entity, Phon
642 categoriesParser(ContactOperations ops, Entity entity) argument
1107 createBuilder(Entity entity, String mimeType, int type, String stringType) argument
1132 typedRowBuilder(Entity entity, String mimeType, int type) argument
1136 untypedRowBuilder(Entity entity, String mimeType) argument
1140 newRowBuilder(Entity entity, String mimeType) argument
1182 addChildren(Entity entity, ArrayList<String> children) argument
1191 addGroup(Entity entity, String group) argument
1198 addBirthday(Entity entity, String birthday) argument
1210 addName(Entity entity, String prefix, String givenName, String familyName, String middleName, String suffix, String displayName, String yomiFirstName, String yomiLastName, String fileAs) argument
1236 addPersonal(Entity entity, EasPersonal personal) argument
1251 addBusiness(Entity entity, EasBusiness business) argument
1268 addPhoto(Entity entity, String photo) argument
1277 addPhone(Entity entity, int type, String phone) argument
1288 addWebpage(Entity entity, String url) argument
1299 addRelation(Entity entity, int type, String value) argument
1310 addNickname(Entity entity, String name) argument
1322 addPostal(Entity entity, int type, String street, String city, String state, String country, String code) argument
1349 addUntyped(Entity entity, ArrayList<UntypedRow> rows, String mimeType, int type, int maxRows) argument
1416 addOrganization(Entity entity, int type, String company, String title, String department, String yomiCompanyName, String officeLocation) argument
1436 addNote(Entity entity, String note) argument
[all...]
H A DCalendarSyncAdapter.java1490 private void sendEvent(Entity entity, String clientId, Serializer s) argument
1497 ContentValues entityValues = entity.getEntityValues();
1629 ArrayList<NamedContentValues> subValues = entity.getSubValues();
1770 * @param entity
1773 private void sendDeclinedEmail(Entity entity, String clientId) { argument
1775 CalendarUtilities.createMessageForEntity(mContext, entity,
1840 Entity entity = eventIterator.next();
1843 ContentValues entityValues = entity.getEntityValues();
1849 for (NamedContentValues ncv: entity.getSubValues()) {
1863 // Find our uid in the entity; otherwis
[all...]
H A DEmailSyncAdapter.java67 import org.apache.http.entity.ByteArrayEntity;
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java239 Entity entity = new Entity(entityValues);
260 entity.addSubValue(Attendees.CONTENT_URI, attendeeValues);
266 entity.addSubValue(Attendees.CONTENT_URI, organizerValues);
267 return entity;
271 Entity entity = setupTestEventEntity(organizer, attendee, title);
272 ContentValues entityValues = entity.getEntityValues();
277 return entity;
283 Entity entity = setupTestEventEntity(ORGANIZER, ATTENDEE, title);
293 Message msg = CalendarUtilities.createMessageForEntity(mContext, entity,
325 Entity entity
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DTextUtilities.java56 // HTML character entity references as defined in HTML 4
373 // entity to a single character. When Java allows multiple return values, we can make this
425 // Handle a possible HTML entity here
427 // indicating how many characters were eaten from the entity
466 String entity = null;
467 // Isolate the entity
470 entity = text.substring(pos, i);
474 if (entity == null) {
475 // This wasn't really an HTML entity
478 // Skip count is the length of the entity
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntityDiff.java138 private static HashMap<String, NamedContentValues> buildChildrenMap(Entity entity) { argument
139 final ArrayList<NamedContentValues> children = entity.getSubValues();
H A DContactLoader.java124 Entity entity = iterator.next();
125 entities.add(entity);
H A DEntitySet.java74 final EntityDelta entity = EntityDelta.fromBefore(before);
75 state.add(entity);
91 // For each entity in the remote set, try matching over existing
H A DEntityDelta.java85 final EntityDelta entity = new EntityDelta();
86 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues());
87 entity.mValues.setIdColumn(RawContacts._ID);
89 entity.addEntry(ValuesDelta.fromBefore(namedValues.values));
91 return entity;
/packages/apps/Browser/src/com/android/browser/
H A DDownloadTouchIcon.java130 HttpEntity entity = response.getEntity();
131 if (entity != null) {
132 InputStream content = entity.getContent();
H A DGoogleAccountLogin.java137 HttpEntity entity = response.getEntity();
138 if (entity == null) {
139 Log.d(LOGTAG, "LOGIN_FAIL: Null entity in response");
143 result = EntityUtils.toString(entity, "UTF-8");
/packages/apps/Contacts/src/com/android/contacts/
H A DContactLoader.java437 Entity entity = mEntities.get(0);
439 ArrayList<NamedContentValues> subValues = entity.getSubValues();
727 Entity entity = null;
735 entity = new android.content.Entity(loadRawContact(cursor));
736 entities.add(entity);
740 entity.addSubValue(ContactsContract.Data.CONTENT_URI, data);
795 for (Entity entity : contactData.getEntities()) {
796 for (NamedContentValues subValue : entity.getSubValues()) {
825 for (Entity entity : contactData.getEntities()) {
826 final ContentValues values = entity
[all...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityDeltaList.java89 final EntityDelta entity = EntityDelta.fromBefore(before);
90 state.add(entity);
103 // For each entity in the remote set, try matching over existing
H A DEntityDelta.java93 final EntityDelta entity = new EntityDelta();
94 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues());
95 entity.mValues.setIdColumn(RawContacts._ID);
97 entity.addEntry(ValuesDelta.fromBefore(namedValues.values));
99 return entity;
/packages/apps/Exchange/src/com/android/exchange/
H A DEasSyncService.java90 import org.apache.http.entity.ByteArrayEntity;
91 import org.apache.http.entity.StringEntity;
1000 Entity entity = new Entity(entityValues);
1016 entity.addSubValue(Attendees.CONTENT_URI, attendeeValues);
1023 entity.addSubValue(Attendees.CONTENT_URI, organizerValues);
1042 CalendarUtilities.createMessageForEntity(mContext, entity, flag,
1263 protected EasResponse sendHttpClientPost(String cmd, HttpEntity entity) throws IOException { argument
1264 return sendHttpClientPost(cmd, entity, COMMAND_TIMEOUT);
1317 public EasResponse sendHttpClientPost(String cmd, HttpEntity entity, int timeout) argument
1338 // If entity i
[all...]
H A DEasOutboxService.java50 import org.apache.http.entity.InputStreamEntity;
338 // Get an input stream to our temporary file and create an entity with it
343 // The type of entity depends on whether we're using EAS 14
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DCalendarUtilities.java1590 * @param entity the Entity for the Event (as might be retrieved by CalendarProvider)
1596 static public Message createMessageForEntity(Context context, Entity entity, argument
1598 return createMessageForEntity(context, entity, messageFlag, uid, account,
1602 static public EmailContent.Message createMessageForEntity(Context context, Entity entity, argument
1604 ContentValues entityValues = entity.getEntityValues();
1605 ArrayList<NamedContentValues> subValues = entity.getSubValues();
1926 Entity entity = eventIterator.next();
1927 return createMessageForEntity(context, entity, messageFlag, uid, account,
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailDisplayUtils.java155 for (Entity entity : contactData.getEntities()) {
156 for (NamedContentValues subValue : entity.getSubValues()) {
H A DContactDetailFragment.java554 for (Entity entity: mContactData.getEntities()) {
555 final ContentValues entValues = entity.getEntityValues();
566 for (NamedContentValues subValue : entity.getSubValues()) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactFragment.java337 for (Entity entity: mEntities) {
338 final ContentValues entValues = entity.getEntityValues();
359 for (NamedContentValues subValue : entity.getSubValues()) {
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java1794 // Case 3: Retrieve the raw contact profile entity for the inserted raw contact ID.
1799 .appendPath("entity").build(), null, null, null, null);
1981 .appendPath("entity").build(), getExpectedProfileDataValues());
4203 Entity entity;
4205 entity = iterator.next();
4206 assertEquals(c1, (long) entity.getEntityValues().getAsLong(RawContacts._ID));
4207 subValues = asSortedContentValuesArray(entity.getSubValues());
4224 entity = iterator.next();
4225 assertEquals(c2, (long) entity.getEntityValues().getAsLong(RawContacts._ID));
4226 subValues = asSortedContentValuesArray(entity
[all...]

Completed in 1399 milliseconds