Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp192 static bool SetGids(JNIEnv* env, jintArray javaGids, std::string* error_msg) { in SetGids() argument
199 *error_msg = CREATE_ERROR("Getting gids int array failed"); in SetGids()
204 *error_msg = CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size()); in SetGids()
215 static bool SetRLimits(JNIEnv* env, jobjectArray javaRlimits, std::string* error_msg) { in SetRLimits() argument
227 *error_msg = CREATE_ERROR("rlimits array must have a second dimension of size 3"); in SetRLimits()
236 *error_msg = CREATE_ERROR("setrlimit(%d, {%ld, %ld}) failed", javaRlimit[0], rlim.rlim_cur, in SetRLimits()
270 static bool EnableKeepCapabilities(std::string* error_msg) { in EnableKeepCapabilities() argument
273 *error_msg = CREATE_ERROR("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno)); in EnableKeepCapabilities()
279 static bool DropCapabilitiesBoundingSet(std::string* error_msg) { in DropCapabilitiesBoundingSet() argument
287 *error_msg = CREATE_ERROR("prctl(PR_CAPBSET_DROP, %d) failed: %s", i, strerror(errno)); in DropCapabilitiesBoundingSet()
[all …]
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) { in CreateFromFd() argument
175 *error_msg = android::base::StringPrintf("Unable to stat %d", fd); in CreateFromFd()
184 *error_msg = "Unable to get socket name"; in CreateFromFd()
189 *error_msg = android::base::StringPrintf("Socket name not whitelisted : %s (fd=%d)", in CreateFromFd()
209 *error_msg = android::base::StringPrintf("Unsupported st_mode %u", f_stat.st_mode); in CreateFromFd()
216 *error_msg = android::base::StringPrintf("Could not read fd link %s: %s", in CreateFromFd()
223 *error_msg = std::string("Not whitelisted : ").append(file_path); in CreateFromFd()
[all …]
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);
Dandroid_content_res_ApkAssets.cpp53 std::string error_msg = base::StringPrintf("Failed to load asset path %s", path.c_str()); in NativeLoad() local
54 jniThrowException(env, "java/io/IOException", error_msg.c_str()); in NativeLoad()
85 std::string error_msg = base::StringPrintf("Failed to load asset path %s from fd %d", in NativeLoadFromFd() local
87 jniThrowException(env, "java/io/IOException", error_msg.c_str()); in NativeLoadFromFd()
Dandroid_util_Binder.cpp243 std::string error_msg = base::StringPrintf( in report_java_lang_error_fatal_error() local
246 env->FatalError(error_msg.c_str()); in report_java_lang_error_fatal_error()
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp70 DiagMessage error_msg(child_el->line_number); in Execute() local
71 error_msg << "unexpected element "; in Execute()
72 PrintElementToDiagMessage(child_el, &error_msg); in Execute()
73 error_msg << " found in "; in Execute()
75 error_msg << "<" << element << ">"; in Execute()
79 diag->Warn(error_msg); in Execute()
82 diag->Error(error_msg); in Execute()
113 DiagMessage error_msg(el->line_number); in Execute() local
114 error_msg << "unexpected root element "; in Execute()
115 PrintElementToDiagMessage(el, &error_msg); in Execute()
[all …]
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp274 std::stringstream error_msg; in ExtractCompiledInt() local
275 error_msg << "'" << attr.value << "' is not a valid integer"; in ExtractCompiledInt()
276 *out_error = error_msg.str(); in ExtractCompiledInt()
311 std::stringstream error_msg; in ExtractSdkVersion() local
312 error_msg << "'" << attr.value << "' is not a valid SDK version"; in ExtractSdkVersion()
313 *out_error = error_msg.str(); in ExtractSdkVersion()
338 std::string error_msg; in ExtractAppInfoFromBinaryManifest() local
339 Maybe<std::string> maybe_package = ExtractCompiledString(*package_attr, &error_msg); in ExtractAppInfoFromBinaryManifest()
342 << "invalid package name: " << error_msg); in ExtractAppInfoFromBinaryManifest()
349 Maybe<uint32_t> maybe_code = ExtractCompiledInt(*version_code_attr, &error_msg); in ExtractAppInfoFromBinaryManifest()
[all …]
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp104 DiagMessage error_msg(source); in Visit() local
105 error_msg << "attribute "; in Visit()
106 ReferenceLinker::WriteAttributeName(attr_ref, callsite_, this, &error_msg); in Visit()
107 error_msg << " " << err_str; in Visit()
108 context_->GetDiagnostics()->Error(error_msg); in Visit()
DReferenceLinker.cpp347 DiagMessage error_msg(reference->GetSource()); in LinkReference() local
348 error_msg << "resource "; in LinkReference()
349 WriteResourceName(*reference, callsite, decls, &error_msg); in LinkReference()
350 error_msg << " " << err_str; in LinkReference()
351 context->GetDiagnostics()->Error(error_msg); in LinkReference()
/frameworks/native/cmds/installd/
Ddexopt.cpp1687 int* dexopt_needed_out, std::string* error_msg) { in process_secondary_dexoptanalyzer_result() argument
1703 *error_msg = StringPrintf("Dexoptanalyzer return the status of an oat file." in process_secondary_dexoptanalyzer_result()
1719 *error_msg = "Dexoptanalyzer path validation failed"; in process_secondary_dexoptanalyzer_result()
1722 *error_msg = "Dexoptanalyzer open zip failed"; in process_secondary_dexoptanalyzer_result()
1725 *error_msg = "Dexoptanalyzer dir preparation failed"; in process_secondary_dexoptanalyzer_result()
1728 *error_msg = "Dexoptanalyzer open output failed"; in process_secondary_dexoptanalyzer_result()
1731 *error_msg = "Dexoptanalyzer failed to execute"; in process_secondary_dexoptanalyzer_result()
1735 *error_msg = StringPrintf("Unexpected result from analyzing secondary dex %s result=%d", in process_secondary_dexoptanalyzer_result()
1776 char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) { in create_secondary_dex_oat_layout() argument
1779 *error_msg = std::string("Unexpected dir structure for dex file ").append(dex_path); in create_secondary_dex_oat_layout()
[all …]
Dotapreopt.cpp442 std::string error_msg; in PatchoatBootImage() local
443 bool result = Exec(cmd, &error_msg); in PatchoatBootImage()
445 LOG(ERROR) << "Could not generate boot image: " << error_msg; in PatchoatBootImage()
507 std::string error_msg; in Dex2oatBootImage() local
508 bool result = Exec(cmd, &error_msg); in Dex2oatBootImage()
510 LOG(ERROR) << "Could not generate boot image: " << error_msg; in Dex2oatBootImage()
636 static bool Exec(const std::vector<std::string>& arg_vector, std::string* error_msg) { in Exec() argument
667 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in Exec()
676 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in Exec()
682 *error_msg = StringPrintf("Failed execv(%s) because non-0 exit status", in Exec()
Ddexopt.h109 const char* dexMetadataPath, const char* compilation_reason, std::string* error_msg);
DInstalldNativeService.cpp1975 std::string error_msg; in dexopt() local
1978 downgrade, targetSdkVersion, profile_name, dm_path, compilation_reason, &error_msg); in dexopt()
1979 return res ? error(res, error_msg) : ok(); in dexopt()
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp73 static void LogError(png_structp png_ptr, png_const_charp error_msg) { in LogError() argument
75 diag->Error(DiagMessage() << error_msg); in LogError()