222466 Commits

Author SHA1 Message Date
Nicolas Geoffray
cdf1dfff8f Update framework code after new ART options.
Change-Id: I852a5975701653fe7e0cdd02e3c0b30a2b0b0b59
2015-11-19 14:31:23 +00:00
Julia Reynolds
bb9bfc9713 Merge "Remove 'peekable' preference." 2015-11-19 13:58:25 +00:00
Yohei Yukawa
e39d4edca7 Track by which client the last focused window was reported.
To diagnose race conditions like issue #25373872, we want to track
which input method client corresponds to IMMS#mCurFocusedWindow.

Note that IMMS#mCurClient does not always correspond to
IMMS#mCurFocusedWindow, because input method clients can report the
window focus gain only, without requesting to be bound to IME.

Bug: 25373872
Change-Id: Iad121669c0f3db4461245dc80ff3fdee469abb79
2015-11-19 03:38:49 -08:00
Daichi Hirono
6b5e215a10 Merge "Don't close database when all devices have been detached." 2015-11-19 06:46:40 +00:00
Vineeta Srivastava
cb948af246 Merge "Fix MVNO hotspot bug for Europe" into mnc-dr1.5-dev
am: 013c7daedd

* commit '013c7daedd6be8a6a90b8c5e34de70be4144e746':
  Fix MVNO hotspot bug for Europe
2015-11-19 05:50:36 +00:00
Daichi Hirono
e1d57710fb Don't close database when all devices have been detached.
ContentProvider is a singleton of the process. So it may live longer
than Service. We could not close database when the service is destroyed.

BUG=25730042

Change-Id: I591250c1a1e7c5705eb2585c71cac2598c0c0fb9
2015-11-19 14:16:42 +09:00
Andreas Gampe
57db2c0dc6 resolve merge conflicts of e3ad4409a6 to master.
Change-Id: Idc19d27ee359e5434d55d9a29ecdb4b1e30cbfe1
2015-11-18 20:52:39 -08:00
Yohei Yukawa
072b1b5183 Clear IMMS#mCurClient when it is dead.
Suppose the following case:
  1. Launch an activity.
  2. Focus in an EditText on the activity.  IME is shown up.
  3. Kill the activity process in a not graceful way, e.g.,
     'adb shell kill'

After step 3, IMMS#removeClient(client) is immediately called back from
com.android.server.wm.Session, which is good, but we forgot to clear
IMMS#mCurClient to null.

Basically not clearing IMMS#mCurClient there is not so critical, because
1) we already have bunch of RemoteException check for the case where
IPC target is already dead, and in theory we cannot avoid this kind of
runtime error anyway, and 2) in most of cases new input method client
gains focus.

That said, in conjunction with other focus-related issues such
as bug #25373872, not cleaning that can result in the following error
message in 'input_method:' section of bugreport, which might be a bit
confusing.

  Input method client dead: android.os.DeadObjectException

The primary goal of this CL is to make bugreport less confusing.  Any
user/developer-visible changes beyond that is unintentional.

Bug: 25373872
Change-Id: Iee001ad9cce0c8c6324e3c0984be1e6f0e641d05
2015-11-19 03:46:18 +00:00
Yohei Yukawa
27fe57d5cf Merge "Have ControlledInputConnectionWrapper#toString()." 2015-11-19 03:45:57 +00:00
Sandra Kwan
b68be01344 Merge "AccountManager: add startAddAccount API." 2015-11-19 03:45:19 +00:00
Nicolas Geoffray
b8f71add98 Merge "Remove DEBUG_JIT from Zygote flags." am: cf49583bd0 am: 5485d81578
am: 5462e46d23

* commit '5462e46d23800bc480d31d73c21d6089ce299d25':
  Remove DEBUG_JIT from Zygote flags.
