/external/libgsm/src/ |
gsm_create.c | 38 r = (gsm)malloc(sizeof(struct gsm_state)); 41 memset((char *)r, 0, sizeof(*r));
|
/external/quake/quake/src/WinQuake/ |
net_vcr.cpp | 52 Sys_FileRead(vcrFile, &next, sizeof(next)); 58 if (Sys_FileRead(vcrFile, &next, sizeof(next)) == 0) 79 memcpy(&driverDataAsLong, &sock->driverdata, sizeof(long)); 90 Sys_FileRead(vcrFile, &ret, sizeof(int)); 97 Sys_FileRead(vcrFile, &net_message.cursize, sizeof(int)); 113 Sys_FileRead(vcrFile, &ret, sizeof(int)); 128 Sys_FileRead(vcrFile, &ret, sizeof(int)); 166 memcpy(&sock->driverdata, &next.session, sizeof(long));
|
/external/skia/src/core/ |
SkBuffer.cpp | 92 return (char*)buffer + sizeof(int32_t); 100 memcpy((int32_t*)buffer, values, count * sizeof(int32_t)); 101 return (char*)buffer + count * sizeof(int32_t); 109 return (const char*)buffer + sizeof(int32_t); 118 memcpy(values, (const int32_t*)buffer, count * sizeof(int32_t)); 119 return (const char*)buffer + count * sizeof(int32_t); 126 return (char*)buffer + sizeof(void*); 134 return (const char*)buffer + sizeof(void*);
|
/external/speex/libspeex/ |
stack_alloc.h | 93 #define PUSH(stack, size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_WRITABLE(stack, ((size)*sizeof(type))),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type)))) 99 #define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type)))) 108 #define ALLOC(var, size, type) var = alloca(sizeof(type)*(size))
|
/external/stlport/test/unit/ |
bsearch_test.cpp | 41 const unsigned count = sizeof(labels) / sizeof(labels[0]);
|
/external/tcpdump/ |
print-dhcp6.c | 203 static char genstr[sizeof("opt_65535") + 1]; /* XXX thread unsafe */ 284 snprintf(genstr, sizeof(genstr), "opt_%d", type); 292 static char genstr[sizeof("code255") + 1]; /* XXX thread unsafe */ 313 snprintf(genstr, sizeof(genstr), "code%d", code); 337 if (ep < cp + sizeof(*dh6o)) 341 if (ep < cp + sizeof(*dh6o) + optlen) 400 if (optlen < sizeof(ia_addr) - 4) { 404 memcpy(&ia_addr, (u_char *)dh6o, sizeof(ia_addr)); 414 if (optlen > sizeof(ia_addr) - 4) { 417 sizeof(ia_addr) [all...] |
print-lane.c | 100 if (caplen < sizeof(struct lane_controlhdr)) { 116 if (caplen < sizeof(struct lecdatahdr_8023)) { 127 length -= sizeof(struct lecdatahdr_8023); 128 caplen -= sizeof(struct lecdatahdr_8023); 130 p += sizeof(struct lecdatahdr_8023); 143 lane_hdr_print((u_char *)ep, length + sizeof(*ep)); 155 lane_hdr_print((u_char *)ep, length + sizeof(*ep)); 166 return (sizeof(struct lecdatahdr_8023));
|
/external/wpa_supplicant/ |
main_none.c | 27 memset(¶ms, 0, sizeof(params)); 34 memset(&iface, 0, sizeof(iface));
|
/external/wpa_supplicant/tests/ |
test_ms_funcs.c | 67 if (memcmp(challenge, buf, sizeof(challenge)) != 0) { 73 if (memcmp(password_hash, buf, sizeof(password_hash)) != 0) { 82 if (memcmp(nt_response, buf, sizeof(nt_response)) != 0) { 88 if (memcmp(password_hash_hash, buf, sizeof(password_hash_hash)) != 0) { 97 if (memcmp(authenticator_response, buf, sizeof(authenticator_response)) 104 if (memcmp(master_key, buf, sizeof(master_key)) != 0) { 109 get_asymetric_start_key(master_key, buf, sizeof(send_start_key), 1, 1); 110 if (memcmp(send_start_key, buf, sizeof(send_start_key)) != 0) {
|
/external/wpa_supplicant/wpa_gui/ |
networkconfig.ui.h | 118 memset(reply, 0, sizeof(reply)); 119 reply_len = sizeof(reply) - 1; 204 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); 205 reply_len = sizeof(reply); 229 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", 231 reply_len = sizeof(reply); 288 snprintf(buf, sizeof(buf), "wep_key%d", id); 309 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); 310 reply_len = sizeof(reply) - 1; 320 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d proto", network_id) [all...] |
/external/wpa_supplicant/wpa_gui-qt4/ |
networkconfig.cpp | 149 memset(reply, 0, sizeof(reply)); 150 reply_len = sizeof(reply) - 1; 240 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); 241 reply_len = sizeof(reply); 267 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", 269 reply_len = sizeof(reply); 327 snprintf(buf, sizeof(buf), "wep_key%d", id); 348 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); 349 reply_len = sizeof(reply) - 1; 359 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d proto", network_id) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/ |
main_none.c | 27 memset(¶ms, 0, sizeof(params)); 34 memset(&iface, 0, sizeof(iface));
|
main_symbian.cpp | 29 memset(¶ms, 0, sizeof(params)); 36 memset(&iface, 0, sizeof(iface));
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
test_ms_funcs.c | 67 if (memcmp(challenge, buf, sizeof(challenge)) != 0) { 73 if (memcmp(password_hash, buf, sizeof(password_hash)) != 0) { 82 if (memcmp(nt_response, buf, sizeof(nt_response)) != 0) { 88 if (memcmp(password_hash_hash, buf, sizeof(password_hash_hash)) != 0) { 97 if (memcmp(authenticator_response, buf, sizeof(authenticator_response)) 104 if (memcmp(master_key, buf, sizeof(master_key)) != 0) { 109 get_asymetric_start_key(master_key, buf, sizeof(send_start_key), 1, 1); 110 if (memcmp(send_start_key, buf, sizeof(send_start_key)) != 0) {
|
/frameworks/base/cmds/servicemanager/ |
binder.c | 98 bs = malloc(sizeof(*bs)); 180 data.txn.data_size = sizeof(int); 191 binder_write(bs, &data, sizeof(data)); 221 if ((end - ptr) * sizeof(uint32_t) < sizeof(struct binder_txn)) { 232 bio_init(&reply, rdata, sizeof(rdata), 4); 237 ptr += sizeof(*txn) / sizeof(uint32_t); 242 if ((end - ptr) * sizeof(uint32_t) < sizeof(struct binder_txn)) [all...] |
/frameworks/base/core/jni/ |
android_net_wifi_Wifi.cpp | 70 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 81 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 93 if (doCommand(cmd, reply, sizeof(reply)) != 0) { 135 int nread = ::wifi_wait_for_event(buf, sizeof buf); 168 int cmdTooLong = snprintf(cmdstr, sizeof(cmdstr), "SET_NETWORK %d %s %s", 169 netId, nameStr, valueStr) >= (int)sizeof(cmdstr); 190 int cmdTooLong = snprintf(cmdstr, sizeof(cmdstr), "GET_NETWORK %d %s", 191 netId, nameStr) >= (int)sizeof(cmdstr); 202 int numWritten = snprintf(cmdstr, sizeof(cmdstr), "REMOVE_NETWORK %d", netId); 203 int cmdTooLong = numWritten >= (int)sizeof(cmdstr) [all...] |
/ndk/sources/android/stlport/test/unit/ |
bsearch_test.cpp | 41 const unsigned count = sizeof(labels) / sizeof(labels[0]);
|
/system/extras/tests/bionic/libc/common/ |
test_strftime_2039.c | 17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) { 30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) {
|
/external/skia/src/animator/ |
SkScriptRuntime.cpp | 78 memcpy(&index, opCode, sizeof(index)); 79 opCode += sizeof(index); 83 memcpy(&ref, opCode, sizeof(ref)); 84 opCode += sizeof(ref); 93 memcpy(&ref, opCode, sizeof(ref)); 94 opCode += sizeof(ref); 102 memcpy(&ref, opCode, sizeof(ref)); 103 opCode += sizeof(ref); 119 memcpy(&operand[registerLoad].fS32, opCode, sizeof(int32_t)); 120 opCode += sizeof(int32_t) [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
ndfdic.c | 179 if (((ret + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { 180 return (size / sizeof(NJ_CHAR)); 189 if (((ret + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { 190 return (size / sizeof(NJ_CHAR)); 210 size = sizeof(buf); 218 dic_ylen = DATA_YOMI_SIZE(data) / sizeof(NJ_CHAR); 221 if (size < ((dic_ylen + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 227 area += sizeof(NJ_CHAR); 235 if (size < ((dic_ylen + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { 335 yomilen = njd_f_get_stroke(word, stroke, sizeof(stroke)) [all...] |
/bionic/libc/kernel/arch-x86/asm/ |
siginfo.h | 16 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
|
/bionic/libc/kernel/common/linux/netfilter/ |
xt_sctp.h | 21 #define ELEMCOUNT(x) (sizeof(x)/sizeof(x[0])) 35 u_int32_t chunkmap[256 / sizeof (u_int32_t)]; 49 #define bytes(type) (sizeof(type) * 8)
|
/development/ndk/platforms/android-3/include/linux/netfilter/ |
xt_sctp.h | 21 #define ELEMCOUNT(x) (sizeof(x)/sizeof(x[0])) 35 u_int32_t chunkmap[256 / sizeof (u_int32_t)]; 49 #define bytes(type) (sizeof(type) * 8)
|
/development/ndk/platforms/android-5/arch-x86/include/asm/ |
siginfo.h | 16 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
|
/device/htc/passion-common/libsensors/ |
InputEventReader.cpp | 53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); 54 if (nread<0 || nread % sizeof(input_event)) { 59 numEventsRead = nread / sizeof(input_event); 65 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event));
|