Home
last modified time | relevance | path

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

/art/cmdline/
Dcmdline_types.h59 Result Parse(const std::string& args) {
61 return Result::Success(Unit{});
63 return Result::Failure("Unexpected extra characters " + args);
73 Result Parse(const std::string& option) {
75 return Result::Usage(
81 return Result::Success(JdwpProvider::kDefaultJdwpProvider);
83 return Result::Success(JdwpProvider::kInternal);
85 return Result::Success(JdwpProvider::kAdbConnection);
87 return Result::Success(JdwpProvider::kNone);
89 return Result::Failure(std::string("not a valid jdwp provider: ") + option);
[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/917-fields-transformation/
Dexpected.txt1 Result is Hello
4 Result is start
7 Result is Goodbye
10 Result is end
/art/test/565-checker-rotate/smali/
DMain2.smali24 ## CHECK-DAG: <<Result:i\d+>> InvokeStaticOrDirect [<<Val>>,<<ArgDist>>{{(,[ij]\d+)?}}] intrin…
25 ## CHECK-DAG: Return [<<Result>>]
34 ## CHECK-DAG: <<Result:i\d+>> Ror [<<Val>>,<<NegDist>>]
35 ## CHECK-DAG: Return [<<Result>>]
47 ## CHECK-DAG: <<Result:i\d+>> Ror [<<SelVal>>,<<NegDist>>]
48 ## CHECK-DAG: Return [<<Result>>]
57 ## CHECK-DAG: <<Result:i\d+>> Ror [<<ArgVal>>,<<NegDist>>]
58 ## CHECK-DAG: Return [<<Result>>]
99 ## CHECK-DAG: <<Result:i\d+>> InvokeStaticOrDirect [<<Val>>,<<ArgDist>>{{(,[ij]\d+)?}}] intrin…
100 ## CHECK-DAG: Return [<<Result>>]
[all …]
/art/test/566-checker-signum/smali/
DMain2.smali22 ## CHECK-DAG: <<Result:i\d+>> InvokeStaticOrDirect [<<Phi>>{{(,[ij]\d+)?}}] intrinsic:IntegerSi…
23 ## CHECK-DAG: Return [<<Result>>]
29 ## CHECK-DAG: <<Result:i\d+>> Compare [<<Phi>>,<<Zero>>]
30 ## CHECK-DAG: Return [<<Result>>]
40 ## CHECK-DAG: <<Result:i\d+>> Compare [<<Sel>>,<<Zero>>]
41 ## CHECK-DAG: Return [<<Result>>]
49 ## CHECK-DAG: <<Result:i\d+>> Compare [<<Arg>>,<<Zero>>]
50 ## CHECK-DAG: Return [<<Result>>]
/art/test/567-checker-compare/smali/
DSmali.smali23 ## CHECK-DAG: <<Result:i\d+>> InvokeStaticOrDirect [<<PhiX>>,<<PhiY>>{{(,[ij]\d+)?}}] intrinsi…
24 ## CHECK-DAG: Return [<<Result>>]
31 ## CHECK-DAG: <<Result:i\d+>> Compare [<<PhiX>>,<<PhiY>>]
32 ## CHECK-DAG: Return [<<Result>>]
44 ## CHECK-DAG: <<Result:i\d+>> Compare [<<SelX>>,<<SelY>>]
45 ## CHECK-DAG: Return [<<Result>>]
53 ## CHECK-DAG: <<Result:i\d+>> Compare [<<ArgX>>,<<ArgY>>]
54 ## CHECK-DAG: Return [<<Result>>]
/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()
Dsubtype_check_test.cc264 SubtypeCheckInfo::Result IsSubtypeOf(const MockSubtypeCheck& target) in IsSubtypeOf()
959 SubtypeCheckInfo::Result slow_result = in EnsureSubtypeOfCorrect()
961 SubtypeCheckInfo::Result fast_result = src_tree.IsSubtypeOf(target_tree); in EnsureSubtypeOfCorrect()
Dsubtype_check.h353 static SubtypeCheckInfo::Result IsSubtypeOf(ClassPtr source, ClassPtr target) 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/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/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/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/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>>]
/art/test/046-reflect/
Dexpected.txt28 Result of invoke: 7
/art/runtime/mirror/
Dclass-inl.h575 SubtypeCheckInfo::Result sc_result = SubtypeCheck<ObjPtr<Class>>::IsSubtypeOf(dis, klass); in IsSubClass()
585 SubtypeCheckInfo::Result expected_result = in IsSubClass()
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S2722 str r1, [sp, 72] @ r0:r1 := Result. Copy r1 to context.