Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple streams #177

Merged
merged 11 commits into from
Jul 17, 2021
Merged

Support multiple streams #177

merged 11 commits into from
Jul 17, 2021

Conversation

JeffLIrion
Copy link
Owner

No description provided.

JeffLIrion and others added 11 commits June 30, 2021 21:09
* Increment local ID

* Fix test_push_dir test

* Fix another test

* Document the _local_id attribute

* Increment local ID in async code

* Fix tests

* Fix test_issue29

* Add tests for local ID wraparound

* thevalue -> the value
* Move all ADB I/O into _AdbIOManager / _AdbIOManagerAsync classes

* Fix 'banner' -> 'banner2'

* Update adb_shell/adb_device.py

* Update adb_shell/adb_device_async.py
* Add helper functions

* Add tests
* Support multiple streams (sync)

* Don't log empty data

* Remove unreachable else block; add note about thread safety

* Disable failing test

* Add a note about the locks; close the connection in `connect()`; and improve comments in `read()`

* Remove unnecessary (redundant) check

* Remove unused variable

* Clean up method names

* Add comments about changing exceptions

* Change exception types

* Revise failing test

* Add test

* Add test

* Add test

* Add comments

* Rename bulk_read_list -> bulk_read_data, bulk_write_list -> bulk_write_data

* Rename bulk_read_list -> bulk_read_data, bulk_write_list -> bulk_write_data

* Documentation + cleanup

* Linting fix

* Only use 1 lock

* Revert "Only use 1 lock"

This reverts commit 6d78057.

* More robust lock usage

* Remove outdated documentation; rename tests

* Checkout tests/test_adb_device_async.py from multiple-streams

* Use a lock to protect self._local_id

* Fix typo
* Support multiple streams (async)

* Documentation fixes

* Use a lock to protect self._local_id
…#178)

* Change the signature for AdbDevice._open() and AdbDeviceAsync._open()

* Add blank line
* Document `_AdbTransactionInfo.args_match`

* Fix documentation of read() methods

* Remove duplicate documentation

* Add link to _AdbIOManager.connect / _AdbIOManagerAsync.connect

* Remove InterleavedDataError exception

* Bunch of documentation fixes
@JeffLIrion JeffLIrion marked this pull request as ready for review July 17, 2021 02:41
@JeffLIrion JeffLIrion merged commit 89da334 into master Jul 17, 2021
@JeffLIrion JeffLIrion deleted the multiple-streams branch July 17, 2021 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant