Home
last modified time | relevance | path

Searched refs:managedType (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableBoolean.java55 public Marshaler<Boolean> createMarshaler(TypeReference<Boolean> managedType, in createMarshaler() argument
57 return new MarshalerBoolean(managedType, nativeType); in createMarshaler()
61 public boolean isTypeMappingSupported(TypeReference<Boolean> managedType, int nativeType) { in isTypeMappingSupported() argument
62 return (Boolean.class.equals(managedType.getType()) in isTypeMappingSupported()
63 || boolean.class.equals(managedType.getType())) && nativeType == TYPE_BYTE; in isTypeMappingSupported()
DMarshalQueryableNativeByteToInteger.java58 public Marshaler<Integer> createMarshaler(TypeReference<Integer> managedType, in createMarshaler() argument
60 return new MarshalerNativeByteToInteger(managedType, nativeType); in createMarshaler()
64 public boolean isTypeMappingSupported(TypeReference<Integer> managedType, int nativeType) { in isTypeMappingSupported() argument
65 return (Integer.class.equals(managedType.getType()) in isTypeMappingSupported()
66 || int.class.equals(managedType.getType())) && nativeType == TYPE_BYTE; in isTypeMappingSupported()
DMarshalQueryableSize.java60 public Marshaler<Size> createMarshaler(TypeReference<Size> managedType, int nativeType) { in createMarshaler() argument
61 return new MarshalerSize(managedType, nativeType); in createMarshaler()
65 public boolean isTypeMappingSupported(TypeReference<Size> managedType, int nativeType) { in isTypeMappingSupported() argument
66 return nativeType == TYPE_INT32 && (Size.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableSizeF.java63 TypeReference<SizeF> managedType, int nativeType) { in createMarshaler() argument
64 return new MarshalerSizeF(managedType, nativeType); in createMarshaler()
68 public boolean isTypeMappingSupported(TypeReference<SizeF> managedType, int nativeType) { in isTypeMappingSupported() argument
69 return nativeType == TYPE_FLOAT && (SizeF.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableStreamConfigurationDuration.java79 TypeReference<StreamConfigurationDuration> managedType, int nativeType) { in createMarshaler() argument
80 return new MarshalerStreamConfigurationDuration(managedType, nativeType); in createMarshaler()
84 public boolean isTypeMappingSupported(TypeReference<StreamConfigurationDuration> managedType, in isTypeMappingSupported() argument
87 (StreamConfigurationDuration.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableBlackLevelPattern.java66 TypeReference<BlackLevelPattern> managedType, int nativeType) { in createMarshaler() argument
67 return new MarshalerBlackLevelPattern(managedType, nativeType); in createMarshaler()
72 TypeReference<BlackLevelPattern> managedType, int nativeType) { in isTypeMappingSupported() argument
74 (BlackLevelPattern.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableRggbChannelVector.java65 TypeReference<RggbChannelVector> managedType, int nativeType) { in createMarshaler() argument
66 return new MarshalerRggbChannelVector(managedType, nativeType); in createMarshaler()
71 TypeReference<RggbChannelVector> managedType, int nativeType) { in isTypeMappingSupported() argument
72 return nativeType == TYPE_FLOAT && (RggbChannelVector.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableColorSpaceTransform.java73 TypeReference<ColorSpaceTransform> managedType, int nativeType) { in createMarshaler() argument
74 return new MarshalerColorSpaceTransform(managedType, nativeType); in createMarshaler()
79 TypeReference<ColorSpaceTransform> managedType, int nativeType) { in isTypeMappingSupported() argument
81 ColorSpaceTransform.class.equals(managedType.getType()); in isTypeMappingSupported()
DMarshalQueryableStreamConfiguration.java71 TypeReference<StreamConfiguration> managedType, int nativeType) { in createMarshaler() argument
72 return new MarshalerStreamConfiguration(managedType, nativeType); in createMarshaler()
76 public boolean isTypeMappingSupported(TypeReference<StreamConfiguration> managedType, in isTypeMappingSupported() argument
78 return nativeType == TYPE_INT32 && managedType.getType().equals(StreamConfiguration.class); in isTypeMappingSupported()
DMarshalQueryableRecommendedStreamConfiguration.java74 TypeReference<RecommendedStreamConfiguration> managedType, int nativeType) { in createMarshaler() argument
75 return new MarshalerRecommendedStreamConfiguration(managedType, nativeType); in createMarshaler()
79 public boolean isTypeMappingSupported(TypeReference<RecommendedStreamConfiguration> managedType, in isTypeMappingSupported() argument
82 TYPE_INT32 && managedType.getType().equals(RecommendedStreamConfiguration.class); in isTypeMappingSupported()
DMarshalQueryableHighSpeedVideoConfiguration.java75 TypeReference<HighSpeedVideoConfiguration> managedType, int nativeType) { in createMarshaler() argument
76 return new MarshalerHighSpeedVideoConfiguration(managedType, nativeType); in createMarshaler()
80 public boolean isTypeMappingSupported(TypeReference<HighSpeedVideoConfiguration> managedType, in isTypeMappingSupported() argument
83 managedType.getType().equals(HighSpeedVideoConfiguration.class); in isTypeMappingSupported()
DMarshalQueryableRect.java68 public Marshaler<Rect> createMarshaler(TypeReference<Rect> managedType, int nativeType) { in createMarshaler() argument
69 return new MarshalerRect(managedType, nativeType); in createMarshaler()
73 public boolean isTypeMappingSupported(TypeReference<Rect> managedType, int nativeType) { in isTypeMappingSupported() argument
74 return nativeType == TYPE_INT32 && (Rect.class.equals(managedType.getType())); in isTypeMappingSupported()
DMarshalQueryableString.java104 TypeReference<String> managedType, int nativeType) { in createMarshaler() argument
105 return new MarshalerString(managedType, nativeType); in createMarshaler()
109 public boolean isTypeMappingSupported(TypeReference<String> managedType, int nativeType) { in isTypeMappingSupported() argument
110 return nativeType == TYPE_BYTE && String.class.equals(managedType.getType()); in isTypeMappingSupported()
DMarshalQueryableMeteringRectangle.java78 TypeReference<MeteringRectangle> managedType, int nativeType) { in createMarshaler() argument
79 return new MarshalerMeteringRectangle(managedType, nativeType); in createMarshaler()
84 TypeReference<MeteringRectangle> managedType, int nativeType) { in isTypeMappingSupported() argument
85 return nativeType == TYPE_INT32 && MeteringRectangle.class.equals(managedType.getType()); in isTypeMappingSupported()
DMarshalQueryableReprocessFormatsMap.java122 TypeReference<ReprocessFormatsMap> managedType, int nativeType) { in createMarshaler() argument
123 return new MarshalerReprocessFormatsMap(managedType, nativeType); in createMarshaler()
127 public boolean isTypeMappingSupported(TypeReference<ReprocessFormatsMap> managedType, in isTypeMappingSupported() argument
129 return nativeType == TYPE_INT32 && managedType.getType().equals(ReprocessFormatsMap.class); in isTypeMappingSupported()
DMarshalQueryableEnum.java102 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) { in createMarshaler() argument
103 return new MarshalerEnum(managedType, nativeType); in createMarshaler()
107 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType) { in isTypeMappingSupported() argument
109 if (managedType.getType() instanceof Class<?>) { in isTypeMappingSupported()
110 Class<?> typeClass = (Class<?>)managedType.getType(); in isTypeMappingSupported()
DMarshalQueryablePrimitive.java158 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) { in createMarshaler() argument
159 return new MarshalerPrimitive(managedType, nativeType); in createMarshaler()
163 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType) { in isTypeMappingSupported() argument
164 if (managedType.getType() instanceof Class<?>) { in isTypeMappingSupported()
165 Class<?> klass = (Class<?>)managedType.getType(); in isTypeMappingSupported()
DMarshalQueryableRange.java126 public Marshaler<Range<T>> createMarshaler(TypeReference<Range<T>> managedType, in createMarshaler() argument
128 return new MarshalerRange(managedType, nativeType); in createMarshaler()
132 public boolean isTypeMappingSupported(TypeReference<Range<T>> managedType, int nativeType) { in isTypeMappingSupported() argument
133 return (Range.class.equals(managedType.getRawType())); in isTypeMappingSupported()
DMarshalQueryableParcelable.java181 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) { in createMarshaler() argument
182 return new MarshalerParcelable(managedType, nativeType); in createMarshaler()
186 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType) { in isTypeMappingSupported() argument
187 return Parcelable.class.isAssignableFrom(managedType.getRawType()); in isTypeMappingSupported()
DMarshalQueryablePair.java148 public Marshaler<Pair<T1, T2>> createMarshaler(TypeReference<Pair<T1, T2>> managedType, in createMarshaler() argument
150 return new MarshalerPair(managedType, nativeType); in createMarshaler()
154 public boolean isTypeMappingSupported(TypeReference<Pair<T1, T2>> managedType, int nativeType) { in isTypeMappingSupported() argument
155 return (Pair.class.equals(managedType.getRawType())); in isTypeMappingSupported()
DMarshalQueryableArray.java167 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) { in createMarshaler() argument
168 return new MarshalerArray(managedType, nativeType); in createMarshaler()
172 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType) { in isTypeMappingSupported() argument
174 return managedType.getRawType().isArray(); in isTypeMappingSupported()
/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalQueryable.java50 TypeReference<T> managedType, int nativeType); in createMarshaler() argument
62 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType); in isTypeMappingSupported() argument