Searched refs:error_msg (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/jni/
H A Dfd_utils.cpp132 static FileDescriptorInfo* CreateFromFd(int fd, std::string* error_msg);
138 bool ReopenOrDetach(std::string* error_msg) const;
164 bool DetachSocket(std::string* error_msg) const;
170 FileDescriptorInfo* FileDescriptorInfo::CreateFromFd(int fd, std::string* error_msg) { argument
175 *error_msg = android::base::StringPrintf("Unable to stat %d", fd);
184 *error_msg = "Unable to get socket name";
189 *error_msg = android::base::StringPrintf("Socket name not whitelisted : %s (fd=%d)",
209 *error_msg = android::base::StringPrintf("Unsupported st_mode %u", f_stat.st_mode);
216 *error_msg = android::base::StringPrintf("Could not read fd link %s: %s",
223 *error_msg
434 Create(const std::vector<int>& fds_to_ignore, std::string* error_msg) argument
472 Restat(const std::vector<int>& fds_to_ignore, std::string* error_msg) argument
510 ReopenOrDetach(std::string* error_msg) argument
527 RestatInternal(std::set<int>& open_fds, std::string* error_msg) argument
[all...]
H A Dfd_utils.h79 std::string* error_msg);
81 bool Restat(const std::vector<int>& fds_to_ignore, std::string* error_msg);
86 bool ReopenOrDetach(std::string* error_msg);
91 bool RestatInternal(std::set<int>& open_fds, std::string* error_msg);
H A Dcom_android_internal_os_Zygote.cpp192 static bool SetGids(JNIEnv* env, jintArray javaGids, std::string* error_msg) { argument
199 *error_msg = CREATE_ERROR("Getting gids int array failed");
204 *error_msg = CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size());
215 static bool SetRLimits(JNIEnv* env, jobjectArray javaRlimits, std::string* error_msg) { argument
227 *error_msg = CREATE_ERROR("rlimits array must have a second dimension of size 3");
236 *error_msg = CREATE_ERROR("setrlimit(%d, {%ld, %ld}) failed", javaRlimit[0], rlim.rlim_cur,
270 static bool EnableKeepCapabilities(std::string* error_msg) { argument
273 *error_msg = CREATE_ERROR("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno));
279 static bool DropCapabilitiesBoundingSet(std::string* error_msg) { argument
287 *error_msg
295 SetInheritable(uint64_t inheritable, std::string* error_msg) argument
318 SetCapabilities(uint64_t permitted, uint64_t effective, uint64_t inheritable, std::string* error_msg) argument
342 SetSchedulerPolicy(std::string* error_msg) argument
381 MountEmulatedStorage(uid_t uid, jint mount_mode, bool force_mount_namespace, std::string* error_msg) argument
459 DetachDescriptors(JNIEnv* env, jintArray fdsToClose, std::string* error_msg) argument
519 FillFileDescriptorVector(JNIEnv* env, jintArray java_fds, std::vector<int>* fds, std::string* error_msg) argument
584 std::string error_msg; local
677 std::string error_msg; local
[all...]
H A Dandroid_content_res_ApkAssets.cpp53 std::string error_msg = base::StringPrintf("Failed to load asset path %s", path.c_str()); local
54 jniThrowException(env, "java/io/IOException", error_msg.c_str());
85 std::string error_msg = base::StringPrintf("Failed to load asset path %s from fd %d", local
87 jniThrowException(env, "java/io/IOException", error_msg.c_str());
H A Dandroid_util_Binder.cpp243 std::string error_msg = base::StringPrintf( local
246 env->FatalError(error_msg.c_str());
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor.cpp70 DiagMessage error_msg(child_el->line_number);
71 error_msg << "unexpected element ";
72 PrintElementToDiagMessage(child_el, &error_msg);
73 error_msg << " found in ";
75 error_msg << "<" << element << ">";
79 diag->Warn(error_msg);
82 diag->Error(error_msg);
113 DiagMessage error_msg(el->line_number);
114 error_msg << "unexpected root element ";
115 PrintElementToDiagMessage(el, &error_msg);
[all...]
/frameworks/base/tools/aapt2/cmd/
H A DUtil.cpp274 std::stringstream error_msg; local
275 error_msg << "'" << attr.value << "' is not a valid integer";
276 *out_error = error_msg.str();
311 std::stringstream error_msg; local
312 error_msg << "'" << attr.value << "' is not a valid SDK version";
313 *out_error = error_msg.str();
338 std::string error_msg; local
339 Maybe<std::string> maybe_package = ExtractCompiledString(*package_attr, &error_msg);
342 << "invalid package name: " << error_msg);
349 Maybe<uint32_t> maybe_code = ExtractCompiledInt(*version_code_attr, &error_msg);
[all...]
/frameworks/base/tools/aapt2/link/
H A DXmlReferenceLinker.cpp104 DiagMessage error_msg(source);
105 error_msg << "attribute ";
106 ReferenceLinker::WriteAttributeName(attr_ref, callsite_, this, &error_msg);
107 error_msg << " " << err_str;
108 context_->GetDiagnostics()->Error(error_msg); variable
H A DReferenceLinker.cpp347 DiagMessage error_msg(reference->GetSource());
348 error_msg << "resource ";
349 WriteResourceName(*reference, callsite, decls, &error_msg);
350 error_msg << " " << err_str;
351 context->GetDiagnostics()->Error(error_msg);
/frameworks/native/cmds/installd/
H A Ddexopt.cpp1687 int* dexopt_needed_out, std::string* error_msg) {
1703 *error_msg = StringPrintf("Dexoptanalyzer return the status of an oat file."
1719 *error_msg = "Dexoptanalyzer path validation failed";
1722 *error_msg = "Dexoptanalyzer open zip failed";
1725 *error_msg = "Dexoptanalyzer dir preparation failed";
1728 *error_msg = "Dexoptanalyzer open output failed";
1731 *error_msg = "Dexoptanalyzer failed to execute";
1735 *error_msg = StringPrintf("Unexpected result from analyzing secondary dex %s result=%d",
1776 char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) {
1779 *error_msg
1686 process_secondary_dexoptanalyzer_result(const std::string& dex_path, int result, int* dexopt_needed_out, std::string* error_msg) argument
1775 create_secondary_dex_oat_layout(const std::string& dex_path, const std::string& isa, char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) argument
1799 validate_dexopt_storage_flags(int dexopt_flags, int* out_storage_flag, std::string* error_msg) argument
1824 process_secondary_dex_dexopt(const std::string& dex_path, const char* pkgname, int dexopt_flags, const char* volume_uuid, int uid, const char* instruction_set, const char* compiler_filter, bool* is_public_out, int* dexopt_needed_out, std::string* oat_dir_out, bool downgrade, const char* class_loader_context, std::string* error_msg) argument
1951 dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* instruction_set, int dexopt_needed, const char* oat_dir, int dexopt_flags, const char* compiler_filter, const char* volume_uuid, const char* class_loader_context, const char* se_info, bool downgrade, int target_sdk_version, const char* profile_name, const char* dex_metadata_path, const char* compilation_reason, std::string* error_msg) argument
2214 std::string error_msg; local
[all...]
H A Dotapreopt.cpp442 std::string error_msg; local
443 bool result = Exec(cmd, &error_msg);
445 LOG(ERROR) << "Could not generate boot image: " << error_msg;
507 std::string error_msg; local
508 bool result = Exec(cmd, &error_msg);
510 LOG(ERROR) << "Could not generate boot image: " << error_msg;
636 static bool Exec(const std::vector<std::string>& arg_vector, std::string* error_msg) { argument
667 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s",
676 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: "
682 *error_msg
[all...]
H A Ddexopt.h109 const char* dexMetadataPath, const char* compilation_reason, std::string* error_msg);
H A DInstalldNativeService.cpp1975 std::string error_msg; local
1978 downgrade, targetSdkVersion, profile_name, dm_path, compilation_reason, &error_msg);
1979 return res ? error(res, error_msg) : ok();
/frameworks/base/tools/aapt2/compile/
H A DPngCrunch.cpp73 static void LogError(png_structp png_ptr, png_const_charp error_msg) { argument
75 diag->Error(DiagMessage() << error_msg);

Completed in 2807 milliseconds