Searched defs:ret (Results 1 - 25 of 367) sorted by relevance

1234567891011>>

/system/update_engine/client_library/
H A Dclient.cc37 auto ret = unique_ptr<UpdateEngineClient>{update_engine_client_impl}; local
40 ret.reset();
43 return ret;
/system/bt/osi/test/
H A Dproperties_test.cc35 int ret = osi_property_set("very.useful.set.test", value); local
36 ASSERT_EQ(0, ret);
51 int ret = osi_property_set("very.useful.set.test", value); local
52 ASSERT_EQ(0, ret);
/system/core/libion/tests/
H A Dion_test_fixture.cpp49 int ret; local
50 ret = ion_alloc(fd, 4096, 0, i, 0, &handle);
51 if (ret == 0 && handle != 0) {
59 ASSERT_EQ(-ENODEV, ret);
/system/core/logcat/
H A Dlogcat_main.cpp27 int ret = android_logcat_destroy(&ctx); local
28 if (!ret) ret = retval;
29 return ret;
H A Dlogcatd_main.cpp46 int ret = 0; local
49 ret = android_logcat_run_command(ctx, -1, -1, argv_hold.size() - 1,
67 if (!ret) ret = retval;
69 if (!ret) ret = retval;
70 return ret;
/system/extras/ext4_utils/
H A Dwipe.c39 int ret; local
48 ret = ioctl(fd, BLKSECDISCARD, &range);
49 if (ret < 0) {
52 ret = ioctl(fd, BLKDISCARD, &range);
53 if (ret < 0) {
/system/extras/simpleperf/runtest/
H A Dfunction_pthread.cpp22 int ret = pthread_create(&thread, nullptr, ChildThreadFunction, nullptr); local
23 if (ret != 0) {
24 fprintf(stderr, "pthread_create failed: %s\n", strerror(ret));
28 ret = pthread_join(thread, nullptr);
29 if (ret != 0) {
30 fprintf(stderr, "pthread_join failed: %s\n", strerror(ret));
/system/update_engine/update_manager/
H A Dboxed_value.cc106 string ret = ""; local
111 if (ret.size() > 0)
112 ret += ",";
113 ret += StringForConnectionType(type);
115 return ret;
/system/bt/bta/jv/
H A Dbta_jv_main.cc82 bool ret = false; local
88 ret = true;
91 return (ret);
/system/bt/btcore/test/
H A Dbdaddr_test.cc37 char ret[19]; local
48 bdaddr_to_string(&bdaddr, ret, sizeof(ret));
50 ASSERT_STREQ(test_addr, ret);
/system/core/init/
H A Dimport_parser.cpp35 bool ret = expand_props(args[1], &conf_file); local
36 if (!ret) {
H A Dwatchdogd.cpp48 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); local
49 if (ret) {
51 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
52 if (ret) {
/system/core/libcutils/
H A Dandroid_reboot.c25 int ret; local
43 ret = asprintf(&prop_value, "%s,%s", restart_cmd, arg);
45 ret = asprintf(&prop_value, "%s", restart_cmd);
47 if (ret < 0) return -1;
48 ret = property_set(ANDROID_RB_PROPERTY, prop_value);
50 return ret;
H A Dpartition_utils.c28 int i, ret; local
30 ret = 1;
33 ret = 0;
37 return ret;
43 int fd, ret; local
49 ret = read(fd, buf, sizeof(buf));
52 if (ret != sizeof(buf)) {
H A Dsocket_inaddr_any_server_unix.c55 int ret; local
57 ret = listen(s, LISTEN_BACKLOG);
59 if (ret < 0) {
/system/core/liblog/
H A Dlog_event_write.c30 int ret = -EINVAL; local
35 ret = -ENOMEM;
37 ret = android_log_write_string8_len(ctx, subTag, MAX_SUBTAG_LEN);
38 if (ret >= 0) {
39 ret = android_log_write_int32(ctx, uid);
40 if (ret >= 0) {
41 ret = android_log_write_string8_len(ctx, data, dataLen);
42 if (ret >= 0) {
43 ret = android_log_write_list(ctx, LOG_ID_EVENTS);
50 return ret;
[all...]
H A Dlogger_name.c45 int ret; local
57 for (ret = LOG_ID_MIN; ret < LOG_ID_MAX; ++ret) {
58 const char* l = LOG_NAME[ret];
60 return ret;
H A Duio.c33 int ret = read(fd, buf, len); local
34 if (ret < 0) {
38 if (ret == 0) goto Exit;
40 total += ret;
41 buf += ret;
42 len -= ret;
57 int ret = write(fd, buf, len); local
58 if (ret < 0) {
62 if (ret == 0) goto Exit;
64 total += ret;
[all...]
/system/core/libmemunreachable/
H A DLeakPipe.cpp45 int ret = sendmsg(sock, &hdr, 0); local
46 if (ret < 0) {
50 if (ret == 0) {
72 int ret = recvmsg(sock, &hdr, 0); local
73 if (ret < 0) {
77 if (ret == 0) {
/system/core/libsuspend/
H A Dautosuspend.c56 int ret; local
58 ret = autosuspend_init();
59 if (ret) {
60 return ret;
69 ret = autosuspend_ops->enable();
70 if (ret) {
71 return ret;
80 int ret; local
82 ret = autosuspend_init();
83 if (ret) {
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp33 int ret; local
40 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
41 if (ret < 0) {
/system/core/reboot/
H A Dreboot.c26 int ret; local
66 ret = property_set(ANDROID_RB_PROPERTY, property_val);
67 if(ret < 0) {
/system/extras/squashfs_utils/
H A Dsquashfs_utils.c62 int ret = 0; local
75 ret = -1;
81 ret = -1;
87 return ret;
/system/extras/tests/kernel.config/
H A Dsysvipc_test.cpp34 int ret = kcmp(pid, pid, KCMP_SYSVSEM, 0, 0); local
35 int error = (ret == -1) ? (errno == ENOSYS) ? EOPNOTSUPP : errno : 0;
/system/security/keystore/
H A Dkeystore_get.cpp35 auto ret = service->get(String16(key, keyLength), -1, &result); local
36 if (!ret.isOk()) return -1;

Completed in 507 milliseconds

1234567891011>>