Lines Matching full:adb
23 def _ListTombstones(adb):
27 adb: An instance of AndroidCommands.
32 lines = adb.RunShellCommand('TZ=UTC su -c ls -a -l /data/tombstones')
41 def _GetDeviceDateTime(adb):
45 adb: An instance of AndroidCommands.
50 device_now_string = adb.RunShellCommand('TZ=UTC date')
55 def _GetTombstoneData(adb, tombstone_file):
64 return adb.GetProtectedFileContents('/data/tombstones/' + tombstone_file)
67 def _EraseTombstone(adb, tombstone_file):
73 return adb.RunShellCommandWithSU('rm /data/tombstones/' + tombstone_file)
129 def _GetTombstonesForDevice(adb, options):
130 """Returns a list of tombstones on a given adb connection.
133 adb: An instance of Androidcommands.
137 all_tombstones = list(_ListTombstones(adb))
148 device_now = _GetDeviceDateTime(adb)
150 ret += [{'serial': adb.Adb().GetSerialNumber(),
155 'data': _GetTombstoneData(adb, tombstone_file)}]
160 _EraseTombstone(adb, tombstone_file)
189 adb = android_commands.AndroidCommands(device)
190 tombstones += _GetTombstonesForDevice(adb, options)