mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
Merge pull request #170 from ep1cman/camera_update
cameracapture & camerarecord: Fixed parameters
This commit is contained in:
commit
e5c228bab2
@ -40,13 +40,10 @@ class Cameracapture(UiAutomatorWorkload):
|
||||
description='Time, in seconds, between two consecutive camera clicks.'),
|
||||
]
|
||||
|
||||
def __init__(self, device, **kwargs):
|
||||
super(Cameracapture, self).__init__(device, **kwargs)
|
||||
self.uiauto_params['no_of_captures'] = self.no_of_captures
|
||||
self.uiauto_params['time_between_captures'] = self.time_between_captures
|
||||
|
||||
def initialize(self, context):
|
||||
api = self.device.get_sdk_version()
|
||||
self.uiauto_params['no_of_captures'] = self.no_of_captures
|
||||
self.uiauto_params['time_between_captures'] = self.time_between_captures
|
||||
self.uiauto_params['api_level'] = api
|
||||
self.package = self.api_packages[api]
|
||||
version = self.device.get_installed_package_version(self.package)
|
||||
|
@ -38,13 +38,10 @@ class Camerarecord(UiAutomatorWorkload):
|
||||
description='The video recording time in seconds.'),
|
||||
]
|
||||
|
||||
def __init__(self, device, **kwargs):
|
||||
super(Camerarecord, self).__init__(device)
|
||||
def initialize(self, context):
|
||||
self.uiauto_params['recording_time'] = self.recording_time # pylint: disable=E1101
|
||||
self.uiauto_params['version'] = "button"
|
||||
self.run_timeout = 3 * self.uiauto_params['recording_time']
|
||||
|
||||
def initialize(self, context):
|
||||
api = self.device.get_sdk_version()
|
||||
self.uiauto_params['api_level'] = api
|
||||
self.package = self.api_packages[api]
|
||||
|
Loading…
x
Reference in New Issue
Block a user