Home
last modified time | relevance | path

Searched refs:Field (Results 1 – 25 of 52) sorted by relevance

123

/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarSensorManagerTest.java27 import java.lang.reflect.Field;
100 List<Field> androidCarAllIntMembers = TestUtil.getAllPublicStaticFinalMembers( in testSensorType()
102 List<Field> supportCarAllIntMembers = TestUtil.getAllPublicStaticFinalMembers( in testSensorType()
104 List<Field> androidCarSensorTypes = filterSensorTypes(androidCarAllIntMembers); in testSensorType()
105 List<Field> supportCarSensorTypes = filterSensorTypes(supportCarAllIntMembers); in testSensorType()
106 Map<Integer, Field> androidCarSensorTypeToField = new HashMap<>(); in testSensorType()
107 for (Field androidCarSensorType : androidCarSensorTypes) { in testSensorType()
113 for (Field supportCarSensorType : supportCarSensorTypes) { in testSensorType()
114 Field androidCarSensorType = androidCarSensorTypeToField.get( in testSensorType()
138 List<Field> androidCarAllIntMembers = TestUtil.getAllPublicStaticFinalMembers( in testSensorRate()
[all …]
DTestUtil.java18 import java.lang.reflect.Field;
25 public static List<Field> getAllPublicStaticFinalMembers(Class cls, Class typeClass) { in getAllPublicStaticFinalMembers()
26 List<Field> result = new LinkedList<>(); in getAllPublicStaticFinalMembers()
27 for (Field f : cls.getDeclaredFields()) { in getAllPublicStaticFinalMembers()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
DDefaultFieldParser.java21 setFieldParser(Field.CONTENT_TRANSFER_ENCODING, new ContentTransferEncodingField.Parser()); in DefaultFieldParser()
22 setFieldParser(Field.CONTENT_TYPE, new ContentTypeField.Parser()); in DefaultFieldParser()
25 setFieldParser(Field.DATE, dateTimeParser); in DefaultFieldParser()
26 setFieldParser(Field.RESENT_DATE, dateTimeParser); in DefaultFieldParser()
29 setFieldParser(Field.FROM, mailboxListParser); in DefaultFieldParser()
30 setFieldParser(Field.RESENT_FROM, mailboxListParser); in DefaultFieldParser()
33 setFieldParser(Field.SENDER, mailboxParser); in DefaultFieldParser()
34 setFieldParser(Field.RESENT_SENDER, mailboxParser); in DefaultFieldParser()
37 setFieldParser(Field.TO, addressListParser); in DefaultFieldParser()
38 setFieldParser(Field.RESENT_TO, addressListParser); in DefaultFieldParser()
[all …]
DField.java31 public abstract class Field { class
63 protected Field(final String name, final String body, final String raw) { in Field() method in Field
85 public static Field parse(final String raw) { in parse()
DUnstructuredField.java31 public class UnstructuredField extends Field {
44 public Field parse(final String name, final String body, final String raw) { in parse()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DHeader.java36 import org.apache.james.mime4j.field.Field;
47 private List<Field> fields = new LinkedList<Field>();
48 private HashMap<String, List<Field>> fieldMap = new HashMap<String, List<Field>>();
70 addField(Field.parse(fieldData)); in Header()
81 public void addField(Field field) { in addField()
82 List<Field> values = fieldMap.get(field.getName().toLowerCase()); in addField()
84 values = new LinkedList<Field>(); in addField()
97 public List<Field> getFields() { in getFields()
108 public Field getField(String name) { in getField()
109 List<Field> l = fieldMap.get(name.toLowerCase()); in getField()
[all …]
DEntity.java27 import org.apache.james.mime4j.field.Field;
106 (ContentTypeField) getHeader().getField(Field.CONTENT_TYPE); in getMimeType()
109 getField(Field.CONTENT_TYPE) in getMimeType()
122 (ContentTypeField) getHeader().getField(Field.CONTENT_TYPE)); in getCharset()
132 getHeader().getField(Field.CONTENT_TRANSFER_ENCODING); in getContentTransferEncoding()
158 (ContentTypeField) getHeader().getField(Field.CONTENT_TYPE); in isMultipart()
DMultipart.java32 import org.apache.james.mime4j.field.Field;
194 Field.CONTENT_TYPE); in getBoundary()
200 … String charString = ((ContentTypeField) e.getHeader().getField(Field.CONTENT_TYPE)).getCharset(); in getCharset()
DMessage.java32 import org.apache.james.mime4j.field.Field;
78 return (UnstructuredField) getHeader().getField(Field.SUBJECT); in getSubject()
147 ((Header) stack.peek()).addField(Field.parse(fieldData)); in field()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeHeader.java48 protected final ArrayList<Field> mFields = new ArrayList<Field>();
63 mFields.add(new Field(name, value)); in addHeader()
76 for (Field field : mFields) { in getHeader()
88 ArrayList<Field> removeFields = new ArrayList<Field>(); in removeHeader()
89 for (Field field : mFields) { in removeHeader()
108 for (Field field : mFields) { in writeToString()
118 for (Field field : mFields) { in writeTo()
126 private static class Field { class in MimeHeader
130 public Field(String name, String value) { in Field() method in MimeHeader.Field
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeHeader.java51 protected final ArrayList<Field> mFields = new ArrayList<Field>();
66 mFields.add(new Field(name, value)); in addHeader()
79 for (Field field : mFields) { in getHeader()
91 ArrayList<Field> removeFields = new ArrayList<Field>(); in removeHeader()
92 for (Field field : mFields) { in removeHeader()
111 for (Field field : mFields) { in writeToString()
121 for (Field field : mFields) { in writeTo()
129 private static class Field { class in MimeHeader
133 public Field(String name, String value) { in Field() method in MimeHeader.Field
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java25 import java.lang.reflect.Field;
107 Field field = column.field; in cursorToObject()
145 private void setIfNotNull(Field field, Object object, Object value) in setIfNotNull()
158 Field field = column.field; in valuesToObject()
196 Field field = column.field; in objectToValues()
235 Field field = column.field; in toDebugString()
252 Field field = column.field; in toDebugString()
474 Field[] fields = clazz.getDeclaredFields(); // including non-public fields in parseColumnInfo()
477 Field field = fields[i]; in parseColumnInfo()
521 public final Field field;
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarDiagnosticConstantsTest.java22 import java.lang.reflect.Field;
42 Arrays.stream(clazz.getFields()).forEach((Field field) -> { in dumpClass()
80 static boolean isPublicStaticFinalInt(Field field) { in isPublicStaticFinalInt()
96 CarDiagnosticConstantsTest::isPublicStaticFinalInt).forEach( (Field field) -> { in validateMatch()
109 for (Field field2 : clazz2.getFields()) { in validateMatch()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DNotificationCompatUtils.java22 import java.lang.reflect.Field;
37 private static final Field FIELD_VISIBILITY_SECRET =
42 private static final Field FIELD_CATEGORY_RECOMMENDATION =
47 private static final Field FIELD_PRIORITY_LOW =
DCompatUtils.java23 import java.lang.reflect.Field;
55 public static Field getField(final Class<?> targetClass, final String name) { in getField()
108 final Field field) { in getFieldValue()
120 public static void setFieldValue(final Object receiver, final Field field, final Object value) { in setFieldValue()
DEditorInfoCompatUtils.java21 import java.lang.reflect.Field;
27 private static final Field FIELD_IME_FLAG_FORCE_ASCII = CompatUtils.getField(
31 private static final Field FIELD_HINT_LOCALES = CompatUtils.getField(
DSettingsSecureCompatUtils.java19 import java.lang.reflect.Field;
24 private static final Field FIELD_ACCESSIBILITY_SPEAK_PASSWORD = CompatUtils.getField(
DSuggestionsInfoCompatUtils.java21 import java.lang.reflect.Field;
26 private static final Field FIELD_RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS =
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java35 import java.lang.reflect.Field;
51 public final HashMap<Class, HashMap<String, Field>> fieldCache = new HashMap<>();
146 HashMap<String, Field> cache = fieldCache.get(clazz); in initItem()
151 for (Field f : c.getDeclaredFields()) { in initItem()
163 Field f = cache.get(fieldData[0]); in initItem()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
DMockedServiceManager.java23 import java.lang.reflect.Field;
82 Field field = c.getDeclaredField(instanceName); in replaceInstance()
98 Field field = key.mClass.getDeclaredField(key.mInstName); in restoreInstances()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java31 import org.apache.james.mime4j.field.Field;
173 Field contentType = header.getField("content-type"); in testWriteToAlternativePart()
217 Field contentType = header.getField("content-type"); in testWriteToMixedPart()
296 Field contentType = header.getField("MIME-VERSION"); in checkMimeVersion()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java14 import java.lang.reflect.Field;
172 Field[] fields = CarrierConfigManager.class.getDeclaredFields(); in getCarrierConfigXmlNames()
174 for (Field f : fields) { in getCarrierConfigXmlNames()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShapeOverride.java43 import java.lang.reflect.Field;
108 private static Field getSystemResField() throws Exception { in getSystemResField()
109 Field staticField = Resources.class.getDeclaredField("mSystem"); in getSystemResField()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DDatabaseTestUtils.java23 import java.lang.reflect.Field;
31 Field instance; in clearDb()
/packages/apps/Dialer/java/com/android/contacts/common/compat/telecom/
DTelecomManagerCompat.java21 import java.lang.reflect.Field;
66 Field field = TelecomManager.class.getDeclaredField("EXTRA_IS_HANDOVER"); in supportsHandover()

123