/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()
|
/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/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 | 492 public static <T> boolean isOutputSupportedFor(Class<T> klass) { in isOutputSupportedFor() argument 493 Objects.requireNonNull(klass, "klass must not be null"); in isOutputSupportedFor() 495 if (klass == android.media.ImageReader.class) { in isOutputSupportedFor() 497 } else if (klass == android.media.MediaRecorder.class) { in isOutputSupportedFor() 499 } else if (klass == android.media.MediaCodec.class) { in isOutputSupportedFor() 501 } else if (klass == android.renderscript.Allocation.class) { in isOutputSupportedFor() 503 } else if (klass == android.view.SurfaceHolder.class) { in isOutputSupportedFor() 505 } else if (klass == android.graphics.SurfaceTexture.class) { in isOutputSupportedFor() 637 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() argument 638 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/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/java/android/view/ |
D | ViewDebug.java | 1377 private static void cacheExportedProperties(Class<?> klass) { 1378 if (sExportProperties != null && sExportProperties.containsKey(klass)) { 1382 for (PropertyInfo<ExportedProperty, ?> info : getExportedProperties(klass)) { 1387 klass = klass.getSuperclass(); 1388 } while (klass != Object.class); 1458 private static PropertyInfo<ExportedProperty, ?>[] getExportedProperties(Class<?> klass) { 1463 PropertyInfo<ExportedProperty, ?>[] properties = sExportProperties.get(klass); 1466 properties = convertToPropertyInfos(klass.getDeclaredMethodsUnchecked(false), 1467 klass.getDeclaredFieldsUnchecked(false), ExportedProperty.class); 1468 map.put(klass, properties); [all …]
|
/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 | 798 public @NonNull Builder setClassInstanceLimit(Class klass, int instanceLimit) { in setClassInstanceLimit() argument 799 if (klass == null) { in setClassInstanceLimit() 803 if (mClassInstanceLimit.containsKey(klass) in setClassInstanceLimit() 804 && mClassInstanceLimit.get(klass) == instanceLimit) { in setClassInstanceLimit() 814 mClassInstanceLimit.put(klass, instanceLimit); in setClassInstanceLimit() 1965 Class klass = classes[i]; in conditionallyCheckInstanceCounts() local 1966 int limit = policy.classInstanceLimit.get(klass); in conditionallyCheckInstanceCounts() 1969 onVmPolicyViolation(new InstanceCountViolation(klass, instances, limit)); in conditionallyCheckInstanceCounts() 2620 public static void incrementExpectedActivityCount(Class klass) { in incrementExpectedActivityCount() argument 2621 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 | 601 final Class<? extends Binder> klass = getClass(); in Binder() local 602 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Binder() 603 (klass.getModifiers() & Modifier.STATIC) == 0) { in Binder() 605 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/services/core/jni/ |
D | com_android_server_SystemServer.cpp | 136 static jlong android_server_SystemServer_startIncrementalService(JNIEnv* env, jclass klass, in android_server_SystemServer_startIncrementalService() argument 141 static void android_server_SystemServer_setIncrementalServiceSystemReady(JNIEnv* env, jclass klass, in android_server_SystemServer_setIncrementalServiceSystemReady() argument
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTestRunner.java | 47 public WindowTestRunner(Class<?> klass) throws InitializationError { in WindowTestRunner() argument 48 super(klass); in WindowTestRunner()
|
/frameworks/base/core/java/android/util/ |
D | DebugUtils.java | 86 Class<?> klass = object.getClass(); in isObjectSelected() local 89 Class<?> parent = klass; in isObjectSelected() 95 } 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/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/native/libs/nativedisplay/surfacetexture/ |
D | surface_texture.cpp | 79 ScopedLocalRef<jclass> klass(env, FindClassOrDie(env, kSurfaceTextureClassPathName)); in register_android_graphics_SurfaceTexture() local 80 SurfaceTexture_classInit(env, klass.get()); in register_android_graphics_SurfaceTexture()
|
/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()
|