Lines Matching refs:adb
23 def _ListTombstones(adb): argument
32 lines = adb.RunShellCommand('TZ=UTC su -c ls -a -l /data/tombstones')
41 def _GetDeviceDateTime(adb): argument
50 device_now_string = adb.RunShellCommand('TZ=UTC date')
55 def _GetTombstoneData(adb, tombstone_file): argument
64 return adb.GetProtectedFileContents('/data/tombstones/' + tombstone_file)
67 def _EraseTombstone(adb, tombstone_file): argument
73 return adb.RunShellCommandWithSU('rm /data/tombstones/' + tombstone_file)
129 def _GetTombstonesForDevice(adb, options): argument
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)