Home
last modified time | relevance | path

Searched refs:mByteBuffer (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
DExifModifier.java31 private final ByteBuffer mByteBuffer; field in ExifModifier
49 mByteBuffer = byteBuffer; in ExifModifier()
59 mByteBuffer.position(0); in ExifModifier()
72 is = new ByteBufferInputStream(mByteBuffer); in commit()
141 mByteBuffer.order(getByteOrder()); in modify()
152 mByteBuffer.position(offset + mOffsetBase); in writeTagValue()
158 mByteBuffer.put(buf); in writeTagValue()
160 mByteBuffer.put(buf); in writeTagValue()
161 mByteBuffer.put((byte) 0); in writeTagValue()
167 mByteBuffer.putInt((int) tag.getValueAt(i)); in writeTagValue()
[all …]
DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in CountedDataInputStream
92 mByteBuffer.order(order); in setByteOrder()
96 return mByteBuffer.order(); in getByteOrder()
101 mByteBuffer.rewind(); in readShort()
102 return mByteBuffer.getShort(); in readShort()
111 mByteBuffer.rewind(); in readInt()
112 return mByteBuffer.getInt(); in readInt()
121 mByteBuffer.rewind(); in readLong()
122 return mByteBuffer.getLong(); in readLong()
DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in OrderedDataOutputStream
33 mByteBuffer.order(order); in setByteOrder()
38 mByteBuffer.rewind(); in writeShort()
39 mByteBuffer.putShort(value); in writeShort()
40 out.write(mByteBuffer.array(), 0, 2); in writeShort()
45 mByteBuffer.rewind(); in writeInt()
46 mByteBuffer.putInt(value); in writeInt()
47 out.write(mByteBuffer.array()); in writeInt()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifModifier.java32 private final ByteBuffer mByteBuffer; field in ExifModifier
50 mByteBuffer = byteBuffer; in ExifModifier()
60 mByteBuffer.position(0); in ExifModifier()
73 is = new ByteBufferInputStream(mByteBuffer); in commit()
142 mByteBuffer.order(getByteOrder()); in modify()
153 mByteBuffer.position(offset + mOffsetBase); in writeTagValue()
159 mByteBuffer.put(buf); in writeTagValue()
161 mByteBuffer.put(buf); in writeTagValue()
162 mByteBuffer.put((byte) 0); in writeTagValue()
168 mByteBuffer.putInt((int) tag.getValueAt(i)); in writeTagValue()
[all …]
DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in CountedDataInputStream
92 mByteBuffer.order(order); in setByteOrder()
96 return mByteBuffer.order(); in getByteOrder()
101 mByteBuffer.rewind(); in readShort()
102 return mByteBuffer.getShort(); in readShort()
111 mByteBuffer.rewind(); in readInt()
112 return mByteBuffer.getInt(); in readInt()
121 mByteBuffer.rewind(); in readLong()
122 return mByteBuffer.getLong(); in readLong()
DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in OrderedDataOutputStream
33 mByteBuffer.order(order); in setByteOrder()
38 mByteBuffer.rewind(); in writeShort()
39 mByteBuffer.putShort(value); in writeShort()
40 out.write(mByteBuffer.array(), 0, 2); in writeShort()
45 mByteBuffer.rewind(); in writeInt()
46 mByteBuffer.putInt(value); in writeInt()
47 out.write(mByteBuffer.array()); in writeInt()
/packages/apps/Mms/src/com/android/mms/exif/
DExifModifier.java33 private final ByteBuffer mByteBuffer; field in ExifModifier
51 mByteBuffer = byteBuffer; in ExifModifier()
61 mByteBuffer.position(0); in ExifModifier()
74 is = new ByteBufferInputStream(mByteBuffer); in commit()
143 mByteBuffer.order(getByteOrder()); in modify()
154 mByteBuffer.position(offset + mOffsetBase); in writeTagValue()
160 mByteBuffer.put(buf); in writeTagValue()
162 mByteBuffer.put(buf); in writeTagValue()
163 mByteBuffer.put((byte) 0); in writeTagValue()
169 mByteBuffer.putInt((int) tag.getValueAt(i)); in writeTagValue()
[all …]
DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in CountedDataInputStream
92 mByteBuffer.order(order); in setByteOrder()
96 return mByteBuffer.order(); in getByteOrder()
101 mByteBuffer.rewind(); in readShort()
102 return mByteBuffer.getShort(); in readShort()
111 mByteBuffer.rewind(); in readInt()
112 return mByteBuffer.getInt(); in readInt()
121 mByteBuffer.rewind(); in readLong()
122 return mByteBuffer.getLong(); in readLong()
DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in OrderedDataOutputStream
33 mByteBuffer.order(order); in setByteOrder()
38 mByteBuffer.rewind(); in writeShort()
39 mByteBuffer.putShort(value); in writeShort()
40 out.write(mByteBuffer.array(), 0, 2); in writeShort()
45 mByteBuffer.rewind(); in writeInt()
46 mByteBuffer.putInt(value); in writeInt()
47 out.write(mByteBuffer.array()); in writeInt()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifModifier.java31 private final ByteBuffer mByteBuffer; field in ExifModifier
49 mByteBuffer = byteBuffer; in ExifModifier()
59 mByteBuffer.position(0); in ExifModifier()
72 is = new ByteBufferInputStream(mByteBuffer); in commit()
141 mByteBuffer.order(getByteOrder()); in modify()
152 mByteBuffer.position(offset + mOffsetBase); in writeTagValue()
158 mByteBuffer.put(buf); in writeTagValue()
160 mByteBuffer.put(buf); in writeTagValue()
161 mByteBuffer.put((byte) 0); in writeTagValue()
167 mByteBuffer.putInt((int) tag.getValueAt(i)); in writeTagValue()
[all …]
DCountedDataInputStream.java33 private final ByteBuffer mByteBuffer = ByteBuffer.wrap(mByteArray); field in CountedDataInputStream
92 mByteBuffer.order(order); in setByteOrder()
96 return mByteBuffer.order(); in getByteOrder()
101 mByteBuffer.rewind(); in readShort()
102 return mByteBuffer.getShort(); in readShort()
111 mByteBuffer.rewind(); in readInt()
112 return mByteBuffer.getInt(); in readInt()
121 mByteBuffer.rewind(); in readLong()
122 return mByteBuffer.getLong(); in readLong()
DOrderedDataOutputStream.java26 private final ByteBuffer mByteBuffer = ByteBuffer.allocate(4); field in OrderedDataOutputStream
33 mByteBuffer.order(order); in setByteOrder()
38 mByteBuffer.rewind(); in writeShort()
39 mByteBuffer.putShort(value); in writeShort()
40 out.write(mByteBuffer.array(), 0, 2); in writeShort()
45 mByteBuffer.rewind(); in writeInt()
46 mByteBuffer.putInt(value); in writeInt()
47 out.write(mByteBuffer.array()); in writeInt()