Searched defs:buffer (Results 201 - 225 of 524) sorted by path

1234567891011>>

/frameworks/base/core/java/android/content/res/
H A DStringBlock.java170 SpannableString buffer = new SpannableString(str);
179 buffer.setSpan(new StyleSpan(Typeface.BOLD),
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC),
187 buffer.setSpan(new UnderlineSpan(),
191 buffer.setSpan(new TypefaceSpan("monospace"),
195 buffer.setSpan(new RelativeSizeSpan(1.25f),
199 buffer.setSpan(new RelativeSizeSpan(0.8f),
203 buffer.setSpan(new SubscriptSpan(),
207 buffer.setSpan(new SuperscriptSpan(),
211 buffer
359 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument
[all...]
/frameworks/base/core/java/android/database/
H A DAbstractCursor.java189 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
193 char[] data = buffer.data;
195 buffer.data = result.toCharArray();
199 buffer.sizeCopied = result.length();
201 buffer.sizeCopied = 0;
H A DAbstractWindowedCursor.java55 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
57 mWindow.copyStringToBuffer(mPos, columnIndex, buffer);
H A DCursor.java242 * Retrieves the requested column text and stores it in the buffer provided.
243 * If the buffer size is not sufficient, a new char buffer will be allocated
246 * if the target column is null, return buffer
247 * @param buffer the buffer to copy the text into.
249 void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer); argument
H A DCursorWindow.java33 * A buffer containing multiple cursor rows.
77 CharArrayBuffer buffer);
448 * The buffer is populated as follows:
450 * <li>If the buffer is too small for the value to be copied, then it is
452 * <li>If the field is of type {@link Cursor#FIELD_TYPE_NULL}, then the buffer
454 * <li>If the field is of type {@link Cursor#FIELD_TYPE_STRING}, then the buffer
456 * <li>If the field is of type {@link Cursor#FIELD_TYPE_INTEGER}, then the buffer
460 * <li>If the field is of type {@link Cursor#FIELD_TYPE_FLOAT}, then the buffer is
471 * @param buffer The {@link CharArrayBuffer} to hold the string. It is automatically
472 * resized if the requested string is larger than the buffer'
76 nativeCopyStringToBuffer(long windowPtr, int row, int column, CharArrayBuffer buffer) argument
474 copyStringToBuffer(int row, int column, CharArrayBuffer buffer) argument
[all...]
H A DCursorWrapper.java141 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
142 mCursor.copyStringToBuffer(columnIndex, buffer);
/frameworks/base/core/java/android/hardware/
H A DSerialPort.java80 * Reads data into the provided buffer.
81 * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
84 * @param buffer to read into
87 public int read(ByteBuffer buffer) throws IOException { argument
88 if (buffer.isDirect()) {
89 return native_read_direct(buffer, buffer.remaining());
90 } else if (buffer.hasArray()) {
91 return native_read_array(buffer.array(), buffer
105 write(ByteBuffer buffer, int length) argument
124 native_read_array(byte[] buffer, int length) argument
125 native_read_direct(ByteBuffer buffer, int length) argument
126 native_write_array(byte[] buffer, int length) argument
127 native_write_direct(ByteBuffer buffer, int length) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java636 private synchronized native void nativeSetThumbnail(ByteBuffer buffer, int width, int height); argument
/frameworks/base/core/java/android/hardware/camera2/marshal/
H A DMarshaler.java69 * Marshal the specified object instance (value) into a byte buffer.
74 * @param value the value of type T that we wish to write into the byte buffer
75 * @param buffer the byte buffer into which the marshaled object will be written
77 public abstract void marshal(T value, ByteBuffer buffer); argument
81 * into a byte buffer using the given {@code nativeType}.
83 * <p>If the size of this {@code T} instance when serialized into a buffer is always constant,
89 * @param value the value of type T that we wish to write into the byte buffer
90 * @return the size that would need to be written to the byte buffer
103 * Unmarshal a new object instance from the byte buffer int
111 unmarshal(ByteBuffer buffer) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java61 public void marshal(T value, ByteBuffer buffer) { argument
64 marshalArrayElement(mComponentMarshaler, buffer, value, i);
69 public T unmarshal(ByteBuffer buffer) { argument
75 int remaining = buffer.remaining();
93 Object elem = mComponentMarshaler.unmarshal(buffer);
101 while (buffer.hasRemaining()) {
102 Object elem = mComponentMarshaler.unmarshal(buffer);
110 if (buffer.remaining() != 0) {
111 Log.e(TAG, "Trailing bytes (" + buffer.remaining() + ") left over after unpacking "
148 ByteBuffer buffer, Objec
147 marshalArrayElement(Marshaler<TElem> marshaler, ByteBuffer buffer, Object array, int index) argument
[all...]
H A DMarshalQueryableBlackLevelPattern.java41 public void marshal(BlackLevelPattern value, ByteBuffer buffer) { argument
44 buffer.putInt(value.getOffsetForIndex(j, i));
50 public BlackLevelPattern unmarshal(ByteBuffer buffer) { argument
53 channelOffsets[i] = buffer.getInt();
H A DMarshalQueryableBoolean.java38 public void marshal(Boolean value, ByteBuffer buffer) { argument
40 buffer.put((byte)(unboxValue ? 1 : 0));
44 public Boolean unmarshal(ByteBuffer buffer) { argument
45 return buffer.get() != 0;
H A DMarshalQueryableColorSpaceTransform.java45 public void marshal(ColorSpaceTransform value, ByteBuffer buffer) { argument
50 buffer.putInt(transformAsArray[i]);
55 public ColorSpaceTransform unmarshal(ByteBuffer buffer) { argument
59 transformAsArray[i] = buffer.getInt();
H A DMarshalQueryableEnum.java59 public void marshal(T value, ByteBuffer buffer) { argument
63 buffer.putInt(enumValue);
69 buffer.put((byte)enumValue);
76 public T unmarshal(ByteBuffer buffer) { argument
81 enumValue = buffer.getInt();
85 enumValue = buffer.get() & UINT8_MASK;
H A DMarshalQueryableHighSpeedVideoConfiguration.java47 public void marshal(HighSpeedVideoConfiguration value, ByteBuffer buffer) { argument
48 buffer.putInt(value.getWidth());
49 buffer.putInt(value.getHeight());
50 buffer.putInt(value.getFpsMin());
51 buffer.putInt(value.getFpsMax());
52 buffer.putInt(value.getBatchSizeMax());
56 public HighSpeedVideoConfiguration unmarshal(ByteBuffer buffer) { argument
57 int width = buffer.getInt();
58 int height = buffer.getInt();
59 int fpsMin = buffer
[all...]
H A DMarshalQueryableMeteringRectangle.java42 public void marshal(MeteringRectangle value, ByteBuffer buffer) { argument
49 buffer.putInt(xMin);
50 buffer.putInt(yMin);
51 buffer.putInt(xMax);
52 buffer.putInt(yMax);
53 buffer.putInt(weight);
57 public MeteringRectangle unmarshal(ByteBuffer buffer) { argument
58 int xMin = buffer.getInt();
59 int yMin = buffer.getInt();
60 int xMax = buffer
[all...]
H A DMarshalQueryableNativeByteToInteger.java41 public void marshal(Integer value, ByteBuffer buffer) { argument
42 buffer.put((byte)(int)value); // truncate down to byte
46 public Integer unmarshal(ByteBuffer buffer) { argument
48 return buffer.get() & UINT8_MASK;
H A DMarshalQueryablePair.java91 public void marshal(Pair<T1, T2> value, ByteBuffer buffer) { argument
98 mNestedTypeMarshalerFirst.marshal(value.first, buffer);
99 mNestedTypeMarshalerSecond.marshal(value.second, buffer);
103 public Pair<T1, T2> unmarshal(ByteBuffer buffer) { argument
104 T1 first = mNestedTypeMarshalerFirst.unmarshal(buffer);
105 T2 second = mNestedTypeMarshalerSecond.unmarshal(buffer);
H A DMarshalQueryableParcelable.java72 public void marshal(T value, ByteBuffer buffer) { argument
98 buffer.put(parcelContents);
102 public T unmarshal(ByteBuffer buffer) { argument
104 Log.v(TAG, "unmarshal, buffer remaining " + buffer.remaining());
110 * Read out the entire byte buffer as an array, then copy it into the parcel.
112 * Once we unparcel the entire object, advance the byte buffer by only how many
122 buffer.mark();
126 int maxLength = buffer.remaining();
129 buffer
[all...]
H A DMarshalQueryablePrimitive.java64 public T unmarshal(ByteBuffer buffer) { argument
65 return mClass.cast(unmarshalObject(buffer));
74 public void marshal(T value, ByteBuffer buffer) { argument
78 marshalPrimitive(val, buffer);
82 marshalPrimitive(val, buffer);
86 marshalPrimitive(val, buffer);
89 marshalPrimitive((Rational) value, buffer);
93 marshalPrimitive(val, buffer);
97 marshalPrimitive(val, buffer);
104 private void marshalPrimitive(int value, ByteBuffer buffer) { argument
108 marshalPrimitive(float value, ByteBuffer buffer) argument
112 marshalPrimitive(double value, ByteBuffer buffer) argument
116 marshalPrimitive(long value, ByteBuffer buffer) argument
120 marshalPrimitive(Rational value, ByteBuffer buffer) argument
125 marshalPrimitive(byte value, ByteBuffer buffer) argument
129 unmarshalObject(ByteBuffer buffer) argument
[all...]
H A DMarshalQueryableRange.java76 public void marshal(Range<T> value, ByteBuffer buffer) { argument
77 mNestedTypeMarshaler.marshal(value.getLower(), buffer);
78 mNestedTypeMarshaler.marshal(value.getUpper(), buffer);
82 public Range<T> unmarshal(ByteBuffer buffer) { argument
83 T lower = mNestedTypeMarshaler.unmarshal(buffer);
84 T upper = mNestedTypeMarshaler.unmarshal(buffer);
H A DMarshalQueryableRect.java41 public void marshal(Rect value, ByteBuffer buffer) { argument
42 buffer.putInt(value.left);
43 buffer.putInt(value.top);
44 buffer.putInt(value.width());
45 buffer.putInt(value.height());
49 public Rect unmarshal(ByteBuffer buffer) { argument
50 int left = buffer.getInt();
51 int top = buffer.getInt();
52 int width = buffer.getInt();
53 int height = buffer
[all...]
H A DMarshalQueryableReprocessFormatsMap.java44 public void marshal(ReprocessFormatsMap value, ByteBuffer buffer) { argument
57 buffer.putInt(input);
62 buffer.putInt(outputs.length);
66 buffer.putInt(output);
72 public ReprocessFormatsMap unmarshal(ByteBuffer buffer) { argument
73 int len = buffer.remaining() / SIZEOF_INT32;
74 if (buffer.remaining() % SIZEOF_INT32 != 0) {
80 IntBuffer intBuffer = buffer.asIntBuffer();
H A DMarshalQueryableRggbChannelVector.java41 public void marshal(RggbChannelVector value, ByteBuffer buffer) { argument
43 buffer.putFloat(value.getComponent(i));
48 public RggbChannelVector unmarshal(ByteBuffer buffer) { argument
49 float red = buffer.getFloat();
50 float gEven = buffer.getFloat();
51 float gOdd = buffer.getFloat();
52 float blue = buffer.getFloat();
H A DMarshalQueryableSize.java40 public void marshal(Size value, ByteBuffer buffer) { argument
41 buffer.putInt(value.getWidth());
42 buffer.putInt(value.getHeight());
46 public Size unmarshal(ByteBuffer buffer) { argument
47 int width = buffer.getInt();
48 int height = buffer.getInt();

Completed in 557 milliseconds

1234567891011>>