/frameworks/base/test-runner/src/android/test/ |
H A D | ActivityTestCase.java | 63 for (Field field : fields) { 64 final Class<?> fieldClass = field.getDeclaringClass(); 65 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()) { 67 field.setAccessible(true); 68 field.set(this, null); 70 android.util.Log.d("TestCase", "Error: Could not nullify field!"); 73 if (field.get(this) != null) { 74 android.util.Log.d("TestCase", "Error: Could not nullify field!");
|
H A D | InstrumentationUtils.java | 40 Integer field = (Integer)cls.getDeclaredField(identifier).get(cls); 41 id = field.intValue();
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentProviderOperationTest.java | 388 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/core/java/com/google/android/mms/pdu/ |
H A D | PduHeaders.java | 98 * 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 D | PduComposer.java | 334 * 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/java/android/test/ |
H A D | AndroidTestCase.java | 156 for (Field field : fields) { 157 final Class<?> fieldClass = field.getDeclaringClass(); 158 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()) { 160 field.setAccessible(true); 161 field.set(this, null); 163 android.util.Log.d("TestCase", "Error: Could not nullify field!"); 166 if (field.get(this) != null) { 167 android.util.Log.d("TestCase", "Error: Could not nullify field!");
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 135 snprintf(buf, sizeof(buf), "get field slot from row %d col %d failed", row, column); 152 field_slot_t field; local 153 err = window->read_field_slot(row, column, &field); 159 uint8_t type = field.type; 167 uint32_t size = field.data.buffer.size; 170 return strtoll((char const *)window->offsetToPtr(field.data.buffer.offset), NULL, 0); 172 String8 ascii((char16_t *) window->offsetToPtr(field.data.buffer.offset), size / 2); 202 field_slot_t field; local 203 err = window->read_field_slot(row, column, &field); 209 uint8_t type = field 234 field_slot_t field; local 250 field_slot_t field; local 266 field_slot_t field; local 282 field_slot_t field; local 298 field_slot_t field; local 371 field_slot_t field; local 446 field_slot_t field; local [all...] |
H A D | Time.cpp | 38 #define COMPARE_FIELD(field) do { \ 39 int diff = a.t.field - b.t.field; \
|
H A D | android_hardware_Camera.cpp | 342 // save context in opaque field 656 struct field { struct 663 static int find_fields(JNIEnv *env, field *fields, int count) 666 field *f = &fields[i]; 673 jfieldID field = env->GetFieldID(clazz, f->field_name, f->field_type); local 674 if (field == NULL) { 679 *(f->jfield) = field; 688 field fields_to_find[] = {
|
H A D | android_bluetooth_common.cpp | 80 jfieldID field = env->GetFieldID(clazz, member, mtype); local 81 if (field == NULL) { 84 return field;
|
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 452 * Reads a String out of a field in a Cursor and writes it to a Map. 455 * @param field The TEXT field to read 456 * @param values The {@link ContentValues} to put the value into, with the field as the key 458 public static void cursorStringToContentValues(Cursor cursor, String field, argument 460 cursorStringToContentValues(cursor, field, values, field); 464 * Reads a String out of a field in a Cursor and writes it to an InsertHelper. 467 * @param field The TEXT field t 471 cursorStringToInsertHelper(Cursor cursor, String field, InsertHelper inserter, int index) argument 484 cursorStringToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 496 cursorIntToContentValues(Cursor cursor, String field, ContentValues values) argument 508 cursorIntToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 525 cursorLongToContentValues(Cursor cursor, String field, ContentValues values) argument 538 cursorLongToContentValues(Cursor cursor, String field, ContentValues values, String key) argument 556 cursorDoubleToCursorValues(Cursor cursor, String field, ContentValues values) argument 569 cursorDoubleToContentValues(Cursor cursor, String field, ContentValues values, String key) argument [all...] |
H A D | AbstractCursor.java | 220 String field = getString(i); 221 if (field != null) { 222 if (!window.putString(field, mPos, i)) { 538 * This function returns true if the field has been updated and is 544 * @param columnIndex the column index of the field to check 545 * @return true if the field has been updated, false otherwise 558 * This function returns the uncommitted updated value for the field 562 * @param columnIndex the column index of the field to retrieve
|
/frameworks/base/libs/rs/ |
H A D | rsProgramVertex.cpp | 129 for (uint32_t field=0; field < e->getFieldCount(); field++) { 130 const Element *f = e->getField(field); 143 mShader.append(e->getFieldName(field)); 151 for (uint32_t field=0; field < e->getFieldCount(); field++) { 152 const Element *f = e->getField(field); 165 mShader.append(e->getFieldName(field)); [all...] |
H A D | rsProgram.cpp | 155 for (uint32_t field=0; field < e->getFieldCount(); field++) { 156 const Element *f = e->getField(field); 169 s.append(e->getFieldName(field));
|
/frameworks/base/media/libdrm/mobile1/src/jni/ |
H A D | drm1_jni.c | 424 jfieldID field; local 430 field = (*env)->GetFieldID(env, clazz, name, "I"); 433 if (NULL == field) 436 *value = (*env)->GetIntField(env, obj, field); 444 jfieldID field; local 450 field = (*env)->GetFieldID(env, clazz, name, "I"); 453 if (NULL == field) 456 (*env)->SetIntField(env, obj, field, value); 464 jfieldID field; local 470 field 533 jfieldID field; local 659 jfieldID field; local 781 jfieldID field; local 858 jfieldID field; local 1037 jfieldID field; local [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiConfiguration.java | 312 for (EnterpriseField field : enterpriseFields) { 313 field.setValue(null); 390 for (EnterpriseField field : enterpriseFields) { 391 sbuf.append('\n').append(" " + field.varName() + ": "); 392 String value = field.value(); 454 for (EnterpriseField field : enterpriseFields) { 455 dest.writeString(field.value()); 480 for (EnterpriseField field : config.enterpriseFields) { 481 field.setValue(in.readString());
|
/frameworks/ex/common/java/com/android/common/ |
H A D | ArrayListCursor.java | 83 byte[] field = (byte[]) data; 84 if (!window.putBlob(field, mPos, i)) { 89 String field = data.toString(); 90 if (!window.putString(field, mPos, i)) {
|
/frameworks/base/core/java/android/os/ |
H A D | Debug.java | 952 * Returns true if the type of the field matches the specified class. 954 * the field is of the primitive "boolean" type. Also handles all of 957 private static boolean fieldTypeMatches(Field field, Class<?> cl) { argument 958 Class<?> fieldClass = field.getType(); 965 * have a Class field called "TYPE" that points to the corresponding 981 * Looks up the property that corresponds to the field, and sets the field's value 984 private static void modifyFieldIfSet(final Field field, final TypedProperties properties, argument 986 if (field.getType() == java.lang.String.class) { 994 field [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewDebug.java | 170 * When resolveId is true, and if the annotated field/method return value 1300 final Field field = fields[i]; 1301 if (field.isAnnotationPresent(ExportedProperty.class)) { 1302 field.setAccessible(true); 1303 foundFields.add(field); 1304 annotations.put(field, field.getAnnotation(ExportedProperty.class)); 1449 final Field field = fields[i]; 1454 final Class<?> type = field.getType(); 1455 final ExportedProperty property = sAnnotations.get(field); [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | FileLoader.java | 108 // drawable/foo.png, the id is located at field "foo" of class 133 final Field field = d.getField(fieldName); 134 final int id = field.getInt(null); 150 errorMsg = "Can't find field: " + fieldName + " in "
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | ClassTest.java | 126 Field field = obj.getClass().getDeclaredField("str"); 127 field.set(obj, null);
|
H A D | MiscRegressionTest.java | 214 Field field = getClass().getDeclaredField("MY_LONG"); 215 assertEquals(5073258162644648461L, field.getLong(null));
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 185 * Ensures the values in each field are in range. For example if the 190 * If "ignoreDst" is true, then this method sets the "isDst" field to -1 213 * Return the maximum possible value for the given field given the value of 216 * @param field one of the constants for HOUR, MINUTE, SECOND, etc. 217 * @return the maximum value for the field. 219 public int getActualMaximum(int field) { argument 220 switch (field) { 250 throw new RuntimeException("bad field=" + field); 380 * format that does not include the "time" field [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | IccProvider.java | 96 byte[] field = (byte[]) data; 97 if (!window.putBlob(field, mPos, i)) { 102 String field = data.toString(); 103 if (!window.putString(field, mPos, i)) {
|
/frameworks/base/services/java/com/android/server/ |
H A D | WifiService.java | 1091 for (WifiConfiguration.EnterpriseField field : 1094 field.varName()); 1096 if (field != config.eap) value = removeDoubleQuotes(value); 1097 field.setValue(value); 1312 for (WifiConfiguration.EnterpriseField field 1314 String varName = field.varName(); 1315 String value = field.value(); 1317 if (field != config.eap) { 1530 * apply some heuristics to figure out which field 1531 * is the SSID and which field i [all...] |