Home
last modified time | relevance | path

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

12

/art/test/1987-structural-redefine-recursive-stack-scope/
Dexpected.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/cmdline/
Dcmdline_types.h61 Result Parse(const std::string& args) {
63 return Result::Success(Unit{});
65 return Result::Failure("Unexpected extra characters " + args);
75 Result Parse(const std::string& option) {
77 return Result::Usage(
82 return Result::Success(JdwpProvider::kDefaultJdwpProvider);
84 return Result::Success(JdwpProvider::kAdbConnection);
86 return Result::Success(JdwpProvider::kNone);
88 return Result::Failure(std::string("not a valid jdwp provider: ") + option);
97 using typename CmdlineTypeParser<Memory<Divisor>>::Result;
[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()
DREADME.md191 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/2009-structural-local-ref/
Dexpected.txt2 Result was VirtualString
4 Result was StaticString
6 Result was meth
8 Result was static-meth
/art/test/917-fields-transformation/
Dexpected.txt1 Result is Hello
4 Result is start
7 Result is Goodbye
10 Result is end
/art/libnativeloader/
Dnative_loader_namespace.h34 using android::base::Result;
41 static Result<NativeLoaderNamespace> Create(const std::string& name,
58 Result<void> Link(const NativeLoaderNamespace& target, const std::string& shared_libs) const;
59 Result<void*> Load(const char* lib_name) const;
61 static Result<NativeLoaderNamespace> GetExportedNamespace(const std::string& name,
63 static Result<NativeLoaderNamespace> GetSystemNamespace(bool is_bridged);
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;
64 Result<std::vector<std::string>> ParseConfig(
66 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn);
68 Result<std::map<std::string, std::string>> ParseJniConfig(
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()
160 Result<void*> NativeLoaderNamespace::Load(const char* lib_name) const { in Load()
Dpublic_libraries.cpp43 using android::base::Result;
116 const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
117 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anon2cb3f6050202()
119 Result<std::vector<std::string>> ReadConfig( in ReadConfig()
121 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ReadConfig()
126 Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); in ReadConfig()
154 config_file_path, [&company_name](const struct ConfigEntry& entry) -> Result<bool> { in ReadExtensionLibraries()
177 ReadConfig(config_file, [&for_preload](const struct ConfigEntry& entry) -> Result<bool> { in InitDefaultPublicLibraries()
435 Result<std::vector<std::string>> ParseConfig( in ParseConfig()
437 const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { in ParseConfig()
[all …]
Dnative_loader_test.cpp605 const std::function<Result<bool>(const struct ConfigEntry&)> always_true =
606 [](const struct ConfigEntry&) -> Result<bool> { return true; }; in __anona7cbf4c60a02()
621 Result<std::vector<std::string>> result = ParseConfig(file_content, always_true); in TEST()
637 Result<std::vector<std::string>> result = ParseConfig(file_content, always_true); in TEST()
650 Result<std::vector<std::string>> result = in TEST()
652 [](const struct ConfigEntry& entry) -> Result<bool> { return !entry.nopreload; }); in TEST()
671 Result<std::vector<std::string>> result = in TEST()
673 [](const struct ConfigEntry& entry) -> Result<bool> { return !entry.nopreload; }); in TEST()
701 Result<std::map<std::string, std::string>> result = ParseJniConfig(file_content); in TEST()
Dlibrary_namespaces.cpp173 Result<NativeLoaderNamespace*> LibraryNamespaces::Create(JNIEnv* env, uint32_t target_sdk_version, in Create()
442 base::Result<std::string> FindApexNamespaceName(const std::string& location) { in FindApexNamespaceName()
Dnative_loader.cpp129 Result<NativeLoaderNamespace*> isolated_ns = in OpenNativeLibrary()
/art/libartbase/base/
Dbit_memory_region.h106 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/
Dsubtype_check_info.h135 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/
Dexpected.txt1 Iteration Result is as expected
/art/test/647-jni-get-field-id/
Dexpected.txt5 Result: true
15 Result: true
/art/test/VerifierDeps/
DMyResult.smali17 .implements Ljavax/xml/transform/Result;
DMain.smali225 # Case 1: DOMResult implements Result
232 # Case 2: MyDOMResult extends DOMResult, DOMResult implements Result
239 # Case 3: MyResult implements Result
/art/dex2oat/
Ddex2oat_options.cc28 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/
Dart_dex_file_loader_test.cc136 struct Result { in TEST_F() struct
141 static const Result results[] = { in TEST_F()
199 for (const Result& r : results) { in TEST_F()
/art/openjdkjvmti/
Dti_logging.cc84 art::CmdlineType<art::LogVerbosity>::Result result = cmdline_parser.Parse(parse_data); in SetVerboseFlagExt()
/art/test/458-checker-instruct-simplification/smali/
DSmaliTests2.smali155 ## 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
DSmaliTests.smali397 ## 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>>]

12