77037 Commits

Author SHA1 Message Date
John Reck
2cd50c9d55 Merge "Don't long press if preventDefault is called" into jb-dev 2012-05-29 16:23:10 -07:00
John Reck
2dc3ffd31a Don't long press if preventDefault is called
Bug: 6554060

Change-Id: Iad263c78a0e1504dd10e9ef5b92505bca6991cbc
2012-05-29 16:02:23 -07:00
Christopher Tate
aefe4aa4d4 Merge "Prevent construction/use of invalid restore session proxies" into jb-dev 2012-05-29 15:52:24 -07:00
Dianne Hackborn
ae5811c714 Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev 2012-05-29 15:51:24 -07:00
Svetoslav Ganov
bb1b7cf66b Merge "Adding accessibility focusable attribute (hidden for now)." into jb-dev 2012-05-29 15:46:15 -07:00
Nick Pelly
82b3b1bce9 Merge "Make location providers upgradeable." into jb-dev 2012-05-29 15:28:00 -07:00
Svetoslav Ganov
f9817f7a3b Adding accessibility focusable attribute (hidden for now).
1. This attribute specifies whether a view can take accessibility
   focus. It has three values: 1) auto - the system determines
   based on whether the view is actionable and has actionable
   predecessor. Accessibility services can put accessibility focus
   on such a node at will; 2) yes ; this view always takes access
   focus; 3) no - the view cannot takes accessibility focus and
   accessibility services cannot put accessibility focus on it.

Change-Id: I2ebf4e7c75bf6b39e1742b6868b37ccdd4cc7d28
2012-05-29 15:24:22 -07:00
Eric Fischer
817a243c3b Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-29 14:28:56 -07:00
Jake Hamby
9d820eccfc Merge "Allow apps with SEND_SMS_NO_CONFIRMATION to bypass short code check." into jb-dev 2012-05-29 13:54:19 -07:00
Craig Mautner
de1ddd0f93 Merge "Better handle changing app transitions." into jb-dev 2012-05-29 13:53:06 -07:00
Dianne Hackborn
6ae8d18218 Fix (mostly) issue #5109947: Race condition between retrieving a...
...content provider and updating its oom adj

This introduces the concept of an "unstable" reference on a content
provider.  When holding such a reference (and no normal stable ref),
the content provider dying will not cause the client process to be
killed.

This is used in ContentResolver.query(), .openAssetFileDescriptor(),
and .openTypedAssetFileDescriptor() to first access the provider
with an unstable reference, and if at the point of calling into the
provider we find it is dead then acquiring a new stable reference
and doing the operation again.  Thus if the provider process dies
at any point until we get the result back, our own process will not
be killed and we can safely retry the operation.

Arguably there is still the potential for a race -- if somehow the
provider is killed way late by the OOM killer after the query or
open has returned -- but this should now be *extremely* unlikely.
We also continue to have the issue with the other calls, but these
are much less critical, and the same model can't be used there (we
wouldn't want to execute two insert operations for example).

The implementation of this required some significant changes to the
underlying plumbing of content providers, now keeping track of the
two different reference counts, and managing them appropriately.  To
facilitate this, the activity manager now has a formal connection
object for a client reference on a content provider, which hands to
the application when opening the provider.

These changes have allowed a lot of the code to be cleaned up and
subtle issues closed.  For example, when a process is crashing, we
now have a much better idea of the state of content provider clients
(olding a stable ref, unstable ref, or waiting for it to launch), so
that we can correctly handle each of these.

The client side code is also a fair amount cleaner, though in the
future there is more than should be done.  In particular, the two
ProviderClientRecord and ProviderRefCount classes should be combined
into one, part of which is exposed to the ContentResolver internal
API as a reference on a content provider with methods for updating
reference counts and such.  Some day we'll do that.

Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
2012-05-29 13:33:09 -07:00
Craig Mautner
1d961d46d6 Better handle changing app transitions.
When we are in the middle of an app transition and need to change to a
new one we were not ending the old one in a clean state. Also,
wallpapers were defaulting to the wrong animation in certain
situations.

Remove ':' style iterators.

Fixes bug 6486708.

Change-Id: Ied17e8410486020295db380ff68df5dad08bc5cc
2012-05-29 13:00:25 -07:00
Jim Miller
a073e57078 Fix 6398209: General animation improvements for swipe to search
This cleans up the animation for swipe to search from the navbar.  In particular:
1. Wait for initial animation to finish if gesture was too quick.
2. Better fade animation
3. Hide background and fade in when ring is selected
4. Smoother target and outer ring animation when switching between states.

