Lines Matching refs:ac

23     self.ac = android_commands.AndroidCommands(device=devices[0])
27 temp_file = android_commands.DeviceTempFile(self.ac)
28 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name))
29 self.ac.SetFileContents(temp_file.name, "contents")
30 self.assertTrue(self.ac.FileExistsOnDevice(temp_file.name))
32 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name))
34 with android_commands.DeviceTempFile(self.ac) as with_temp_file:
35 self.assertFalse(self.ac.FileExistsOnDevice(with_temp_file.name))
36 self.ac.SetFileContents(with_temp_file.name, "contents")
37 self.assertTrue(self.ac.FileExistsOnDevice(with_temp_file.name))
39 self.assertFalse(self.ac.FileExistsOnDevice(with_temp_file.name))
43 temp_file = android_commands.DeviceTempFile(self.ac)
45 self.assertFalse(self.ac.FileExistsOnDevice(temp_file.name))
47 with android_commands.DeviceTempFile(self.ac) as with_temp_file:
49 self.assertFalse(self.ac.FileExistsOnDevice(with_temp_file.name))
53 temp_file = android_commands.DeviceTempFile(self.ac, prefix="cat")
56 temp_file = android_commands.DeviceTempFile(self.ac, suffix="dog")
60 self.ac, prefix="cat", suffix="dog")
73 self.ac = android_commands.AndroidCommands(device=devices[0])
76 self.ac.RunShellCommand('realpath %s' %
77 self.ac.GetExternalStorage())[0])
84 self.ac.RunShellCommand('mkdir %s' % self.device_data_dir)
92 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir)
99 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),
104 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir)
111 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),
114 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir)
123 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),
131 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir,
137 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir)
146 self.ac._adb.Push('%s/%d.txt' % (self.host_data_dir, i),
154 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir,
160 actual = self.ac.GetFilesChanged(self.host_data_dir, self.device_data_dir)
168 actual = self.ac.GetFilesChanged('%s/1.txt' % self.host_data_dir,
178 actual = self.ac.GetFilesChanged('%s/1.txt' % self.host_data_dir,
185 self.ac.RunShellCommand('rm -rf %s' % self.device_data_dir)