Home
last modified time | relevance | path

Searched refs:Action (Results 1 – 25 of 818) sorted by relevance

12345678910>>...33

/external/libchrome/base/posix/
Dfile_descriptor_shuffle_unittest.cc17 struct Action { struct
24 Action(Type in_type, int in_fd1, int in_fd2 = -1) in Action() function
30 bool operator==(const Action& other) const { in operator ==() argument
49 actions_.push_back(Action(Action::DUPLICATE, *result, fd)); in Duplicate()
54 actions_.push_back(Action(Action::MOVE, src, dest)); in Move()
58 void Close(int fd) override { actions_.push_back(Action(Action::CLOSE, fd)); } in Close()
60 const std::vector<Action>& actions() const { return actions_; } in actions()
64 std::vector<Action> actions_;
100 EXPECT_TRUE(tracer.actions()[0] == Action(Action::MOVE, 0, 1)); in TEST()
111 EXPECT_TRUE(tracer.actions()[0] == Action(Action::MOVE, 0, 1)); in TEST()
[all …]
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/
Dmax_allocation_size.cpp50 static void *allocate(const char *Action, size_t Size) { in allocate() argument
51 if (!strcmp(Action, "malloc")) in allocate()
53 if (!strcmp(Action, "calloc")) in allocate()
55 if (!strcmp(Action, "realloc")) in allocate()
57 if (!strcmp(Action, "realloc-after-malloc")) { in allocate()
64 if (!strcmp(Action, "new")) in allocate()
66 if (!strcmp(Action, "new-nothrow")) in allocate()
71 static void deallocate(const char *Action, void *Ptr) { in deallocate() argument
72 if (!strcmp(Action, "malloc") || !strcmp(Action, "calloc") || in deallocate()
73 !strcmp(Action, "realloc") || !strcmp(Action, "realloc-after-malloc")) in deallocate()
[all …]
/external/clang/include/clang/Driver/
DAction.h42 class Action {
98 Action(ActionClass Kind, types::ID Type) : Action(Kind, ActionList(), Type) {} in Action() function
99 Action(ActionClass Kind, Action *Input, types::ID Type) in Action() function
100 : Action(Kind, ActionList({Input}), Type) {} in Action()
101 Action(ActionClass Kind, Action *Input) in Action() function
102 : Action(Kind, ActionList({Input}), Input->getType()) {} in Action()
103 Action(ActionClass Kind, const ActionList &Inputs, types::ID Type) in Action() function
107 virtual ~Action();
109 const char *getClassName() const { return Action::getClassName(getKind()); } in getClassName()
129 class InputAction : public Action {
[all …]
DCompilation.h50 std::multimap<Action::OffloadKind, const ToolChain *>
62 std::vector<std::unique_ptr<Action>> AllActions;
102 auto It = OrderedOffloadingToolchains.find(Action::OFK_Host); in getOffloadingHostToolChain()
107 unsigned isOffloadingHostKind(Action::OffloadKind Kind) const { in isOffloadingHostKind()
112 typedef const std::multimap<Action::OffloadKind,
119 template <Action::OffloadKind Kind>
126 template <Action::OffloadKind Kind>
138 Action::OffloadKind OffloadKind) { in addOffloadDeviceToolChain()
139 assert(OffloadKind != Action::OFK_Host && OffloadKind != Action::OFK_None && in addOffloadDeviceToolChain()
162 AllActions.push_back(std::unique_ptr<Action>(RawPtr)); in MakeAction()
/external/llvm-project/clang/include/clang/Driver/
DAction.h47 class Action {
129 Action(ActionClass Kind, types::ID Type) : Action(Kind, ActionList(), Type) {} in Action() function
130 Action(ActionClass Kind, Action *Input, types::ID Type) in Action() function
131 : Action(Kind, ActionList({Input}), Type) {} in Action()
132 Action(ActionClass Kind, Action *Input) in Action() function
133 : Action(Kind, ActionList({Input}), Input->getType()) {} in Action()
134 Action(ActionClass Kind, const ActionList &Inputs, types::ID Type) in Action() function
138 virtual ~Action();
140 const char *getClassName() const { return Action::getClassName(getKind()); } in getClassName()
193 void propagateOffloadInfo(const Action *A);
[all …]
DCompilation.h60 std::multimap<Action::OffloadKind, const ToolChain *>
72 std::vector<std::unique_ptr<Action>> AllActions;
86 Action::OffloadKind DeviceOffloadKind = Action::OFK_None;
89 Action::OffloadKind DeviceOffloadKind) in TCArgsKey()
142 unsigned isOffloadingHostKind(Action::OffloadKind Kind) const { in isOffloadingHostKind()
148 const std::multimap<Action::OffloadKind,
154 template <Action::OffloadKind Kind>
160 template <Action::OffloadKind Kind> bool hasOffloadToolChain() const { in hasOffloadToolChain()
167 template <Action::OffloadKind Kind>
179 Action::OffloadKind OffloadKind) { in addOffloadDeviceToolChain()
[all …]
/external/llvm-project/llvm/utils/TableGen/
DCallingConvEmitter.cpp31 void EmitAction(Record *Action, unsigned Indent, raw_ostream &O);
94 void CallingConvEmitter::EmitAction(Record *Action, in EmitAction() argument
98 if (Action->isSubClassOf("CCPredicateAction")) { in EmitAction()
101 if (Action->isSubClassOf("CCIfType")) { in EmitAction()
102 ListInit *VTs = Action->getValueAsListInit("VTs"); in EmitAction()
109 } else if (Action->isSubClassOf("CCIf")) { in EmitAction()
110 O << Action->getValueAsString("Predicate"); in EmitAction()
112 errs() << *Action; in EmitAction()
113 PrintFatalError(Action->getLoc(), "Unknown CCPredicateAction!"); in EmitAction()
117 EmitAction(Action->getValueAsDef("SubAction"), Indent+2, O); in EmitAction()
[all …]
/external/llvm/utils/TableGen/
DCallingConvEmitter.cpp32 void EmitAction(Record *Action, unsigned Indent, raw_ostream &O);
81 void CallingConvEmitter::EmitAction(Record *Action, in EmitAction() argument
85 if (Action->isSubClassOf("CCPredicateAction")) { in EmitAction()
88 if (Action->isSubClassOf("CCIfType")) { in EmitAction()
89 ListInit *VTs = Action->getValueAsListInit("VTs"); in EmitAction()
96 } else if (Action->isSubClassOf("CCIf")) { in EmitAction()
97 O << Action->getValueAsString("Predicate"); in EmitAction()
99 Action->dump(); in EmitAction()
104 EmitAction(Action->getValueAsDef("SubAction"), Indent+2, O); in EmitAction()
107 if (Action->isSubClassOf("CCDelegateTo")) { in EmitAction()
[all …]
/external/clang/lib/Driver/
DAction.cpp18 Action::~Action() {} in ~Action()
20 const char *Action::getClassName(ActionClass AC) { in getClassName()
46 : Action(InputClass, _Type), Input(_Input) { in InputAction()
51 BindArchAction::BindArchAction(Action *Input, const char *_ArchName) in BindArchAction()
52 : Action(BindArchClass, Input), ArchName(_ArchName) {} in BindArchAction()
56 CudaDeviceAction::CudaDeviceAction(Action *Input, clang::CudaArch Arch, in CudaDeviceAction()
58 : Action(CudaDeviceClass, Input), GpuArch(Arch), AtTopLevel(AtTopLevel) {} in CudaDeviceAction()
62 CudaHostAction::CudaHostAction(Action *Input, const ActionList &DeviceActions) in CudaHostAction()
63 : Action(CudaHostClass, Input), DeviceActions(DeviceActions) {} in CudaHostAction()
67 JobAction::JobAction(ActionClass Kind, Action *Input, types::ID Type) in JobAction()
[all …]
/external/llvm-project/clang/lib/Driver/
DAction.cpp18 Action::~Action() = default;
20 const char *Action::getClassName(ActionClass AC) { in getClassName()
53 void Action::propagateDeviceOffloadInfo(OffloadKind OKind, const char *OArch) { in propagateDeviceOffloadInfo()
71 void Action::propagateHostOffloadInfo(unsigned OKinds, const char *OArch) { in propagateHostOffloadInfo()
85 void Action::propagateOffloadInfo(const Action *A) { in propagateOffloadInfo()
93 std::string Action::getOffloadingKindPrefix() const { in getOffloadingKindPrefix()
132 Action::GetOffloadingFileNamePrefix(OffloadKind Kind, in GetOffloadingFileNamePrefix()
148 StringRef Action::GetOffloadKindName(OffloadKind Kind) { in GetOffloadKindName()
169 : Action(InputClass, _Type), Input(_Input) {} in InputAction()
173 BindArchAction::BindArchAction(Action *Input, StringRef ArchName) in BindArchAction()
[all …]
/external/rust/crates/tokio-test/src/
Dio.rs47 tx: mpsc::UnboundedSender<Action>,
54 actions: VecDeque<Action>,
58 enum Action { enum
69 actions: VecDeque<Action>,
73 rx: UnboundedReceiverStream<Action>,
87 self.actions.push_back(Action::Read(buf.into())); in read()
97 self.actions.push_back(Action::ReadError(error)); in read_error()
106 self.actions.push_back(Action::Write(buf.into())); in write()
116 self.actions.push_back(Action::WriteError(error)); in write_error()
126 self.actions.push_back(Action::Wait(duration)); in wait()
[all …]
/external/googletest/googlemock/test/
Dgmock-more-actions_test.cc55 using testing::Action;
193 Action<int()> a = Invoke(Nullary); // NOLINT in TEST()
199 Action<bool(int)> a = Invoke(Unary); // NOLINT in TEST()
206 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT in TEST()
213 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT in TEST()
219 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT in TEST()
225 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT in TEST()
231 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT in TEST()
242 Action<std::string(const char*, const char*, const char*, const char*, in TEST()
253 Action<std::string(const char*, const char*, const char*, const char*, in TEST()
[all …]
Dgmock-actions_test.cc60 using ::testing::Action;
377 Action<MyGlobalFunction> action = MakeAction(new MyActionImpl); in TEST()
390 Action<MyGlobalFunction> action(new MyActionImpl); in TEST()
395 const Action<MyGlobalFunction> action(new MyActionImpl); in TEST()
403 Action<MyGlobalFunction> a1(new MyActionImpl); in TEST()
404 Action<MyGlobalFunction> a2(a1); // Tests the copy constructor. in TEST()
436 const Action<bool(int)> a1(new IsNotZero); // NOLINT in TEST()
437 const Action<int(char)> a2 = Action<int(char)>(a1); // NOLINT in TEST()
489 Action<int(bool, int, double)> a1 = ReturnSecondArgument(); // NOLINT in TEST()
496 Action<int()> a1 = ReturnZeroFromNullaryFunction(); in TEST()
[all …]
/external/libwebm/webm_parser/src/
Dskip_callback.h24 Action* action) override { in OnElementBegin()
25 *action = Action::kSkip; in OnElementBegin()
30 Action* action) override { in OnSegmentBegin()
31 *action = Action::kSkip; in OnSegmentBegin()
36 const Cluster& /* cluster */, Action* action) override { in OnClusterBegin()
37 *action = Action::kSkip; in OnClusterBegin()
43 Action* action) override { in OnSimpleBlockBegin()
44 *action = Action::kSkip; in OnSimpleBlockBegin()
49 Action* action) override { in OnBlockGroupBegin()
50 *action = Action::kSkip; in OnBlockGroupBegin()
[all …]
Dcallback.cc15 Action* action) { in OnElementBegin()
17 *action = Action::kRead; in OnElementBegin()
42 Action* action) { in OnSegmentBegin()
44 *action = Action::kRead; in OnSegmentBegin()
59 const Cluster& /* cluster */, Action* action) { in OnClusterBegin()
61 *action = Action::kRead; in OnClusterBegin()
67 Action* action) { in OnSimpleBlockBegin()
69 *action = Action::kRead; in OnSimpleBlockBegin()
79 Action* action) { in OnBlockGroupBegin()
81 *action = Action::kRead; in OnBlockGroupBegin()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DActionSchedule.java31 import com.google.android.exoplayer2.testutil.Action.ClearVideoSurface;
32 import com.google.android.exoplayer2.testutil.Action.ExecuteRunnable;
33 import com.google.android.exoplayer2.testutil.Action.PlayUntilPosition;
34 import com.google.android.exoplayer2.testutil.Action.Seek;
35 import com.google.android.exoplayer2.testutil.Action.SendMessages;
36 import com.google.android.exoplayer2.testutil.Action.SetAudioAttributes;
37 import com.google.android.exoplayer2.testutil.Action.SetPlayWhenReady;
38 import com.google.android.exoplayer2.testutil.Action.SetPlaybackSpeed;
39 import com.google.android.exoplayer2.testutil.Action.SetRendererDisabled;
40 import com.google.android.exoplayer2.testutil.Action.SetRepeatMode;
[all …]
DAction.java47 public abstract class Action { class
57 public Action(String tag, @Nullable String description) { in Action() method in Action
122 public static final class Seek extends Action {
175 public static final class SetMediaItems extends Action {
203 public static final class AddMediaItems extends Action {
224 public static final class SetMediaItemsResetPosition extends Action {
249 public static class MoveMediaItem extends Action {
273 public static class RemoveMediaItem extends Action {
294 public static class RemoveMediaItems extends Action {
318 public static class ClearMediaItems extends Action {
[all …]
/external/autotest/server/cros/cfm/configurable_test/
Dactions.py11 class Action(object): class
43 class MuteMicrophone(Action):
50 class UnmuteMicrophone(Action):
57 class WaitForMeetingsLandingPage(Action):
64 class JoinMeeting(Action):
83 class CreateMeeting(Action):
90 class LeaveMeeting(Action):
97 class RebootDut(Action):
119 class RepeatTimes(Action):
141 class AssertFileDoesNotContain(Action):
[all …]
/external/ruy/ruy/
Dprepacked_cache_test.cc61 PrepackedCache::Action::kInsertedNewEntry); in TEST()
68 PrepackedCache::Action::kInsertedNewEntry); in TEST()
75 PrepackedCache::Action::kGotExistingEntry); in TEST()
77 PrepackedCache::Action::kGotExistingEntry); in TEST()
87 PrepackedCache::Action::kInsertedNewEntry); in TEST()
94 PrepackedCache::Action::kInsertedNewEntry); in TEST()
101 PrepackedCache::Action::kGotExistingEntry); in TEST()
103 PrepackedCache::Action::kGotExistingEntry); in TEST()
126 PrepackedCache::Action::kGotExistingEntry); in TEST()
128 PrepackedCache::Action::kInsertedNewEntry); in TEST()
[all …]
/external/libwebm/webm_parser/tests/
Dcallback_test.cc18 using webm::Action;
46 void TestAction(Status (Callback::*function)(const ElementMetadata&, Action*), in TestAction() argument
47 Action expected) { in TestAction()
50 Action action; in TestAction()
59 Action*), in TestAction() argument
60 Action expected) { in TestAction()
64 Action action; in TestAction()
87 TestAction(&Callback::OnElementBegin, Action::kRead); in TEST_F()
99 TestAction(&Callback::OnSegmentBegin, Action::kRead); in TEST_F()
107 TestAction(&Callback::OnClusterBegin, Action::kRead); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LineEditor/
DLineEditor.cpp56 CompletionAction Action; in complete() local
59 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
60 return Action; in complete()
71 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
74 Action.Completions.push_back(I->DisplayText); in complete()
76 Action.Kind = CompletionAction::AK_Insert; in complete()
77 Action.Text = CommonPrefix; in complete()
80 return Action; in complete()
86 CompletionAction Action; in getCompletionAction() local
87 Action.Kind = CompletionAction::AK_ShowCompletions; in getCompletionAction()
[all …]
/external/llvm/lib/LineEditor/
DLineEditor.cpp57 CompletionAction Action; in complete() local
60 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
61 return Action; in complete()
72 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
75 Action.Completions.push_back(I->DisplayText); in complete()
77 Action.Kind = CompletionAction::AK_Insert; in complete()
78 Action.Text = CommonPrefix; in complete()
81 return Action; in complete()
87 CompletionAction Action; in getCompletionAction() local
88 Action.Kind = CompletionAction::AK_ShowCompletions; in getCompletionAction()
[all …]
/external/llvm-project/llvm/lib/LineEditor/
DLineEditor.cpp56 CompletionAction Action; in complete() local
59 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
60 return Action; in complete()
71 Action.Kind = CompletionAction::AK_ShowCompletions; in complete()
74 Action.Completions.push_back(I->DisplayText); in complete()
76 Action.Kind = CompletionAction::AK_Insert; in complete()
77 Action.Text = CommonPrefix; in complete()
80 return Action; in complete()
86 CompletionAction Action; in getCompletionAction() local
87 Action.Kind = CompletionAction::AK_ShowCompletions; in getCompletionAction()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DClangdServer.cpp294 auto Action = [Pos, File = File.str(), CB = std::move(CB), in signatureHelp() local
312 std::move(Action)); in signatureHelp()
339 auto Action = [File = File.str(), Code = Code.str(), in formatOnType() local
354 WorkScheduler.run("FormatOnType", File, std::move(Action)); in formatOnType()
361 auto Action = [Pos, File = File.str(), CB = std::move(CB), in prepareRename() local
384 WorkScheduler.runWithAST("PrepareRename", File, std::move(Action)); in prepareRename()
392 auto Action = [File = File.str(), NewName = NewName.str(), Pos, Opts, in rename() local
426 WorkScheduler.runWithAST("Rename", File, std::move(Action)); in rename()
457 auto Action = [File = File.str(), Sel, CB = std::move(CB), in enumerateTweaks() local
482 WorkScheduler.runWithAST("EnumerateTweaks", File, std::move(Action), in enumerateTweaks()
[all …]
/external/eigen/bench/btl/generic_bench/static/
Dbench_static.hh36 template <template<class> class Perf_Analyzer, template<class> class Action, template<class,int> cl…
39 if (BtlConfig::skipAction(Action<Interface<REAL_TYPE,10> >::name())) in bench_static()
42 string filename = "bench_" + Action<Interface<REAL_TYPE,10> >::name() + ".dat"; in bench_static()
51 static_size_generator<max_size,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops); in bench_static()
57 template <template<class> class Action, template<class,int> class Interface>
60 bench_static<Portable_Perf_Analyzer,Action,Interface>(); in bench_static()

12345678910>>...33