Lines Matching refs:device
32 def lock_min(device): argument
33 device.shell_nocheck(["""
40 def lock_max(device): argument
41 device.shell_nocheck(["""
48 def unlock(device): argument
49 device.shell_nocheck(["""
67 def benchmark_sink(device=None, size_mb=100): argument
68 if device == None:
69 device = adb.get_device()
72 cmd = device.adb_cmd + ["raw", "sink:%d" % (size_mb * 1024 * 1024)]
86 def benchmark_source(device=None, size_mb=100): argument
87 if device == None:
88 device = adb.get_device()
91 cmd = device.adb_cmd + ["raw", "source:%d" % (size_mb * 1024 * 1024)]
102 def benchmark_push(device=None, file_size_mb=100): argument
103 if device == None:
104 device = adb.get_device()
115 device.push(local=local_path, remote=remote_path)
121 def benchmark_pull(device=None, file_size_mb=100): argument
122 if device == None:
123 device = adb.get_device()
128 device.shell(["dd", "if=/dev/zero", "of=" + remote_path, "bs=1m",
133 device.pull(remote=remote_path, local=local_path)
139 def benchmark_shell(device=None, file_size_mb=100): argument
140 if device == None:
141 device = adb.get_device()
146 device.shell(["dd", "if=/dev/zero", "bs=1m",
154 device = adb.get_device()
155 unlock(device)
156 benchmark_sink(device)
157 benchmark_source(device)
158 benchmark_push(device)
159 benchmark_pull(device)