-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconstants.py
More file actions
70 lines (58 loc) · 1.77 KB
/
constants.py
File metadata and controls
70 lines (58 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import directory as folder
import os
class Global(object):
print 'Global = ' + __file__
ROOT_FOLDER = os.path.expanduser("~") + '/.autosense'
RES_FOLDER = folder.get_current_dir(__file__) + '/res'
FONT_FOLDER = RES_FOLDER + '/font'
ICON_FOLDER = folder.get_current_dir(__file__) + '/icon'
PRIVATE_FOLDER = ROOT_FOLDER + '/_data'
LOG_FOLDER = folder.get_current_dir(__file__) + '/log'
SOUND_FOLDER = folder.get_current_dir(__file__) + '/sound'
APK_FOLDER = folder.get_current_dir(__file__) + '/apk'
IMAGE_FOLDER = ROOT_FOLDER + '/image'
SCRIPT_FOLDER = ROOT_FOLDER + '/script'
FONT_FAMILY = 'Open Sans'
class Setting(object):
WIFI = 'wifi'
NFC = 'nfc'
BLUETOOTH = 'bt'
AIRPLANE = 'airplane'
DATA_ROAMING = 'data_roaming'
GPS = 'gps'
AUTO_ROTATE = 'auto_rotate'
AUTO_BRIGHTNESS = 'auto_brightness'
BRIGHTNESS_SET = 'brightness_set'
ALLOW_APP = 'allow_app'
NO_KEEP_ACTIVITY = 'no_keep_activity'
VIBRATE = 'vibrate'
KEEP_WIFI = 'keep_wifi'
WINDOW_ANIMATOR = 'window_animator'
TRANSITION_ANIMATOR = 'transition_animator'
DURATION_ANIMATION = 'duration_animation'
class UiCheck(object):
IS_EXIST = 'Exist'
NO_EXIST = 'NoExist'
IS_BLANK = 'IsBlank'
IS_RELATIVE_EXIST = 'RelativeExist'
class JudgeState(object):
PASS = 0
FAIL = -1
SEMI = 1
NORMAL = 2
class Sense(object):
INDEX = 'index'
ACTION = 'action'
PARAMETER = 'parameter'
DESCRIPTION = 'description'
INFORMATION = 'information'
VERSION = 'version'
APK_NAME = 'apkName'
PACKAGE_NAME = 'packageName'
PLAY_NAME = 'playName'
PLAN_NAME = 'planName'
RANGE = 'range'
CHECKED = 'checked'
TESTED = 'tested'
REPEAT = 'repeat'
CREATE_TIME = 'createTime'