/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | GeomagneticFieldTest.java | 63 GeomagneticField field = new GeomagneticField(lat, lon, altitude, time); in assertMagneticField() local 64 assertEquals(dec, field.getDeclination(), DECLINATION_THRESHOLD); in assertMagneticField() 65 assertEquals(inc, field.getInclination(), INCLINATION_THRESHOLD); in assertMagneticField() 66 assertEquals(strength, field.getFieldStrength(), FIELD_STRENGTH_THRESHOLD); in assertMagneticField() 69 assertEquals(horizontalFieldStrengthNanoTesla, field.getHorizontalStrength(), in assertMagneticField() 72 assertEquals(verticalFieldStrengthNanoTesla, field.getZ(), FIELD_STRENGTH_THRESHOLD); in assertMagneticField() 74 Math.toDegrees(Math.atan2(field.getY(), field.getX()))); in assertMagneticField() 77 Math.sqrt(field.getX() * field.getX() + field.getY() * field.getY()), in assertMagneticField()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SetObjectTest.java | 72 ScriptField__set_object_element_input field = new ScriptField__set_object_element_input( in testSetObjectElement() local 76 field.set(mItem, 0, true); in testSetObjectElement() 78 mIn = field.getAllocation(); in testSetObjectElement() 93 ScriptField__set_object_type_input field = new ScriptField__set_object_type_input(mRS, 1); in testSetObjectType() local 96 field.set(mItem, 0, true); in testSetObjectType() 98 mIn = field.getAllocation(); in testSetObjectType() 115 … ScriptField__set_object_allocation_input field = new ScriptField__set_object_allocation_input( in testSetObjectAllocation() local 119 field.set(mItem, 0, true); in testSetObjectAllocation() 121 mIn = field.getAllocation(); in testSetObjectAllocation() 137 ScriptField__set_object_sampler_input field = new ScriptField__set_object_sampler_input( in testSetObjectSampler() local [all …]
|
D | SmallStructsTest.java | 155 Object field = scriptFieldClass.getConstructor(RenderScript.class, int.class) in testSmallStructsOfCharArray() local 158 .invoke(field); in testSmallStructsOfCharArray() 170 set_bytes.invoke(field, elem, bytes, true); in testSmallStructsOfCharArray() 215 Object field = scriptFieldClass.getConstructor(RenderScript.class, int.class) in testSmallStructsOfHeterogeneousTypes() local 218 .invoke(field); in testSmallStructsOfHeterogeneousTypes() 226 fieldASetter.invoke(field, elem, initialValueA, true); in testSmallStructsOfHeterogeneousTypes() 232 fieldBSetter.invoke(field, elem, initialValueB, true); in testSmallStructsOfHeterogeneousTypes()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Entity.java | 49 for (Field field : mFields) { in createEntitySql() 50 if (field.mPos > 0) sb.append(", "); in createEntitySql() 51 sb.append(field.mName).append(" ").append(field.mSqLiteType); in createEntitySql() 52 if (field.mName.equals(BaseColumns._ID)) { in createEntitySql() 105 final Field field = Field.newInstance(mPos++, name, fieldType); in addFieldInternal() local 106 mFields.add(field); in addFieldInternal() 107 mFieldMap.put(field.mName, field); in addFieldInternal()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | ApiComplianceCheckerTest.java | 202 JDiffClassDescription.JDiffField field = new JDiffClassDescription.JDiffField( in testFinalField() local 204 clz.addField(field); in testFinalField() 206 assertEquals(field.toSignatureString(), "public final java.lang.String FINAL_FIELD"); in testFinalField() 212 JDiffClassDescription.JDiffField field = new JDiffClassDescription.JDiffField( in testStaticField() local 214 clz.addField(field); in testStaticField() 216 assertEquals(field.toSignatureString(), "public static java.lang.String STATIC_FIELD"); in testStaticField() 222 JDiffClassDescription.JDiffField field = new JDiffClassDescription.JDiffField( in testVolatileFiled() local 224 clz.addField(field); in testVolatileFiled() 226 assertEquals(field.toSignatureString(), "public volatile java.lang.String VOLATILE_FIELD"); in testVolatileFiled() 232 JDiffClassDescription.JDiffField field = new JDiffClassDescription.JDiffField( in testTransientField() local [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Versions.java | 48 for (Field field : Build.VERSION_CODES.class.getFields()) { in versionToLetter() 49 if (!java.lang.reflect.Modifier.isStatic(field.getModifiers())) { in versionToLetter() 52 if (!field.getType().equals(int.class)) { in versionToLetter() 56 int fieldValue = (int) field.get(null); in versionToLetter() 59 return field.getName(); in versionToLetter()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ApiPresenceChecker.java | 114 for (JDiffClassDescription.JDiffField field : classDescription.getFields()) { in checkFieldsCompliance() 116 Field f = classFieldMap.get(field.mName); in checkFieldsCompliance() 119 field.toReadableString(classDescription.getAbsoluteClassName()), in checkFieldsCompliance() 121 field.toSignatureString()); in checkFieldsCompliance() 123 checkField(classDescription, runtimeClass, field, f); in checkFieldsCompliance() 129 field.toReadableString(classDescription.getAbsoluteClassName()), in checkFieldsCompliance() 153 for (Field field : testClass.getDeclaredFields()) { in buildFieldMap() 154 fieldMap.put(field.getName(), field); in buildFieldMap() local 162 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField() argument
|
/cts/hostsidetests/appcompat/hiddenapi/app/src/android/compat/hiddenapi/cts/ |
D | HiddenApiUsedActivity.java | 31 Field field = Activity.class.getDeclaredField("mWindow"); in onCreate() local 32 field.setAccessible(true); in onCreate() 33 Object object = field.get(this); in onCreate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CustomClassLoaderTest.java | 71 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); in testCustomDexClassLoader() local 72 assertTrue(((String)field.get(null)).equals("expected_field")); in testCustomDexClassLoader() 89 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); in testCustomPathClassLoader() local 90 assertTrue(((String)field.get(null)).equals("expected_field")); in testCustomPathClassLoader()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 32 void fieldAccessibleViaReflection(boolean accessible, DexField field); in fieldAccessibleViaReflection() argument 33 void fieldAccessibleViaJni(boolean accessible, DexField field); in fieldAccessibleViaJni() argument 91 DexField field = (DexField) dexMember; in checkSingleMember() local 94 hasMatchingField_Reflection(klass, field), in checkSingleMember() 95 field); in checkSingleMember() local 99 observer.fieldAccessibleViaJni(hasMatchingField_JNI(klass, field), field); in checkSingleMember() local
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | BaseKillswitchTest.java | 79 public void fieldAccessibleViaReflection(boolean accessible, DexField field) { in doTestKillswitchMechanism() 83 field.toString(), in doTestKillswitchMechanism() 90 public void fieldAccessibleViaJni(boolean accessible, DexField field) { in doTestKillswitchMechanism() 94 field.toString(), in doTestKillswitchMechanism()
|
/cts/tests/camera/api25test/src/android/camera/cts/api25test/ |
D | EnableZslTest.java | 108 for (Field field : allFields) { in getEnableZslValue() 109 if (Modifier.isStatic(field.getModifiers()) && in getEnableZslValue() 110 field.getType() == CaptureRequest.Key.class && in getEnableZslValue() 111 field.getGenericType() instanceof ParameterizedType) { in getEnableZslValue() 112 ParameterizedType paramType = (ParameterizedType)field.getGenericType(); in getEnableZslValue() 115 CaptureRequest.Key key = (CaptureRequest.Key)field.get(request); in getEnableZslValue()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyUtils.java | 112 for (Field field : containingClass.getDeclaredFields()) { in parseErrorCodeToString() 113 if (field.getName().startsWith(prefix)) { in parseErrorCodeToString() 114 if (field.getType() == Integer.TYPE) { in parseErrorCodeToString() 115 field.setAccessible(true); in parseErrorCodeToString() 117 if (field.getInt(null) == errorCode) { in parseErrorCodeToString() 118 return field.getName(); in parseErrorCodeToString()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | FieldsClassificationTest.java | 198 final EditText field = mActivity.getCell(1, 1); in testMiss_exactMatchAlgorithm() local 208 callback.assertUiUnavailableEvent(field); in testMiss_exactMatchAlgorithm() 232 final EditText field = mActivity.getCell(1, 1); in testHit_exactMatchLast4Algorithm() local 245 callback.assertUiUnavailableEvent(field); in testHit_exactMatchLast4Algorithm() 269 final EditText field = mActivity.getCell(1, 1); in testHit_CreditCardAlgorithm() local 282 callback.assertUiUnavailableEvent(field); in testHit_CreditCardAlgorithm() 307 final EditText field = mActivity.getCell(1, 1); in testHit_useDefaultAlgorithm() local 320 callback.assertUiUnavailableEvent(field); in testHit_useDefaultAlgorithm() 344 final EditText field = mActivity.getCell(1, 1); in simpleHitTest() local 357 callback.assertUiUnavailableEvent(field); in simpleHitTest() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput/d/ |
D | T_iput_13.smali | 19 .field public st_i1:I 20 .field protected st_p1:I 21 .field private st_pvt1:I
|
D | T_iput_1.smali | 19 .field public st_i1:I 20 .field protected st_p1:I 21 .field private st_pvt1:I
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput_short/d/ |
D | T_sput_short_1.smali | 19 .field public static st_i1:S 20 .field protected static st_p1:S 21 .field private static st_pvt1:S
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput/d/ |
D | T_sput_1.smali | 19 .field public static st_i1:I 20 .field protected static st_p1:I 21 .field private static st_pvt1:I
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_boolean/d/ |
D | T_iput_boolean_1.smali | 19 .field public st_i1:Z 20 .field protected st_p1:Z 21 .field private st_pvt1:Z
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput_char/d/ |
D | T_sput_char_1.smali | 19 .field public static st_i1:C 20 .field protected static st_p1:C 21 .field private static st_pvt1:C
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_byte/d/ |
D | T_iput_byte_1.smali | 19 .field public st_i1:B 20 .field protected st_p1:B 21 .field private st_pvt1:B
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_char/d/ |
D | T_iput_char_1.smali | 19 .field public st_i1:C 20 .field protected st_p1:C 21 .field private st_pvt1:C
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput_boolean/d/ |
D | T_sput_boolean_1.smali | 19 .field public static st_i1:Z 20 .field protected static st_p1:Z 21 .field private static st_pvt1:Z
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iput_short/d/ |
D | T_iput_short_1.smali | 19 .field public st_i1:S 20 .field protected st_p1:S 21 .field private st_pvt1:S
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sput_byte/d/ |
D | T_sput_byte_1.smali | 19 .field public static st_i1:B 20 .field protected static st_p1:B 21 .field private static st_pvt1:B
|