Searched defs:code (Results 1 - 17 of 17) sorted by relevance

/system/extras/tests/framebuffer/
H A Dminui.h38 unsigned code; member in struct:event
/system/vold/
H A Dvdc.c127 int code; local
132 code = atoi(tmp);
136 if (code >= 200 && code < 600)
/system/extras/tests/bionic/libc/common/
H A Dtest_udp.c26 usage(int code) argument
33 exit(code);
/system/netd/
H A Dndc.c162 int code; local
167 code = atoi(tmp);
171 if (code >= 200 && code < 600)
/system/core/fastbootd/
H A Dprotocol.c8 * * Redistributions of source code must retain the above copyright
113 static void fastboot_ack(struct protocol_handle *phandle, const char *code, argument
124 snprintf(response, 64, "%s%s", code, reason);
H A Dusb_linux_client.c146 __le16 code; member in struct:__anon28::__anon29
/system/core/libsysutils/src/
H A DSocketClient.cpp53 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { argument
54 return sendMsg(code, msg, addErrno, mUseCmdNum);
57 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { argument
63 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno));
65 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno));
69 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg);
71 ret = asprintf(&buf, "%d %s", code, msg);
82 /** send 3-digit code, null, binary-length, binary data */
83 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { argument
85 /* 4 bytes for the code
104 sendCode(int code) argument
[all...]
H A DSocketListener.cpp246 void SocketListener::sendBroadcast(int code, const char *msg, bool addErrno) { argument
252 if ((*i)->sendMsg(code, msg, addErrno, false)) {
/system/core/toolbox/
H A Dsendevent.c16 __u16 code; member in struct:input_event
57 fprintf(stderr, "use: %s device type code value\n", argv[0]);
72 event.code = atoi(argv[3]);
H A Dgetevent.c193 static void print_event(int type, int code, int value, int print_flags) argument
204 code_label = get_label(syn_labels, code);
207 code_label = get_label(key_labels, code);
211 code_label = get_label(rel_labels, code);
214 code_label = get_label(abs_labels, code);
215 switch(code) {
221 code_label = get_label(msc_labels, code);
224 code_label = get_label(led_labels, code);
227 code_label = get_label(snd_labels, code);
230 code_label = get_label(sw_labels, code);
[all...]
/system/core/adb/
H A Dusb_linux_client.c131 __le16 code; member in struct:__anon19::__anon20
/system/core/include/diskconfig/
H A Ddiskconfig.h74 uint8_t code[440]; /* bytes 0-439 */ member in struct:pc_boot_record
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp83 virtual status_t onTransact(uint32_t code,
312 status_t AddIntsService::onTransact(uint32_t code, const Parcel &data, argument
330 switch (code) {
338 cerr << "server onTransact unknown code, code: " << code << endl;
/system/extras/tests/sdcard/
H A Dsysutil.cpp8 * * Redistributions of source code must retain the above copyright
390 void syncAndDropCaches(int code) argument
394 writeIntToFile(kDropCaches, code);
399 void fsyncAndDropCaches(int fd, int code) argument
403 writeIntToFile(kDropCaches, code);
/system/security/keystore/
H A DIKeystoreService.cpp589 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
591 switch(code) {
879 return BBinder::onTransact(code, data, reply, flags);
588 onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) argument
/system/core/charger/
H A Dcharger.c779 static int set_key_callback(int code, int value, void *data) argument
785 if (code > KEY_MAX)
789 if (charger->keys[code].down == down)
795 charger->keys[code].timestamp = now;
796 charger->keys[code].down = down;
797 charger->keys[code].pending = true;
799 LOGV("[%lld] key[%d] down\n", now, code);
801 int64_t duration = now - charger->keys[code].timestamp;
805 code, secs, msecs);
816 set_key_callback(ev->code, e
829 process_key(struct charger *charger, int code, int64_t now) argument
[all...]
/system/core/debuggerd/
H A Dtombstone.c91 static const char *get_sigcode(int signo, int code) argument
96 switch (code) {
108 switch (code) {
115 switch (code) {
127 switch (code) {
133 switch (code) {
140 switch (code) {
186 _LOG(log, SCOPE_AT_FAULT, "signal %d (%s), code %d (%s), fault addr %08x\n",
191 _LOG(log, SCOPE_AT_FAULT, "signal %d (%s), code %d (%s), fault addr --------\n",

Completed in 273 milliseconds