Home
last modified time | relevance | path

Searched refs:klass (Results 1 – 25 of 41) 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()
112 public static boolean isUnwrappedPrimitiveClass(Class<?> klass) { in isUnwrappedPrimitiveClass() argument
113 if (klass == null) { in isUnwrappedPrimitiveClass()
117 if (klass == byte.class) { in isUnwrappedPrimitiveClass()
119 } else if (klass == int.class) { in isUnwrappedPrimitiveClass()
121 } else if (klass == float.class) { in isUnwrappedPrimitiveClass()
[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.java135 private static <T> void assertTypeReferenceEquals(TypeReference<T> typeRef, Class<?> klass) { in assertTypeReferenceEquals() argument
136 assertEquals("Expected the type from " + typeRef + " to match the class " + klass, in assertTypeReferenceEquals()
137 klass, typeRef.getType()); in assertTypeReferenceEquals()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DReflectionPerfTest.java49 Class<?> klass = C.class; in timeClass_getField() local
52 klass.getField("f"); in timeClass_getField()
58 Class<?> klass = C.class; in timeClass_getDeclaredField() local
61 klass.getDeclaredField("f"); in timeClass_getDeclaredField()
67 Class<?> klass = C.class; in timeClass_getConstructor() local
70 klass.getConstructor(); in timeClass_getConstructor()
76 Class<?> klass = C.class; in timeClass_newInstance() local
77 Constructor constructor = klass.getConstructor(); in timeClass_newInstance()
86 Class<?> klass = C.class; in timeClass_getMethod() local
89 klass.getMethod("m"); in timeClass_getMethod()
[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.java101 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference() argument
102 super(klass); in SpecializedTypeReference()
126 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference() argument
127 return new SpecializedTypeReference<T>(klass); in createSpecializedTypeReference()
195 Class<?> klass = getRawType(type); in getRawType() local
196 if (klass != null) { in getRawType()
197 return klass; in getRawType()
294 Class<?> klass = (Class<?>)type; in containsTypeVariable() local
297 if (klass.getTypeParameters().length != 0) { in containsTypeVariable()
312 return containsTypeVariable(klass.getDeclaringClass()); in containsTypeVariable()
[all …]
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DUtil.java37 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/
DRecommendedStreamConfigurationMap.java453 public @Nullable <T> Set<Size> getOutputSizes(@NonNull Class<T> klass) { in getOutputSizes() argument
455 return getUnmodifiableSizeSet(mRecommendedMap.getOutputSizes(klass)); in getOutputSizes()
476 public @IntRange(from = 0) <T> long getOutputMinFrameDuration(@NonNull final Class<T> klass, in getOutputMinFrameDuration() argument
479 return mRecommendedMap.getOutputMinFrameDuration(klass, size); in getOutputMinFrameDuration()
499 public @IntRange(from = 0) <T> long getOutputStallDuration(@NonNull final Class<T> klass, in getOutputStallDuration() argument
502 return mRecommendedMap.getOutputStallDuration(klass, size); in getOutputStallDuration()
DStreamConfigurationMap.java535 public static <T> boolean isOutputSupportedFor(Class<T> klass) { in isOutputSupportedFor() argument
536 Objects.requireNonNull(klass, "klass must not be null"); in isOutputSupportedFor()
538 if (klass == android.media.ImageReader.class) { in isOutputSupportedFor()
540 } else if (klass == android.media.MediaRecorder.class) { in isOutputSupportedFor()
542 } else if (klass == android.media.MediaCodec.class) { in isOutputSupportedFor()
544 } else if (klass == android.renderscript.Allocation.class) { in isOutputSupportedFor()
546 } else if (klass == android.view.SurfaceHolder.class) { in isOutputSupportedFor()
548 } else if (klass == android.graphics.SurfaceTexture.class) { in isOutputSupportedFor()
686 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes() argument
687 if (isOutputSupportedFor(klass) == false) { in getOutputSizes()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/libcore/varhandles/
Dgenerate_java.py48 def __init__(self, code, static, vartype, flavour, klass, method, memloc, argument
54 self.klass = klass
61 klass = self.klass,
70 if self.klass == "Reflect":
73 elif self.klass == "Unsafe":
/frameworks/base/core/java/android/os/strictmode/
DInstanceCountViolation.java27 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/
DListUnspecifiedMeasure.java31 protected ListUnspecifiedMeasure(Class<T> klass) { in ListUnspecifiedMeasure() argument
32 super("com.android.frameworks.coretests", klass); in ListUnspecifiedMeasure()
/frameworks/base/core/java/android/view/
DViewDebug.java1384 private static void cacheExportedProperties(Class<?> klass) {
1385 if (sExportProperties != null && sExportProperties.containsKey(klass)) {
1389 for (PropertyInfo<ExportedProperty, ?> info : getExportedProperties(klass)) {
1394 klass = klass.getSuperclass();
1395 } while (klass != Object.class);
1465 private static PropertyInfo<ExportedProperty, ?>[] getExportedProperties(Class<?> klass) {
1470 PropertyInfo<ExportedProperty, ?>[] properties = sExportProperties.get(klass);
1473 properties = convertToPropertyInfos(klass.getDeclaredMethods(),
1474 klass.getDeclaredFields(), ExportedProperty.class);
1475 map.put(klass, properties);
[all …]
/frameworks/base/tests/testables/src/android/testing/
DAndroidTestingRunner.java46 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/
DGridSetSelectionBaseTest.java30 protected GridSetSelectionBaseTest(Class<T> klass) { in GridSetSelectionBaseTest() argument
31 super("com.android.frameworks.coretests", klass); in GridSetSelectionBaseTest()
/frameworks/base/core/java/android/os/
DStrictMode.java812 public @NonNull Builder setClassInstanceLimit(Class klass, int instanceLimit) { in setClassInstanceLimit() argument
813 if (klass == null) { in setClassInstanceLimit()
817 if (mClassInstanceLimit.containsKey(klass) in setClassInstanceLimit()
818 && mClassInstanceLimit.get(klass) == instanceLimit) { in setClassInstanceLimit()
828 mClassInstanceLimit.put(klass, instanceLimit); in setClassInstanceLimit()
2056 Class klass = classes[i]; in conditionallyCheckInstanceCounts() local
2057 int limit = policy.classInstanceLimit.get(klass); in conditionallyCheckInstanceCounts()
2060 onVmPolicyViolation(new InstanceCountViolation(klass, instances, limit)); in conditionallyCheckInstanceCounts()
2856 public static void incrementExpectedActivityCount(Class klass) { in incrementExpectedActivityCount() argument
2857 if (klass == null) { in incrementExpectedActivityCount()
[all …]
DHandler.java217 final Class<? extends Handler> klass = getClass(); in Handler() local
218 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Handler()
219 (klass.getModifiers() & Modifier.STATIC) == 0) { in Handler()
221 klass.getCanonicalName()); in Handler()
/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
DTraceInjectionMethodAdapter.java176 private static String toJavaSpecifier(String klass) { in toJavaSpecifier() argument
177 return "L" + klass + ";"; in toJavaSpecifier()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestRunner.java47 public WindowTestRunner(Class<?> klass) throws InitializationError { in WindowTestRunner() argument
48 super(klass); in WindowTestRunner()
/frameworks/base/core/java/android/util/
DDebugUtils.java87 Class<?> klass = object.getClass(); in isObjectSelected() local
90 Class<?> parent = klass; in isObjectSelected()
96 } while ((parent = klass.getSuperclass()) != null && in isObjectSelected()
/frameworks/base/services/core/jni/
Dcom_android_server_SystemServer.cpp167 static jlong android_server_SystemServer_startIncrementalService(JNIEnv* env, jclass klass, in android_server_SystemServer_startIncrementalService() argument
172 static void android_server_SystemServer_setIncrementalServiceSystemReady(JNIEnv* env, jclass klass, in android_server_SystemServer_setIncrementalServiceSystemReady() argument
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUnitTest.java216 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/
DUnitTest.java213 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/src/com/android/rs/unittest/
DUnitTest.java213 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/
Dsurface_texture.cpp78 ScopedLocalRef<jclass> klass(env, FindClassOrDie(env, kSurfaceTextureClassPathName)); in register_android_graphics_SurfaceTexture() local
79 SurfaceTexture_classInit(env, klass.get()); in register_android_graphics_SurfaceTexture()

12