/system/core/adf/libadf/tests/ |
D | adf_test.cpp | 29 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/ |
D | NetdNativeService.cpp | 55 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/ |
D | packagelistparser.c | 119 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/ |
D | sync.c | 41 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/ |
D | autosuspend_earlysuspend.c | 50 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 …]
|
D | autosuspend_autosleep.c | 47 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/ |
D | neverallow.c | 39 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/ |
D | UidRange.cpp | 46 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/ |
D | service.h | 78 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 …]
|
D | action.cpp | 71 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 …]
|
D | keyword_map.h | 36 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/ |
D | adfhwc.cpp | 92 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/ |
D | socket_local_server.c | 46 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) {
|
D | socket_local_client.c | 116 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/ |
D | IKeystoreService.cpp | 432 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/ |
D | socket_local_server_unix.c | 60 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/ |
D | adf.c | 109 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/ |
D | position.c | 75 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/ |
D | FingerprintDaemonProxy.cpp | 196 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/ |
D | avdt_msg.c | 589 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/ |
D | aidl.cpp | 177 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/ |
D | ANRdaemon.cpp | 85 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/ |
D | sysdeps_win32.cpp | 418 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 …]
|
D | get_my_path_linux.cpp | 28 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/ |
D | util_linux.cpp | 45 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()
|