• Home
  • History
  • Annotate
  • only in /packages/apps/Settings/tests/src/com/android/
History log of /packages/apps/Settings/tests/src/com/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
436b29e68e6608bed9e8e7d54385b8f62d89208e 08-Feb-2011 Jake Hamby <jhamby@google.com> Refactor Bluetooth settings for readability and performance.

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
ettings/SettingsHookTests.java
ettings/bluetooth/Utf8ByteLengthFilterTest.java
ettings/tests/Utf8ByteLengthFilterTest.java
2695660674141025223240cf990bf7e5745a53a9 23-Sep-2010 Jake Hamby <jhamby@google.com> am 5496db04: am 59091c08: Fix Bluetooth device name max length checking.

Merge commit '5496db047df21a44280c56984dbc296e2a1d7968'

* commit '5496db047df21a44280c56984dbc296e2a1d7968':
Fix Bluetooth device name max length checking.
5496db047df21a44280c56984dbc296e2a1d7968 23-Sep-2010 Jake Hamby <jhamby@google.com> am 59091c08: Fix Bluetooth device name max length checking.

Merge commit '59091c08f4d0ad8f42013f58ce9bd23ac3306336' into gingerbread-plus-aosp

* commit '59091c08f4d0ad8f42013f58ce9bd23ac3306336':
Fix Bluetooth device name max length checking.
59091c08f4d0ad8f42013f58ce9bd23ac3306336 17-Sep-2010 Jake Hamby <jhamby@google.com> Fix Bluetooth device name max length checking.

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
ettings/SettingsLaunchPerformance.java
ettings/tests/SettingsLaunchPerformance.java
ettings/tests/Utf8ByteLengthFilterTest.java
d79934731c8d33f6fc63b21c120b9ffba5d06f54 18-Aug-2010 Amith Yamasani <yamasani@google.com> Refactor settings top level activities to use fragments.

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.
ettings/SettingsHookTests.java
00c406364e7bb6b9191e928b1d1e4be9a7bb0960 11-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I7d167c97600bbf25e2ed8872cffecd9fa5b1db7c
b2dd90383bae9f3ca0a99b59d3f5992e7fd5ad48 08-Apr-2010 Anders Hammar1 <anders.hammar1@sonyericsson.com> Settings: Add a hook for operator or vendor specific settings.

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
ettings/SettingsHookTests.java
ettings/tests/Manufacturer.java
ettings/tests/Operator.java
76098b7f7ac4f19af776fcad8413b582904bfdc2 03-Mar-2010 Michael Chan <mchan@android.com> b/2310373 Show pairing dialogs if the device has been scanning for bt devices recently.

Change-Id: Iec9eb37a5e79b63cc3cf226e2ead6d9ed06d56a6
ettings/tests/BluetoothRequestPermissionTest.java
834e5993e4f2f34d5aceb3196601b30231d00b07 06-Nov-2009 Michael Chan <mchan@android.com> b/2234854 Fixed Bluetooth API return codes for requesting permission to enable bluetooth

Also added test app.
ettings/tests/BluetoothRequestPermissionTest.java
afc4ab2ffbb8327ddce9907961295a32cbf49d0f 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ettings/SettingsLaunchPerformance.java
4e14e5ccbf1ef27220419849133d482a546d5c04 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ettings/SettingsLaunchPerformance.java
de2d9f5f109265873196f1615e1f3546b114aaa7 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ettings/SettingsLaunchPerformance.java