1 #include "MockDeviceImpl.h"
14 MockDeviceImpl::MockDeviceImpl()
16 printf("mockdevice ctor\n");printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
19 MockDeviceImpl::~MockDeviceImpl()
21 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
24 bool MockDeviceImpl::click(const int x, const int y)
26 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
30 bool MockDeviceImpl::click(const int x, const int y, const unsigned int intv)
32 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
36 bool MockDeviceImpl::drag(const int sx, const int sy, const int ex, const int ey,
37 const int steps, const int durationMs)
39 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
43 int MockDeviceImpl::touchDown(const int x, const int y)
45 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
49 bool MockDeviceImpl::touchMove(const int x, const int y, const int seq)
51 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
55 bool MockDeviceImpl::touchUp(const int x, const int y, const int seq)
57 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
62 bool MockDeviceImpl::wheelUp(int amount, const int durationMs)
64 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
69 bool MockDeviceImpl::wheelDown(int amount, const int durationMs)
71 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
76 bool MockDeviceImpl::pressBack(KeyRequestType type)
78 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
83 bool MockDeviceImpl::pressHome(KeyRequestType type)
85 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
90 bool MockDeviceImpl::pressMenu(KeyRequestType type)
92 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
97 bool MockDeviceImpl::pressVolUp(KeyRequestType type)
99 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
104 bool MockDeviceImpl::pressVolDown(KeyRequestType type)
106 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
111 bool MockDeviceImpl::pressPower(KeyRequestType type)
113 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
118 bool MockDeviceImpl::pressKeyCode(std::string keycode, KeyRequestType type)
120 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
125 bool MockDeviceImpl::takeScreenshot(std::string path, float scale, int quality)
127 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
132 long long MockDeviceImpl::getSystemTime(TimeRequestType type)
134 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
138 bool MockDeviceImpl::strokeKeyCode(std::string keycode, unsigned int intv)
140 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
145 bool MockDeviceImpl::pressKeyCode(std::string keycode)
148 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
153 bool MockDeviceImpl::releaseKeyCode(std::string keycode)
155 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
160 int MockDeviceImpl::grabTouchSeqNumber()
162 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
166 bool MockDeviceImpl::releaseTouchSeqNumber(int seq)
168 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
173 void MockDeviceImpl::startTimer(void)
175 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);
178 int MockDeviceImpl::stopTimer(void)
180 printf("%s:%d / %s\n",__FILE__, __LINE__, __PRETTY_FUNCTION__);