34860 Commits

Author SHA1 Message Date
Raph Levien
9dc11eb848 Merge "Fix for 7281523 android.text.cts.SelectionTest#testMoveRight failures" into jb-mr1-dev 2012-10-05 10:53:46 -07:00
Philip Milne
04b0963669 Merge "Fix for bug: 7281620. Blank line after date in status widget disappears." into jb-mr1-dev 2012-10-05 10:42:46 -07:00
Philip Milne
0223ffaa04 Fix for bug: 7281620. Blank line after date in status widget disappears.
Change-Id: I9e8e31e14e17643551c3bf89bac898d91c3d37ca
2012-10-05 10:27:42 -07:00
Jeff Hamilton
20de160ca3 Revert "Changes to support updating location providers."
This reverts commit c19efc204aee1f0f3164dc21bd2ef3fdd4259c71.
2012-10-05 02:32:52 -05:00
Matthew Xie
d21b483904 Merge "Add multi user support for bluetooth" into jb-mr1-dev 2012-10-04 23:21:34 -07:00
Raph Levien
577b07197b Fix for 7281523 android.text.cts.SelectionTest#testMoveRight failures
The failures were caused by the implementation of doTextRunCursor
passing a too-small value for contextCount into the underlying
getTextRunAdvances call (it wasn't accounting for the start offset).
Thus, when getTextRunAdvances made a copy of the text for its cache key,
it was getting a partial copy.

This patch fixes the size so the cache key always has a full copy of the
text.

Change-Id: I57e3ac6de7aef0e1f1c7000dc3d653f9b0d623d2
2012-10-04 23:15:12 -07:00
Baligh Uddin
9565ceb609 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-04 21:43:10 -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
Matthew Xie
fca9d63635 Add multi user support for bluetooth
Create a BLUETOOTH_STACK permission to share between all users of
Bluetooth apk. Bluetooth Manager binds to apk of current user
bug 6925422

Change-Id: I2df5546e977c2d77bc66d97d12479d933826922a
2012-10-04 18:35:42 -07:00
Jeff Hamilton
82b946496e Merge "Changes to support updating location providers." into jb-mr1-dev 2012-10-04 18:23:45 -07:00
Dianne Hackborn
0cdbd0776d Merge "Fix issue #7290206: Need API to get/look up user serial number" into jb-mr1-dev 2012-10-04 18:19:01 -07:00
Adam Cohen
f752202bee Plumbing to allow keyguard to be shown with user switcher (issue 7175023)
-> Also reduced calls to lockNow, and moved this call in ActivityManagerService

Change-Id: I9ba34ca902f7c0f71fa4ec302104688ca8d11f55
2012-10-04 17:53:01 -07:00
Dianne Hackborn
33f9cb8cf0 Fix issue #7290206: Need API to get/look up user serial number
Change-Id: I1713215e7c205b1b66c36488f89e3fbf4572cb97
2012-10-04 17:15:10 -07:00
Jeff Brown
93cbbb25a5 Allow phone to go to sleep while in call.
Bug: 7279383
Change-Id: Ia05490218f40a1843507b95ff48fa07910e582d4
2012-10-04 16:22:04 -07:00
Jeff Brown
dce8b94832 Merge "Fix parceling of display info flags." into jb-mr1-dev 2012-10-04 15:04:21 -07:00
Adam Powell
b4fad85ca0 Merge "Fix regression in AbsListView CHOICE_MODE_SINGLE" into jb-mr1-dev 2012-10-04 15:02:52 -07:00
Jeff Brown
3f2ba6220b Fix parceling of display info flags.
Bug: 7283429
Change-Id: I5365a3b06d9b9f2414f9a9d2c94b0906c41b4ece
2012-10-04 14:58:43 -07:00
Adam Powell
f3b8e6fe78 Fix regression in AbsListView CHOICE_MODE_SINGLE
Earlier patch reversed a few lines of code that allowed deselection of
the currently selected item in CHOICE_MODE_SINGLE. Put it back the way
it was.

Bug 7289436

Change-Id: Ia1c5f3238d2faa3dd79e474851333fda90978d3c
2012-10-04 14:53:36 -07:00
Baligh Uddin
97c69c5309 Import translations. DO NOT MERGE
Change-Id: Ia159a8f09466c150299e55fde16eae23a3d8097c
Auto-generated-cl: translation import
2012-10-04 13:00:15 -07:00
Dianne Hackborn
8a22919525 Merge "Fix issue #6968859: home not exiting an ANR'd dream" into jb-mr1-dev 2012-10-04 12:41:41 -07:00
Elliott Hughes
3594e855a4 Merge "Fix Catalan ("ca") date formatting." into jb-mr1-dev 2012-10-04 12:38:24 -07:00
Dianne Hackborn
5fe7e2a304 Fix issue #6968859: home not exiting an ANR'd dream
Add a new call to the activity manager for the input dispatcher
to report about any pid having an ANR.  This has a new feature
where it can also tell the activity manager that it is above the
system alert layer, so the activity manager can pop its ANR dialog
on top of everything if it needs to.  (Normally we don't want
these dialogs appearing on top of the lock screen.)

Also fixed some debugging stuff here and there that was useful
as I was working on this -- windows now very clearly include
their uid, various system dialogs now have titles so you know
what they are in the window manager, etc.

Change-Id: Ib8f5d29a5572542cc506e6d338599ab64088ce4e
2012-10-04 12:04:58 -07:00
Amith Yamasani
3364b2ff79 Merge "Fix launching home when there are multiple launchers installed" into jb-mr1-dev 2012-10-04 11:55:28 -07:00
Baligh Uddin
ceb4a21e72 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-04 10:54:18 -07:00
Jeff Hamilton
c19efc204a Changes to support updating location providers.
There is now only a single config value pointing
at a list of packages to get certs from. The old
system was a bit confusing.

The fused location provider also now builds
against SDK 17, and the meta data service version
tag was renamed from the overly generic "version"
to "serviceVersion".

Bug: 7242814
Change-Id: I00d27c9cbd5cc31a37bb4a98160435d15a72e19e
2012-10-04 11:00:42 -05:00
Satoshi Kataoka
ebf7e2851c Merge "Close the current input method when attached view doesn't have a handler" into jb-mr1-dev 2012-10-03 21:02:20 -07:00
Jim Miller
5b14b9698c Merge "Fix keyguard landscape layout on phones" into jb-mr1-dev 2012-10-03 20:30:10 -07:00
Amith Yamasani
203a2f464c Fix launching home when there are multiple launchers installed
Bug: 7283782

Since ResolverActivity now runs in the correct user, it doesn't need to explicitly
pass in the calling userId. In fact, for the Home case, since ActivityManager is
the one requesting resolution of Home activity, Resolver is running as user 0
instead of the current user.

Removing explicit calls based on the launchingUid fixes the problem.

Change-Id: I4676c155aafaa0dd5cefb1acefa0e7e9c1e20f25
2012-10-03 20:16:40 -07:00
Baligh Uddin
85201d3d92 Import translations. DO NOT MERGE
Change-Id: I50db6e8159487c9a725b224e3e2206791f58febd
Auto-generated-cl: translation import
2012-10-03 19:17:05 -07:00
Christopher Tate
1a2fac3eed Merge "Use myUserId() only in registerContentObserver()" into jb-mr1-dev 2012-10-03 18:54:49 -07:00
Adam Powell
ac2fc16373 Merge "Remove unneeded margin below action bar subtitles" into jb-mr1-dev 2012-10-03 18:50:10 -07:00
Jim Miller
ce3e948c5c Fix keyguard landscape layout on phones
This particular layout didn't have layout_height specified, which
is undefined.  However, the undefined behavior seems to have changed
on the platform to one where this layout no longer works.  Not
specifying layout_height causes the security area view to be 0 pixels
wide, effectively ignoring layout_weight.

Fixes bug 7283261

Change-Id: I0e3d156e9b2d7ef1492dec9791f0e241e8cd7fe6
2012-10-03 18:48:07 -07:00
Romain Guy
f7ee2a03c1 Merge "Fix rendering artifacts on tiled renderers Bug #7275145" into jb-mr1-dev 2012-10-03 18:47:35 -07:00
Dianne Hackborn
6fb7fd3a09 Merge "Fix issue #7267494, issue #7212347" into jb-mr1-dev 2012-10-03 18:45:37 -07:00
Adam Powell
17033bfa15 Remove unneeded margin below action bar subtitles
This just throws off alignment when the natural centering of this
layout will take care of things.

Bug 6369593

Change-Id: If0993091e0d47011f3bf5dd0b5a1fa649471f8e6
2012-10-03 18:31:08 -07:00
Romain Guy
dfab363807 Fix rendering artifacts on tiled renderers
Bug #7275145

This change fixes ViewRoot and adds extra debug information. It does
not solve the problem entirely. Another CL will.

Change-Id: I7e604ba38aad7f421769783dcbd998d6905ab2d9
2012-10-03 18:07:59 -07:00
Dianne Hackborn
c428aae642 Fix issue #7267494, issue #7212347
7267494 Calendar is not syncing
Check for whether a content provider is dead before returning
it.  This is kind-of a band-aid, but probably the right thing
to do; I'm just not sure exactly the full details of why this
problem is happening.  Hopefully this "fixes" it, though I don't
have a way to repro to tell.

7212347 System power off dialog is only visible to user 0
Make it visible.  Also turn on some battery debugging stuff and
clean it up so we can just keep it.

Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
2012-10-03 18:07:23 -07:00
Fabrice Di Meglio
33c36895a2 Merge "Fix bug #7282594 EditText does not allow to move the cursor when typing RTL text and if gravity is set to LEFT" into jb-mr1-dev 2012-10-03 17:43:08 -07:00
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
Fabrice Di Meglio
db24f0a73f Fix bug #7282594 EditText does not allow to move the cursor when typing RTL text and if gravity is set to LEFT
- fold LEFT/RIGHT into NORMAL/OPPOSITE cases

Change-Id: Idf14342ffed4840e7b4ea53cc42f1cde8f196a4c
2012-10-03 17:17:14 -07:00
Amith Yamasani
2e307a61a3 Merge "No breadcrumbs for single-pane preferences" into jb-mr1-dev 2012-10-03 17:13:24 -07:00
Elliott Hughes
e59ac5cb27 Fix Catalan ("ca") date formatting.
Bug: 7262477
Change-Id: I506972e214640f91d818c53c60d3c45d975a2f86
2012-10-03 16:54:51 -07:00
mike wakerly
2e7b11af55 Merge "NfcAdapterExtras: expose driver name." into jb-mr1-dev 2012-10-03 16:47:45 -07:00
Amith Yamasani
3ec7bac9a0 No breadcrumbs for single-pane preferences
Bug: 7274530
Change-Id: I6a4b6321a72ad38a757098ea470ac58d4294639b
2012-10-03 16:21:42 -07:00
Raph Levien
5a829cbf58 Merge "Fix for testPaintFlagsDrawFilter CTS test" into jb-mr1-dev 2012-10-03 15:58:36 -07:00
Raph Levien
e174ae210e Fix for testPaintFlagsDrawFilter CTS test
This fixes bug 6948776
android.graphics.cts.PaintFlagsDrawFilterTest#testPaintFlagsDrawFilter
failures on JO

When we moved the drawing of text decorations (underline, strikethrough)
from Skia to our own drawing (so we could take into account the metrics
computed by TextLayoutEngine), we just used the raw flags from the
paint, which ignored the overrides that a DrawFilter can effect.

The patch simply checks for the existence of a DrawFilter in the canvas,
and applies it to a copy of the paint where present. This will be one
extra paint copy where the filter exists, but that's expected to be rare
(other than running this CTS test, of course).

Change-Id: I664c478b73a3a1cc43599ee11bbc02c69b7a96c2
2012-10-03 15:26:47 -07:00
mike wakerly
f74df47fc9 NfcAdapterExtras: expose driver name.
Bug: 7276355
Change-Id: I65597f732c2ccb749f8fc5ef1793bacf5de8b592
2012-10-03 14:14:23 -07:00
Svetoslav Ganov
26884df75c Merge "Send LockPatternView accessibility announcements before callbacks" into jb-mr1-dev 2012-10-03 13:32:35 -07:00
alanv
e303c5c3eb Send LockPatternView accessibility announcements before callbacks
This allows the pattern's listener to optionally send accessibility
announcements that interrupt the defaults, rather than the view always
interrupting the listener.

Bug: 7256500
Change-Id: Ief2f5cc2fae76a3becc1321d14d46f97b3092215
2012-10-03 13:15:14 -07:00