smart-cst.py

#! -*- coding:utf-8 -*-
#! /usr/bin/python

'''
908:1080*1920

'''
import os
DEVICE1 = 'W8HA59LFGMLRNVVO'
DEVICE2 = '0123456789ABCDEF'
DEVICE3 = '65I7ZHCIFE4TPJPZ'

DEVICE7 = 'JFSK9DBQEUQG9HP7'
DEVICE4 = 'QGMR8L79H6DUOZAY'
DEVICE5 = '75KZAMRO9PWC5SFM'
DEVICE6 = 'FIGEZLNN6SI7SWWS'

DEVICE8 = 'TOS4WSJBY9W4T46D'

WIFI_HOTSPOT_NAME_PSD = ['hotspotszw','1234567890']
WIFI_EXTENDER_NAME_PSD = ['extenderszw','1234567890']

TPNEFFOS24 = ['tpneffos24','1234567890']
TPNEFFOS5G = ['tpneffos5g','1234567890']

TESTGROUP24 = ['testgroup24','test1234']
TESTGROUP5G = ['testgroup5g','test1234']

TS24 = ['TS_24','neffostest']
TS5G = ['TS_5G','neffostest']

#------------------------------------------------------------------------------------------------#
# contacts
CONTACTS = 'com.android.dialer/.DialtactsActivity'
PHONE_CONTACTS = [540,140]
NAME = 'shanzhengwei'
PHONE = '+8613916362737'
CONTACTS_ADD = [910,1780]
CONTACTS_NAME = [450,330]
CONTACTS_PHONE = [500,1000]
CONTACTS_SAVE = [1000,130]
CONTACTS_SHARE = [884,1145]

#------------------------------------------------------------------------------------------------#
SIM = 'com.android.settings/.Settings\$SimSettingsActivity'
#------------------------------------------------------------------------------------------------#
#TPWLAN
TPWLAN = 'com.tplink.tpwlan/.activity.MainActivity'

TPWLAN_SCAN = 'com.tplink.tpwlan/.activity.CaptureActivity'
TPWLAN_EXTENDER = 'com.android.settings/.Settings\$NetworkBridgeSettingsActivity'

EXTENDER_NAME = 'extender1'

TPWLAN_COOD_QRCODE = [270,560]
TPWLAN_COOD_QRCODE_CANCEL = [650,1100]
TPWLAN_COOD_QRCODE_OK = [850,1100]

TPWLAN_COOD_SCAN = [800,560]
TPWLAN_COOD_SCAN_PIC = [530,1640]
TPWLAN_COOD_SCAN_LIGHT = [550,990]

TPWLAN_COOD_WPS = [280,1240]
TPWLAN_COOD_WPS_CANCEL = [650,1100]
TPWLAN_COOD_WPS_OK = [850,1100]

TPWLAN_COOD_EXTENDER = [810,1250]
TPWLAN_COOD_EXTENDER_ONOFF = [800,1500]
TPWLAN_COOD_SET_EXTENDER = [510,560]
TPWLAN_COOD_CON_OK = [870,1100]

#------------------------------------------------------------------------------------------------#
AIRPLANE = [980,310]

MENU_COOD_X = [550,1800]

# settings

SETTINGS = 'com.android.settings/.Settings'
SETTINGS_PACKAGE = 'com.android.settings'
'''
ACCESSIBILITY_SETTINGS
ADD_ACCOUNT
AIRPLANE_MODE_SETTINGS 
APN_SETTINGS
APPLICATION_DETAILS_SETTINGS 
APPLICATION_DEVELOPMENT_SETTINGS 
APPLICATION_SETTINGS 
BLUETOOTH_SETTINGS 
DATA_ROAMING_SETTINGS
DATE_SETTINGS 
DEVICE_INFO_SETTINGS 
DISPLAY_SETTINGS 
INPUT_METHOD_SETTINGS
INPUT_METHOD_SUBTYPE_SETTINGS 
INTERNAL_STORAGE_SETTINGS 
LOCALE_SETTINGS 
LOCATION_SOURCE_SETTINGS 
MANAGE_ALL_APPLICATIONS_SETTINGS
MANAGE_APPLICATIONS_SETTINGS 
MEMORY_CARD_SETTINGS 
NETWORK_OPERATOR_SETTINGS 
PRIVACY_SETTINGS 
QUICK_LAUNCH_SETTINGS 
SEARCH_SETTINGS 
SECURITY_SETTINGS 
SETTINGS 
SOUND_SETTINGS 
SYNC_SETTINGS 
USER_DICTIONARY_SETTINGS 
WIFI_IP_SETTINGS
WIFI_SETTINGS
WIRELESS_SETTINGS 
http://blog.csdn.net/u011993368/article/details/45888811
'''

