Home
last modified time | relevance | path

Searched refs:klass (Results 1 – 25 of 33) 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.java1023 private static Field[] getExportedPropertyFields(Class<?> klass) { in getExportedPropertyFields() argument
1033 Field[] fields = map.get(klass); in getExportedPropertyFields()
1039 final Field[] declaredFields = klass.getDeclaredFieldsUnchecked(false); in getExportedPropertyFields()
1050 map.put(klass, fields); in getExportedPropertyFields()
1058 private static Method[] getExportedPropertyMethods(Class<?> klass) { in getExportedPropertyMethods() argument
1068 Method[] methods = map.get(klass); in getExportedPropertyMethods()
1073 methods = klass.getDeclaredMethodsUnchecked(false); in getExportedPropertyMethods()
1095 map.put(klass, methods); in getExportedPropertyMethods()
1114 Class<?> klass = view.getClass(); in dumpViewProperties() local
1116 exportFields(context, view, out, klass, prefix); in dumpViewProperties()
[all …]
/frameworks/base/core/java/android/os/
DStrictMode.java657 public Builder setClassInstanceLimit(Class klass, int instanceLimit) { in setClassInstanceLimit() argument
658 if (klass == null) { in setClassInstanceLimit()
662 if (mClassInstanceLimit.containsKey(klass) && in setClassInstanceLimit()
663 mClassInstanceLimit.get(klass) == instanceLimit) { in setClassInstanceLimit()
673 mClassInstanceLimit.put(klass, instanceLimit); in setClassInstanceLimit()
1629 Class klass = classes[i]; in conditionallyCheckInstanceCounts() local
1630 int limit = policy.classInstanceLimit.get(klass); in conditionallyCheckInstanceCounts()
1633 Throwable tr = new InstanceCountViolation(klass, instances, limit); in conditionallyCheckInstanceCounts()
2248 public static void incrementExpectedActivityCount(Class klass) { in incrementExpectedActivityCount() argument
2249 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.java258 final Class<? extends Binder> klass = getClass(); in Binder() local
259 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Binder()
260 (klass.getModifiers() & Modifier.STATIC) == 0) { in Binder()
262 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 …]
DOutputConfiguration.java234 public <T> OutputConfiguration(@NonNull Size surfaceSize, @NonNull Class<T> klass) { in OutputConfiguration() argument
235 checkNotNull(klass, "surfaceSize must not be null"); in OutputConfiguration()
236 checkNotNull(klass, "klass must not be null"); in OutputConfiguration()
237 if (klass == android.view.SurfaceHolder.class) { in OutputConfiguration()
239 } else if (klass == android.graphics.SurfaceTexture.class) { in OutputConfiguration()
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DBRWriter.kt23 public fun write(pkg : String): String = "package $pkg;${StringUtils.LINE_SEPARATOR}$klass" in write()
24 val klass: String by 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/packages/Osu/src/com/android/hotspot2/osu/
DSPVerifier.java222 private static <T extends Asn1Object> T castObject(Asn1Object object, Class<T> klass) in castObject() argument
224 if (object.getClass() != klass) { in castObject()
226 " expected an " + klass.getSimpleName()); in castObject()
228 return klass.cast(object); in castObject()
231 private static <T extends Asn1Object> T getFirstInner(Asn1Object container, Class<T> klass) in getFirstInner() argument
240 return castObject(children.next(), klass); in getFirstInner()
/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()
/frameworks/data-binding/extensions/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/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/gradlePlugin/src/main/java/android/databinding/tool/
DDataBindingExcludeGeneratedTask.java93 for (String klass : generatedClasses) { in excludeGenerated()
94 exclude(klass.replace('.', '/') + ".class"); in excludeGenerated()
/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/compilerCommon/src/main/java/android/databinding/tool/
DDataBindingBuilder.java119 for (String klass : generatedClasses) { in getJarExcludeList()
120 excludes.add(klass.replace('.', '/') + ".class"); in getJarExcludeList()

12