3949 Commits

Author SHA1 Message Date
Christopher Tate
afccaa84c8 Use myUserId() only in registerContentObserver()
The reason for this is a bit subtle: we want to guarantee that
when a content observer is registered using the public API, it
is *always* bound to the host user's view of the data behind the
observed Uri, never the calling user's.  Now, the reason it was
the calling user in the first place is that the Settings provider
(and potentially any singleton provider) needs the observers
underlying Cursors returned from query() to be tied to the caller's
user, not the provider's host user.

In order to accomplish that now that the public-facing behavior is
always tied to the host user, the concrete class that implements
the Cursor type handled by the Settings provider has been extended
with a new hidden API for setting a notification observer tied to
an arbitrary user; and then the provider explicitly downcasts the
query result's Cursor to that class in order to register the
notification observer.  We can do this safely because this is platform
code; if we change the way that these underlying cursors are constructed,
we can just fix this point of call to follow along.  If they get out
of sync in the future, the Settings provider will scream bloody
murder in the log and throw a crashing exception.

Bug 7231549

Change-Id: I0aaceebb8b4108c56f8b9964ca7f9e698ddd91c8
2012-10-03 17:41:51 -07:00
Daniel Sandler
bd2000d35f am 0923060d: am d564f0c5: am 88c3a511: Merge "Fix a bug in double-swiping panels..." into jb-mr1-dev
* commit '0923060dc33fc78221823b26d28189e5839c48d0':
  Fix a bug in double-swiping panels...
2012-10-03 17:06:27 -07:00
Daniel Sandler
88c3a51123 Merge "Fix a bug in double-swiping panels..." into jb-mr1-dev 2012-10-03 16:58:01 -07:00
Eric Laurent
81418951b7 am 98845ef5: am 04afeea1: am 4eaa2516: Merge "fix settings data base upgrade for ringer mode" into jb-mr1-dev
* commit '98845ef5ec995dd03f9039954eaf1bc1e747e086':
  fix settings data base upgrade for ringer mode
2012-10-03 16:39:06 -07:00
Eric Laurent
4eaa25164b Merge "fix settings data base upgrade for ringer mode" into jb-mr1-dev 2012-10-03 16:31:28 -07:00
Eric Laurent
55b02226c0 fix settings data base upgrade for ringer mode
Ringer mode setting was moved from System to Global group
but a db upgrade cleanup step was missing.

Bug 7128886.

Change-Id: Id20994fe74575afa2b68154a620aa3c8807e8304
2012-10-03 16:13:04 -07:00
Adam Powell
add9d8332d am 9f6cf431: am 402bc176: am b8bb7a0e: Merge "Port unmerged notification changes from jb-dev to jb-mr1-dev" into jb-mr1-dev
* commit '9f6cf431169b49e5f49e727843d2972a9bad69f0':
  Port unmerged notification changes from jb-dev to jb-mr1-dev
2012-10-03 16:07:12 -07:00
Daniel Sandler
4377d1494c Port unmerged notification changes from jb-dev to jb-mr1-dev
Bug 7150006

Single finger notification expansion.

If you liked these changes...

  Change Ie4e79aa5
  Change I8a6f8606
  Change I824937e9
  Change I957b6d50

You'll love this one!

Conflicts:
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml

Fix notification gestures.

Broken by recent changes to ScaleGestureDetector, which we
were using incorrectly.

Conflicts:
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml

Change-Id: Ie534c5b2d320296531a36a9b1c22f9dd6901e0b8
2012-10-03 15:27:04 -07:00
Daniel Sandler
8c17a04451 am 55ae7beb: am 4fc8b781: am 76366938: Merge "Increase the anti-jitter threshold for status bar flings." into jb-mr1-dev
* commit '55ae7beb228198d14d679f7082bbe2fda471be46':
  Increase the anti-jitter threshold for status bar flings.
2012-10-03 14:05:11 -07:00
Chris Wren
08970499ae am 91490e93: am 04a3e809: am 4b576e39: Merge "change string for wifi not connected state." into jb-mr1-dev
* commit '91490e933629b32d43c8bb512ab404e361f61bba':
  change string for wifi not connected state.
