History log of /packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
587e6bf3fcfc8dffb4cf021227d896ffcb5488a9 31-Oct-2013 David Christie <dnchrist@google.com> Update power widget icons and fix location behavior
Bug: 11242129

Change-Id: I29f5b4cf914ece4b0991229f384012eb66ba3820
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
4af6514c78f2e468fe0f8f6070cf0f3e658b34a0 03-Sep-2013 Tom O'Neill <tomo@google.com> Switch to receiving LocationManager.MODE_CHANGED_ACTION

- From LocationManager.PROVIDERS_CHANGED

- Part of fix for b/10409275

Change-Id: I4030c8df4db942777d6035266a8ed7f18e458fb5
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
3d0bee59b875c7a47045408a46a599ae290659ef 29-Aug-2013 Lifu Tang <lifu@google.com> Fixed the widget location toggle button

- Fix b/10531669

Change-Id: Iba08d515119c42e5c4de4ee02d6dd8aea404fc69
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
93259c14f3aca4739e2cf7691cb0416ded509d8d 26-Aug-2013 Tom O'Neill <tomo@google.com> Switch to new location mode API recommended by API council

- Part of b/10461763 fix

Change-Id: I202ce4c817f24a1682796e92fed9cc3efcc31a81
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
5eed792a76970e4271e03547e61dbbd6fabbf2f4 22-Aug-2013 David Christie <dnchrist@google.com> Update power widget to represent gps instead of location master.

Change-Id: I62f701b612db2e31f9ad8b016dbf37ed7fd4ef26
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
512183ea8ee485214d5455421c4e31c2322ca7ae 21-Aug-2013 David Christie <dnchrist@google.com> Switch location Settings and Power widget to use new Settings api.

Change-Id: I06b7a2e21876a18d9ad42fda2a6c6d4c7b6add48
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
681f79900787c2c40751463ddd8f3476f9b40476 07-Aug-2013 David Christie <dnchrist@google.com> Modify Power Widget Gps Icon To Represent Location.
Instead of directly controlling gps on/off, it will
control master location switch on/off.

Change-Id: I12a20fb77c12b5099172167821ff7ed00ba9ea7c
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
0c5a401a58b30041d5fe712d78fccbd47f5b744d 14-Mar-2013 Maggie Benthall <mbenthall@google.com> Respect user restrictions about adding/removing accounts, sideloading

Hide or disable options in the settings app when the user is restricted from
making changes.

Remove "Add account" button from Settings menu, and "remove account" option from menu in AccountSyncSettings.
Remove sideloading checkbox in SecuritySettings.

Also handle replacement of UserManager.isShareLocationToggleAllowed() with hasUserRestriction, which takes a restriction key string.

Change-Id: I34c74fd5aed8956ba00f92e3d3c657b608454dfe
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
ea6260d887a7065d65d94be58c05903b3d1fc359 22-Feb-2013 Maggie Benthall <mbenthall@google.com> Respect user restriction against toggling location sharing settings.

Change-Id: I1e629129fc9b3b224d4f4402b56d904df9edc43f
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
1d6bf8d46b07cb87d5842324190bc5a31eee5e4b 16-Nov-2012 Jeff Sharkey <jsharkey@android.com> Follow API changes.

Bug: 7333397
Change-Id: I72a27dbe02be376ec1c781955e930e87ea59b5a0
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
2078b6916d6e0417c2fd93268fd8fc2067b76351 22-Sep-2012 Adam Cohen <adamcohen@google.com> Addressing issue where power control widget disappears issue 7205586

Change-Id: I6eea146d3819d3b35f1420e59d4ebdbc66041a9e
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
b9062f26785e53cfc44180e0044c8025ad33af2a 31-Aug-2012 alanv <alanv@google.com> Add content descriptions to power control widget.

Bug: 6361285
Change-Id: I4fd7ed519de9a5b7e50e6905550695fad02bcc42
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
748ba16a046a6ac4727f2e39db9a933d81d02465 11-Aug-2012 Jeff Brown <jeffbrown@google.com> Use new power manager API.