2015-11-19 03:25:45 +00:00
Wale Ogunwale
ab529e0916 Merge "Fix build breakage." 2015-11-19 03:23:55 +00:00
Wale Ogunwale
ff3c66c597 Fix build breakage.
Change-Id: Ie60b148d61d746de354b12852d4a6db2d82121c5
2015-11-18 19:22:49 -08:00
Diego Perez
865ad592fe Merge "Fix delegation of methods within inner static classes" into mnc-ub-dev am: 603544d4c4 am: 14a826380d am: 0b76d094c6
am: f9281b6dfe

* commit 'f9281b6dfe94f1df0fac3ddbad846012b0a6fb7d':
  Fix delegation of methods within inner static classes
2015-11-19 03:19:00 +00:00
Joe LaPenna
cae4f1222f Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349 am: 617bd39465
am: 01186abc81

* commit '01186abc81c721c84a5d588bb7183d811d77f99c':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-19 03:17:33 +00:00
Michael Wright
c67cb61f60 DO NOT MERGE. Prevent recents from coming up when in SUW am: 84669ca8de am: 614ea46405 am: bd23716585 -s ours am: 18a2ac0506 am: 08ed2bc083 am: 41ef58be3e am: 8aa7e6a21a am: 78f974a0b2 am: c173429617
am: 69e4ce3a6f  -s ours

* commit '69e4ce3a6f34c90ac6f635ce7a54ce710ea586c9':
2015-11-19 03:16:03 +00:00
Deepanshu Gupta
b5050a292b Revert "LayoutLib: Fix true transparency in status bar." am: 4ea74d2960 am: d67897e4fb am: 6058efff69
am: 00a3f4b32e

* commit '00a3f4b32e321dbe8320e6cb9d9a90f5699b244f':
2015-11-19 03:14:35 +00:00
Deepanshu Gupta
dba052df56 Merge "AppCompatActionBar: use findClass to test presence" into mnc-ub-dev am: 42a893b50b am: ef4050128a am: 0a9b4e5f00
am: cd8e8ea0eb

* commit 'cd8e8ea0ebc61d13a66c5abcc1d359a24c152f31':
2015-11-19 03:13:06 +00:00
Deepanshu Gupta
37802f7160 LayoutLib: IntelliJ changed project files. am: 22931224d9 am: 66840955d8 am: e45abdb126
am: aec98e3a7e

* commit 'aec98e3a7e2727a0b2cb04c7bd896d1424ea7fe4':
2015-11-19 03:11:48 +00:00
Michael Wright
1273bc8ae4 Merge "DO NOT MERGE. Prevent recents from coming up when in SUW" into mnc-dev am: 4aa1e48a71 am: 313c7b2ee0 am: c73255d8ab am: 053f241cc7 am: e2af036719 am: cd00ba1a71
am: 1c996ff5b4  -s ours

* commit '1c996ff5b49d2dcfd3d9c50e41006fb70ea01947':
2015-11-19 03:10:13 +00:00
Bryce Lee
260eec1f97 Merge "Add Bluetooth headset API to allow disabling audio route." into cw-e-dev am: cb8749c903 am: 0fa22022a3 am: e2861471b9 am: 52d93db91d
am: 20ef5a3f44

* commit '20ef5a3f44cb544ed525451bd306fa676e39a7a5':
2015-11-19 03:08:54 +00:00
Joe LaPenna
4eb893e852 Merge "Revert "Enable debugging for DeviceIdle DO NOT MERGE ANYWHERE"" into cw-e-dev am: d083b37917 -s ours am: 7f0a1556ec -s ours am: dbe1804f58 -s ours am: 9cb81aa210 -s ours
am: 5431e73f14  -s ours

* commit '5431e73f147ca776cbab800c9cac26fd1653e925':
2015-11-19 03:07:32 +00:00
Sanket Padawe
93df6f8ffe Merge "Don\'t allow contact sharing by default for device not recognized as carkit." into mnc-dev am: abea6dc466 am: ccfcb636ae am: 63e6aa8571 am: 32a190bd78 am: 7bb34d7517 am: fc8f7cee01
am: 0106bef2fa

