Searched refs:len (Results 1 - 25 of 264) sorted by relevance

1234567891011

/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
H A Dproc_stat.c61 int len=0; local
68 len += (len<count)?sprintf(page+len,"-------------- STA Health Configuration ---------------\n"):0;
69 len += (len<count)?sprintf(page+len,"Full recovery enabled = %d\n",pHealthMonitor->bFullRecoveryEnable):0;
70 len += (len<count)?sprintf(page+len,"Time
[all...]
/system/core/libcutils/
H A Duio.c28 int len = vecs->iov_len; local
30 while (len > 0) {
31 int ret = read( fd, buf, len );
42 len -= ret;
55 int len = (int)vecs->iov_len; local
57 while (len > 0) {
58 int ret = write( fd, buf, len );
69 len -= ret;
H A Dstrdup16to8.c29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len--) {
72 while (len--) {
102 * not just "len".
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument
146 size_t len; local
[all...]
H A Dproperties.c79 int len; local
81 len = __system_property_get(key, value);
82 if(len > 0) {
83 return len;
87 len = strlen(default_value);
88 memcpy(value, default_value, len + 1);
90 return len;
179 int len = -1; local
188 len = strlen(value);
190 return len;
302 int len; local
336 int len; local
[all...]
H A Dprocess_name.c42 int len = strlen(new_name); local
43 char* copy = (char*) malloc(len + 1);
48 if (len < 16) {
51 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
/system/core/adb/
H A Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dusb_linux_client.c82 int usb_write(usb_handle *h, const void *data, int len) argument
86 D("[ write %d ]\n", len);
87 n = adb_write(h->fd, data, len);
88 if(n != len) {
97 int usb_read(usb_handle *h, void *data, int len) argument
101 D("[ read %d ]\n", len);
102 n = adb_read(h->fd, data, len);
103 if(n != len) {
H A Dutils.c48 buff_addb (char* buff, char* buffEnd, const void* data, int len) argument
52 if (avail <= 0 || len <= 0) /* already overflowing */
55 if (len > avail)
56 len = avail;
58 memcpy(buff, data, len);
60 buff += len;
/system/core/nexus/
H A DSupplicantEventFactory.cpp48 SupplicantEvent *SupplicantEventFactory::createEvent(char *event, size_t len) { argument
75 len);
80 return new SupplicantAssociatedEvent(level, event + 16, len);
82 return new SupplicantAssociatingEvent(level, event + 25, len);
86 len);
90 len);
94 len);
97 return new SupplicantDisconnectedEvent(level, event, len);
100 return new SupplicantTerminatingEvent(event, len);
102 return new SupplicantPasswordChangedEvent(event, len);
[all...]
H A DSupplicant.cpp141 size_t len = 4096; local
143 if (!(reply = (char *) malloc(len))) {
148 if (sendCommand("STATUS", reply, &len)) {
153 SupplicantStatus *ss = SupplicantStatus::createStatus(reply, len);
165 size_t len = 4096; local
167 if (!(reply = (char *) malloc(len))) {
172 if (sendCommand("LIST_NETWORKS", reply, &len)) {
279 size_t len = sizeof(reply); local
282 reply, &len)) {
292 size_t len local
303 size_t len = sizeof(reply); local
325 size_t len = sizeof(reply); local
351 size_t len = sizeof(reply); local
364 size_t len = sizeof(reply); local
376 size_t len = sizeof(reply) -1; local
400 size_t len = sizeof(reply) -1; local
497 size_t len = sizeof(reply) -1; local
518 size_t len = max - 1; local
539 size_t len = sizeof(reply) -1; local
549 size_t len; local
568 size_t len; local
587 size_t len; local
599 size_t len; local
614 size_t len = sizeof(reply) -1; local
628 size_t len = sizeof(reply) -1; local
638 size_t len = sizeof(reply) -1; local
651 size_t len; local
663 size_t len; local
[all...]
H A DSupplicantAssociatedEvent.h28 SupplicantAssociatedEvent(int level, char *event, size_t len);
H A DSupplicantConnectionTimeoutEvent.h28 SupplicantConnectionTimeoutEvent(int level, char *event, size_t len);
H A DSupplicantDisconnectedEvent.h25 SupplicantDisconnectedEvent(int level, char *event, size_t len);
H A DSupplicantEventFactory.h28 SupplicantEvent *createEvent(char *event, size_t len);
H A DSupplicantScanResultsEvent.h25 SupplicantScanResultsEvent(int level, char *event, size_t len);
H A DSupplicantStateChangeEvent.h27 SupplicantStateChangeEvent(int level, char *event, size_t len);
/system/core/toolbox/
H A Dsendevent.c25 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */
26 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */
27 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */
29 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global keystate */
30 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* ge
[all...]
H A Dsmd.c9 int fd, len, r, port = 0; local
28 len = strlen(argv[0]);
29 r = write(fd, argv[0], len);
30 if(r != len) {
/system/core/include/mincrypt/
H A Drsa.h41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey
49 const int len,
H A Dsha.h51 void SHA_update(SHA_CTX* ctx, const void* data, int len);
55 const uint8_t* SHA(const void* data, int len, uint8_t* digest);
/system/core/fastboot/
H A Dusb.h62 int usb_read(usb_handle *h, void *_data, int len);
63 int usb_write(usb_handle *h, const void *_data, int len);
/system/core/include/cutils/
H A Dashmem.h21 int ashmem_pin_region(int fd, size_t offset, size_t len);
22 int ashmem_unpin_region(int fd, size_t offset, size_t len);
H A Dlogd.h41 int __android_log_bwrite(int32_t tag, const void *payload, size_t len);
43 size_t len);
/system/vold/
H A DLoop.h29 static int lookupActive(const char *id, char *buffer, size_t len);
30 static int create(const char *id, const char *loopFile, char *loopDeviceBuffer, size_t len);

Completed in 6731 milliseconds

1234567891011