python-audio-autotest-3.10 1.5.10rc0__py3-none-any.whl → 1.5.11rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyaatlibs/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  import os
2
2
  import platform
3
3
 
4
- __version__ = "1.5.10"
4
+ __version__ = "1.5.11"
5
5
  __author__ = "Hao-Wei Lee"
6
6
  if platform.system() == "Windows":
7
7
  SEP = "\\"
pyaatlibs/adbutils.py CHANGED
@@ -88,7 +88,7 @@ class Adb(object):
88
88
  out, _ = child.execute(["devices"], **kwargs)
89
89
  lines = [l for l in map(lambda x: x.strip(), out.splitlines()) if len(l) > 0]
90
90
 
91
- if len(lines) > 0 and lines[-1] == "List of devices attached":
91
+ if len(lines) > 0 and lines[0] == "List of devices attached":
92
92
  break
93
93
 
94
94
  retry -= 1
Binary file
pyaatlibs/audioworker.py CHANGED
@@ -36,6 +36,45 @@ class RecordApi(IntEnum):
36
36
  OPENSLES = auto()
37
37
  AAUDIO = auto()
38
38
 
39
+ class PlaybackStream(IntEnum):
40
+ VOICE_CALL = 0
41
+ SYSTEM = auto()
42
+ RING = auto()
43
+ MUSIC = auto()
44
+ ALARM = auto()
45
+ NOTIFICATION = auto()
46
+ DTMF = 8
47
+ ACCESSIBILITY = 10
48
+
49
+ class PlaybackContentType(IntEnum):
50
+ UNKNOWN = 0
51
+ SPEECH = auto()
52
+ MUSIC = auto()
53
+ MOVIE = auto()
54
+ SONIFICATION = auto()
55
+ ULTRASOUND = 1997
56
+
57
+ class PlaybackUsage(IntEnum):
58
+ UNKNOWN = 0
59
+ MEDIA = auto()
60
+ VOICE_COMMUNICATION = auto()
61
+ VOICE_COMMUNICATION_SIGNALLING = auto()
62
+ ALARM = auto()
63
+ NOTIFICATION = auto()
64
+ NOTIFICATION_RINGTONE = auto()
65
+ NOTIFICATION_EVENT = 10
66
+ ASSISTANCE_ACCESSIBILITY = auto()
67
+ ASSISTANCE_NAVIGATION_GUIDANCE = auto()
68
+ ASSISTANCE_SONIFICATION = auto()
69
+ GAME = auto()
70
+ ASSISTANT = auto()
71
+
72
+ class PlaybackPerformanceMode(IntEnum):
73
+ NOT_SET = -1
74
+ NONE = auto()
75
+ LOW_LATENCY = auto()
76
+ POWER_SAVING = auto()
77
+
39
78
  class TaskIndex(IntEnum):
40
79
  ALL = -1
41
80
 
@@ -63,7 +102,7 @@ class AudioWorkerApp(AppInterface):
63
102
 
64
103
  @staticmethod
65
104
  def get_apk_version():
66
- return "068bd43-python-audio-autotest-v1.5.9"
105
+ return "rc0-python-audio-autotest-v1.5.11"
67
106
 
68
107
  @staticmethod
69
108
  def get_version_from_device(serialno=None):
@@ -144,7 +183,9 @@ class AudioWorkerApp(AppInterface):
144
183
  @staticmethod
145
184
  def playback_nonoffload(
146
185
  device=None, serialno=None,
147
- freqs=[440.], playback_id=0, file="null", stream_type=3,
186
+ freqs=[440.], playback_id=0, file="null",
187
+ stream_type=PlaybackStream.MUSIC, performance_mode=PlaybackPerformanceMode.NOT_SET,
188
+ content_type=PlaybackContentType.MUSIC, usage=PlaybackUsage.MEDIA,
148
189
  fs=16000, nch=2, amp=0.6, bit_depth=16, low_latency_mode=False):
149
190
  name = __class__.AUDIOWORKER_INTENT_PREFIX + "playback.start"
150
191
  configs = {
@@ -157,7 +198,10 @@ class AudioWorkerApp(AppInterface):
157
198
  "pcm-bit-width": bit_depth,
158
199
  "low-latency-mode": low_latency_mode,
159
200
  "file": file,
160
- "stream-type": stream_type
201
+ "stream-type": stream_type,
202
+ "usage": usage,
203
+ "content-type": content_type,
204
+ "performance-mode": performance_mode
161
205
  }
162
206
  __class__.send_intent(device, serialno, name, configs)
163
207
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: python-audio-autotest-3.10
3
- Version: 1.5.10rc0
3
+ Version: 1.5.11rc0
4
4
  Summary: This is a auto-testing framework of audio functions for Android devices.
5
5
  Home-page: https://github.com/HW-Lee/AudioAutoTest
6
6
  Author: Hao-Wei Lee
@@ -23,6 +23,7 @@ Dynamic: classifier
23
23
  Dynamic: description
24
24
  Dynamic: description-content-type
25
25
  Dynamic: home-page
26
+ Dynamic: license-file
26
27
  Dynamic: requires-dist
27
28
  Dynamic: summary
28
29
 
