1# Copyright 2016 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6class KioskFacadeRemoteAdapter(object): 7 """KioskFacadeRemoteAdapter is an adapter to remotely control Kiosk on DUT. 8 9 The Autotest host object representing the remote DUT, passed to this 10 class on initialization, can be accessed from its _client property. 11 """ 12 13 def __init__(self, host, remote_facade_proxy): 14 """Construct a KioskFacadeRemoteAdapter. 15 16 @param host: Host object representing a remote host. 17 @param remote_facade_proxy: RemoteFacadeProxy object. 18 """ 19 self._client = host 20 self._proxy = remote_facade_proxy 21 22 23 @property 24 def _kiosk_proxy(self): 25 return self._proxy.kiosk 26 27 28 def config_rise_player(self, ext_id, app_config_id ): 29 """ 30 Configure Rise Player Kiosk App. 31 32 @param ext_id: extension id of the Rise Player Kiosk App. 33 @param app_config_id: display id for the Rise Player app . 34 35 """ 36 self._kiosk_proxy.config_rise_player(ext_id, app_config_id) 37