/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
VerityTreeBuilderTest.java | 32 import java.nio.ByteBuffer; 72 DataSources.asDataSource(ByteBuffer.wrap(input)))); 80 return DataSources.asDataSource(ByteBuffer.wrap(data.getBytes(UTF_8))); 94 DataSources.asDataSource(ByteBuffer.allocate(4096)), // before Signing Block 96 DataSources.asDataSource(ByteBuffer.wrap(sampleEoCDFromDisk))); 104 ByteBuffer fileTailWithDifferentLengthOfZeros = ByteBuffer.allocate( 111 DataSources.asDataSource(ByteBuffer.allocate(4096)), // before Signing Block
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
InMemoryDataSinkTest.java | 20 import java.nio.ByteBuffer; 36 protected ByteBuffer getContents(ReadableDataSink dataSink) throws IOException {
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
Java8EngineWrapper.java | 21 import java.nio.ByteBuffer; 54 public SSLEngineResult wrap(ByteBuffer[] byteBuffers, ByteBuffer byteBuffer) 56 return delegate.wrap(byteBuffers, byteBuffer); 235 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException { 240 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException { 245 public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length [all...] |
OpenSSLBIOSource.java | 21 import java.nio.ByteBuffer; 29 static OpenSSLBIOSource wrap(ByteBuffer buffer) { 59 private final ByteBuffer source; 61 ByteBufferInputStream(ByteBuffer source) {
|
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/ |
CoreImpl.java | 27 import java.nio.ByteBuffer; 82 mByteBufferOffset = nativeGetNativeBufferOffset(ByteBuffer.allocateDirect(8), 8); 106 ByteBuffer buffer = allocateDirectBuffer(handles.size() * 16 + 4); 138 ByteBuffer buffer = allocateDirectBuffer(8); 154 ByteBuffer optionsBuffer = null; 174 ByteBuffer optionsBuffer = null; 197 ByteBuffer optionsBuffer = null; 266 * @see MessagePipeHandle#writeMessage(ByteBuffer, List, MessagePipeHandle.WriteFlags) 268 void writeMessage(MessagePipeHandleImpl pipeHandle, ByteBuffer bytes, 270 ByteBuffer handlesBuffer = null [all...] |
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
GlRectDrawerTest.java | 35 import java.nio.ByteBuffer; 56 private static void assertEquals(int width, int height, ByteBuffer actual, ByteBuffer expected) { 79 // Convert RGBA ByteBuffer to RGB ByteBuffer. 80 private static ByteBuffer stripAlphaChannel(ByteBuffer rgbaBuffer) { 84 final ByteBuffer rgbBuffer = ByteBuffer.allocateDirect(numberOfPixels * 3); 104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3) [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
IOUtil.java | 30 import java.nio.ByteBuffer; 46 static int write(FileDescriptor fd, ByteBuffer src, long position, 58 ByteBuffer bb = Util.getTemporaryDirectBuffer(rem); 76 private static int writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, 100 static long write(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) 106 static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, 120 ByteBuffer buf = bufs[i]; 130 ByteBuffer shadow = Util.getTemporaryDirectBuffer(rem); 154 ByteBuffer buf = vec.getBuffer(j); 162 ByteBuffer shadow = vec.getShadow(j) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUBinary.java | 19 import java.nio.ByteBuffer; 36 * Most methods do not modify the ByteBuffer in any way, 54 * Checks that the ByteBuffer contains a valid, usable ICU .dat package. 57 static boolean validate(ByteBuffer bytes) { 80 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { 96 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { 99 ByteBuffer data = bytes.duplicate(); 108 static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) { 123 private static int binarySearch(ByteBuffer bytes, CharSequence key) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
ICUBinary.java | 18 import java.nio.ByteBuffer; 32 * Most methods do not modify the ByteBuffer in any way, 50 * Checks that the ByteBuffer contains a valid, usable ICU .dat package. 53 static boolean validate(ByteBuffer bytes) { 76 private static boolean startsWithPackageName(ByteBuffer bytes, int start) { 92 static ByteBuffer getData(ByteBuffer bytes, CharSequence key) { 95 ByteBuffer data = bytes.duplicate(); 104 static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) { 119 private static int binarySearch(ByteBuffer bytes, CharSequence key) [all...] |
/art/test/656-annotation-lookup-generic-jni/src-art/ |
Main.java | 21 import java.nio.ByteBuffer; 39 ByteBuffer dexBuffer = ByteBuffer.wrap(dexFileContents); 63 static ClassLoader createUnquickenedDexClassLoader(ByteBuffer dexBuffer) {
|
/art/test/912-classes/src-art/art/ |
DexData.java | 19 import java.nio.ByteBuffer; 55 ByteBuffer byteBuffers[] = new ByteBuffer[stringData.length]; 57 byteBuffers[i] = ByteBuffer.wrap(Base64.getDecoder().decode(stringData[i]));
|
/external/brotli/java/org/brotli/dec/ |
DictionaryData.java | 9 import java.nio.ByteBuffer; 14 * When this class is loaded, it sets its data: {@link Dictionary#setData(ByteBuffer)}. [all...] |
TransformTest.java | 12 import java.nio.ByteBuffer; 40 output, 0, ByteBuffer.wrap(input), 0, input.length, 39); 50 output, 0, ByteBuffer.wrap(input), 0, input.length, 44); 65 output, offset, ByteBuffer.wrap(testWord), 0, testWord.length, i);
|
/external/flatbuffers/tests/MyGame/Example/ |
TestSimpleTableWithEnum.java | 12 public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb) { return getRootAsTestSimpleTableWithEnum(_bb, new TestSimpleTableWithEnum()); } 13 public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb, TestSimpleTableWithEnum obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } 14 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } 15 public TestSimpleTableWithEnum __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
TestSimpleTableWithEnum.php | 8 use \Google\FlatBuffers\ByteBuffer; 14 * @param ByteBuffer $bb 17 public static function getRootAsTestSimpleTableWithEnum(ByteBuffer $bb) 28 public static function TestSimpleTableWithEnumBufferHasIdentifier(ByteBuffer $buf) 40 * @param ByteBuffer $_bb 43 public function init($_i, ByteBuffer $_bb)
|
/external/flatbuffers/tests/MyGame/Example2/ |
Monster.php | 8 use \Google\FlatBuffers\ByteBuffer; 14 * @param ByteBuffer $bb 17 public static function getRootAsMonster(ByteBuffer $bb) 28 public static function MonsterBufferHasIdentifier(ByteBuffer $buf) 40 * @param ByteBuffer $_bb 43 public function init($_i, ByteBuffer $_bb)
|
/external/flatbuffers/tests/MyGame/ |
InParentNamespace.php | 8 use \Google\FlatBuffers\ByteBuffer; 14 * @param ByteBuffer $bb 17 public static function getRootAsInParentNamespace(ByteBuffer $bb) 28 public static function InParentNamespaceBufferHasIdentifier(ByteBuffer $buf) 40 * @param ByteBuffer $_bb 43 public function init($_i, ByteBuffer $_bb)
|
/external/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/ |
TableInNestedNS.java | 12 public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb) { return getRootAsTableInNestedNS(_bb, new TableInNestedNS()); } 13 public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } 14 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } 15 public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
/external/flatbuffers/tests/namespace_test/NamespaceA/ |
SecondTableInA.java | 12 public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb) { return getRootAsSecondTableInA(_bb, new SecondTableInA()); } 13 public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } 14 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } 15 public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
/external/flatbuffers/tests/union_vector/ |
Attacker.php | 6 use \Google\FlatBuffers\ByteBuffer; 12 * @param ByteBuffer $bb 15 public static function getRootAsAttacker(ByteBuffer $bb) 26 public static function AttackerBufferHasIdentifier(ByteBuffer $buf) 33 * @param ByteBuffer $_bb 36 public function init($_i, ByteBuffer $_bb)
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
BaseDescriptor.java | 22 import java.nio.ByteBuffer;
65 public final void parse(int tag, ByteBuffer bb) throws IOException {
79 ByteBuffer detailSource = bb.slice();
86 public abstract void parseDetail(ByteBuffer bb) throws IOException;
|
/external/tensorflow/tensorflow/contrib/gdr/ |
gdr_worker.h | 33 // encoding the tensor content into the grpc::ByteBuffer. 37 ::grpc::ByteBuffer* response,
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
ByteBufferReader.java | 22 import java.nio.ByteBuffer; 27 * Utility class for reading generic data (e.g. various length integer, string) from ByteBuffer. 46 public static long readInteger(ByteBuffer payload, ByteOrder byteOrder, int size) { 79 public static String readString(ByteBuffer payload, int length, Charset charset) { 94 public static String readStringWithByteLength(ByteBuffer payload, Charset charset) {
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/ |
CredentialTypeTest.java | 27 import java.nio.ByteBuffer; 39 * @return {@link ByteBuffer} 41 private ByteBuffer getTestBuffer() { 42 return ByteBuffer.wrap(new byte[] {(byte) TEST_TYPE}); 53 ByteBuffer.wrap(new byte[0]), CredentialType.EXPECTED_LENGTH_VALUE, false);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
CharsetEncoderTest.java | 19 import java.nio.ByteBuffer; 71 ByteBuffer bb = ByteBuffer.allocate(128); 85 ByteBuffer bb = ByteBuffer.allocate(128); 122 ByteBuffer bb = ByteBuffer.allocate(128); 146 ByteBuffer bb = ByteBuffer.allocate(128); 181 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) [all...] |