Lines Matching refs:ret

86     HealthServicePair ret;  in get()  local
90 ret.aidl_health = IHealth::fromBinder(binder); in get()
91 if (ret.aidl_health == nullptr) { in get()
95 if (ret.aidl_health == nullptr) { in get()
97 ret.hidl_health = get_health_service(); in get()
98 if (ret.hidl_health != nullptr) { in get()
99 ret.aidl_health = ndk::SharedRefBase::make<HealthShim>(ret.hidl_health); in get()
102 if (ret.aidl_health == nullptr) { in get()
106 return ret; in get()
147 auto ret = health->getChargeStatus(&status); in init_health_service() local
148 if (!ret.isOk()) { in init_health_service()
149 LOG(WARNING) << "health: cannot get battery status: " << ret.getDescription(); in init_health_service()
158 ret = health->registerCallback(aidl_health_callback); in init_health_service()
159 if (!ret.isOk()) { in init_health_service()
160 LOG(WARNING) << "health: failed to register callback: " << ret.getDescription(); in init_health_service()
165 auto ret = hidlHealth->linkToDeath(hidl_death_recp, 0 /* cookie */); in init_health_service() local
166 if (!ret.isOk()) { in init_health_service()
167 LOG(WARNING) << "Failed to link to death (HIDL): " << ret.description(); in init_health_service()
172 auto ret = AIBinder_linkToDeath(health->asBinder().get(), aidl_death_recp.get(), in init_health_service() local
174 if (ret != STATUS_OK) { in init_health_service()
176 << ScopedAStatus(AStatus_fromStatus(ret)).getDescription(); in init_health_service()
312 ssize_t ret; in flush_proto_data() local
317 ret = write(fd, data, std::min(benchmark_unit_size, size)); in flush_proto_data()
318 if (ret <= 0) { in flush_proto_data()
327 if (!first_write && ret == benchmark_unit_size) { in flush_proto_data()
331 size -= ret; in flush_proto_data()
332 data += ret; in flush_proto_data()