Change-Id: If0c58a9bee05ec0de434879e78cd95299e54e3fe
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
defcb0060d6f816fafc27b80cdeba731954af5d0 12-May-2012 Jeff Brown <jeffbrown@google.com> Update references to PowerManager constants that have moved.

Bug: 6435382
Change-Id: Ieea857644dc0cf758e0ff4fd595c6a0115457df0
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
7d09187e4159cef599f1b67e8f39605a0f63095b 06-Mar-2012 Dianne Hackborn <hackbod@google.com> Use a component name that actually exists when enabling/disabling.

Change-Id: Id6422a0039060bce3dc1bdc39551f04a4e4adbe6
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
a9125d4d59bb3293dd1c92189bec3d0ab9e71d52 03-Oct-2011 Amith Yamasani <yamasani@google.com> Introduce half-brightness icon in Power Control widget.

Bug: 5358696
Change-Id: Iae484e786f4dd7a5e88078b69053f01425b79aef
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
a1252ccf7b31d01a9612fc0479dc7a632cabf8a7 30-Aug-2011 Peter Ng <petergng@google.com> Power control widget holofied

-brightness needs to implement brightness_half_holo state
*fixed now in the patch { old assets should be removed also(any "appwidget" that doesn't have holo in it)}

Change-Id: I2c1e754f68cf321c5b3517ba92c8f235b418e696
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
49c3ef901bd3add86511a17417ee5394771c33f6 18-Aug-2011 Amith Yamasani <yamasani@google.com> Power widget - track brightness changes.

Also, don't change background data setting when changing auto-sync state.

Bug: 3030482
Change-Id: Iad19cac8375d2d38004dbe401ceaec5402e11989
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
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
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
4b21f7cd9424eeb83838071a4419912ee5d5e41d 06-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3062691: GPS enable bypass via com.android.settings.widget.SettingsAppWidgetProvider

Make the receiver private. Also fix to correctly update when sync
status changes.

Change-Id: I35481bf5b473196b00427da4df49aa76f691d38b
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
740edeaa42d276bca21ea7e077412badecc0eea3 27-Sep-2010 Amith Yamasani <yamasani@google.com> Fix the indicators in the button bar. The middle ones were showing the left indicators incorrectly.

Earlier refactoring seems to have messed it up. Added a position value to the state trackers.

Bug: 2980926

Change-Id: I31df4b1ae0b835d801d67747154594299498c4cf
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
ae0ff95272fe2a7e32114ef4565e8c6b52c269b4 28-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Make power control widget be more responsive. Fix StrictMode violations.

Also use new location providers changed broadcast intent, and fix a bug
introduced in Froyo where we stopped observing the SYSTEM_CLOSE_DIALOGS
intent so we fell out of sync (more often) with the sync settings.

Now even responsive during the boot I/O storm! (except for toggling
brightness, which still does disk writes from the UI thread...)

BUG=2956025

Change-Id: I77876ff6e0be2325c15d5f08bb2970edf233f839
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
046915c4c8088ea222cb5a0ea8f0d3988e65c1c3 05-Apr-2010 Brad Fitzpatrick <bradfitz@android.com> Make Power Control widget a bit more responsive.

Based on a lot of timings on Sapphire.

Also, initially this CL improved the speed of Toasts, but now it just
removes the use of Toasts in the widget after eng/UX discussions with
various people.

BUG=2535155

Change-Id: I134a730f17ebee8a119b7796984f00b22e0d6120
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
a6a74e222a994e29a1daa7178943a1fc9dd06c47 24-Mar-2010 Irfan Sheriff <isheriff@google.com> Disable tethering to enable Wifi

We need to explicitly disable wifi while enabling
tethering and disable tethering while enabling wifi

Bug: 2539071
Change-Id: I7fda6e4d9d1bb804e81561d52b5f3a982a674b0e
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
94ea6e21c337225f01856b65318d34fbaa044ac4 22-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Make the Power Control widget more responsive.

BUG=2535155

Change-Id: Id3049fa9ba850c05140d7374065717b854a5d721
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
5bc5cedc7ae2808ed487d90ff86caedc722021db 09-Mar-2010 Erik <roboerik@android.com> b/2491823 Fixed brightness toggle for phones w/o auto-brightness

Logic didn't allow a transition from max to min brightness when used on
a phone that didn't support auto-brightness.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
5c9f9ce263b1ce24831d3bb2cc924ea40de1ec7a 04-Mar-2010 Erik <roboerik@android.com> b/2278841 Added state for auto-brightness on the power widget.

Added icons and a transition step to the brightness setting on the power
widget so auto-brightness can be toggled and the widget will remain in
sync with changes made through settings.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
8ab15b32f46b0bc2f6e8315a08d6ee2b64621265 24-Feb-2010 Ken Shirriff <kens@google.com> Power Widget: don't display toast in intermediate state

If bluetooth or wifi is in an intermediate state, the widget can't modify
the state, so it shouldn't pop up a toast.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
c151e45d8c8054516448e58280de63f180b790d5 27-Oct-2009 Mike Cleron <mcleron@google.com> New widgets
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
cdf42466bf3471337f1355b872eb2d529ba9409c 15-Oct-2009 Mike Lockwood <lockwood@android.com> Remove PowerManager.setAutoBrightness()

We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.

Change-Id: I1850549f513e3541b5761aae28ebc615410377de
Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
d80d19996a4b9ec3bfe1a9127af0df154f0e6770 29-Sep-2009 Ken Shirriff <kens@google.com> Fix power widget brightness.

If the auto-brightness is cleared, the brightness will drop to 0, so we
need to set it again.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
c4a0576473bd14eec1307ae1e0001a1db4fb5e94 28-Sep-2009 Ken Shirriff <kens@google.com> Fix power widget brightness for Sholes.

The widget must disable automatic brightness before modifying the brightness.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
ae57dbd618decb8cdc942756e283fadef659b2b6 16-Sep-2009 Debajit Ghosh <debajit@google.com> make power settings widget toggle sync, not background data
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
cd03f5320d42290b1619933954a344b59dc55f4f 15-Sep-2009 Mike Lockwood <lockwood@android.com> Move backlight brightness from HardwareService to PowerManager

to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming

Change-Id: Ic4faa008357fd3d74225ba90f05801c5127fd8c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
ca564d6bdaa56fba60f499e092e1024fff5d1aba 09-Sep-2009 Nick Pelly <npelly@google.com> Update application for Bluetooth API change.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
d63c0112251ab4e4e977545368dd703d875012a4 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: Update Settings.apk to match BT API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
e936f5b386b39781e8f5e1ab423ebaf790dd9742 01-Jul-2009 Ken Shirriff <kens@google.com> Add toast to settings widget.

When the settings widget updates bluetooth or wifi, display a
toast since they are slow to update.
Also fix some long lines.

bug=1918321
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
31989d7994f863191301eac8154b4887b949b2ca 23-Jun-2009 Fred Quintana <fredq@google.com> support for changes to the sync settings and control API
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
17f37f788a46ca9bee17003adff74c33f887c190 11-Jun-2009 Ken Shirriff <kens@google.com> Fix power widget bluetooth.

Starting wifi would also start bluetooth, due to a stray line.
bug=1910079
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java
03a6110b4f62e72592b451c05848cfaad8c65324 08-Jun-2009 Ken Shirriff <kens@google.com> Implement the power-control widget.

This widget allows uses to turn on/off bluetooth, wifi, gps, and sync,
and adjust brightness without going through the settings menu.

The widget provider updates the settings when the buttons are pressed.
The widget provider is also a receiver for events indicating that the
status was updated elsewhere and the buttons need to be changed.
/packages/apps/Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java