python-audio-autotest-3.10 1.5.10rc1__py3-none-any.whl → 1.5.11__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 +1 -1
- pyaatlibs/apk/audioworker.apk +0 -0
- pyaatlibs/audioworker.py +54 -6
- {python_audio_autotest_3.10-1.5.10rc1.dist-info → python_audio_autotest_3_10-1.5.11.dist-info}/METADATA +7 -2
- {python_audio_autotest_3.10-1.5.10rc1.dist-info → python_audio_autotest_3_10-1.5.11.dist-info}/RECORD +8 -8
- {python_audio_autotest_3.10-1.5.10rc1.dist-info → python_audio_autotest_3_10-1.5.11.dist-info}/WHEEL +1 -1
- {python_audio_autotest_3.10-1.5.10rc1.dist-info → python_audio_autotest_3_10-1.5.11.dist-info/licenses}/LICENSE +0 -0
- {python_audio_autotest_3.10-1.5.10rc1.dist-info → python_audio_autotest_3_10-1.5.11.dist-info}/top_level.txt +0 -0
pyaatlibs/__init__.py
CHANGED
pyaatlibs/apk/audioworker.apk
CHANGED
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 "
|
105
|
+
return "bc49bba-python-audio-autotest-v1.5.11"
|
67
106
|
|
68
107
|
@staticmethod
|
69
108
|
def get_version_from_device(serialno=None):
|
@@ -131,7 +170,7 @@ class AudioWorkerApp(AppInterface):
|
|
131
170
|
|
132
171
|
if type(value) is float:
|
133
172
|
cmd_arr += ["--ef", key]
|
134
|
-
elif type(value) is int or type(value) is bool:
|
173
|
+
elif isinstance(value, IntEnum) or type(value) is int or type(value) is bool:
|
135
174
|
cmd_arr += ["--ei", key]
|
136
175
|
value = int(value)
|
137
176
|
else:
|
@@ -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",
|
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
|
|
@@ -173,7 +217,8 @@ class AudioWorkerApp(AppInterface):
|
|
173
217
|
|
174
218
|
@staticmethod
|
175
219
|
def playback_offload(
|
176
|
-
device=None, serialno=None, file="null",
|
220
|
+
device=None, serialno=None, file="null", stream_type=PlaybackStream.MUSIC,
|
221
|
+
content_type=PlaybackContentType.MUSIC, usage=PlaybackUsage.MEDIA,
|
177
222
|
freqs=[440.], playback_id=0, fs=16000, nch=2, amp=0.6, bit_depth=16):
|
178
223
|
name = __class__.AUDIOWORKER_INTENT_PREFIX + "playback.start"
|
179
224
|
configs = {
|
@@ -184,7 +229,10 @@ class AudioWorkerApp(AppInterface):
|
|
184
229
|
"num-channels": nch,
|
185
230
|
"amplitude": amp,
|
186
231
|
"pcm-bit-width": bit_depth,
|
187
|
-
"file": file
|
232
|
+
"file": file,
|
233
|
+
"stream-type": stream_type,
|
234
|
+
"usage": usage,
|
235
|
+
"content-type": content_type,
|
188
236
|
}
|
189
237
|
__class__.send_intent(device, serialno, name, configs)
|
190
238
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: python-audio-autotest-3.10
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.11
|
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
|
|
@@ -34,6 +35,10 @@ This is a auto-testing framework of audio functions for Android devices.
|
|
34
35
|
|
35
36
|
## Release Note
|
36
37
|
### v1.5
|
38
|
+
### v1.5.11
|
39
|
+
- Update audioworker.apk (bc49bba-python-audio-autotest-v1.5.11)
|
40
|
+
- audioworker: playback: support content_type, usage, and performance_mode
|
41
|
+
|
37
42
|
### v1.5.10
|
38
43
|
- Fix Adb.get_devices() in case when adb didn't work well by retrying.
|
39
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
pyaatlibs/__init__.py,sha256=
|
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
4
|
pyaatlibs/adbutils.py,sha256=pQ0mQep_JN9NthSn5LWEd8G36ng6tpSKQSBGst52DQY,15741
|
@@ -7,7 +7,7 @@ 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=
|
10
|
+
pyaatlibs/audioworker.py,sha256=3hW4iEj8dHjIqqvfvNwWVmdVALWGfjyTtCYuNTCZvSY,28542
|
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=
|
18
|
+
pyaatlibs/apk/audioworker.apk,sha256=TJSRC3RVzu4tfTvC6nvMzBXV7hJXYFvt1zCtkMbFIYw,28933325
|
19
19
|
pyaatlibs/tests/audioworker_test.py,sha256=oKwi7TGh3apYG1SJlTYWTbCazJZya7wOCtYiytQvea8,20977
|
20
20
|
pyaatlibs/tests/conftest.py,sha256=Ng_ClpNsY-62bo8O0zCl702jy9AcwdteakJ1vhlOCTk,293
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
python_audio_autotest_3_10-1.5.11.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
22
|
+
python_audio_autotest_3_10-1.5.11.dist-info/METADATA,sha256=E5e0JinjuXoU4ePK1Tdy7PaIMQU1iwm5ka4tmf1cdSE,5239
|
23
|
+
python_audio_autotest_3_10-1.5.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
24
|
+
python_audio_autotest_3_10-1.5.11.dist-info/top_level.txt,sha256=MyCr1MMMQB2sjxyhlZSJPG4Fx10ya00APmhY7r1fSoQ,10
|
25
|
+
python_audio_autotest_3_10-1.5.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|