25023 Commits

Author SHA1 Message Date
Romain Guy
fe1aafe4ac Merge "Prevent crash in View.createSnapshot if getResources() returns null Bug #5260241" 2011-09-06 15:03:06 -07:00
Romain Guy
c529d8d8c7 Prevent crash in View.createSnapshot if getResources() returns null
Bug #5260241

Change-Id: I90b6d5a8961a6b7b50603a9f59a6e39093646bd4
2011-09-06 15:01:39 -07:00
Luca Zanolin
2346e0117d Fix "out of bound exception" when the span has prefix.
Change the behavior of the highlight marking the "suggested text" and not the differences.

Bug: 5252699
Change-Id: I4c7e9fc9bac81da8b5f643990b86a336363d7968
2011-09-06 22:56:59 +01:00
Eric Fischer
2cc2d984b1 Merge "Fix Bulgarian date format string order and punctuation." 2011-09-06 14:24:06 -07:00
Chet Haase
c861bd778b Clarify AnimationSet docs and behavior
Two problems fixed here:
- The docs for AnimationSet were too vague and incorrect: some properties of
Animation (such as duration) are pushed from the AnimationSet down to its children, as
the current docs say. Some other properties (such as repeatCount) are ignored. Other
properties (such as startOffset) apply to the Set itself, but not to the children.
Fix: clarify this behavior for each of the properties.
- The behavior for XML resources was just busted. We would set the various properties
(e.g., duration) and then forget that we did so, since we reset the flags that marked
their existence after we loaded the resource. In fact, the duration property was
always being reset to 0, regardless of what it was set to in the xml resource.
Fix: Make it work they way it always should have: respect the values read from the XML
resource and make them behave the same way they do when set at runtime.

Change-Id: I07d68876d2259105dc5a359501d5c656ecfaa8e5
2011-09-06 14:14:29 -07:00
Svetoslav Ganov
2f8dbf5722 Merge "Increasing the tap radius for the handle in MultiWaveView to improve accessibility" 2011-09-06 14:08:48 -07:00
Joe Fernandez
8ef6970cf5 docs: adding warning to managedQuery() JavaDoc about cursor.close()
Change-Id: I31ba29f1781f7d83342582e25cf6aad0c72aa103
2011-09-06 13:51:02 -07:00
Eric Fischer
9f3000e96e Fix Bulgarian date format string order and punctuation.
Change-Id: I01c038f06f621c73a5d00c2cd842afd424e74da0
2011-09-06 13:45:46 -07:00
Dianne Hackborn
1ed7a407fa Merge "Some more preloaded drawables." 2011-09-06 13:22:06 -07:00
Jaikumar Ganesh
81e23acb0b Add Bluetooth intents to protected broadcasts.
Change-Id: I3734a4ff7d964c64ce39ec3f897d3799aa9653f7
2011-09-06 13:07:17 -07:00
Svetoslav Ganov
6436876156 Merge "AbsListView does not populate accessibility events correctly." 2011-09-06 12:52:06 -07:00
Ben Komalo
444eca2329 Expose getting encryptstate through IMountService
- this really just calls cryptfs cryptocomplete
- needed so that UI logic can present a factory reset option if
encryption screwed up

Bug: 3384231
Change-Id: I553de87f0d03a65851030c9c5266e85866d30fa6
2011-09-06 12:48:53 -07:00
Irfan Sheriff
8b55e926f1 Merge "Add notification when p2p is enabled" 2011-09-06 12:10:26 -07:00
Eric Fischer
8160270cfb Merge "Import revised translations." 2011-09-06 12:02:13 -07:00
Irfan Sheriff
daf57e5ff4 Add notification when p2p is enabled
Bug: 5262278
Change-Id: I82890323c4e4e2952b4c9c9bc503856095d90c21
2011-09-06 11:51:30 -07:00
Fabrice Di Meglio
be724dbc45 Merge "Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it" 2011-09-06 11:13:40 -07:00
Fabrice Di Meglio
e3bf88da23 Fix bug #5262565 Need to remove CharCount TextDirectionHeuristics
- update unit tests too

Change-Id: I7c518f58a9f17cb679bc3913bdd38243f7ad2195
2011-09-06 11:08:45 -07:00
Dianne Hackborn
9b44aaefc0 Some more preloaded drawables.
More to come.

Change-Id: I28393c6e52553e960d3a765ba793cfdbf36460ff
2011-09-06 10:58:30 -07:00
Romain Guy
d3462ad713 Merge "Prevent crash when using <em> or <strong> in spanned strings Bug #5258853" 2011-09-06 10:55:53 -07:00
Romain Guy
dd808c0bd4 Prevent crash when using <em> or <strong> in spanned strings
Bug #5258853