2012-10-03 14:05:07 -07:00
Christopher Tate
b66b23d0b0 am 11ebeae0: am f4c51434: am 1795325a: Merge "Make settings backup/restore work in the new multi-user world" into jb-mr1-dev
* commit '11ebeae0b555942389b576d7275964618a40d992':
  Make settings backup/restore work in the new multi-user world
2012-10-03 14:04:51 -07:00
Chris Wren
85db803e7c hide the redundant clock when the notification shade is open.
Bug: 7204705
Change-Id: I88ef58938c5e96c4828dbda5d93f9874535b212f
2012-10-03 17:03:15 -04:00
Daniel Sandler
750bb9bff9 Fix a bug in double-swiping panels...
...that could cause them both to be shown at once.

Bug: 7179458
Change-Id: I32e51bd6d4f5773d0f4f5d3e99a84d299cd4b766
2012-10-03 16:24:50 -04:00
Daniel Sandler
7636693824 Merge "Increase the anti-jitter threshold for status bar flings." into jb-mr1-dev 2012-10-03 12:29:01 -07:00
Daniel Sandler
db9a376278 Increase the anti-jitter threshold for status bar flings.
You must move the panel at least 20dp overall, or at a speed
of 150dp/sec or more (actually quite easy; most normal
flings are 500dp/s or more) for it to be considered a fling.

Bug: 7179458
Change-Id: Ic1f4edc641cd2aa1cde89b2ee02eefdf5a0cc044
2012-10-03 15:27:40 -04:00
Chris Wren
4b576e39f0 Merge "change string for wifi not connected state." into jb-mr1-dev 2012-10-03 12:19:32 -07:00
Chris Wren
daab6af91d change string for wifi not connected state.
Bug: 7217026
Change-Id: I8b593b85fe32f37880ee1a0b3ef869b36e80ba5b
2012-10-03 15:13:10 -04:00
Daniel Sandler
f7f96aecd5 am dacd3ebe: am b8a2eb97: am cbfcf5a3: Merge "Panel physics changes." into jb-mr1-dev
* commit 'dacd3ebe8d504d92735ceb85e0940cb1eb60cc99':
  Panel physics changes.
2012-10-03 12:02:21 -07:00
Christopher Tate
1795325af7 Merge "Make settings backup/restore work in the new multi-user world" into jb-mr1-dev 2012-10-03 11:54:01 -07:00
Daniel Sandler
cbfcf5a329 Merge "Panel physics changes." into jb-mr1-dev 2012-10-03 11:43:13 -07:00
Daniel Sandler
67eab79051 Panel physics changes.
- You can start pulling down another panel before the first
  one has fully expanded. (Protip: tap many times on the
  statusbar to invoke Schwarzenegger Mode.)
- When starting to pull down a panel, other panels are
  immediately sent running (rather than placing them on a
  literal seesaw).
- Rubberbanding is a little less aggressive: if it looks
  like you're moving your finger upward, we'll just close
  the panel outright rather than sticking to the bottom of
  the visible content. (tablets only)
- This has some implications for the background fade; you'll
  see a brief increase in brightness as you swap panels
  because the fade fraction is based on the sum of all the
  panels' fractional visibility. At times there will not be
  enough "panel" visible, in the aggregate, to justify
  holding the fade steady.

Bug: 7260868 // can't pull down panel, possibly fixed
Bug: 7204435 // double-swipe for QS
Bug: 7179458 // fling & rubberbanding heuristics
Bug: 7172453 // collapse other panels when dragging a new one
Bug: 7221970 // grabbing a flying panel causes twitching
Change-Id: Iad7c1f92c4edab9102cdda45605ef0ead4cc16c5
2012-10-03 14:24:02 -04:00
Baligh Uddin
dfef9b09c9 Merge "Revert "Import translations. DO NOT MERGE"" into jb-mr1-dev 2012-10-03 09:30:00 -07:00
Baligh Uddin
f97262bf3e Revert "Import translations. DO NOT MERGE"
This reverts commit 4736039f3347675796a4d7e589584da3d1af275e

