Skip to content

Commit e381876

Browse files
committed
Added documentation to functions
1 parent e4b6174 commit e381876

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/com/dtmilano/android/adb/adbclient.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,8 @@ def imageToData(self, image, output_type=None):
10231023
output_type = pytesseract.Output.DICT
10241024
return pytesseract.image_to_data(image, output_type=output_type)
10251025

1026-
def __transformPointByOrientation(self, xxx_todo_changeme, orientationOrig, orientationDest):
1027-
(x, y) = xxx_todo_changeme
1026+
def __transformPointByOrientation(self, initPoint, orientationOrig, orientationDest):
1027+
(x, y) = initPoint
10281028
if orientationOrig != orientationDest:
10291029
if orientationDest == 1:
10301030
_x = x
@@ -1075,7 +1075,7 @@ def longTouch(self, x, y, duration=2000, orientation=-1):
10751075
self.__checkTransport()
10761076
self.drag((x, y), (x, y), duration, orientation)
10771077

1078-
def drag(self, xxx_todo_changeme1, xxx_todo_changeme2, duration, steps=1, orientation=-1):
1078+
def drag(self, startCoords, endCoords, duration, steps=1, orientation=-1):
10791079
"""
10801080
Sends drag event in PX (actually it's using C{input swipe} command).
10811081
@@ -1085,8 +1085,8 @@ def drag(self, xxx_todo_changeme1, xxx_todo_changeme2, duration, steps=1, orient
10851085
@param steps: number of steps (currently ignored by C{input swipe})
10861086
@param orientation: the orientation (-1: undefined)
10871087
"""
1088-
(x0, y0) = xxx_todo_changeme1
1089-
(x1, y1) = xxx_todo_changeme2
1088+
(x0, y0) = startCoords
1089+
(x1, y1) = endCoords
10901090
self.__checkTransport()
10911091
if orientation == -1:
10921092
orientation = self.display['orientation']
@@ -1101,7 +1101,7 @@ def drag(self, xxx_todo_changeme1, xxx_todo_changeme2, duration, steps=1, orient
11011101
else:
11021102
self.shell('input touchscreen swipe %d %d %d %d %d' % (x0, y0, x1, y1, duration))
11031103

1104-
def dragDip(self, xxx_todo_changeme3, xxx_todo_changeme4, duration, steps=1, orientation=-1):
1104+
def dragDip(self, startCoords, endCoords, duration, steps=1, orientation=-1):
11051105
"""
11061106
Sends drag event in DIP (actually it's using C{input swipe} command.
11071107
@@ -1110,8 +1110,8 @@ def dragDip(self, xxx_todo_changeme3, xxx_todo_changeme4, duration, steps=1, ori
11101110
@param duration: duration of the event in ms
11111111
@param steps: number of steps (currently ignored by C{input swipe})
11121112
"""
1113-
(x0, y0) = xxx_todo_changeme3
1114-
(x1, y1) = xxx_todo_changeme4
1113+
(x0, y0) = startCoords
1114+
(x1, y1) = endCoords
11151115
self.__checkTransport()
11161116
if orientation == -1:
11171117
orientation = self.display['orientation']

0 commit comments

Comments
 (0)