2691 Commits

Author SHA1 Message Date
Jeff Sharkey
6d51571835 Allow acquiring ContentProviders across users.
Otherwise services like SystemUI will always open content://-style
Uris as USER_OWNER.  Surfaces through createPackageContextAsUser()
which points all ContentResolver operations towards a given user.

Start using in RemoteViews, so that Notifications correctly resolve
image Uris to the sending user.  Also add user support for "content"
shell tool.

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
2012-09-21 19:49:43 -07:00
Winson Chung
34563e2dc5 Fixing various QuickSettings issues (Bug 7210343, Bug 7174839, Bug 7174738)
- Using startActivityFromUser() for multiuser settings intents
- Show Wifi/Bluetooth Off labels when they are off
- Removing quotes from SSID name
- Only showing the IME tile under the same conditions that the notification is showing
- Making tile labels uppercase

Change-Id: Ic4a085cda600da019eab259b22c9041d1a0b5d29
2012-09-21 17:22:30 -07:00
Svetoslav Ganov
0a5c5567f2 Merge "Multi-user support for the accessibility layer." into jb-mr1-dev 2012-09-21 17:21:45 -07:00
Svetoslav Ganov
58d37b55bd Multi-user support for the accessibility layer.
1. This change converts the accessibility manager service to
   maintain a state per user. When the user changes the services
   for the user that is going away are disconnected, the local
   accessibility managers in the processes for this user are
   disabled, the state is swapped with the new user's one, and
   the new user state is refreshed.

   This change updates all calls into the system to use their
   user specific versions when applicable. For example, regisetring
   content observers, package monitors, calls into other system
   services, etc.

   There are some components that are shared across users such
   as UI created by the system process and the SystemUI package.
   Such components are managed as a global state shared across
   all users and are updated accordingly on a user switch. Since
   the SystemUI is running in a normal app process this change
   adds hidden APIs on the local window manager to allow the
   SystemUI to notify the accessibility layer that it will run
   accross users.

   Calls to AccessibiltyManager's isEnabled(), isTouchExplorationEnabled()
   and sendAccessibilityEvent return false or a are a nop for a
   background user sice he should not send accessibility events,
   and should not perform touch exploration.

   Update the internal accessibility tests due to changes in the
   AccessibilityManager.

   This change also fixes several issues that were encountered
   such as calling out the accessibility manager service with a
   lock held.

   Removed some incorrect debugging code from the TouchExplorer
   that was leading to a system crash.

bug:6967373

Change-Id: I2cf32ffdee1d827a8197ae4ce717dc0ff798b259
2012-09-21 16:48:07 -07:00
Baligh Uddin
1ba7a542da Merge "Import translations. DO NOT MERGE" 2012-09-21 15:45:25 -07:00
Baligh Uddin
fdc87ec583 Import translations. DO NOT MERGE
Change-Id: Ia4ec6721bf42a303dbd63fc2549469ba90fae77d
Auto-generated-cl: translation import
2012-09-21 14:13:44 -07:00
Baligh Uddin
2be31d890a Import translations. DO NOT MERGE
Change-Id: I84b2f0c629da551293130a0a31024b4bf8172d56
Auto-generated-cl: translation import
2012-09-21 14:12:27 -07:00
John Spurlock
268118df8a Migrate away from lightsOut() in BeanBagDream.
Bug:7211867
Change-Id: Ic81a61e368b44fa22db4fffac912219d9f2ca951
2012-09-21 16:41:14 -04:00
Daniel Sandler
482f21d60b am eeab8b7f: am ced8d21f: Add string for \'Ethernet\'.
* commit 'eeab8b7fb3c6eed80da22aa8555debddb6ecb007':
  Add string for 'Ethernet'.
