/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/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/ |
D | defs.c | 114 VALUE DescriptorPool_alloc(VALUE klass) { in DescriptorPool_alloc() argument 117 return TypedData_Wrap_Struct(klass, &_DescriptorPool_type, self); in DescriptorPool_alloc() 121 VALUE klass = rb_define_class_under( in DescriptorPool_register() local 123 rb_define_alloc_func(klass, DescriptorPool_alloc); in DescriptorPool_register() 124 rb_define_method(klass, "add", DescriptorPool_add, 1); in DescriptorPool_register() 125 rb_define_method(klass, "build", DescriptorPool_build, 0); in DescriptorPool_register() 126 rb_define_method(klass, "lookup", DescriptorPool_lookup, 1); in DescriptorPool_register() 127 rb_define_singleton_method(klass, "generated_pool", in DescriptorPool_register() 129 cDescriptorPool = klass; in DescriptorPool_register() 132 generated_pool = rb_class_new_instance(0, NULL, klass); in DescriptorPool_register() [all …]
|
D | message.c | 55 VALUE Message_alloc(VALUE klass) { in Message_alloc() argument 56 VALUE descriptor = rb_ivar_get(klass, descriptor_instancevar_interned); in Message_alloc() 66 ret = TypedData_Wrap_Struct(klass, &Message_type, msg); in Message_alloc() 427 VALUE Message_descriptor(VALUE klass) { in Message_descriptor() argument 428 return rb_ivar_get(klass, descriptor_instancevar_interned); in Message_descriptor() 433 VALUE klass; in build_class_from_descriptor() local 447 klass = rb_define_class_id( in build_class_from_descriptor() 452 rb_ivar_set(klass, descriptor_instancevar_interned, in build_class_from_descriptor() 454 rb_define_alloc_func(klass, Message_alloc); in build_class_from_descriptor() 456 rb_include_module(klass, rb_eval_string("Google::Protobuf::MessageExts")); in build_class_from_descriptor() [all …]
|
D | repeated_field.c | 519 void validate_type_class(upb_fieldtype_t type, VALUE klass) { in validate_type_class() argument 520 if (rb_ivar_get(klass, descriptor_instancevar_interned) == Qnil) { in validate_type_class() 526 VALUE desc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() 531 if (rb_get_alloc_func(klass) != &Message_alloc) { in validate_type_class() 536 VALUE enumdesc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() 612 VALUE RepeatedField_alloc(VALUE klass) { in RepeatedField_alloc() argument 619 return TypedData_Wrap_Struct(klass, &RepeatedField_type, self); in RepeatedField_alloc() 628 VALUE klass = rb_define_class_under( in RepeatedField_register() local 630 rb_define_alloc_func(klass, RepeatedField_alloc); in RepeatedField_register() 631 cRepeatedField = klass; in RepeatedField_register() [all …]
|
D | map.c | 170 VALUE Map_alloc(VALUE klass) { in Map_alloc() argument 174 return TypedData_Wrap_Struct(klass, &Map_type, self); in Map_alloc() 789 VALUE klass = rb_define_class_under(module, "Map", rb_cObject); in Map_register() local 790 rb_define_alloc_func(klass, Map_alloc); in Map_register() 791 cMap = klass; in Map_register() 794 rb_define_method(klass, "initialize", Map_init, -1); in Map_register() 795 rb_define_method(klass, "each", Map_each, 0); in Map_register() 796 rb_define_method(klass, "keys", Map_keys, 0); in Map_register() 797 rb_define_method(klass, "values", Map_values, 0); in Map_register() 798 rb_define_method(klass, "[]", Map_index, 1); in Map_register() [all …]
|
D | protobuf.h | 112 VALUE klass; // begins as nil member 177 VALUE DescriptorPool_alloc(VALUE klass); 187 VALUE Descriptor_alloc(VALUE klass); 203 VALUE FieldDescriptor_alloc(VALUE klass); 224 VALUE OneofDescriptor_alloc(VALUE klass); 234 VALUE EnumDescriptor_alloc(VALUE klass); 248 VALUE MessageBuilderContext_alloc(VALUE klass); 262 VALUE OneofBuilderContext_alloc(VALUE klass); 272 VALUE EnumBuilderContext_alloc(VALUE klass); 280 VALUE Builder_alloc(VALUE klass); [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 | 99 public SpecializedTypeReference(Class<T> klass) { in SpecializedTypeReference() argument 100 super(klass); in SpecializedTypeReference() 124 public static <T> TypeReference<T> createSpecializedTypeReference(Class<T> klass) { in createSpecializedTypeReference() argument 125 return new SpecializedTypeReference<T>(klass); in createSpecializedTypeReference() 193 Class<?> klass = getRawType(type); in getRawType() local 194 if (klass != null) { in getRawType() 195 return klass; in getRawType() 292 Class<?> klass = (Class<?>)type; in containsTypeVariable() local 295 if (klass.getTypeParameters().length != 0) { in containsTypeVariable() 310 return containsTypeVariable(klass.getDeclaringClass()); in containsTypeVariable() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/lib/google/ |
D | protobuf.rb | 67 def self.decode(klass, proto) argument 68 klass.decode(proto) 71 def self.decode_json(klass, json) argument 72 klass.decode_json(json)
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyDescriptor.java | 247 RubyClass klass = RubyClass.newClass(runtime, runtime.getObject()); in buildClassFromDescriptor() local 248 klass.setAllocator(allocator); in buildClassFromDescriptor() 249 klass.makeMetaClass(runtime.getObject().getMetaClass()); in buildClassFromDescriptor() 250 klass.inherit(runtime.getObject()); in buildClassFromDescriptor() 252 klass.include(new IRubyObject[] {messageExts}); in buildClassFromDescriptor() 253 klass.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this); in buildClassFromDescriptor() 254 klass.defineAnnotatedMethods(RubyMessage.class); in buildClassFromDescriptor() 255 return klass; in buildClassFromDescriptor()
|
/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/opt/gamesdk/third_party/protobuf-3.0.0/ruby/lib/google/protobuf/ |
D | message_exts.rb | 36 def self.included(klass) argument 37 klass.extend(ClassMethods)
|
/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 | 1213 private static Field[] getExportedPropertyFields(Class<?> klass) { 1223 Field[] fields = map.get(klass); 1229 final Field[] declaredFields = klass.getDeclaredFieldsUnchecked(false); 1240 map.put(klass, fields); 1248 private static Method[] getExportedPropertyMethods(Class<?> klass) { 1258 Method[] methods = map.get(klass); 1263 methods = klass.getDeclaredMethodsUnchecked(false); 1285 map.put(klass, methods); 1304 Class<?> klass = view.getClass(); 1306 exportFields(context, view, out, klass, prefix); [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/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/os/ |
D | Handler.java | 196 final Class<? extends Handler> klass = getClass(); in Handler() local 197 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Handler() 198 (klass.getModifiers() & Modifier.STATIC) == 0) { in Handler() 200 klass.getCanonicalName()); in Handler()
|
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 | Binder.java | 564 final Class<? extends Binder> klass = getClass(); in Binder() local 565 if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) && in Binder() 566 (klass.getModifiers() & Modifier.STATIC) == 0) { in Binder() 568 klass.getCanonicalName()); in Binder()
|
/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()
|