• Home
  • Raw
  • Download

Lines Matching refs:os

22 import os
386 if self.device.has_shell_protocol() and os.isatty(sys.stdin.fileno()):
465 os.kill(sleep_proc.pid, signal.SIGINT)
627 os.remove(tf.name)
711 self.base_name = os.path.basename(self.full_path)
730 rand_str = os.urandom(size)
766 self.previous_env = os.environ.get("ADB_COMPRESSION")
767 os.environ["ADB_COMPRESSION"] = self.compression
771 del os.environ["ADB_COMPRESSION"]
773 os.environ["ADB_COMPRESSION"] = self.previous_env
789 rand_str = os.urandom(1024 * kbytes)
799 os.remove(tmp.name)
810 os.chmod(host_dir, 0o700)
818 os.path.basename(host_dir),
835 os.chmod(host_dir, 0o700)
838 empty_dir_path = os.path.join(host_dir, 'empty')
839 os.mkdir(empty_dir_path);
843 remote_path = os.path.join(self.DEVICE_TEMP_DIR, "empty")
864 os.chmod(host_dir, 0o700)
866 with open(os.path.join(host_dir, 'foo'), 'w') as f:
869 symlink_path = os.path.join(host_dir, 'symlink')
870 os.symlink('foo', symlink_path)
898 subdir = os.path.join(host_dir, 'subdir')
899 os.mkdir(subdir)
980 os.remove(tmp_write.name)
1024 host_path = os.path.join(
1039 if os.name != 'posix':
1044 real_dir = os.path.join(host_dir, 'dir')
1045 symlink = os.path.join(host_dir, 'symlink')
1046 os.mkdir(real_dir)
1047 os.symlink(real_dir, symlink)
1059 host_path = os.path.join(
1071 if os.name != 'posix':
1076 real_dir = os.path.join(host_dir, 'real')
1077 tmp_dirname = os.path.basename(self.DEVICE_TEMP_DIR)
1078 symlink = os.path.join(host_dir, tmp_dirname)
1079 os.mkdir(real_dir)
1080 os.symlink(real_dir, symlink)
1092 host_path = os.path.join(real_dir, temp_file.base_name)
1104 dest_dir = os.path.join(host_dir, 'dest')
1116 host_path = os.path.join(dest_dir, temp_file.base_name)
1150 host_path = os.path.join(
1169 self.assertTrue(os.path.isdir(os.path.join(host_dir, 'empty')))
1196 local_path = os.path.join(host_dir, temp_file.base_name)
1200 local_path = os.path.join(host_dir,
1228 os.makedirs(full_dir_path)
1238 old_product_out = os.environ.get('ANDROID_PRODUCT_OUT')
1239 os.environ['ANDROID_PRODUCT_OUT'] = base_dir
1242 del os.environ['ANDROID_PRODUCT_OUT']
1244 os.environ['ANDROID_PRODUCT_OUT'] = old_product_out
1289 host_paths = [os.path.join(temp_dir, x.base_name) for x in temp_files]
1364 os.remove(tf.name)
1365 self.assertFalse(os.path.exists(tf.name))
1374 self.assertTrue(os.path.exists(tf.name))
1375 os.remove(tf.name)
1426 os.unlink(file_path)
1457 os.unlink(file_path)
1536 if "ANDROID_SERIAL" in os.environ:
1537 transport_string = "host:transport:" + os.environ["ANDROID_SERIAL"]
1578 import os
1708 hScreen, os.O_RDWR | os.O_BINARY)
1732 os.close(fd_screen)