2012-09-21 12:44:24 -07:00
Winson Chung
3ed6f9456a Showing QuickContacts card, adding brightness bar timeout and width, fixing wifi display icon visibility. (Bug 7186309, Bug 7175023)
Change-Id: Iea717e97bf90301bef68b06e1a35644e24ab029d
2012-09-21 11:59:12 -07:00
Baligh Uddin
364f4a90b4 Merge "Import translations. DO NOT MERGE" 2012-09-21 08:29:57 -07:00
Baligh Uddin
537d47f510 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-21 08:24:52 -07:00
Daniel Sandler
ced8d21f5a Add string for 'Ethernet'.
Bug: 6676469
Change-Id: Icbeb3e96b8580850a8392f443dc277488631bcab
2012-09-21 07:32:04 -07:00
Daniel Sandler
daa05ce16b am 4c8172be: am 1227233b: Merge "Bugreport in Quick Settings (if you turn it on)." into jb-mr1-dev
* commit '4c8172be2042d3b933381985d4a9a54eed1078f3':
  Bugreport in Quick Settings (if you turn it on).
2012-09-21 05:59:28 -07:00
Daniel Sandler
ff38a46089 am d6273f4a: am a2facc33: Merge "Fix the seesaw behavior on the status panels." into jb-mr1-dev
* commit 'd6273f4a43adb2cd65e11f94fa9eda9ddc11001d':
  Fix the seesaw behavior on the status panels.
2012-09-21 05:57:42 -07:00
Daniel Sandler
1227233b6f Merge "Bugreport in Quick Settings (if you turn it on)." into jb-mr1-dev 2012-09-21 05:54:24 -07:00
Daniel Sandler
a2facc33cd Merge "Fix the seesaw behavior on the status panels." into jb-mr1-dev 2012-09-21 05:53:05 -07:00
Daniel Sandler
c19d4488ea Bugreport in Quick Settings (if you turn it on).
Bug: 7190871
Change-Id: I8d10f18daed08aac1878cf6ba8937855d9494abd
2012-09-21 01:48:21 -04:00
Dianne Hackborn
edf07cc718 am e40950d7: am d3724b95: Merge "Don\'t load views before onResume called." into jb-mr1-dev
* commit 'e40950d78c8c549a4769e366d275ce8c36982dec':
  Don't load views before onResume called.
2012-09-20 20:28:40 -07:00
Dianne Hackborn
d3724b951e Merge "Don't load views before onResume called." into jb-mr1-dev 2012-09-20 19:13:56 -07:00
Baligh Uddin
584aace0d7 Import translations. DO NOT MERGE
Change-Id: I5018e41ee380fcfa8a0fe68b2d483493fd781f3a
Auto-generated-cl: translation import
2012-09-20 16:03:39 -07:00
Baligh Uddin
776dbf230f Import translations. DO NOT MERGE
Change-Id: I5e352f655b608f7db3ceb81c92170448580559f0
Auto-generated-cl: translation import
2012-09-20 16:02:22 -07:00
Craig Mautner
ca6da00f6c Don't load views before onResume called.
Views were being kicked off when RecentsTaskLoader was being started
from BaseStatusBar.toggleRecentsActivity. Then RecentTasksLoader called
RecentsPanelView.onTasksLoaded which invalidated the Adapter and loaded
the item views. All this before window manager had determined that the
Activity should be rotated and providing a new Configuration.

This fix waits for the Activity to resume before allowing the Adapter
to be invalidated.

Fixes bug 7138698.

Change-Id: I0df67ff2e07a0e0b69cc3b52e9843f90ce763704
2012-09-20 14:54:37 -07:00
Daniel Sandler
198a0306e5 Fix the seesaw behavior on the status panels.
The code in onMeasure that attempts to accommodate changing
child boundaries (i.e. an expanding/collapsing notification)
was locking the window size to the child measurement, even
though another window was trying to seesaw it closed. We now
only activate the rubberband behavior when the size of the
children changes, not on each onMeasure().

Lots of other small fixes to the panel expansion logic, too,
including ensuring that the expanded fraction doesn't jump
to 1.0f when the panel content hasn't been laid out yet
(causing the entire screen to become dim for a second thanks
to PhoneStatusBarView.panelExpansionChanged).

