/libcore/ojluni/src/main/java/java/nio/ |
ByteBufferAsLongBuffer.java | 32 protected final ByteBuffer bb; field in class:ByteBufferAsLongBuffer 36 ByteBufferAsLongBuffer(ByteBuffer bb, 40 this.bb = bb; 41 this.isReadOnly = bb.isReadOnly; 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 43 // HeapByteBuffer. We only have to initialize the field when bb is an instance of 49 if (bb instanceof DirectByteBuffer) { 50 this.address = bb.address + off; 63 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, off, order) [all...] |
ByteBufferAsShortBuffer.java | 32 protected final ByteBuffer bb; field in class:ByteBufferAsShortBuffer 36 ByteBufferAsShortBuffer(ByteBuffer bb, 40 this.bb = bb; 41 this.isReadOnly = bb.isReadOnly; 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 43 // HeapByteBuffer. We only have to initialize the field when bb is an instance of 49 if (bb instanceof DirectByteBuffer) { 50 this.address = bb.address + off; 63 return new ByteBufferAsShortBuffer(bb, -1, 0, rem, rem, off, order) [all...] |
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
Triangle.java | 47 ByteBuffer bb = ByteBuffer.allocateDirect( local 51 bb.order(ByteOrder.nativeOrder()); 54 vertexBuffer = bb.asFloatBuffer();
|
Square.java | 50 ByteBuffer bb = ByteBuffer.allocateDirect( local 53 bb.order(ByteOrder.nativeOrder()); 54 vertexBuffer = bb.asFloatBuffer();
|
/external/boringssl/src/crypto/bn/ |
cmp.c | 135 BN_ULONG aa, bb; local 138 bb = b[n - 1]; 139 if (aa != bb) { 140 return (aa > bb) ? 1 : -1; 145 bb = b[i]; 146 if (aa != bb) { 147 return (aa > bb) ? 1 : -1;
|
/external/clang/test/CXX/special/class.inhctor/ |
elsewhere.cpp | 38 B<bool> bb; variable
|
/external/guava/guava-tests/test/com/google/common/hash/ |
Murmur3Hash128Test.java | 62 ByteBuffer bb = ByteBuffer.wrap(new byte[longs.length * 8]).order(ByteOrder.LITTLE_ENDIAN); local 64 bb.putLong(x); 66 return HashCode.fromBytes(bb.array());
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
BufferUtilsTest.java | 43 ByteBuffer bb = BufferUtils.newByteBuffer(8);
local 51 bb.position(4);
52 BufferUtils.copy(new byte[] {1, 2, 3, 4}, 0, bb, 4);
53 checkInt(bb.get(), 1);
54 checkInt(bb.get(), 2);
55 checkInt(bb.get(), 3);
56 checkInt(bb.get(), 4);
133 bb.position(4);
134 BufferUtils.copy(bb, bb2, 4);
153 ByteBuffer bb = BufferUtils.newByteBuffer(1024 * 1024); local [all...] |
/external/llvm/examples/BrainF/ |
BrainFDriver.cpp | 74 BasicBlock *bb = BasicBlock::Create(mod->getContext(), "main.0", main_func); local 79 "", bb); 85 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
ChannelHelper.java | 33 ByteBuffer bb = ((FileChannel) channel).map(FileChannel.MapMode.READ_ONLY, ((FileChannel) channel).position(), size); local 35 return bb;
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
GlUtil.java | 52 ByteBuffer bb = ByteBuffer.allocateDirect(coords.length * 4); local 53 bb.order(ByteOrder.nativeOrder()); 54 FloatBuffer fb = bb.asFloatBuffer();
|
/frameworks/compile/mclinker/unittests/ |
SymbolCategoryTest.cpp | 56 LDSymbol* bb = LDSymbol::Create(*b); local 64 m_pTestee->add(*bb); 99 LDSymbol* bb = LDSymbol::Create(*b); local 105 b->setSymPtr(bb); 113 m_pTestee->add(*bb); 127 m_pTestee->changeToDynamic(*bb);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
AbstractCharsetTestCase.java | 140 ByteBuffer bb = this.testingCharset.encode(input); local 142 bb.rewind(); 143 while (bb.hasRemaining() && i < output.length) { 144 assertEquals(output[i], bb.get()); 147 assertFalse(bb.hasRemaining());
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
StreamDecoder.java | 225 private ByteBuffer bb; field in class:StreamDecoder 247 bb = ByteBuffer.allocateDirect(DEFAULT_BYTE_BUFFER_SIZE); 252 bb = ByteBuffer.allocate(DEFAULT_BYTE_BUFFER_SIZE); 254 bb.flip(); // So that bb is initially empty 262 this.bb = ByteBuffer.allocate(mbc < 0 267 bb.flip(); 271 bb.compact(); 277 int n = sun.nio.ch.ChannelInputStream.read(ch, bb); 282 int lim = bb.limit() [all...] |
/build/tools/rgb2565/ |
to565.c | 63 int bb = (b < 0) ? 0 : ((b > 255) ? 255 : b); local 65 out = to565(rb, gb, bb);
|
/external/clang/test/CodeGen/ |
le32-arguments.c | 10 int bb; member in struct:__anon7286
|
/external/compiler-rt/test/BlocksRuntime/ |
byrefsanity.c | 59 struct Block_basic2 *bb = (struct Block_basic2 *)arg; local 60 if ( ! (bb->Block_flags & BLOCK_HAS_COPY_DISPOSE)) { 64 struct byref_id *ref = bb->ref;
|
/external/deqp/framework/common/ |
tcuRGBA.cpp | 81 int bb = (bPacked >> RGBA::BLUE_SHIFT) & 0xFF; local 83 bDiff = (deUint8)deAbs32(ba - bb);
|
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
ConstrainedConjGrad.h | 146 Scalar bb = CINV.row(i).dot(z); local 147 if (bb > 0.0) 148 // FIXME: we should allow that: z += -bb * C.row(i); 150 z.coeffRef(it.index()) -= bb*it.value(); 175 Scalar bb = C.row(i).dot(p) - f[i]; local 176 if (bb > 0.0) 177 lambda = (std::min)(lambda, (f.coeff(i)-C.row(i).dot(x)) / bb);
|
/external/llvm/tools/llvm-c-test/ |
module.c | 87 LLVMBasicBlockRef bb; local 92 printf("FunctionDefinition: %s [#bb=%u]\n", LLVMGetValueName(f), 95 for (bb = LLVMGetFirstBasicBlock(f); bb; 96 bb = LLVMGetNextBasicBlock(bb)) { 98 for (isn = LLVMGetFirstInstruction(bb); isn; 109 printf(" #bb: %u\n\n", nbb);
|
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_target.cpp | 182 BasicBlock *bb = NULL; local 184 bb = func->bbArray[i]; 185 const uint32_t oldPos = bb->binPos; 186 const uint32_t oldEnd = bb->binPos + bb->binSize; 189 bb->binPos = adjPos; 190 bb->binSize = adjEnd - adjPos; 192 if (bb) 193 func->binSize = bb->binPos + bb->binSize [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
ZipCoder.java | 61 ByteBuffer bb = ByteBuffer.wrap(ba, 0, length); local 63 CoderResult cr = cd.decode(bb, cb, true); 91 ByteBuffer bb = ByteBuffer.wrap(ba); local 93 CoderResult cr = ce.encode(cb, bb, true); 96 cr = ce.flush(bb); 99 if (bb.position() == ba.length) // defensive copy? 102 return Arrays.copyOf(ba, bb.position());
|
/libcore/ojluni/src/main/java/sun/misc/ |
CharacterEncoder.java | 210 private byte [] getBytes(ByteBuffer bb) { 221 if (bb.hasArray()) { 222 byte [] tmp = bb.array(); 223 if ((tmp.length == bb.capacity()) && 224 (tmp.length == bb.remaining())) { 226 bb.position(bb.limit()); 236 buf = new byte[bb.remaining()]; 241 bb.get(buf);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
ChannelInputStream.java | 54 public static int read(ReadableByteChannel ch, ByteBuffer bb) 66 int n = ch.read(bb); 73 return ch.read(bb); 78 private ByteBuffer bb = null; field in class:ChannelInputStream 104 ByteBuffer bb = ((this.bs == bs) 105 ? this.bb 107 bb.limit(Math.min(off + len, bb.capacity())); 108 bb.position(off); 109 this.bb = bb [all...] |
/dalvik/dx/src/com/android/dx/cf/code/ |
BasicBlocker.java | 79 BasicBlocker bb = new BasicBlocker(method); local 81 bb.doit(); 82 return bb.getBlockList();
|