@@ -1,13 +1,13 @@
1
- pyaatlibs/__init__.py,sha256=v21C6FoUhBKuI9_0H8Sdv_oWjC8gHckzJlZPCpskfeY,352
1
+ pyaatlibs/__init__.py,sha256=tHh_SbmiaDTzSYV_cz6go9lLfO4yzALMSpG_Efu1d60,352
2
2
  pyaatlibs/aatapp.py,sha256=2oTnHnTCd4oIk_Nb218S3rO6nQfujxfVOLbQM1jeAhA,8742
3
3
  pyaatlibs/activitystatemachine.py,sha256=We5noxBtskgMUsdBOA34e8Rze8K-vuheuSBjL4RUo8Q,300
4
- pyaatlibs/adbutils.py,sha256=wlfX9_g2adXma8DaliEkc44HoTUtwOnFGpYWxye7a3A,15742
4
+ pyaatlibs/adbutils.py,sha256=pQ0mQep_JN9NthSn5LWEd8G36ng6tpSKQSBGst52DQY,15741
5
5
  pyaatlibs/appinterface.py,sha256=cFy2agwnkSlO4iao9OxhImtx0M63OcoabnClHP2AQlc,4437
6
6
  pyaatlibs/argutils.py,sha256=6jOccgQlftmhUEGc3dAZ9-j0Mdg45jrhAGE-CylYjno,451
7
7
  pyaatlibs/audiofunction.py,sha256=7Lm_-dG88mK8ETRmu--vIyzXMPVPFiUbdwJmB4PQn9g,9640
8
8
  pyaatlibs/audiosignalframelogger.py,sha256=K0byfkpPAoMNNl6YdyoSGSgWbYPK1m0cLpQIPkeQlto,1446
9
9
  pyaatlibs/audiothread.py,sha256=GOEHPFtEK-P8SQNdgWeDxnHcs_vic2kTN68UCjWUiLM,6548
10
- pyaatlibs/audioworker.py,sha256=MubXodNSOJuMD-QcO4OaRatVYo7d9K-wvMTfuG_HopY,27133
10
+ pyaatlibs/audioworker.py,sha256=Gzzmx3ebStBjeYmNTk5LajomMU1bgTyok-FiKymEnhk,28288
11
11
  pyaatlibs/logcatlistener.py,sha256=0Dz5wM1qOsxn-KcHspD2nCJnVu5g7rzbk5ycEDvxG08,6213
12
12
  pyaatlibs/logger.py,sha256=13Kx86hzFTbynWG5hKrWiCsT8gYk0-6ER98aOLiMJfY,5224
13
13
  pyaatlibs/signalanalyzer.py,sha256=F1TiLAqqSHLpm4KgslRgu7hjj4iRX1qyCZMDI21oxls,306
@@ -15,11 +15,11 @@ pyaatlibs/signalmatcher.py,sha256=6A4mLf6GLbQzdM0wFbHqDfyWvgpZRci90kaOrLeV8B0,18
15
15
  pyaatlibs/timeutils.py,sha256=yEgZGcHf_ASyXr0Mcef0toEa4zXX4j3FyQayaF1sN8I,2613
16
16
  pyaatlibs/trials.py,sha256=hSYIvR1vsEqfu20eLDeh3oDCCTWvHQcvS6LKfScLB30,2469
17
17
  pyaatlibs/apk/audiofunctionsdemo.apk,sha256=GG06POXrPOphMNsm5pD4XPfzVF8FXQ1ruupJFO2V8iQ,3205247
18
- pyaatlibs/apk/audioworker.apk,sha256=ubfCnkCxU6wjH5TlE_WM7j93GMbHyRNRPa9_5rDw8tM,28947353
18
+ pyaatlibs/apk/audioworker.apk,sha256=rB6rLTjJHgvgdOs554GLctSU4P7_PSengLlCymGXoDw,28951615
19
19
  pyaatlibs/tests/audioworker_test.py,sha256=oKwi7TGh3apYG1SJlTYWTbCazJZya7wOCtYiytQvea8,20977
20
20
  pyaatlibs/tests/conftest.py,sha256=Ng_ClpNsY-62bo8O0zCl702jy9AcwdteakJ1vhlOCTk,293
21
- python_audio_autotest_3.10-1.5.10rc0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
22
- python_audio_autotest_3.10-1.5.10rc0.dist-info/METADATA,sha256=6kXl3dxmd-i7Djmf5i2MdCty53JmgRta7_YsU0nmm5M,5067
23
- python_audio_autotest_3.10-1.5.10rc0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
24
- python_audio_autotest_3.10-1.5.10rc0.dist-info/top_level.txt,sha256=MyCr1MMMQB2sjxyhlZSJPG4Fx10ya00APmhY7r1fSoQ,10
25
- python_audio_autotest_3.10-1.5.10rc0.dist-info/RECORD,,
21
+ python_audio_autotest_3_10-1.5.11rc0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
22
+ python_audio_autotest_3_10-1.5.11rc0.dist-info/METADATA,sha256=HvCIQVc8wULSBlUYcDdS-QIsHk5w00za3_UzW9Yl28Q,5089
23
+ python_audio_autotest_3_10-1.5.11rc0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ python_audio_autotest_3_10-1.5.11rc0.dist-info/top_level.txt,sha256=MyCr1MMMQB2sjxyhlZSJPG4Fx10ya00APmhY7r1fSoQ,10
25
+ python_audio_autotest_3_10-1.5.11rc0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5