Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 54) sorted by relevance

123

/art/cmdline/
Dcmdline_types.h62 Result Parse(const std::string& args) {
64 return Result::Success(Unit{});
66 return Result::Failure("Unexpected extra characters " + args);
72 Result Parse(const std::string& args) {
75 return Result::Failure("Could not parse '" + args + "' as boolean");
77 return Result::Success(true);
79 return Result::Success(false);
92 Result Parse(const std::string& option) {
94 return Result::Usage(
99 return Result::Success(JdwpProvider::kDefaultJdwpProvider);
[all …]
Dcmdline_type_parser.h31 using Result = CmdlineParseResult<T>; member
37 Result Parse(const std::string& args ATTRIBUTE_UNUSED) { in Parse()
39 return Result::Failure("Missing type specialization and/or value map"); in Parse()
49 Result ParseAndAppend(const std::string& args ATTRIBUTE_UNUSED, in ParseAndAppend()
52 return Result::Failure("Missing type specialization and/or value map"); in ParseAndAppend()
/art/test/1987-structural-redefine-recursive-stack-scope/
Dexpected-stdout.txt3 Result at depth 0: THIS IS A FOO VALUE
4 Result at depth 1: THIS IS A FOO VALUE
5 Result at depth 2: THIS IS A FOO VALUE
6 Result at depth 3: THIS IS A FOO VALUE
7 Result at depth 4: THIS IS A FOO VALUE
8 Result at depth 5: THIS IS A FOO VALUE
9 Result at depth 6: THIS IS A FOO VALUE
10 Result at depth 7: THIS IS A FOO VALUE
11 Result at depth 8: THIS IS A FOO VALUE
12 Result at depth 9: THIS IS A FOO VALUE
/art/artd/
Dpath_utils.h31 android::base::Result<std::vector<std::string>> ListManagedFiles();
33 android::base::Result<void> ValidateDexPath(const std::string& dex_path);
35 android::base::Result<std::string> BuildArtBinPath(const std::string& binary_name);
38 android::base::Result<std::string> BuildOatPath(
51 android::base::Result<std::string> BuildPrimaryRefProfilePath(
55 android::base::Result<std::string> BuildPrebuiltProfilePath(
58 android::base::Result<std::string> BuildPrimaryCurProfilePath(
62 android::base::Result<std::string> BuildSecondaryRefProfilePath(
66 android::base::Result<std::string> BuildSecondaryCurProfilePath(
70 android::base::Result<std::string> BuildFinalProfilePath(
[all …]
Dpath_utils.cc44 using ::android::base::Result;
56 Result<void> ValidateAbsoluteNormalPath(const std::string& path_str) { in ValidateAbsoluteNormalPath()
73 Result<void> ValidatePathElementSubstring(const std::string& path_element_substring, in ValidatePathElementSubstring()
87 Result<void> ValidatePathElement(const std::string& path_element, const std::string& name) { in ValidatePathElement()
95 Result<std::string> GetAndroidDataOrError() { in GetAndroidDataOrError()
104 Result<std::string> GetAndroidExpandOrError() { in GetAndroidExpandOrError()
113 Result<std::string> GetArtRootOrError() { in GetArtRootOrError()
124 Result<std::vector<std::string>> ListManagedFiles() { in ListManagedFiles()
155 Result<void> ValidateDexPath(const std::string& dex_path) { in ValidateDexPath()
160 Result<std::string> BuildArtBinPath(const std::string& binary_name) { in BuildArtBinPath()
[all …]
Dfile_utils.h42 static android::base::Result<std::unique_ptr<NewFile>> Create(
72 android::base::Result<void> CommitOrAbandon();
77 virtual android::base::Result<void> Keep();
94 static android::base::Result<void> CommitAllOrAbandon(
106 android::base::Result<void> Init();
120 android::base::Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path);
129 android::base::Result<void> Chown(
Dfile_utils.cc47 using ::android::base::Result;
61 Result<std::unique_ptr<NewFile>> NewFile::Create(const std::string& path, in Create()
70 Result<void> NewFile::Keep() { in Keep()
77 Result<void> NewFile::CommitOrAbandon() { in CommitOrAbandon()
104 Result<void> NewFile::Init() { in Init()
125 Result<void> NewFile::CommitAllOrAbandon(const std::vector<NewFile*>& files_to_commit, in CommitAllOrAbandon()
212 Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path) { in OpenFileForReading()
229 Result<void> Chown(const std::string& path, const FsPermission& fs_permission) { in Chown()
Dartd.h170 android::base::Result<void> Start();
173 android::base::Result<OatFileAssistantContext*> GetOatFileAssistantContext()
176 android::base::Result<const std::vector<std::string>*> GetBootImageLocations()
179 android::base::Result<const std::vector<std::string>*> GetBootClassPath() EXCLUDES(cache_mu_);
190 android::base::Result<int> ExecAndReturnCode(const std::vector<std::string>& arg_vector,
195 android::base::Result<std::string> GetProfman();
197 android::base::Result<std::string> GetArtExec();
201 android::base::Result<std::string> GetDex2Oat();
217 android::base::Result<struct stat> Fstat(const art::File& file) const;
/art/libnativeloader/
Dnative_loader_namespace.h34 using android::base::Result;
41 static Result<NativeLoaderNamespace> Create(const std::string& name,
61 Result<void> Link(const NativeLoaderNamespace* target, const std::string& shared_libs) const;
63 Result<void*> Load(const char* lib_name) const;
65 static Result<NativeLoaderNamespace> GetExportedNamespace(const std::string& name,
67 static Result<NativeLoaderNamespace> GetSystemNamespace(bool is_bridged);
Dnative_loader.cpp82 Result<void> CreateNativeloaderDefaultNamespaceLibsLink(NativeLoaderNamespace& ns) in CreateNativeloaderDefaultNamespaceLibsLink()
93 Result<NativeLoaderNamespace*> GetNativeloaderExtraLibsNamespace() REQUIRES(g_namespaces_mutex) { in GetNativeloaderExtraLibsNamespace()
98 Result<NativeLoaderNamespace> ns = in GetNativeloaderExtraLibsNamespace()
110 Result<void> linked = in GetNativeloaderExtraLibsNamespace()
121 Result<void*> TryLoadNativeloaderExtraLib(const char* path) { in TryLoadNativeloaderExtraLib()
132 Result<NativeLoaderNamespace*> ns = GetNativeloaderExtraLibsNamespace(); in TryLoadNativeloaderExtraLib()
139 Result<NativeLoaderNamespace*> CreateClassLoaderNamespaceLocked(JNIEnv* env, in CreateClassLoaderNamespaceLocked()
148 Result<NativeLoaderNamespace*> ns = g_namespaces->Create(env, in CreateClassLoaderNamespaceLocked()
159 Result<void> linked = CreateNativeloaderDefaultNamespaceLibsLink(*ns.value()); in CreateClassLoaderNamespaceLocked()
191 Result<NativeLoaderNamespace*> ns = CreateClassLoaderNamespaceLocked(env, in CreateClassLoaderNamespace()
[all …]
Dlibrary_namespaces.h36 using android::base::Result;
56 Result<NativeLoaderNamespace*> Create(JNIEnv* env, uint32_t target_sdk_version,
63 Result<void> InitPublicNamespace(const char* library_path);
71 Result<std::string> FindApexNamespaceName(const std::string& location);
Dpublic_libraries.h28 using android::base::Result;
67 Result<std::vector<std::string>> ParseConfig(
69 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn);
73 Result<std::map<std::string, std::string>> ParseApexLibrariesConfig(
Dnative_loader_namespace.cpp52 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetExportedNamespace(const std::string& name, in GetExportedNamespace()
71 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetSystemNamespace(bool is_bridged) { in GetSystemNamespace()
87 Result<NativeLoaderNamespace> NativeLoaderNamespace::Create( in Create()
142 Result<void> NativeLoaderNamespace::Link(const NativeLoaderNamespace* target, in Link()
162 Result<void*> NativeLoaderNamespace::Load(const char* lib_name) const { in Load()
Dpublic_libraries.cpp45 using android::base::Result;
88 const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
89 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anon17bad18a0202()
91 Result<std::vector<std::string>> ReadConfig( in ReadConfig()
93 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ReadConfig()
98 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); in ReadConfig()
126 config_file_path, [&company_name](const struct ConfigEntry& entry) -> Result<bool> { in ReadExtensionLibraries()
152 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> { in InitDefaultPublicLibraries()
295 Result<std::map<std::string, std::string>> config = ParseApexLibrariesConfig(file_content, tag); in InitApexLibraries()
322 Result<ApexLibrariesConfigLine> ParseApexLibrariesConfigLine(const std::string& line) { in ParseApexLibrariesConfigLine()
[all …]
/art/test/2009-structural-local-ref/
Dexpected-stdout.txt2 Result was VirtualString
4 Result was StaticString
6 Result was meth
8 Result was static-meth
/art/test/917-fields-transformation/
Dexpected-stdout.txt1 Result is Hello
4 Result is start
7 Result is Goodbye
10 Result is end
/art/test/dexpreopt/
Ddexpreopt_test.cc63 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> GetZygoteNamesAndIsas() { in GetZygoteNamesAndIsas()
98 android::base::Result<std::vector<std::string>> GetZygoteExpectedArtifacts(InstructionSet isa) { in GetZygoteExpectedArtifacts()
135 android::base::Result<std::vector<std::string>> GetSystemServerExpectedArtifacts() { in GetSystemServerExpectedArtifacts()
168 android::base::Result<std::vector<std::string>> GetMappedFiles(pid_t pid, in GetMappedFiles()
184 android::base::Result<std::vector<std::string>> GetZygoteMappedOatFiles( in GetZygoteMappedOatFiles()
196 android::base::Result<std::vector<std::string>> GetSystemServerArtifactsMappedOdexes() { in GetSystemServerArtifactsMappedOdexes()
210 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> zygote_names_and_isas = in TEST()
215 android::base::Result<std::vector<std::string>> expected_artifacts = in TEST()
224 android::base::Result<std::vector<std::string>> mapped_oat_files = in TEST()
233 android::base::Result<std::vector<std::string>> expected_artifacts = in TEST()
[all …]
/art/libartbase/base/
Dbit_memory_region.h100 template<typename Result = size_t>
103 ALWAYS_INLINE Result LoadBits(size_t bit_offset, size_t bit_length) const { in LoadBits()
104 static_assert(std::is_integral_v<Result>, "Result must be integral"); in LoadBits()
105 static_assert(std::is_unsigned_v<Result>, "Result must be unsigned"); in LoadBits()
106 DCHECK(IsAligned<sizeof(Result)>(data_)); in LoadBits()
109 DCHECK_LE(bit_length, BitSizeOf<Result>()); in LoadBits()
114 Result* data = reinterpret_cast<Result*>(data_); in LoadBits()
115 size_t width = BitSizeOf<Result>(); in LoadBits()
118 Result value = data[index] >> shift; in LoadBits()
121 Result extra = data[index + (shift + (bit_length - 1)) / width]; in LoadBits()
[all …]
/art/odrefresh/
Dodr_common.cc38 using ::android::base::Result;
45 Result<int> ParseSecurityPatchStr(const std::string& security_patch_str) { in ParseSecurityPatchStr()
62 Result<int> security_patch_value = ParseSecurityPatchStr(security_patch_str); in ShouldDisablePartialCompilation()
Dodr_metrics_record.cc29 android::base::Result<int64_t> ReadInt64(tinyxml2::XMLElement* parent, const char* name) { in ReadInt64()
44 android::base::Result<int32_t> ReadInt32(tinyxml2::XMLElement* parent, const char* name) { in ReadInt32()
59 android::base::Result<int32_t> ReadInt32Attribute(tinyxml2::XMLElement* element, in ReadInt32Attribute()
83 android::base::Result<OdrMetricsRecord::Dex2OatExecResult> ReadExecResult( in ReadExecResult()
111 android::base::Result<void> OdrMetricsRecord::ReadFromFile(const std::string& filename) { in ReadFromFile()
150 android::base::Result<void> OdrMetricsRecord::WriteToFile(const std::string& filename) const { in WriteToFile()
Dodr_common_test.cc27 using ::android::base::Result;
32 Result<int> result = ParseSecurityPatchStr("2022-03-08"); in TEST()
Dodr_metrics_record.h80 android::base::Result<void> ReadFromFile(const std::string& filename);
84 android::base::Result<void> WriteToFile(const std::string& filename) const;
/art/libartservice/service/java/com/android/server/art/
DBackgroundDexoptJob.java70 @GuardedBy("this") @Nullable private CompletableFuture<Result> mRunningJob = null;
164 public synchronized CompletableFuture<Result> start() { in start()
199 public synchronized CompletableFuture<Result> get() { in get()
226 private void writeStats(@NonNull Result result) { in writeStats()
268 static abstract class Result {} class in BackgroundDexoptJob
269 static class FatalErrorResult extends Result {}
272 static abstract class CompletedResult extends Result {
/art/libartservice/service/javatests/com/android/server/art/
DBackgroundDexoptJobTest.java45 import com.android.server.art.BackgroundDexoptJob.Result;
121 Result result = Utils.getFuture(mBackgroundDexoptJob.start()); in testStart()
137 Future<Result> future1 = mBackgroundDexoptJob.start(); in testStartAlreadyRunning()
138 Future<Result> future2 = mBackgroundDexoptJob.start(); in testStartAlreadyRunning()
152 Future<Result> future1 = mBackgroundDexoptJob.start(); in testStartAnother()
154 Future<Result> future2 = mBackgroundDexoptJob.start(); in testStartAnother()
164 Result result = Utils.getFuture(mBackgroundDexoptJob.start()); in testStartFatalError()
193 Future<Result> future = mBackgroundDexoptJob.start(); in testCancel()
/art/libarttools/tools/
Dart_exec.cc48 using ::android::base::Result;
141 Result<void> DropInheritableCaps() { in DropInheritableCaps()
155 Result<void> CloseFds(const std::unordered_set<int>& keep_fds) { in CloseFds()
172 Result<void> error = ErrnoErrorf("Failed to close FD {}", fd); in CloseFds()

123