Home
last modified time | relevance | path

Searched refs:nativeType (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalRegistry.java58 public static <T> Marshaler<T> getMarshaler(TypeReference<T> typeToken, int nativeType) { in getMarshaler() argument
62 MarshalToken<T> marshalToken = new MarshalToken<T>(typeToken, nativeType); in getMarshaler()
83 if (castedPotential.isTypeMappingSupported(typeToken, nativeType)) { in getMarshaler()
84 marshaler = castedPotential.createMarshaler(typeToken, nativeType); in getMarshaler()
94 MarshalHelpers.toStringNativeType(nativeType)); in getMarshaler()
106 public MarshalToken(TypeReference<T> typeReference, int nativeType) { in MarshalToken() argument
108 this.nativeType = nativeType; in MarshalToken()
109 this.hash = typeReference.hashCode() ^ nativeType; in MarshalToken()
113 final int nativeType; field in MarshalRegistry.MarshalToken
121 nativeType == otherToken.nativeType; in equals()
DMarshalHelpers.java54 public static int getPrimitiveTypeSize(int nativeType) { in getPrimitiveTypeSize() argument
55 switch (nativeType) { in getPrimitiveTypeSize()
71 + nativeType); in getPrimitiveTypeSize()
178 public static String toStringNativeType(int nativeType) { in toStringNativeType() argument
179 switch (nativeType) { in toStringNativeType()
194 return "UNKNOWN(" + nativeType + ")"; in toStringNativeType()
207 public static int checkNativeType(int nativeType) { in checkNativeType() argument
208 switch (nativeType) { in checkNativeType()
215 return nativeType; in checkNativeType()
218 throw new UnsupportedOperationException("Unknown nativeType " + nativeType); in checkNativeType()
DMarshaler.java56 MarshalQueryable<T> query, TypeReference<T> typeReference, int nativeType) { in Marshaler() argument
58 mNativeType = checkNativeType(nativeType); in Marshaler()
60 if (!query.isTypeMappingSupported(typeReference, nativeType)) { in Marshaler()
64 + MarshalHelpers.toStringNativeType(nativeType)); in Marshaler()
DMarshalQueryable.java50 TypeReference<T> managedType, int nativeType); in createMarshaler() argument
62 public boolean isTypeMappingSupported(TypeReference<T> managedType, int nativeType); in isTypeMappingSupported() argument
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java56 protected MarshalerPrimitive(TypeReference<T> typeReference, int nativeType) { in MarshalerPrimitive() argument
57 super(MarshalQueryablePrimitive.this, typeReference, nativeType); in MarshalerPrimitive()
158 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
168 return nativeType == TYPE_BYTE; in isTypeMappingSupported()
170 return nativeType == TYPE_INT32; in isTypeMappingSupported()
172 return nativeType == TYPE_FLOAT; in isTypeMappingSupported()
174 return nativeType == TYPE_INT64; in isTypeMappingSupported()
176 return nativeType == TYPE_DOUBLE; in isTypeMappingSupported()
[all …]
DMarshalQueryableBoolean.java33 protected MarshalerBoolean(TypeReference<Boolean> typeReference, int nativeType) { in MarshalerBoolean() argument
34 super(MarshalQueryableBoolean.this, typeReference, nativeType); in MarshalerBoolean()
56 int nativeType) { in createMarshaler() argument
57 return new MarshalerBoolean(managedType, nativeType); in createMarshaler()
61 public boolean isTypeMappingSupported(TypeReference<Boolean> managedType, int nativeType) { in isTypeMappingSupported() argument
63 || boolean.class.equals(managedType.getType())) && nativeType == TYPE_BYTE; in isTypeMappingSupported()
DMarshalQueryableNativeByteToInteger.java36 int nativeType) { in MarshalerNativeByteToInteger() argument
37 super(MarshalQueryableNativeByteToInteger.this, typeReference, nativeType); in MarshalerNativeByteToInteger()
59 int nativeType) { in createMarshaler() argument
60 return new MarshalerNativeByteToInteger(managedType, nativeType); in createMarshaler()
64 public boolean isTypeMappingSupported(TypeReference<Integer> managedType, int nativeType) { in isTypeMappingSupported() argument
66 || int.class.equals(managedType.getType())) && nativeType == TYPE_BYTE; in isTypeMappingSupported()
DMarshalQueryableSize.java35 protected MarshalerSize(TypeReference<Size> typeReference, int nativeType) { in MarshalerSize() argument
36 super(MarshalQueryableSize.this, typeReference, nativeType); in MarshalerSize()
60 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.java37 protected MarshalerSizeF(TypeReference<SizeF> typeReference, int nativeType) { in MarshalerSizeF() argument
38 super(MarshalQueryableSizeF.this, typeReference, nativeType); in MarshalerSizeF()
63 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.java49 TypeReference<StreamConfigurationDuration> typeReference, int nativeType) { in MarshalerStreamConfigurationDuration() argument
50 super(MarshalQueryableStreamConfigurationDuration.this, typeReference, nativeType); in MarshalerStreamConfigurationDuration()
79 TypeReference<StreamConfigurationDuration> managedType, int nativeType) { in createMarshaler() argument
80 return new MarshalerStreamConfigurationDuration(managedType, nativeType); in createMarshaler()
85 int nativeType) { in isTypeMappingSupported() argument
86 return nativeType == TYPE_INT64 && in isTypeMappingSupported()
DMarshalQueryableColorSpaceTransform.java40 int nativeType) { in MarshalerColorSpaceTransform() argument
41 super(MarshalQueryableColorSpaceTransform.this, typeReference, nativeType); in MarshalerColorSpaceTransform()
73 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
80 return nativeType == TYPE_RATIONAL && in isTypeMappingSupported()
DMarshalQueryableStreamConfiguration.java40 int nativeType) { in MarshalerStreamConfiguration() argument
41 super(MarshalQueryableStreamConfiguration.this, typeReference, nativeType); in MarshalerStreamConfiguration()
71 TypeReference<StreamConfiguration> managedType, int nativeType) { in createMarshaler() argument
72 return new MarshalerStreamConfiguration(managedType, nativeType); in createMarshaler()
77 int nativeType) { in isTypeMappingSupported() argument
78 return nativeType == TYPE_INT32 && managedType.getType().equals(StreamConfiguration.class); in isTypeMappingSupported()
DMarshalQueryableRggbChannelVector.java36 int nativeType) { in MarshalerRggbChannelVector() argument
37 super(MarshalQueryableRggbChannelVector.this, typeReference, nativeType); in MarshalerRggbChannelVector()
65 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()
DMarshalQueryableBlackLevelPattern.java36 int nativeType) { in MarshalerBlackLevelPattern() argument
37 super(MarshalQueryableBlackLevelPattern.this, typeReference, nativeType); in MarshalerBlackLevelPattern()
66 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
73 return nativeType == TYPE_INT32 && in isTypeMappingSupported()
DMarshalQueryableHighSpeedVideoConfiguration.java42 int nativeType) { in MarshalerHighSpeedVideoConfiguration() argument
43 super(MarshalQueryableHighSpeedVideoConfiguration.this, typeReference, nativeType); in MarshalerHighSpeedVideoConfiguration()
75 TypeReference<HighSpeedVideoConfiguration> managedType, int nativeType) { in createMarshaler() argument
76 return new MarshalerHighSpeedVideoConfiguration(managedType, nativeType); in createMarshaler()
81 int nativeType) { in isTypeMappingSupported() argument
82 return nativeType == TYPE_INT32 && in isTypeMappingSupported()
DMarshalQueryableRect.java36 int nativeType) { in MarshalerRect() argument
37 super(MarshalQueryableRect.this, typeReference, nativeType); in MarshalerRect()
68 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()
DMarshalQueryableRecommendedStreamConfiguration.java41 TypeReference<RecommendedStreamConfiguration> typeReference, int nativeType) { in MarshalerRecommendedStreamConfiguration() argument
42 super(MarshalQueryableRecommendedStreamConfiguration.this, typeReference, nativeType); in MarshalerRecommendedStreamConfiguration()
74 TypeReference<RecommendedStreamConfiguration> managedType, int nativeType) { in createMarshaler() argument
75 return new MarshalerRecommendedStreamConfiguration(managedType, nativeType); in createMarshaler()
80 int nativeType) { in isTypeMappingSupported() argument
81 return nativeType == in isTypeMappingSupported()
DMarshalQueryableString.java43 protected MarshalerString(TypeReference<String> typeReference, int nativeType) { in MarshalerString() argument
44 super(MarshalQueryableString.this, typeReference, nativeType); in MarshalerString()
104 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.java37 int nativeType) { in MarshalerMeteringRectangle() argument
38 super(MarshalQueryableMeteringRectangle.this, typeReference, nativeType); in MarshalerMeteringRectangle()
78 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.java39 TypeReference<ReprocessFormatsMap> typeReference, int nativeType) { in MarshalerReprocessFormatsMap() argument
40 super(MarshalQueryableReprocessFormatsMap.this, typeReference, nativeType); in MarshalerReprocessFormatsMap()
122 TypeReference<ReprocessFormatsMap> managedType, int nativeType) { in createMarshaler() argument
123 return new MarshalerReprocessFormatsMap(managedType, nativeType); in createMarshaler()
128 int nativeType) { in isTypeMappingSupported() argument
129 return nativeType == TYPE_INT32 && managedType.getType().equals(ReprocessFormatsMap.class); in isTypeMappingSupported()
DMarshalQueryableEnum.java52 protected MarshalerEnum(TypeReference<T> typeReference, int nativeType) { in MarshalerEnum() argument
53 super(MarshalQueryableEnum.this, typeReference, nativeType); in MarshalerEnum()
102 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
108 if (nativeType == TYPE_INT32 || nativeType == TYPE_BYTE) { in isTypeMappingSupported()
DMarshalQueryableRange.java45 int nativeType) { in MarshalerRange() argument
46 super(MarshalQueryableRange.this, typeReference, nativeType); in MarshalerRange()
127 int nativeType) { in createMarshaler() argument
128 return new MarshalerRange(managedType, nativeType); in createMarshaler()
132 public boolean isTypeMappingSupported(TypeReference<Range<T>> managedType, int nativeType) { in isTypeMappingSupported() argument
DMarshalQueryableParcelable.java48 int nativeType) { in MarshalerParcelable() argument
49 super(MarshalQueryableParcelable.this, typeReference, nativeType); in MarshalerParcelable()
181 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
DMarshalQueryablePair.java46 int nativeType) { in MarshalerPair() argument
47 super(MarshalQueryablePair.this, typeReference, nativeType); in MarshalerPair()
149 int nativeType) { 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
DMarshalQueryableArray.java50 protected MarshalerArray(TypeReference<T> typeReference, int nativeType) { in MarshalerArray() argument
51 super(MarshalQueryableArray.this, typeReference, nativeType); in MarshalerArray()
167 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

12