3552 Commits

Author SHA1 Message Date
Amith Yamasani
e8f67ed30b Merge "Add an upgrade step for settings moved to global." into jb-mr1-dev 2012-10-09 09:40:39 -07:00
Michael Jurka
7ed267f538 Fix one case where recents is sometimes not visible
Bug: 7299653
2012-10-09 17:03:38 +02:00
Amith Yamasani
531c237b82 Add an upgrade step for settings moved to global.
For some reason, the original step didn't work for some testers. This re-applies the move, which
should be no-ops if the entries are already in the right table.

Bug: 7254629

Also moved a few more entries to the global initialization section. Otherwise they would write
into the wrong table.

Change-Id: Ic0f5c4e09680f5687d08dccf78063508b9c0584c
2012-10-08 17:04:17 -07:00
Baligh Uddin
e70bf65423 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 15:53:43 -07:00
Baligh Uddin
3c576d9b65 Import translations. DO NOT MERGE
Change-Id: Idd93f9399dcd2466e3d6d84bee4b536a8a41b476
Auto-generated-cl: translation import
2012-10-08 15:23:58 -07:00
Casey Burkhardt
bac221ff0b Accessibility enhancements within quick settings and notification shade.
Change-Id: I377c389abe3ce2285a620e60f4c8de4727f4f5c9
Bug: 7229886
2012-10-08 12:41:32 -07:00
Baligh Uddin
f895f3cbfc Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-08 08:17:02 -07:00
Daniel Sandler
de8e3b122b Merge "Fix NPE if pulling down QS quickly on very first boot." into jb-mr1-dev 2012-10-07 21:12:04 -07:00
Daniel Sandler
9d09824a66 Fix NPE if pulling down QS quickly on very first boot.
The cling interception code can interfere with the touch
stream to the point that PanelView might get an ACTION_UP or
_CANCEL without a corresponding ACTION_DOWN, causing
problems.

Bug: 7301742
Change-Id: Idd5074c2544b3238517655ab3c068966bae9f912
2012-10-07 23:27:30 -04:00
Daniel Sandler
33a8bd8c40 Merge "New icon for "Sleep now."" into jb-mr1-dev 2012-10-07 18:37:09 -07:00
Daniel Sandler
118f484424 Fix NPE on devices without notification panel help clings.
Bug: 7302657
Change-Id: Ia161ea2ef74ef1dfbab55dacaa7274ebc2d66439
2012-10-07 20:48:28 -04:00
Adam Powell
db43f4722d QuickSettings - fail gracefully if we can't query the profile data
Fix a bug where QuickSettings couldn't get the user info tile data
when starting up encrypted. Since the system will be restarted once
the password is entered, it will be loaded properly once unlocked.

Bug 7301192

Change-Id: I6455df1d2bc33d375a1af8f2efb42dbdeb38f056
2012-10-07 16:04:37 -07:00
Daniel Sandler
b88311685c Merge "Notification & settings panel help." into jb-mr1-dev 2012-10-07 13:51:57 -07:00
Daniel Sandler
af3f32d9a4 New icon for "Sleep now."
Should only be shown in the docking intent chooser, but if
you use AnyCut to link to the Somnambulator you'll see it
there as well.

Bug: 7267723
Change-Id: I4be7572e4785f35b4ac1ad91d03a617d5d2fe3c1
2012-10-07 15:03:42 -04:00
Daniel Sandler
b17a726f2f Notification & settings panel help.
Comes up the first time you touch the status bar; explains
where quick settings is, and even allows you to swipe down
to try it (instead of touching "OK").

Bug: 7209412
Change-Id: I72b1a91902e64b4623e0fcaf1555dc703870b59f
2012-10-07 14:48:24 -04:00
Adam Powell
786d10921b Merge "Quick settings user display and switching" into jb-mr1-dev 2012-10-07 11:33:29 -07:00
John Spurlock
7711260e49 Merge "Keep quick settings brightness icon/dialog level in sync." into jb-mr1-dev 2012-10-07 06:39:23 -07:00
John Spurlock
fc6825b1b7 Merge "Update quick settings wireless display tile per spec." into jb-mr1-dev 2012-10-07 06:33:42 -07:00
John Spurlock
48f37ec8c9 Keep quick settings brightness icon/dialog level in sync.
We now listen for brightness changes and update the icon appropriately.
Note there are still only two icon states in QS (auto-on and auto-off).

We also listen for user switches, since the brightness setting is per-user.

The manual brightness level is now kept in sync with level set in Settings.

This change is tightly scoped to brightness only.  Any other
QS bugs should be triaged separately.

