Home
last modified time | relevance | path

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

/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.cpp290 std::stringstream error_msg; in ExtractCompiledInt() local
291 error_msg << "'" << attr.value << "' is not a valid integer"; in ExtractCompiledInt()
292 *out_error = error_msg.str(); in ExtractCompiledInt()
327 std::stringstream error_msg; in ExtractSdkVersion() local
328 error_msg << "'" << attr.value << "' is not a valid SDK version"; in ExtractSdkVersion()
329 *out_error = error_msg.str(); in ExtractSdkVersion()
354 std::string error_msg; in ExtractAppInfoFromBinaryManifest() local
355 Maybe<std::string> maybe_package = ExtractCompiledString(*package_attr, &error_msg); in ExtractAppInfoFromBinaryManifest()
358 << "invalid package name: " << error_msg); in ExtractAppInfoFromBinaryManifest()
365 Maybe<uint32_t> maybe_code = ExtractCompiledInt(*version_code_attr, &error_msg); in ExtractAppInfoFromBinaryManifest()
[all …]
/frameworks/base/core/jni/
Dandroid_view_CompositionSamplingListener.cpp90 constexpr auto error_msg = "Couldn't addRegionSamplingListener"; in nativeRegister() local
91 ALOGE(error_msg); in nativeRegister()
92 jniThrowRuntimeException(env, error_msg); in nativeRegister()
100 constexpr auto error_msg = "Couldn't removeRegionSamplingListener"; in nativeUnregister() local
101 ALOGE(error_msg); in nativeUnregister()
102 jniThrowRuntimeException(env, error_msg); in nativeUnregister()
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()
86 std::string error_msg = base::StringPrintf("Failed to load asset path %s from fd %d", in NativeLoadFromFd() local
88 jniThrowException(env, "java/io/IOException", error_msg.c_str()); in NativeLoadFromFd()
Dcom_android_internal_os_Zygote.cpp882 const std::string& error_msg = in ZygoteFailure() local
885 env->FatalError(error_msg.c_str()); in ZygoteFailure()
Dandroid_util_Binder.cpp278 std::string error_msg = base::StringPrintf( in report_java_lang_error_fatal_error() local
281 env->FatalError(error_msg.c_str()); in report_java_lang_error_fatal_error()
/frameworks/base/keystore/java/android/security/keystore/
DKeystoreResponse.java38 final String error_msg = in.readString();
39 return new KeystoreResponse(error_code, error_msg);
48 protected KeystoreResponse(int error_code, String error_msg) { in KeystoreResponse() argument
50 this.error_msg_ = error_msg; in KeystoreResponse()
/frameworks/native/cmds/installd/
Dotapreopt_utils.cpp33 bool Exec(const std::vector<std::string>& arg_vector, std::string* error_msg) { in Exec() argument
64 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in Exec()
73 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in Exec()
79 *error_msg = StringPrintf("Failed execv(%s) because non-0 exit status", in Exec()
Ddexopt.cpp1729 int* dexopt_needed_out, std::string* error_msg) { in process_secondary_dexoptanalyzer_result() argument
1742 *error_msg = StringPrintf("Dexoptanalyzer return the status of an oat file." in process_secondary_dexoptanalyzer_result()
1758 *error_msg = "Dexoptanalyzer path validation failed"; in process_secondary_dexoptanalyzer_result()
1761 *error_msg = "Dexoptanalyzer open zip failed"; in process_secondary_dexoptanalyzer_result()
1764 *error_msg = "Dexoptanalyzer dir preparation failed"; in process_secondary_dexoptanalyzer_result()
1767 *error_msg = "Dexoptanalyzer open output failed"; in process_secondary_dexoptanalyzer_result()
1770 *error_msg = "Dexoptanalyzer failed to execute"; in process_secondary_dexoptanalyzer_result()
1774 *error_msg = StringPrintf("Unexpected result from analyzing secondary dex %s result=%d", in process_secondary_dexoptanalyzer_result()
1815 char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) { in create_secondary_dex_oat_layout() argument
1818 *error_msg = std::string("Unexpected dir structure for dex file ").append(dex_path); in create_secondary_dex_oat_layout()
[all …]
Dotapreopt_chroot.cpp269 std::string error_msg; in otapreopt_chroot() local
270 bool exec_result = Exec(cmd, &error_msg); in otapreopt_chroot()
272 LOG(ERROR) << "Running otapreopt failed: " << error_msg; in otapreopt_chroot()
Dotapreopt_utils.h34 bool Exec(const std::vector<std::string>& arg_vector, std::string* error_msg);
Ddexopt.h122 const char* dexMetadataPath, const char* compilation_reason, std::string* error_msg);
DInstalldNativeService.cpp2316 std::string error_msg; in dexopt() local
2319 downgrade, targetSdkVersion, profile_name, dm_path, compilation_reason, &error_msg); in dexopt()
2320 return res ? error(res, error_msg) : ok(); in dexopt()
/frameworks/native/cmds/installd/tests/
Dtest_utils.h96 uid_t uid, gid_t gid, int mode, std::string* error_msg) { in WriteBase64ToFile() argument
108 *error_msg = StringPrintf("Could not open file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
116 *error_msg = StringPrintf("Could not write file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
123 *error_msg = StringPrintf("Could not chown file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
127 *error_msg = StringPrintf("Could not chmod file %s: %s", file.c_str(), strerror(errno)); in WriteBase64ToFile()
Dinstalld_dexopt_test.cpp255 std::string error_msg; in create_mock_app() local
256 if (!WriteBase64ToFile(kDexFile, apk_path_, kSystemUid, kSystemGid, 0644, &error_msg)) { in create_mock_app()
258 << " : " << error_msg; in create_mock_app()
306 &error_msg)) { in create_mock_app()
308 << secondary_dex_ce_ << " : " << error_msg; in create_mock_app()
323 &error_msg)) { in create_mock_app()
325 << secondary_dex_de_ << " : " << error_msg; in create_mock_app()
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp105 DiagMessage error_msg(source); in Visit() local
106 error_msg << "attribute "; in Visit()
107 ReferenceLinker::WriteAttributeName(attr_ref, callsite_, this, &error_msg); in Visit()
108 error_msg << " " << err_str; in Visit()
109 context_->GetDiagnostics()->Error(error_msg); in Visit()
DReferenceLinker.cpp348 DiagMessage error_msg(reference->GetSource()); in LinkReference() local
349 error_msg << "resource "; in LinkReference()
350 WriteResourceName(*reference, callsite, decls, &error_msg); in LinkReference()
351 error_msg << " " << err_str; in LinkReference()
352 context->GetDiagnostics()->Error(error_msg); in LinkReference()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp144 char* error_msg = nullptr; in Open() local
146 app_namespace, path_.c_str(), &native_bridge_, &error_msg); in Open()
148 ALOGE("failed to load layer library '%s': %s", path_.c_str(), error_msg); in Open()
149 android::NativeLoaderFreeErrorMessage(error_msg); in Open()
170 char* error_msg = nullptr; in Close() local
171 if (!android::CloseNativeLibrary(dlhandle_, native_bridge_, &error_msg)) { in Close()
172 ALOGE("failed to unload library '%s': %s", path_.c_str(), error_msg); in Close()
173 android::NativeLoaderFreeErrorMessage(error_msg); in Close()
/frameworks/base/core/proto/android/os/
Dmetadata.proto67 optional string error_msg = 9; field
/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp75 static void LogError(png_structp png_ptr, png_const_charp error_msg) { in LogError() argument
77 diag->Error(DiagMessage() << error_msg); in LogError()