#------------------------------------------------------------------------------------------------#
# wifi
WIFI = 'com.android.settings/.Settings\$WifiSettingsActivity'
PASSWORD1 = '1234567890'
PASSWORD2 = '1234567890'
WRONG_PSD = 'asd123,./=42A'
LONG_PSD = '390287riuhfdsifgo34-h;l.n/m/n[ret[-=2[lewjh12ew-!%#^&*()%)^)38hfjdiruJJJKDKKWUIOND'
NAME_DEVICE1 = 'shanzhengwei'
NAME_DEVICE2 = 'aD10./-={]|3'
NAME_DEVICE2 = 'Neffos X1'

WIFI_SSID_RENAME1 ='tpwlanszw'
TPWLAN_SSID_NAME = 'tpwlanszw'
WIFI_SSID1 = 'tpneffos5g'
WIFI_SSID2 = 'tpneffos24'
WIFI_SSID3 = 'testgroup24'
WIFI_SSID4 = 'testgroup5g'

# WIFI position 904 on/off
WIFI_COOD_ONOFF = [990, 300]
# WIFI position 904 more option
WIFI_COOD_MORE = [1010, 140]
# WIFI position 904 refresh
WIFI_COOD_REFRESH = [880, 140]
# WIFI position 904 first ssid
WIFI_COOD_FIRSSID = [200, 560]
# WIFI position 904 first ssid
WIFI_COOD_SECSSID = [200, 710]
# WIFI position 904 forget 
WIFI_COOD_FORGET = [540, 1830]
# WIFI position 904 forget ok
WIFI_COOD_FORGETOK = [880, 1140]

WIFI_COOD_SAVED_CONN = [840,1200]
# WIFI position 904 add  
WIFI_COOD_ADD = [200, 1830]
WIFI_COOD_ADD_SECU = [450,680]
WIFI_COOD_ADD_SECU_WPA = [450,930]
WIFI_COOD_ADD_SECU_WPA_PSD = [450,840]
WIFI_COOD_ADD_SECU_WPA_SAVE = [890,1000]

# WIFI position 904 connect
WIFI_COOD_CONNECT = [840, 1010]
# WIFI position 904 eye
WIFI_COOD_EYE = [900, 590]

# WIFI position 904 p2p
WIFI_COOD_DIRECT = [700, 150]
# WIFI position 904 wps btn
WIFI_COOD_WPSBTN = [700, 300]
# WIFI position 904 wps pin
WIFI_COOD_WPSPIN = [700, 430]
# WIFI position 904 advance
WIFI_COOD_ADVANCE = [700, 580]

# WIFI position 904 saved networks
WIFI_COOD_SAVED = [400, 300]
# WIFI position 904 notification
WIFI_COOD_NOTIF = [400, 500]
# WIFI position 904 sleep
WIFI_COOD_SLEEP = [400, 700]

# WIFI position 904 sleep
WIFI_COOD_SLEEP_ALWAYS = [300, 850]
# WIFI position 904 sleep
WIFI_COOD_SLEEP_PLUG = [300, 980] 
# WIFI position 904 sleep
WIFI_COOD_SLEEP_NEVER = [300, 1120]


#------------------------------------------------------------------------------------------------#
# BT
BT = 'com.android.settings/.Settings\$BluetoothSettingsActivity'

FILENAME_BIG = ['Btext.txt','Btext.pdf','Btext.zip','Btext.doc','Btext.docx','Btext.ppt','Btext.pptx','Btext.csv','Btext.xls','Btext.xlsx',
            'Bimage.png','Bimage.jpg','Bimage.gif','Bimage.bmp',
            'Baudio.mp3','Baudio.aac','Baudio.wma','Baudio.mod','Baudio.ogg','Baudio.wav',
            'Bvideo.mp4','Bvideo.avi','Bvideo.rmvb','Bvideo.rm','Bvideo.flash','Bvideo.3gp',
            'Bapp.app','Bapp.bat',
            'Bxml.xml','Bxml.html','Bxml.php','Bxml.py','Bxml.db']

