/art/cmdline/ |
D | cmdline_types.h | 62 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 …]
|
D | cmdline_type_parser.h | 31 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()
|
D | README.md | 191 Result Parse(const std::string& str) { 197 return Result::Failure("Failed to parse double from " + str); 200 return Result::OutOfRange( 204 return Result::Success(value); 219 Result ParseAndAppend(const std::string& args, 222 return Result::SuccessNoValue(); 230 #### What is a `Result`? 231 `Result` is a typedef for `CmdlineParseResult<T>` and it acts similar to a poor version of 235 There are helpers like `Result::Success(value)`, `Result::Failure(string message)` and so on to 238 When successfully parsing a single value, `Result::Success(value)` should be used, and when [all …]
|
/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/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 | 82 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 …]
|
D | library_namespaces.h | 36 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);
|
D | public_libraries.h | 28 using android::base::Result; 66 Result<std::vector<std::string>> ParseConfig( 68 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn); 72 Result<std::map<std::string, std::string>> ParseApexLibrariesConfig(
|
D | public_libraries.cpp | 44 using android::base::Result; 88 const std::function<Result<bool>(const struct ConfigEntry&)> always_true = 89 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anon2cb3f6050202() 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() 149 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> { in InitDefaultPublicLibraries() 273 Result<ApexLibrariesConfigLine> ParseApexLibrariesConfigLine(const std::string& line) { in ParseApexLibrariesConfigLine() 366 Result<std::vector<std::string>> ParseConfig( in ParseConfig() [all …]
|
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() 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()
|
D | native_loader_test.cpp | 448 const std::function<Result<bool>(const struct ConfigEntry&)> always_true = 449 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anona7cbf4c60102() 464 Result<std::vector<std::string>> result = ParseConfig(file_content, always_true); in TEST() 480 Result<std::vector<std::string>> result = ParseConfig(file_content, always_true); in TEST() 493 Result<std::vector<std::string>> result = in TEST() 495 [](const struct ConfigEntry& entry) -> Result<bool> { return !entry.nopreload; }); in TEST() 514 Result<std::vector<std::string>> result = in TEST() 516 [](const struct ConfigEntry& entry) -> Result<bool> { return !entry.nopreload; }); in TEST()
|
D | library_namespaces.cpp | 170 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, uint32_t target_sdk_version, in Create() 414 base::Result<std::string> FindApexNamespaceName(const std::string& location) { in FindApexNamespaceName()
|
/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/libartbase/base/ |
D | bit_memory_region.h | 106 template<typename Result = size_t> 109 ALWAYS_INLINE Result LoadBits(size_t bit_offset, size_t bit_length) const { in LoadBits() 110 static_assert(std::is_integral<Result>::value, "Result must be integral"); in LoadBits() 111 static_assert(std::is_unsigned<Result>::value, "Result must be unsigned"); in LoadBits() 112 DCHECK(IsAligned<sizeof(Result)>(data_)); in LoadBits() 115 DCHECK_LE(bit_length, BitSizeOf<Result>()); in LoadBits() 120 Result* data = reinterpret_cast<Result*>(data_); in LoadBits() 121 size_t width = BitSizeOf<Result>(); in LoadBits() 124 Result value = data[index] >> shift; in LoadBits() 127 Result extra = data[index + (shift + (bit_length - 1)) / width]; in LoadBits() [all …]
|
/art/runtime/ |
D | subtype_check_info.h | 135 enum Result { enum 169 Result IsSubtypeOf(const SubtypeCheckInfo& target) { in IsSubtypeOf() 171 return Result::kUnknownSubtypeOf; in IsSubtypeOf() 173 return Result::kUnknownSubtypeOf; in IsSubtypeOf() 193 return result ? Result::kSubtypeOf : Result::kNotSubtypeOf; in IsSubtypeOf()
|
/art/test/302-float-conversion/ |
D | expected-stdout.txt | 1 Iteration Result is as expected
|
/art/test/647-jni-get-field-id/ |
D | expected-stdout.txt | 5 Result: true 15 Result: true
|
/art/compiler/driver/ |
D | compiler_options_map-inl.h | 36 Result Parse(const std::string& option) { 39 return Result::Failure( 42 return Result::Success(compiler_filter);
|
/art/test/VerifierDeps/ |
D | MyResult.smali | 17 .implements Ljavax/xml/transform/Result;
|
/art/dex2oat/ |
D | dex2oat_options.cc | 28 Result Parse(const std::string& option) { in Parse() 31 return Result::Failure(std::string("Not a valid instruction set: '") + option + "'"); in Parse() 33 return Result::Success(set); in Parse()
|
/art/libdexfile/dex/ |
D | art_dex_file_loader_test.cc | 145 struct Result { in TEST_F() struct 150 static const Result results[] = { in TEST_F() 208 for (const Result& r : results) { in TEST_F()
|
/art/test/458-checker-instruct-simplification/smali/ |
D | SmaliTests2.smali | 155 ## CHECK-DAG: <<Result:z\d+>> InvokeStaticOrDirect method_name:SmaliTests2.NegateValue 156 ## CHECK-DAG: <<NotResult:z\d+>> NotEqual [<<Result>>,<<Const1>>] 164 ## CHECK-DAG: <<Result:z\d+>> InvokeStaticOrDirect method_name:SmaliTests2.NegateValue
|
D | SmaliTests.smali | 397 ## CHECK-DAG: <<Result:z\d+>> InvokeStaticOrDirect 398 ## CHECK-DAG: <<NotResult:i\d+>> Xor [<<Result>>,<<Const1>>] 403 ## CHECK-DAG: <<Result:z\d+>> InvokeStaticOrDirect 404 ## CHECK-DAG: <<NotResult:z\d+>> BooleanNot [<<Result>>]
|
/art/openjdkjvmti/ |
D | ti_logging.cc | 84 art::CmdlineType<art::LogVerbosity>::Result result = cmdline_parser.Parse(parse_data); in SetVerboseFlagExt()
|