Searched refs:ret (Results 1 - 25 of 408) sorted by relevance

1234567891011>>

/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/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 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...]
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 Dlog_time.cpp53 char* ret = const_cast<char*>(s); local
58 ret = ::strptime(ret, f, ptm);
71 ret = ::strptime(ret, f, ptm);
72 if (!ret) {
77 while (isdigit(*ret)) {
78 tv_sec = tv_sec * 10 + *ret - '0';
79 ++ret;
100 ret
[all...]
/system/core/logcat/
H A Dlogcat_main.cpp27 int ret = android_logcat_destroy(&ctx); local
28 if (!ret) ret = retval;
29 return ret;
/system/media/camera/src/
H A Dcamera_metadata_tag_info.c713 int ret = -1; local
720 ret = 0;
724 ret = 0;
728 ret = 0;
745 ret = 0;
749 ret = 0;
753 ret = 0;
768 ret = 0;
772 ret = 0;
776 ret
[all...]
/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 Dstrdup8to16.c45 char16_t *ret; local
57 ret = (char16_t *) malloc (sizeof(char16_t) * len);
59 return strcpy8to16 (ret, s, out_len);
114 uint32_t ret; local
130 ret = (**pUtf8Ptr) & leaderMask [seq_len - 1];
132 if (**pUtf8Ptr == '\0') return ret;
139 UTF8_SHIFT_AND_MASK(ret, **pUtf8Ptr);
142 return ret;
157 uint32_t ret; local
159 ret
194 uint32_t ret; local
[all...]
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 Drecord_stream.c47 RecordStream *ret; local
51 ret = (RecordStream *)calloc(1, sizeof(RecordStream));
53 ret->fd = fd;
54 ret->maxRecordLen = maxRecordLen;
55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE);
57 ret->unconsumed = ret->buffer;
58 ret->read_end = ret->buffer;
59 ret
130 void *ret; local
[all...]
/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/core/libion/
H A Dion.c45 int ret = close(fd); local
46 if (ret < 0)
48 return ret;
53 int ret = ioctl(fd, req, arg); local
54 if (ret < 0) {
56 ret, strerror(errno));
59 return ret;
65 int ret; local
76 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
77 if (ret <
94 int ret; local
124 int ret; local
146 int ret; local
158 int ret; local
[all...]
/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/netd/server/
H A DPhysicalNetwork.cpp32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) {
34 return ret;
36 if (int ret = delegate->addFallthrough(interface, permission)) {
37 return ret;
45 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(),
48 return ret;
50 if (int ret = delegate->removeFallthrough(interface, permission)) {
51 return ret;
80 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission,
83 mNetId, permission, strerror(-ret));
[all...]
/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/update_engine/
H A Dboot_control_recovery.cc58 int ret; local
63 ret = 0;
66 ret = -EINVAL;
68 if (ret != 0) {
143 int ret = module_->isSlotBootable(module_, slot); local
144 if (ret < 0) {
146 << " is bootable: " << strerror(-ret);
149 return ret == 1;
153 int ret = module_->setSlotAsUnbootable(module_, slot); local
154 if (ret <
163 int ret = module_->setActiveBootSlot(module_, slot); local
173 int ret = module_->markBootSuccessful(module_); local
[all...]
/system/gatekeeper/tests/
H A Dgatekeeper_device_test.cpp40 int ret; local
42 ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &mod);
44 ASSERT_EQ(0, ret);
46 ret = gatekeeper_open(mod, dev);
48 ASSERT_EQ(0, ret);
61 int ret; local
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len,
66 ASSERT_EQ(0, ret);
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length,
73 ASSERT_EQ(0, ret);
85 int ret; local
112 int ret; local
156 int ret; local
181 int ret; local
208 int ret; local
232 int ret; local
[all...]
/system/security/keystore/
H A Dkeystore_cli.cpp51 int32_t ret = service->cmd(); \
52 if (ret < 0) { \
53 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
56 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
69 int32_t ret = service->cmd(String16(argv[2])); \
70 if (ret < 0) { \
71 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
74 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
195 int32_t ret = service->list(name, uid, &matches); local
[all...]
/system/bt/osi/src/
H A Dfuture.cc39 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); local
41 ret->semaphore = semaphore_new(0);
42 if (!ret->semaphore) {
48 ret->ready_can_be_called = true;
49 return ret;
51 future_free(ret);
56 future_t* ret = static_cast<future_t*>(osi_calloc(sizeof(future_t))); local
58 ret->result = value;
59 ret->ready_can_be_called = false;
60 return ret;
[all...]
/system/core/libmemunreachable/
H A DScopedPipe.h27 int ret = pipe2(pipefd_, O_CLOEXEC); variable
28 if (ret < 0) {
64 int ret = Receiver(); local
66 return ret;
70 int ret = Sender(); local
72 return ret;
/system/core/include/log/
H A Dlog_event_list.h123 int ret; member in class:android_log_event_list
129 explicit android_log_event_list(int tag) : ret(0) {
132 explicit android_log_event_list(log_msg& log_msg) : ret(0) {
142 if (retval < 0) ret = retval;
152 return ret;
157 if (retval < 0) ret = retval;
158 return ret;
162 if (retval < 0) ret = retval;
163 return ret;
168 if (retval < 0) ret
[all...]
/system/core/liblog/include/log/
H A Dlog_event_list.h123 int ret; member in class:android_log_event_list
129 explicit android_log_event_list(int tag) : ret(0) {
132 explicit android_log_event_list(log_msg& log_msg) : ret(0) {
142 if (retval < 0) ret = retval;
152 return ret;
157 if (retval < 0) ret = retval;
158 return ret;
162 if (retval < 0) ret = retval;
163 return ret;
168 if (retval < 0) ret
[all...]
/system/bt/bta/mce/
H A Dbta_mce_main.cc65 bool ret = false;
71 ret = true;
74 return (ret);
/system/bt/bta/sdp/
H A Dbta_sdp.cc62 bool ret = false;
68 ret = true;
71 return (ret);

Completed in 3647 milliseconds

1234567891011>>