FILENAME_SMALL = ['Stext.txt','Stext.pdf','Stext.zip','Stext.doc','Stext.docx','Stext.ppt','Stext.pptx','Stext.csv','Stext.xls','Stext.xlsx',
            'Simage.png','Simage.jpg','Simage.gif','Simage.bmp',
            'Saudio.mp3','Saudio.aac','Saudio.wma','Saudio.mod','Saudio.ogg','Saudio.wav',
            'Svideo.mp4','Svideo.avi','Svideo.rmvb','Svideo.rm','Svideo.flash','Svideo.3gp',
            'Sapp.app','Sapp.bat',
            'Sxml.xml','Sxml.html','Sxml.php','Sxml.py','Sxml.db']

# bt position 904 on/off 
BT_COOD_ONOFF = [970, 310]
# bt position 904 more option
BT_COOD_MORE = [1010, 146]
# bt position 904 first file
BT_COOD_FIRSTFILE = [100, 280]
# bt position 904 select all
BT_COOD_SELECTALL = [64, 93]
# bt position 904 share
BT_COOD_SHARE = [467, 99]
# bt position 904 bt app icon
BT_COOD_APPICON = [129, 874]
# bt position 904 bt ssid choose list firt ssid
BT_COOD_BTFISTSSID = [200,613]
# bt position 904 bt notification decline/accept
BT_COOD_FISTSSID = [120,257]
# bt position 904 bt notification decline/accept
BT_COOD_NOTACC = [340,470]
# bt position 904 bt accept icon
BT_COOD_ACCICON = [600,884]
# bt position 904 bt accept/transfer over ok
BT_COOD_OVEROKICON = [597,932]

BT_COOD_MATCHPAIR = [587,775]
BT_COOD_MATCHCANCEL = [450,775]
BT_COOD_MATCHSET = [660,613]
BT_COOD_MATCHSETFORGET = [450,647]

#----------send-------------#
BT_SEND_COOD_STOP = [430,920]
BT_SEND_COOD_HIDE = [580,920]

#----------receive----------#
BT_RECE_COOD_STOP = [0,0]



#------------------------------------------------------------------------------------------------#
# more connect settings
# more connect position 904 airplane
BT_COOD_AIRPLANE = [970,300]
# more connect position 904 tething
BT_COOD_TETHERING = [200,460]

# hotspot position 904 on off
COOD_HOTSPOT_ONOFF = [970,390]
# hotspot settings position 904 
COOD_HOTSPOT_SETTINGS = [200,550]
# hotspot wps position 904 
COOD_HOTSPOT_WPS = [200,700]
# hotspot wps btn position 904 
COOD_HOTSPOT_WPSBTN = [300,1010]
# hotspot wps btn connect position 904 
COOD_HOTSPOT_WPSBTN_CONN = [840,1130]

# hotspot settings position 904 name 
COOD_HOTSPOT_SETTINGS_NAME = [200,390]
# hotspot settings position 904 name saved
COOD_HOTSPOT_SETTINGS_NAMESAVE = [870,760]
# hotspot settings position 904 security
COOD_HOTSPOT_SETTINGS_SECU = [100,540]
# hotspot settings position 904 security none
COOD_HOTSPOT_SETTINGS_SECUNO = [100,540]
# hotspot settings position 904 security wpa2
COOD_HOTSPOT_SETTINGS_SECUWPA = [100,680]
# hotspot settings position 904 password
COOD_HOTSPOT_SETTINGS_PSD = [200,700]
# hotspot settings position 904 password saved
COOD_HOTSPOT_SETTINGS_PSDSAVE = [870,790]
# hotspot settings position 904 band
COOD_HOTSPOT_SETTINGS_BAND = [200,860]
# hotspot settings position 904 band 2.4
COOD_HOTSPOT_SETTINGS_BAND2 = [200,850]
# hotspot settings position 904 band 5
COOD_HOTSPOT_SETTINGS_BAND5 = [200,1000]

# hotspot settings position 904 max connections
COOD_HOTSPOT_SETTINGS_MAX = [200,1150]
# hotspot settings position 904 max connections1
COOD_HOTSPOT_SETTINGS_MAX1 = [180,480]
# hotspot settings position 904 max connections2
COOD_HOTSPOT_SETTINGS_MAX2 = [180,630]
# hotspot settings position 904 max connections3
COOD_HOTSPOT_SETTINGS_MAX3 = [180,770]
# hotspot settings position 904 max connections4
COOD_HOTSPOT_SETTINGS_MAX4 = [180,910]
# hotspot settings position 904 max connections5
COOD_HOTSPOT_SETTINGS_MAX5 = [180,1060]
# hotspot settings position 904 max connections6
COOD_HOTSPOT_SETTINGS_MAX6 = [180,1200]
# hotspot settings position 904 max connections7
COOD_HOTSPOT_SETTINGS_MAX7 = [180,1340]
# hotspot settings position 904 max connections8
COOD_HOTSPOT_SETTINGS_MAX8 = [180,1500]

