mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-14 06:40:52 +01:00
AndroidDevice: Pylint Fix
This commit is contained in:
parent
b948d28c62
commit
81bdc7251b
@ -722,7 +722,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
|||||||
appropriate method of forcing a re-index of the mediaserver cache for a given
|
appropriate method of forcing a re-index of the mediaserver cache for a given
|
||||||
list of files.
|
list of files.
|
||||||
"""
|
"""
|
||||||
if self.device.is_rooted or self.device.get_sdk_version() < 24: # MM and below
|
if self.device.is_rooted or self.device.get_sdk_version() < 24: # MM and below
|
||||||
common_path = commonprefix(file_list, sep=self.device.path.sep)
|
common_path = commonprefix(file_list, sep=self.device.path.sep)
|
||||||
self.broadcast_media_mounted(common_path, self.device.is_rooted)
|
self.broadcast_media_mounted(common_path, self.device.is_rooted)
|
||||||
else:
|
else:
|
||||||
@ -743,9 +743,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
|||||||
command = 'am broadcast -a android.intent.action.MEDIA_MOUNTED -d file://'
|
command = 'am broadcast -a android.intent.action.MEDIA_MOUNTED -d file://'
|
||||||
self.execute(command + dirpath, as_root=as_root)
|
self.execute(command + dirpath, as_root=as_root)
|
||||||
|
|
||||||
|
|
||||||
# Internal methods: do not use outside of the class.
|
# Internal methods: do not use outside of the class.
|
||||||
|
|
||||||
def _update_build_properties(self, props):
|
def _update_build_properties(self, props):
|
||||||
try:
|
try:
|
||||||
def strip(somestring):
|
def strip(somestring):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user