152156 Commits

Author SHA1 Message Date
Svetoslav
4c6a4ce03b Some accessibility events wrongly filtered out (regression).
We added new APIs to allow accessibility services to query all
windows a user can touch. Sometimes the window state change
event arrives before the window manager sent over the new window
state which leads to a case that the app gets the event and
asks for the window and the window is not there. To address this
if we do not have the window, we hold on to the event and
fire it as soon as the window arrives. This logic is correct
except we were wrongly expecting that the window should have
input focus.

bug:17464645

Change-Id: I1ef50ebddeb4416a6c0776b096bb16aee703700c
2014-09-18 01:40:27 +00:00
Craig Mautner
0cf001db60 Merge "Protect from null Intent" into lmp-dev 2014-09-18 01:36:09 +00:00
Nancy Chen
513c892135 Replace get*PhoneAccounts* public API methods with new method (1/3)
Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme
because a third party app should not be able to see all phone accounts
registered. Replace instead with getPhoneAccountsForPackage(Context)
which will only return the phone accounts registered by a particular package.

Bug: 17510811
Change-Id: I8465ef4f13b62fe83f51835cfffe1656298041a8
2014-09-17 18:34:13 -07:00
Adam Powell
cc340899cb Merge "Fix UserManager#isUserAGoat" into lmp-dev 2014-09-18 01:27:40 +00:00
Alan Viverette
a9ddb8dc23 Use action bar theme for action modes, fix ViewStub inflation theme
BUG: 17262483
BUG: 17513621
Change-Id: I74764570a11da162a224e94978e21e52d17e2e84
2014-09-17 18:14:32 -07:00
Adam Powell
988ae30ff7 Fix UserManager#isUserAGoat
Correctly detect if the user is a goat.

Change-Id: I78577dd7ec8c3685434ee03560010a6ea4db127f
2014-09-17 18:12:13 -07:00
Tsuwei Chen
87b544bf6e am 3de1584d: Merge "Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, no
* commit '3de1584d53ca56732863283241bdcd944ea5a1e9':
  Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence.
2014-09-18 01:10:42 +00:00
Tsuwei Chen
b610b18a8a Merge "Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence." into lmp-dev 2014-09-18 01:00:50 +00:00
Dirk Dougherty
6357cd095a am 496cfbf7: Doc change: Add IAB v2 deprecation notice.
* commit '496cfbf7a83e4c0f66ece27f36c2dc3d31994ff1':
  Doc change: Add IAB v2 deprecation notice.
2014-09-18 01:00:09 +00:00
Craig Mautner
47b20ba8f6 Protect from null Intent
No bad intentions.

Fixes bug 17482657.

Change-Id: I0234787eb5e39cbdb548fb219341635cddd8b5d9
2014-09-17 17:23:44 -07:00
Robert Greenwalt
a35bd707e0 am 50d23752: Merge "Use unified Tethering Permission Check" into lmp-dev
* commit '50d2375281ac0743daf55680611b3387cc55fb2c':
  Use unified Tethering Permission Check
2014-09-18 00:11:55 +00:00
Robert Greenwalt
f3b47e95b1 Merge "Use unified Tethering Permission Check" into lmp-dev 2014-09-18 00:02:16 +00:00
John Reck
30a38af321 am fd340229: Merge "Special case EGL_BAD_SURFACE" into lmp-dev
* commit 'fd3402298d984acab830815e4a732c1195a814dd':
  Special case EGL_BAD_SURFACE
2014-09-17 23:38:25 +00:00
John Reck
f16b4940e6 Merge "Special case EGL_BAD_SURFACE" into lmp-dev 2014-09-17 23:30:44 +00:00
Robert Greenwalt
edb47668f0 Use unified Tethering Permission Check
The BT and Wifi mechanisms for enabling Tethering did their own
permission checks.  This set of changes unifies the check into
a ConnectivityManager function so they can be kept in sync.

bug:17435527
Change-Id: I8c157a5acf56ffbddd349cb6a45160ae7be8541b
2014-09-17 16:18:12 -07:00
Dianne Hackborn
31cd7f445b am f4fe13eb: Merge "Fix issue #17536024: The am start\'s wait option doesn\'t..." into lmp-dev
* commit 'f4fe13ebeee34a6e0ebcdd6eea52437b1604e3eb':
  Fix issue #17536024: The am start's wait option doesn't...
2014-09-17 23:14:03 +00:00
Svetoslav
9af14fbc3b am 0bb6e05d: Page content sometimes missing in preview when scrolling.
* commit '0bb6e05dcd5e809ca25ac79fc4d81c4c5957a8e2':
  Page content sometimes missing in preview when scrolling.
2014-09-17 23:14:00 +00:00
John Reck
2cdbc7d228 Special case EGL_BAD_SURFACE
Bug: 17516789

