/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/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 | 100 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference() argument 101 super(klass); in SpecializedTypeReference() 125 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference() argument 126 return new SpecializedTypeReference<T>(klass); in createSpecializedTypeReference() 194 Class<?> klass = getRawType(type); in getRawType() local 195 if (klass != null) { in getRawType() 196 return klass; in getRawType() 293 Class<?> klass = (Class<?>)type; in containsTypeVariable() local 296 if (klass.getTypeParameters().length != 0) { in containsTypeVariable() 311 return containsTypeVariable(klass.getDeclaringClass()); in containsTypeVariable() [all …]
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | DevSdkIgnoreRunner.kt | 44 class DevSdkIgnoreRunner(private val klass: Class<*>) : Runner() { constant in com.android.testutils.DevSdkIgnoreRunner 45 private val baseRunner = klass.let { in <lambda>() 49 if (isDevSdkInRange(ignoreUpTo?.value, ignoreAfter?.value)) AndroidJUnit4(klass) else null in <lambda>() 61 Description.createTestDescription(klass, "skippedClassForDevSdkMismatch")) in run() 65 return baseRunner?.description ?: Description.createSuiteDescription(klass) in getDescription()
|
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/ |
D | Util.java | 37 Class<?> klass = Class.class; 38 statusField = klass.getDeclaredField("status"); 90 public static boolean isInitialized(Class<?> klass) throws Exception { in isInitialized() argument 91 Object val = statusField.get(klass); in isInitialized() 110 Class<?> klass = Class.forName(className, /* initialize */ false, loader); in assertInitializedState() local 111 initialized = isInitialized(klass); in assertInitializedState()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | RecommendedStreamConfigurationMap.java | 442 public @Nullable <T> Set<Size> getOutputSizes(@NonNull Class<T> klass) { in getOutputSizes() argument 444 return getUnmodifiableSizeSet(mRecommendedMap.getOutputSizes(klass)); in getOutputSizes() 465 public @IntRange(from = 0) <T> long getOutputMinFrameDuration(@NonNull final Class<T> klass, in getOutputMinFrameDuration() argument 468 return mRecommendedMap.getOutputMinFrameDuration(klass, size); in getOutputMinFrameDuration() 488 public @IntRange(from = 0) <T> long getOutputStallDuration(@NonNull final Class<T> klass, in getOutputStallDuration() argument 491 return mRecommendedMap.getOutputStallDuration(klass, size); in getOutputStallDuration()
|
D | StreamConfigurationMap.java | 493 public static <T> boolean isOutputSupportedFor(Class<T> klass) { in isOutputSupportedFor() argument 494 checkNotNull(klass, "klass must not be null"); in isOutputSupportedFor() 496 if (klass == android.media.ImageReader.class) { in isOutputSupportedFor() 498 } else if (klass == android.media.MediaRecorder.class) { in isOutputSupportedFor() 500 } else if (klass == android.media.MediaCodec.class) { in isOutputSupportedFor() 502 } else if (klass == android.renderscript.Allocation.class) { in isOutputSupportedFor() 504 } else if (klass == android.view.SurfaceHolder.class) { in isOutputSupportedFor() 506 } else if (klass == android.graphics.SurfaceTexture.class) { in isOutputSupportedFor() 638 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() argument 639 if (isOutputSupportedFor(klass) == false) { in getOutputSizes() [all …]
|
D | OutputConfiguration.java | 296 public <T> OutputConfiguration(@NonNull Size surfaceSize, @NonNull Class<T> klass) { in OutputConfiguration() argument 297 checkNotNull(klass, "surfaceSize must not be null"); in OutputConfiguration() 298 checkNotNull(klass, "klass must not be null"); in OutputConfiguration() 299 if (klass == android.view.SurfaceHolder.class) { in OutputConfiguration() 301 } else if (klass == android.graphics.SurfaceTexture.class) { in OutputConfiguration()
|
/frameworks/base/core/java/android/view/ |
D | ViewDebug.java | 1292 private static Field[] getExportedPropertyFields(Class<?> klass) { 1302 Field[] fields = map.get(klass); 1308 final Field[] declaredFields = klass.getDeclaredFieldsUnchecked(false); 1319 map.put(klass, fields); 1327 private static Method[] getExportedPropertyMethods(Class<?> klass) { 1337 Method[] methods = map.get(klass); 1342 methods = klass.getDeclaredMethodsUnchecked(false); 1364 map.put(klass, methods); 1383 Class<?> klass = view.getClass(); 1385 exportFields(context, view, out, klass, prefix); [all …]
|
/frameworks/base/core/java/android/os/strictmode/ |
D | InstanceCountViolation.java | 27 public InstanceCountViolation(Class klass, long instances, int limit) { in InstanceCountViolation() argument 28 super(klass.toString() + "; instances=" + instances + "; limit=" + limit); in InstanceCountViolation()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListUnspecifiedMeasure.java | 31 protected ListUnspecifiedMeasure(Class<T> klass) { in ListUnspecifiedMeasure() argument 32 super("com.android.frameworks.coretests", klass); in ListUnspecifiedMeasure()
|
/frameworks/base/core/java/android/os/ |
D | StrictMode.java | 789 public @NonNull Builder setClassInstanceLimit(Class klass, int instanceLimit) { in setClassInstanceLimit() argument 790 if (klass == null) { in setClassInstanceLimit() 794 if (mClassInstanceLimit.containsKey(klass) in setClassInstanceLimit() 795 && mClassInstanceLimit.get(klass) == instanceLimit) { in setClassInstanceLimit() 805 mClassInstanceLimit.put(klass, instanceLimit); in setClassInstanceLimit() 1912 Class klass = classes[i]; in conditionallyCheckInstanceCounts() local 1913 int limit = policy.classInstanceLimit.get(klass); in conditionallyCheckInstanceCounts() 1916 onVmPolicyViolation(new InstanceCountViolation(klass, instances, limit)); in conditionallyCheckInstanceCounts() 2536 public static void incrementExpectedActivityCount(Class klass) { in incrementExpectedActivityCount() argument 2537 if (klass == null) { in incrementExpectedActivityCount() [all …]
|
D | Handler.java | 216 final Class<? extends Handler> klass = getClass(); in Handler() local 217 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Handler() 218 (klass.getModifiers() & Modifier.STATIC) == 0) { in Handler() 220 klass.getCanonicalName()); in Handler()
|
D | Binder.java | 581 final Class<? extends Binder> klass = getClass(); in Binder() local 582 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Binder() 583 (klass.getModifiers() & Modifier.STATIC) == 0) { in Binder() 585 klass.getCanonicalName()); in Binder()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | AndroidTestingRunner.java | 46 public AndroidTestingRunner(Class<?> klass) throws InitializationError { in AndroidTestingRunner() argument 47 super(klass); in AndroidTestingRunner() 48 mKlass = klass; in AndroidTestingRunner()
|
/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/base/core/java/android/util/ |
D | DebugUtils.java | 82 Class<?> klass = object.getClass(); in isObjectSelected() local 85 Class<?> parent = klass; in isObjectSelected() 91 } while ((parent = klass.getSuperclass()) != null && in isObjectSelected()
|
/frameworks/rs/tests/lldb/tests/ |
D | run_test.py | 232 for name, klass in inspect.getmembers(module, inspect.isclass): 233 for attr in dir(klass): 236 return klass
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UnitTest.java | 213 private static <T> Iterable<Class<? extends T>> getProperSubclasses(Class<T> klass, Context ctx) in getProperSubclasses() argument 222 if (cur.getSuperclass() == klass) { in getProperSubclasses()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UnitTest.java | 216 private static <T> Iterable<Class<? extends T>> getProperSubclasses(Class<T> klass, Context ctx) in getProperSubclasses() argument 225 if (cur.getSuperclass() == klass) { in getProperSubclasses()
|
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/ |
D | UnitTest.java | 213 private static <T> Iterable<Class<? extends T>> getProperSubclasses(Class<T> klass, Context ctx) in getProperSubclasses() argument 222 if (cur.getSuperclass() == klass) { in getProperSubclasses()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 366 public void connect(Context srcContext, Handler srcHandler, Class<?> klass) { in connect() argument 367 connect(srcContext, srcHandler, klass.getPackage().getName(), klass.getName()); in connect()
|