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;
83 protected DataKind addDataKindPhone(Context context) throws DefinitionException {
84 final DataKind kind = super.addDataKindPhone(context);
106 protected DataKind addDataKindEmail(Context context) throws DefinitionException {
107 final DataKind kind = super.addDataKindEmail(context);
123 private DataKind addDataKindRelation(Context context) throws DefinitionException {
124 DataKind kind = addKind(new DataKind(Relation.CONTENT_ITEM_TYPE,
158 private DataKind addDataKindEvent(Context context) throws DefinitionException {
159 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,
  /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,
  /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);
210 Element.DataKind.PIXEL_RGBA) };
213 Element.DataKind.PIXEL_RGBA) };
217 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;
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/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;
177 public enum DataKind {
189 DataKind(int id) {
301 public DataKind getDataKind() {
483 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A);
490 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...]
  /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...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/
DataItemTests.java 40 import com.android.contacts.common.model.dataitem.DataKind;
72 private List<DataItem> createDataItemsAndCollapse(DataKind kind, ContentValues... values) {
93 final DataKind kind = new DataKind("test.mimetype", 0, 0, false);
129 final DataKind kind = mGoogleAccountType.getKindForMimetype(Email.CONTENT_ITEM_TYPE);
166 final DataKind kind = mGoogleAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE);
202 final DataKind kind = mGoogleAccountType.getKindForMimetype(Im.CONTENT_ITEM_TYPE);
229 final DataKind kind = mGoogleAccountType.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE);
251 DataKind kind = mGoogleAccountType.getKindForMimetype(Note.CONTENT_ITEM_TYPE);
282 final DataKind kind
    [all...]

Completed in 1424 milliseconds

1 2 3