Change-Id: I3dcb10360c2aef6326f7dbbff6815866d4c143b6
2014-09-17 16:09:57 -07:00
Dianne Hackborn
88924b62fc Merge "Fix issue #17536024: The am start's wait option doesn't..." into lmp-dev 2014-09-17 23:07:17 +00:00
Tsuwei Chen
462bcd8194 Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key.
Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate
the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement
on GPS features can be specified properly without messing up with the real capability. This will satisfy
VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence.

Bug: 17423585
Bug: 17288144

Change-Id: I71173722d4b12bfc17562f7b5444d22b01ff4590
2014-09-17 16:04:28 -07:00
Svetoslav
0d2d9637ed Page content sometimes missing in preview when scrolling.
Removed the restriction for the page content providers to
be singletons as the RecyclerView may hold on views with
providers and ask us to bind other views for the same page.
Note that the views that RecyclerView is holding will be
soon rebound or recycled just they are not at the time we
bind other views for the same position. We were guarding
against this but caused some pages not appearing sometimes
on scrolling. Also now keeping the media size and magins
of recycled page view (will be updated if needed on
rebinding) or avoid changes of the background to null as
setting it to not null later causes an undesired layout pass.

bug:17537922

Change-Id: If029f6c413e15d4f5c1ba1ac5e4d52ad2cad5904
2014-09-17 23:03:19 +00:00
Dirk Dougherty
496cfbf7a8 Doc change: Add IAB v2 deprecation notice.
Change-Id: Ide22c4aa8c56fdd83cb6ce2989eb8c449c55c7c1

Conflicts:
	docs/html/google/play/billing/index.jd
2014-09-17 15:56:43 -07:00
Craig Mautner
6025770e6b Don't remove active stacks from window manager
Background:

In ag/406771 we stopped deleting empty stacks in activity manager
and window manager. This fixed a problem where dormant tasks were
being added back to stacks later.

In ag/476888 we introduced a callback to inform the ActivityView
holder that the embedded task was complete. This callback was made
from the new method ActivityContainer.onTaskListEmpty().

In ag/483035 onTaskListEmpty() was expanded to detach the stack of the
ActivityView and also removed the stack from window manager. There
was a mistake in that CL that causes it to remove any non-home stacks,
not just ones in ActivityViews.

That mistake left us with an empty stack in activity manager and no
corresponding stack in window manager. As a result, when trying to
bring back a task that used to be in this stack window manager threw
up an exception.

This fix limits the stacks detached by onTaskListEmpty() to those
on VirtualDisplays.

Fixes bug 17469145.

Change-Id: I85a4452e8e85625e657d88e4cb9f366fd4026441
2014-09-17 15:53:28 -07:00
George Mount
dc5bf6a7f0 Default to using hardware layer during fade transition.
Bug 17499864

When hasOverlappingRendering() is true, a layer is used to
to fade views because performance can be much worse then.
When hasOverlappingRendering() is false, the performance
is not hurt and a layer is not used.

Change-Id: If3fb1c23ffc8d0bef85c9d16df6c26ff4bbd49ac
2014-09-17 15:41:18 -07:00
vandwalle
2e09c6110c am 47dfc212: Merge "fix configure 5GHz RSSI thresholds, Bug:17514073" into lmp-dev
* commit '47dfc2129b5fc038e290ea524b933a5307613883':
  fix configure 5GHz RSSI thresholds, Bug:17514073
2014-09-17 22:24:47 +00:00
Dianne Hackborn
ed60147b01 am d04770e1: Merge "Work on issue #17506095: Add ability to lock IME for specified apps" into lmp-dev
* commit 'd04770e15f4d236ba8431733fcca79b146aa6e7a':
  Work on issue #17506095: Add ability to lock IME for specified apps
2014-09-17 22:19:10 +00:00
vandwalle
a434bf303a Merge "fix configure 5GHz RSSI thresholds, Bug:17514073" into lmp-dev 2014-09-17 22:17:49 +00:00
Shri Borde
c23d12c278 Unhide SUB_ID column from Mms, Carriers and PendingMessages
Change-Id: Iaf651f96bdd52b71b268eb37ae66a285cbb8f140
2014-09-17 15:14:35 -07:00
Dianne Hackborn
dd63245097 Merge "Work on issue #17506095: Add ability to lock IME for specified apps" into lmp-dev 2014-09-17 22:09:32 +00:00
Michael Wright
5e063d50f3 am 803029bb: Merge "Remove Rhodi keylayout" into lmp-dev
* commit '803029bb3c7f4972bee17fc6571dfa261e229cbb':
  Remove Rhodi keylayout
2014-09-17 21:58:09 +00:00
vandwalle
f0807353aa fix configure 5GHz RSSI thresholds, Bug:17514073
Change-Id: I5cdecabdfc7a085d4b277096d05cc215f7db4104
2014-09-17 14:55:10 -07:00
Michael Wright
77ebdcbaaa Merge "Remove Rhodi keylayout" into lmp-dev 2014-09-17 21:44:57 +00:00
John Reck
f98dc4f2e6 am 8523ad90: Merge "Change default fbo cache size to 0" into lmp-dev
* commit '8523ad90bbbdee595ca302e775f0cf3ff8c41424':
  Change default fbo cache size to 0
