/art/cmdline/ |
D | cmdline_types.h | 63 Result Parse(const std::string& args) { 65 return Result::Success(Unit{}); 67 return Result::Failure("Unexpected extra characters " + args); 73 Result Parse(const std::string& args) { 76 return Result::Failure("Could not parse '" + args + "' as boolean"); 78 return Result::Success(true); 80 return Result::Success(false); 93 Result Parse(const std::string& option) { 95 return Result::Usage( 100 return Result::Success(JdwpProvider::kDefaultJdwpProvider); [all …]
|
D | cmdline_type_parser.h | 31 using Result = CmdlineParseResult<T>; member 37 Result Parse([[maybe_unused]] const std::string& args) { in Parse() 39 return Result::Failure("Missing type specialization and/or value map"); in Parse() 49 Result ParseAndAppend([[maybe_unused]] const std::string& args, in ParseAndAppend() 52 return Result::Failure("Missing type specialization and/or value map"); in ParseAndAppend()
|
/art/test/1987-structural-redefine-recursive-stack-scope/ |
D | expected-stdout.txt | 3 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/ |
D | path_utils.h | 38 android::base::Result<std::string> GetAndroidDataOrError(); 40 android::base::Result<std::string> GetAndroidExpandOrError(); 42 android::base::Result<std::string> GetArtRootOrError(); 53 android::base::Result<void> ValidateRuntimeArtifactsPath( 56 android::base::Result<std::string> BuildArtBinPath(const std::string& binary_name); 59 android::base::Result<RawArtifactsPath> BuildArtifactsPath( 62 android::base::Result<std::string> BuildPrimaryRefProfilePath( 66 android::base::Result<std::string> BuildPrebuiltProfilePath( 69 android::base::Result<std::string> BuildPrimaryCurProfilePath( 73 android::base::Result<std::string> BuildSecondaryRefProfilePath( [all …]
|
D | file_utils.h | 43 static android::base::Result<std::unique_ptr<NewFile>> Create( 73 android::base::Result<void> CommitOrAbandon(); 78 virtual android::base::Result<void> Keep(); 95 static android::base::Result<void> CommitAllOrAbandon( 107 android::base::Result<void> Init(); 120 android::base::Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path); 129 android::base::Result<void> Chown( 147 android::base::Result<void> MoveAllOrAbandon( 152 android::base::Result<void> MoveAllOrAbandon(
|
D | path_utils.cc | 48 using ::android::base::Result; 68 Result<std::string> GetAndroidDataOrError() { in GetAndroidDataOrError() 77 Result<std::string> GetAndroidExpandOrError() { in GetAndroidExpandOrError() 86 Result<std::string> GetArtRootOrError() { in GetArtRootOrError() 149 Result<void> ValidateRuntimeArtifactsPath(const RuntimeArtifactsPath& runtime_artifacts_path) { in ValidateRuntimeArtifactsPath() 156 Result<std::string> BuildArtBinPath(const std::string& binary_name) { in BuildArtBinPath() 160 Result<RawArtifactsPath> BuildArtifactsPath(const ArtifactsPath& artifacts_path) { in BuildArtifactsPath() 198 Result<std::string> BuildPrimaryRefProfilePath( in BuildPrimaryRefProfilePath() 209 Result<std::string> BuildPrebuiltProfilePath(const PrebuiltProfilePath& prebuilt_profile_path) { in BuildPrebuiltProfilePath() 214 Result<std::string> BuildPrimaryCurProfilePath( in BuildPrimaryCurProfilePath() [all …]
|
D | artd.h | 50 android::base::Result<void> Restorecon( 99 std::function<android::base::Result<void>( 252 android::base::Result<void> Start(); 255 android::base::Result<OatFileAssistantContext*> GetOatFileAssistantContext() 258 android::base::Result<const std::vector<std::string>*> GetBootImageLocations() 261 android::base::Result<const std::vector<std::string>*> GetBootClassPath() EXCLUDES(cache_mu_); 272 android::base::Result<int> ExecAndReturnCode(const std::vector<std::string>& arg_vector, 277 android::base::Result<std::string> GetProfman(); 279 android::base::Result<tools::CmdlineBuilder> GetArtExecCmdlineBuilder(); 283 android::base::Result<std::string> GetDex2Oat(); [all …]
|
D | file_utils.cc | 48 using ::android::base::Result; 60 Result<std::unique_ptr<NewFile>> NewFile::Create(const std::string& path, in Create() 69 Result<void> NewFile::Keep() { in Keep() 76 Result<void> NewFile::CommitOrAbandon() { in CommitOrAbandon() 102 Result<void> NewFile::Init() { in Init() 123 Result<void> NewFile::CommitAllOrAbandon(const std::vector<NewFile*>& files_to_commit, in CommitAllOrAbandon() 141 Result<void> MoveAllOrAbandon( in MoveAllOrAbandon() 233 android::base::Result<void> MoveAllOrAbandon( in MoveAllOrAbandon() 254 Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path) { in OpenFileForReading() 271 Result<void> Chown(const std::string& path, const FsPermission& fs_permission) { in Chown()
|
/art/libartservice/service/native/ |
D | service.h | 27 android::base::Result<void> ValidateAbsoluteNormalPath(const std::string& path_str); 29 android::base::Result<void> ValidatePathElementSubstring(const std::string& path_element_substring, 32 android::base::Result<void> ValidatePathElement(const std::string& path_element, 35 android::base::Result<void> ValidateDexPath(const std::string& dex_path); 37 android::base::Result<void> ValidateClassLoaderContext(std::string_view dex_path,
|
D | service.cc | 39 using ::android::base::Result; 42 Result<void> ValidateAbsoluteNormalPath(const std::string& path_str) { in ValidateAbsoluteNormalPath() 59 Result<void> ValidatePathElementSubstring(const std::string& path_element_substring, in ValidatePathElementSubstring() 73 Result<void> ValidatePathElement(const std::string& path_element, const std::string& name) { in ValidatePathElement() 81 Result<void> ValidateDexPath(const std::string& dex_path) { in ValidateDexPath() 86 android::base::Result<void> ValidateClassLoaderContext(std::string_view dex_path, in ValidateClassLoaderContext() 115 if (Result<void> result = ValidateDexPath(dex_path); !result.ok()) { in Java_com_android_server_art_ArtJni_validateDexPathNative() 128 if (Result<void> result = ValidateClassLoaderContext(dex_path, class_loader_context); in Java_com_android_server_art_ArtJni_validateClassLoaderContextNative() 162 if (Result<void> result = tools::EnsureNoProcessInDir(dir, j_timeout_ms, /*try_kill=*/true); in Java_com_android_server_art_ArtJni_ensureNoProcessInDirNative()
|
/art/libnativeloader/ |
D | native_loader_namespace.h | 34 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);
|
D | native_loader.cpp | 54 using ::android::base::Result; 84 Result<NativeLoaderNamespace> ns = in FindApexNamespace() 96 Result<NativeLoaderNamespace> GetNamespaceForApiDomain(nativeloader::ApiDomain api_domain, in GetNamespaceForApiDomain() 113 Result<void> CreateNativeloaderDefaultNamespaceLibsLink(NativeLoaderNamespace& ns) in CreateNativeloaderDefaultNamespaceLibsLink() 124 Result<NativeLoaderNamespace*> GetNativeloaderExtraLibsNamespace() REQUIRES(g_namespaces_mutex) { in GetNativeloaderExtraLibsNamespace() 129 Result<NativeLoaderNamespace> ns = in GetNativeloaderExtraLibsNamespace() 141 Result<void> linked = in GetNativeloaderExtraLibsNamespace() 152 Result<void*> TryLoadNativeloaderExtraLib(const char* path) { in TryLoadNativeloaderExtraLib() 163 Result<NativeLoaderNamespace*> ns = GetNativeloaderExtraLibsNamespace(); in TryLoadNativeloaderExtraLib() 168 Result<void*> res = ns.value()->Load(path); in TryLoadNativeloaderExtraLib() [all …]
|
D | public_libraries.cpp | 46 using android::base::Result; 90 const std::function<Result<bool>(const struct ConfigEntry&)> always_true = 91 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anon2cb3f6050202() 93 Result<std::vector<std::string>> ReadConfig( in ReadConfig() 95 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ReadConfig() 100 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); in ReadConfig() 127 Result<std::vector<std::string>> ret = ReadConfig( in ReadExtensionLibraries() 128 config_file_path, [&company_name](const struct ConfigEntry& entry) -> Result<bool> { in ReadExtensionLibraries() 153 Result<std::vector<std::string>> sonames = in InitDefaultPublicLibraries() 154 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> { in InitDefaultPublicLibraries() [all …]
|
D | public_libraries.h | 28 using android::base::Result; 69 Result<std::vector<std::string>> ParseConfig( 71 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn); 75 Result<std::map<std::string, std::string>> ParseApexLibrariesConfig(
|
D | native_loader_namespace.cpp | 52 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetExportedNamespace(const std::string& name, in GetExportedNamespace() 71 Result<NativeLoaderNamespace> NativeLoaderNamespace::GetSystemNamespace(bool is_bridged) { in GetSystemNamespace() 72 Result<NativeLoaderNamespace> ns = GetExportedNamespace(kSystemNamespaceName, is_bridged); in GetSystemNamespace() 87 Result<NativeLoaderNamespace> NativeLoaderNamespace::Create( in Create() 99 Result<NativeLoaderNamespace> system_ns = GetSystemNamespace(is_bridged); in Create() 142 Result<void> NativeLoaderNamespace::Link(const NativeLoaderNamespace* target, in Link() 162 Result<void*> NativeLoaderNamespace::Load(const char* lib_name) const { in Load()
|
D | library_namespaces.h | 35 using android::base::Result; 60 Result<ApiDomain> GetApiDomainFromPathList(const std::string& path_list); 80 Result<NativeLoaderNamespace*> Create(JNIEnv* env, 92 Result<void> InitPublicNamespace(const char* library_path);
|
D | library_namespaces.cpp | 116 Result<ApiDomain> GetApiDomainFromPathList(const std::string& path_list) { in GetApiDomainFromPathList() 195 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, in Create() 332 Result<NativeLoaderNamespace> app_ns = in Create() 346 Result<NativeLoaderNamespace> system_ns = NativeLoaderNamespace::GetSystemNamespace(is_bridged); in Create() 351 Result<void> linked = app_ns->Link(&system_ns.value(), system_exposed_libraries); in Create() 357 Result<NativeLoaderNamespace> ns = in Create() 370 Result<NativeLoaderNamespace> vndk_ns = in Create() 382 Result<NativeLoaderNamespace> vndk_ns = in Create() 397 Result<NativeLoaderNamespace> apex_ns = in Create() 412 Result<NativeLoaderNamespace> vendor_ns = in Create() [all …]
|
/art/test/2009-structural-local-ref/ |
D | expected-stdout.txt | 2 Result was VirtualString 4 Result was StaticString 6 Result was meth 8 Result was static-meth
|
/art/test/917-fields-transformation/ |
D | expected-stdout.txt | 1 Result is Hello 4 Result is start 7 Result is Goodbye 10 Result is end
|
/art/dexopt_chroot_setup/ |
D | dexopt_chroot_setup.h | 40 android::base::Result<void> Start(); 43 android::base::Result<void> SetUpChroot(const std::optional<std::string>& ota_slot, 46 android::base::Result<void> InitChroot() const REQUIRES(mu_); 48 android::base::Result<void> TearDownChroot() const REQUIRES(mu_);
|
D | dexopt_chroot_setup.cc | 65 using ::android::base::Result; 91 Result<void> Run(std::string_view log_name, const std::vector<std::string>& args) { in Run() 103 Result<CmdlineBuilder> GetArtExecCmdlineBuilder() { in GetArtExecCmdlineBuilder() 116 Result<void> CreateDir(const std::string& path) { in CreateDir() 125 Result<void> Unmount(const std::string& target) { in Unmount() 137 Result<void> BindMount(const std::string& source, const std::string& target) { in BindMount() 221 Result<void> BindMountRecursive(const std::string& source, const std::string& target) { in BindMountRecursive() 250 Result<std::vector<std::string>> GetSupportedFilesystems() { in GetSupportedFilesystems() 278 Result<void> Mount(const std::string& block_device, const std::string& target, bool is_optional) { in Mount() 279 static const NoDestructor<Result<std::vector<std::string>>> supported_filesystems( in Mount() [all …]
|
/art/test/dexpreopt/ |
D | dexpreopt_test.cc | 63 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() 205 android::base::Result<std::vector<std::pair<std::string, InstructionSet>>> zygote_names_and_isas = in TEST() 210 android::base::Result<std::vector<std::string>> expected_artifacts = in TEST() 219 android::base::Result<std::vector<std::string>> mapped_oat_files = in TEST() 228 android::base::Result<std::vector<std::string>> expected_artifacts = in TEST() [all …]
|
/art/test/ |
D | standalone_test_lib_check.cc | 41 using ::android::base::Result; 85 Result<std::string> GetCurrentElfObjectPath() { in GetCurrentElfObjectPath() 93 Result<std::vector<std::string>> GetDynamicLibDeps(const std::string& filename) { in GetDynamicLibDeps() 152 Result<std::string> path_to_self = GetCurrentElfObjectPath(); in TEST() 154 Result<std::vector<std::string>> dyn_lib_deps = GetDynamicLibDeps(path_to_self.value()); in TEST()
|
/art/libarttools/include/tools/ |
D | tools.h | 53 android::base::Result<std::vector<android::fs_mgr::FstabEntry>> GetProcMountsAncestorsOfPath( 57 android::base::Result<std::vector<android::fs_mgr::FstabEntry>> GetProcMountsDescendantsOfPath( 61 android::base::Result<void> EnsureNoProcessInDir(const std::string& dir,
|
/art/libartbase/base/ |
D | bit_memory_region.h | 107 template<typename Result = size_t> 110 ALWAYS_INLINE Result LoadBits(size_t bit_offset, size_t bit_length) const { in LoadBits() 111 static_assert(std::is_integral_v<Result>, "Result must be integral"); in LoadBits() 112 static_assert(std::is_unsigned_v<Result>, "Result must be unsigned"); in LoadBits() 113 static_assert(sizeof(Result) <= kMaxSingleLoadBytes); in LoadBits() 114 DCHECK(IsAligned<sizeof(Result)>(data_)); in LoadBits() 117 DCHECK_LE(bit_length, BitSizeOf<Result>()); in LoadBits() 122 Result* data = reinterpret_cast<Result*>(data_); in LoadBits() 123 size_t width = BitSizeOf<Result>(); in LoadBits() 126 Result value = data[index] >> shift; in LoadBits() [all …]
|