/build/make/tools/ziptime/ |
ZipEntry.h | 53 static inline uint16_t getShortLE(const uint8_t* buf) { 54 return buf[0] | (buf[1] << 8); 56 static inline uint32_t getLongLE(const uint8_t* buf) { 57 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 59 static inline void putShortLE(uint8_t* buf, uint16_t val) { 60 buf[0] = (uint8_t) val [all...] |
/external/annotation-tools/asmx/src/org/objectweb/asm/util/ |
ASMifierMethodVisitor.java | 61 buf.setLength(0); 62 buf.append("{\n").append("av0 = mv.visitAnnotationDefault();\n"); 63 text.add(buf.toString()); 76 buf.setLength(0); 77 buf.append("{\n") 82 buf.append(", ").append(visible).append(");\n"); 83 text.add(buf.toString()); 97 buf.setLength(0); 98 buf.append("mv.visitInsn(").append(OPCODES[opcode]).append(");\n"); 99 text.add(buf.toString()) [all...] |
ASMifierClassVisitor.java | 237 buf.setLength(0); 238 buf.append("cw.visit("); 241 buf.append("V1_1"); 244 buf.append("V1_2"); 247 buf.append("V1_3"); 250 buf.append("V1_4"); 253 buf.append("V1_5"); 256 buf.append("V1_6"); 259 buf.append(version); 262 buf.append(", ") [all...] |
/system/nvram/messages/tests/ |
io_test.cpp | 80 TestInputStreamBuffer<10> buf; 81 EXPECT_FALSE(buf.Done()); 84 EXPECT_TRUE(buf.ReadByte(&byte)); 86 EXPECT_FALSE(buf.Done()); 88 CheckRead(&buf, 6, 1); 89 EXPECT_FALSE(buf.Done()); 91 EXPECT_TRUE(buf.Skip(3)); 92 EXPECT_TRUE(buf.Done()); 96 InputStreamBuffer buf(nullptr, nullptr); 97 EXPECT_TRUE(buf.Done()) [all...] |
/bionic/tests/ |
fortify_test.cpp | 313 char buf[10]; local 315 ASSERT_FORTIFY(strcpy(buf, orig)); 325 char buf[0]; local 327 ASSERT_FORTIFY(strcpy(buf, orig)); 337 char buf[0]; local 339 ASSERT_FORTIFY(strcpy(buf, orig)); 349 char buf[1]; local 351 ASSERT_FORTIFY(strcpy(buf, orig)); 360 char buf[10]; local 361 memcpy(buf, "0123456789", sizeof(buf)) 370 char buf[10]; local 380 char buf[10]; local 414 char buf[10]; local 426 char* buf = (char *) malloc(10); local 435 char buf[5]; local 440 char buf[10]; local 459 char buf[10]; local 479 char buf[10]; local 486 char buf[10]; local 495 char buf[10]; local 501 char buf[20]; local 516 char buf[10]; local 561 char buf[10]; local 574 char buf[10]; local 580 char buf[10] = {0}; local 593 char buf[1]; local 599 char buf[1]; local 605 char buf[1]; local 613 char buf[1]; local 621 char buf[1] = {0}; local 629 char buf[1] = {0}; local 637 char buf[1]; local 645 char buf[1] = {0}; local 653 char buf[1]; local 661 char buf[1] = {0}; local 669 char buf[1]; local 675 char buf[1]; local 684 char buf[10]; local 703 char buf[10]; local 722 char buf[10]; local 740 char buf[10]; local 758 char buf[10]; local 777 char buf[10]; local 797 char buf[10]; local 816 char buf[10]; local 913 char buf[10]; local 934 char buf[10]; local 943 char buf[10]; local 952 char buf[10]; local 974 char buf[BUFSIZ]; local 987 pollfd buf[1] = {{0, POLLIN, 0}}; local 994 pollfd buf[1] = {{0, POLLIN, 0}}; local [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarReport2.java | 47 StringBuilder buf = new StringBuilder(); local 48 stats(root, buf); 51 stats(g, buf); 53 return buf.toString(); 56 void stats(Grammar g, StringBuilder buf) { 67 buf.append(g.name+"."+enclosingRule.name+":" + 71 buf.append(decisionAST.getLine()); 72 buf.append(":"); 73 buf.append(decisionAST.getCharPositionInLine()); 74 buf.append(" decision "+decision+":") [all...] |
GrammarReport.java | 260 StringBuffer buf = new StringBuffer(); local 268 if (i>0) buf.append('\t'); 269 buf.append(s); 276 return buf.toString(); 280 StringBuffer buf = new StringBuffer(); local 281 buf.append("Backtracking report:"); 282 buf.append(newline); 283 buf.append("Number of decisions that backtrack: "); 284 buf.append(grammar.decisionsWhoseDFAsUsesSynPreds.size()); 285 buf.append(newline) 292 StringBuffer buf = new StringBuffer(); local 353 StringBuffer buf = new StringBuffer(); local [all...] |
/external/libmojo/mojo/public/cpp/bindings/tests/ |
buffer_unittest.cc | 18 char* buf = reinterpret_cast<char*>(p_buf); local 20 if (buf[i] != 0) 28 internal::FixedBufferForTesting buf(internal::Align(10) * 2); 29 ASSERT_EQ(buf.size(), 16u * 2); 31 void* a = buf.Allocate(10); 36 void* b = buf.Allocate(10); 49 internal::FixedBufferForTesting buf(8); 50 ASSERT_EQ(8u, buf.size()); 52 ptr = buf.Allocate(8); 54 buf_ptr = buf.Leak() [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_ondemand.c | 74 pb_ondemand_buffer(struct pb_buffer *buf) 76 assert(buf); 77 if (!buf) 79 assert(buf->vtbl == &pb_ondemand_buffer_vtbl); 80 return (struct pb_ondemand_buffer *)buf; 94 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 96 pb_reference(&buf->buffer, NULL); 98 align_free(buf->data); 100 FREE(buf); 108 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf) local 125 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 177 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 196 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 211 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local 241 struct pb_ondemand_buffer *buf; local [all...] |
pb_buffer.h | 122 void (*destroy)( struct pb_buffer *buf ); 128 void *(*map)( struct pb_buffer *buf, 131 void (*unmap)( struct pb_buffer *buf ); 133 enum pipe_error (*validate)( struct pb_buffer *buf, 137 void (*fence)( struct pb_buffer *buf, 151 void (*get_base_buffer)( struct pb_buffer *buf, 162 pb_map(struct pb_buffer *buf, 165 assert(buf); 166 if (!buf) 168 assert(pipe_is_referenced(&buf->reference)) [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/raw/ |
OdexHeaderItem.java | 55 * @param buf A byte array containing at least the first 8 bytes of an odex file 59 public static boolean verifyMagic(byte[] buf, int offset) { 60 if (buf.length - offset < 8) { 65 if (buf[offset + i] != MAGIC_VALUE[i]) { 70 if (buf[offset + i] < '0' || 71 buf[offset + i] > '9') { 75 if (buf[offset + 7] != MAGIC_VALUE[7]) { 85 * @param buf A byte array containing at least the first 7 bytes of an odex file 89 public static int getVersion(byte[] buf, int offset) { 90 if (!verifyMagic(buf, offset)) [all...] |
/external/syslinux/com32/lib/ |
bufprintf.c | 6 int vbufprintf(struct print_buf *buf, const char *format, va_list ap) 15 if (rv + buf->len >= buf->size) { 16 size_t newsize = rv + buf->len + BUFPAD; 19 newbuf = realloc(buf->buf, newsize); 25 buf->buf = newbuf; 26 buf->size = newsize; 29 rv = vsnprintf(buf->buf + buf->len, buf->size - buf->len, format, ap2) [all...] |
/system/bt/osi/src/ |
buffer.cc | 49 buffer_t* buffer_new_ref(const buffer_t* buf) { 50 CHECK(buf != NULL); 51 return buffer_new_slice(buf, buf->length); 54 buffer_t* buffer_new_slice(const buffer_t* buf, size_t slice_size) { 55 CHECK(buf != NULL); 57 CHECK(slice_size <= buf->length); 61 ret->root = buf->root; 65 ++buf->root->refcount; 83 void* buffer_ptr(const buffer_t* buf) { [all...] |
/external/icu/icu4c/source/tools/toolutil/ |
ucbuf.cpp | 163 ucbuf_fillucbuf( UCHARBUF* buf,UErrorCode* error){ 174 pTarget = buf->buffer; 176 if(buf->currentPos<buf->bufLimit){ 177 offset = (int32_t)(buf->bufLimit-buf->currentPos); 178 memmove(buf->buffer,buf->currentPos,offset* sizeof(UChar)); 184 if(buf->isBuffered){ 187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset) 469 UCHARBUF* buf =(UCHARBUF*) uprv_malloc(sizeof(UCHARBUF)); local [all...] |
/prebuilts/go/darwin-x86/src/go/types/ |
exprstring.go | 18 var buf bytes.Buffer 19 WriteExpr(&buf, x) 20 return buf.String() 23 // WriteExpr writes the (possibly shortened) string representation for x to buf. 26 func WriteExpr(buf *bytes.Buffer, x ast.Expr) { 34 buf.WriteString("(bad expr)") // nil, ast.BadExpr, ast.KeyValueExpr 37 buf.WriteString(x.Name) 40 buf.WriteString("...") 42 WriteExpr(buf, x.Elt) 46 buf.WriteString(x.Value [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
exprstring.go | 18 var buf bytes.Buffer 19 WriteExpr(&buf, x) 20 return buf.String() 23 // WriteExpr writes the (possibly shortened) string representation for x to buf. 26 func WriteExpr(buf *bytes.Buffer, x ast.Expr) { 34 buf.WriteString("(bad expr)") // nil, ast.BadExpr, ast.KeyValueExpr 37 buf.WriteString(x.Name) 40 buf.WriteString("...") 42 WriteExpr(buf, x.Elt) 46 buf.WriteString(x.Value [all...] |
/toolchain/binutils/binutils-2.27/opcodes/ |
z80-dis.c | 59 fetch_data (struct buffer *buf, disassemble_info * info, int n) 63 if (buf->n_fetch + n > 4) 66 r = info->read_memory_func (buf->base + buf->n_fetch, 67 (unsigned char*) buf->data + buf->n_fetch, 70 buf->n_fetch += n; 75 prt (struct buffer *buf, disassemble_info * info, char *txt) 78 buf->n_used = buf->n_fetch 611 struct buffer buf; local [all...] |
/external/libxcam/xcore/ |
smart_buffer_priv.cpp | 34 SmartBufferPriv (const SmartPtr<VideoBuffer> &buf); 56 SmartBufferPriv::SmartBufferPriv (const SmartPtr<VideoBuffer> &buf) 59 XCAM_ASSERT (buf.ptr ()); 60 this->_buf_ptr = buf; 62 if (!buf.ptr ()) { 68 const VideoBufferInfo& video_info = buf->get_video_info (); 72 this->base.timestamp = buf->get_timestamp (); 90 SmartBufferPriv *buf = (SmartBufferPriv*) data; local 91 XCAM_ASSERT (buf->_ref); 92 if (buf->_ref 99 SmartBufferPriv *buf = (SmartBufferPriv*) data; local 111 SmartBufferPriv *buf = (SmartBufferPriv*) data; local 119 SmartBufferPriv *buf = (SmartBufferPriv*) data; local 127 SmartBufferPriv *buf = (SmartBufferPriv*) data; local 136 SmartBufferPriv *buf = (SmartBufferPriv*) data; local [all...] |
/prebuilts/go/darwin-x86/src/internal/trace/ |
writer.go | 23 buf := []byte{typ | nargs<<6} 25 buf = append(buf, 0) 28 buf = appendVarint(buf, a) 31 buf[1] = byte(len(buf) - 2) 33 n, err := w.Write(buf) 34 if n != len(buf) || err != nil { 39 func appendVarint(buf []byte, v uint64) []byte [all...] |
/prebuilts/go/linux-x86/src/internal/trace/ |
writer.go | 23 buf := []byte{typ | nargs<<6} 25 buf = append(buf, 0) 28 buf = appendVarint(buf, a) 31 buf[1] = byte(len(buf) - 2) 33 n, err := w.Write(buf) 34 if n != len(buf) || err != nil { 39 func appendVarint(buf []byte, v uint64) []byte [all...] |
/external/annotation-tools/asmx/test/conform/org/objectweb/asm/commons/ |
GASMifierMethodVisitor.java | 86 buf.setLength(0); 87 buf.append("{\n").append("av0 = mg.visitAnnotationDefault();\n"); 88 text.add(buf.toString()); 100 buf.setLength(0); 101 buf.append("{\n") 105 buf.append(desc); 106 buf.append("\", ").append(visible).append(");\n"); 107 text.add(buf.toString()); 119 buf.setLength(0); 127 buf.append("mg.returnValue();\n") 977 StringBuffer buf = new StringBuffer(); local [all...] |
/external/toybox/toys/pending/ |
ipcs.c | 45 struct semid_ds *buf; member in union:semun 52 struct msqid_ds buf; local 55 if ((ret = msgctl(TT.id, IPC_STAT, &buf)) < 0) { 60 #define ipcperm buf.msg_perm 66 (long) buf.msg_cbytes, (long) buf.msg_qbytes, 67 (long) buf.msg_qnum, buf.msg_lspid, buf.msg_lrpid); 70 buf.msg_stime ? ctime(&buf.msg_stime) : "Not set" 78 struct semid_ds buf; local 120 struct shmid_ds buf; local 151 struct shmid_ds buf; local 252 struct semid_ds buf; local 340 struct msqid_ds buf; local [all...] |
/external/libese/libese/ |
ese_sg.c | 22 const struct EseSgBuffer *buf = bufs; local 27 while (buf < bufs + cnt) { 29 if (ESE_UINT32_MAX - len < buf->len) { 32 len += buf->len; 33 buf++; 41 const struct EseSgBuffer *buf = src; local 46 while (remaining && buf < src + src_cnt) { 47 if (start_at > buf->len) { 48 start_at -= buf->len; 49 buf++ 65 const struct EseSgBuffer *buf = dst; local [all...] |
/external/valgrind/none/tests/s390x/ |
srst.c | 44 char *buf; local 52 buf = srst3(&buffer[23], &buffer[23], '0', &cc); 53 dump_field(buf, 1); 56 buf = srst3(&buffer[23], &buffer[0], '0', &cc); 57 dump_field(buf, 1); 60 buf = srst3(&buffer[23], &buffer[0], 'a', &cc); 61 dump_field(buf, 1); 64 buf = srst3(&buffer[23], &buffer[0], 'm', &cc); 65 dump_field(buf, 1); 68 buf = srst3(&buffer[23], &buffer[0], 'n', &cc) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
DirectByteBufferTest.java | 28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH); 29 baseBuf = buf; 34 buf = null; 51 assertTrue(buf.isDirect()); 56 assertTrue(buf.hasArray()); 57 // assertFalse(buf.hasArray()); 61 assertFalse(buf.isReadOnly()); 68 ByteBuffer buf = ByteBuffer.allocateDirect(23); local 70 buf.order(ByteOrder.BIG_ENDIAN); 73 buf.position(i) [all...] |