/cts/tests/tests/security/src/android/security/cts/ |
D | BitmapWrapper.java | 29 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 …]
|
D | BitmapTest.java | 134 .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()
|
D | CVE_2022_20493.java | 31 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()
|
D | CVE_2022_20485.java | 42 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()
|
D | CVE_2022_20456.java | 37 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/ |
D | Entity.java | 35 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()
|
D | Field.java | 25 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/ |
D | KeyStoreExceptionTest.java | 35 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()
|
D | KeystoreFeatureMapTest.java | 30 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/ |
D | VehiclePropertyUtils.java | 21 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/ |
D | ApiPresenceChecker.java | 19 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()
|
D | AnnotationChecker.java | 20 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/ |
D | HiddenApiUsedActivity.java | 22 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/ |
D | FeatureProvider.java | 25 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/ |
D | DatasetTest.java | 37 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/ |
D | CustomClassLoaderTest.java | 27 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/ |
D | UsesLibraryTest.java | 26 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/ |
D | ParcelableTestSupport.java | 24 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/ |
D | Authenticator.java | 31 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/ |
D | PocAuthService.java | 37 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/ |
D | Authenticator.java | 17 import java.lang.reflect.Field; 107 …Field 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/ |
D | ApiLevelUtil.java | 22 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/ |
D | FeatureDeviceInfo.java | 24 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/ |
D | ClickableToastActivity.java | 35 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/ |
D | DexMemberChecker.java | 22 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()
|