This change also restores the ability of Binder clients
(such as accessibility systems) to expand and collapse the
status bar.

Bug: 7008196
Bug: 6995518
Bug: 6628429
Change-Id: Ib0244a27aef2b4dbe19be98f7e039a9d38f1b80e
2012-09-20 16:50:52 -04:00
John Spurlock
1b03ae850c am 03b80dc8: am e0de5bff: Merge "Fire "dreaming started" and "dreaming stopped" broadcasts." into jb-mr1-dev
* commit '03b80dc8e914f1651ea60f7b6172e8293ac765c5':
  Fire "dreaming started" and "dreaming stopped" broadcasts.
2012-09-20 06:18:10 -07:00
Jeff Brown
3e41fefa84 am f271c1ec: am 925ad51b: Merge "Add support for remembering Wifi display devices." into jb-mr1-dev
* commit 'f271c1ecb9fab2c62f1461026b5c4f7a7152140b':
  Add support for remembering Wifi display devices.
2012-09-20 06:17:53 -07:00
John Spurlock
e0de5bfff2 Merge "Fire "dreaming started" and "dreaming stopped" broadcasts." into jb-mr1-dev 2012-09-20 05:45:54 -07:00
Jeff Brown
89d5546d7f Add support for remembering Wifi display devices.
Add a setting to globally disable Wifi display.

Fixed a bug where the wifi display broadcast receiver
was running on the wrong thread.

Removed the wifi-display QuickSettings dialog, all functionality
has been moved to Settings.

Bug: 7178216
Bug: 7192799
Change-Id: I9796baac8245d664cf28fa147b9ed978d81d8ab9
2012-09-19 22:04:44 -07:00
Baligh Uddin
d66228d83f Merge "Import translations. DO NOT MERGE" 2012-09-19 18:17:11 -07:00
Baligh Uddin
51f31edffe Import translations. DO NOT MERGE
Change-Id: I73ec37c211a7c7881cbf3a0bb7380e73a7847e32
Auto-generated-cl: translation import
2012-09-19 16:25:10 -07:00
Baligh Uddin
c8d33ad10e Import translations. DO NOT MERGE
Change-Id: If5bb36909e7536aedb40b72ba0899568dce7264c
Auto-generated-cl: translation import
2012-09-19 16:23:58 -07:00
Dianne Hackborn
79c8c7a4ff am 9b4d528d: am 09ad0832: Merge "Switch to showing top-most thumbnail of recent apps." into jb-mr1-dev
* commit '9b4d528d7edf3d55a925b79ab7ba7664a9cb7a5e':
  Switch to showing top-most thumbnail of recent apps.
2012-09-19 15:20:41 -07:00
John Spurlock
f4f6b4c8b0 Fire "dreaming started" and "dreaming stopped" broadcasts.
Dream manager now fires broadcast intents when entering + exiting
dreamland (except when testing).

Power manager can now listen for dreams ending, using polling only
as a backstop.

Also:
 - Bullet-proof dream-manager/dream against known failure modes
 - Add new read/write dream permissions
 - Refactor dream-manager to delegate work + state management into
   a new DreamController class, via a handler

Bug:6999949
Bug:7152024
Change-Id: I986bb7812209d8c95ae1d660a5eee5998a7b08b1
2012-09-19 17:36:50 -04:00
Dianne Hackborn
09ad0832e0 Merge "Switch to showing top-most thumbnail of recent apps." into jb-mr1-dev 2012-09-19 11:40:18 -07:00
Dianne Hackborn
15491c6a72 Switch to showing top-most thumbnail of recent apps.
The way it should have been, and with the new recents enter animation
the way it must be.

Added a new method to retrieve this thumbnail, since it would be less
efficient to use the existing API (which always returns the "base"
thumbnail).  Probably at some point that existing API should be tweaked
to always return the top thumbnail instead, but that is for a later time.

Also removed code that would clear the thumbnail associated with an
activity when it is resumed.  I don't think there should ever be a
reason to clear a thumbnail -- it's much better to have *something*
for the task, even if it is a little out of date.