* commit '0106bef2facf448e674c9795e6c38aaad0e232e7':
2015-11-19 03:06:10 +00:00
Deepanshu Gupta
1150fc36eb Merge "WindowDecorActionBar name change fix." into mnc-ub-dev am: 62302bd72a am: 80bd5e6fd7 am: 9f275ec3fd
am: da5929914b

* commit 'da5929914b618678f462c1a24ee042ff25001a0c':
2015-11-19 03:04:49 +00:00
Michael Kwan
3d2cde7b95 DO NOT MERGE ANYWHERE - Hack to disable MTP mode on Clockwork devices. am: 8d6630b87c -s ours am: f23229f45f -s ours am: b0aae584ea -s ours am: 2c8f3734af -s ours
am: 4cb17f362e  -s ours

* commit '4cb17f362e60741c77d9cf56de95a44df0bec648':
2015-11-19 03:03:18 +00:00
Qiwen Zhao
4f78bca781 Merge "resolve merge conflicts of 7d1428d7f3 to master." 2015-11-19 02:51:40 +00:00
Sandra Kwan
7881228736 AccountManager: add startAddAccount API.
Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
2015-11-18 18:25:08 -08:00
Wale Ogunwale
76415ee500 Merge "Allow apps to set launch bounds for activities." 2015-11-19 02:10:32 +00:00
Wale Ogunwale
7a8fa60962 Allow apps to set launch bounds for activities.
unhide ActivityOptions APIs for setting launch bounds for
an activitiy so apps can use it. Only works on devices that
support PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT.

Bug: 25499677
Change-Id: I75424681f25cbb9fe92f2ed73e6afbab765dab29
2015-11-18 18:04:45 -08:00
Dianne Hackborn
8ed2b97b9e Implement flexible light idle maintenance windows.
For light idle mode, our maintenance window is pretty short (1 minute).
Usually we have nothing to do in it...  but sometimes we may want to
do a sync or download that takes more than a minute, and it would be
nice to not take the overhead of breaking that up in to multiple
windows.

So now we have a flexibile window, from 1 minute to 5 minutes.  We
start out with 1 minute, and any window that uses less than 1
minute increases the available window by that amount for later use.
If we later use more than 1 minute, we correspondingly decrease
the next available window.

Change-Id: Ie273dbd5843b3aa4a3d5d9b2e420cda75517340f
2015-11-18 17:02:26 -08:00
Suprabh Shukla
d93d481ea1 Merge "Moving recent tasks information to a user directory" 2015-11-19 00:53:20 +00:00
Dianne Hackborn
268e4e3d00 Move appops command to the service.
The "appops" shell command is now just a wrapper around doing
"cmd appops", no more need to launch a Java VM!

Change-Id: I06fc68762d0ab95a016fb24db0affb0d91197588
2015-11-18 16:29:56 -08:00
Philip P. Moltmann
adac7f3406 Do not restart printSpooler when switching portait mode / landscape mode
When the configration changes there are two modes to handle it:
1. do through a onDestroy - onCreate cycle
2. declare that your activity can handle certain changed and handle them
   in onConfigurationChanges

For most apps (1) is zero effort to implement, hence it is the default
behavior. You only want to do (2) if recreating your activity is
expensive.

As recreating the printActivity is expensive (and currently even
impossible) we want to handle the configuration change gracefully. There
is no code to be added as handling portrait mode / landscape mode switch
is not different from an orientation switch.

Bug: 25727559
Change-Id: Iac5b854c9dd080a4432957bc4551162dc3d480e9
2015-11-18 16:27:51 -08:00
Yohei Yukawa
12d66c2cda Have ControlledInputConnectionWrapper#toString().
'dumpsys input_method' does not generate useful information for
InputMethodManager#mIInputContext.  It is currently just a default
output of Object#toString().

This CL overrides ControlledInputConnectionWrapper#toString() so that
we can easily understand whether this connection is accepting API calls
from the IME or silently droping those API calls.  Note that
ControlledInputConnectionWrapper is not exposed to developers so
overriding #toString() has no effect for application developers.

