summaryrefslogtreecommitdiffstats
path: root/tests/src
Commit message (Collapse)AuthorAgeFilesLines
* Match getLegacyVpn calls to changed interfaceRobin Lee2015-07-071-5/+7
| | | | | | The userId argument is now explicit. Pre-requisite for bug 21499103 Change-Id: Ib83e9615326ea484ef6d63fb1a1d9c1659999dab
* VPN: UI for forgetting disconnected VPNsRobin Lee2015-05-181-1/+2
| | | | | | | | | Made possible by expanded internal VPN APIs. Bug: 20872408 Bug: 20692490 Bug: 20747154 Change-Id: Idc87084a130afa18b27c85cc9d4b5033dcedaabe
* Track keystore password method changesChad Brubaker2015-05-071-1/+1
| | | | Change-Id: I324914c00195d762cbaa8c63084e41fa796b7df8
* Make Settings app not use cleartext network traffic.Alex Klyubin2015-04-021-0/+9
| | | | | | | | | | | | | | | | | | This CL switches the only two places which use cleartext HTTP in this app to HTTPS. It also declares in the AndroidManifest.xml that this app does not use cleartext network traffic, thus asking the platform and tools to block any such traffic from this app on best effort basis. NOTE: The only test that uses cleartext HTTP traffic is in VpnTests. This test makes cleartext HTTP requests to a third-party service which does not appear to support HTTPS. Thus, this CL temporarily relaxes the cleartext traffic policy during this test to keep it working. The correct longer-term fix for this test is to use a service that offers HTTPS. Bug: 19215516 Change-Id: Idf1ff8c66d43d77ef2114b2f1b676927844150e5
* Stop using apache-http in settings.Narayan Kamath2014-12-151-13/+20
| | | | | | | | | | | Most of this usage is from crufty "test" code, and is trivially replacable. bug: 18027885 (cherry picked from commit f25627c0c960cd31e069a0aed62798dd3a6416aa) Change-Id: I62b0c4e79812ae69767d778eb9e866cbba1d50e0
* am 70ce016f: am d2f56f07: am ac768973: am ce11881a: Allow VPN to stay ↵Xia Wang2014-04-051-0/+7
|\ | | | | | | | | | | | | connected for some time before disconnecting it. * commit '70ce016f84ce6c54b2c5f07adf86e415de5598cb': Allow VPN to stay connected for some time before disconnecting it.
| * Allow VPN to stay connected for some time before disconnecting it.Xia Wang2014-04-041-0/+7
| | | | | | | | Change-Id: I25994b8329514a32b5b6f383abef231d3decb4ec
* | am 2f633ca3: am 8361a97c: am 3e238230: am 836eff87: Merge "Add legacy VPN ↵Xia Wang2014-04-024-0/+954
|\ \ | |/ | | | | | | | | | | test framework and test cases" into klp-dev * commit '2f633ca3a5813eb3fece716448308bf8e7d351ee': Add legacy VPN test framework and test cases
| * Add legacy VPN test framework and test casesXia Wang2014-04-014-0/+954
| | | | | | | | | | | | | | | | - VpnProfileParser can parse VPN profiles from an xml file - CertInstallerHelper installs keys and certificates to keystore - VpnTests includes all test cases Change-Id: Ib5ce33e770ee4f82bea153f9b5c5cf3802f95b0c
* | Use Drawer in Settings appFabrice Di Meglio2014-02-031-6/+1
|/ | | | | | | | | | | | | | | | | | | | - get rid of PreferenceActivity as much as we can and use fragments instead - add Drawer widget - add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL) - add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external call thru an Intent Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we would have two Home). Also, verified that: - the WiFi settings still work when called from SetupWizard - when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
* Fix Bluetooth enable dialog to match Android style guide.Jake Hamby2012-11-201-1/+7
| | | | | | | | | | | | | When an app requests to enable Bluetooth and/or Bluetooth discovery, we show a dialog for user confirmation. Remove the dialog title, update the message text and button labels to be more descriptive, and use the standard dialog layout instead of a custom layout. Also fixes the button layout on the Bluetooth permission test app so that the "Discoverable" button doesn't wrap to two lines. Bug: 6001468 Change-Id: I731e2f31b4c822395fc3f83584a092550d9ae7d3
* Fix /proc/version parsing in Settings.Elliott Hughes2012-09-101-0/+54
| | | | Change-Id: I4bde0e4935eaa4c27067062443a051976daa115d
* Refactor Bluetooth settings for readability and performance.Jake Hamby2011-03-012-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Major refactoring of Bluetooth settings classes. - Moved all functionality from LocalBluetoothManager into new LocalBluetoothAdapter and LocalBluetoothPreferences, and into existing classes. - Refactored functionality from BluetoothEventRedirector into new BluetoothEventManager class, deleting the original version. New version uses a HashMap from action Strings to implementers of the BluetoothEventManager.Handler interface. - Created new BluetoothDiscoveryReceiver to update shared preferences timestamp for Bluetooth discovery start/finish. This is the only event handling we need to do when the settings app is not visible, so it has its own receiver entry in AndroidManifest.xml. Edits are written using QueuedWork.singleThreadExecutor(), which BroadcastReceiver knows about and will wait for completion, eliminating the need for PendingResult. - Miscellaneous cleanups to code style and logic for readability. - Pulled some large switch statement code blocks into new methods. - Changed all Bluetooth state references to the new BluetoothProfile constants. - Changed use of deprecated Notification constructor in BluetoothPairingRequest to use Notification.Builder. - Moved Utf8ByteLengthFilter helper function from BluetoothNamePreference into its own class, and moved test cases into the same package. - Moved all LocalBluetoothProfileManager functionality related to specific profiles into new top-level classes (A2dpProfile, etc.), all implementing the LocalBluetoothProfile interface. - Moved all UI-related methods from CachedBluetoothDevice into the class that uses the method, or into the static Utils class for shared methods. Change-Id: I6d49b7f4ae0c7d7dcf62551ee40b51ecb5fe4f47
* am 5496db04: am 59091c08: Fix Bluetooth device name max length checking.Jake Hamby2010-09-222-1/+114
|\ | | | | | | | | | | | | Merge commit '5496db047df21a44280c56984dbc296e2a1d7968' * commit '5496db047df21a44280c56984dbc296e2a1d7968': Fix Bluetooth device name max length checking.
| * am 59091c08: Fix Bluetooth device name max length checking.Jake Hamby2010-09-222-1/+114
| |\ | | | | | | | | | | | | | | | | | | Merge commit '59091c08f4d0ad8f42013f58ce9bd23ac3306336' into gingerbread-plus-aosp * commit '59091c08f4d0ad8f42013f58ce9bd23ac3306336': Fix Bluetooth device name max length checking.
| | * Fix Bluetooth device name max length checking.Jake Hamby2010-09-222-1/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Bluetooth device name has a maximum length of 248 bytes in UTF-8 encoding. The settings app previously limited the Bluetooth device name entered by the user based on the number of characters, which is incorrect when the name includes non-ASCII characters. Created a new Utf8ByteLengthFilter class for BluetoothNamePreference which counts UTF-8 bytes instead of Unicode characters, along with unit tests. We can move Utf8ByteLengthFilter into the framework in the future if it would be useful elsewhere in the system or for applications. Change-Id: I9debface09659f09d750f3bfe8ad6ddfd34c75c5
* | | Refactor settings top level activities to use fragments.Amith Yamasani2010-08-181-6/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Added a base class SettingsPreferenceFragment from which the settings activities should be derived so that they can behave like fragments. It contains some commonly called utility methods and dialog conversion to DialogFragment. Some of the top-level activities can be launched directly without the left pane. Settings.java acts as a proxy activity that contains just that settings fragment without the left pane. There are still a lot of second and third level activities that need to be fragmentized. This is just the first pass to test the 2-pane layout.
* | merge from open-source masterThe Android Open Source Project2010-06-113-0/+196
|\ \ | |/ |/| | | Change-Id: I7d167c97600bbf25e2ed8872cffecd9fa5b1db7c
| * Settings: Add a hook for operator or vendor specific settings.Anders Hammar12010-06-113-0/+196
| | | | | | | | | | | | | | | | The Settings application now provides a hook that can be used by an operator or a vendor specific application to add an activity of choice in the settings menu. Change-Id: Id55da9fd4262bbfc6a5abf863799c747b0d75b24
* | b/2310373 Show pairing dialogs if the device has been scanning for bt ↵Michael Chan2010-03-031-5/+40
|/ | | | | | devices recently. Change-Id: Iec9eb37a5e79b63cc3cf226e2ead6d9ed06d56a6
* b/2234854 Fixed Bluetooth API return codes for requesting permission to ↵Michael Chan2009-11-051-0/+136
| | | | | | enable bluetooth Also added test app.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+53
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-53/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+53