/frameworks/base/core/java/android/hardware/camera2/marshal/ |
MarshalQueryable.java | 21 * Query if a marshaler can marshal to/from a particular native and managed type; if it supports 22 * the combination, allow creating a marshaler instance to do the serialization. 35 * Create a marshaler between the selected managed and native type. 37 * <p>This marshaler instance is only good for that specific type mapping; and will refuse 49 public Marshaler<T> createMarshaler( 53 * Determine whether or not this query marshal is able to create a marshaler that will 56 * <p>If this returns {@code true}, then a marshaler can be instantiated by
|
MarshalRegistry.java | 34 * this is desirable if they support different native types (e.g. marshaler 1 supports 35 * {@code Integer <-> TYPE_INT32}, marshaler 2 supports {@code Integer <-> TYPE_BYTE}.</p> 44 * Lookup a marshaler between {@code T} and {@code nativeType}. 51 * @return marshaler a non-{@code null} marshaler that supports marshaling the type combo 53 * @throws UnsupportedOperationException If no marshaler matching the args could be found 56 public static <T> Marshaler<T> getMarshaler(TypeReference<T> typeToken, int nativeType) { 65 Marshaler<T> marshaler = local 66 (Marshaler<T>) sMarshalerMap.get(marshalToken) [all...] |
Marshaler.java | 34 public abstract class Marshaler<T> { 40 * Instantiate a marshaler between a single managed/native type combination. 55 protected Marshaler( 130 * <p>In particular, the array marshaler takes advantage of this (when size is not dynamic) 138 * The type reference for {@code T} for the managed type side of this marshaler. 144 /** The native type corresponding to this marshaler for the native side of this marshaler.*/
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryableArray.java | 18 import android.hardware.camera2.marshal.Marshaler; 31 * <p>To marshal any {@code T} to/from a native type, the marshaler for T to/from that native type 44 private class MarshalerArray extends Marshaler<T> { 46 private final Marshaler<?> mComponentMarshaler; 74 if (elementSize != Marshaler.NATIVE_SIZE_DYNAMIC) { 128 if (elementSize != Marshaler.NATIVE_SIZE_DYNAMIC) { 147 private <TElem> void marshalArrayElement(Marshaler<TElem> marshaler, 149 marshaler.marshal((TElem)Array.get(array, index), buffer); 158 private <TElem> int calculateElementMarshalSize(Marshaler<TElem> marshaler [all...] |
MarshalQueryableBlackLevelPattern.java | 19 import android.hardware.camera2.marshal.Marshaler; 34 private class MarshalerBlackLevelPattern extends Marshaler<BlackLevelPattern> { 65 public Marshaler<BlackLevelPattern> createMarshaler(
|
MarshalQueryableBoolean.java | 21 import android.hardware.camera2.marshal.Marshaler; 32 private class MarshalerBoolean extends Marshaler<Boolean> { 55 public Marshaler<Boolean> createMarshaler(TypeReference<Boolean> managedType,
|
MarshalQueryableColorSpaceTransform.java | 18 import android.hardware.camera2.marshal.Marshaler; 38 private class MarshalerColorSpaceTransform extends Marshaler<ColorSpaceTransform> { 72 public Marshaler<ColorSpaceTransform> createMarshaler(
|
MarshalQueryableNativeByteToInteger.java | 21 import android.hardware.camera2.marshal.Marshaler; 34 private class MarshalerNativeByteToInteger extends Marshaler<Integer> { 58 public Marshaler<Integer> createMarshaler(TypeReference<Integer> managedType,
|
MarshalQueryableRect.java | 19 import android.hardware.camera2.marshal.Marshaler; 34 private class MarshalerRect extends Marshaler<Rect> { 68 public Marshaler<Rect> createMarshaler(TypeReference<Rect> managedType, int nativeType) {
|
MarshalQueryableRggbChannelVector.java | 18 import android.hardware.camera2.marshal.Marshaler; 34 private class MarshalerRggbChannelVector extends Marshaler<RggbChannelVector> { 64 public Marshaler<RggbChannelVector> createMarshaler(
|
MarshalQueryableSize.java | 19 import android.hardware.camera2.marshal.Marshaler; 34 private class MarshalerSize extends Marshaler<Size> { 60 public Marshaler<Size> createMarshaler(TypeReference<Size> managedType, int nativeType) {
|
MarshalQueryableSizeF.java | 18 import android.hardware.camera2.marshal.Marshaler; 35 private class MarshalerSizeF extends Marshaler<SizeF> { 62 public Marshaler<SizeF> createMarshaler(
|
MarshalQueryableStreamConfiguration.java | 18 import android.hardware.camera2.marshal.Marshaler; 29 * Marshaler for {@code android.scaler.availableStreamConfigurations} custom class 38 private class MarshalerStreamConfiguration extends Marshaler<StreamConfiguration> { 70 public Marshaler<StreamConfiguration> createMarshaler(
|
MarshalQueryableStreamConfigurationDuration.java | 18 import android.hardware.camera2.marshal.Marshaler; 29 * Marshaler for custom class {@link StreamConfigurationDuration} for min-frame and stall durations. 46 extends Marshaler<StreamConfigurationDuration> { 78 public Marshaler<StreamConfigurationDuration> createMarshaler(
|
MarshalQueryablePair.java | 18 import android.hardware.camera2.marshal.Marshaler; 36 private class MarshalerPair extends Marshaler<Pair<T1, T2>> { 40 private final Marshaler<T1> mNestedTypeMarshalerFirst; 42 private final Marshaler<T2> mNestedTypeMarshalerSecond; 62 // Get type marshaler for T1 69 mNestedTypeMarshalerFirst = (Marshaler<T1>)MarshalRegistry.getMarshaler( 72 // Get type marshaler for T2 79 mNestedTypeMarshalerSecond = (Marshaler<T2>)MarshalRegistry.getMarshaler( 148 public Marshaler<Pair<T1, T2>> createMarshaler(TypeReference<Pair<T1, T2>> managedType,
|
MarshalQueryableHighSpeedVideoConfiguration.java | 18 import android.hardware.camera2.marshal.Marshaler; 29 * Marshaler for {@code android.control.availableHighSpeedVideoConfigurations} custom class 39 extends Marshaler<HighSpeedVideoConfiguration> { 74 public Marshaler<HighSpeedVideoConfiguration> createMarshaler(
|
MarshalQueryableMeteringRectangle.java | 18 import android.hardware.camera2.marshal.Marshaler; 35 private class MarshalerMeteringRectangle extends Marshaler<MeteringRectangle> { 77 public Marshaler<MeteringRectangle> createMarshaler(
|
MarshalQueryableReprocessFormatsMap.java | 18 import android.hardware.camera2.marshal.Marshaler; 31 * Marshaler for {@code android.scaler.availableInputOutputFormatsMap} custom class 37 private class MarshalerReprocessFormatsMap extends Marshaler<ReprocessFormatsMap> { 121 public Marshaler<ReprocessFormatsMap> createMarshaler(
|
MarshalQueryableString.java | 18 import android.hardware.camera2.marshal.Marshaler; 39 private class MarshalerString extends Marshaler<String> { 101 public Marshaler<String> createMarshaler(
|
MarshalQueryableRange.java | 18 import android.hardware.camera2.marshal.Marshaler; 37 private class MarshalerRange extends Marshaler<Range<T>> { 41 private final Marshaler<T> mNestedTypeMarshaler; 52 * and then get the marshaler for that managed type. 65 mNestedTypeMarshaler = (Marshaler<T>)MarshalRegistry.getMarshaler( 126 public Marshaler<Range<T>> createMarshaler(TypeReference<Range<T>> managedType,
|
MarshalQueryableEnum.java | 18 import android.hardware.camera2.marshal.Marshaler; 47 private class MarshalerEnum extends Marshaler<T> { 102 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) {
|
MarshalQueryableParcelable.java | 18 import android.hardware.camera2.marshal.Marshaler; 41 private class MarshalerParcelable extends Marshaler<T> { 181 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) {
|
MarshalQueryablePrimitive.java | 19 import android.hardware.camera2.marshal.Marshaler; 51 private class MarshalerPrimitive extends Marshaler<T> { 158 public Marshaler<T> createMarshaler(TypeReference<T> managedType, int nativeType) {
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
CameraMetadataNative.java | 25 import android.hardware.camera2.marshal.Marshaler; 460 Marshaler<T> marshaler = getMarshalerForKey(key); local 462 return marshaler.unmarshal(buffer); 944 Marshaler<T> marshaler = getMarshalerForKey(key); local [all...] |