Commit Graph

253898 Commits

Author SHA1 Message Date
Shuo Gao
e319e7335c DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages am: 1b5d5bd119 -s ours am: eb3696542a -s ours am: 41bdd3a668 -s ours
am: 90c736f892  -s ours

Change-Id: I38668b4a372530962a0ae0d6e2a717319731dff0
2016-11-02 15:57:25 +00:00
Thomas Buhot
5e089ad195 DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous am: 80e6d8873b -s ours am: 7b43f2af93 -s ours am: 40d2aa1edc -s ours
am: eae299874c  -s ours

Change-Id: I6a8b5337f38b099bee806451db1df44c723e6596
2016-11-02 15:56:38 +00:00
Shuo Gao
90c736f892 DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages am: 1b5d5bd119 -s ours am: eb3696542a -s ours
am: 41bdd3a668  -s ours

Change-Id: I70baae78d036713c95c02e9cad497a343d5d1309
2016-11-02 15:51:17 +00:00
Thomas Buhot
eae299874c DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous am: 80e6d8873b -s ours am: 7b43f2af93 -s ours
am: 40d2aa1edc  -s ours

Change-Id: I741b9682b066384aadce0dcaf9ca792de015d59e
2016-11-02 15:50:38 +00:00
Shuo Gao
41bdd3a668 DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages am: 1b5d5bd119 -s ours
am: eb3696542a  -s ours

Change-Id: I9a78875432e05918c574c9d8ea89230067b811cc
2016-11-02 15:46:36 +00:00
Thomas Buhot
40d2aa1edc DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous am: 80e6d8873b -s ours
am: 7b43f2af93  -s ours

Change-Id: Ia6804a8b93168a033075b6e77ac5d1bec63e3d69
2016-11-02 15:45:43 +00:00
Shuo Gao
eb3696542a DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages
am: 1b5d5bd119  -s ours

Change-Id: I6c218970581361c195471ee435f5a91b109911f0
2016-11-02 15:41:06 +00:00
Thomas Buhot
7b43f2af93 DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous
am: 80e6d8873b  -s ours

Change-Id: I521a8a64510e89ee97578fc5e2f600b4a1851bd3
2016-11-02 15:40:34 +00:00
TreeHugger Robot
125deebf5d Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-11-02 12:57:34 +00:00
Bill Yi
7d24dd6448 Import translations. DO NOT MERGE
Change-Id: I22df3420e521f99e68d025264954a102f14990df
Auto-generated-cl: translation import
2016-11-01 17:45:25 -07:00
Phil Weaver
456158ffc2 Don't invalidate list data during layout.
When a FastScroller is enabled, we were invalidating the
list data during layout, which left the UI in a bad state.
Long-presses didn't work properly, and TalkBack touches
were impossible to perform.

Bug: 31160338

Test: Manually tested long pressing, and verified
that TalkBack now works with the TestActivity in ag/1567328.
Change-Id: Iecd2d597259748a3ecbf5573950e565a0e9faa42
2016-11-01 18:36:16 +00:00
Chet Haase
bbae4e6ce6 Merge "Clean up InputConnection.commitContent() javadocs DO NOT MERGE" into nyc-mr1-dev 2016-11-01 17:25:43 +00:00
TreeHugger Robot
e82b728101 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-11-01 07:30:57 +00:00
Bill Yi
9be72645f6 Import translations. DO NOT MERGE
Change-Id: I4fcdd721174d9228394afa5ad39de02a3fb309a5
Auto-generated-cl: translation import
2016-10-31 22:57:11 -07:00
Chet Haase
5c0af88764 Clean up InputConnection.commitContent() javadocs DO NOT MERGE
Test: docs only, no test apart from verifying that it builds
Bug: #32158219 clean up InputConnection.commitContent() javadocs
Change-Id: I9b438d6b14aa8bc868fe41f7e0fe22b0e83800fb
2016-11-01 00:07:13 +00:00
Makoto Onuki
ac2898228e Always scan the Settings app for updated shortcuts.
The setting apps' version code is 25 for both DR and MR1, so the
shortcut manager will not notice when it's changed.

Let's just always scan this app.

Bug 32554059

Change-Id: Ia05363b30a5eeb989dc4c44cf5dbd71cde96de96
2016-10-31 15:46:36 -07:00
TreeHugger Robot
e97969b4d0 Merge "[DO NOT MERGE] Only setSize if -s arg is specified" into nyc-mr1-dev 2016-10-28 00:11:14 +00:00
Fyodor Kupolov
b87a491de6 [DO NOT MERGE] Only setSize if -s arg is specified
Calculate size of installed APKs only when INSTALL_EXTERNAL flag is set.
calculateInstalledSize is expensive and may take up to 20% of total
installation time.

