Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 230) sorted by relevance

12345678910

/system/core/deprecated-adf/libadf/tests/
Dadf_test.cpp30 int err = adf_device_open(dev_id, O_RDWR, &dev); in SetUp() local
31 ASSERT_GE(err, 0) << "opening ADF device " << dev_id << in SetUp()
32 " failed: " << strerror(-err); in SetUp()
34 err = adf_find_simple_post_configuration(&dev, fmt8888, n_fmt8888, in SetUp()
36 ASSERT_GE(err, 0) << "finding ADF configuration failed: " << in SetUp()
37 strerror(-err); in SetUp()
58 int err = adf_get_overlay_engine_data(eng, &data); in get8888Format() local
59 ASSERT_GE(err, 0) << "getting ADF overlay engine data failed: " << in get8888Format()
60 strerror(-err); in get8888Format()
80 int err = adf_get_interface_data(intf, &data); in getInterfaceData() local
[all …]
/system/connectivity/wifilogd/
Dmain_loop.cpp44 Os::Errno err; in MainLoop() local
45 std::tie(sock_fd_, err) = os_->GetControlSocket(socket_name); in MainLoop()
46 if (err) { in MainLoop()
54 Os::Errno err; in RunOnce() local
55 std::tie(datagram_len, err) = in RunOnce()
57 if (err) { in RunOnce()
58 ProcessError(err); in RunOnce()
73 void MainLoop::ProcessError(Os::Errno err) { in ProcessError() argument
74 if (err == EINTR || err == ENOMEM) { in ProcessError()
/system/tools/hidl/
DCoordinator.cpp110 status_t err = getFilepath(fqName, location, fileName, &filepath); in getFormatter() local
111 if (err != OK) { in getFormatter()
134 status_t err; in getFilepath() local
143 err = getPackagePath(fqName, false /* relative */, false /* sanitized */, &packagePath); in getFilepath()
144 if (err != OK) return err; in getFilepath()
149 err = convertPackageRootToPath(fqName, &packageRootPath); in getFilepath()
150 if (err != OK) return err; in getFilepath()
151 err = getPackagePath(fqName, true /* relative */, false /* sanitized */, &packagePath); in getFilepath()
152 if (err != OK) return err; in getFilepath()
157 err = convertPackageRootToPath(fqName, &packageRootPath); in getFilepath()
[all …]
DAST.cpp104 status_t err; in postParse() local
107 err = lookupTypes(); in postParse()
108 if (err != OK) return err; in postParse()
111 err = setParseStage(Type::ParseStage::PARSE, Type::ParseStage::POST_PARSE); in postParse()
112 if (err != OK) return err; in postParse()
117 err = validateDefinedTypesUniqueNames(); in postParse()
118 if (err != OK) return err; in postParse()
121 err = topologicalReorder(); in postParse()
122 if (err != OK) return err; in postParse()
123 err = resolveInheritance(); in postParse()
[all …]
Dmain.cpp86 status_t err = getOutputFile(fqName, coordinator, location, &fileName); in appendOutputFiles() local
87 if (err != OK) return err; in appendOutputFiles()
187 status_t err = coordinator->appendPackageInterfacesToVector(fqName, targets); in appendTargets() local
188 if (err != OK) return err; in appendTargets()
192 status_t err = appendPerTypeTargets(fqName, coordinator, targets); in appendTargets() local
193 if (err != OK) return err; in appendTargets()
198 status_t err = coordinator->appendPackageInterfacesToVector(fqName, &packageInterfaces); in appendTargets() local
199 if (err != OK) return err; in appendTargets()
201 err = appendPerTypeTargets(packageInterface, coordinator, targets); in appendTargets()
202 if (err != OK) return err; in appendTargets()
[all …]
DType.cpp171 status_t err = func(this); in recursivePass() local
172 if (err != OK) return err; in recursivePass()
175 err = nextType->recursivePass(stage, func, visited); in recursivePass()
176 if (err != OK) return err; in recursivePass()
180 err = nextRef->shallowGet()->recursivePass(stage, func, visited); in recursivePass()
181 if (err != OK) return err; in recursivePass()
195 status_t err = func(this); in recursivePass() local
196 if (err != OK) return err; in recursivePass()
199 err = nextType->recursivePass(stage, func, visited); in recursivePass()
200 if (err != OK) return err; in recursivePass()
[all …]
DConstantExpression.cpp555 status_t err = func(this); in recursivePass() local
556 if (err != OK) return err; in recursivePass()
560 status_t err = nextCE->recursivePass(func, visited, processBeforeDependencies); in recursivePass() local
561 if (err != OK) return err; in recursivePass()
567 status_t err = nextCE->recursivePass(func, visited, processBeforeDependencies); in recursivePass() local
568 if (err != OK) return err; in recursivePass()
572 status_t err = func(this); in recursivePass() local
573 if (err != OK) return err; in recursivePass()
588 status_t err = func(this); in recursivePass() local
589 if (err != OK) return err; in recursivePass()
[all …]
/system/tools/sysprop/
DApiChecker.cpp35 std::string err; in CompareProps() local
48 err += "Prop " + latest_prop.api_name() + " has been removed\n"; in CompareProps()
55 err += "Type of prop " + latest_prop.api_name() + " has been changed\n"; in CompareProps()
59 err += "Accessibility of prop " + latest_prop.api_name() + in CompareProps()
64 err += "Scope of prop " + latest_prop.api_name() + in CompareProps()
68 err += "Underlying property of prop " + latest_prop.api_name() + in CompareProps()
72 err += "Enum values of prop " + latest_prop.api_name() + in CompareProps()
76 err += "Integer-as-bool of prop " + latest_prop.api_name() + in CompareProps()
83 err += "owner of module " + latest.module() + " has been changed\n"; in CompareProps()
87 if (err.empty()) in CompareProps()
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c39 goto err; in read_typeset()
49 goto err; in read_typeset()
64 goto err; in read_typeset()
97 goto err; in read_typeset()
109 goto err; in read_typeset()
136 goto err; in read_typeset()
141 goto err; in read_typeset()
151 goto err; in read_typeset()
159 goto err; in read_typeset()
171 goto err; in read_typeset()
[all …]
/system/bt/osi/src/socket_utils/
Dsocket_local_server.cc46 int err; local
48 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
50 if (err < 0) {
81 int err; local
87 err = osi_socket_local_server_bind(s, name, namespaceId);
89 if (err < 0) {
/system/core/libcutils/
Dsocket_local_server_unix.cpp60 int err; local
62 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
64 if (err < 0) {
99 int err; local
105 err = socket_local_server_bind(s, name, namespaceId);
107 if (err < 0) {
/system/netd/libnetdutils/
DStatus.cpp26 Status statusFromErrno(int err, const std::string& msg) { in statusFromErrno() argument
27 return Status(err, base::StringPrintf("[%s] : %s", strerror(err), msg.c_str())); in statusFromErrno()
30 bool equalToErrno(const Status& status, int err) { in equalToErrno() argument
31 return status.code() == err; in equalToErrno()
/system/core/deprecated-adf/libadf/
Dadf.cpp105 int err; in adf_get_device_data() local
110 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
111 if (err < 0) in adf_get_device_data()
124 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
125 if (err < 0) { in adf_get_device_data()
147 int err; in adf_device_post() local
158 err = ioctl(dev->fd, ADF_POST_CONFIG, &data); in adf_device_post()
159 if (err < 0) in adf_device_post()
172 int err; in adf_device_post_v2() local
184 err = ioctl(dev->fd, ADF_POST_CONFIG_V2, &data); in adf_device_post_v2()
[all …]
/system/bt/stack/a2dp/
Da2dp_aac_decoder.cc70 AAC_DECODER_ERROR err = aacDecoder_Fill(a2dp_aac_decoder_cb.aac_handle, in a2dp_aac_decoder_decode_packet() local
72 if (err != AAC_DEC_OK) { in a2dp_aac_decoder_decode_packet()
74 static_cast<unsigned>(err)); in a2dp_aac_decoder_decode_packet()
79 err = aacDecoder_DecodeFrame(a2dp_aac_decoder_cb.aac_handle, in a2dp_aac_decoder_decode_packet()
82 if (err == AAC_DEC_NOT_ENOUGH_BITS) { in a2dp_aac_decoder_decode_packet()
85 if (err != AAC_DEC_OK) { in a2dp_aac_decoder_decode_packet()
87 static_cast<int>(err)); in a2dp_aac_decoder_decode_packet()
/system/media/audio_utils/
Dfifo.cpp202 int err = 0; in obtain() local
213 err = filled; in obtain()
231 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
233 if (err < 0) { in obtain()
234 LOG_ALWAYS_FATAL_IF(errno != EINTR, "unexpected err=%d errno=%d", err, errno); in obtain()
235 err = -errno; in obtain()
237 err = -ETIMEDOUT; in obtain()
247 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
248 if (err < 0) { in obtain()
261 err = -errno; in obtain()
[all …]
/system/libufdt/
Dufdt_overlay.c378 int err = ufdt_overlay_node(target_node, overlay_node, pool); in ufdt_apply_fragment() local
380 if (err < 0) { in ufdt_apply_fragment()
395 enum overlay_result err; in ufdt_overlay_apply_fragments() local
402 err = ufdt_apply_fragment(main_tree, *it, pool); in ufdt_overlay_apply_fragments()
403 if (err == OVERLAY_RESULT_MERGE_FAIL) { in ufdt_overlay_apply_fragments()
478 int err = ufdt_local_fixup_prop(sub_target_node, *it_local_fixups, in ufdt_local_fixup_node() local
480 if (err < 0) return -1; in ufdt_local_fixup_node()
490 int err = ufdt_local_fixup_node(sub_target_node, *it_local_fixups, in ufdt_local_fixup_node() local
492 if (err < 0) return -1; in ufdt_local_fixup_node()
525 int err = in ufdt_overlay_do_local_fixups() local
[all …]
Dufdt_convert.c366 int err = fdt_begin_node(fdtp, ufdt_node_name(node)); in _ufdt_output_node_to_fdt() local
367 if (err < 0) return -1; in _ufdt_output_node_to_fdt()
371 err = _ufdt_output_node_to_fdt(tree, fdtp, *it, dict); in _ufdt_output_node_to_fdt()
372 if (err < 0) return -1; in _ufdt_output_node_to_fdt()
376 err = _ufdt_output_node_to_fdt(tree, fdtp, *it, dict); in _ufdt_output_node_to_fdt()
377 if (err < 0) return -1; in _ufdt_output_node_to_fdt()
380 err = fdt_end_node(fdtp); in _ufdt_output_node_to_fdt()
381 if (err < 0) return -1; in _ufdt_output_node_to_fdt()
419 int err; in ufdt_to_fdt() local
420 err = fdt_create(buf, buf_size); in ufdt_to_fdt()
[all …]
/system/core/deprecated-adf/libadfhwc/
Dadfhwc.cpp92 int err = adf_get_interface_data(dev->intf_fds[disp], &data); in adf_getDisplayConfigs() local
93 if (err < 0) { in adf_getDisplayConfigs()
94 ALOGE("failed to get ADF interface data: %s", strerror(err)); in adf_getDisplayConfigs()
95 return err; in adf_getDisplayConfigs()
155 int err = adf_get_interface_data(dev->intf_fds[disp], &data); in adf_getDisplayAttributes() local
156 if (err < 0) { in adf_getDisplayAttributes()
157 ALOGE("failed to get ADF interface data: %s", strerror(err)); in adf_getDisplayAttributes()
158 return err; in adf_getDisplayAttributes()
206 int err = adf_get_interface_data(dev->intf_fds[disp], &data); in adf_getDisplayAttributes_hwc2() local
207 if (err < 0) { in adf_getDisplayAttributes_hwc2()
[all …]
/system/bt/stack/avdt/
Davdt_msg.cc528 uint8_t err = 0; in avdt_msg_prs_cfg() local
542 while ((p < p_end) && (err == 0)) { in avdt_msg_prs_cfg()
545 err = AVDT_ERR_PAYLOAD; in avdt_msg_prs_cfg()
563 err = AVDT_ERR_CATEGORY; in avdt_msg_prs_cfg()
577 err = avdt_msg_ie_err[elem]; in avdt_msg_prs_cfg()
590 err = AVDT_ERR_PAYLOAD; in avdt_msg_prs_cfg()
597 err = AVDT_ERR_RECOV_TYPE; in avdt_msg_prs_cfg()
602 err = AVDT_ERR_RECOV_FMT; in avdt_msg_prs_cfg()
609 err = AVDT_ERR_LENGTH; in avdt_msg_prs_cfg()
625 err = AVDT_ERR_PAYLOAD; in avdt_msg_prs_cfg()
[all …]
/system/core/trusty/keymaster/
DTrustyKeymaster.cpp26 int err; in Initialize() local
28 err = trusty_keymaster_connect(); in Initialize()
29 if (err) { in Initialize()
30 ALOGE("Failed to connect to trusty keymaster %d", err); in Initialize()
31 return err; in Initialize()
57 keymaster_error_t err; in ForwardCommand() local
58 err = trusty_keymaster_send(command, req, rsp); in ForwardCommand()
59 if (err != KM_ERROR_OK) { in ForwardCommand()
60 ALOGE("Failed to send cmd %d err: %d", command, err); in ForwardCommand()
61 rsp->error = err; in ForwardCommand()
/system/iorap/src/serialize/
Dprotobuf_io.cc105 int err = errno; in WriteFully() local
107 return unexpected{err}; in WriteFully()
128 int err = errno; in WriteFully() local
130 return unexpected{err}; in WriteFully()
141 int err = errno; in WriteFully() local
143 return unexpected{err}; in WriteFully()
158 int err = errno; in WriteFully() local
160 return unexpected{err}; in WriteFully()
/system/libvintf/
DRuntimeInfo-target.cpp74 status_t err = OK; in fetchKernelConfigs() local
79 err = (errnum == Z_ERRNO ? -errno : errnum); in fetchKernelConfigs()
84 return err; in fetchKernelConfigs()
125 status_t err = parseKernelVersion(); in fetchVersion() local
126 if (err != OK) { in fetchVersion()
130 return err; in fetchVersion()
176 status_t err; in fetchAllInformation() local
178 if ((flags & std::get<0>(tuple)) && (err = (*this.*std::get<1>(tuple))()) != OK) in fetchAllInformation()
180 << strerror(-err); in fetchAllInformation()
/system/extras/tests/pagingtest/
Dpageinout_test.c44 goto err; in pageinout_test()
52 goto err; in pageinout_test()
68 goto err; in pageinout_test()
77 goto err; in pageinout_test()
84 goto err; in pageinout_test()
97 err: in pageinout_test()
/system/libhwbinder/
DIPCThreadState.cpp346 const status_t err = mLastError; in clearLastError() local
348 return err; in clearLastError()
625 status_t err; in transact() local
637 err = writeTransactionData(BC_TRANSACTION_SG, flags, handle, code, data, nullptr); in transact()
639 if (err != NO_ERROR) { in transact()
640 if (reply) reply->setError(err); in transact()
641 return (mLastError = err); in transact()
663 err = waitForResponse(reply); in transact()
666 err = waitForResponse(&fakeReply); in transact()
683 err = waitForResponse(nullptr, nullptr); in transact()
[all …]
/system/update_engine/
Dhardware_android.cc158 string err; in SchedulePowerwash() local
160 &err)) { in SchedulePowerwash()
161 LOG(ERROR) << "Failed to update bootloader message: " << err; in SchedulePowerwash()
168 string err; in CancelPowerwash() local
169 if (!clear_bootloader_message(&err)) { in CancelPowerwash()
170 LOG(ERROR) << "Failed to clear bootloader message: " << err; in CancelPowerwash()

12345678910