Flutter Engine
The Flutter Engine
Functions
tools.skpbench._adb_path Namespace Reference

Functions

def init (device_serial, adb_binary)
 
def join (*pathnames)
 
def basename (pathname)
 
def find_skps (skps)
 

Function Documentation

◆ basename()

def tools.skpbench._adb_path.basename (   pathname)

Definition at line 19 of file _adb_path.py.

19def basename(pathname):
20 return pathname.rsplit('/', maxsplit=1)[-1]
21
def basename(pathname)
Definition: _adb_path.py:19

◆ find_skps()

def tools.skpbench._adb_path.find_skps (   skps)

Definition at line 22 of file _adb_path.py.

22def find_skps(skps):
23 # root first, in case skps reside in a protected directory
24 __ADB.root()
25 escapedskps = [re.sub(r'([^a-zA-Z0-9_/\.\*\?\[\!\]])', r'\\\1', x)
26 for x in skps]
27 return __ADB.check('''\
28 for PATHNAME in %s; do
29 if [ -d "$PATHNAME" ]; then
30 find "$PATHNAME" -maxdepth 1 -name '*.skp' -o -name '*.mskp'
31 else
32 echo "$PATHNAME"
33 fi
34 done''' % ' '.join(escapedskps)).splitlines()

◆ init()

def tools.skpbench._adb_path.init (   device_serial,
  adb_binary 
)

Definition at line 12 of file _adb_path.py.

12def init(device_serial, adb_binary):
13 global __ADB
14 __ADB = Adb(device_serial, adb_binary)
15
def init(device_serial, adb_binary)
Definition: _adb_path.py:12

◆ join()

def tools.skpbench._adb_path.join ( pathnames)

Definition at line 16 of file _adb_path.py.

16def join(*pathnames):
17 return '/'.join(pathnames)
18
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741