Bug: 32180551
Bug: 29932779
Change-Id: I173d2b38820cc86cbfacecd1bacef57369d10af7
2016-10-27 15:29:41 -07:00
Jeff Sharkey
286f069221 Merge "Only bind to RESOLVE_EPHEMERAL_PACKAGE once." into nyc-mr1-dev 2016-10-27 20:18:10 +00:00
TreeHugger Robot
43905cc9ac Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-27 04:58:37 +00:00
TreeHugger Robot
ad45d97c45 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-27 04:57:01 +00:00
TreeHugger Robot
696b0e4d9f Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-27 04:45:01 +00:00
Bill Yi
c541a19fba Import translations. DO NOT MERGE
Change-Id: I637b457c6e9a20345cd5dbe599c4dce15ca9040c
Auto-generated-cl: translation import
2016-10-26 20:12:01 -07:00
Bill Yi
d1b8917270 Import translations. DO NOT MERGE
Change-Id: Ie1a7cb9598cadefe20558f959a3bdfa1589e7652
Auto-generated-cl: translation import
2016-10-26 16:42:29 -07:00
Bill Yi
1377e2b985 Import translations. DO NOT MERGE
Change-Id: Ia5f9329d6be981207e939150ed924eaac5bd2180
Auto-generated-cl: translation import
2016-10-26 16:21:49 -07:00
Jeff Sharkey
7765d7320d Only bind to RESOLVE_EPHEMERAL_PACKAGE once.
We never unbind, so we only ever need one bind request; creating more
bind requests just wastes resources.

Test: builds
Bug: 32446301
Change-Id: I7d6c4a93b8f5bb8d9aed7a5041b193e19a2d65fc
2016-10-26 23:01:53 +00:00
Marie Janssen
a80d745c65 Bluetooth: prevent enabling BLE in airplane mode
Enabling BLE in airplane mode puts BluetoothManagerService in an
unexpected state which causes Bluetooth to be on when airplane mode
is disabled.

Also fixes a bug where a crash of a BLE client would trigger a restart
into ON mode.

Test: SL4A BleBackgroundScanTest:test_airplane_mode_disables_ble

Bug: 32140251
Bug: 32140271
Bug: 32369494

Change-Id: Ie65157e65c3a1ca914f567a7a0c631175d1e5835
(cherry picked from commit bd93b7b3dc6141cef6236cf0ca7dcc5acf5bfeed)
2016-10-26 14:55:47 -07:00
TreeHugger Robot
e9db00e39f Merge "[DO NOT MERGE] Don't accidentally delete renamed packages" into nyc-mr1-dev 2016-10-26 20:22:53 +00:00
Svetoslav Ganov
e2c85890ac [DO NOT MERGE] Don't accidentally delete renamed packages
Apps on the system image can change their package by declaring
their old one in the manifest. If a package is renamed it is
internally referred by its old name.

The reconciliation code was using the new package name for
renamed packages and was concluding the apk is orphaned thus
deleting it. This puts the package in a bad state where the app
is gone and the version on the system partition is disabled.

Also Play was showing an update for a renamed system app as
an install while it is an update because of the same reason,
it was using the new package name while the app is internally
referred by the old one.

The fix for both above is to internally normalize the package
name by using the old one if the package was renamed or the
package name as is.

Test: With the fix put the old calculator on the system image
and booted, then put the renamed calculator and booted, updated
calculator from play and rebooted - calculator keeps working.
Also did the above steps without the patch to put calculator
in a bad state and flashed the system with the patch which
fixed the broken calculator app.

bug:32321269

Change-Id: I98bfc05c399edfc9854ebcce44182fefa55ceeff
2016-10-26 18:14:06 +00:00
Shuo Gao
1b5d5bd119 DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages
from AOSP: https://android-review.googlesource.com/#/c/209490/

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
2016-10-25 18:49:47 -07:00
Thomas Buhot
80e6d8873b DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous
from AOSP: https://android-review.googlesource.com/#/c/183305/

On the critical path of the cold launch of applications
the main thread of the started application tells the RenderThread
to create a surface. This process is synchronous and blocks
the main thread of the application until the creation
of the EGLContext is complete.
As a consequence the launch time of the application is delayed
by time spent allocating the EGL Context in the RenderThread.

With this optimization the launch time of any application
is improved (for example settings by 20 to 40 ms).