Bug:7283805
Change-Id: Ibaf8fe94e98f65cc02efe7fcddf4f38370fdb09f
2012-10-06 11:57:52 -04:00
Adam Powell
6f2a3d2982 Quick settings user display and switching
Load user information for the current user and display in quick
settings tile. Name is pulled from the contacts DB from the "Me"
profile, which will override the raw name on the system user if
needed.

Open the user switcher on the lock screen if this tile is clicked and
there is more than one user registered on the system. If there is only
one user, show the "Me" quick contact card.

Darken the background protection behind the user's name on the QS tile
layout so that it's readable against very light profile pic
backgrounds.

Bug 7175023
Bug 7257997

Change-Id: Ia1e7dd7af72dbd49113a827f9228e0a32e20a0dc
2012-10-05 22:36:13 -07:00
Craig Mautner
2874a54068 Merge "Add flag for displaying non-user's Windows to user." into jb-mr1-dev 2012-10-05 16:14:12 -07:00
Craig Mautner
88400d3a31 Add flag for displaying non-user's Windows to user.
Created a new flag that indicates that a window should be shown
to all users. For the flag to be valid the owner of the window
must have system permissions.

Also separated system window types into those that show to all
users (e.g. StatusBar, Keyguard, ....) and those that appear only
to the owning users (e.g. Drag, ANR, TOAST, ...). Those that appear
only to their owner can override their default behavior using
the new flag (e.g. LowBattery).

Fixes bug 7211965.

Change-Id: I1fdca25d57b7b523f0c7f8bceb819af656c388d4
2012-10-05 15:29:25 -07:00
Christopher Tate
73755c95ff Merge "Fix settings restore" into jb-mr1-dev 2012-10-05 15:24:06 -07:00
Christopher Tate
3543beb255 Fix settings restore
Now with more fix.

Bug 7249405

Change-Id: Ib8bc2e9c5b054054f4aaacf14af8d5a0d05d6e3a
2012-10-05 15:01:42 -07:00
Christopher Tate
d0f199308e Merge "Make sure settings writes are permission checked correctly" into jb-mr1-dev 2012-10-05 14:46:01 -07:00
Baligh Uddin
3ea5fc2ae6 Import translations. DO NOT MERGE
Change-Id: I9206f7e07e3ea7f6a8b90fa59989b4754a51f646
Auto-generated-cl: translation import
2012-10-05 14:39:16 -07:00
John Spurlock
01e2f4f522 Update quick settings wireless display tile per spec.
Bug:7178216
Change-Id: If917033930b0ba5a3ca0c7c8f574b069d5ecac6d
2012-10-05 17:33:31 -04:00
Christopher Tate
61695ffcbc Make sure settings writes are permission checked correctly
The last bit of undoing the earlier tangle around query results having
observers under the calling user's identity.  We do *not* want to drop
calling identity in the call() processing; we want the table-based
permission checks at the point of the underlying db operations to be
performed against that identity.

Bug 7265610

Change-Id: Ie0c9331ebd0918262a0a32b5b03b876fc2a92ca3
2012-10-05 12:05:13 -07:00
John Spurlock
fcfd3e68ab Merge "Fix upgrade case for Settings.Secure.USER_SETUP_COMPLETE." into jb-mr1-dev 2012-10-05 10:31:05 -07:00
Daniel Sandler
5b5d31b19b Merge "Lubricate a sticky notification panel." into jb-mr1-dev 2012-10-05 09:58:12 -07:00
Daniel Sandler
d7620196e5 Merge "Restore rubberbanding on initial pulldown." into jb-mr1-dev 2012-10-05 09:56:20 -07:00
Daniel Sandler
c38bbc391a Lubricate a sticky notification panel.
If the panel was left open when the screen was turned off,
in some cases it might get stuck in an "open" state (the
panel's expanded height would be nonzero) although the
status bar window is in fact fully collapsed (due to
makeExpandedInvisible). The next time the user would go to
open the panel, things would be in an inconsistent state and
the panel wouldn't come down (on phones, the settings panel
would be attempted, but still nothing would happen).

This was easiest to reproduce on the keyguard (turn on
screen, pull down panel, turn off screen).

Bug: 7260868
Change-Id: Iec0000ba020e5a519eb5b4d42ac273b6689a18bd
2012-10-05 12:21:38 -04:00
John Spurlock
7f1c248e80 Fix upgrade case for Settings.Secure.USER_SETUP_COMPLETE.
Existing primary users were never being marked as complete,
causing things that relied on this (e.g. showing the quick settings panel)
to break.

