INNER CODE UNIT · Python

_UITestService

codematrixer/hmdriver2 · hmdriver2/_client.py:168

class _UITestService:
    def __init__(self, hdc: HdcWrapper):
        """Initialize the UITestService class."""
        self.hdc = hdc

    def init(self):
        """
        Initialize the UITest service:
        1. Ensure agent.so is set up on the device.
        2. Start the UITest daemon.

        Note: 'hdc shell aa test' will also start a uitest daemon.
        $ hdc shell ps -ef |grep uitest
        shell        44306     1 25 11:03:37 ?    00:00:16 uitest start-daemon singleness
        shell        44416     1 2 11:03:42 ?     00:00:01 uitest start-daemon com.hmtest.uitest@4x9@1"
        """

        logger.debug("Initializing UITest service")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…