aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-03-28Fix ClassNotFoundError in mobly-bundled-snippetsandroid-u-beta-1-gplXianyuan Jia
Bug: 275609344 Test: local Change-Id: Id09d7b453dd47af31adfc00eda4a56a462f7f710
2021-07-30Add the Rpc for `AudioManager#isMusicActive` (#144)troub1emaker-sys
2021-06-25Remove trailing spaces. (#143)troub1emaker-sys
2021-06-04Gets data and voice network type from TelephonyManager. (#141)troub1emaker-sys
2021-02-18Respectful code cleanup. (#140)Eric Lin (Tzu Hsiang Lin)
Replaced "whitelist" with a more respectful term: allowlist. https://developers.google.com/style/word-list?hl=zh-tw#blacklist
2021-01-13Additional condition to allow wifi to fully connect. (#138)tprotopopov-dev
2020-12-16Revert c5093aad6df3096498cb396da299793d8b13db56 due to import ↵tprotopopov-dev
incompatibility (#136)
2020-11-04Improve the reliability of bluetooth state change Rpcs. (#134)tprotopopov-dev
2020-11-02Merge unnecessary lines in UiautomatorSnippet (#135)Syaoran Kuo
2020-11-02Add snippet for UI hierarchy dump. (#132)Syaoran Kuo
2020-02-12update btBecomeDiscoverable to handle api level (#129)jwang1013
Android SDK beyond 29 changed the BluetoothAdapter.setScanMode signature to (Integer, Long). change btBecomeDiscoverable to handle different api level.
2020-01-14Add a Rpc "btIsA2dpPlaying" to BluetoothA2dpSnippet (#128)chuanhsiao
A RPC method is used to check A2DP audio path is enabled or not.
2020-01-09Fix exception in "trimQuotationMarks()" method (#125)ryancllin
Add a string length check on the given param to avoid StringIndexOutOfBoundsException.
2019-08-22Fix "JavaCodeClarity" problem for BluetoothHearingAidSnippet (#122)chuanhsiao
2019-08-21Create BluetoothHearingAidSnippet.java (#119)chuanhsiao
2019-07-02fixed lint errorPeter Fong
2019-07-01Minor review comment fixesPeter Fong
2019-06-27Renamed and embedded sdk check in methodPeter Fong
2019-06-26Refactored out shell permission adoption routinePeter Fong
2019-06-26updated to use target sdk version to check if shell permission is neededPeter Fong
2019-06-24Cleanup UiAutomator connection so it won't block other from using since ↵Peter Fong
UiAutomator only support a single connection at a time.
2019-06-12Handle Wi-Fi permission requirements in Q. (#112)Ang Li
* 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.
2019-04-11Remove unnecessary `toString`. (#110)Ang Li
2019-04-09Fix a potentialy NPE in wifiConnect. (#109)Ang Li
Also improve a log line.
2019-02-12Add api to remove account. (#108)Ang Li
2019-01-29Add an API to check if 5G Wi-Fi is supported. (#107)Ang Li
2019-01-28Remove an unused inner class. (#106)Ang Li
* Remove an unused inner class. * Restore the correct application path.
2019-01-11Migrate to androidx packages (#105)Ang Li
2019-01-08Adding APIs to get the External Storage Directory. (#104)Adam Van Hine
2018-12-11Bring line 97 under 100 characters (#103)sceller
2018-12-11Add RPCs to get/set voice call stream volume (#102)sceller
2018-09-06Use multidex (#100)David T.H. Kao
foo
2018-05-21Add bt cancel discovery. (#98)Ang Li
`btCancelDiscovery` synchronous Rpc.
2018-05-09Add functionality to specify timeout for waitForSms. (#95)David T.H. Kao
2018-02-27Fix typo in wifiConnect. (#94)Ang Li
2018-02-26Use annotation instead of executor for `makeToast`. (#93)Ang Li
2018-02-26Fail `wifiConnect` if the network specified does not exist. (#92)Ang Li
2017-12-15Handle a possible race condition in wifi/bt toggle. (#91)Ang Li
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.
2017-10-05Fix version warnings for gradle builds (#87)Keith Dart
* Add a `presubmit` target to run formatter and lint. * Add dev process to README * Gradle config improvements * Changes made by linter
2017-10-05Fix a misuse of enum in Ble scan record. (#86)Ang Li
* Don't use advertising enum for scan record.
2017-10-04Revert "Make linter happy. (#81)" (#85)Ang Li
This reverts commit 37402446cd74da1a346469c03e09900d99673b8a.
2017-10-02Make linter happy. (#81)Keith Dart
* Add `presubmit` action to run formatter and lint.
2017-09-28Add Rpcs needed to download files via HTTP. (#80)Keith Dart
* Add an Rpc to perform an HTTP download using DownloadManager. * Add file operation Rpcs.
2017-09-14Add a networking snippet module. (#78)Keith Dart
Has one method for now, Connectable, that implicitly checks TCP connectivity to a host and port.
2017-08-24Add synchronous waitForSms (#76)arammelk
2017-07-31SmsSnippet cleanup (#72)arammelk
* 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.
2017-07-24Add SMS snippet (#69)arammelk
* 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
2017-07-18Do not attempt to modify a network in wifiConnect. (#68)Ang Li
2017-07-17Check for current network activity before deciding it is already connected. ↵David T.H. Kao
(#70)
2017-07-14Run linter on MediaSnippet. (#67)Ang Li