# hotspot settings position 904 keep hotspot on
COOD_HOTSPOT_SETTINGS_KEEP = [200,1350]
# hotspot settings position 904 keep hotspot on always
COOD_HOTSPOT_SETTINGS_KEEP_ALWAYS = [300,840]
# hotspot settings position 904 keep hotspot on 5 
COOD_HOTSPOT_SETTINGS_KEEP5 = [300,980]
# hotspot settings position 904 keep hotspot on 10
COOD_HOTSPOT_SETTINGS_KEEP10 = [300,1120]

COOD_HOTSPOT_SETTINGS_CON_USERS = [300,1660]
COOD_HOTSPOT_SETTINGS_BLOCK = [870,1220]
COOD_HOTSPOT_SETTINGS_UNBLOCK = [830,1130]

#------------------------------------------------------------------------------------------------#
# wlan extender
# extender position 904
EXTENDER_COOD = [200,950]
# extender position 904 btn on off
EXTENDER_COOD_ONOFF = [200,310]
# extender position 904 settings
EXTENDER_COOD_SETTINGS = [200,570]

EXTENDER_COOD_CONNECTED_USERS = [200,810]
EXTENDER_COOD_CONNECTED_USERS_BLOCK = [860,1200]
EXTENDER_COOD_BLOCKED_USERS = [200,1060]
EXTENDER_COOD_BLOCKED_USERS_UNBLOCK = [830,1130]

# extender position 904 settings name
EXTENDER_COOD_SETTINGS_NAME = [200,390]
# extender position 904 settings name save
EXTENDER_COOD_SETTINGS_NAMESAVE = [880,760]
# extender position 904 settings password
EXTENDER_COOD_SETTINGS_PSD = [200,700]
# extender position 904 settings name psd save
EXTENDER_COOD_SETTINGS_PSDSAVE = [900,800]
# extender position 904 settings band
EXTENDER_COOD_SETTINGS_BAND = [120,860]
# extender position 904 settings band 2.4
EXTENDER_COOD_SETTINGS_BAND2 = [120,850]
# extender position 904 settings band 5
EXTENDER_COOD_SETTINGS_BAND5 = [120,1000]

# extender position 904 settings max con
EXTENDER_COOD_SETTINGS_MAXCON = [200,1050]
# extender position 904 settings max con1
EXTENDER_COOD_SETTINGS_MAXCON1 = [200,480]
# extender position 904 settings max con2
EXTENDER_COOD_SETTINGS_MAXCON2 = [200,620]
# extender position 904 settings max con3
EXTENDER_COOD_SETTINGS_MAXCON3 = [200,770]
# extender position 904 settings max con4
EXTENDER_COOD_SETTINGS_MAXCON4 = [200,920]
# extender position 904 settings max con5
EXTENDER_COOD_SETTINGS_MAXCON5 = [200,1060]
# extender position 904 settings max con6
EXTENDER_COOD_SETTINGS_MAXCON6 = [200,1200]
# extender position 904 settings max con7
EXTENDER_COOD_SETTINGS_MAXCON7 = [200,1350]
# extender position 904 settings max con8
EXTENDER_COOD_SETTINGS_MAXCON8 = [200,1500]

# extender position 904 settings keep 
EXTENDER_COOD_SETTINGS_KEEP = [200,1250]
# extender position 904 settings keep always
EXTENDER_COOD_SETTINGS_KEEPALWAYS = [200,840]
# extender position 904 settings keep 5
EXTENDER_COOD_SETTINGS_KEEP5 = [200,980]
# extender position 904 settings keep 10
EXTENDER_COOD_SETTINGS_KEEP10 = [200,1120]

#------------------------------------------------------------------------------------------------#
USBTETHERING_COOD_ONOFF = [200,1130]
BTTETHERING_COOD_ONOFF = [200,1340]
# TETHERING_SET_COOD = [200,1027]
# TETHERING_SET_COOD_IPV4 = [200,610]
# TETHERING_SET_COOD_IPV6 = [200,700]

你可能感兴趣的:(Python2)