Searched refs:code (Results 1 - 25 of 27) sorted by relevance

12

/system/extras/tests/sdcard/
H A Dsysutil.h8 * * Redistributions of source code must retain the above copyright
107 // @param code:
111 void syncAndDropCaches(int code = 3);
115 // @param code:
119 void fsyncAndDropCaches(int fd, int code = 3);
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/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/include/sysutils/
H A DSocketClient.h45 int sendMsg(int code, const char *msg, bool addErrno);
46 int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum);
48 // Provides a mechanism to send a response code to the client.
49 // Sends the code and a null character.
50 int sendCode(int code);
53 // Sends the code and a null character, followed by 4 bytes of
55 int sendBinaryMsg(int code, const void *data, int len);
H A DSocketListener.h42 void sendBroadcast(int code, const char *msg, bool addErrno);
/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/core/toolbox/
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...]
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]);
/system/netd/
H A Dndc.c162 int code; local
167 code = atoi(tmp);
171 if (code >= 200 && code < 600)
/system/core/libutils/
H A DProcessCallStack.cpp156 int code; local
157 while ((code = readdir_r(dp, &entry, &ep)) == 0 && ep != NULL) {
193 if (code != 0) { // returns positive error value on error
195 __FUNCTION__, PATH_SELF_TASK, -code, strerror(code));
/system/extras/tests/bionic/libc/common/
H A Dtest_udp.c26 usage(int code) argument
33 exit(code);
/system/media/camera/docs/
H A DCameraCaptureResultTest.mako41 * End generated code
H A DCameraMetadataEnums.mako88 * End generated code
H A DCameraMetadataKeys.mako94 * End generated code
/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/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/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/include/diskconfig/
H A Ddiskconfig.h74 uint8_t code[440]; /* bytes 0-439 */ member in struct:pc_boot_record
/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",
H A Ddebuggerd.c139 && (e.code == KEY_HOME || e.code == KEY_VOLUMEDOWN)
/system/core/libcutils/tests/memset_mips/
H A Dmemset_omips.S25 #error mips32 code being compiled for mips64!
/system/security/keystore/include/keystore/
H A DIKeystoreService.h129 virtual status_t onTransact(uint32_t code, const Parcel& data, Parcel* reply,

Completed in 285 milliseconds

12