Change-Id: I401197760cf9f06b6ff3e1cdb80bee86a03ef276
2012-05-29 12:49:23 -07:00
Eric Fischer
99218fe3c0 Import translations. DO NOT MERGE
Change-Id: I85d4f52df7eedc1ee7d01e2aeeb98df66b2eb292
2012-05-29 12:41:20 -07:00
Michael Jurka
a66c75a87e Merge "Fix bug where recents was getting preloaded unnecessarily" into jb-dev 2012-05-29 12:26:35 -07:00
Winson Chung
1ee0a7d44a Merge "Fixing typos related to portrait enums." into jb-dev 2012-05-29 12:19:10 -07:00
Andrew Flynn
15332efd2c Merge "Set phone/data signal icon ids to 0 in airplane mode" into jb-dev 2012-05-29 12:18:22 -07:00
Craig Mautner
1dee897469 Merge "Track animating apps up until animation starts." into jb-dev 2012-05-29 11:45:16 -07:00
Winson Chung
ba6be29fe0 Fixing typos related to portrait enums.
Change-Id: Ia2ca7aebec7c9adba093aec594429c9f01875448
2012-05-29 11:39:11 -07:00
Amith Yamasani
3dac02265e Merge "Show power menu on tablets." into jb-dev 2012-05-29 11:22:32 -07:00
Craig Mautner
06a94f710d Track animating apps up until animation starts.
ActivityStack sets the mNextAppTransition value before moving the apps
to their proper position. This makes the test for mNextAppTransition
being TRANSITION_UNSET incorrect. Better to just look for animating.

Fixes bug 6565418.

Change-Id: I4651b7d3678e46fc712a8e901992fb01b94c415e
2012-05-29 10:46:00 -07:00
Michael Jurka
48c22c84c0 Merge "Adding debugging code for bug where recycled views still had parent" into jb-dev 2012-05-29 08:41:49 -07:00
Michael Jurka
4004033f87 Fix bug where recents was getting preloaded unnecessarily
Change-Id: I7d2254da009113f81fae0a785583b1c7fd6ad020
2012-05-29 08:25:32 -07:00
Danielle Millett
45973d6d19 Merge "Moved setting the flag to suppress face unlock during a phone call" into jb-dev 2012-05-29 06:24:05 -07:00
Nick Pelly
00355d5a59 Make location providers upgradeable.
Use config_netowrkLocationProviderPackageName and
config_geocodeProviderPackageName as intial packages. If another
package exists (or is later installed) that also implements a
provider, and has the same signatures as the original providers,
and has a hgiher version number, then use that instead.

The old code used a funky fix of package name substring checks
and service checks that was broken and not upgradeable.

Bug: 6499445
Change-Id: Ic58f09cf85d31d9abf47707093e22f31dda25cf0
2012-05-29 13:36:46 +02:00
Michael Jurka
b2a5d9e546 Adding debugging code for bug where recycled views still had parent
Bug: 6499508
Change-Id: Iaf95ee6a0836c5f1e863d6a5b969e032d36a2b27
2012-05-29 03:44:18 -07:00
Bryan Mawhinney
c3a5cf9aab Actually set the video scaling mode :-)
Change-Id: Ia3e77b68a07651861e9be268ab77cac808b3be79
2012-05-27 17:42:46 +01:00
Romain Guy
bbedfa0036 Merge "Tale of status bar on crespo, part 3 Bug #6541079" into jb-dev 2012-05-25 19:21:49 -07:00
Jeff Brown
d4cf7e7b06 Merge "Don't ANR on hover, scroll or if a window goes away." into jb-dev 2012-05-25 18:38:24 -07:00
Chet Haase
a27551dde8 Merge "Make Google search panel go away when receiving phone call" into jb-dev 2012-05-25 15:49:47 -07:00
John Reck
7cbe645730 Merge "Copy over the scroll position for the scrolling layer" into jb-dev 2012-05-25 15:49:15 -07:00
Amith Yamasani
7ee994d728 Show power menu on tablets.
Bug: 6524432

Show power menu on all devices by default. Specific devices will be disabled in overlays.

