示例#1
0
def get_state(device):
    # ui_night_mode [1.0, 2.0]
    night_mode = adbGetValue("secure",
                             "ui_night_mode",
                             device=device,
                             output=True)
    return int(night_mode)
示例#2
0
文件: density.py 项目: qbalsdon/talos
def get_density(device):
    value = adbGetValue("secure", "display_density_forced", device)
    if value not in density_dictionary(device):
        value = "440"
    return value
示例#3
0
def get_forcertl(device):
    prop_value = adbCommand(["shell", "getprop", "debug.force_rtl"], device)
    global_value = str(adbGetValue("global", "debug.force_rtl", device))
    global_value = global_value.replace(".0", "")
    # print("GET\nProp value:   [{}]\nGlobal value: [{}]".format(prop_value, global_value))
    return global_value
示例#4
0
def get_touch_state(device):
    return adbGetValue("system", "show_touches", device)
示例#5
0
def get_brightness(device):
    return int(
        adbGetValue("system", "screen_brightness", device=device, output=True))
示例#6
0
def get_accessibility_state(device):
    # adv shell settings get secure enabled_accessibility_services
    return adbGetValue("secure", "enabled_accessibility_services", device)
示例#7
0
文件: flip.py 项目: qbalsdon/talos
def get_orientation(device):
    return int(adbGetValue("system", "user_rotation", device))
示例#8
0
def get_font_scale(device):
    return float(adbGetValue("system", "font_scale", device))
示例#9
0
def get_animation_state(device):
    return float(adbGetValue("global", "window_animation_scale", device))