python-audio-autotest-3.10 1.5.7__py3-none-any.whl → 1.5.8__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 +6 -4
- pyaatlibs/tests/audioworker_test.py +7 -14
- {python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/METADATA +1 -1
- {python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/RECORD +9 -9
- {python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/LICENSE +0 -0
- {python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/WHEEL +0 -0
- {python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/top_level.txt +0 -0
pyaatlibs/__init__.py
CHANGED
pyaatlibs/apk/audioworker.apk
CHANGED
Binary file
|
pyaatlibs/audioworker.py
CHANGED
@@ -63,7 +63,7 @@ class AudioWorkerApp(AppInterface):
|
|
63
63
|
|
64
64
|
@staticmethod
|
65
65
|
def get_apk_version():
|
66
|
-
return "
|
66
|
+
return "47311b4-python-audio-autotest-v1.5.8"
|
67
67
|
|
68
68
|
@staticmethod
|
69
69
|
def get_version_from_device(serialno=None):
|
@@ -81,7 +81,8 @@ class AudioWorkerApp(AppInterface):
|
|
81
81
|
def install(child, grant=False, serialno=None, tolog=True):
|
82
82
|
super().install(grant=grant, serialno=serialno, tolog=tolog)
|
83
83
|
__class__.log(
|
84
|
-
"install: the installed version is '{}'".format(
|
84
|
+
"install: the installed version is '{}'".format(
|
85
|
+
__class__.get_version_from_device(serialno=serialno)))
|
85
86
|
|
86
87
|
@staticmethod
|
87
88
|
def get_launch_component():
|
@@ -143,7 +144,7 @@ class AudioWorkerApp(AppInterface):
|
|
143
144
|
@staticmethod
|
144
145
|
def playback_nonoffload(
|
145
146
|
device=None, serialno=None,
|
146
|
-
freqs=[440.], playback_id=0, file="null",
|
147
|
+
freqs=[440.], playback_id=0, file="null", stream_type=3,
|
147
148
|
fs=16000, nch=2, amp=0.6, bit_depth=16, low_latency_mode=False):
|
148
149
|
name = __class__.AUDIOWORKER_INTENT_PREFIX + "playback.start"
|
149
150
|
configs = {
|
@@ -155,7 +156,8 @@ class AudioWorkerApp(AppInterface):
|
|
155
156
|
"amplitude": amp,
|
156
157
|
"pcm-bit-width": bit_depth,
|
157
158
|
"low-latency-mode": low_latency_mode,
|
158
|
-
"file": file
|
159
|
+
"file": file,
|
160
|
+
"stream-type": stream_type
|
159
161
|
}
|
160
162
|
__class__.send_intent(device, serialno, name, configs)
|
161
163
|
|
@@ -27,10 +27,7 @@ def serialno(pytestconfig):
|
|
27
27
|
|
28
28
|
@pytest.fixture(scope="session")
|
29
29
|
def target_version():
|
30
|
-
|
31
|
-
return pyaatlibs.__version__
|
32
|
-
except:
|
33
|
-
return "1.4.3" # The first version since the apk had version name
|
30
|
+
return AudioWorkerApp.get_apk_version()
|
34
31
|
|
35
32
|
@pytest.fixture(scope="session")
|
36
33
|
def skip_version_check(pytestconfig):
|
@@ -158,19 +155,15 @@ def test_apk_version(check_options, target_version, serialno, skip_version_check
|
|
158
155
|
if skip_version_check:
|
159
156
|
pytest.skip("The version check is skipped.")
|
160
157
|
|
161
|
-
|
162
|
-
|
163
|
-
assert len(err) == 0
|
164
|
-
assert len(out) > 0
|
158
|
+
apk_version = AudioWorkerApp.get_version_from_device(serialno=serialno)
|
159
|
+
assert len(apk_version) > 0
|
165
160
|
|
166
|
-
vname_fmt = "
|
167
|
-
|
168
|
-
SHORT_SHA_FMT, VERSION_FMT)
|
161
|
+
vname_fmt = "(?P<commit_sha>{})\\-python\\-audio\\-autotest\\-v(?P<pyaat_version>{})$".format(
|
162
|
+
SHORT_SHA_FMT, VERSION_FMT)
|
169
163
|
|
170
|
-
m = re.match(vname_fmt,
|
164
|
+
m = re.match(vname_fmt, apk_version)
|
171
165
|
assert m is not None, "The version name '{}' is not valid.".format(out.strip())
|
172
|
-
|
173
|
-
assert m.groupdict()["pyaat_version"] >= target_version
|
166
|
+
assert apk_version == target_version
|
174
167
|
|
175
168
|
def wait_for_activities(serialno, func, onset=True):
|
176
169
|
retry = 10
|
{python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
pyaatlibs/__init__.py,sha256=
|
1
|
+
pyaatlibs/__init__.py,sha256=au30zNn5V3MAsBz1q7r7Gq1OGY2SbRnPxnCcJ1iIz0g,351
|
2
2
|
pyaatlibs/aatapp.py,sha256=2oTnHnTCd4oIk_Nb218S3rO6nQfujxfVOLbQM1jeAhA,8742
|
3
3
|
pyaatlibs/activitystatemachine.py,sha256=We5noxBtskgMUsdBOA34e8Rze8K-vuheuSBjL4RUo8Q,300
|
4
4
|
pyaatlibs/adbutils.py,sha256=SV7N8UyC8bypNN58R63TkEu7R1ZHw-bQRedphcKHqjU,15431
|
@@ -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=l7lWgCQ86qcXvGR5zIZkpd1_zYld_nTQ9hh-4iyMyO8,27087
|
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=
|
19
|
-
pyaatlibs/tests/audioworker_test.py,sha256=
|
18
|
+
pyaatlibs/apk/audioworker.apk,sha256=Co4vPqwL7dsRIROeURNXcIIhd0kmRuWDNX1_yIFBfm8,28949833
|
19
|
+
pyaatlibs/tests/audioworker_test.py,sha256=vPe3y8boKj8Q5WLLp8f_XNHf4VwsTu8JUFaxdOam5Pw,20887
|
20
20
|
pyaatlibs/tests/conftest.py,sha256=Ng_ClpNsY-62bo8O0zCl702jy9AcwdteakJ1vhlOCTk,293
|
21
|
-
python_audio_autotest_3.10-1.5.
|
22
|
-
python_audio_autotest_3.10-1.5.
|
23
|
-
python_audio_autotest_3.10-1.5.
|
24
|
-
python_audio_autotest_3.10-1.5.
|
25
|
-
python_audio_autotest_3.10-1.5.
|
21
|
+
python_audio_autotest_3.10-1.5.8.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
22
|
+
python_audio_autotest_3.10-1.5.8.dist-info/METADATA,sha256=-7vtKTgKVPJ2AmPpNEFw_NNyMXGpXuteZX6k4qCF8yo,4550
|
23
|
+
python_audio_autotest_3.10-1.5.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
24
|
+
python_audio_autotest_3.10-1.5.8.dist-info/top_level.txt,sha256=MyCr1MMMQB2sjxyhlZSJPG4Fx10ya00APmhY7r1fSoQ,10
|
25
|
+
python_audio_autotest_3.10-1.5.8.dist-info/RECORD,,
|
{python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/LICENSE
RENAMED
File without changes
|
{python_audio_autotest_3.10-1.5.7.dist-info → python_audio_autotest_3.10-1.5.8.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|