Handle airplane mode changes differently when the telephony states are not reliable.
Use simple toggle for silent mode when there's no vibrator.

Change-Id: Ic5ef521eee19cd300d909250203ff204f3a1ae1e
2012-05-25 15:18:21 -07:00
Jake Hamby
8367627f3a Allow apps with SEND_SMS_NO_CONFIRMATION to bypass short code check.
Change SMSDispatcher to bypass SMS premium short code confirmation
dialog when caller has "android.permission.SEND_SMS_NO_CONFIRMATION"
permission (instead of checking package name against hardcoded list).

This permission is only available to system apps or those signed with
the same certificates as those in the system image.

Bug: 6502817
Change-Id: I6098d448892cc5e842ba6dc10cf494295e7226af
2012-05-25 15:16:33 -07:00
Irfan Sheriff
e2417b7a6e Merge "Retain device during connecting state" into jb-dev 2012-05-25 15:13:27 -07:00
Brandon Keely
3ef8dd2b39 Merge "For 720dp devices, less motion during task-to-task transition." into jb-dev 2012-05-25 14:38:47 -07:00
Eric Fischer
dfaadf9dae Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-25 14:24:44 -07:00
Eric Fischer
aed9b810a5 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-25 14:14:55 -07:00
Christopher Tate
f5491fc1b6 Prevent construction/use of invalid restore session proxies
Possible (rare) null return was not being handled.  Fixes
bug 6554812.

Change-Id: I470e916f2156ff7ed2947d6ce21ef2816fc7f97d
2012-05-25 14:14:49 -07:00
John Reck
ec1b71adc6 Copy over the scroll position for the scrolling layer
Bug: 6557664

Change-Id: I9b1257ee0a4d75f5b445e9f72455d51e4add1c77
2012-05-25 14:02:26 -07:00
Fabrice Di Meglio
d5f3798d6b Merge "Fix bug #6558264 Recent apps launcher is not getting dismissed after launching Google app using long press of Home key" into jb-dev 2012-05-25 13:49:39 -07:00
Chet Haase
ff20b0c0ef Make Google search panel go away when receiving phone call
Issue #6557847 "Google" launcher icon stuck in ring slider after getting incoming call

Change-Id: If77f66fd241af7fbfe6228498b07fd1cfcef36bd
2012-05-25 13:38:10 -07:00
Eric Fischer
b80d834ca0 Import translations. DO NOT MERGE
Change-Id: I893c25a4fd206d9b0c018c44e4441ef36d12eed0
2012-05-25 13:32:45 -07:00
Fabrice Di Meglio
4d0d38b9f4 Fix bug #6558264 Recent apps launcher is not getting dismissed after launching Google app using long press of Home key
- close Recent Apps before launching the Assistant

Change-Id: I823dc254252fb3c1fde0a3adcfb895e368c7d77e
2012-05-25 13:14:02 -07:00
Eric Fischer
02f03668f8 Import translations. DO NOT MERGE
Change-Id: I3528164ed7d96f571cf31df0715100da5120b082
2012-05-25 13:11:43 -07:00
Irfan Sheriff
9cb980422a Retain device during connecting state
With join taking much longer, sometimes device can be lost from supplicant.
Retain device to complete connection.

Also, clear up stale peer data after find stops during inactive state.

Bug: 6557725
Change-Id: I15b92e50a837481f974034b1ea7b32c8abee969e
2012-05-25 12:52:34 -07:00
Gilles Debunne
18afc622c3 Merge "Fix for IOOB in SearchView" into jb-dev 2012-05-25 12:43:39 -07:00
Romain Guy
8900e63194 Tale of status bar on crespo, part 3
Bug #6541079

The vanished shall not be forgotten.

Change-Id: If01a53d8c203ef82e54d0b440063a8dbebe7b14a
2012-05-25 12:08:39 -07:00
Romain Guy
bc1387b11c Merge "Tale of status bar on crespo, part 2 Bug #6541079" into jb-dev 2012-05-25 11:43:13 -07:00
Romain Guy
648342f1f2 Tale of status bar on crespo, part 2
Bug #6541079

In which a flood destroys flatland.

Change-Id: Ifd1913b645c08531b221b3e010c133f14bcfb0c2
2012-05-25 10:44:45 -07:00
Irfan Sheriff
da87c7c1ee Merge "Fix delayed wifi shutdown" into jb-dev 2012-05-25 10:31:46 -07:00