/frameworks/base/core/java/android/hardware/camera2/marshal/ |
D | MarshalHelpers.java | 86 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/ |
D | ByteArrayHelpers.java | 113 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 …]
|
D | CameraUtilsTypeReferenceTest.java | 136 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()
|
D | RationalTest.java | 468 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/ |
D | JavaTypeUtil.java | 45 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/ |
D | MarshalQueryablePrimitive.java | 165 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/ |
D | TypeReference.java | 97 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/ |
D | BaseDataBinderTest.java | 115 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/ |
D | ViewDebug.java | 1023 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/ |
D | StrictMode.java | 657 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 …]
|
D | Handler.java | 190 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()
|
D | Binder.java | 258 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/ |
D | StreamConfigurationMap.java | 344 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 …]
|
D | OutputConfiguration.java | 234 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/ |
D | BRWriter.kt | 23 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/ |
D | ListUnspecifiedMeasure.java | 30 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/ |
D | SPVerifier.java | 222 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/ |
D | GridSetSelectionBaseTest.java | 30 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/ |
D | TileList.java | 92 public Tile(Class<T> klass, int size) { in Tile() argument 94 mItems = (T[]) Array.newInstance(klass, size); in Tile()
|
D | SortedList.java | 81 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/ |
D | ObservableParcelTest.java | 161 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/ |
D | DebugUtils.java | 79 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/ |
D | DataBindingExcludeGeneratedTask.java | 93 for (String klass : generatedClasses) { in excludeGenerated() 94 exclude(klass.replace('.', '/') + ".class"); in excludeGenerated()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
D | MergedBinding.java | 118 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/ |
D | DataBindingBuilder.java | 119 for (String klass : generatedClasses) { in getJarExcludeList() 120 excludes.add(klass.replace('.', '/') + ".class"); in getJarExcludeList()
|