/system/core/libsuspend/ |
H A D | autosuspend.c | 56 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 D | log_event_write.c | 30 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 D | uio.c | 33 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 D | logger_name.c | 45 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 D | log_time.cpp | 53 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 D | logcat_main.cpp | 27 int ret = android_logcat_destroy(&ctx); local 28 if (!ret) ret = retval; 29 return ret;
|
/system/media/camera/src/ |
H A D | camera_metadata_tag_info.c | 713 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 D | android_reboot.c | 25 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 D | strdup8to16.c | 45 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 D | partition_utils.c | 28 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 D | record_stream.c | 47 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 D | function_pthread.cpp | 22 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 D | ion.c | 45 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 D | client.cc | 37 auto ret = unique_ptr<UpdateEngineClient>{update_engine_client_impl}; local 40 ret.reset(); 43 return ret;
|
/system/netd/server/ |
H A D | PhysicalNetwork.cpp | 32 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 D | wipe.c | 39 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 D | boot_control_recovery.cc | 58 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 D | gatekeeper_device_test.cpp | 40 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 D | keystore_cli.cpp | 51 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 D | future.cc | 39 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 D | ScopedPipe.h | 27 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 D | log_event_list.h | 123 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 D | log_event_list.h | 123 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 D | bta_mce_main.cc | 65 bool ret = false; 71 ret = true; 74 return (ret);
|
/system/bt/bta/sdp/ |
H A D | bta_sdp.cc | 62 bool ret = false; 68 ret = true; 71 return (ret);
|