Change-Id: Ifde1efe9ba3b44cfa0be55d51b2c9696cbe096f5
2011-09-06 10:54:46 -07:00
Chris Craik
e4dbe88b19 Merge "Notify native that scrolling has stopped correctly" 2011-09-06 10:03:25 -07:00
Svetoslav Ganov
aa56534722 AbsListView does not populate accessibility events correctly.
The toIndex of accessibility events fired from a AbsListView
is exclusive but should be inclusive i.e. it was reported one
more that it has to be.

bug:5256286

Change-Id: I496959fdfb6760b0c74899730c4cc558e89234a6
2011-09-05 16:41:51 -07:00
Svetoslav Ganov
66b191dad0 Increasing the tap radius for the handle in MultiWaveView to improve accessibility
bug:5253968

Change-Id: Ibe5a3a2453db1bbeaf8e818430685b48460ab06c
2011-09-05 14:26:26 -07:00
Ken Wakasa
05dbb65dfa Two line item for the IME switcher dialog.
bug: 5098770
Change-Id: I2b955973e7f223d8c98d8dac6aaa657a7a31b555
2011-09-06 00:07:03 +09:00
satok
dbfba8560d Add a function to check auxiliary ime.
Change-Id: Ibda3d0a11c7dd77aa1304d34fc858bb7d941c626
2011-09-05 19:19:12 +09:00
Jim Miller
3d7467bd78 Merge "Fix 5185505: Update DevicePolicyManager to support weak biometric security." 2011-09-02 18:54:53 -07:00
Chris Craik
e2f3aee9d5 Notify native that scrolling has stopped correctly
bug:5255022
bug:5218838

When the view starts scrolling, we tell native so it can block updates until the
view stops scrolling. This change fixes an issue where wouldn't tell native that
we stopped scrolling because the view didn't have room to move.

Change-Id: I5f2eec31493570937f7b8b2992a85283de06fb60
2011-09-02 18:47:19 -07:00
Fabrice Di Meglio
34d2eba560 Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it
Part 2

- make selection handles aware of the run direction

Change-Id: Idf41036de53d8968e7ae27eb87aea09e86bcd652
2011-09-02 18:03:21 -07:00
Jim Miller
3e5d3fd7e1 Fix 5185505: Update DevicePolicyManager to support weak biometric security.
Change-Id: If0fa49908a10d8057b9398112d47eb968cc77060
2011-09-02 17:30:35 -07:00
Christopher Tate
8e294d4557 Fix backup-agent timeouts
Away in the misty span of very-long-ago, it was suggested that spinning
a separate thread to run the backup process was wasteful, and that it
could just run it inline on the dedicated HandlerThread that the
backup manager uses for its own operations.  That was indeed true,
except that the timeout management was also using delayed messages
to that handler.  You see where this is going: timeouts were never
actually being processed, with the effect that a badly-behaving
app's backup agent could lock up the entire backup / restore system
until the device was rebooted.

This is bad.

Backup operations are now driven as an asynchronous state machine:
each step (init, call one agent to obtain data, send resulting
data to the transport, finalize the backup) is handled as a formal
state transition on-looper.  No synchronous wait-for-completion
or -timeout is performed on any thread.

As an additional effect this greatly tightens up the serialization
and locking semantics.  We no longer have to worry about an in-
flight operation involving a standalone thread spinning off on
its own; everything is on the HandlerThread and can be coherently
manipulated from that perspective.

Along the way, this CL tightens up the per-agent error handling
logic.  Previously a single failed agent would abort the entire
backup process, tantamount to a transport-level failure.  This could
mean that the aforesaid badly-behaving app's agent could in effect
starve out other apps whose agents were routinely showing up later
in the queue.  There's some nondeterminism involved, but in practice
it could and did happen.  Furthermore, the failure case would
reschedule *immediately* in this case, because the transport itself
would see that all is well and sure, why not run a backup soon?
This, as you might imagine, causes battery-life issues.

Now we note that the single agent has failed, mark it for a future
repeat attempt, and process the rest of the queue normally, pretending
success at the transport level even though we didn't actually send
any data for that app.  This means that (a) we now finish running
backups for everything in the queue, (b) reschedule backups only for
those apps whose agents individually failed during this run, and
(c) perform the retry after the normal interval [typically on the
order of an hour] rather than immediately.

NOTE: this CL does not retool the restore code path, just backup.
Restore is similarly vulnerable to misbehaving apps, though, so a
future CL will address that bug vector.

Addresses bug 5074923

