/external/google-fruit/include/fruit/impl/util/ |
call_with_tuple.h | 25 template <typename IntVector, typename Result, typename ArgsTuple> 28 template <typename... Ints, typename Result, typename... Args> 29 struct CallWithTupleHelper<fruit::impl::meta::Vector<Ints...>, Result, std::tuple<Args...>> { 30 Result operator()(Result (*fun)(Args...), std::tuple<Args...> args) { 37 template <typename Result, typename... Args> 38 inline Result callWithTuple(Result (*fun)(Args...), std::tuple<Args...> args) { 41 return CallWithTupleHelper<IntVector, Result, std::tuple<Args...>>()(fun, args);
|
/external/perfetto/src/android_internal/ |
health_hal.cc | 26 using ::android::hardware::health::V2_0::Result; 51 Result res; 54 res = Result::NOT_FOUND; 58 g_svc->getChargeCounter([&res, value](Result hal_res, int32_t hal_value) { 65 g_svc->getCapacity([&res, value](Result hal_res, int64_t hal_value) { 72 g_svc->getCurrentNow([&res, value](Result hal_res, int32_t hal_value) { 80 [&res, value](Result hal_res, int32_t hal_value) { 87 if (res == Result::CALLBACK_DIED) 90 return res == Result::SUCCESS;
|
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/ |
NumericInt.c | 138 integer, and return the result.
187 long Result = 0;
236 Previous = Result;
237 Result = (Result * base) + (long int)temp;
238 if( Result <= Previous) { // Detect Overflow
240 Result = LONG_MIN;
243 Result = LONG_MAX;
252 Result = -Result;
[all...] |
/external/clang/lib/Tooling/ |
RefactoringCallbacks.cpp | 41 const ast_matchers::MatchFinder::MatchResult &Result) { 42 if (const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId)) { 44 *Result.SourceManager, 54 const ast_matchers::MatchFinder::MatchResult &Result) { 55 const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId); 56 const Stmt *ToMatch = Result.Nodes.getStmtAs<Stmt>(ToId); 59 *Result.SourceManager, *FromMatch, *ToMatch)); 67 const ast_matchers::MatchFinder::MatchResult &Result) { 68 if (const IfStmt *Node = Result.Nodes.getStmtAs<IfStmt>(Id)) { 71 Replace.insert(replaceStmtWithStmt(*Result.SourceManager, *Node, *Body)) [all...] |
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/ |
recognize_commands.h | 36 // Data structure that holds an inference result, and the time when it 38 struct Result { 39 Result() : time_(0), scores_() {} 40 Result(int32_t time, uint8_t* scores) : time_(time) { 51 Result& front() { return results_[front_index_]; } 52 Result& back() { 60 void push_back(const Result& entry) { 63 "Couldn't push_back latest result, too many already!"); 70 Result pop_front() { 72 error_reporter_->Report("Couldn't pop_front result, none present!") 75 Result result = front(); local [all...] |
/external/clang/lib/Index/ |
CommentToXML.cpp | 201 llvm::raw_svector_ostream &Result) { 202 Result << "<" << C->getTagName(); 206 Result << " "; 208 Result << Attr.Name; 210 Result << "=\"" << Attr.Value << "\""; 215 Result << ">"; 217 Result << "/>"; 227 FC(FC), Result(Str), Traits(Traits) 258 llvm::raw_svector_ostream Result; 283 Result << " "; [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
LoopAnalysisManager.h | 85 /// A specialized result for the \c LoopAnalysisManagerFunctionProxy which 90 template <> class LoopAnalysisManagerFunctionProxy::Result { 92 explicit Result(LoopAnalysisManager &InnerAM, LoopInfo &LI) 94 Result(Result &&Arg) : InnerAM(std::move(Arg.InnerAM)), LI(Arg.LI) { 100 Result &operator=(Result &&RHS) { 109 ~Result() { 140 /// so it can pass the \c LoopInfo to the result. 142 LoopAnalysisManagerFunctionProxy::Result [all...] |
/frameworks/base/cmds/idmap2/include/idmap2/ |
ResourceUtils.h | 25 #include "idmap2/Result.h" 37 Result<OverlayManifestInfo> ExtractOverlayManifestInfo(const std::string& path, 40 Result<std::string> ResToTypeEntryName(const AssetManager2& am, ResourceId resid);
|
/external/llvm/include/llvm/ADT/ |
StringSwitch.h | 47 /// \brief The pointer to the result of this switch statement, once known, 49 const T *Result; 54 : Str(S), Result(nullptr) { } 59 if (!Result && N-1 == Str.size() && 61 Result = &Value; 70 if (!Result && Str.size() >= N-1 && 72 Result = &Value; 81 if (!Result && Str.size() >= N-1 && 83 Result = &Value; 93 if (!Result && [all...] |
/external/llvm/include/llvm/Support/ |
MD5.h | 58 /// \brief Finishes off the hash and puts the result in result. 59 void final(MD5Result &Result); 62 /// deposited into \p Str. The result will be of length 32. 63 static void stringifyResult(MD5Result &Result, SmallString<32> &Str); 73 llvm::MD5::MD5Result Result; 74 Hash.final(Result); 76 // result in little endian, so we may need to swap bytes. 78 return endian::read<uint64_t, little, unaligned>(Result);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowAsyncTaskBridge.java | 12 public class ShadowAsyncTaskBridge<Params, Progress, Result> { 13 private AsyncTask<Params, Progress, Result> asyncTask; 15 public ShadowAsyncTaskBridge(AsyncTask<Params, Progress, Result> asyncTask) { 19 public Result doInBackground(Params... params) { 27 public void onPostExecute(Result result) { 28 ReflectionHelpers.callInstanceMethod(asyncTask, "onPostExecute", ClassParameter.from(Object.class, result)); 36 // Assume the result is null since the result cannot be retrieved from the FutureTask if it is
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/not/ |
not.cpp | 46 int Result = sys::ExecuteAndWait(*Program, Argv, None, {}, 0, 0, &ErrMsg); 52 if (ExpectCrash && Result == 3) 53 Result = -3; 55 if (Result < 0) { 65 return Result == 0;
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
MD5.h | 59 /// \brief Finishes off the hash and puts the result in result. 60 void final(MD5Result &Result); 63 /// deposited into \p Str. The result will be of length 32. 64 static void stringifyResult(MD5Result &Result, SmallString<32> &Str); 77 llvm::MD5::MD5Result Result; 78 Hash.final(Result); 80 // result in little endian, so we may need to swap bytes. 82 return endian::read<uint64_t, little, unaligned>(Result);
|
/frameworks/base/cmds/idmap2/idmap2/ |
Commands.h | 23 #include "idmap2/Result.h" 25 android::idmap2::Result<android::idmap2::Unit> Create(const std::vector<std::string>& args); 26 android::idmap2::Result<android::idmap2::Unit> Dump(const std::vector<std::string>& args); 27 android::idmap2::Result<android::idmap2::Unit> Lookup(const std::vector<std::string>& args); 28 android::idmap2::Result<android::idmap2::Unit> Scan(const std::vector<std::string>& args); 29 android::idmap2::Result<android::idmap2::Unit> Verify(const std::vector<std::string>& args);
|
/external/easymock/src/org/easymock/internal/ |
Result.java | 23 public class Result implements IAnswer<Object>, Serializable {
31 private Result(IAnswer<?> value, boolean shouldFillInStackTrace) {
36 public static Result createThrowResult(final Throwable throwable) {
50 return new Result(new ThrowingAnswer(), true);
53 public static Result createReturnResult(final Object value) {
67 return new Result(new ReturningAnswer(), true);
70 public static Result createDelegatingResult(final Object value) {
95 return new Result(new DelegatingAnswer(), false);
98 public static Result createAnswerResult(IAnswer<?> answer) {
99 return new Result(answer, false); [all...] |
/external/google-fruit/include/fruit/impl/meta/ |
graph.h | 68 using Result = FoldVector(Neighbors, VisitSingleNeighbor, ConsTriplet(NewVisitedSet, None, Bool<false>)); 76 If(IsNone(GetSecond(Result)), 78 Result, 80 If(GetThird(Result) /* IsLoopComplete */, Result, 81 If(VectorEndsWith(GetSecond(Result) /* Loop */, Node), 83 ConsTriplet(GetFirst(Result), GetSecond(Result), Bool<true>), 85 ConsTriplet(GetFirst(Result), PushFront(GetSecond(Result), Node), Bool<false>)))))) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/MCTargetDesc/ |
HexagonMCDuplexInfo.cpp | 699 MCInst Result; 711 Result.setOpcode(Hexagon::SA1_inc); 712 addOps(Result, Inst, 0); 713 addOps(Result, Inst, 1); 717 Result.setOpcode(Hexagon::SA1_dec); 718 addOps(Result, Inst, 0); 719 addOps(Result, Inst, 1); 720 addOps(Result, Inst, 2); 724 Result.setOpcode(Hexagon::SA1_addsp); 725 addOps(Result, Inst, 0) [all...] |
/frameworks/base/cmds/idmap2/tests/ |
ResultTests.cpp | 23 #include "idmap2/Result.h" 59 // Tests: Result<T> member functions 61 // Result(const Result&) 63 Result<uint32_t> r1(42U); 65 Result<uint32_t> r2(r1); 69 Result<uint32_t> r3 = r2; 74 // Result(const T&) 77 Result<uint32_t> r1(v); 82 Result<uint32_t> r2(e) [all...] |
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
GetResultActivity.java | 28 private static LinkedBlockingQueue<Result> sResult; 30 public static class Result { 35 public Result(int requestCode, int resultCode, Intent data) { 54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); 66 public Result getResult() { 67 final Result result; local 69 result = sResult.poll(30, TimeUnit.SECONDS); 73 if (result == null) { 74 throw new IllegalStateException("Activity didn't receive a Result in 30 seconds") [all...] |
/cts/tests/providerui/src/android/providerui/cts/ |
GetResultActivity.java | 28 private static LinkedBlockingQueue<Result> sResult; 30 public static class Result { 35 public Result(int requestCode, int resultCode, Intent data) { 54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); 64 public Result getResult() { 65 final Result result; local 67 result = sResult.poll(30, TimeUnit.SECONDS); 71 if (result == null) { 72 throw new IllegalStateException("Activity didn't receive a Result in 30 seconds") [all...] |
/device/generic/goldfish/dhcp/server/ |
dhcpserver.h | 20 #include "result.h" 37 Result init(); 38 Result run(); 41 Result sendMessage(unsigned int interfaceIndex, 52 Result getInterfaceData(unsigned int interfaceIndex, 55 Result getInterfaceAddress(unsigned int interfaceIndex, 57 Result getInterfaceNetmask(unsigned int interfaceIndex, 59 Result getOfferAddress(unsigned int interfaceIndex,
|
/external/llvm/lib/DebugInfo/PDB/DIA/ |
DIASourceFile.cpp | 27 HRESULT Result = SourceFile->get_fileName(&FileName16); 28 if (S_OK != Result) 45 HRESULT Result = SourceFile->get_checksum(0, &ByteSize, nullptr); 49 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]); 50 if (S_OK != Result) 57 HRESULT Result = SourceFile->get_checksumType(&Type); 58 if (S_OK != Result) 66 HRESULT Result = SourceFile->get_compilands(&DiaEnumerator); 67 if (S_OK != Result)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/DIA/ |
DIASourceFile.cpp | 27 HRESULT Result = SourceFile->get_fileName(&FileName16); 28 if (S_OK != Result) 45 HRESULT Result = SourceFile->get_checksum(0, &ByteSize, nullptr); 49 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]); 50 if (S_OK != Result) 57 HRESULT Result = SourceFile->get_checksumType(&Type); 58 if (S_OK != Result) 66 HRESULT Result = SourceFile->get_compilands(&DiaEnumerator); 67 if (S_OK != Result)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/ |
Hash.cpp | 22 uint32_t Result = 0; 29 Result ^= Value; 38 Result ^= static_cast<uint32_t>(Value); 45 Result ^= *(Remainder++); 49 Result |= toLowerMask; 50 Result ^= (Result >> 11); 52 return Result ^ (Result >> 16);
|
/external/clang/lib/Lex/ |
Lexer.cpp | 203 std::string Result = Str; 205 for (unsigned i = 0, e = Result.size(); i != e; ++i) { 206 if (Result[i] == '\\' || Result[i] == Quote) { 207 Result.insert(Result.begin()+i, '\\'); 211 return Result; 342 std::string Result; 343 Result.resize(Tok.getLength()); 344 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())) [all...] |