Change-Id: I83e6ca6403eb2df5e4de3009dfe8c210e8cf8d5b
2012-09-19 11:25:40 -07:00
Baligh Uddin
7b6ec1f6fd Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-19 09:14:59 -07:00
Baligh Uddin
07b199c8b0 Merge "Import translations. DO NOT MERGE" 2012-09-19 09:11:04 -07:00
Winson Chung
f42980f9f7 am bf4a17aa: am 688ca470: Merge "Fixing crash in emulator due to no BluetoothAdapter. (Bug 7188166)" into jb-mr1-dev
* commit 'bf4a17aaf0136690aaf0e3d52217bdea35aebfe5':
  Fixing crash in emulator due to no BluetoothAdapter. (Bug 7188166)
2012-09-18 15:41:22 -07:00
Winson Chung
688ca4708b Merge "Fixing crash in emulator due to no BluetoothAdapter. (Bug 7188166)" into jb-mr1-dev 2012-09-18 15:34:37 -07:00
Winson Chung
84dbf462f8 Fixing crash in emulator due to no BluetoothAdapter. (Bug 7188166)
Change-Id: I63fe4b229a8a460170df153e71b7ad65655dfad1
2012-09-18 14:48:00 -07:00
Daniel Sandler
d3d26cd0d3 am cb1ec20a: am 63bcc14c: Merge "Remove settings and rotation buttons from notification panel." into jb-mr1-dev
* commit 'cb1ec20a2c27f5dd9e6e31f385990c6bec4b9a5a':
  Remove settings and rotation buttons from notification panel.
2012-09-18 13:59:42 -07:00
Daniel Sandler
63bcc14c43 Merge "Remove settings and rotation buttons from notification panel." into jb-mr1-dev 2012-09-18 13:33:21 -07:00
Baligh Uddin
10ee0404af Import translations. DO NOT MERGE
Change-Id: I9f48dc9210eff95ef753a7743920dec4558496db
Auto-generated-cl: translation import
2012-09-18 10:17:10 -07:00
Baligh Uddin
76a10e86ca Import translations. DO NOT MERGE
Change-Id: I52f25aba49edd4070c02b351adefeeb764e15866
Auto-generated-cl: translation import
2012-09-18 10:15:46 -07:00
Winson Chung
92e5da39c2 am 97b927a6: am f9c6a10d: Merge "Making QS scrollable and making numerous tweaks." into jb-mr1-dev
* commit '97b927a665fbd24d42d98ffc5a7e94c9b0b9fcef':
  Making QS scrollable and making numerous tweaks.
2012-09-17 15:04:15 -07:00
Winson Chung
f9c6a10d3f Merge "Making QS scrollable and making numerous tweaks." into jb-mr1-dev 2012-09-17 14:59:45 -07:00
Winson Chung
5f623011db Making QS scrollable and making numerous tweaks.
- Updating new assets (all line up)
- Updating brightness tile to reflect auto state
- Fixing network tile asset colors
- Adding press feedback

Change-Id: I857f141258eefec65243454cb69905cbd2a10bf6
2012-09-17 14:59:39 -07:00
Michael Jurka
39d9e7207f am 6b045d3a: am 7109aad6: Merge "Fix issue where recents would not show up sometimes" into jb-mr1-dev
* commit '6b045d3a138c4b56d39aba9648c05bcefb08a500':
  Fix issue where recents would not show up sometimes
2012-09-17 14:54:19 -07:00
Siva Velusamy
b98c8342b9 am 0a164f8e: am 9d7657c5: Merge "PhoneStatusBar: Fix NPE while accessing quick settings." into jb-mr1-dev
* commit '0a164f8efee58d949b745210085a2a321a2f0e91':
  PhoneStatusBar: Fix NPE while accessing quick settings.
2012-09-17 14:52:55 -07:00
Michael Jurka
7109aad6a1 Merge "Fix issue where recents would not show up sometimes" into jb-mr1-dev 2012-09-17 13:29:03 -07:00