Lines Matching refs:target
19 # Tracks the set of killed target names, so we don't keep issuing kill
24 def GetPids(cls, target):
25 """Gets the set of running PIDs that match the specified target."""
27 with target:
37 def Run(cls, target, arguments):
38 """Invoke a target binary on the device."""
39 with target:
49 def Kill(cls, target, _):
50 """Kill all running processes for a target."""
51 target_name = target.build_target
53 # already killed this target, do nothing
55 pids = cls.GetPids(target)
57 with target:
59 elif target.verbose:
60 print target.Substitute('{CR_TARGET_NAME} not running')
64 def Uninstall(cls, target, arguments):
65 with target:
73 def Install(cls, target, arguments):
74 with target:
82 def Reinstall(cls, target, arguments):
83 with target:
92 def AttachGdb(cls, target, arguments):
93 with target:
112 for target in targets:
113 Adb.Kill(target, arguments)
115 def Run(self, target, arguments):
116 Adb.Run(target, arguments)
118 def Test(self, target, arguments):
119 with target:
136 for target in targets:
137 Adb.Uninstall(target, arguments)
140 for target in targets:
141 Adb.Install(target, arguments)
144 for target in targets:
145 Adb.Reinstall(target, arguments)