2014-09-17 21:42:47 +00:00
John Reck
5083943ff8 Merge "Change default fbo cache size to 0" into lmp-dev 2014-09-17 21:35:02 +00:00
David Christie
a1a97a4c8d am b2e91428: Merge "Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515" into lmp-dev
* commit 'b2e914287fc6a7cc4894ea67ec527830c53f0039':
  Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515
2014-09-17 21:31:07 +00:00
David Christie
61ee1eda0a Merge "Add @SystemApi to LocationManager methods used by GmsCore (with reflection). Bug: 17515515" into lmp-dev 2014-09-17 21:20:27 +00:00
Jeff Brown
7fc8e357a4 Create an Application object for the system process.
Change-Id: Icd959fd859a7a556fbcbc519ff8646e1bf95fedc
2014-09-17 14:19:31 -07:00
John Reck
e9cd97ee88 Change default fbo cache size to 0
Bug: 17479800

 FBO cache is very expensive and no longer necessary, disable
 it by just setting size to 0.

Change-Id: I664616f262c8339919e1d20baaafa5de2b628d7e
2014-09-17 14:09:26 -07:00
Yigit Boyar
27abd85f5c am 7fa36f26: Merge "Handle action mode changes properly for actionbar tabs" into lmp-dev
* commit '7fa36f26c6705346e41f81f6d3f2f8a22dd3b42c':
  Handle action mode changes properly for actionbar tabs
2014-09-17 21:08:23 +00:00
Yigit Boyar
fd20f196b1 Merge "Handle action mode changes properly for actionbar tabs" into lmp-dev 2014-09-17 21:00:40 +00:00
Sandeep Siddhartha
329489abdd am e80c6f17: Merge "Fix issues with multiple languages and multi-users" into lmp-dev
* commit 'e80c6f17079155855aa11eae47b619af0ebb591c':
  Fix issues with multiple languages and multi-users
2014-09-17 20:21:05 +00:00
Dianne Hackborn
bb8aa5a1e9 Work on issue #17506095: Add ability to lock IME for specified apps
Add a new configuration to speciify apps that partcipate in the
feature.

Change-Id: I8f5139b5ea09e758bff4472b2294df8becc74614
2014-09-17 13:20:38 -07:00
Sandeep Siddhartha
80ea66b102 Merge "Fix issues with multiple languages and multi-users" into lmp-dev 2014-09-17 20:06:43 +00:00
Dianne Hackborn
6cfbb71890 Fix issue #17536024: The am start's wait option doesn't...
...give time in some cases

This switch to multiple stacks broke the check to determine if it
should actually wait for a new activity to be shown.  The new check
now also requires that the top activity be resumed, which means
we may get some false positives where we decide to wait and shouldn't,
but that is better than consistently not deciding to wait in some
cases when we should.  (And we will always finish waiting then next
time something becomes visible).

Also add another time, which is how long it took from the startActivity
call to return with the result.  And fix when we decide to report that
we are done so that, in the case where we are bringing an existing
activity to the foreground, we don't wait until its animation is complete.

Change-Id: Id38ca0070f04e7bf8c73e131fb055808553a0e2f
2014-09-17 12:47:35 -07:00
Alan Viverette
f4a130fb62 am f0ea4ce6: Merge "Revert body font size to 14sp, fix ActionBar menu text color" into lmp-dev
* commit 'f0ea4ce63510be154cbf737a3ed60deb0cbd5289':
  Revert body font size to 14sp, fix ActionBar menu text color
2014-09-17 19:27:32 +00:00
ztenghui
842731dfaf am b20b6f24: Merge "Fix badge asset alpha issue" into lmp-dev
* commit 'b20b6f24c0b7426601d1ea62fc2013b6690ff05c':
  Fix badge asset alpha issue
2014-09-17 19:27:28 +00:00
Alan Viverette
ae1990f406 Merge "Revert body font size to 14sp, fix ActionBar menu text color" into lmp-dev 2014-09-17 19:20:33 +00:00
Alan Viverette
59b2d80f88 Revert body font size to 14sp, fix ActionBar menu text color
BUG: 17549070
BUG: 17538527
Change-Id: Id4d412ae3c035c6f76ae10569658a0d97e36a0e8
2014-09-17 12:19:56 -07:00
ztenghui
d25e864dde Merge "Fix badge asset alpha issue" into lmp-dev 2014-09-17 19:17:25 +00:00
Jeff Sharkey
9213ab323b am bfd9a30f: Merge "NetworkStats always needs arrays." into lmp-dev
* commit 'bfd9a30f528dff00ae925a0e1f0ec18f669b3f1b':
  NetworkStats always needs arrays.
2014-09-17 19:12:05 +00:00