| /packages/modules/adb/ |
| D | socket_spec_test.cpp | 30 std::string hostname, error, serial; in TEST() local 35 EXPECT_FALSE(parse_tcp_socket_spec(spec, &hostname, &port, &serial, &error)); in TEST() 36 EXPECT_TRUE(error.find("sneakernet") != std::string::npos); in TEST() 37 EXPECT_EQ(error, "specification is not tcp: " + spec); in TEST() 41 std::string hostname, error, serial; in TEST() local 43 EXPECT_TRUE(parse_tcp_socket_spec("tcp:5037", &hostname, &port, &serial, &error)); in TEST() 50 std::string hostname, error, serial; in TEST() local 52 EXPECT_FALSE(parse_tcp_socket_spec("tcp:", &hostname, &port, &serial, &error)); in TEST() 53 EXPECT_FALSE(parse_tcp_socket_spec("tcp:-1", &hostname, &port, &serial, &error)); in TEST() 54 EXPECT_FALSE(parse_tcp_socket_spec("tcp:65536", &hostname, &port, &serial, &error)); in TEST() [all …]
|
| D | adb_listeners_test.cpp | 68 std::string error; in TEST_F() local 71 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() 72 ASSERT_TRUE(error.empty()); in TEST_F() 78 std::string error; in TEST_F() local 81 install_listener("tcp:9000", "tcp:9000", &transport_, false, nullptr, &error)); in TEST_F() 82 ASSERT_TRUE(error.empty()); in TEST_F() 85 install_listener("tcp:9000", "tcp:9001", &transport_, false, nullptr, &error)); in TEST_F() 86 ASSERT_TRUE(error.empty()); in TEST_F() 92 std::string error; in TEST_F() local 95 install_listener("tcp:9000", "tcp:9000", &transport_, true, nullptr, &error)); in TEST_F() [all …]
|
| D | socket_spec.cpp | 79 std::string* serial, std::string* error) { in parse_tcp_socket_spec() argument 81 *error = "specification is not tcp: "; in parse_tcp_socket_spec() 82 *error += spec; in parse_tcp_socket_spec() 95 *error = StringPrintf("bad port number '%d'", port_value); in parse_tcp_socket_spec() 104 if (!android::base::ParseNetAddress(addr, &hostname_value, &port_value, serial, error)) { in parse_tcp_socket_spec() 120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port() argument 123 if (!parse_tcp_socket_spec(spec, nullptr, &port, nullptr, error)) { in get_host_socket_spec_port() 131 *error = "given vsock server socket string was invalid"; in get_host_socket_spec_port() 135 *error = "could not parse vsock port"; in get_host_socket_spec_port() 140 *error = "vsock port was negative."; in get_host_socket_spec_port() [all …]
|
| /packages/modules/ConfigInfrastructure/aconfigd/src/ |
| D | lib.rs | 32 #[error("failed to update file permission of {} to {}: {:?}", .file, .mode, .errmsg)] 35 #[error("failed to copy file from {} to {}: {:?}", .src, .dst, .errmsg)] 38 #[error("fail to remove file {}: {:?}", .file, .errmsg)] 41 #[error("fail to open file {}: {:?}", .file, .errmsg)] 44 #[error("fail to read file {}: {:?}", .file, .errmsg)] 47 #[error("fail to write file {}: {:?}", .file, .errmsg)] 50 #[error("fail to parse to protobuf from bytes for {}: {:?}", .file, .errmsg)] 53 #[error("fail to serialize protobuf to bytes for file {}: {:?}", .file, .errmsg)] 56 #[error("fail to get hasher for digest: {:?}", .errmsg)] 57 FailToGetHasherForDigest { errmsg: openssl::error::ErrorStack }, [all …]
|
| /packages/modules/adb/client/ |
| D | adb_client.cpp | 81 static std::optional<TransportId> switch_socket_transport(int fd, std::string* error) { in switch_socket_transport() argument 115 *error = perror_str("write failure during connection"); in switch_socket_transport() 121 if (!adb_status(fd, error)) { in switch_socket_transport() 122 D("Switch transport failed: %s", error->c_str()); in switch_socket_transport() 128 *error = "failed to read transport id from server"; in switch_socket_transport() 137 bool adb_status(borrowed_fd fd, std::string* error) { in adb_status() argument 140 *error = perror_str("protocol fault (couldn't read status)"); in adb_status() 149 *error = android::base::StringPrintf("protocol fault (status %02x %02x %02x %02x?!)", in adb_status() 154 ReadProtocolString(fd, error, error); in adb_status() 158 static int _adb_connect(std::string_view service, TransportId* transport, std::string* error, in _adb_connect() argument [all …]
|
| /packages/modules/adb/sysdeps/posix/ |
| D | network.cpp | 32 static void set_error(std::string* error) { in set_error() argument 33 if (error) { in set_error() 34 *error = strerror(errno); in set_error() 58 static int _network_loopback_client(bool ipv6, int port, int type, std::string* error) { in _network_loopback_client() argument 61 set_error(error); in _network_loopback_client() 70 set_error(error); in _network_loopback_client() 77 set_error(error); in _network_loopback_client() 84 int network_loopback_client(int port, int type, std::string* error) { in network_loopback_client() argument 86 int rc = _network_loopback_client(false, port, type, error); in network_loopback_client() 88 return _network_loopback_client(true, port, type, error); in network_loopback_client() [all …]
|
| /packages/modules/Bluetooth/system/btif/src/ |
| D | btif_sock_sdp.cc | 121 goto error; in create_base_record() 130 goto error; in create_base_record() 137 goto error; in create_base_record() 146 error: in create_base_record() 147 log::error( in create_base_record() 162 log::error("failed to create sdp record, scn: {}, service_name: {}", channel, name); in add_sdp_by_uuid() 179 goto error; in add_sdp_by_uuid() 192 goto error; in add_sdp_by_uuid() 205 error: in add_sdp_by_uuid() 209 log::error("failed to register service stage: {}, service_name: {}", stage, name); in add_sdp_by_uuid() [all …]
|
| D | btif_sock_sco.cc | 145 log::error("unable to allocate socket pair: {}", strerror(errno)); in sco_socket_establish_locked() 146 goto error; in sco_socket_establish_locked() 151 log::error("unable to allocate new SCO socket."); in sco_socket_establish_locked() 152 goto error; in sco_socket_establish_locked() 160 log::error("unable to create SCO socket: {}", status); in sco_socket_establish_locked() 161 goto error; in sco_socket_establish_locked() 166 log::error("unable to allocate socket from file descriptor {}.", pair[1]); in sco_socket_establish_locked() 167 goto error; in sco_socket_establish_locked() 177 error: in sco_socket_establish_locked() 243 log::error("unable to find sco_socket for handle: {}", conn_data->sco_inx); in connection_request_cb() [all …]
|
| /packages/modules/Connectivity/staticlibs/native/bpfmapjni/ |
| D | com_android_net_module_util_TcUtils.cpp | 27 static void throwIOException(JNIEnv *env, const char *msg, int error) { in throwIOException() argument 29 strerror(error)); in throwIOException() 41 int error = isEthernet(interface.c_str(), result); in com_android_net_module_util_TcUtils_isEthernet() local 42 if (error) { in com_android_net_module_util_TcUtils_isEthernet() 44 env, "com_android_net_module_util_TcUtils_isEthernet error: ", -error); in com_android_net_module_util_TcUtils_isEthernet() 56 int error = tcAddBpfFilter(ifIndex, ingress, prio, proto, pathname.c_str()); in com_android_net_module_util_TcUtils_tcFilterAddDevBpf() local 57 if (error) { in com_android_net_module_util_TcUtils_tcFilterAddDevBpf() 60 "com_android_net_module_util_TcUtils_tcFilterAddDevBpf error: ", -error); in com_android_net_module_util_TcUtils_tcFilterAddDevBpf() 72 int error = tcAddIngressPoliceFilter(ifIndex, prio, proto, rateInBytesPerSec, in com_android_net_module_util_TcUtils_tcFilterAddDevIngressPolice() local 74 if (error) { in com_android_net_module_util_TcUtils_tcFilterAddDevIngressPolice() [all …]
|
| /packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/ |
| D | audio_sink_hal_client.cc | 89 log::error("Can't get LE Audio HAL interface"); in Acquire() 96 log::error("Can't get Audio HAL Audio source interface"); in Acquire() 124 log::error("Can't get LE Audio HAL interface"); in Release() 134 log::error("audioSinkCallbacks_ not set"); in OnResumeReq() 145 log::error("do_in_main_thread err={}", status); in OnResumeReq() 151 log::error("audioSinkCallbacks_ not set"); in OnSuspendReq() 162 log::error("do_in_main_thread err={}", status); in OnSuspendReq() 168 log::error("audioSinkCallbacks_ not set"); in OnMetadataUpdateReq() 182 log::error("do_in_main_thread err={}", status); in OnMetadataUpdateReq() 189 log::error("Audio HAL Audio source interface not acquired"); in Start() [all …]
|
| /packages/modules/Bluetooth/android/app/jni/ |
| D | com_android_bluetooth_hid_host.cpp | 57 log::error("Fail to new jbyteArray bd addr"); in marshall_bda() 72 log::error("mCallbacksObj is null"); in connection_state_callback() 77 log::error("Fail to new jbyteArray bd addr for HID channel state"); in connection_state_callback() 94 log::error("mCallbacksObj is null"); in get_protocol_mode_callback() 98 log::error("BTHH Status is not OK!"); in get_protocol_mode_callback() 104 log::error("Fail to new jbyteArray bd addr for get protocol mode callback"); in get_protocol_mode_callback() 121 log::error("mCallbacksObj is null"); in get_report_callback() 125 log::error("BTHH Status is not OK!"); in get_report_callback() 131 log::error("Fail to new jbyteArray bd addr for get report callback"); in get_report_callback() 136 log::error("Fail to new jbyteArray data for get report callback"); in get_report_callback() [all …]
|
| D | com_android_bluetooth_avrcp_controller.cpp | 83 log::error("sCallbacksObj is null"); in btavrcp_connection_state_callback() 90 log::error("Failed to allocate a new byte array"); in btavrcp_connection_state_callback() 118 log::error("sCallbacksObj is null"); in btavrcp_playerapplicationsetting_callback() 125 log::error("Failed to allocate a new byte array"); in btavrcp_playerapplicationsetting_callback() 142 log::error("Failed to allocate a new byte array"); in btavrcp_playerapplicationsetting_callback() 168 log::error("sCallbacksObj is null"); in btavrcp_playerapplicationsetting_changed_callback() 175 log::error("Failed to allocate a new byte array"); in btavrcp_playerapplicationsetting_changed_callback() 184 log::error("Fail to new jbyteArray playerattribs"); in btavrcp_playerapplicationsetting_changed_callback() 209 log::error("sCallbacksObj is null"); in btavrcp_set_abs_vol_cmd_callback() 216 log::error("Failed to allocate a new byte array"); in btavrcp_set_abs_vol_cmd_callback() [all …]
|
| D | com_android_bluetooth_hfp.cpp | 75 log::error("Fail to new jbyteArray bd addr"); in marshall_bda() 137 log::error("Fail to new jbyteArray bd addr for audio state"); in VoiceRecognitionCallback() 153 log::error("Fail to new jbyteArray bd addr for audio state"); in AnswerCallCallback() 169 log::error("Fail to new jbyteArray bd addr for audio state"); in HangupCallCallback() 186 log::error("Fail to new jbyteArray bd addr for audio state"); in VolumeControlCallback() 203 log::error("Fail to new jbyteArray bd addr for audio state"); in DialCallCallback() 209 log::error("number is not a valid UTF string."); in DialCallCallback() 226 log::error("Fail to new jbyteArray bd addr for audio state"); in DtmfCmdCallback() 243 log::error("Fail to new jbyteArray bd addr for audio state"); in NoiseReductionCallback() 291 log::error("Fail to new jbyteArray bd addr for audio state"); in AtChldCallback() [all …]
|
| D | com_android_bluetooth_pan.cpp | 46 log::error("Fail to new jbyteArray bd addr"); in marshall_bda() 53 static void control_state_callback(btpan_control_state_t state, int local_role, bt_status_t error, in control_state_callback() argument 57 log::error("Callbacks Obj is NULL"); in control_state_callback() 66 (jint)state, (jint)error, js_ifname.get()); in control_state_callback() 69 static void connection_state_callback(btpan_connection_state_t state, bt_status_t error, in connection_state_callback() argument 73 log::error("Callbacks Obj is NULL"); in connection_state_callback() 82 log::error("Fail to new jbyteArray bd addr for PAN channel state"); in connection_state_callback() 86 (jint)error, (jint)local_role, (jint)remote_role); in connection_state_callback() 103 log::error("Bluetooth module is not loaded"); in initializeNative() 121 log::error("Failed to get Bluetooth PAN Interface"); in initializeNative() [all …]
|
| /packages/modules/Bluetooth/system/gd/os/linux_generic/ |
| D | files.cc | 59 log::error("unable to rename file from '{}' to '{}', error: {}", from, to, strerror(errno)); in RenameFile() 120 log::error("error extracting directory from '{}', error: {}", path, strerror(errno)); in WriteToFile() 126 log::error("unable to open dir '{}', error: {}", directory_path, strerror(errno)); in WriteToFile() 132 log::error("unable to open file '{}', error: {}", temp_path, strerror(errno)); in WriteToFile() 138 log::error("unable to write to file '{}', error: {}", temp_path, strerror(errno)); in WriteToFile() 145 log::error("unable to flush buffer to file '{}', error: {}", temp_path, strerror(errno)); in WriteToFile() 158 log::error("unable to close file '{}', error: {}", temp_path, strerror(errno)); in WriteToFile() 166 log::error("unable to change file permissions '{}', error: {}", temp_path, strerror(errno)); in WriteToFile() 170 log::error("dir st_mode = 0x{:02x}", dirstat.st_mode); in WriteToFile() 171 log::error("dir uid = {}", dirstat.st_uid); in WriteToFile() [all …]
|
| /packages/modules/Bluetooth/system/stack/mmc/codec_client/ |
| D | codec_client.cc | 75 log::error("Failed to connect system bus"); in CodecClient() 83 log::error("Failed to get object proxy"); in CodecClient() 107 log::error("Failed to encode CodecInitRequest protobuf"); in init() 121 log::error("CodecInit failed"); in init() 128 log::error("Failed to parse response protobuf"); in init() 133 log::error("CodecInit returned empty socket token"); in init() 138 log::error("CodecInit returned negative frame size"); in init() 145 log::error("Failed to create socket: {}", strerror(errno)); in init() 156 log::error("Failed to connect socket: {}", strerror(errno)); in init() 198 log::error("Buffer is null"); in transcode() [all …]
|
| /packages/modules/StatsD/statsd/src/utils/ |
| D | DbUtils.cpp | 145 char* error = nullptr; in createTableIfNeeded() local 147 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in createTableIfNeeded() 149 if (error) { in createTableIfNeeded() 150 ALOGW("Failed to create table to db: %s", error); in createTableIfNeeded() 198 char* error = nullptr; in deleteTable() local 199 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in deleteTable() 201 if (error) { in deleteTable() 202 ALOGW("Failed to drop table from db: %s", error); in deleteTable() 284 string& error) { in insert() argument 288 error = sqlite3_errmsg(db); in insert() [all …]
|
| /packages/modules/Connectivity/staticlibs/native/tcutils/ |
| D | tcutils.cpp | 330 int error = errno; in initBpfFd() local 331 ALOGE("retrieveProgram failed: %d", error); in initBpfFd() 332 return -error; in initBpfFd() 368 int error = errno; in sendAndProcessNetlinkResponse() local 370 error); in sendAndProcessNetlinkResponse() 371 return -error; in sendAndProcessNetlinkResponse() 376 int error = errno; in sendAndProcessNetlinkResponse() local 377 ALOGE("setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, 1): %d", error); in sendAndProcessNetlinkResponse() 378 return -error; in sendAndProcessNetlinkResponse() 382 int error = errno; in sendAndProcessNetlinkResponse() local [all …]
|
| /packages/modules/Bluetooth/system/bta/sdp/ |
| D | bta_sdp_act.cc | 64 log::error("ATTR_ID_MAP_SUPPORTED_FEATURES attr type or size wrong!!"); in bta_create_mns_sdp_record() 67 log::error("ATTR_ID_MAP_SUPPORTED_FEATURES attr not found!!"); in bta_create_mns_sdp_record() 76 log::error("ATTR_ID_SERVICE_NAME attr type not TEXT_STR_DESC_TYPE!!"); in bta_create_mns_sdp_record() 79 log::error("ATTR_ID_SERVICE_NAME attr not found!!"); in bta_create_mns_sdp_record() 98 log::error("ATTR_ID_GOEP_L2CAP_PSM attr type or len wrong!!"); in bta_create_mns_sdp_record() 101 log::error("ATTR_ID_GOEP_L2CAP_PSM attr not found!!"); in bta_create_mns_sdp_record() 127 log::error("ATTR_ID_MAS_INSTANCE_ID attr type or len wrong!!"); in bta_create_mas_sdp_record() 130 log::error("ATTR_ID_MAS_INSTANCE_ID attr not found!!"); in bta_create_mas_sdp_record() 140 log::error("ATTR_ID_SUPPORTED_MSG_TYPE attr type or len wrong!!"); in bta_create_mas_sdp_record() 143 log::error("ATTR_ID_SUPPORTED_MSG_TYPE attr not found!!"); in bta_create_mas_sdp_record() [all …]
|
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
| D | ProvisioningManagerHelper.java | 80 public void error(int titleId, int messageId, boolean factoryResetRequired) { in error() method in ProvisioningManagerHelper 84 callback.error(titleId, messageId, factoryResetRequired); in error() 92 public void error(int titleId, String message, boolean factoryResetRequired) { in error() method in ProvisioningManagerHelper 96 callback.error(titleId, message, factoryResetRequired); in error() 108 final Pair<Pair<Integer, Integer>, Boolean> error = mLastError; in callLastCallbackLocked() local 110 callback.error(error.first.first, error.first.second, error.second); in callLastCallbackLocked() 113 final Pair<Pair<Integer, String>, Boolean> error = mLastTextError; in callLastCallbackLocked() local 115 callback.error(error.first.first, error.first.second, error.second); in callLastCallbackLocked()
|
| /packages/modules/Bluetooth/system/osi/src/ |
| D | config.cc | 96 log::error("unable to open file '{}': {}", filename, strerror(errno)); in config_new() 111 log::error("unable to locate file '{}'", filename); in checksum_read() 116 log::error("unable to read file '{}'", filename); in checksum_read() 286 log::error("error extracting directory from '{}': {}", filename, strerror(errno)); in config_save() 287 goto error; in config_save() 292 log::error("unable to open dir '{}': {}", directoryname, strerror(errno)); in config_save() 293 goto error; in config_save() 298 log::error("unable to write to file '{}': {}", temp_filename, strerror(errno)); in config_save() 299 goto error; in config_save() 313 log::error("unable to write to file '{}': {}", temp_filename, strerror(errno)); in config_save() [all …]
|
| /packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/ |
| D | FingerprintEnrollInteractor.kt | 84 trySend(FingerEnrollState.EnrollProgress(remaining, totalSteps!!)).onFailure { error -> in enroll() method 85 Log.d(TAG, "onEnrollmentProgress($remaining) failed to send, due to $error") in enroll() 95 trySend(FingerEnrollState.EnrollHelp(helpMsgId, helpString.toString())).onFailure { error in enroll() method 97 Log.d(TAG, "onEnrollmentHelp failed to send, due to $error") in enroll() 102 trySend(errMsgId.toEnrollError(fingerprintFlow == SetupWizard)).onFailure { error -> in enroll() method 103 Log.d(TAG, "onEnrollmentError failed to send, due to $error") in enroll() 111 trySend(FingerEnrollState.PointerDown(sensorId)).onFailure { error -> in enroll() method 112 Log.d(TAG, "onUdfpsPointerDown failed to send, due to $error") in enroll() 117 trySend(FingerEnrollState.PointerUp(sensorId)).onFailure { error -> in enroll() method 118 Log.d(TAG, "onUdfpsPointerUp failed to send, due to $error") in enroll() [all …]
|
| D | EnrollFingerprintInteractorImpl.kt | 75 trySend(FingerEnrollState.EnrollProgress(remaining, totalSteps!!)).onFailure { error -> in <lambda>() method 76 Log.d(TAG, "onEnrollmentProgress($remaining) failed to send, due to $error") in <lambda>() 86 trySend(FingerEnrollState.EnrollHelp(helpMsgId, helpString.toString())).onFailure { error in <lambda>() method 88 Log.d(TAG, "onEnrollmentHelp failed to send, due to $error") in <lambda>() 93 trySend(errMsgId.toEnrollError(fingerprintFlow == SetupWizard)).onFailure { error -> in <lambda>() method 94 Log.d(TAG, "onEnrollmentError failed to send, due to $error") in <lambda>() 102 trySend(FingerEnrollState.PointerDown(sensorId)).onFailure { error -> in <lambda>() method 103 Log.d(TAG, "onUdfpsPointerDown failed to send, due to $error") in <lambda>() 108 trySend(FingerEnrollState.PointerUp(sensorId)).onFailure { error -> in <lambda>() method 109 Log.d(TAG, "onUdfpsPointerUp failed to send, due to $error") in <lambda>() [all …]
|
| /packages/modules/Connectivity/bpf/headers/include/bpf/ |
| D | BpfMap.h | 45 void Abort(int __unused error, const char* __unused fmt, ...) { in Abort() argument 52 if (error) fprintf(stderr, "; errno=%d [%s]", error, strerror(error)); in Abort() 215 if (key.error().code() == ENOENT) return true; in isEmpty() 216 return key.error(); in isEmpty() 234 if (curKey.error().code() == ENOENT) return {}; in iterate() 235 return curKey.error(); in iterate() 246 if (!curValue.ok()) return curValue.error(); in iterateWithValue() 251 if (curKey.error().code() == ENOENT) return {}; in iterateWithValue() 252 return curKey.error(); in iterateWithValue() 296 if (key.error().code() == ENOENT) return {}; // empty: success in clear() [all …]
|
| /packages/modules/Connectivity/framework/src/android/net/ |
| D | SocketKeepalive.java | 222 public final int error; field in SocketKeepalive.ErrorCodeException 223 public ErrorCodeException(final int error, final Throwable e) { in ErrorCodeException() argument 225 this.error = error; in ErrorCodeException() 227 public ErrorCodeException(final int error) { in ErrorCodeException() argument 228 this.error = error; in ErrorCodeException() 238 public InvalidSocketException(final int error, final Throwable e) { in InvalidSocketException() argument 239 super(error, e); in InvalidSocketException() 241 public InvalidSocketException(final int error) { in InvalidSocketException() argument 242 super(error); in InvalidSocketException() 315 public void onError(int error) { in SocketKeepalive() [all …]
|