Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Replaced "whitelist" with a more respectful term: allowlist.
https://developers.google.com/style/word-list?hl=zh-tw#blacklist
|
|
|
|
incompatibility (#136)
|
|
|
|
|
|
|
|
Android SDK beyond 29 changed the BluetoothAdapter.setScanMode signature to (Integer, Long). change btBecomeDiscoverable to handle different api level.
|
|
A RPC method is used to check A2DP audio path is enabled or not.
|
|
Add a string length check on the given param to avoid
StringIndexOutOfBoundsException.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UiAutomator only support a single connection at a time.
|
|
* Adopt shell permission in Wi-Fi snippet when it's Q.
* Fix ClassNotFound error caused by androidx
Tested locally and confirmed that the change works.
|
|
|
|
Also improve a log line.
|
|
|
|
|
|
* Remove an unused inner class.
* Restore the correct application path.
|
|
|
|
|
|
|
|
|
|
`btCancelDiscovery` synchronous Rpc.
|
|
|
|
|
|
|
|
|
|
E.g. if BT was in the process of turning off when we called `btEnable`,
BT would finish turning off before turning on again, but the `btEnable`
call would timeout before that.
Same situation for `btDisable` and wifi toggles.
|
|
* Add a `presubmit` target to run formatter and lint.
* Add dev process to README
* Gradle config improvements
* Changes made by linter
|
|
* Don't use advertising enum for scan record.
|
|
This reverts commit 37402446cd74da1a346469c03e09900d99673b8a.
|
|
* Add `presubmit` action to run formatter and lint.
|
|
* Add an Rpc to perform an HTTP download using DownloadManager.
* Add file operation Rpcs.
|
|
Has one method for now, Connectable, that implicitly checks
TCP connectivity to a host and port.
|
|
|
|
* Cleanups in SmsSnippet
* Wrap InterruptedException from polling for SMS sent confirmation event. Now throw SmsException with message that we didn't get the confirmation.
* Don't use StringBuilder.
|
|
* add sms snippet
* Remove unnecessary sleep
* Add missing copyright to IncomingSmsBroadcastReceiver
* Add sent confirmation for sendSms, this makes it an AsyncRpc. - Added OutboundSmsReceiver to post events when SMS are send action is done. Posts error back if action is not successful. Also wait for all parts of a multipart message to be sent before posting event. Example usage now: event = s.sendSms('+15555678912', 'message message message').waitAndGet('SentSms') - Renamed IncomingSmsBroardcastReceiver to SmsReceiver and make it a private class of SmsSnippet. Converted sendSms to AsyncRpc so it will post event back when message is sent
* Add sent confirmation for sendSms, this makes it an AsyncRpc. - Added OutboundSmsReceiver to post events when SMS are send action is done. Posts error back if action is not successful. Also wait for all parts of a multipart message to be sent before posting event. Example usage now: event = s.sendSms('+15555678912', 'message message message').waitAndGet('SentSms') - Renamed IncomingSmsBroardcastReceiver to SmsReceiver and make it a private class of SmsSnippet. Converted sendSms to AsyncRpc so it will post event back when message is sent
* Cleanup naming
* Align event key names with Java object property names.
* Use EventCache + built in mobly SnippetEvents to wait for SMS sent confirmation.
This shares code with EventSnippet in Mobly Snippet Lib. I'm not sure what the accepted practice is for sharing code across github projects? Should I refactor some of the event code in Mobly Bundle Lib into EventUtils, then use that in Mobly Bundled Snippets to avoid duplicating this?
I still want to check this is in as is, to have a working version earlier.
* Return data from event instead of fulll SnippetEvent. This way it works like so:
>>> result = s.sendSms("15551234567", "Hello world")
>>> pprint.pprint(result)
{u'sent': True}
>>>
* throw exception on error instead and some javadocs.
* cleanup
|
|
|
|
(#70)
|
|
|
|
The official story is that only Settings running as system UID can call them.
|
|
|