Skip to content

Commit

Permalink
add press_tv method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekso committed Feb 2, 2024
1 parent 3f4f59d commit bd80247
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Binary file modified android_tv_rc/__pycache__/android_tv_controller.cpython-311.pyc
Binary file not shown.
6 changes: 6 additions & 0 deletions android_tv_rc/android_tv_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def press_home(self):



def press_tv(self):
"""Simulates pressing TV input button on Android TV device remote control."""
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_TV)



def press_back(self):
"""Simulates pressing back button on Android TV device remote control."""
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_BACK)
Expand Down
27 changes: 27 additions & 0 deletions docs/android_tv_rc/android_tv_controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ <h1 class="title">Module <code>AndroidTVController.android_tv_rc.android_tv_cont



def press_tv(self):
&#34;&#34;&#34;Simulates pressing TV input button on Android TV device remote control.&#34;&#34;&#34;
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_TV)



def press_back(self):
&#34;&#34;&#34;Simulates pressing back button on Android TV device remote control.&#34;&#34;&#34;
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_BACK)
Expand Down Expand Up @@ -379,6 +385,12 @@ <h2 id="args">Args</h2>



def press_tv(self):
&#34;&#34;&#34;Simulates pressing TV input button on Android TV device remote control.&#34;&#34;&#34;
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_TV)



def press_back(self):
&#34;&#34;&#34;Simulates pressing back button on Android TV device remote control.&#34;&#34;&#34;
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_BACK)
Expand Down Expand Up @@ -963,6 +975,20 @@ <h2 id="args">Args</h2>
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_SOFT_SLEEP)</code></pre>
</details>
</dd>
<dt id="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_tv"><code class="name flex">
<span>def <span class="ident">press_tv</span></span>(<span>self)</span>
</code></dt>
<dd>
<div class="desc"><p>Simulates pressing TV input button on Android TV device remote control.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def press_tv(self):
&#34;&#34;&#34;Simulates pressing TV input button on Android TV device remote control.&#34;&#34;&#34;
self.__adb_client.send_keyevent_input(KeyCodes.KEYCODE_TV)</code></pre>
</details>
</dd>
<dt id="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_down"><code class="name flex">
<span>def <span class="ident">press_volume_down</span></span>(<span>self)</span>
</code></dt>
Expand Down Expand Up @@ -1065,6 +1091,7 @@ <h4><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.Andr
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_power" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_power">press_power</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_sleep" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_sleep">press_sleep</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_soft_sleep" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_soft_sleep">press_soft_sleep</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_tv" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_tv">press_tv</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_down" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_down">press_volume_down</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_mute" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_mute">press_volume_mute</a></code></li>
<li><code><a title="AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_up" href="#AndroidTVController.android_tv_rc.android_tv_controller.AndroidTVController.press_volume_up">press_volume_up</a></code></li>
Expand Down

0 comments on commit bd80247

Please sign in to comment.