/development/tools/line_endings/ |
D | line_endings.c | 9 static void to_unix(char* buf); 10 static void unix_to_dos(char* buf2, const char* buf); 22 char buf[BUFSIZE*2+3]; member 64 node->buf[0] = 0; in main() 71 char buf[BUFSIZE+2]; in main() local 74 amt = read(fd, buf, amt2); in main() 79 buf[amt2] = '\0'; in main() 80 to_unix(buf); in main() 82 strcpy(node->buf, buf); in main() 85 unix_to_dos(buf2, buf); in main() [all …]
|
/development/tools/emulator/opengl/system/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 85 int QemuPipeStream::writeFully(const void *buf, size_t len) in writeFully() argument 94 ssize_t stat = ::write(m_sock, (const char *)(buf) + (len - res), res); in writeFully() 115 const unsigned char *QemuPipeStream::readFully(void *buf, size_t len) in readFully() argument 119 if (!buf) { in readFully() 125 ssize_t stat = ::read(m_sock, (char *)(buf) + len - res, len); in readFully() 134 buf, strerror(errno)); in readFully() 142 return (const unsigned char *)buf; in readFully() 145 const unsigned char *QemuPipeStream::read( void *buf, size_t *inout_len) in read() argument 149 if (!buf) { in read() 154 int n = recv(buf, *inout_len); in read() [all …]
|
D | QemuPipeStream.h | 36 virtual const unsigned char *readFully( void *buf, size_t len); 37 virtual const unsigned char *read( void *buf, size_t *inout_len); 40 int recv(void *buf, size_t len); 42 virtual int writeFully(const void *buf, size_t len);
|
/development/tools/emulator/opengl/shared/OpenglCodecCommon/ |
D | SocketStream.cpp | 113 const unsigned char *SocketStream::readFully(void *buf, size_t len) in readFully() argument 117 if (!buf) { in readFully() 122 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully() 131 return (const unsigned char *)buf; in readFully() 134 const unsigned char *SocketStream::read( void *buf, size_t *inout_len) in read() argument 137 if (!buf) { in read() 143 n = recv(buf, *inout_len); in read() 148 return (const unsigned char *)buf; in read() 154 int SocketStream::recv(void *buf, size_t len) in recv() argument 159 res = ::recv(m_sock, (char *)buf, len, 0); in recv()
|
D | SocketStream.h | 35 virtual const unsigned char *readFully(void *buf, size_t len); 36 virtual const unsigned char *read(void *buf, size_t *inout_len); 39 virtual int recv(void *buf, size_t len); 40 virtual int writeFully(const void *buf, size_t len);
|
D | Win32PipeStream.cpp | 197 const unsigned char *Win32PipeStream::readFully(void *buf, size_t len) in readFully() argument 204 if (!buf) { in readFully() 211 … if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { in readFully() 217 return (const unsigned char *)buf; in readFully() 220 const unsigned char *Win32PipeStream::read( void *buf, size_t *inout_len) in read() argument 228 if (!buf) { in read() 232 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) { in read() 238 return (const unsigned char *)buf; in read()
|
D | Win32PipeStream.h | 31 virtual const unsigned char *readFully(void *buf, size_t len); 32 virtual const unsigned char *read(void *buf, size_t *inout_len);
|
/development/ndk/platforms/android-5/samples/hello-gl2/jni/ |
D | gl_code.cpp | 68 char* buf = (char*) malloc(infoLen); in loadShader() local 69 if (buf) { in loadShader() 70 glGetShaderInfoLog(shader, infoLen, NULL, buf); in loadShader() 72 shaderType, buf); in loadShader() 73 free(buf); in loadShader() 107 char* buf = (char*) malloc(bufLength); in createProgram() local 108 if (buf) { in createProgram() 109 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram() 110 LOGE("Could not link program:\n%s\n", buf); in createProgram() 111 free(buf); in createProgram()
|
/development/tools/emulator/opengl/host/include/libOpenglRender/ |
D | IOStream.h | 35 virtual const unsigned char *readFully( void *buf, size_t len) = 0; 36 virtual const unsigned char *read( void *buf, size_t *inout_len) = 0; 37 virtual int writeFully(const void* buf, size_t len) = 0; 81 const unsigned char *readback(void *buf, size_t len) { in readback() argument 83 return readFully(buf, len); in readback()
|
/development/ndk/platforms/android-3/include/linux/ |
D | relay.h | 58 struct rchan_buf *buf[NR_CPUS]; member 64 int (*subbuf_start) (struct rchan_buf *buf, 69 void (*buf_mapped)(struct rchan_buf *buf, 72 void (*buf_unmapped)(struct rchan_buf *buf, 78 struct rchan_buf *buf,
|
D | device.h | 63 ssize_t (*show)(struct bus_type *, char * buf); 64 ssize_t (*store)(struct bus_type *, const char * buf, size_t count); 89 ssize_t (*show)(struct device_driver *, char * buf); 90 ssize_t (*store)(struct device_driver *, const char * buf, size_t count); 121 ssize_t (*show)(struct class *, char * buf); 122 ssize_t (*store)(struct class *, const char * buf, size_t count); 129 ssize_t (*show)(struct class_device *, char * buf); 130 ssize_t (*store)(struct class_device *, const char * buf, size_t count); 165 char *buf); 167 const char *buf, size_t count);
|
D | nodemask.h | 53 #define nodemask_scnprintf(buf, len, src) __nodemask_scnprintf((buf), (len), &(src), MAX_NUMNODES) argument 55 #define nodelist_scnprintf(buf, len, src) __nodelist_scnprintf((buf), (len), &(src), MAX_NUMNODES) argument 56 #define nodelist_parse(buf, dst) __nodelist_parse((buf), &(dst), MAX_NUMNODES) argument
|
D | cpumask.h | 52 #define cpumask_scnprintf(buf, len, src) __cpumask_scnprintf((buf), (len), &(src), NR_CPUS) argument 54 #define cpulist_scnprintf(buf, len, src) __cpulist_scnprintf((buf), (len), &(src), NR_CPUS) argument 55 #define cpulist_parse(buf, dst) __cpulist_parse((buf), &(dst), NR_CPUS) argument
|
D | bio.h | 166 #define bvec_kunmap_irq(buf, flags) do { *(flags) = 0; } while (0) argument 168 #define __bio_kunmap_irq(buf, flags) bvec_kunmap_irq(buf, flags) argument 170 #define bio_kunmap_irq(buf,flags) __bio_kunmap_irq(buf, flags) argument
|
D | random.h | 32 __u32 buf[0]; member
|
D | circ_buf.h | 16 char *buf; member
|
/development/ndk/platforms/android-3/include/linux/mtd/ |
D | mtd.h | 104 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 105 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); 112 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); 113 …(*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 114 int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); 115 …(*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 116 …*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
|
D | nand.h | 158 uint8_t *buf); 161 const uint8_t *buf); 185 void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len); 186 void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len); 187 int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
|
/development/host/windows/usb/adb_winapi_test/ |
D | adb_winapi_test.cpp | 106 char buf[4096]; in TestEnumInterfaces() 108 unsigned long buf_size = sizeof(buf); in TestEnumInterfaces() 123 buf_size = sizeof(buf);; in TestEnumInterfaces() 144 char buf[4096]; in TestInterfaces() 146 unsigned long buf_size = sizeof(buf); in TestInterfaces() 151 buf_size = sizeof(buf); in TestInterfaces() 402 char* buf = reinterpret_cast<char*>(malloc(msg_rcv.data_length)); in DeviceHandShake() 403 read_res = AdbReadEndpointSync(adb_read, buf, msg_rcv.data_length, &read_bytes, 512); in DeviceHandShake() 406 free(buf); in DeviceHandShake() 415 printf("%02X ", buf[n]); in DeviceHandShake() [all …]
|
/development/tools/jdwpspy/ |
D | Net.cpp | 471 const unsigned char* buf = packetBuf; in dumpPacket() local 479 length = get4BE(buf+0); in dumpPacket() 480 id = get4BE(buf+4); in dumpPacket() 481 flags = get1(buf+8); in dumpPacket() 484 error = static_cast<JdwpError>(get2BE(buf+9)); in dumpPacket() 487 cmdSet = get1(buf+9); in dumpPacket() 488 cmd = get1(buf+10); in dumpPacket() 491 buf += kJDWPHeaderLen; in dumpPacket() 492 dataLen = length - (buf - packetBuf); in dumpPacket() 515 printHexDump2(buf, dataLen, prefix); in dumpPacket() [all …]
|
/development/tools/axl/ |
D | udpServer.py | 7 buf = open("random.dat").read() 24 svrsocket.sendto("%3.3s%s" % (count, buf), address)
|
/development/ndk/platforms/android-8/include/ |
D | time.h | 67 extern char* asctime_r(const struct tm* a, char* buf); 79 extern char* strptime(const char *buf, const char *fmt, struct tm *tm); 83 extern char *ctime_r(const time_t *timep, char *buf);
|
/development/ndk/platforms/android-3/include/ |
D | time.h | 67 extern char* asctime_r(const struct tm* a, char* buf); 79 extern char* strptime(const char *buf, const char *fmt, struct tm *tm); 83 extern char *ctime_r(const time_t *timep, char *buf);
|
D | jni.h | 513 jclass DefineClass(const char *name, jobject loader, const jbyte* buf, in DefineClass() 515 { return functions->DefineClass(this, name, loader, buf, bufLen); } in DefineClass() 940 jboolean* buf) in GetBooleanArrayRegion() 941 { functions->GetBooleanArrayRegion(this, array, start, len, buf); } in GetBooleanArrayRegion() 943 jbyte* buf) in GetByteArrayRegion() 944 { functions->GetByteArrayRegion(this, array, start, len, buf); } in GetByteArrayRegion() 946 jchar* buf) in GetCharArrayRegion() 947 { functions->GetCharArrayRegion(this, array, start, len, buf); } in GetCharArrayRegion() 949 jshort* buf) in GetShortArrayRegion() 950 { functions->GetShortArrayRegion(this, array, start, len, buf); } in GetShortArrayRegion() [all …]
|
/development/samples/BackupRestore/src/com/example/android/backuprestore/ |
D | MultiRecordExampleAgent.java | 148 byte[] buf = bufStream.toByteArray(); in writeBackupEntity() 149 data.writeEntityHeader(key, buf.length); in writeBackupEntity() 150 data.writeEntityData(buf, buf.length); in writeBackupEntity()
|