mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	utils/rendering: fix surfaceflinger list
SurfaceFlingerFrameCollector.list now converts line endings before splitting, so it now works when the endings are something other than "\r\n".
This commit is contained in:
		@@ -122,7 +122,8 @@ class SurfaceFlingerFrameCollector(FrameCollector):
 | 
			
		||||
        return self.target.execute(cmd.format(activity))
 | 
			
		||||
 | 
			
		||||
    def list(self):
 | 
			
		||||
        return self.target.execute('dumpsys SurfaceFlinger --list').split('\r\n')
 | 
			
		||||
        text = self.target.execute('dumpsys SurfaceFlinger --list')
 | 
			
		||||
        return text.replace('\r\n', '\n').replace('\r', '\n').split('\n')
 | 
			
		||||
 | 
			
		||||
    def _process_raw_file(self, fh):
 | 
			
		||||
        text = fh.read().replace('\r\n', '\n').replace('\r', '\n')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user