Home
last modified time | relevance | path

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

12

/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()
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()
Dcom_android_internal_os_Zygote.cpp792 const std::string& error_msg = in ZygoteFailure() local
795 env->FatalError(error_msg.c_str()); in ZygoteFailure()
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/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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dplugin.cc98 string* error_msg) { in GenerateCode() argument
112 *error_msg = "protoc asked plugin to generate a file but " in GenerateCode()
174 string error_msg; in PluginMain() local
177 if (GenerateCode(request, *generator, &response, &error_msg)) { in PluginMain()
183 if (!error_msg.empty()) { in PluginMain()
184 std::cerr << argv[0] << ": " << error_msg << std::endl; in PluginMain()
Dplugin.h84 string* error_msg);
/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.cpp1649 int* dexopt_needed_out, std::string* error_msg) { in process_secondary_dexoptanalyzer_result() argument
1662 *error_msg = StringPrintf("Dexoptanalyzer return the status of an oat file." in process_secondary_dexoptanalyzer_result()
1678 *error_msg = "Dexoptanalyzer path validation failed"; in process_secondary_dexoptanalyzer_result()
1681 *error_msg = "Dexoptanalyzer open zip failed"; in process_secondary_dexoptanalyzer_result()
1684 *error_msg = "Dexoptanalyzer dir preparation failed"; in process_secondary_dexoptanalyzer_result()
1687 *error_msg = "Dexoptanalyzer open output failed"; in process_secondary_dexoptanalyzer_result()
1690 *error_msg = "Dexoptanalyzer failed to execute"; in process_secondary_dexoptanalyzer_result()
1694 *error_msg = StringPrintf("Unexpected result from analyzing secondary dex %s result=%d", in process_secondary_dexoptanalyzer_result()
1735 char* out_oat_dir, char* out_oat_isa_dir, char* out_oat_path, std::string* error_msg) { in create_secondary_dex_oat_layout() argument
1738 *error_msg = std::string("Unexpected dir structure for dex file ").append(dex_path); in create_secondary_dex_oat_layout()
[all …]
Dotapreopt_chroot.cpp251 std::string error_msg; in otapreopt_chroot() local
252 bool exec_result = Exec(cmd, &error_msg); in otapreopt_chroot()
254 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.h118 const char* dexMetadataPath, const char* compilation_reason, std::string* error_msg);
Dotapreopt.cpp492 std::string error_msg; in Dex2oatBootImage() local
493 bool result = Exec(cmd, &error_msg); in Dex2oatBootImage()
495 LOG(ERROR) << "Could not generate boot image: " << error_msg; in Dex2oatBootImage()
/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.cpp257 std::string error_msg; in create_mock_app() local
258 if (!WriteBase64ToFile(kDexFile, apk_path_, kSystemUid, kSystemGid, 0644, &error_msg)) { in create_mock_app()
260 << " : " << error_msg; in create_mock_app()
288 &error_msg)) { in create_mock_app()
290 << secondary_dex_ce_ << " : " << error_msg; in create_mock_app()
305 &error_msg)) { in create_mock_app()
307 << 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/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
Dconformance_test_runner.cc113 string error_msg; in RunTest() local
115 StringAppendF(&error_msg, in RunTest()
118 StringAppendF(&error_msg, in RunTest()
121 GOOGLE_LOG(INFO) << error_msg; in RunTest()
125 response_obj.set_runtime_error(error_msg); in RunTest()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp145 char* error_msg = nullptr; in Open() local
147 app_namespace, path_.c_str(), &native_bridge_, &error_msg); in Open()
149 ALOGE("failed to load layer library '%s': %s", path_.c_str(), error_msg); in Open()
150 android::NativeLoaderFreeErrorMessage(error_msg); in Open()
171 char* error_msg = nullptr; in Close() local
172 if (!android::CloseNativeLibrary(dlhandle_, native_bridge_, &error_msg)) { in Close()
173 ALOGE("failed to unload library '%s': %s", path_.c_str(), error_msg); in Close()
174 android::NativeLoaderFreeErrorMessage(error_msg); in Close()
/frameworks/base/startop/view_compiler/
Ddex_builder_test.cc31 std::string error_msg; in EncodeAndVerify() local
39 &error_msg)}; in EncodeAndVerify()
/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dpython_message.py809 error_msg = _Proto3HasError if is_proto3 else _Proto2HasError
830 raise ValueError(error_msg % field_name)

12