Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
flavor.chromebook.ChromebookFlavor Class Reference
Inheritance diagram for flavor.chromebook.ChromebookFlavor:
flavor.ssh.SSHFlavor flavor.default.DefaultFlavor

Public Member Functions

def __init__ (self, m, app_name)
 
def install (self)
 
def copy_directory_contents_to_device (self, host_path, device_path)
 
def copy_directory_contents_to_host (self, device_path, host_path)
 
- Public Member Functions inherited from flavor.ssh.SSHFlavor
def __init__ (self, m, app_name)
 
def user_ip (self)
 
def ssh (self, title, *cmd, **kwargs)
 
def ensure_device_dir (self, path)
 
def install (self)
 
def create_clean_device_dir (self, path)
 
def read_file_on_device (self, path, **kwargs)
 
def remove_file_on_device (self, path)
 
def scp_device_path (self, device_path)
 
def copy_file_to_device (self, host_path, device_path)
 
def step (self, name, cmd, **kwargs)
 
- Public Member Functions inherited from flavor.default.DefaultFlavor
def __init__ (self, module, app_name)
 
def device_path_join (self, *args)
 
def copy_directory_contents_to_device (self, host_dir, device_dir)
 
def copy_directory_contents_to_host (self, device_dir, host_dir)
 
def copy_file_to_device (self, host_path, device_path)
 
def create_clean_device_dir (self, path)
 
def create_clean_host_dir (self, path)
 
def read_file_on_device (self, path, **kwargs)
 
def remove_file_on_device (self, path)
 
def install (self)
 
def cleanup_steps (self)
 
def step (self, name, cmd, **unused_kwargs)
 

Public Attributes

 chromeos_homedir
 
 device_dirs
 
- Public Attributes inherited from flavor.default.DefaultFlavor
 app_name
 
 module
 
 m
 
 device_dirs
 
 host_dirs
 

Detailed Description

Definition at line 15 of file chromebook.py.

Constructor & Destructor Documentation

◆ __init__()

def flavor.chromebook.ChromebookFlavor.__init__ (   self,
  m,
  app_name 
)

Reimplemented from flavor.ssh.SSHFlavor.

Definition at line 17 of file chromebook.py.

17 def __init__(self, m, app_name):
18 super(ChromebookFlavor, self).__init__(m, app_name)
19 self.chromeos_homedir = '/home/chronos/user/'
20 self.device_dirs = default.DeviceDirs(
21 bin_dir = self.chromeos_homedir + 'bin',
22 dm_dir = self.chromeos_homedir + 'dm_out',
23 perf_data_dir = self.chromeos_homedir + 'perf',
24 resource_dir = self.chromeos_homedir + 'resources',
25 fonts_dir = 'NOT_SUPPORTED',
26 images_dir = self.chromeos_homedir + 'images',
27 lotties_dir = self.chromeos_homedir + 'lotties',
28 skp_dir = self.chromeos_homedir + 'skps',
29 svg_dir = self.chromeos_homedir + 'svgs',
30 tmp_dir = self.chromeos_homedir,
31 texttraces_dir = '')
32

Member Function Documentation

◆ copy_directory_contents_to_device()

def flavor.chromebook.ChromebookFlavor.copy_directory_contents_to_device (   self,
  host_dir,
  device_dir 
)
Like shutil.copytree(), but for copying to a connected device.

Reimplemented from flavor.default.DefaultFlavor.

Definition at line 46 of file chromebook.py.

46 def copy_directory_contents_to_device(self, host_path, device_path):
47 self._copy_dir(host_path, self.scp_device_path(device_path))
48

◆ copy_directory_contents_to_host()

def flavor.chromebook.ChromebookFlavor.copy_directory_contents_to_host (   self,
  device_dir,
  host_dir 
)
Like shutil.copytree(), but for copying from a connected device.

Reimplemented from flavor.default.DefaultFlavor.

Definition at line 49 of file chromebook.py.

49 def copy_directory_contents_to_host(self, device_path, host_path):
50 self._copy_dir(self.scp_device_path(device_path), host_path)

◆ install()

def flavor.chromebook.ChromebookFlavor.install (   self)
Run device-specific installation steps.

Reimplemented from flavor.ssh.SSHFlavor.

Definition at line 33 of file chromebook.py.

33 def install(self):
34 super(ChromebookFlavor, self).install()
35
36 # Ensure the home dir is marked executable
37 self.ssh('remount %s as exec' % self.chromeos_homedir,
38 'sudo', 'mount', '-i', '-o', 'remount,exec', '/home/chronos')
39
static bool install(SkBitmap *bm, const SkImageInfo &info, const SkRasterHandleAllocator::Rec &rec)
Definition: SkCanvas.cpp:2856

Member Data Documentation

◆ chromeos_homedir

flavor.chromebook.ChromebookFlavor.chromeos_homedir

Definition at line 19 of file chromebook.py.

◆ device_dirs

flavor.chromebook.ChromebookFlavor.device_dirs

Definition at line 20 of file chromebook.py.


The documentation for this class was generated from the following file: