Home
last modified time | relevance | path

Searched refs:klass (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalHelpers.java86 public static <T> Class<T> checkPrimitiveClass(Class<T> klass) { in checkPrimitiveClass() argument
87 checkNotNull(klass, "klass must not be null"); in checkPrimitiveClass()
89 if (isPrimitiveClass(klass)) { in checkPrimitiveClass()
90 return klass; in checkPrimitiveClass()
93 throw new UnsupportedOperationException("Unsupported class '" + klass + in checkPrimitiveClass()
117 public static <T> boolean isPrimitiveClass(Class<T> klass) { in isPrimitiveClass() argument
118 if (klass == null) { in isPrimitiveClass()
122 if (klass == byte.class || klass == Byte.class) { in isPrimitiveClass()
124 } else if (klass == int.class || klass == Integer.class) { in isPrimitiveClass()
126 } else if (klass == float.class || klass == Float.class) { in isPrimitiveClass()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java113 Class<T> klass = (Class<T>) array.getClass(); in toByteArray() local
115 if (!klass.isArray()) { in toByteArray()
119 Class<?> componentClass = klass.getComponentType(); in toByteArray()
126 if (klass == int.class) { in toByteArray()
128 } else if (klass == float.class) { in toByteArray()
130 } else if (klass == double.class) { in toByteArray()
132 } else if (klass == short.class) { in toByteArray()
134 } else if (klass == char.class) { in toByteArray()
136 } else if (klass == long.class) { in toByteArray()
138 } else if (klass == byte.class) { in toByteArray()
[all …]
DCameraUtilsTypeReferenceTest.java136 private static <T> void assertTypeReferenceEquals(TypeReference<T> typeRef, Class<?> klass) { in assertTypeReferenceEquals() argument
137 assertEquals("Expected the type from " + typeRef + " to match the class " + klass, in assertTypeReferenceEquals()
138 klass, typeRef.getType()); in assertTypeReferenceEquals()
DRationalTest.java468 private static <T extends Serializable> T deserialize(byte[] array, Class<T> klass) in deserialize() argument
473 return klass.cast(obj); in deserialize()
479 Class<T> klass = (Class<T>) obj.getClass(); in serializeRoundTrip() local
481 T serialized = deserialize(arr, klass); in serializeRoundTrip()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/
DJavaTypeUtil.java45 private String getDescription(Class klass) { in getDescription() argument
46 if (klass == null) { in getDescription()
49 if (boolean.class.equals(klass)) { in getDescription()
52 if (byte.class.equals(klass)) { in getDescription()
55 if (short.class.equals(klass)) { in getDescription()
58 if (int.class.equals(klass)) { in getDescription()
61 if (long.class.equals(klass)) { in getDescription()
64 if (char.class.equals(klass)) { in getDescription()
67 if (float.class.equals(klass)) { in getDescription()
70 if (double.class.equals(klass)) { in getDescription()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java165 Class<?> klass = (Class<?>)managedType.getType(); in isTypeMappingSupported() local
167 if (klass == byte.class || klass == Byte.class) { in isTypeMappingSupported()
169 } else if (klass == int.class || klass == Integer.class) { in isTypeMappingSupported()
171 } else if (klass == float.class || klass == Float.class) { in isTypeMappingSupported()
173 } else if (klass == long.class || klass == Long.class) { in isTypeMappingSupported()
175 } else if (klass == double.class || klass == Double.class) { in isTypeMappingSupported()
177 } else if (klass == Rational.class) { in isTypeMappingSupported()
/frameworks/base/core/java/android/hardware/camera2/utils/
DTypeReference.java97 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference() argument
98 super(klass); in SpecializedTypeReference()
122 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference() argument
123 return new SpecializedTypeReference<T>(klass); in createSpecializedTypeReference()
190 Class<?> klass = getRawType(type); in getRawType() local
191 if (klass != null) { in getRawType()
192 return klass; in getRawType()
289 Class<?> klass = (Class<?>)type; in containsTypeVariable() local
292 if (klass.getTypeParameters().length != 0) { in containsTypeVariable()
307 return containsTypeVariable(klass.getDeclaringClass()); in containsTypeVariable()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
DBaseDataBinderTest.java115 protected void assertMethod(Class<?> klass, String methodName) throws NoSuchMethodException { in assertMethod() argument
116 assertEquals(klass, mBinder.getClass().getDeclaredMethod(methodName).getReturnType()); in assertMethod()
119 protected void assertField(Class<?> klass, String fieldName) throws NoSuchFieldException { in assertField() argument
120 assertEquals(klass, mBinder.getClass().getDeclaredField(fieldName).getType()); in assertField()
123 protected void assertPublicField(Class<?> klass, String fieldName) throws NoSuchFieldException { in assertPublicField() argument
124 assertEquals(klass, mBinder.getClass().getField(fieldName).getType()); in assertPublicField()
/frameworks/base/core/java/android/view/
DViewDebug.java1017 private static Field[] getExportedPropertyFields(Class<?> klass) { in getExportedPropertyFields() argument
1027 Field[] fields = map.get(klass); in getExportedPropertyFields()
1033 final Field[] declaredFields = klass.getDeclaredFieldsUnchecked(false); in getExportedPropertyFields()
1044 map.put(klass, fields); in getExportedPropertyFields()
1052 private static Method[] getExportedPropertyMethods(Class<?> klass) { in getExportedPropertyMethods() argument
1062 Method[] methods = map.get(klass); in getExportedPropertyMethods()
1067 methods = klass.getDeclaredMethodsUnchecked(false); in getExportedPropertyMethods()
1089 map.put(klass, methods); in getExportedPropertyMethods()
1108 Class<?> klass = view.getClass(); in dumpViewProperties() local
1110 exportFields(context, view, out, klass, prefix); in dumpViewProperties()
[all …]
/frameworks/base/core/java/android/os/
DStrictMode.java668 public Builder setClassInstanceLimit(Class klass, int instanceLimit) { in setClassInstanceLimit() argument
669 if (klass == null) { in setClassInstanceLimit()
673 if (mClassInstanceLimit.containsKey(klass) && in setClassInstanceLimit()
674 mClassInstanceLimit.get(klass) == instanceLimit) { in setClassInstanceLimit()
684 mClassInstanceLimit.put(klass, instanceLimit); in setClassInstanceLimit()
1587 Class klass = entry.getKey(); in conditionallyCheckInstanceCounts() local
1589 long instances = VMDebug.countInstancesOfClass(klass, false); in conditionallyCheckInstanceCounts()
1593 Throwable tr = new InstanceCountViolation(klass, instances, limit); in conditionallyCheckInstanceCounts()
2199 public static void incrementExpectedActivityCount(Class klass) { in incrementExpectedActivityCount() argument
2200 if (klass == null) { in incrementExpectedActivityCount()
[all …]
DHandler.java190 final Class<? extends Handler> klass = getClass(); in Handler() local
191 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Handler()
192 (klass.getModifiers() & Modifier.STATIC) == 0) { in Handler()
194 klass.getCanonicalName()); in Handler()
DBinder.java203 final Class<? extends Binder> klass = getClass(); in Binder() local
204 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Binder()
205 (klass.getModifiers() & Modifier.STATIC) == 0) { in Binder()
207 klass.getCanonicalName()); in Binder()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java344 public static <T> boolean isOutputSupportedFor(Class<T> klass) { in isOutputSupportedFor() argument
345 checkNotNull(klass, "klass must not be null"); in isOutputSupportedFor()
347 if (klass == android.media.ImageReader.class) { in isOutputSupportedFor()
349 } else if (klass == android.media.MediaRecorder.class) { in isOutputSupportedFor()
351 } else if (klass == android.media.MediaCodec.class) { in isOutputSupportedFor()
353 } else if (klass == android.renderscript.Allocation.class) { in isOutputSupportedFor()
355 } else if (klass == android.view.SurfaceHolder.class) { in isOutputSupportedFor()
357 } else if (klass == android.graphics.SurfaceTexture.class) { in isOutputSupportedFor()
461 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() argument
462 if (isOutputSupportedFor(klass) == false) { in getOutputSizes()
[all …]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DBRWriter.kt23 public fun write(pkg : String): String = "package $pkg;${System.lineSeparator()}$klass" in write()
24 val klass: String by Delegates.lazy { in write() constant
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListUnspecifiedMeasure.java30 protected ListUnspecifiedMeasure(Class<T> klass) { in ListUnspecifiedMeasure() argument
31 super("com.android.frameworks.coretests", klass); in ListUnspecifiedMeasure()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSetSelectionBaseTest.java30 protected GridSetSelectionBaseTest(Class<T> klass) { in GridSetSelectionBaseTest() argument
31 super("com.android.frameworks.coretests", klass); in GridSetSelectionBaseTest()
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DTileList.java92 public Tile(Class<T> klass, int size) { in Tile() argument
94 mItems = (T[]) Array.newInstance(klass, size); in Tile()
DSortedList.java81 public SortedList(Class<T> klass, Callback<T> callback) { in SortedList() argument
82 this(klass, callback, MIN_CAPACITY); in SortedList()
92 public SortedList(Class<T> klass, Callback<T> callback, int initialCapacity) { in SortedList() argument
93 mTClass = klass; in SortedList()
94 mData = (T[]) Array.newInstance(klass, initialCapacity); in SortedList()
DAsyncListUtil.java87 public AsyncListUtil(Class<T> klass, int tileSize, DataCallback<T> dataCallback, in AsyncListUtil() argument
89 mTClass = klass; in AsyncListUtil()
/frameworks/data-binding/library/src/androidTest/java/android/databinding/
DObservableParcelTest.java161 private <T extends Parcelable> T parcelAndUnparcel(T t, Class<T> klass) { in parcelAndUnparcel() argument
171 assertEquals(klass, parcelable.getClass()); in parcelAndUnparcel()
176 private <T> T serializeAndDeserialize(T t, Class<T> klass) in serializeAndDeserialize() argument
196 assertEquals(klass, o.getClass()); in serializeAndDeserialize()
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/
DDataBindingExcludeGeneratedTask.java92 for (String klass : generatedClasses) { in excludeGenerated()
93 exclude(klass.replace('.', '/') + ".class"); in excludeGenerated()
/frameworks/base/core/java/android/util/
DDebugUtils.java79 Class<?> klass = object.getClass(); in isObjectSelected() local
82 Class<?> parent = klass; in isObjectSelected()
88 } while ((parent = klass.getSuperclass()) != null && in isObjectSelected()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DMergedBinding.java118 private static <T> T[] concat(List<T> l1, List<T> l2, Class<T> klass) { in concat() argument
122 return result.toArray((T[]) Array.newInstance(klass, result.size())); in concat()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java53 private <T extends Expr> T parse(String input, Class<T> klass) { in parse() argument
55 assertSame(klass, parsed.getClass()); in parse()
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java358 public void connect(Context srcContext, Handler srcHandler, Class<?> klass) { in connect() argument
359 connect(srcContext, srcHandler, klass.getPackage().getName(), klass.getName()); in connect()

12