Change-Id: Ie271f9a3872578cea458389a5ba7ccaf93beff29
2012-10-03 09:28:27 -07:00
Chris Wren
3aaec3ee39 am 310430c7: am ed2f0fb8: am 3edcf5ee: Merge "make bluetooth iconography consistent with other quicksettings icons." into jb-mr1-dev
* commit '310430c73df90931c7c3c00698003db3ce21c064':
  make bluetooth iconography consistent with other quicksettings icons.
2012-10-03 09:26:44 -07:00
Chris Wren
3edcf5ee90 Merge "make bluetooth iconography consistent with other quicksettings icons." into jb-mr1-dev 2012-10-03 09:19:11 -07:00
Chris Wren
b2a7d27bbe make bluetooth iconography consistent with other quicksettings icons.
Bug: 7217026
Change-Id: I880ee26e1d92ffa49885cf53b8dbab6b13887423
2012-10-03 12:11:49 -04:00
Daniel Sandler
a064fe6d43 am e004899b: am 26d4083a: am d14508f8: Merge "Disable statusbar pulldown gesture tracking." into jb-mr1-dev
* commit 'e004899bf80839e29bb2c9112701dd3565a40af2':
  Disable statusbar pulldown gesture tracking.
2012-10-03 09:07:46 -07:00
Baligh Uddin
6303084a50 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-03 09:01:55 -07:00
Daniel Sandler
26d4083ac8 am d14508f8: Merge "Disable statusbar pulldown gesture tracking." into jb-mr1-dev
* commit 'd14508f8c483f1b5c14e8f25b43ad5714b445e28':
  Disable statusbar pulldown gesture tracking.
2012-10-03 09:01:51 -07:00
Daniel Sandler
d14508f8c4 Merge "Disable statusbar pulldown gesture tracking." into jb-mr1-dev 2012-10-03 09:00:28 -07:00
Baligh Uddin
1553b24587 Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev 2012-10-03 09:00:05 -07:00
Daniel Sandler
151f00d8f0 Disable statusbar pulldown gesture tracking.
Bug: 7164602
Change-Id: Ie6569a7a8a9f462e844ef3088098c3256653f630
2012-10-03 11:50:02 -04:00
Daniel Sandler
5ccb4e5b97 am ede625ac: am 6a1bebe6: am 1fd34745: Merge "Allow QS to be closed via drag on background." into jb-mr1-dev
* commit 'ede625ac6544d68a1d3018a3c34a256f2a4b5d11':
  Allow QS to be closed via drag on background.
2012-10-03 08:05:27 -07:00
Daniel Sandler
1fd3474585 Merge "Allow QS to be closed via drag on background." into jb-mr1-dev 2012-10-03 07:59:09 -07:00
Michael Jurka
338007339d am 702b28ac: am 120f360e: am 211f2309: Merge "Fix Recents dismiss/back button behavior" into jb-mr1-dev
* commit '702b28aca66f4ea478327e3114d42f2a458e26c8':
  Fix Recents dismiss/back button behavior
2012-10-03 07:43:08 -07:00
Daniel Sandler
e5f7ec0576 Allow QS to be closed via drag on background.
This was already working fine for the area of the panel
below the ScrollView, but intuitively it seems that dragging
in the unused portion of a partially-filled row would behave
the same way. Because it's part of the scrolling content,
though, drags in that region are (correctly) interpreted by
the ScrollView as scrolling requests.

The new QuickSettingsScrollView works around this by
ignoring touch events if its contents are too small to be
scrolled. So in the common case (QS tiles on a phone) you
will be able to drag in any empty area and have your taps
interpreted by the PanelView (which hands them off to the
handle to collapse the view).

We don't handle drags in empty areas when there are too many
tiles to show on-screen, and really, it's impossible to do
so: this gesture should then definitely be interpreted as a
scroll.

