/system/nfc/halimpl/bcm2079x/adaptation/ |
H A D | Mutex.cpp | 42 int res = pthread_mutex_init(&mMutex, NULL); local 43 if (res != 0) { 44 ALOGE("Mutex::Mutex: fail init; error=0x%X", res); 58 int res = pthread_mutex_destroy(&mMutex); local 59 if (res != 0) { 60 ALOGE("Mutex::~Mutex: fail destroy; error=0x%X", res); 74 int res = pthread_mutex_lock(&mMutex); local 75 if (res != 0) { 76 ALOGE("Mutex::lock: fail lock; error=0x%X", res); 90 int res local 106 int res = pthread_mutex_trylock(&mMutex); local [all...] |
H A D | CondVar.cpp | 44 int const res = pthread_cond_init(&mCondition, &attr); local 45 if (res) { 46 ALOGE("CondVar::CondVar: fail init; error=0x%X", res); 60 int const res = pthread_cond_destroy(&mCondition); local 61 if (res) { 62 ALOGE("CondVar::~CondVar: fail destroy; error=0x%X", res); 76 int const res = pthread_cond_wait(&mCondition, mutex.nativeHandle()); local 77 if (res) { 78 ALOGE("CondVar::wait: fail wait; error=0x%X", res); 126 int const res local [all...] |
/system/core/libcutils/ |
H A D | qtaguid.c | 59 int fd, res, savedErrno; local 68 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd))); 69 if (res < 0) { 74 if (res < 0) { 76 ALOGV("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno); 84 int res; local 90 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value))); 91 if (res < 0) { 100 int res; local 120 int res; local 135 int res; local 146 int cnt = 0, res = 0; local [all...] |
H A D | fs.c | 191 int res = 0; local 198 res = -EINVAL; 204 res = -errno; 216 res = -EINVAL; 228 res = -errno; 234 res = -errno; 240 res = -ELOOP; 245 res = -ENOTDIR; 254 res = -errno; 271 return res; [all...] |
/system/vold/fs/ |
H A D | F2fs.cpp | 58 int res = mount(c_source, c_target, "f2fs", flags, NULL); local 59 if (res != 0) { 62 res = mount(c_source, c_target, "f2fs", flags | MS_RDONLY, NULL); 63 if (res != 0) { 69 return res;
|
/system/netd/server/ |
H A D | ndc.cpp | 80 int res = errno; local 82 return res; 97 int res = errno; local 100 return res; 107 int res = errno; local 110 return res; 136 int res = errno; local 137 fprintf(stderr, "Error in select (%s)\n", strerror(res)); 139 return res; 150 int res local [all...] |
H A D | NatController.cpp | 69 int res; local 70 res = setDefaults(); 71 if (res < 0) { 72 return res; 89 res = iptablesRestoreFunction(V4, mssRewriteCommand); 90 if (res < 0) { 91 return res; 94 res = iptablesRestoreFunction(V4V6, defaultCommands); 95 if (res < 0) { 96 return res; 122 int res = iptablesRestoreFunction(V4, v4Cmd); local [all...] |
H A D | NetdConstants.cpp | 111 addrinfo *res; local 115 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res); 116 if (ret || !res) { 123 switch (res[0].ai_family) { 128 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; 137 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; 143 freeaddrinfo(res); 149 freeaddrinfo(res); 153 *family = res[0].ai_family; 155 freeaddrinfo(res); [all...] |
H A D | IdletimerController.cpp | 155 int res = setDefaults(); local 156 return res; 160 int res = setDefaults(); local 161 return res;
|
H A D | BandwidthController.cpp | 306 int res = 0; local 340 res |= iptablesRestoreFunction(V4V6, Join(cmds, "\n"), nullptr); 341 if (res) { 351 res |= updateQuota(cost, maxBytes); 352 if (res) { 395 int res = 0; local 400 res = removeSharedAlert(); 401 if (res == 0) { 407 return res; 485 ALOGV("Read quota res 511 const int res = iptablesRestoreFunction(V4V6, Join(cmds, "\\n"), nullptr); local 567 int res = 0; local 588 int res = 0; local 610 int res = 0; local 625 int res = 0; local 702 int res = 0; local 793 int res; local 907 int res = 0; local [all...] |
H A D | FirewallController.cpp | 69 int res = 0; local 70 res |= createChain(LOCAL_DOZABLE, getFirewallType(DOZABLE)); 71 res |= createChain(LOCAL_STANDBY, getFirewallType(STANDBY)); 72 res |= createChain(LOCAL_POWERSAVE, getFirewallType(POWERSAVE)); 73 return res; 77 int res = 0; local 90 res = execIptablesRestore(V4V6, command.c_str()); 96 return res; 115 int res = 0; local 128 return res; [all...] |
/system/vold/ |
H A D | FileDeviceUtils.cpp | 105 std::unique_ptr<struct fiemap> res(new (::operator new (allocsize)) struct fiemap); 106 memset(res.get(), 0, allocsize); 107 res->fm_start = 0; 108 res->fm_length = UINT64_MAX; 109 res->fm_flags = 0; 110 res->fm_extent_count = extent_count; 111 res->fm_mapped_extents = 0; 112 return res;
|
H A D | PrivateVolume.cpp | 57 status_t res = ReadMetadata(mDmDevPath, mFsType, mFsUuid, mFsLabel); local 61 return res; 76 int res = cryptfs_setup_ext_volume(getId().c_str(), mRawDevPath.c_str(), local 79 if (res != 0) { 109 int res = ext4::Check(mDmDevPath, mPath); local 110 if (res == 0 || res == 1) { 123 int res = f2fs::Check(mDmDevPath); local 124 if (res == 0) {
|
H A D | VolumeBase.cpp | 165 status_t res = doCreate(); local 169 return res; 187 status_t res = doDestroy(); local 189 return res; 203 status_t res = doMount(); local 204 if (res == OK) { 210 return res; 228 status_t res = doUnmount(); local 230 return res; 244 status_t res local [all...] |
/system/bt/stack/include/ |
H A D | smp_api.h | 110 * res - result of the operation SMP_SUCCESS if success. 117 extern void SMP_SecurityGrant(const RawAddress& bd_addr, uint8_t res); 127 * res - result of the operation SMP_SUCCESS if success 133 extern void SMP_PasskeyReply(const RawAddress& bd_addr, uint8_t res, 145 * res - comparison result SMP_SUCCESS if success 148 extern void SMP_ConfirmReply(const RawAddress& bd_addr, uint8_t res); 158 * res - result of the operation SMP_SUCCESS if success 162 extern void SMP_OobDataReply(const RawAddress& bd_addr, tSMP_STATUS res,
|
/system/connectivity/wifilogd/ |
H A D | os.cpp | 100 const ssize_t res = raw_os_->Recv(fd, buf, buflen, MSG_TRUNC); local 101 if (res < 0) { 105 // Due to the MSG_TRUNC flag, |res| may reasonably be larger than 106 // |buflen|. In such cases, |res| indicates the full size of the datagram, 109 return {res, 0}; 119 const ssize_t res = raw_os_->Write(fd, buf, buflen); local 120 if (res < 0) { 124 CHECK(res <= 128 // Note that |res| may be less than buflen. However, a) a short write is 132 return {res, [all...] |
/system/libufdt/ |
H A D | ufdt_convert.c | 120 struct ufdt_node *res = ufdt_node_construct(fdtp, fdt_tag_ptr, pool); local 121 return res; 131 struct ufdt_node *res, *child_node; local 133 res = NULL; 144 res = ufdt_new_node(fdtp, cur_fdt_tag_offset, pool); 148 res = ufdt_new_node(fdtp, cur_fdt_tag_offset, pool); 155 ufdt_node_add_child(res, child_node); 163 return res; 219 struct ufdt_node *res = NULL; local 234 res 242 int res = 0; local 276 struct ufdt_static_phandle_table res; local 308 int res; local [all...] |
H A D | ufdt_node.c | 27 struct ufdt_node_fdt_prop *res = (struct ufdt_node_fdt_prop *)buf; local 28 if (res == NULL) return NULL; 29 res->parent.fdt_tag_ptr = fdt_tag_ptr; 30 res->parent.sibling = NULL; 31 res->name = fdt_string(fdtp, fdt32_to_cpu(prop->nameoff)); 32 return (struct ufdt_node *)res; 34 struct ufdt_node_fdt_node *res = (struct ufdt_node_fdt_node *)buf; local 35 if (res == NULL) return NULL; 36 res->parent.fdt_tag_ptr = fdt_tag_ptr; 37 res [all...] |
H A D | ufdt_prop_dict.c | 32 int res = 0; local 35 res *= HASH_BASE; 36 res += *str; 39 return res;
|
/system/tools/hidl/c2hal/ |
H A D | Define.cpp | 48 status_t res = parseExpression(&ast, mSlurp); local 50 if (res != 0) {
|
H A D | main.cpp | 116 int res; local 117 while ((res = getopt(argc, argv, "ghvo:p:r:")) >= 0) { 118 switch (res) { 181 int res = parseFile(&ast); local 183 if (res != 0) { 184 LOG(ERROR) << "Could not parse: " << res;
|
/system/core/toolbox/ |
H A D | getevent.c | 67 int res; local 72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); 73 if(res < 0) { 78 for(i = 0; i < res; i++) { 101 int res, res2; local 109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); 110 if(res < bits_size) 112 bits_size = res + 16; 120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); 137 res2 = ioctl(fd, EVIOCGLED(res), bit 433 int res; local 518 int res; local [all...] |
/system/bt/stack/smp/ |
H A D | smp_api.cc | 236 * res - result of the operation SMP_SUCCESS if success. 243 void SMP_SecurityGrant(const RawAddress& bd_addr, uint8_t res) { argument 255 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res); 265 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res); 277 * res - result of the operation SMP_SUCCESS if success 283 void SMP_PasskeyReply(const RawAddress& bd_addr, uint8_t res, argument 288 SMP_TRACE_EVENT("SMP_PasskeyReply: Key: %d Result:%d", passkey, res); 306 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) { 332 * res - comparison result SMP_SUCCESS if success 335 void SMP_ConfirmReply(const RawAddress& bd_addr, uint8_t res) { argument 378 SMP_OobDataReply(const RawAddress& bd_addr, tSMP_STATUS res, uint8_t len, uint8_t* p_data) argument [all...] |
/system/core/storaged/ |
H A D | main.cpp | 139 std::vector<struct uid_info> res = storaged_service->dump_uids(NULL); local 141 if (res.size() == 0) { 146 sort_running_uids_info(res); 147 log_console_running_uids_info(res);
|
/system/update_engine/common/ |
H A D | hash_calculator.cc | 101 off_t res = calc.UpdateFile(name, length); local 102 if (res < 0) { 103 return res; 109 return res;
|