Home
last modified time | relevance | path

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

123456

/system/core/adf/libadf/tests/
Dadf_test.cpp29 int err = adf_device_open(dev_id, O_RDWR, &dev); in SetUp() local
30 ASSERT_GE(err, 0) << "opening ADF device " << dev_id << in SetUp()
31 " failed: " << strerror(-err); in SetUp()
33 err = adf_find_simple_post_configuration(&dev, fmt8888, n_fmt8888, in SetUp()
35 ASSERT_GE(err, 0) << "finding ADF configuration failed: " << in SetUp()
36 strerror(-err); in SetUp()
57 int err = adf_get_overlay_engine_data(eng, &data); in get8888Format() local
58 ASSERT_GE(err, 0) << "getting ADF overlay engine data failed: " << in get8888Format()
59 strerror(-err); in get8888Format()
97 int err = adf_get_interface_data(intf, &data); in getInterfaceData() local
[all …]
/system/netd/server/
DNetdNativeService.cpp55 auto err = StringPrintf("UID %d / PID %d lacks permission %s", uid, pid, permission); in checkPermission() local
56 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, String8(err.c_str())); in checkPermission()
117 int err = gCtls->firewallCtrl.replaceUidChain(name.string(), isWhitelist, uids); in firewallReplaceUidChain() local
118 *ret = (err == 0); in firewallReplaceUidChain()
125 int err = gCtls->bandwidthCtrl.enableDataSaver(enable); in bandwidthEnableDataSaver() local
126 *ret = (err == 0); in bandwidthEnableDataSaver()
141 int err; in networkRejectNonSecureVpn() local
143 err = RouteController::addUsersToRejectNonSecureNetworkRule(uidRanges); in networkRejectNonSecureVpn()
145 err = RouteController::removeUsersFromRejectNonSecureNetworkRule(uidRanges); in networkRejectNonSecureVpn()
148 if (err != 0) { in networkRejectNonSecureVpn()
[all …]
/system/core/libpackagelistparser/
Dpackagelistparser.c119 goto err; in packagelist_parse()
127 goto err; in packagelist_parse()
132 goto err; in packagelist_parse()
138 goto err; in packagelist_parse()
144 goto err; in packagelist_parse()
153 goto err; in packagelist_parse()
161 goto err; in packagelist_parse()
167 goto err; in packagelist_parse()
173 goto err; in packagelist_parse()
181 goto err; in packagelist_parse()
[all …]
/system/core/libsync/
Dsync.c41 int err; in sync_merge() local
46 err = ioctl(fd1, SYNC_IOC_MERGE, &data); in sync_merge()
47 if (err < 0) in sync_merge()
48 return err; in sync_merge()
56 int err; in sync_fence_info() local
63 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info); in sync_fence_info()
64 if (err < 0) { in sync_fence_info()
107 int err; in sw_sync_fence_create() local
112 err = ioctl(fd, SW_SYNC_IOC_CREATE_FENCE, &data); in sw_sync_fence_create()
113 if (err < 0) in sw_sync_fence_create()
[all …]
/system/core/libsuspend/
Dautosuspend_earlysuspend.c50 int err = 0; in wait_for_fb_wake() local
54 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1)); in wait_for_fb_wake()
55 ALOGE_IF(err < 0, in wait_for_fb_wake()
58 return err < 0 ? err : 0; in wait_for_fb_wake()
63 int err = 0; in wait_for_fb_sleep() local
67 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1)); in wait_for_fb_sleep()
68 ALOGE_IF(err < 0, in wait_for_fb_sleep()
71 return err < 0 ? err : 0; in wait_for_fb_sleep()
107 goto err; in autosuspend_earlysuspend_enable()
122 err: in autosuspend_earlysuspend_enable()
[all …]
Dautosuspend_autosleep.c47 goto err; in autosuspend_autosleep_enable()
54 err: in autosuspend_autosleep_enable()
69 goto err; in autosuspend_autosleep_disable()
76 err: in autosuspend_autosleep_disable()
/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/netd/server/binder/android/net/
DUidRange.cpp46 if (status_t err = parcel->writeInt32(mStart)) { in writeToParcel() local
47 return err; in writeToParcel()
49 if (status_t err = parcel->writeInt32(mStop)) { in writeToParcel() local
50 return err; in writeToParcel()
60 if (status_t err = parcel->readInt32(&mStart)) { in readFromParcel() local
61 return err; in readFromParcel()
63 if (status_t err = parcel->readInt32(&mStop)) { in readFromParcel() local
64 return err; in readFromParcel()
/system/core/init/
Dservice.h78 bool HandleLine(const std::vector<std::string>& args, std::string* err);
105 std::string* err);
114 bool HandleClass(const std::vector<std::string>& args, std::string* err);
115 bool HandleConsole(const std::vector<std::string>& args, std::string* err);
116 bool HandleCritical(const std::vector<std::string>& args, std::string* err);
117 bool HandleDisabled(const std::vector<std::string>& args, std::string* err);
118 bool HandleGroup(const std::vector<std::string>& args, std::string* err);
119 bool HandleIoprio(const std::vector<std::string>& args, std::string* err);
120 bool HandleKeycodes(const std::vector<std::string>& args, std::string* err);
121 bool HandleOneshot(const std::vector<std::string>& args, std::string* err);
[all …]
Daction.cpp71 const std::string& filename, int line, std::string* err) { in AddCommand() argument
73 *err = "no function map available"; in AddCommand()
78 *err = "command needed, but not provided"; in AddCommand()
82 auto function = function_map_->FindFunction(args[0], args.size() - 1, err); in AddCommand()
132 bool Action::ParsePropertyTrigger(const std::string& trigger, std::string* err) { in ParsePropertyTrigger() argument
137 *err = "property trigger found without matching '='"; in ParsePropertyTrigger()
146 *err = "multiple property triggers found for same property"; in ParsePropertyTrigger()
152 bool Action::InitTriggers(const std::vector<std::string>& args, std::string* err) { in InitTriggers() argument
157 *err = "&& is the only symbol allowed to concatenate actions"; in InitTriggers()
165 if (!ParsePropertyTrigger(args[i], err)) { in InitTriggers()
[all …]
Dkeyword_map.h36 std::string* err) const { in FindFunction() argument
41 *err = StringPrintf("invalid keyword '%s'", keyword.c_str()); in FindFunction()
50 *err = StringPrintf("%s requires %zu argument%s", in FindFunction()
58 *err = StringPrintf("%s requires at least %zu argument%s", in FindFunction()
62 *err = StringPrintf("%s requires between %zu and %zu arguments", in FindFunction()
/system/core/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()
172 int err = adf_read_event(dev->intf_fds[disp], &event); in handle_adf_event() local
173 if (err < 0) { in handle_adf_event()
[all …]
/system/bt/osi/src/socket_utils/
Dsocket_local_server.c46 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, namespace);
89 if (err < 0) {
Dsocket_local_client.c116 int err; in osi_socket_local_client_connect() local
118 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen); in osi_socket_local_client_connect()
120 if (err < 0) { in osi_socket_local_client_connect()
124 OSI_NO_INTR(err = connect(fd, (struct sockaddr *)&addr, alen)); in osi_socket_local_client_connect()
125 if (err < 0) { in osi_socket_local_client_connect()
/system/security/keystore/
DIKeystoreService.cpp432 goto err; in readParamList()
438 goto err; in readParamList()
442 err: in readParamList()
474 int32_t err = reply.readExceptionCode(); in getState() local
476 if (err < 0) { in getState()
477 ALOGD("getState() caught exception %d\n", err); in getState()
494 int32_t err = reply.readExceptionCode(); in get() local
510 if (err < 0) { in get()
511 ALOGD("get() caught exception %d\n", err); in get()
533 int32_t err = reply.readExceptionCode(); in insert() local
[all …]
/system/core/libcutils/
Dsocket_local_server_unix.c60 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, namespace);
107 if (err < 0) {
/system/core/adf/libadf/
Dadf.c109 int err; in adf_get_device_data() local
114 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
115 if (err < 0) in adf_get_device_data()
143 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
144 if (err < 0) in adf_get_device_data()
165 int err; in adf_device_post() local
176 err = ioctl(dev->fd, ADF_POST_CONFIG, &data); in adf_device_post()
177 if (err < 0) in adf_device_post()
186 int err; in adf_device_attachment() local
193 err = ioctl(dev->fd, attach ? ADF_ATTACH : ADF_DETACH, &data); in adf_device_attachment()
[all …]
/system/core/toolbox/upstream-netbsd/bin/dd/
Dposition.c75 err(EXIT_FAILURE, "%s", in.name); in pos_in()
122 err(EXIT_FAILURE, "%s", in.name); in pos_in()
142 err(EXIT_FAILURE, "%s", out.name); in pos_out()
153 err(EXIT_FAILURE, "%s", out.name); in pos_out()
164 err(EXIT_FAILURE, "%s", out.name); in pos_out()
175 err(EXIT_FAILURE, "%s", out.name); in pos_out()
181 err(EXIT_FAILURE, "%s", out.name); in pos_out()
/system/core/fingerprintd/
DFingerprintDaemonProxy.cpp196 int err; in openHal() local
198 if (0 != (err = hw_get_module(FINGERPRINT_HARDWARE_MODULE_ID, &hw_module))) { in openHal()
199 ALOGE("Can't open fingerprint HW Module, error: %d", err); in openHal()
216 if (0 != (err = mModule->common.methods->open(hw_module, NULL, &device))) { in openHal()
217 ALOGE("Can't open fingerprint methods, error: %d", err); in openHal()
227 err = mDevice->set_notify(mDevice, hal_notify_callback); in openHal()
228 if (err < 0) { in openHal()
229 ALOGE("Failed in call to set_notify(), err=%d", err); in openHal()
248 int err; in closeHal() local
249 if (0 != (err = mDevice->common.close(reinterpret_cast<hw_device_t*>(mDevice)))) { in closeHal()
[all …]
/system/bt/stack/avdt/
Davdt_msg.c589 UINT8 err = 0; in avdt_msg_prs_cfg() local
607 while ((p < p_end) && (err == 0)) in avdt_msg_prs_cfg()
612 err = AVDT_ERR_PAYLOAD; in avdt_msg_prs_cfg()
631 err = AVDT_ERR_CATEGORY; in avdt_msg_prs_cfg()
646 err = avdt_msg_ie_err[elem]; in avdt_msg_prs_cfg()
663 err = AVDT_ERR_RECOV_TYPE; in avdt_msg_prs_cfg()
670 err = AVDT_ERR_RECOV_FMT; in avdt_msg_prs_cfg()
703 err = AVDT_ERR_MUX_FMT; in avdt_msg_prs_cfg()
765 AVDT_TRACE_DEBUG("err=0x%x, elem:0x%x psc_mask=0x%x", err, elem, p_cfg->psc_mask); in avdt_msg_prs_cfg()
767 return err; in avdt_msg_prs_cfg()
[all …]
/system/tools/aidl/
Daidl.cpp177 int err = 0; in check_types() local
185 err = 1; // return type is invalid in check_types()
192 err = 1; in check_types()
201 err = 1; in check_types()
207 err = 1; in check_types()
214 err = 1; in check_types()
223 err = 1; in check_types()
236 err = 1; in check_types()
239 return err; in check_types()
512 AidlError err = AidlError::OK; in load_and_validate_aidl() local
[all …]
/system/extras/ANRdaemon/
DANRdaemon.cpp85 static bool err = false; variable
133 err = true; in get_cpu_stat()
191 err = true; in dfs_enable()
204 err = true; in dfs_enable()
208 return (err?-1:0); in dfs_enable()
218 err = true; in dfs_set_property()
224 err = true; in dfs_set_property()
280 err = true; in set_tracing_buffer_size()
286 err = true; in set_tracing_buffer_size()
290 return (err?-1:0); in set_tracing_buffer_size()
[all …]
/system/core/adb/
Dsysdeps_win32.cpp418 const DWORD err = GetLastError(); in adb_open() local
421 switch (err) { in adb_open()
433 D("unknown error: %s", android::base::SystemErrorCodeToString(err).c_str()); in adb_open()
464 const DWORD err = GetLastError(); in adb_creat() local
467 switch (err) { in adb_creat()
479 D("unknown error: %s", android::base::SystemErrorCodeToString(err).c_str()); in adb_creat()
541 char* adb_strerror(int err) { in adb_strerror() argument
553 errmsg = strerror(err); in adb_strerror()
560 switch (err) { in adb_strerror()
600 errmsg = strerror(err); in adb_strerror()
[all …]
Dget_my_path_linux.cpp28 int err = readlink(proc, exe, maxLen - 1); in get_my_path() local
29 if(err > 0) { in get_my_path()
30 exe[err] = '\0'; in get_my_path()
/system/core/fastboot/
Dutil_linux.cpp45 int err = readlink(proc, path, PATH_MAX - 1); in get_my_path() local
47 if(err <= 0) { in get_my_path()
50 path[err] = 0; in get_my_path()

123456