/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(); 301 * {@link Comparator} to sort by {@link DataKind#weight}. 303 private static Comparator<DataKind> sWeightComparator = new Comparator<DataKind>() { 305 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,
|
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,
|
KindSectionData.java | 23 import com.android.contacts.common.model.dataitem.DataKind; 36 private final DataKind mDataKind; 39 public KindSectionData(AccountType accountType, DataKind dataKind, 42 mDataKind = dataKind; 114 public DataKind getDataKind() {
|
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,
|
RawContactEditorView.java | 42 import com.android.contacts.common.model.dataitem.DataKind; 87 private DataKind mGroupMembershipKind; 254 for (DataKind kind : type.getSortedDataKinds()) { 263 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME), 266 type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME), 271 final DataKind nickNameKind = type.getKindForMimetype(Nickname.CONTENT_ITEM_TYPE); 293 } else if (DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME.equals(mimeType) 294 || DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals(mimeType)
|
KindSectionView.java | 33 import com.android.contacts.common.model.dataitem.DataKind; 41 * {@link DataKind} around a {@link Data#MIMETYPE}. This view shows a 57 private DataKind mKind; 135 public void setState(DataKind kind, RawContactDelta state, boolean readOnly, 286 public DataKind getKind() {
|
/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) { 161 * DataKind object underneath. 163 public String buildDataString(Context context, DataKind kind) { 178 public String buildDataStringForDisplay(Context context, DataKind kind) { 182 public void setDataKind(DataKind kind) { 186 public DataKind getDataKind() { 200 DataKind thisKind = getDataKind(); 201 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...] |
/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() { 584 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A); 595 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 146 * {@link #getTypeFrequencies(RawContactDelta, DataKind)}. 149 public static ArrayList<EditType> getValidTypes(RawContactDelta state, DataKind kind [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
ExternalAccountTypeTest.java | 36 import com.android.contacts.common.model.dataitem.DataKind; 95 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); 96 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); 169 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME)); 170 assertNotNull(type.getKindForMimetype(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME)); 174 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c"); 197 private static void assertsDataKindEquals(List<DataKind> expectedKinds, 198 List<DataKind> actualKinds) {
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactModifierTests.java | 49 import com.android.contacts.common.model.dataitem.DataKind; 94 final DataKind nameKind = new DataKind(StructuredName.CONTENT_ITEM_TYPE, 101 final DataKind phoneKind = new DataKind( 119 final DataKind emailKind = new DataKind(Email.CONTENT_ITEM_TYPE, -1, 10, true); 126 final DataKind imKind = new DataKind(Im.CONTENT_ITEM_TYPE, -1, 10, true); 133 final DataKind orgKind = new DataKind(Organization.CONTENT_ITEM_TYPE, -1, 10, true) [all...] |