Change-Id: Ibf47aaa0abb8dedf7aa00693073db3785d9d6b08
Signed-off-by: Thomas Buhot <thomas.buhot@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
2016-10-25 18:48:50 -07:00
Jorim Jaggi
7e8fc05295 Merge "Make sure to call dismissKeyguard after setOccluded" into nyc-mr1-dev 2016-10-25 23:32:57 +00:00
Adrian Roos
db1fd054d2 Merge "Ambient: If user turned off ambient, keep it off after split" into nyc-mr1-dev 2016-10-25 21:55:52 +00:00
Adrian Roos
21984eeaf7 Ambient: If user turned off ambient, keep it off after split
The split ambient settings default to on - which is a bad experience
if the user explicitly turned it off before the split.

Change-Id: Id80d62727952f63b363f87c19b5befbde8ab5c31
Merged-In: I986d35a1a28e97f4c8d7d3d47ed5658e1836a44f
Merged-In: I346a53b0dc9cdf578c238113f4f33056ba0f3aea
Fixes: 32332195
Test: Flash angler to NYC, disable ambient, upgrade to NYC-MR1, check if "Lift to check phone" is still off.
2016-10-25 19:40:34 +00:00
Cheryl Potter
2e7c67f3cd docs: change gpu debugger redirect b/31781348 am: afbf16f908
am: fb4f5497b7

Change-Id: I1c550fa22586145ec949fe54ef727be814624340
2016-10-25 15:10:22 +00:00
Cheryl Potter
fb4f5497b7 docs: change gpu debugger redirect b/31781348
am: afbf16f908

Change-Id: I6fa42074ba2fe6019f0bf817a7b21650d2a0dd43
2016-10-25 15:03:23 +00:00
TreeHugger Robot
bf2eaa1029 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-25 06:20:01 +00:00
TreeHugger Robot
9421be2011 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-25 06:19:10 +00:00
Cheryl Potter
afbf16f908 docs: change gpu debugger redirect
b/31781348

Change-Id: I7e374dcec975ba45b03f1cde656a438f986c5093
2016-10-24 21:29:23 -07:00
Bill Yi
8bea919d37 Import translations. DO NOT MERGE
Change-Id: I9b8b5245f61dbab513ee5de6ff9c71b2bd41f3ab
Auto-generated-cl: translation import
2016-10-24 21:24:44 -07:00
Lifu Tang
14bd8017fa Merge "Fix GNSS status delivery to the callbacks" into nyc-mr1-dev 2016-10-25 04:10:47 +00:00
Bill Yi
9ac3087a90 Import translations. DO NOT MERGE
Change-Id: I8fe6b5f09b7c3daf9c630b5c36d02199248c11b3
Auto-generated-cl: translation import
2016-10-24 21:06:04 -07:00
George French
d544dc785b docs: Update startService() & bindService() documentation (Proj13) am: 9748d76be9
am: e8e196d007

Change-Id: I3d804611d1290eb6cf0fa525e492864220fb85fa
2016-10-25 00:26:05 +00:00
George French
e8e196d007 docs: Update startService() & bindService() documentation (Proj13)
am: 9748d76be9

Change-Id: I976128eb4c14ee2587c9cfa9c34f4b3dc006aa38
2016-10-25 00:19:33 +00:00
Jorim Jaggi
ec50931d88 Make sure to call dismissKeyguard after setOccluded
If we call it before, SystemUI will not dismiss the Keyguard as
it is still occluded in that state.

Change-Id: I15cf9cc43b9a2b747bfd224a6dfbd769eee19d69
Fixes: 32202560
2016-10-24 15:40:06 -07:00
Lifu Tang
4e82fe5120 Fix GNSS status delivery to the callbacks
Bug: 32357457
Change-Id: I8f2b8dae5472cb81313417e85c092dca0aae5bd9
2016-10-24 13:33:47 -07:00
George French
9748d76be9 docs: Update startService() & bindService() documentation (Proj13)
Updated Update startService() and bindService() docs to mention that they
no longer support implicit intent. And mentioned that the  Intellegent
job scheduling is now the preferred method for launching services.
We also performed a copy edit, implementing Google styles.

Bug:  18333456
Change-Id: I2b2ec666be870aea15045d30fbc822256d1b9a81
2016-10-24 11:49:41 -07:00
Pankaj Kanwar
9cac4568e5 Merge "CaptivePortalLogin: set mixed content policy to compatibility." into nyc-mr1-dev 2016-10-24 02:02:51 +00:00
TreeHugger Robot
496d17f748 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-22 11:33:16 +00:00
TreeHugger Robot
d849122bbb Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-22 11:32:52 +00:00