aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-12-10Fix errors that prevent the apk from building and running (#101)Ang Li
* Prevent compile-time crashing when the user is using Java 10 * Fix multidex related run-time crash. * Fix a typo in `README`
2018-09-06Use multidex (#100)David T.H. Kao
foo
2018-05-21Add bt cancel discovery. (#98)Ang Li
`btCancelDiscovery` synchronous Rpc.
2018-05-21Update gradle version and deps. (#97)Ang Li
2018-05-09Add functionality to specify timeout for waitForSms. (#95)David T.H. Kao
2018-05-09Update gradle versions. (#96)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-04Typo (#88)Darío Hereñú
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-08-04Upgrade MBS to using snippet lib 1.2. (#73)Alexander Dorokhine
This lib includes the new launch protocol.
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
2017-07-11Remove bt snoop log APIs. (#66)Ang Li
The official story is that only Settings running as system UID can call them.
2017-07-07Add an rpc to check if wifi is enabled. (#65)Ang Li
2017-06-20Initial audio playback functionality (#62)David T.H. Kao
* Initial audio playback functionality * cleanup descriptions * whitespace cleanup
2017-06-16Added support for Unknown BT device type (#63)chok
2017-06-13Minor bug fix to btUnpairedDevice() (#61)chok
* Fixed btUnpairDevice() bug where an exception is thrown even in the success case
2017-06-13Add method to clear configured networks (#55)David T.H. Kao
* Add method to clear configured networks * throw after trying to clear all with list of failed ssids * weird spacing * config not ssid * remove a log * missing diamond * address the NPE that can happen when wifi is disabled and document issues with permissions * fix log
2017-06-13Make all warnings abort compilation (#58)David T.H. Kao
* Make warnings abort
2017-06-13Update toolchain version per Android Studio prompt. (#56)Ang Li
2017-06-12Add MODIFY_AUDIO_SETTINGS for setMicrophoneMute (#57)David T.H. Kao
2017-06-12Add basic Bluetooth pairing and A2DP connection features. (#54)Ang Li
* Add support for pairing/unpairing a device. * Add support for connecting with A2DP profile. * Reorganize Bluetooth related snippets for future expansion of profile support. * Use Bundle instead of JSONObject for BluetoothDevice serialization.
2017-06-05Add Rpcs for basic Android logging. (#52)Ang Li
2017-06-02Microphone mute RPCs (#53)David T.H. Kao
* Add microphone muting to AudioManager controls * Fix return types
2017-05-23Add basic Bluetooth LE advertising and scan support. (#47)Ang Li
* Add basic Bluetooth LE advertising and scan support. * Introduce `RpcEnum`, a standard way to handle String-int enum conversion.
2017-05-16Adding BT RPC getAddress (#50)chok
2017-05-15Increasing bt discovery timeout from 1 to 2 minutes for ↵chok
btDiscoverAndGetResults() (#49)
2017-05-11Update toolchain version. (#48)Ang Li
2017-05-03Added Rpc to enable/disable wifi-verbose logging on API 21+ (#46)whutchin5
2017-05-02Simplify API required to call methods by reflection. (#45)Alexander Dorokhine
* Implement a cleaner way to call methods by reflection. * Port all callers to the new reflection API.
2017-05-02Fix issues related to WifiManagerSnippet. (#44)Alexander Dorokhine
* Removed version code check; it was incorrect and doesn't seem to be necessary. * Missing permission needed to be able to call setWifiApEnabled.
2017-05-01Add Bluetooth Rpcs needed to support making the device discoverable. (#41)Ang Li
* Add Bluetooth Rpcs needed to support making the device discoverable. * Fix a bug in serializer; fix a typo in an Rpc name. Related to #8