HomeSort by relevance Sort by last modified time
    Searched refs:DataKind (Results 1 - 25 of 60) 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;
79 protected DataKind addDataKindStructuredName(Context context) throws DefinitionException {
80 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE,
108 protected DataKind addDataKindDisplayName(Context context) throws DefinitionException {
109 DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME,
141 protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException {
142 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();
306 * {@link Comparator} to sort by {@link DataKind#weight}.
308 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() {
310 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;
77 protected DataKind addDataKindPhone(Context context) throws DefinitionException {
78 final DataKind kind = super.addDataKindPhone(context);
100 protected DataKind addDataKindEmail(Context context) throws DefinitionException {
101 final DataKind kind = super.addDataKindEmail(context);
117 private DataKind addDataKindRelation(Context context) throws DefinitionException {
118 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE,
152 private DataKind addDataKindEvent(Context context) throws DefinitionException {
153 DataKind kind = addKind(new DataKind(Event.CONTENT_ITEM_TYPE
    [all...]
FallbackAccountType.java 23 import com.android.contacts.common.model.dataitem.DataKind;
66 * In order to build {@link DataKind}s with the same resource package name,
ExternalAccountType.java 34 import com.android.contacts.common.model.dataitem.DataKind;
133 checkKindExists(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME);
134 checkKindExists(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME);
366 final DataKind kind = new DataKind();
  /packages/apps/Contacts/src/com/android/contacts/editor/
Editor.java 23 import com.android.contacts.common.model.dataitem.DataKind;
63 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
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,
EditorUiUtils.java 25 import com.android.contacts.common.model.dataitem.DataKind;
35 // Maps DataKind.mimeType to editor view layouts.
38 // Generally there should be a layout mapped to each existing DataKind mimetype but lots of
43 // DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME
57 mimetypeLayoutMap.put(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME,
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,
  /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);
210 Element.DataKind.PIXEL_RGBA) };
213 Element.DataKind.PIXEL_RGBA) };
217 Element.DataKind.PIXEL_RGB) }
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
PhoneDataItem.java 25 import com.android.contacts.common.model.dataitem.DataKind;
72 public String buildDataStringForDisplay(Context context, DataKind kind) {
DataItem.java 38 import com.android.contacts.common.model.dataitem.DataKind;
129 public boolean hasKindTypeColumn(DataKind kind) {
135 public int getKindTypeColumn(DataKind kind) {
142 * DataKind object underneath.
144 public String buildDataString(Context context, DataKind kind) {
159 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:");
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
ExternalAccountTypeTest.java 35 import com.android.contacts.common.model.dataitem.DataKind;
105 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME));
106 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME));
179 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME));
180 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME));
184 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c");
207 private static void assertsDataKindEquals(List<DataKind> expectedKinds,
208 List<DataKind> actualKinds) {
  /frameworks/base/graphics/java/android/renderscript/
Element.java 39 * android.renderscript.Element.DataKind}. The DataType encodes C type
40 * information of an Element, while the DataKind encodes how that Element should
42 * android.renderscript.Allocation} objects with DataKind {@link
43 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
66 DataKind mKind;
172 public enum DataKind {
184 DataKind(int id) {
296 public DataKind getDataKind() {
478 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
485 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/
ElementThunker.java 46 static android.renderscript.Element.DataKind convertKind(DataKind cdk) {
49 return android.renderscript.Element.DataKind.USER;
51 return android.renderscript.Element.DataKind.PIXEL_L;
53 return android.renderscript.Element.DataKind.PIXEL_A;
55 return android.renderscript.Element.DataKind.PIXEL_LA;
57 return android.renderscript.Element.DataKind.PIXEL_RGB;
59 return android.renderscript.Element.DataKind.PIXEL_RGBA;
166 public DataKind getDataKind() {
261 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk)
    [all...]
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;
174 public enum DataKind {
186 DataKind(int id) {
298 public DataKind getDataKind() {
438 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
445 rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB)
    [all...]
  /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/
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 453 milliseconds

1 2 3