# coding:utf-8 from uiautomatorplug.android import device as d import unittest import commands import os import string import time import sys import util import string import random AD = util.Adb() TB = util.TouchButton() SM = util.SetMode() #Written by XuGuanjun PACKAGE_NAME = 'com.intel.camera22' ACTIVITY_NAME = PACKAGE_NAME + '/.Camera' #All setting info of camera could be cat in the folder PATH_PREF_XML = '/data/data/com.intel.camera22/shared_prefs/' #FDFR / GEO / BACK&FROUNT xml file in com.intelcamera22_preferences_0.xml PATH_0XML = PATH_PREF_XML + 'com.intel.camera22_preferences_0.xml' #PICSIZE / EXPROSURE / TIMER / WHITEBALANCE / ISO / HITS / VIDEOSIZE in com.intel.camera22_preferences_0_0.xml PATH_0_0XML = PATH_PREF_XML + 'com.intel.camera22_preferences_0_0.xml'
# coding:utf-8 from uiautomatorplug.android import device as d import commands import re import subprocess import os import string import time import sys import util import unittest import random a = util.Adb() sm = util.SetMode() tb = util.TouchButton() #Written by Piao chengguo # PATH PATH = '/data/data/com.intel.camera22/shared_prefs/com.intel.camera22_preferences_0_0.xml ' PATH1 = 'cat /data/data/com.intel.camera22/shared_prefs/com.intel.camera22_preferences_0.xml ' # key EXPOSURE_KEY = '| grep pref_camera_exposure_key' LOCATION_KEY = '| grep pref_camera_geo_location_key' SCENE_KEY = '| grep pref_camera_scenemode_key' ##################################### EXPOSURE_OPTION = ['-6', '-3', '0', '3', '6'] LOCATION_OPTION = ['off', 'on'] SCENCE_OPTION = [ 'barcode', 'night-portrait', 'portrait', 'landscape', 'night', 'sports',