Documentation ¶
Overview ¶
RotationWatcher.apk Service
Index ¶
- Constants
- Variables
- func AdbCheckOutput(d *adb.Device, name string, args ...string) (outStr string, err error)
- func AdbFileExists(d *adb.Device, path string) bool
- func GoFunc(f func() error) chan error
- func PushFileFromHTTP(d *adb.Device, dst string, perms os.FileMode, urlStr string) error
- type RotationWatcher
- type STFCapturer
- type STFRotation
- type STFTouch
- func (s *STFTouch) Down(index int, xP, yP float64)
- func (t *STFTouch) IsStarted() bool
- func (s *STFTouch) Move(index int, xP, yP float64)
- func (s *STFTouch) SetRotation(r int)
- func (s *STFTouch) Start() error
- func (s *STFTouch) Stop() error
- func (s *STFTouch) Up(index int)
- func (e *STFTouch) Wait() error
- type ScreenReader
- type Servicer
- type TouchAction
- type Toucher
- type UITester
Constants ¶
View Source
const ( QUALITY_1080P = 1 QUALITY_720P = 2 QUALITY_480P = 3 QUALITY_240P = 4 )
View Source
const ( TOUCH_DOWN = TouchAction(iota) TOUCH_MOVE TOUCH_UP )
Variables ¶
View Source
var ( ErrServiceAlreadyStarted = errors.New("Service already started") ErrServiceNotStarted = errors.New("Service not started") )
Functions ¶
func AdbCheckOutput ¶
Types ¶
type RotationWatcher ¶
type STFCapturer ¶
type STFCapturer struct {
// contains filtered or unexported fields
}
func NewSTFCapturer ¶
func NewSTFCapturer(device *adb.Device) *STFCapturer
func (STFCapturer) SetRotation ¶
func (m STFCapturer) SetRotation(r int)
func (*STFCapturer) Start ¶
func (s *STFCapturer) Start() error
func (*STFCapturer) Stop ¶
func (s *STFCapturer) Stop() error
func (*STFCapturer) Wait ¶
func (s *STFCapturer) Wait() error
type STFRotation ¶
type STFRotation struct {
// contains filtered or unexported fields
}
func NewSTFRotation ¶
func NewSTFRotation(d *adb.Device) *STFRotation
func (*STFRotation) Start ¶
func (s *STFRotation) Start() error
func (*STFRotation) Stop ¶
func (s *STFRotation) Stop() error
func (*STFRotation) Subscribe ¶
func (s *STFRotation) Subscribe() chan int
func (*STFRotation) Unsubscribe ¶
func (s *STFRotation) Unsubscribe(C chan int)
unsubscribe will also close channel
type ScreenReader ¶
type Servicer ¶
func MultiServicer ¶
Combine servicers into one servicer
type TouchAction ¶
type TouchAction int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.