summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/settings
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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