Bug: 7203193
Change-Id: I4cfcb029481a88d3604c7105185e8bcb7dbde8a5
2012-10-03 10:40:00 -04:00
Michael Jurka
211f2309ab Merge "Fix Recents dismiss/back button behavior" into jb-mr1-dev 2012-10-03 07:34:50 -07:00
Michael Jurka
e5923631f0 Fix Recents dismiss/back button behavior
Bug: 7238675
Change-Id: Ic97c38d5559b90c08a32751091d2587d4abfd534
2012-10-03 15:35:54 +02:00
Jeff Sharkey
929ff8ece1 am 4bf59f7d: am fbbcffeb: am 1ed299f8: Merge "Make USB services multi-user aware." into jb-mr1-dev
* commit '4bf59f7dd9fbfe608853de7c639d719d25c07318':
  Make USB services multi-user aware.
2012-10-02 18:19:41 -07:00
Jeff Sharkey
1ed299f822 Merge "Make USB services multi-user aware." into jb-mr1-dev 2012-10-02 18:11:48 -07:00
Jeff Sharkey
fc3f24b4b6 Make USB services multi-user aware.
USB settings are now isolated per-user, since they revolve around
installed packages.  User-specific settings are returned based on
calling user, or referenced by UserHandle passed to SystemUI.  Each
settings Context is wrapped as a specific user, so all broadcasts are
sent correctly.  Upgrades any existing USB settings to OWNER.

Physical events, like new devices, are routed to the currently active
user.  Switch to using AtomicFile when persisting settings.

Bug: 7244888
Change-Id: I8a723ad3d55ac1bff99276c5f3a3f5e8f013432f
2012-10-02 18:09:10 -07:00
Christopher Tate
66488d64df Make settings backup/restore work in the new multi-user world
1) Properly handle restores of settings elements that have been migrated
   to the new global namespace

1) Back up and restore the new global settings namespace

3) Make sure to back up / restore the global entity
   ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED

Bug 7249405

Change-Id: Ibfa9930ea4d0e16c7635697e8c631b155e4c0cb2
2012-10-02 15:22:30 -07:00
Baligh Uddin
4736039f33 Import translations. DO NOT MERGE
Change-Id: I40d09593fab0006cbe483fae9267ca93148a215b
Auto-generated-cl: translation import
2012-10-02 14:56:03 -07:00
Baligh Uddin
cf134b51a5 Import translations. DO NOT MERGE
Change-Id: I2ec20472e935fa6fe02d715424b1e89d8ff90f52
Auto-generated-cl: translation import
2012-10-02 14:55:01 -07:00
John Spurlock
51fae1373e am fa69c0a5: am de99afcf: am ec9b13dc: Merge "Disable quick settings for users until USER_SETUP_COMPLETE." into jb-mr1-dev
* commit 'fa69c0a555a223798ad79a0991efff1f7baa9f26':
  Disable quick settings for users until USER_SETUP_COMPLETE.
2012-10-02 14:20:12 -07:00
John Spurlock
ec9b13dc48 Merge "Disable quick settings for users until USER_SETUP_COMPLETE." into jb-mr1-dev 2012-10-02 14:15:23 -07:00
Jeff Sharkey
18f6f9a085 am 3509e373: am f63ca02f: am c12dd973: Merge "Migrate more System and Secure settings to Global." into jb-mr1-dev
* commit '3509e3731649a99b426b97363f06c7288e5d33e2':
  Migrate more System and Secure settings to Global.
2012-10-02 14:05:44 -07:00
Chris Wren
5772c1946e am 097891f2: am eb3a02da: am 6ac833c9: Merge "re-use status bar DateView in QuickSettings." into jb-mr1-dev
* commit '097891f2d61480a592e6821aa3fb6b239e11ffd4':
  re-use status bar DateView in QuickSettings.
2012-10-02 14:05:41 -07:00
Jeff Sharkey
c12dd97372 Merge "Migrate more System and Secure settings to Global." into jb-mr1-dev 2012-10-02 13:57:30 -07:00
Chris Wren
6ac833c9e3 Merge "re-use status bar DateView in QuickSettings." into jb-mr1-dev 2012-10-02 13:57:30 -07:00