Home
last modified time | relevance | path

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

1234

/cts/tests/tests/security/src/android/security/cts/
DBitmapWrapper.java29 enum Field { enum in BitmapWrapper
36 private final ArrayMap<Field, Integer> mReplaceFields = new ArrayMap<>();
55 public BitmapWrapper replace(Field field, int newValue) { in replace()
80 if (mReplaceFields.containsKey(Field.Height)) { in writeToParcel()
82 dest.writeInt(mReplaceFields.get(Field.Height)); in writeToParcel()
85 if (mReplaceFields.containsKey(Field.RowBytes)) { in writeToParcel()
87 dest.writeInt(mReplaceFields.get(Field.RowBytes)); in writeToParcel()
92 if (mReplaceFields.containsKey(Field.DataSize)) { in writeToParcel()
93 int dataSize = mReplaceFields.get(Field.DataSize); in writeToParcel()
103 if (mReplaceFields.containsKey(Field.DataSize)) { in writeToParcel()
[all …]
DBitmapTest.java134 .replace(BitmapWrapper.Field.DataSize, 500 * 1024); in test_inplace_213169612()
141 .replace(BitmapWrapper.Field.DataSize, 2); in test_inplace_213169612()
152 .replace(BitmapWrapper.Field.Height, 10_000) in test_inplace_213169612()
153 .replace(BitmapWrapper.Field.RowBytes, 50_000); in test_inplace_213169612()
178 .replace(BitmapWrapper.Field.DataSize, expectedAllocationSize * 2); in test_ashmem_213169612()
189 .replace(BitmapWrapper.Field.DataSize, 2); in test_ashmem_213169612()
200 .replace(BitmapWrapper.Field.Height, 10_000) in test_ashmem_213169612()
201 .replace(BitmapWrapper.Field.RowBytes, 50_000); in test_ashmem_213169612()
212 .replace(BitmapWrapper.Field.Height, 100); in test_ashmem_213169612()
DCVE_2022_20493.java31 import java.lang.reflect.Field;
84 Field id = conditionClass.getDeclaredField("id"); in setFieldsUsingReflection()
87 Field summary = conditionClass.getDeclaredField("summary"); in setFieldsUsingReflection()
91 Field line1 = conditionClass.getDeclaredField("line1"); in setFieldsUsingReflection()
94 Field line2 = conditionClass.getDeclaredField("line2"); in setFieldsUsingReflection()
DCVE_2022_20485.java42 import java.lang.reflect.Field;
69 Field id = Class.forName(className).getDeclaredField("mId"); in testLongStringFieldsNotificationChannelGroup()
74 Field name = Class.forName(className).getDeclaredField("mName"); in testLongStringFieldsNotificationChannelGroup()
79 Field description = Class.forName(className).getDeclaredField("mDescription"); in testLongStringFieldsNotificationChannelGroup()
135 Field parentId = Class.forName(className).getDeclaredField("mParentId"); in testLongStringFieldsNotificationChannel()
139 Field id = Class.forName(className).getDeclaredField("mId"); in testLongStringFieldsNotificationChannel()
144 Field name = Class.forName(className).getDeclaredField("mName"); in testLongStringFieldsNotificationChannel()
149 Field desc = Class.forName(className).getDeclaredField("mDesc"); in testLongStringFieldsNotificationChannel()
154 Field group = Class.forName(className).getDeclaredField("mGroup"); in testLongStringFieldsNotificationChannel()
159 Field conversationId = Class.forName(className).getDeclaredField("mConversationId"); in testLongStringFieldsNotificationChannel()
DCVE_2022_20456.java37 import java.lang.reflect.Field;
137 Field fieldName = automaticZenRuleClass.getDeclaredField("name"); in checkParcelInput()
140 Field fieldConditionId = automaticZenRuleClass.getDeclaredField("conditionId"); in checkParcelInput()
144 Field fieldOwner = automaticZenRuleClass.getDeclaredField("owner"); in checkParcelInput()
149 Field fieldConfigActivity = in checkParcelInput()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DEntity.java35 private final List<Field> mFields;
36 private final Map<String, Field> mFieldMap;
49 for (Field field : mFields) { in createEntitySql()
59 Field getField(String fieldName) { in getField()
68 private final List<Field> mFields = new ArrayList<>();
69 private final Map<String, Field> mFieldMap = new HashMap<>();
105 final Field field = Field.newInstance(mPos++, name, fieldType); in addFieldInternal()
DField.java25 public abstract class Field { class
36 static Field newInstance(int pos, String name, int fieldType) { in newInstance()
47 private Field(int pos, String name, int fieldType) { in Field() method in Field
118 private static final class IntegerField extends Field {
138 private static final class StringField extends Field {
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreExceptionTest.java35 import java.lang.reflect.Field;
43 ImmutableList<Field> kmErrors = getKeymasterDefsFields(); in testAllKeymasterDefsAreCovered()
47 for (Field f : kmErrors) { in testAllKeymasterDefsAreCovered()
55 ImmutableList<Field> kmDefsFields = getKeymasterDefsFields(); in testErrorCodesMapping()
56 Field[] errorFields = ErrorCode.class.getDeclaredFields(); in testErrorCodesMapping()
59 for (Field code : errorFields) { in testErrorCodesMapping()
108 public static ImmutableList<Field> getKeymasterDefsFields() { in getKeymasterDefsFields()
109 ImmutableList.Builder<Field> errorFieldsBuilder = new ImmutableList.Builder<>(); in getKeymasterDefsFields()
112 for (Field f : kmDefsClass.getDeclaredFields()) { in getKeymasterDefsFields()
DKeystoreFeatureMapTest.java30 import java.lang.reflect.Field;
55 for (Field kmField : Tag.class.getFields()) { in testFeatureTagsMapping()
57 Field field = KeymasterDefs.class.getField("KM_TAG_" + kmField.getName()); in testFeatureTagsMapping()
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/
DVehiclePropertyUtils.java21 import java.lang.reflect.Field;
32 Field[] fields = clazz.getDeclaredFields(); in getIntegersFromDataEnums()
34 for (Field f : fields) { in getIntegersFromDataEnums()
/cts/tests/signature/lib/common/src/android/signature/cts/
DApiPresenceChecker.java19 import java.lang.reflect.Field;
114 Map<String, Field> classFieldMap = buildFieldMap(runtimeClass); in checkFieldsCompliance()
117 Field f = classFieldMap.get(field.mName); in checkFieldsCompliance()
141 private static Map<String, Field> buildFieldMap(Class<?> testClass) { in buildFieldMap()
150 private static Map<String, Field> buildFieldMapImpl(Class<?> testClass) { in buildFieldMapImpl()
151 Map<String, Field> fieldMap = new HashMap<>(); in buildFieldMapImpl()
163 for (Field field : testClass.getDeclaredFields()) { in buildFieldMapImpl()
172 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField()
DAnnotationChecker.java20 import java.lang.reflect.Field;
39 private final Map<String, Set<Field>> annotatedFieldsMap = new HashMap<>();
67 Set<Field> fields = ReflectionHelper.getAnnotatedFields(clazz, annotationSpec); in AnnotationChecker()
82 public boolean skip(Field f); in skip()
108 for (Set<Field> set : annotatedFieldsMap.values()) { in checkDeferred()
109 for (Field f : set) { in checkDeferred()
127 JDiffClassDescription.JDiffField fieldDescription, Field field) { in checkField()
136 Set<Field> annotatedFields = annotatedFieldsMap.get(runtimeClass.getName()); in checkField()
/cts/hostsidetests/appcompat/hiddenapi/app/src/android/compat/hiddenapi/cts/
DHiddenApiUsedActivity.java22 import java.lang.reflect.Field;
31 Field field = Activity.class.getDeclaredField("mWindow"); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature_warm/src/com/android/cts/splitapp/
DFeatureProvider.java25 import java.lang.reflect.Field;
41 final Field touched = test.getDeclaredField("sFeatureTouched"); in onCreate()
48 final Field value = test.getDeclaredField("sFeatureValue"); in onCreate()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DDatasetTest.java37 import android.service.autofill.Field;
238 final Field.Builder builder = new Field.Builder(); in testField()
241 final Field field = builder.setValue(mValue) in testField()
253 final Field field = new Field.Builder().build(); in testField_empty()
281 final Field.Builder builder = new Field.Builder(); in testBuilder_setField()
284 final Field field1 = builder.setValue(mValue) in testBuilder_setField()
302 () -> builder.setField(nullId, new Field.Builder().build())); in testBuilder_setFieldNullId()
314 assertThat(new Dataset.Builder().setField(mId, new Field.Builder().build())).isNotNull(); in testBuilder_setFieldWithEmptyField()
319 Dataset dataset = new Dataset.Builder().setFieldForAllHints(new Field.Builder().build()) in testBuilder_setFieldForAllHints()
328 new Field.Builder().build()).build(); in testBuilder_setFieldWithType()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DCustomClassLoaderTest.java27 import java.lang.reflect.Field;
77 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); in testCustomDexClassLoader()
95 Field field = cl.loadClass("android.os.cts.TestClass").getField("MESSAGE"); in testCustomPathClassLoader()
/cts/hostsidetests/classloaders/useslibrary/app/src/com/android/cts/useslibrary/
DUsesLibraryTest.java26 import java.lang.reflect.Field;
97 Field pathListField = BaseDexClassLoader.class.getDeclaredField("pathList"); in getDexElementsFromClassLoader()
101 Field dexElementsField = pathList.getClass().getDeclaredField("dexElements"); in getDexElementsFromClassLoader()
109 Field dexFileField = dexElement.getClass().getDeclaredField("dexFile"); in getDexFileFromDexElement()
/cts/tests/tests/time/src/android/app/time/cts/
DParcelableTestSupport.java24 import java.lang.reflect.Field;
40 Field creatorField = parcelable.getClass().getField("CREATOR"); in roundTripParcelable()
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/
DAuthenticator.java31 import java.lang.reflect.Field;
116 Field mAccountAuthenticatorResponseField = in addAccount()
137 Field TRANSACTION_onResultField = in addAccount()
151 Field mRemoteField = proxyClass.getDeclaredField("mRemote"); in addAccount()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21124/test-app/src/android/security/cts/CVE_2023_21124_test/
DPocAuthService.java37 import java.lang.reflect.Field;
119 Field field = setAccessibleFor(LabeledIntent.class, "mNonLocalizedLabel"); in addAccount()
132 private Field setAccessibleFor(Class<?> clazz, String fieldName) { in setAccessibleFor()
133 for (Field field : clazz.getDeclaredFields()) { in setAccessibleFor()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0921/src/android/security/cts/CVE_2021_0921/
DAuthenticator.java17 import java.lang.reflect.Field;
107Field mAccountAuthenticatorResponseField = AccountAuthenticatorResponseClass.getDeclaredField("mAc… in addAccount()
119 Field TRANSACTION_onResultField = stubClass.getDeclaredField("TRANSACTION_onResult"); in addAccount()
131 Field mRemoteField = proxyClass.getDeclaredField("mRemote"); in addAccount()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DApiLevelUtil.java22 import java.lang.reflect.Field;
137 Field versionField = VersionCodes.class.getField(versionString.toUpperCase()); in resolveVersionString()
142 Field versionField = Build.VERSION_CODES.class.getField(versionString.toUpperCase()); in resolveVersionString()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java24 import java.lang.reflect.Field;
85 Field[] fields = PackageManager.class.getFields(); in getPackageManagerFeatures()
86 for (Field field : fields) { in getPackageManagerFeatures()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DClickableToastActivity.java35 import java.lang.reflect.Field;
73 Field tnField = Toast.class.getDeclaredField("mTN"); in getClickableToast()
76 Field paramsField = Class.forName( in getClickableToast()
/cts/tests/signature/lib/android/src/android/signature/cts/
DDexMemberChecker.java22 import java.lang.reflect.Field;
178 Field ifield = getField_JNI(klass, dexField.getName(), dexField.getDexType()); in hasMatchingField_JNI()
187 Field sfield = getStaticField_JNI(klass, dexField.getName(), dexField.getDexType()); in hasMatchingField_JNI()
281 private static native Field getField_JNI(Class<?> klass, String name, String type); in getField_JNI()
282 private static native Field getStaticField_JNI(Class<?> klass, String name, String type); in getStaticField_JNI()

1234