HomeSort by relevance Sort by last modified time
    Searched refs:DataKind (Results 1 - 25 of 64) sorted by null

1 2 3

  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
ContactsSource.java 67 * Set of {@link DataKind} supported by this source.
69 private ArrayList<DataKind> mKinds = Lists.newArrayList();
72 * Lookup map of {@link #mKinds} on {@link DataKind#mimeType}.
74 private HashMap<String, DataKind> mMimeKinds = Maps.newHashMap();
146 * {@link Comparator} to sort by {@link DataKind#weight}.
148 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() {
149 public int compare(DataKind object1, DataKind object2) {
155 * Return list of {@link DataKind} supported, sorted b
    [all...]
GoogleSource.java 73 protected DataKind inflateStructuredName(Context context, int inflateLevel) {
78 protected DataKind inflateNickname(Context context, int inflateLevel) {
83 protected DataKind inflatePhone(Context context, int inflateLevel) {
84 final DataKind kind = super.inflatePhone(context, ContactsSource.LEVEL_MIMETYPES);
107 protected DataKind inflateEmail(Context context, int inflateLevel) {
108 final DataKind kind = super.inflateEmail(context, ContactsSource.LEVEL_MIMETYPES);
127 protected DataKind inflateStructuredPostal(Context context, int inflateLevel) {
132 protected DataKind inflateIm(Context context, int inflateLevel) {
137 protected DataKind inflateOrganization(Context context, int inflateLevel) {
142 protected DataKind inflatePhoto(Context context, int inflateLevel)
    [all...]
FallbackSource.java 105 protected DataKind inflateStructuredName(Context context, int inflateLevel) {
106 DataKind kind = getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE);
108 kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
155 protected DataKind inflateNickname(Context context, int inflateLevel) {
156 DataKind kind = getKindForMimetype(Nickname.CONTENT_ITEM_TYPE);
158 kind = addKind(new DataKind(Nickname.CONTENT_ITEM_TYPE,
178 protected DataKind inflatePhone(Context context, int inflateLevel) {
179 DataKind kind = getKindForMimetype(Phone.CONTENT_ITEM_TYPE);
181 kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup,
223 protected DataKind inflateEmail(Context context, int inflateLevel)
    [all...]
ExchangeSource.java 65 protected DataKind inflateStructuredName(Context context, int inflateLevel) {
66 final DataKind kind = super.inflateStructuredName(context, ContactsSource.LEVEL_MIMETYPES);
109 protected DataKind inflateNickname(Context context, int inflateLevel) {
110 final DataKind kind = super.inflateNickname(context, ContactsSource.LEVEL_MIMETYPES);
124 protected DataKind inflatePhone(Context context, int inflateLevel) {
125 final DataKind kind = super.inflatePhone(context, ContactsSource.LEVEL_MIMETYPES);
156 protected DataKind inflateEmail(Context context, int inflateLevel) {
157 final DataKind kind = super.inflateEmail(context, ContactsSource.LEVEL_MIMETYPES);
170 protected DataKind inflateStructuredPostal(Context context, int inflateLevel) {
171 final DataKind kind = super.inflateStructuredPostal(context, ContactsSource.LEVEL_MIMETYPES)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
ExchangeAccountType.java 35 import com.android.contacts.common.model.dataitem.DataKind;
81 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException {
82 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
110 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException {
111 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME,
143 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException {
144 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME
    [all...]
AccountType.java 31 import com.android.contacts.common.model.dataitem.DataKind;
88 * Set of {@link DataKind} supported by this source.
90 private ArrayList<DataKind> mKinds = Lists.newArrayList();
93 * Lookup map of {@link #mKinds} on {@link DataKind#mimeType}.
95 private HashMap<String, DataKind> mMimeKinds = Maps.newHashMap();
296 * {@link Comparator} to sort by {@link DataKind#weight}.
298 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() {
300 public int compare(DataKind object1, DataKind object2)
    [all...]
BaseAccountType.java 42 import com.android.contacts.common.model.dataitem.DataKind;
84 // value is specified for a particular type, we use the default value from {@link DataKind}.
90 static final String DATA_KIND = "DataKind";
149 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException {
150 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
179 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException {
180 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME
    [all...]
GoogleAccountType.java 28 import com.android.contacts.common.model.dataitem.DataKind;
84 protected DataKind addDataKindPhone(Context context) throws DefinitionException {
85 final DataKind kind = super.addDataKindPhone(context);
107 protected DataKind addDataKindEmail(Context context) throws DefinitionException {
108 final DataKind kind = super.addDataKindEmail(context);
124 private DataKind addDataKindRelation(Context context) throws DefinitionException {
125 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE,
159 private DataKind addDataKindEvent(Context context) throws DefinitionException {
160 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE
    [all...]
SamsungAccountType.java 22 import com.android.contacts.common.model.dataitem.DataKind;
40 * This is only used to partially support Samsung accounts. The DataKind labels & fields are
89 protected DataKind addDataKindStructuredPostal(Context context) throws DefinitionException {
90 final DataKind kind = super.addDataKindStructuredPostal(context);
129 protected DataKind addDataKindPhone(Context context) throws DefinitionException {
130 final DataKind kind = super.addDataKindPhone(context);
153 protected DataKind addDataKindEmail(Context context) throws DefinitionException {
154 final DataKind kind = super.addDataKindEmail(context);
170 private DataKind addDataKindRelation(Context context) throws DefinitionException {
171 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
Editor.java 23 import com.android.contacts.common.model.dataitem.DataKind;
67 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
PhoneticNameEditorView.java 25 import com.android.contacts.common.model.dataitem.DataKind;
45 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) {
56 if (key.equals(DataKind.PSEUDO_COLUMN_PHONETIC_NAME)) {
89 return DataKind.PSEUDO_COLUMN_PHONETIC_NAME.equals(column);
105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
156 return getEntry().getAsString(DataKind.PSEUDO_COLUMN_PHONETIC_NAME);
ViewIdGenerator.java 25 import com.android.contacts.common.model.dataitem.DataKind;
66 * @param kind {@link DataKind} associated with the view, or null if none exists.
71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values,
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values,
CompactRawContactsEditorView.java 28 import com.android.contacts.common.model.dataitem.DataKind;
298 setId(mViewIdGenerator.getId(rawContactDeltas.get(0), /* dataKind =*/ null,
395 final DataKind dataKind = accountType.getKindForMimetype(Photo.CONTENT_ITEM_TYPE);
403 mPhoto.setValues(dataKind, valuesDelta, rawContactDelta,
421 final DataKind dataKind = accountType.getKindForMimetype(Photo.CONTENT_ITEM_TYPE);
422 if (dataKind != null && dataKind.editable) {
431 mPhoto.setValues(dataKind, valuesDelta, rawContactDelta
    [all...]
EditorUiUtils.java 30 import com.android.contacts.common.model.dataitem.DataKind;
40 // Maps DataKind.mimeType to editor view layouts.
43 // Generally there should be a layout mapped to each existing DataKind mimetype but lots of
48 // DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME
62 mimetypeLayoutMap.put(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME,
RawContactEditorView.java 41 import com.android.contacts.common.model.dataitem.DataKind;
85 private DataKind mGroupMembershipKind;
241 for (DataKind kind : type.getSortedDataKinds()) {
250 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME),
253 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME),
258 final DataKind nickNameKind = type.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE);
280 } else if (DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME.equals(mimeType)
281 || DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals(mimeType)
  /frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
UT_element.java 23 import android.renderscript.Element.DataKind.*;
100 simpleElem.getDataKind() == DataKind.USER);
107 complexElem.getDataKind() == DataKind.USER);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DataItem.java 49 protected DataKind mKind;
137 public boolean hasKindTypeColumn(DataKind kind) {
143 public int getKindTypeColumn(DataKind kind) {
150 * DataKind object underneath.
152 public String buildDataString(Context context, DataKind kind) {
167 public String buildDataStringForDisplay(Context context, DataKind kind) {
171 public void setDataKind(DataKind kind) {
175 public DataKind getDataKind() {
189 DataKind thisKind = getDataKind();
190 DataKind thatKind = that.getDataKind()
    [all...]
PhoneDataItem.java 25 import com.android.contacts.common.model.dataitem.DataKind;
72 public String buildDataStringForDisplay(Context context, DataKind kind) {
DataKind.java 37 public final class DataKind {
87 public DataKind() {
91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) {
107 sb.append("DataKind:");
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
ElementTest.java 21 import android.renderscript.Element.DataKind;
29 DataKind.PIXEL_A) != null);
32 DataKind.PIXEL_RGB) != null);
35 DataKind.PIXEL_RGB) != null);
38 DataKind.PIXEL_RGBA) != null);
41 DataKind.PIXEL_RGBA) != null);
44 DataKind.PIXEL_RGBA) != null);
217 Element.DataKind.PIXEL_RGBA) };
220 Element.DataKind.PIXEL_RGBA) };
224 Element.DataKind.PIXEL_RGB) }
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
ExternalAccountTypeTest.java 35 import com.android.contacts.common.model.dataitem.DataKind;
91 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME));
92 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME));
165 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME));
166 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME));
170 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c");
193 private static void assertsDataKindEquals(List<DataKind> expectedKinds,
194 List<DataKind> actualKinds) {
  /frameworks/base/rs/java/android/renderscript/
Element.java 36 * android.renderscript.Element.DataKind}. The DataType encodes C type
37 * information of an Element, while the DataKind encodes how that Element should
39 * android.renderscript.Allocation} objects with DataKind {@link
40 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
63 DataKind mKind;
178 public enum DataKind {
190 DataKind(int id) {
302 public DataKind getDataKind() {
491 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
498 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB)
    [all...]
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
Element.java 41 * android.support.v8.renderscript.Element.DataKind}. The DataType encodes C
42 * type information of an Element, while the DataKind encodes how that Element
45 * DataKind {@link android.support.v8.renderscript.Element.DataKind#USER} cannot
70 DataKind mKind;
182 public enum DataKind {
194 DataKind(int id) {
306 public DataKind getDataKind() {
446 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
453 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
RawContactModifier.java 60 import com.android.contacts.common.model.dataitem.DataKind;
87 * {@link DataKind} could be inserted under specific
90 public static boolean canInsert(RawContactDelta state, DataKind kind) {
99 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) {
108 * Ensure that at least one of the given {@link DataKind} exists in the
111 * account doesn't support this {@link DataKind}.
115 final DataKind kind = accountType.getKindForMimetype(mimeType);
135 * For the given {@link RawContactDelta} and {@link DataKind}, return the
139 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind) {
144 * For the given {@link RawContactDelta} and {@link DataKind}, return th
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactModifierTests.java 51 import com.android.contacts.common.model.dataitem.DataKind;
93 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE,
100 final DataKind phoneKind = new DataKind(
118 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true);
125 final DataKind imKind = new DataKind(Im.CONTENT_ITEM_TYPE, -1, 10, true);
132 final DataKind orgKind = new DataKind(Organization.CONTENT_ITEM_TYPE, -1, 10, true)
    [all...]

Completed in 1233 milliseconds

1 2 3