Bug: 25373872
Change-Id: I89b9d4e15bc1569817bab4d1be429ac6e0462f14
2015-11-19 00:24:14 +00:00
Vineeta Srivastava
013c7daedd Merge "Fix MVNO hotspot bug for Europe" into mnc-dr1.5-dev 2015-11-19 00:22:59 +00:00
George Mount
6e09942a7d Merge "Fix leak of Bundled data." 2015-11-18 23:51:52 +00:00
Todd Kennedy
17b1c2cf9a resolve merge conflicts of 7d1428d7f3 to master.
Change-Id: If6455063e7b47ad503d8ec15a8f1d2477065d6e8
2015-11-18 15:38:28 -08:00
Felipe Leme
3f24edf0dd Fixed typos.
Change-Id: I13f2a0cd9b5e41a6af27fbbc6f33ecc0241b3c29
2015-11-18 15:30:00 -08:00
George Mount
3bbc2ed128 Fix leak of Bundled data.
Bug 25776890

Change-Id: Ib67c71e2fa01c902ad2b18f46bcaad73a73955ad
2015-11-18 15:04:01 -08:00
Wale Ogunwale
c38a5d7da1 Merge changes I6b641d6b,Id573a309
* changes:
  Renamed NonClientDecorView to DecorCaptionView
  Control display of shadows for multi-window in DecorView
2015-11-18 22:53:03 +00:00
Chris Craik
780e20a7df Merge "Fix layer create properties" 2015-11-18 22:50:54 +00:00
Chad Brubaker
78d4712f27 Install the Network Security Config Provider
The provider is installed early in ActivityThread to ensure that no
TLS objects are created in the application before the provider is
installed.

Change-Id: I5f77addfa75a4ee19301de54e01507d8dca33657
2015-11-18 14:48:29 -08:00
Doris Liu
b10a1d8a93 Merge "VectorDrawable native rendering - Step 2 of MANY" 2015-11-18 22:44:44 +00:00
Chris Craik
f559bd1e67 Fix layer create properties
bug:25753159

Change-Id: Ifa64dbfd8057ae5b390ba0c177627a5325cdd769
2015-11-18 14:42:00 -08:00
Xiaohui Chen
4d859fdbd3 Merge "cmds: fix settings command help msg" 2015-11-18 22:13:47 +00:00
Xiaohui Chen
60c2e34543 cmds: fix settings command help msg
There is a missing white space.

Change-Id: I7e7f4783464a7be02a3b2e1a30a629ed1ebdc913
2015-11-18 14:10:42 -08:00
Julia Reynolds
bc253a2858 Remove 'peekable' preference.
To be replaced by 'importance' in the future.

Bug: 22854014
Change-Id: Idc9ca79b145d5c69e769c9239ed9291dce40d8c8
2015-11-18 17:05:02 -05:00
Xiaohui Chen
228c322c94 Merge "Skip dead users when getting primary." 2015-11-18 21:53:15 +00:00
Doris Liu
804618d086 VectorDrawable native rendering - Step 2 of MANY
Introduced PathData in Java, which is effectively a thin layer around the
native instance. PathData holds the verbs and points which is being used
in path morphing/interpolation. The verbs and points can be interpreted
into skia path commands, which is now done in native and therefore saves
a handful of JNI calls during path creation.

Removed the old PathDataNode mechanism and changed the PathEvaluator
to use PathData instead.

Also added tests and a microbench. Also ran CTS tests for VectorDrawable
and AnimatedVectorDrawable, and passed all of the existing tests.

Change-Id: Ia166f5172ff031fe18b154327967f911a62caec1
2015-11-18 13:38:23 -08:00
Xiaohui Chen
d3e9e1835b Skip dead users when getting primary.
Bug: 25769085
Change-Id: I220d175839509e4dbf3f2992a90e9625d0caf825
2015-11-18 13:37:32 -08:00