9a4a5c7df68495cce39ed2cbfe27615714c72535 |
|
12-Feb-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix ByteBuffer performance regression. Use libcore.io.Memory.memmove for mmaped ByteBuffer and non-bytearray-backed direct ByteBuffer#put(ByteBuffer) operations. Bug: 26989924 Change-Id: I660a7431061efbeeb6880c85f524c6fdffc760a0 (cherry picked from commit 27c702be4464b10bc99900769bc037fe4b0cfb7f)
|
27c702be4464b10bc99900769bc037fe4b0cfb7f |
|
12-Feb-2016 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Fix ByteBuffer performance regression. Use libcore.io.Memory.memmove for mmaped ByteBuffer and non-bytearray-backed direct ByteBuffer#put(ByteBuffer) operations. Bug: 26989924 Change-Id: I660a7431061efbeeb6880c85f524c6fdffc760a0
|
2c87ad3a45cecf9e344487cad1abfdebe79f2c7c |
|
21-Dec-2015 |
Narayan Kamath <narayan@google.com> |
Update file headers. Change-Id: I8149f41585768a1a4b72ab7bb4a1452376c05cc2
|
190a49036750b8bb6c979d958ed56aa3fb4f408a |
|
15-Dec-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
Formatted java.nio.* classes according to Android style guidelines and removed extra white spaces. Also, removed the templates from the package. Change-Id: Ibc96d75c48201987087c87f8ea0c66a495eeb94c
|
f28b09a791e4e5635e4fcdfd1adde27aec0a1ed6 |
|
11-Dec-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
Modify get|putArray methods in ByteBufferAs*Buffers This will improve the performance of ByteBufferAs*Buffers. The past implemention was making independent get and set calls for each element of the array which resulted in the poor performance. The new implementation uses Memory methods to handle the requests. Change-Id: I6ee75a168946634164f85017d5fec25c47577dc6
|
e20e1b55eab0f2163e812a28cf3b3a682df38a1d |
|
09-Dec-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
Modify getters/setters of ByteBufferAs*Buffers Added a different set of methods in DirectByteBuffer and HeapByteBuffer to handle request from the ByteBufferAs*Buffers. The getters and setters in ByteBufferAs*Buffer check limits instead of getters and setters of Heap/DirectByteBuffer, therefore it becomes easier to maintain local properties. The change avoids making an extra copy of Heap/DirectByteBuffer at the time of initialization. Bug: 26020981 Bug: 6085292 Change-Id: I8af6ab60ec00b3eb9564d2fafad14bef6e61c15f
|
d80eadc041c833c2808beb823f4edb90ff7410f7 |
|
18-Nov-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
FollowUp fixes for ByteBuffer There were some issues caused after changes #815174, #815055, #815164. Fixes include - using the correct constructor for deprecated classes, issues with readonly flag, offset for sliced bytebuffer, introducing isAccessible flag in place of isFreed flag, provided a method to set accessible flag. Change-Id: Ic6c7ae4e4f9a364b7dee4ed5ced382844f907ef5
|
46edfaf31e67122f4f67780a83a0bda4dfbbf6a7 |
|
13-Nov-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
<T>Buffer: Removed Direct<T>BufferR?[U|S] and merged it with ByteBufferAs<T>Buffer (T = [Char|Float|Double|Int|Short|Long]). The change doesn't allow the classes to maintain its own readonly flag. It will use the readonly flag of the buffer itself. This will allow consistancy between the parent buffer and the class. The classes are also made to use the buffer's getter and setter methods. Change-Id: I6736dc521fc4b92d40521bab1314d8698925a402
|
622cc37ae444f5cbe18417a0b2da3cc14c85d219 |
|
27-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsCharBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Id8c3faaa7cd8ea037e7eea91961e75b0ede70cff
|
34dd9b7638f85b80ae4082f36c76263904e1c3e4 |
|
27-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsFloatBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Id984efb795c47a67168086b4084696a93cd0b42e
|
cb270ef16cdf175422468ea7d69a8df47cfddff6 |
|
26-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsLongBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: I845298697107559e11dedf8fd17eff96406a1ac5
|
490d8356c6d541aa296c5bf19b872473cd78deb8 |
|
26-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsShortBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: If2d52e46a741f9f2e14128c5b1708138ec9f6ad8
|
3781c9c932ef4560c78949d855073566aa91e402 |
|
24-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsIntBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Ia0ca4e67caa5df6306c1be7afdaaffb07bc8d411
|
843f49b521b0bd939675771d312a02c0f1f0a9ff |
|
23-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsDoubleBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: I1539c550044e09a402fa058a535dddf03e916aee
|
2921f8147c913e03a9e69a59422ab6768067f477 |
|
27-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsCharBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Id8c3faaa7cd8ea037e7eea91961e75b0ede70cff
|
99603bdd8ef167505d2d2f41f4e4a0d381901e48 |
|
27-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsFloatBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Id984efb795c47a67168086b4084696a93cd0b42e
|
eb7811487ecdbb75364b1bf1e4dfbb779be6b0b3 |
|
26-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsLongBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: I845298697107559e11dedf8fd17eff96406a1ac5
|
07e1b7c1025f2d7b275f8ad9d53b3d400033db49 |
|
26-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsShortBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: If2d52e46a741f9f2e14128c5b1708138ec9f6ad8
|
89ba71b3b5d03c522fe58697bffbba87459a4a6a |
|
24-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsIntBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: Ia0ca4e67caa5df6306c1be7afdaaffb07bc8d411
|
c1b2d56a068a7bce28a429a1ffb085cbac28c221 |
|
23-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBufferAsDoubleBuffer: Merged variants Merged big endian, little endian and readonly variant of the class and corrected few following dependent changes. Change-Id: I1539c550044e09a402fa058a535dddf03e916aee
|
069d99326386490f9492afd824a364c5fb645e41 |
|
21-Oct-2015 |
Shubham Ajmera <shubhamajmera@google.com> |
ByteBuffer: Removed the readonly variant Added isReadOnly flag in HeapByteBuffer. New constructors are added for handling isReadOnly flag along with some write checks for put methods. Change-Id: I468a92fdd1140db48d7c4f1442cb9ff0e6298a49
|
dee594e6a72064fc994b305487a61f2e2bb250e1 |
|
05-May-2015 |
Piotr Jastrzebski <haaawk@google.com> |
Add machine-generated variants of Buffer classes. Change-Id: Ie042495e667378a0cfb507fd76ca7961e66fbc78
|