Searched defs:res (Results 1 - 25 of 95) sorted by relevance

1234

/system/nfc/halimpl/bcm2079x/adaptation/
H A DMutex.cpp42 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 DCondVar.cpp44 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/connectivity/wificond/scanning/offload/
H A Dhidl_call_util.h92 const auto& res = ((*object).*method)(std::forward<ArgT>(methodArg)..., local
95 if (!res.isOk()) {
96 LOG(ERROR) << " Transport failed " << res.description();
/system/core/init/test_service/
H A Dtest_service.cpp43 bool res = android::base::ReadFileToString("/proc/self/status", &status, true); local
44 if (!res) {
/system/core/storaged/
H A Dmain.cpp139 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/tools/hidl/c2hal/
H A DDefine.cpp48 status_t res = parseExpression(&ast, mSlurp); local
50 if (res != 0) {
H A Dmain.cpp116 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/vold/fs/
H A DF2fs.cpp58 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/update_engine/payload_generator/
H A Dxz_android.cc112 SRes res = Xz_Encode(&out_writer, &in_reader, &props, nullptr /* progress */); local
113 return res == SZ_OK;
/system/vold/
H A DPrivateVolume.cpp57 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 DPublicVolume.cpp55 status_t res = ReadMetadataUntrusted(mDevPath, mFsType, mFsUuid, mFsLabel); local
59 return res;
H A Dvdc.cpp157 char* res = buffer + offset; local
158 fprintf(stdout, "%s\n", res);
160 int code = atoi(strtok(res, " "));
/system/bt/stack/avct/
H A Davct_l2c.cc133 AVCT_TRACE_DEBUG("avct_l2c_connect_ind_cback: 0x%x, res: %d, ch_state: %d",
237 AVCT_TRACE_DEBUG("avct_l2c_config_cfm_cback: 0x%x, ch_state: %d, res: %d",
356 uint16_t res; local
362 "avct_l2c_disconnect_cfm_cback: 0x%x, ch_state: %d, res: %d", lcid,
365 res = (p_lcb->ch_result != 0) ? p_lcb->ch_result : result;
369 avct_lcb_evt.result = res;
H A Davct_l2c_br.cc364 uint16_t res; local
371 res = (p_lcb->ch_result != 0) ? p_lcb->ch_result : result;
375 avct_lcb_evt.result = res;
/system/connectivity/wifilogd/
H A Dos.cpp100 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/core/logd/
H A DLogListener.cpp132 int res = logbuf->log( local
136 if (res > 0 && reader != nullptr) {
/system/netd/server/
H A DIdletimerController.cpp155 int res = setDefaults(); local
156 return res;
160 int res = setDefaults(); local
161 return res;
H A Dndc.cpp80 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...]
/system/update_engine/common/
H A Dhash_calculator.cc101 off_t res = calc.UpdateFile(name, length); local
102 if (res < 0) {
103 return res;
109 return res;
/system/bt/stack/avdt/
H A Davdt_l2c.cc78 uint8_t res) {
83 AVDT_TRACE_DEBUG("avdt_sec_check_complete_term res: %d", res);
89 if (res == BTM_SUCCESS) {
129 uint8_t res) {
134 AVDT_TRACE_DEBUG("avdt_sec_check_complete_orig res: %d", res);
139 if (res == BTM_SUCCESS) {
75 avdt_sec_check_complete_term(const RawAddress* bd_addr, tBT_TRANSPORT transport, UNUSED_ATTR void* p_ref_data, uint8_t res) argument
126 avdt_sec_check_complete_orig(const RawAddress* bd_addr, tBT_TRANSPORT trasnport, UNUSED_ATTR void* p_ref_data, uint8_t res) argument
/system/bt/stack/mcap/
H A Dmca_l2c.cc71 void* p_ref_data, uint8_t res) {
76 MCA_TRACE_DEBUG("mca_sec_check_complete_term res: %d", res);
78 if (res == BTM_SUCCESS) {
116 void* p_ref_data, uint8_t res) {
120 MCA_TRACE_DEBUG("mca_sec_check_complete_orig res: %d", res);
122 if (res == BTM_SUCCESS) {
69 mca_sec_check_complete_term(const RawAddress* bd_addr, UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, uint8_t res) argument
114 mca_sec_check_complete_orig(UNUSED_ATTR const RawAddress* bd_addr, UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, uint8_t res) argument
/system/bt/stack/rfcomm/
H A Drfc_utils.cc326 void* p_ref_data, uint8_t res) {
335 rfc_port_sm_execute((tPORT*)p_ref_data, RFC_EVENT_SEC_COMPLETE, &res);
324 rfc_sec_check_complete(UNUSED_ATTR const RawAddress* bd_addr, UNUSED_ATTR tBT_TRANSPORT transport, void* p_ref_data, uint8_t res) argument
/system/bt/stack/smp/
H A Dsmp_api.cc236 * 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/healthd/
H A Dhealthd_draw.cpp35 int res; local
37 (res = gr_init_font(anim->text_clock.font_file.c_str(),
39 LOGE("Could not load time font (%d)\n", res);
42 (res = gr_init_font(anim->text_percent.font_file.c_str(),
44 LOGE("Could not load percent font (%d)\n", res);
/system/core/libcutils/
H A Dfs.c191 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...]

Completed in 361 milliseconds

1234