Commit 6368696
Improve support for Sony TV devices (#236)
* Improve extraction of current application identifier from dumpsys output.
* Support HDMI input detection for Sony TV devices.
* Return hardware identifier for external input instead of HDMI port number.
To ensure consistent hdmi_input values between devices running Android TV,
besides the fact that they do not match (e.g. port number 1 might equal HW5).
Additionally hardware identifiers are more in compliance with the Android TV Input Framework.
Each vendor can access the hardware definition as specified in tv_input module (TV Input HAL)
through their implementation of the TV Input Manager service to access TV-specific hardware.
* Use string replacement for hdmi_input test cases instead of splitting constant.
* Added hdmi_input test cases for non hardware definition and non TV Input Manager service activities.
* Update the commands checked in 'test_constants'
* Rename constants
* ' -> "
* Add comments (for better git diffs)
* Checkout test_constants.py from master
* Add comments (for better git diffs)
* Checkout test_constants.py from this branch
* Update androidtv/constants.py
Co-authored-by: Martijn Dijkhuizen <1850135+martomo@users.noreply.github.com>
* Update androidtv/constants.py
Co-authored-by: Martijn Dijkhuizen <1850135+martomo@users.noreply.github.com>
* Rename CMD_GET_CURRENT_APP constant to CMD_DEFINE_CURRENT_APP_VARIABLE. (#237)
* Add ' && '
* Reinstate match limit and rename test helper (#238)
* Reinstate maximum match limit in HDMI input command.
* Rename test helper to properly reflect command being called.
Co-authored-by: Martijn Dijkhuizen <git@martomo.nl>
Co-authored-by: Martijn Dijkhuizen <1850135+martomo@users.noreply.github.com>1 parent dfb353c commit 6368696
File tree
6 files changed
+465
-36
lines changed- androidtv
- tests
6 files changed
+465
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | | - | |
| 53 | + | |
42 | 54 | | |
43 | | - | |
44 | | - | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
65 | 82 | | |
66 | 83 | | |
67 | 84 | | |
| |||
350 | 367 | | |
351 | 368 | | |
352 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
353 | 374 | | |
354 | 375 | | |
355 | 376 | | |
| |||
493 | 514 | | |
494 | 515 | | |
495 | 516 | | |
496 | | - | |
497 | | - | |
| 517 | + | |
| 518 | + | |
498 | 519 | | |
499 | | - | |
500 | | - | |
| 520 | + | |
| 521 | + | |
501 | 522 | | |
502 | | - | |
503 | | - | |
| 523 | + | |
| 524 | + | |
504 | 525 | | |
505 | 526 | | |
506 | 527 | | |
| |||
0 commit comments