• Home
  • Raw
  • Download

Lines Matching refs:error_msg

121                                      std::string* error_msg) {  in GetAndroidDirSafe()  argument
127 *error_msg = StringPrintf("%s not set and %s does not exist", env_var, default_dir); in GetAndroidDirSafe()
132 *error_msg = StringPrintf("Failed to find directory %s", android_dir); in GetAndroidDirSafe()
141 std::string error_msg; in GetAndroidDir() local
142 const char* dir = GetAndroidDirSafe(env_var, default_dir, must_exist, &error_msg); in GetAndroidDir()
146 LOG(FATAL) << error_msg; in GetAndroidDir()
151 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe() argument
154 *error_msg = "GetAndroidRootSafe unsupported for Windows."; in GetAndroidRootSafe()
173 *error_msg = std::move(local_error_msg); in GetAndroidRootSafe()
182 std::string error_msg; in GetAndroidRoot() local
183 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot()
184 CHECK(!ret.empty()) << error_msg; in GetAndroidRoot()
188 std::string GetSystemExtRootSafe(std::string* error_msg) { in GetSystemExtRootSafe() argument
191 *error_msg = "GetSystemExtRootSafe unsupported for Windows."; in GetSystemExtRootSafe()
195 /*must_exist=*/ true, error_msg); in GetSystemExtRootSafe()
201 std::string error_msg; in GetSystemExtRoot() local
202 std::string ret = GetSystemExtRootSafe(&error_msg); in GetSystemExtRoot()
203 CHECK(!ret.empty()) << error_msg; in GetSystemExtRoot()
207 static std::string GetArtRootSafe(bool must_exist, /*out*/ std::string* error_msg) { in GetArtRootSafe() argument
211 *error_msg = "GetArtRootSafe unsupported for Windows."; in GetArtRootSafe()
218 *error_msg = StringPrintf( in GetArtRootSafe()
251 *error_msg = in GetArtRootSafe()
259 std::string GetArtRootSafe(std::string* error_msg) { in GetArtRootSafe() argument
260 return GetArtRootSafe(/* must_exist= */ true, error_msg); in GetArtRootSafe()
264 std::string error_msg; in GetArtRoot() local
265 std::string ret = GetArtRootSafe(&error_msg); in GetArtRoot()
267 LOG(FATAL) << error_msg; in GetArtRoot()
284 std::string GetAndroidDataSafe(std::string* error_msg) { in GetAndroidDataSafe() argument
288 error_msg); in GetAndroidDataSafe()
294 std::string GetAndroidExpandSafe(std::string* error_msg) { in GetAndroidExpandSafe() argument
298 error_msg); in GetAndroidExpandSafe()
322 std::string GetFirstMainlineFrameworkLibraryFilename(std::string* error_msg) { in GetFirstMainlineFrameworkLibraryFilename() argument
326 *error_msg = "BOOTCLASSPATH and DEX2OATBOOTCLASSPATH must not be empty"; in GetFirstMainlineFrameworkLibraryFilename()
336 *error_msg = "DEX2OATBOOTCLASSPATH must be a prefix of BOOTCLASSPATH"; in GetFirstMainlineFrameworkLibraryFilename()
343 *error_msg = "No mainline framework library found"; in GetFirstMainlineFrameworkLibraryFilename()
350 static std::string GetFirstMainlineFrameworkLibraryName(std::string* error_msg) { in GetFirstMainlineFrameworkLibraryName() argument
351 std::string filename = GetFirstMainlineFrameworkLibraryFilename(error_msg); in GetFirstMainlineFrameworkLibraryName()
360 *error_msg = "Invalid mainline framework jar: " + jar_name; in GetFirstMainlineFrameworkLibraryName()
372 /*out*/ std::string* error_msg) { in MaybeAppendBootImageMainlineExtension() argument
379 std::string library_name = GetFirstMainlineFrameworkLibraryName(error_msg); in MaybeAppendBootImageMainlineExtension()
416 std::string* error_msg) { in GetDefaultBootImageLocationSafe() argument
444 error_msg)) { in GetDefaultBootImageLocationSafe()
511 error_msg)) { in GetDefaultBootImageLocationSafe()
519 std::string error_msg; in GetDefaultBootImageLocation() local
521 GetDefaultBootImageLocationSafe(android_root, deny_art_apex_data_files, &error_msg); in GetDefaultBootImageLocation()
522 CHECK(!location.empty()) << error_msg; in GetDefaultBootImageLocation()
593 std::string* error_msg) { in GetLocationEncodedFilename() argument
595 *error_msg = StringPrintf("Expected path in location to be absolute: %s", location); in GetLocationEncodedFilename()
612 std::string* error_msg) { in GetDalvikCacheFilename() argument
613 return GetLocationEncodedFilename(location, cache_location, filename, error_msg); in GetDalvikCacheFilename()
691 std::string result, error_msg; in GetSystemOdexFilenameForApex() local
693 GetLocationEncodedFilename(std::string{location}.c_str(), dir.c_str(), &result, &error_msg); in GetSystemOdexFilenameForApex()
696 DCHECK(ret) << error_msg; in GetSystemOdexFilenameForApex()
873 std::string error_msg; in ArtModuleRootDistinctFromAndroidRoot() local
877 &error_msg); in ArtModuleRootDistinctFromAndroidRoot()
881 &error_msg); in ArtModuleRootDistinctFromAndroidRoot()