Searched refs:field (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/
H A DActivityTestCase.java64 for (Field field : fields) {
65 final Class<?> fieldClass = field.getDeclaringClass();
66 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()
67 && (field.getModifiers() & Modifier.FINAL) == 0) {
69 field.setAccessible(true);
70 field.set(this, null);
72 android.util.Log.d("TestCase", "Error: Could not nullify field!");
75 if (field.get(this) != null) {
76 android.util.Log.d("TestCase", "Error: Could not nullify field!");
H A DInstrumentationUtils.java40 Integer field = (Integer)cls.getDeclaredField(identifier).get(cls);
41 id = field.intValue();
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java388 Field field;
389 field = CLASS_BUILDER.getDeclaredField("mSelectionArgsBackReferences");
390 field.setAccessible(true);
391 field.set(builder, selArgsBackRef);
397 Field field;
398 field = CLASS_BUILDER.getDeclaredField("mValuesBackReferences");
399 field.setAccessible(true);
400 field.set(builder, valuesBackReferences);
406 Field field;
407 field
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DInputPort.java31 * InputPorts may be bound to fields of the Filter. When an input port is bound to a field, Frame
32 * values will be assigned to the field once a Frame is received on that port. The Frame value must
33 * be of a type that is compatible with the field type.
54 public FieldBinding(Field field) { argument
55 mField = field;
69 throw new RuntimeException("Assigning frame " + frame + " to field "
107 * Bind this input port to the specified field.
109 * Use this when you wish to pull frames directly into a field of the filter. This requires
110 * that the input frames can be interpreted as object-based frames of the field's class.
117 * @param field th
121 bindToField(Field field) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFinalPort.java27 public FinalPort(Filter filter, String name, Field field, boolean hasDefault) { argument
28 super(filter, name, field, hasDefault);
H A DProgramPort.java32 Field field,
34 super(filter, name, field, hasDefault);
55 "Access to program field '" + mField.getName() + "' was denied!");
57 throw new RuntimeException("Non Program field '" + mField.getName()
29 ProgramPort(Filter filter, String name, String varName, Field field, boolean hasDefault) argument
H A DFilter.java274 * transfer from a FieldPort or ProgramPort to its connected target (field or program variable).
356 Field field,
359 // Make sure field is accessible
360 field.setAccessible(true);
364 ? new FinalPort(this, name, field, hasDefault)
365 : new FieldPort(this, name, field, hasDefault);
369 MutableFrameFormat format = ObjectFormat.fromClass(field.getType(),
379 Field field,
382 // Make sure field is accessible
383 field
355 addFieldPort(String name, Field field, boolean hasDefault, boolean isFinal) argument
377 addProgramPort(String name, String varName, Field field, Class varType, boolean hasDefault) argument
599 addFieldGenerator(GenerateFieldPort generator, Field field) argument
605 addProgramGenerator(GenerateProgramPort generator, Field field) argument
[all...]
H A DFieldPort.java32 public FieldPort(Filter filter, String name, Field field, boolean hasDefault) { argument
34 mField = field;
68 "Access to field '" + mField.getName() + "' was denied!");
94 return "field " + super.toString();
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DPduHeaders.java98 * X-Mms-Message-Type field types.
137 * field types.
145 * field type components.
151 * X-Mms-MMS-Version field types.
162 * From field type components.
183 * MM-Flags field type components.
190 * X-Mms-Message-Class field types.
203 * X-Mms-Priority field types.
210 * X-Mms-Response-Status field types.
245 * X-Mms-Retrieve-Status field type
342 getOctet(int field) argument
358 setOctet(int value, int field) argument
502 getTextString(int field) argument
515 setTextString(byte[] value, int field) argument
551 getEncodedStringValue(int field) argument
562 getEncodedStringValues(int field) argument
581 setEncodedStringValue(EncodedStringValue value, int field) argument
618 setEncodedStringValues(EncodedStringValue[] value, int field) argument
651 appendEncodedStringValue(EncodedStringValue value, int field) argument
683 getLongInteger(int field) argument
698 setLongInteger(long value, int field) argument
[all...]
H A DPduComposer.java334 * In the implementation of EncodedStringValue, the charset field will
481 private int appendHeader(int field) { argument
482 switch (field) {
484 appendOctet(field);
486 int version = mPduHeader.getOctet(field);
497 byte[] textString = mPduHeader.getTextString(field);
502 appendOctet(field);
509 EncodedStringValue[] addr = mPduHeader.getEncodedStringValues(field);
522 appendOctet(field);
529 appendOctet(field);
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_UEventObserver.cpp51 const char* field = buffer; local
54 if (strstr(field, match.string())) {
58 field += strlen(field) + 1;
59 } while (field != end);
H A DTime.cpp38 #define COMPARE_FIELD(field) do { \
39 int diff = a.t.field - b.t.field; \
/frameworks/webview/chromium/tools/
H A Dmemreport.py92 field = token.split('=')[1]
94 mem_usage[key] += int(field)
96 array = eval(field)
103 def _ConvertMemoryField(field):
104 return str(field / (1024))
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java159 for (Field field : fields) {
160 if (!field.getType().isPrimitive() &&
161 !Modifier.isStatic(field.getModifiers())) {
163 field.setAccessible(true);
164 field.set(this, null);
166 android.util.Log.d("TestCase", "Error: Could not nullify field!");
169 if (field.get(this) != null) {
170 android.util.Log.d("TestCase", "Error: Could not nullify field!");
/frameworks/testing/androidtestlib/src/com/android/test/runner/junit4/
H A DAndroidJUnit4Builder.java61 for (Field field : superClass.getDeclaredFields()) {
62 if (field.isAnnotationPresent(InjectInstrumentation.class)) {
65 if (field.isAnnotationPresent(InjectContext.class)) {
H A DAndroidJUnit4ClassRunner.java94 "field %s in class %s has an InjectInstrumentation annotation," +
99 "field %s in class %s has an InjectInstrumentation annotation," +
123 private void setFieldValue(Object test, Field field, Object value) { argument
125 field.set(test, value);
128 "Failed to inject value for field %s in class %s", field.getName(),
132 "Failed to inject value for field %s in class %s", field.getName(),
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A DBCHeaderField.h24 // Class representing a variable-size metadata field in the bitcode header.
70 FixedSubfield field;
71 ReadFixedSubfield(&field, buf);
72 ID_ = static_cast<Tag>(field);
73 ReadFixedSubfield(&field, buf + sizeof(FixedSubfield));
74 len_ = static_cast<size_t>(field);
88 // Get the data size from a serialized field to allow allocation
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dbitcode_wrapperer.cpp218 BCHeaderField field(BCHeaderField::kInvalid, 0,
220 field.Read(&buffer_[cursor_], buffer_size_);
221 header_fields_.push_back(field);
222 size_t field_size = field.GetTotalSize();
228 "variable field data\n");
239 switch (field.getID()) {
241 if (field.Write((uint8_t*)&tempIntField,
247 if (field.Write((uint8_t*)&tempIntField,
253 // Ignore other field types for now
331 void BitcodeWrapperer::AddHeaderField(BCHeaderField* field) { argument
[all...]
/frameworks/rs/driver/
H A DrsdShader.cpp143 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
144 const Element *f = e->mHal.state.fields[field];
157 s.append(e->mHal.state.fieldNames[field]);
167 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
168 const Element *f = e->mHal.state.fields[field];
169 const char *fn = e->mHal.state.fieldNames[field];
309 logUniform(const Element *field, const float *fd, uint32_t arraySize ) argument
355 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DColladaParser.java246 Element field = (Element)childNode;
247 String fieldName = field.getTagName();
248 String description = field.getAttribute("sid");
250 Float3 value = getFloat3(field);
254 Float4 value = getFloat4(field);
259 Float3 value = getFloat3(field);
263 getRenderable(field, current);
265 updateLight(field, current);
267 updateCamera(field, current);
269 getNode(field, curren
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DParsedMessage.h35 bool getRequestField(size_t index, AString *field) const;
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraMetadata.java49 * Set a camera metadata field to a value. The field definitions can be
53 * @param key The metadata field to write.
54 * @param value The value to set the field to, which must be of a matching
63 * Get a camera metadata field value.
65 * <p>The field definitions can be
74 * @param key The metadata field to read.
75 * @return The value of that key, or {@code null} if the field is not set.
96 * Return a list of all the Key<?> that are declared as a field inside of the class
108 for (Field field
[all...]
/frameworks/base/core/java/android/os/
H A DDebug.java1367 * Returns true if the type of the field matches the specified class.
1369 * the field is of the primitive "boolean" type. Also handles all of
1372 private static boolean fieldTypeMatches(Field field, Class<?> cl) { argument
1373 Class<?> fieldClass = field.getType();
1380 * have a Class field called "TYPE" that points to the corresponding
1396 * Looks up the property that corresponds to the field, and sets the field's value
1399 private static void modifyFieldIfSet(final Field field, final TypedProperties properties, argument
1401 if (field.getType() == java.lang.String.class) {
1409 field
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java577 * Reads a String out of a field in a Cursor and writes it to a Map.
580 * @param field The TEXT field to read
581 * @param values The {@link ContentValues} to put the value into, with the field as the key
583 public static void cursorStringToContentValues(Cursor cursor, String field, argument
585 cursorStringToContentValues(cursor, field, values, field);
589 * Reads a String out of a field in a Cursor and writes it to an InsertHelper.
592 * @param field The TEXT field t
596 cursorStringToInsertHelper(Cursor cursor, String field, InsertHelper inserter, int index) argument
609 cursorStringToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
621 cursorIntToContentValues(Cursor cursor, String field, ContentValues values) argument
633 cursorIntToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
650 cursorLongToContentValues(Cursor cursor, String field, ContentValues values) argument
663 cursorLongToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
681 cursorDoubleToCursorValues(Cursor cursor, String field, ContentValues values) argument
694 cursorDoubleToContentValues(Cursor cursor, String field, ContentValues values, String key) argument
[all...]
/frameworks/base/core/java/android/view/
H A DViewDebug.java87 * When resolveId is true, and if the annotated field/method return value
930 final Field field = fields[i];
931 if (field.isAnnotationPresent(ExportedProperty.class)) {
932 field.setAccessible(true);
933 foundFields.add(field);
934 sAnnotations.put(field, field.getAnnotation(ExportedProperty.class));
1124 final Field field = fields[i];
1129 final Class<?> type = field.getType();
1130 final ExportedProperty property = sAnnotations.get(field);
[all...]

Completed in 1409 milliseconds

12