Change-Id: I67e3f8d06f322607881eaa4093de6d675b85ff2c
2011-09-02 17:21:09 -07:00
Dianne Hackborn
6b0c11da5a Merge "Fix issue #5150899: Call activity takes 15MB we never get back." 2011-09-02 17:18:32 -07:00
Adam Powell
a59e3146b7 Merge "Fix bug 5201420 - Appease the monkeys" 2011-09-02 17:01:28 -07:00
Adam Powell
e1bf486846 Fix bug 5201420 - Appease the monkeys
Make ListView.onFocusChanged more tolerant of missing adapters.

Change-Id: Icae1cfd02fe369d3fd0e3c6531adb973f44f3036
2011-09-02 16:56:57 -07:00
Chet Haase
44671725bf Merge "Fix artifact with LayoutTransitions on disappearing window." 2011-09-02 16:52:03 -07:00
Adam Powell
d857837df2 Merge "Fix bug 5231904 - Fix wobbly progress spinners" 2011-09-02 16:48:55 -07:00
Adam Powell
a1b92c5e8b Fix bug 5231904 - Fix wobbly progress spinners
Make ProgressBar maintain aspect ratio on indeterminate progress drawables.

Make RotateDrawable tolerate left/top bounds != 0.

Change-Id: Iee03030caa98f72a8745f1ae3fb0de108ff663d4
2011-09-02 16:37:41 -07:00
Chet Haase
3c4ce72c4d Fix artifact with LayoutTransitions on disappearing window.
Logic in performTraversals() starts a transition running at the
proper time. But when a view's parent window goes away, this transition
may not start at that time because drawing gets canceled. But the
transition still hung off of the ViewRoot, waiting until some later
drawing operation to kick it off. This resulted in some weird animations
like the Recents panel appearing and having a single item animate off of it.

The fix is to delete pending transitions when drawing is skipped.

Change-Id: I3ab7702c16e069644a163424f977350743e2cecc
2011-09-02 16:10:43 -07:00
Eric Laurent
929827b819 Merge "Fix issue 5252593: any app can restart the runtime" 2011-09-02 16:05:03 -07:00
Eric Laurent
dca56b9432 Fix issue 5252593: any app can restart the runtime
Replace null device address string by empty sting.

Change-Id: I285c35f3345334e6d2190493b1a8a5aca1a361a4
2011-09-02 15:59:50 -07:00
Jeff Sharkey
890aaea2fb Merge "Show statusbar clock based on lockscreen status." 2011-09-02 15:07:19 -07:00
Eric Fischer
5820aeee0b Import revised translations.
Change-Id: Iac73006cfaf846d210855496f6732cbdc6ad0de8
2011-09-02 14:44:12 -07:00
Gilles Debunne
572527f2c3 Merge "Remove the suggestion underline when the TextView loses focus." 2011-09-02 13:54:48 -07:00
Gilles Debunne
a41bc33855 Merge "Popup windows positions are updated when a TextView is scrolled" 2011-09-02 13:24:20 -07:00
Gilles Debunne
f3d78eac0f Merge "Added an add to dictionary option in suggestions for misspelled words" 2011-09-02 13:19:24 -07:00
Gilles Debunne
26b5cf40b1 Merge "Fixes around text selection" 2011-09-02 13:17:44 -07:00
Gilles Debunne
1737fcd689 Merge "Fix for NPE in Switch" 2011-09-02 13:17:13 -07:00
Martijn Coenen
0c8d57d124 Merge "Fix Activity ref-leak in NFC dispatch API." 2011-09-02 12:50:27 -07:00
Dianne Hackborn
5d927c2d8e Fix issue #5150899: Call activity takes 15MB we never get back.
Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
2011-09-02 12:22:18 -07:00
Luca Zanolin
fe5e9834a3 Remove the suggestion underline when the TextView loses focus.
Only the easy correction (i.e., voice ime corrections) will lose the underline, while the misspelled span will not.

Change-Id: If96c17473dd70c99b808739ddde800cc93551e2a
2011-09-02 19:41:42 +01:00
Gilles Debunne
70a6312f09 Fixes around text selection
Text selection mode was started by two consecutive taps inside a
field with selectAllOnFocus.

ArrowKeyMovementMethod does not respect the possible cancelLongPress and handles up events.
As a result a scroll that happens to end up at its initial position will be considered a tap
and will move the cursor.
This is however not considered as a tap in TextView and a possible selection mode would not
be stopped in that case.
Fixed by making ArrowKeyMovementMethod aware of the cancel that happened in Touch.

Change-Id: I07372b703f250e1edc7ee0665318ce30441b9187
2011-09-02 11:26:46 -07:00