Searched refs:code (Results 1 - 25 of 25) sorted by last modified time

/system/security/keystore/
H A Dkeystore.cpp772 * Upgrade code. This will upgrade the key from the current version
849 * code [length_1 message_1 ... length_n message_n] end-of-file
850 * where code is one byte long and lengths are unsigned 16-bit integers in
853 static int recv_code(int sock, int8_t* code) { argument
854 return recv(sock, code, 1, 0) == 1;
885 static void send_code(int sock, int8_t code) { argument
886 send(sock, &code, 1, 0);
929 * it will be treated as a response code and transmitted to the client. Note
1106 * Unfortunately the Java code that calls this has naming conventions that it
1111 * "del_key" since the Java code does
1334 int8_t code; member in struct:action
1375 process(KeyStore* keyStore, int sock, uid_t uid, int8_t code) argument
[all...]
H A Dkeystore_cli.cpp69 uint8_t code; local
70 if (recv(sock, &code, 1, 0) != 1) {
74 printf("%d %s\n", code , responses[code] ? responses[code] : "Unknown");
H A Dkeystore_client.cpp45 ALOGE("code called us with an argLen out of bounds: %llu", (unsigned long long) argLen);
61 uint8_t code = 0; local
63 || TEMP_FAILURE_RETRY(recv(sock, &code, 1, 0)) != 1
64 || code != NO_ERROR) {
65 ALOGW("Error from keystore: %d", code);
71 reply->setCode(static_cast<ResponseCode>(code));
83 code = SYSTEM_ERROR;
91 code = SYSTEM_ERROR;
96 return static_cast<ResponseCode>(code);
121 void Keystore_Reply::setCode(ResponseCode code) { argument
125 ResponseCode Keystore_Reply::code() const { function in class:Keystore_Reply
[all...]
H A Dkeystore_client.h33 void setCode(ResponseCode code);
34 ResponseCode code() const;
H A Dkeystore_get.h43 uint8_t code = 'g'; local
54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 &&
56 recv(sock, &code, 1, 0) == 1 && code == /* NO_ERROR */ 1 &&
/system/vold/
H A Dvdc.c127 int code; local
132 code = atoi(tmp);
136 if (code >= 200 && code < 600)
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dhci.h1881 uint8_t code; member in struct:__anon193
H A Dl2cap.h84 uint8_t code; member in struct:__anon249
/system/core/adb/
H A Dusb_linux_client.c131 __le16 code; member in struct:__anon286::__anon287
/system/core/charger/
H A Dcharger.c758 static int set_key_callback(int code, int value, void *data) argument
764 if (code > KEY_MAX)
768 if (charger->keys[code].down == down)
774 charger->keys[code].timestamp = now;
775 charger->keys[code].down = down;
776 charger->keys[code].pending = true;
778 LOGV("[%lld] key[%d] down\n", now, code);
780 int64_t duration = now - charger->keys[code].timestamp;
784 code, secs, msecs);
795 set_key_callback(ev->code, e
808 process_key(struct charger *charger, int code, int64_t now) argument
[all...]
/system/core/debuggerd/
H A Ddebuggerd.c137 && (e.code == KEY_HOME || e.code == KEY_VOLUMEDOWN)
H A Dtombstone.c87 static const char *get_sigcode(int signo, int code) argument
91 switch (code) {
103 switch (code) {
110 switch (code) {
122 switch (code) {
157 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr %08x\n",
162 _LOG(log, false, "signal %d (%s), code %d (%s), fault addr --------\n",
/system/core/include/diskconfig/
H A Ddiskconfig.h74 uint8_t code[440]; /* bytes 0-439 */ member in struct:pc_boot_record
/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/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 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/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/bionic/libc/common/
H A Dtest_udp.c26 usage(int code) argument
33 exit(code);
/system/extras/tests/framebuffer/
H A Dminui.h38 unsigned code; member in struct:event
/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);
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);
/system/netd/
H A Dndc.c149 int code; local
154 code = atoi(tmp);
158 if (code >= 200 && code < 600)

Completed in 882 milliseconds