Bug:7282088
Change-Id: I9c8622f3cd0fb99a44477946d3db22fa2cbbc6fc
2012-10-05 11:45:18 -04:00
Daniel Sandler
a801f68624 Restore rubberbanding on initial pulldown.
Broken by change Id93d6a00.

Bug: 7286201
Change-Id: I4155076df09d548aa00ae3793f78e6c154cde5f1
2012-10-05 11:01:05 -04:00
Jeff Hamilton
20de160ca3 Revert "Changes to support updating location providers."
This reverts commit c19efc204aee1f0f3164dc21bd2ef3fdd4259c71.
2012-10-05 02:32:52 -05:00
Daniel Sandler
2a04e74097 Merge "Updated clock hands for Quick Settings." into jb-mr1-dev 2012-10-04 22:09:31 -07:00
Daniel Sandler
96b248affa Updated clock hands for Quick Settings.
Bug: 7281063
Change-Id: I03e7ca236c8cdc809e112e2e844a0006e73ab504
2012-10-05 01:07:07 -04:00
Baligh Uddin
b29088540b Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-04 21:53:02 -07:00
Daniel Sandler
f5e2b2c26c Merge "DreamService API revisions." into jb-mr1-dev 2012-10-04 20:56:08 -07:00
Daniel Sandler
2d78490292 DreamService API revisions.
Reduce reliance on Service interface overrides, instead
steering clients to the DreamService-specific lifecycle
hooks:

  onAttachedToWindow .. onDreamingStarted ..
  onDreamingStopped .. onDetachedFromWindow

The old Dream.java is finally gone now too.

Bug: 7281802
Change-Id: Ib7802c3397fde60ad1132fa49831da182eef4d7a
2012-10-04 23:38:15 -04:00
Christopher Tate
0cd3c976a2 Merge "Settings (and general) restore fixes" into jb-mr1-dev 2012-10-04 19:36:41 -07:00
Christopher Tate
5067685ccf Settings (and general) restore fixes
Pro tem, we ignore wifi configuration data when restoring system settings.
This is not ideal, but it *does* mean we do not bounce wifi off and on
again during the extended restore process, which in turn means we don't
interfere with things like the Play Store's download of applications.
We do continue to back up wifi configuration, and will start using that
data again when the new implementation that restores AP configurations
without having to bounce wifi comes to pass.

Also, this CL fixes a longstanding bug in BackupDataInput.skipEntityData()
that was being reproduced reliably once settings restore was skipping
the wifi-related entities in the restore stream.

Bug 7249405

Change-Id: I61520a9a116b66ebdf95734d09d9afd46406df01
2012-10-04 19:10:11 -07:00
Jeff Hamilton
82b946496e Merge "Changes to support updating location providers." into jb-mr1-dev 2012-10-04 18:23:45 -07:00
Christopher Tate
34637e57fc Make sure to check write perms after rewriting destination table
The write-permission check must occur after any destination-table
rewriting, otherwise any application would be able to write to
any global setting, by supplying a fraudulent "system" namespace
in the uri, but with a key name that will be redirected to global.

Bug 7289965

Change-Id: I122098a64e40d14e00d3cb6608c50aeb74faf7ce
2012-10-04 16:01:10 -07:00
Baligh Uddin
fb442c8398 Import translations. DO NOT MERGE
Change-Id: Ia8a06130c50c0d369a188f0b780399b51f998f3a
Auto-generated-cl: translation import
2012-10-04 13:16:23 -07:00
John Spurlock
3c008f26ca Merge "Disable quick settings panel in setup wizard (user 0)." into jb-mr1-dev 2012-10-04 13:13:01 -07:00
Daniel Sandler
c30b6da804 Merge "Bring back the notification panel handle peek animation." into jb-mr1-dev 2012-10-04 12:41:41 -07:00
Daniel Sandler
0c1b75c17b Bring back the notification panel handle peek animation.
Bug: 7286201
Change-Id: Id93d6a00689ffb7f97e89af935460b1debec3850
2012-10-04 15:37:13 -04:00
Daniel Sandler
0a890b3ce2 Merge "Remove Start Dreaming^W^W Sleep Now 1x1 widget." into jb-mr1-dev 2012-10-04 12:14:15 -07:00
Daniel Sandler
7aa88f7aad Remove Start Dreaming^W^W Sleep Now 1x1 widget.
If you need its functionality for testing:

  $ adb shell am start -n com.android.systemui/.Somnambulator

Bug: 7267723
Change-Id: I9e0dd9d020e251d1ced4377329436ea46c3a8af5
2012-10-04 15:03:22 -04:00