/art/runtime/gc/space/ |
D | image_space_test.cc | 94 std::string error_msg; in TEST_F() local 95 bool success = CompileBootImage(extra_args, image_dir + '/' + prefix, dex_files, &error_msg); in TEST_F() 96 ASSERT_TRUE(success) << error_msg; in TEST_F() 113 std::string error_msg; in TEST_F() local 114 bool success = StartDex2OatCommandLine(&argv, &error_msg, /*use_runtime_bcp_and_image=*/ false); in TEST_F() 115 ASSERT_TRUE(success) << error_msg; in TEST_F() 129 success = RunDex2Oat(argv, &error_msg); in TEST_F() 130 ASSERT_TRUE(success) << error_msg; in TEST_F() 206 std::string error_msg; in TEST_F() local 213 &error_msg)); in TEST_F() [all …]
|
D | image_space.cc | 121 std::string* error_msg) { in GenerateImage() argument 125 *error_msg = "Failed to generate image because no boot class path specified"; in GenerateImage() 202 return Exec(arg_vector, error_msg); in GenerateImage() 242 std::string error_msg; in FindImageFilenameImpl() local 246 &error_msg)) { in FindImageFilenameImpl() 247 LOG(WARNING) << error_msg; in FindImageFilenameImpl() 278 /*out*/std::string* error_msg) { in ReadSpecificImageHeader() argument 280 *error_msg = StringPrintf("Unable to read image header from \"%s\"", file_description); in ReadSpecificImageHeader() 284 *error_msg = StringPrintf("Image header from \"%s\" is invalid", file_description); in ReadSpecificImageHeader() 292 /*out*/std::string* error_msg) { in ReadSpecificImageHeader() argument [all …]
|
/art/libartbase/base/ |
D | file_utils.cc | 106 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe() argument 109 *error_msg = "GetAndroidRootSafe unsupported for Windows."; in GetAndroidRootSafe() 116 *error_msg = in GetAndroidRootSafe() 138 *error_msg = in GetAndroidRootSafe() 147 std::string error_msg; in GetAndroidRoot() local 148 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot() 150 LOG(FATAL) << error_msg; in GetAndroidRoot() 160 std::string* error_msg) { in GetAndroidDirSafe() argument 166 *error_msg = StringPrintf("%s not set and %s does not exist", env_var, default_dir); in GetAndroidDirSafe() 171 *error_msg = StringPrintf("Failed to find directory %s", android_dir); in GetAndroidDirSafe() [all …]
|
D | scoped_flock_test.cc | 27 std::string error_msg; in TEST_F() local 35 &error_msg); in TEST_F() 42 &error_msg); in TEST_F() 44 ASSERT_TRUE(!error_msg.empty()); in TEST_F() 51 &error_msg); in TEST_F() 57 &error_msg); in TEST_F()
|
D | zip_archive.h | 46 bool ExtractToFile(File& file, /*out*/std::string* error_msg); 51 /*out*/std::string* error_msg); 54 bool ExtractToMemory(/*out*/uint8_t* buffer, /*out*/std::string* error_msg); 62 MemMap MapDirectlyFromFile(const char* zip_filename, /*out*/std::string* error_msg); 67 std::string* error_msg, 93 static ZipArchive* Open(const char* filename, std::string* error_msg); 94 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg); 96 ZipEntry* Find(const char* name, std::string* error_msg) const;
|
D | mem_map.h | 138 /*out*/std::string* error_msg, 144 /*out*/std::string* error_msg) { in MapAnonymous() argument 152 error_msg); in MapAnonymous() 159 /*out*/std::string* error_msg) { in MapAnonymous() argument 167 error_msg); in MapAnonymous() 187 std::string* error_msg) { in MapFile() argument 198 error_msg); in MapFile() 223 /*out*/std::string* error_msg); 275 std::string* error_msg, 285 std::string* error_msg, [all …]
|
D | file_utils.h | 44 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg); 55 std::string GetArtRootSafe(/*out*/ std::string* error_msg); 63 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg); 67 std::string GetDefaultBootImageLocation(std::string* error_msg); 86 std::string* filename, std::string* error_msg);
|
/art/libdexfile/dex/ |
D | dex_file_loader.cc | 68 const std::vector<uint8_t> Extract(std::string* error_msg) { in Extract() argument 71 DCHECK(!error_msg->empty()); in Extract() 76 *error_msg = std::string(ErrorCodeString(error)); in Extract() 110 static DexZipArchive* Open(const uint8_t* base, size_t size, std::string* error_msg) { in Open() argument 115 *error_msg = std::string(ErrorCodeString(error)); in Open() 122 DexZipEntry* Find(const char* name, std::string* error_msg) const { in Find() 128 *error_msg = std::string(ErrorCodeString(error)); in Find() 214 std::string* error_msg, in GetMultiDexChecksums() argument 217 *error_msg = "UNIMPLEMENTED"; in GetMultiDexChecksums() 229 std::string* error_msg, in Open() argument [all …]
|
D | art_dex_file_loader.h | 52 std::string* error_msg, 65 std::string* error_msg, 74 std::string* error_msg) const; 81 std::string* error_msg, 87 std::string* error_msg, 96 std::string* error_msg) const; 103 std::string* error_msg, 112 std::string* error_msg, 120 std::string* error_msg) const; 127 std::string* error_msg, [all …]
|
/art/runtime/ |
D | dexopt_test.cc | 42 std::string error_msg; in PreRuntimeCreate() local 50 bool DexoptTest::Dex2Oat(const std::vector<std::string>& args, std::string* error_msg) { in Dex2Oat() argument 52 if (!CommonRuntimeTest::StartDex2OatCommandLine(&argv, error_msg)) { in Dex2Oat() 69 return Exec(argv, error_msg); in Dex2Oat() 87 std::string error_msg; in GenerateAlternateImage() local 88 bool ok = CompileBootImage(extra_args, filename_prefix, dex_files, dex_locations, &error_msg); in GenerateAlternateImage() 89 EXPECT_TRUE(ok) << error_msg; in GenerateAlternateImage() 130 std::string error_msg; in GenerateOatForTest() local 131 ASSERT_TRUE(Dex2Oat(args, &error_msg)) << error_msg; in GenerateOatForTest() 140 &error_msg)); in GenerateOatForTest() [all …]
|
D | oat_file_assistant.cc | 121 std::string error_msg; in OatFileAssistant() local 123 if (DexLocationToOdexFilename(dex_location_, isa_, &odex_file_name, &error_msg)) { in OatFileAssistant() 126 LOG(WARNING) << "Failed to determine odex file name: " << error_msg; in OatFileAssistant() 132 if (DexLocationToOatFilename(dex_location_, isa_, &oat_file_name, &error_msg)) { in OatFileAssistant() 136 << dex_location_ << ": " << error_msg; in OatFileAssistant() 267 std::string error_msg; in LoadDexFiles() local 269 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles() 271 LOG(WARNING) << error_msg; in LoadDexFiles() 275 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error_msg); in LoadDexFiles() 277 LOG(WARNING) << "Failed to open dex file from oat dex file: " << error_msg; in LoadDexFiles() [all …]
|
D | elf_file.cc | 64 std::string* error_msg) { in Open() argument 76 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 87 std::string* error_msg) { in Open() argument 90 if (!elf_file->Setup(file, prot, flags, low_4gb, error_msg)) { in Open() 101 std::string* error_msg) { in Setup() argument 105 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", in Setup() 111 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " in Setup() 128 error_msg), in Setup() 129 error_msg)) { in Setup() 135 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF program " in Setup() [all …]
|
D | oat_file.cc | 116 /*out*/std::string* error_msg); 129 /*out*/std::string* error_msg); 135 std::string* error_msg) const = 0; 142 std::string* error_msg); 148 std::string* error_msg); 155 /*out*/std::string* error_msg) = 0; 162 /*out*/std::string* error_msg) = 0; 164 bool ComputeFields(const std::string& file_path, std::string* error_msg); 169 bool Setup(int zip_fd, ArrayRef<const std::string> dex_filenames, std::string* error_msg); 204 /*out*/std::string* error_msg) { in OpenOatFile() argument [all …]
|
D | vdex_file.cc | 105 std::string* error_msg) { in OpenAtAddress() argument 108 *error_msg = "File " + vdex_filename + " does not exist."; in OpenAtAddress() 119 *error_msg = "Could not open file " + vdex_filename + in OpenAtAddress() 126 *error_msg = "Could not read the length of file " + vdex_filename; in OpenAtAddress() 139 error_msg); in OpenAtAddress() 151 std::string* error_msg) { in OpenAtAddress() argument 171 error_msg); in OpenAtAddress() 173 *error_msg = "Failed to mmap file " + vdex_filename + " : " + *error_msg; in OpenAtAddress() 179 *error_msg = "Vdex file is not valid"; in OpenAtAddress() 185 if (!vdex->OpenAllDexFiles(&unique_ptr_dex_files, error_msg)) { in OpenAtAddress() [all …]
|
D | exec_utils.cc | 33 int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg) { in ExecAndReturnCode() argument 69 *error_msg = StringPrintf("Failed to execv(%s) because fork failed: %s", in ExecAndReturnCode() 78 *error_msg = StringPrintf("Failed after fork for execv(%s) because waitpid failed: " in ExecAndReturnCode() 90 bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg) { in Exec() argument 91 int status = ExecAndReturnCode(arg_vector, error_msg); in Exec() 94 *error_msg = StringPrintf("Failed execv(%s) because non-0 exit status", in Exec()
|
/art/dex2oat/ |
D | dex2oat_image_test.cc | 93 std::string error_msg; in CompileImageAndGetSizes() local 94 if (!CompileBootImage(local_extra_args, filename_prefix, dex_files, &error_msg)) { in CompileImageAndGetSizes() 95 LOG(ERROR) << "Failed to compile image " << filename_prefix << error_msg; in CompileImageAndGetSizes() 112 MemMap ReserveCoreImageAddressSpace(/*out*/std::string* error_msg) { in ReserveCoreImageAddressSpace() argument 128 error_msg); in ReserveCoreImageAddressSpace() 253 std::string error_msg; in TEST_F() local 254 MemMap reservation = ReserveCoreImageAddressSpace(&error_msg); in TEST_F() 255 ASSERT_TRUE(reservation.IsValid()) << error_msg; in TEST_F() 335 bool head_ok = CompileBootImage(extra_args, filename_prefix, head_dex_files, &error_msg); in TEST_F() 336 ASSERT_TRUE(head_ok) << error_msg; in TEST_F() [all …]
|
/art/runtime/ti/ |
D | agent.cc | 51 /*out*/std::string* error_msg) { in Load() argument 53 return DoLoadHelper(nullptr, false, nullptr, call_res, error, error_msg); in Load() 61 /*out*/std::string* error_msg) { in Attach() argument 63 return DoLoadHelper(env, true, class_loader, call_res, error, error_msg); in Attach() 73 /*out*/std::string* error_msg) { in DoLoadHelper() argument 76 DCHECK(error_msg != nullptr); in DoLoadHelper() 78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper() 80 VLOG(agents) << "err: " << *error_msg; in DoLoadHelper() 85 *error_msg = StringPrintf("Unable to start agent %s: No %s callback found", in DoLoadHelper() 88 VLOG(agents) << "err: " << *error_msg; in DoLoadHelper() [all …]
|
/art/libdexfile/external/ |
D | dex_file_supp_test.cc | 111 std::string error_msg; in TEST() local 112 EXPECT_EQ(DexFile::OpenFromMemory(kDexData, &size, "", &error_msg), nullptr); in TEST() 114 EXPECT_TRUE(error_msg.empty()); in TEST() 119 std::string error_msg; in TEST() local 120 EXPECT_EQ(DexFile::OpenFromMemory(kDexData, &size, "", &error_msg), nullptr); in TEST() 122 EXPECT_TRUE(error_msg.empty()); in TEST() 127 std::string error_msg; in GetTestDexData() local 128 std::unique_ptr<DexFile> dex_file = DexFile::OpenFromMemory(kDexData, &size, "", &error_msg); in GetTestDexData() 129 EXPECT_TRUE(error_msg.empty()); in GetTestDexData() 144 std::string error_msg; in TEST() local [all …]
|
/art/cmdline/ |
D | cmdline.h | 71 std::string error_msg; in LocationToFilename() local 73 &cache_filename, &error_msg)) { in LocationToFilename() 153 std::string error_msg; in Parse() local 186 ParseStatus parse_status = ParseCustom(raw_option, option.length(), &error_msg); in Parse() 193 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse() 203 ParseStatus checks_status = ParseChecks(&error_msg); in Parse() 205 fprintf(stderr, "%s\n", error_msg.c_str()); in Parse() 257 bool ParseCheckBootImage(std::string* error_msg) { in ParseCheckBootImage() 259 *error_msg = "--boot-image must be specified"; in ParseCheckBootImage() 278 *error_msg = "Boot image location must have a / in it"; in ParseCheckBootImage() [all …]
|
/art/libnativeloader/ |
D | native_loader.cpp | 97 bool* needs_native_bridge, char** error_msg) { in OpenNativeLibrary() argument 111 *error_msg = strdup(dlerror()); in OpenNativeLibrary() 118 *error_msg = strdup(dlerror()); in OpenNativeLibrary() 133 *error_msg = strdup(isolated_ns.error().message().c_str()); in OpenNativeLibrary() 140 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary() 181 *error_msg = strdup(NativeBridgeGetError()); in OpenNativeLibrary() 183 *error_msg = strdup(dlerror()); in OpenNativeLibrary() 190 bool CloseNativeLibrary(void* handle, const bool needs_native_bridge, char** error_msg) { in CloseNativeLibrary() argument 195 *error_msg = strdup(NativeBridgeGetError()); in CloseNativeLibrary() 200 *error_msg = strdup(dlerror()); in CloseNativeLibrary() [all …]
|
D | native_loader_lazy.cpp | 62 bool* needs_native_bridge, char** error_msg) { in OpenNativeLibrary() argument 65 needs_native_bridge, error_msg); in OpenNativeLibrary() 68 bool CloseNativeLibrary(void* handle, const bool needs_native_bridge, char** error_msg) { in CloseNativeLibrary() argument 70 return f(handle, needs_native_bridge, error_msg); in CloseNativeLibrary() 90 bool* needs_native_bridge, char** error_msg) { in OpenNativeLibraryInNamespace() argument 92 return f(ns, path, needs_native_bridge, error_msg); in OpenNativeLibraryInNamespace()
|
/art/oatdump/ |
D | oatdump_image_test.cc | 28 std::string error_msg; in TEST_F() local 34 std::string error_msg; in TEST_F() local 40 std::string error_msg; in TEST_F() local 46 std::string error_msg; in TEST_F() local
|
/art/runtime/jit/ |
D | jit_memory_region.cc | 48 std::string* error_msg) { in Initialize() argument 70 mem_fd = unique_fd(CreateZygoteMemory(capacity, error_msg)); in Initialize() 83 *error_msg = oss.str(); in Initialize() 90 *error_msg = oss.str(); in Initialize() 171 *error_msg = oss.str(); in Initialize() 193 *error_msg = oss.str(); in Initialize() 215 *error_msg = kFailedNxView; in Initialize() 232 *error_msg = oss.str(); in Initialize() 236 *error_msg = "Failed to madvise dont fork the writable data view"; in Initialize() 240 *error_msg = "Failed to madvise dont fork the writable code view"; in Initialize() [all …]
|
/art/compiler/jit/ |
D | jit_compiler.cc | 50 std::string error_msg; in ParseCompilerOptions() local 53 &error_msg)) { in ParseCompilerOptions() 54 LOG(FATAL) << error_msg; in ParseCompilerOptions() 80 std::string error_msg; in ParseCompilerOptions() local 85 instruction_set, str, &error_msg); in ParseCompilerOptions() 87 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; in ParseCompilerOptions() 94 instruction_set, "default", &error_msg); in ParseCompilerOptions() 96 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; in ParseCompilerOptions() 100 instruction_set_features->AddFeaturesFromString(str, &error_msg); in ParseCompilerOptions() 102 LOG(WARNING) << "Error parsing " << option << " message=" << error_msg; in ParseCompilerOptions()
|
/art/compiler/driver/ |
D | compiler_options.cc | 106 bool CompilerOptions::ParseDumpInitFailures(const std::string& option, std::string* error_msg) { in ParseDumpInitFailures() argument 109 *error_msg = "Failed to construct std::ofstream"; in ParseDumpInitFailures() 112 *error_msg = android::base::StringPrintf( in ParseDumpInitFailures() 121 std::string* error_msg) { in ParseRegisterAllocationStrategy() argument 127 *error_msg = "Unrecognized register allocation strategy. Try linear-scan, or graph-color."; in ParseRegisterAllocationStrategy() 135 std::string* error_msg) { in ParseCompilerOptions() argument 139 *error_msg = parse_result.GetMessage(); in ParseCompilerOptions() 144 return ReadCompilerOptions(args, this, error_msg); in ParseCompilerOptions()
|