Searched defs:res (Results 51 - 75 of 95) sorted by relevance

1234

/system/tools/hidl/test/java_test/
H A Dhidl_test_java_native.cpp502 int res; local
503 while ((res = getopt(argc, argv, "chs")) >= 0) {
504 switch (res) {
/system/vold/
H A DMetadataCrypt.cpp106 auto res = KeyBuffer() + "AES-256-XTS " + hex_key + " " + real_blkdev.c_str() + " 0"; local
107 LOG(DEBUG) << "crypt_params: " << std::string(res.data(), res.size());
108 return res;
118 unsigned long res; local
120 get_blkdev_size(dev_fd.get(), &res);
121 if (res == 0) {
125 *nr_sec = res;
H A DVolumeBase.cpp165 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...]
H A DCommandListener.cpp225 int res = vol->mount(); local
229 return sendGenericOkFail(cli, res);
266 nsecs_t res = vm->benchmarkPrivate(id); local
268 android::base::StringPrintf("%" PRId64, res).c_str(), false);
H A DDisk.cpp306 status_t res = ForkExecvp(cmd, output); local
307 if (res != OK) {
311 return res;
388 int res; local
402 if ((res = ForkExecvp(cmd)) != 0) {
403 LOG(WARNING) << "Failed to zap; status " << res;
448 int res; local
467 if ((res = ForkExecvp(cmd)) != 0) {
468 LOG(WARNING) << "Failed to zap; status " << res;
529 if ((res
[all...]
H A DExt4Crypt.cpp658 bool res = true; local
672 res &= destroy_dir(system_legacy_path);
674 res &= destroy_dir(misc_legacy_path);
676 res &= destroy_dir(profiles_de_path);
677 res &= destroy_dir(system_de_path);
678 res &= destroy_dir(misc_de_path);
680 res &= destroy_dir(user_de_path);
691 res &= destroy_dir(system_ce_path);
692 res &= destroy_dir(misc_ce_path);
694 res
[all...]
/system/bt/hci/src/
H A Dhci_layer_linux.cc157 int res = select(std::max(fd, ctrl_fd) + 1, &fds, NULL, NULL, NULL); local
158 if (res <= 0) LOG(INFO) << "Nothing more to read";
/system/bt/stack/btm/
H A Dbtm_pm.cc422 uint8_t res; local
448 res = (p_md1->mode - 1) * BTM_PM_NUM_SET_MODES + (p_md2->mode - 1);
449 res = btm_pm_md_comp_matrix[res];
450 switch (res) {
/system/core/libutils/
H A DString8.cpp571 String8 res = buf != str ? String8(buf) : *this; local
573 return res;
576 String8 res(buf, cp-buf);
578 return res;
H A DThreads.cpp157 ALOGE("androidCreateRawThreadEtc failed (entry=%p, res=%d, %s)\n"
470 DWORD res =
509 return res == WAIT_OBJECT_0 ? NO_ERROR : -1;
684 bool res; local
686 res = createThreadEtc(_threadLoop,
689 res = androidCreateRawThreadEtc(_threadLoop,
693 if (res == false) {
/system/core/sdcard/
H A Dsdcard.cpp89 bool res = global->package_to_appid->emplace(info->name, info->uid).second; local
91 return res;
122 int res = inotify_add_watch(nfd, PACKAGES_LIST_FILE, IN_DELETE_SELF); local
123 if (res == -1) {
145 ssize_t res = TEMP_FAILURE_RETRY(read(nfd, event_buf, sizeof(event_buf))); local
146 if (res == -1) {
149 } else if (static_cast<size_t>(res) < sizeof(*event)) {
150 LOG(ERROR) << "failed to read inotify event: read " << res << " expected "
155 while (res >= static_cast<ssize_t>(sizeof(*event))) {
167 res
[all...]
/system/extras/simpleperf/
H A Dutils.cpp222 int res = XzUnpacker_Code(&state, reinterpret_cast<Byte*>(&dst[dst_offset]), &dst_remaining, local
225 if (res != SZ_OK) {
226 LOG(ERROR) << "LZMA decompression failed with error " << res;
/system/netd/server/
H A DSockDiag.cpp137 addrinfo *res; local
143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
148 ScopedAddrinfo resP(res);
152 if (res->ai_family == AF_INET && family == AF_INET) {
153 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr;
156 } else if (res->ai_family == AF_INET && family == AF_INET6) {
157 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr;
161 } else if (res->ai_family == AF_INET6 && family == AF_INET6) {
162 in6_addr& in6a = reinterpret_cast<sockaddr_in6*>(res->ai_addr)->sin6_addr;
H A DCommandListener.cpp1129 int res = gCtls->firewallCtrl.enableFirewall(firewallType); local
1130 return sendGenericOkFail(cli, res);
1133 int res = gCtls->firewallCtrl.disableFirewall(); local
1134 return sendGenericOkFail(cli, res);
1137 int res = gCtls->firewallCtrl.isFirewallEnabled(); local
1138 return sendGenericOkFail(cli, res);
1151 int res = gCtls->firewallCtrl.setInterfaceRule(iface, rule); local
1152 return sendGenericOkFail(cli, res);
1172 int res = gCtls->firewallCtrl.setUidRule(childChain, uid, rule); local
1173 return sendGenericOkFail(cli, res);
1185 int res = gCtls->firewallCtrl.enableChildChains(childChain, true); local
1198 int res = gCtls->firewallCtrl.enableChildChains(childChain, false); local
1275 int res = gCtls->strictCtrl.enableStrict(); local
1279 int res = gCtls->strictCtrl.disableStrict(); local
1304 int res = gCtls->strictCtrl.setUidCleartextPenalty((uid_t) uid, penalty); local
[all...]
/system/sepolicy/tools/
H A Dcheckfc.c133 bool res = (bool)ebitmap_length(&dst); local
136 return res;
155 bool res; local
176 res = !is_type_of_attribute_set(global_state.sepolicy.pdb, type_name,
178 if (res) {
/system/tools/hidl/
H A DCoordinator.cpp597 int res = mkdir(partial.c_str(), kMode); local
598 if (res < 0) {
/system/bt/bta/dm/
H A Dbta_dm_api.cc716 * res - security grant status.
722 tBTA_DM_BLE_SEC_GRANT res) {
728 p_msg->res = res;
721 BTA_DmBleSecurityGrant(const RawAddress& bd_addr, tBTA_DM_BLE_SEC_GRANT res) argument
/system/bt/stack/gap/
H A Dgap_conn.cc786 void* p_ref_data, uint8_t res) {
791 p_ccb->con_state, p_ccb->con_flags, res);
794 if (res == BTM_SUCCESS) {
785 gap_sec_check_complete(const RawAddress*, tBT_TRANSPORT, void* p_ref_data, uint8_t res) argument
/system/bt/stack/smp/
H A Dsmp_act.cc467 uint8_t res = *(uint8_t*)p_data; local
469 if (res != SMP_SUCCESS) {
808 uint8_t res = *(uint8_t*)p_data; local
810 if (res != SMP_SUCCESS) {
/system/core/adb/client/
H A Dusb_linux.cpp371 int res = ioctl(fd, USBDEVFS_REAPURB, &out); local
380 if (res < 0) {
/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp199 int res = -1; local
209 res = snprintf(buf, bufsize,
214 res = snprintf(buf, bufsize,
220 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table,
223 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table);
226 if (res < 0 || (size_t)res >= bufsize) {
237 int res; local
240 res = strlcpy(buf, params->table, bufsize);
242 res
[all...]
/system/core/toolbox/
H A Dgetevent.c67 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/libufdt/
H A Dufdt_convert.c120 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...]
/system/libvintf/
H A Dassemble_vintf.cpp454 int res; local
456 while ((res = getopt_long(argc, argv, "hi:o:mc:", longopts, &optind)) >= 0) {
457 switch (res) {
H A Dparse_xml.cpp502 auto res = object->interfaces.emplace(std::move(name), std::move(interface)); variable
503 if (!res.second) {
504 this->mLastError = "Duplicated interface entry \"" + res.first->first +
630 auto res = object->interfaces.emplace(interface.name, variable
632 if (!res.second) {
633 this->mLastError = "Duplicated interface entry \"" + res.first->first +

Completed in 2468 milliseconds

1234