Commit Graph

8365 Commits

Author SHA1 Message Date
Etan Cohen
ceb0cae7ba Merge "[P2P][AsyncChannel] Revert client registering for service death" into oc-mr1-dev am: 5b81cfe83c
am: 8c84e0f757

Change-Id: I0804ab42e73bff7d9c5a872fb6d58488176a2b0d
2017-07-27 18:32:41 +00:00
TreeHugger Robot
5b81cfe83c Merge "[P2P][AsyncChannel] Revert client registering for service death" into oc-mr1-dev 2017-07-27 18:07:19 +00:00
Lucas Dupin
d7e4a4dbdd Merge "Add theme variables to SysUI dump" into oc-dr1-dev am: 4451b6ae19 am: 3a5550a3be
am: a5dbda0b36

Change-Id: Ia80a4e6197c02d34ad4069a87a63919ac7cc7de6
2017-07-27 17:10:21 +00:00
Lucas Dupin
3a5550a3be Merge "Add theme variables to SysUI dump" into oc-dr1-dev
am: 4451b6ae19

Change-Id: Ia176aeafa9c9e2d0b979a472bb444657b4417ab9
2017-07-27 16:49:50 +00:00
Lucas Dupin
8a4522dceb Add theme variables to SysUI dump
Dumping current themes and scrim states to make debugging easier.

Bug: 63890571
Test: adb bugreport # look for new variables
Change-Id: Ia9bfd1b91d8d2c19930cb896d337ecdfa776e6cb
2017-07-26 21:48:06 -07:00
Etan Cohen
50edf1efa5 [P2P][AsyncChannel] Revert client registering for service death
This effectively reverts 19c4883c85.

The change added a binder death listener on a peer of the AsyncChannel.

Issue: as specified in the bug - this causes a memory leak in apps
using WifiP2pManager (and possibly other clients using AsyncChannel).
The issue is that a reference to the caller is now kept by the death
listener. This means that the caller object cannot be gc'd. This
impacts WifiP2pManager since it didn't have an explicit close() method.

The original reason for the change was to enable clean-up - this can
be done in an alternative mechanism by passing-in a binder from client
to service. Will be enable in a subsequent CL.

Bug: 37443149
Test: all p2p tests, memory usage with test app
Change-Id: Iff044a8cc9c2fc0bc57db4a218b80d0b12424ddd
2017-07-26 16:22:46 -07:00
TreeHugger Robot
c58e47cfdc Merge "Don't attribute incorrect unified challenge attempt to profile." into oc-mr1-dev 2017-07-26 18:59:13 +00:00
Roozbeh Pournader
6ba82998e2 Merge "Refactor ellipsis attributes and methods" 2017-07-26 00:14:06 +00:00
Selim Cinek
80736c0769 Merge "Merge "Changing the way the media image scales" into oc-dr1-dev am: e06e3f97fc am: d0644e4493" into oc-mr1-dev-plus-aosp
am: 7971baaed4

Change-Id: Ibd1d52b9ca00b9edd34f0b37b11a4d37d6573543
2017-07-25 23:51:32 +00:00
Selim Cinek
d0644e4493 Merge "Changing the way the media image scales" into oc-dr1-dev
am: e06e3f97fc

Change-Id: I60cd55a9d8ef2de15aa1f268f42923955c9d050c
2017-07-25 23:10:20 +00:00
Selim Cinek
e06e3f97fc Merge "Changing the way the media image scales" into oc-dr1-dev 2017-07-25 22:45:55 +00:00
Lucas Dupin
f9d0d007ab Merge "resolve merge conflicts of a1f64b0a91 to oc-mr1-dev" into oc-mr1-dev am: fb4da9ea55
am: 58f6bf9f59

Change-Id: Ie1e285fbd00b550cba0e979dd245aa0f06ff0dcf
2017-07-25 22:40:42 +00:00
TreeHugger Robot
fb4da9ea55 Merge "resolve merge conflicts of a1f64b0a91 to oc-mr1-dev" into oc-mr1-dev 2017-07-25 22:21:29 +00:00
Roozbeh Pournader
9ea756fa70 Refactor ellipsis attributes and methods
Mostly changed to avoid repetition of code and remove the assumptions
about ellipsis being one code unit. The code for multi-code unit
ellipsis is not triggered yet, but is done in preparation for
potential future locale-dependent cases.

Test: bit CtsTextTestCases:*
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest
Test: bit CtsWidgetTestCases:android.widget.cts.CheckedTextViewTest
Test: bit CtsWidgetTestCases:android.widget.cts.AutoCompleteTextViewTest
Test: bit CtsWidgetTestCases:android.widget.cts.MultiAutoCompleteTextViewTest
Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id1dfdc503f87fabed2447d55ab2107eee0eccd08
2017-07-25 14:50:18 -07:00
TreeHugger Robot
4a2a895043 Merge "Dump print manager as proto" 2017-07-25 21:35:49 +00:00
Sudheer Shanka
a5e36b158f Merge "Track per-cluster times of each uid in microsec." 2017-07-25 20:51:24 +00:00
Lucas Dupin
ef15776aaf resolve merge conflicts of a1f64b0a91 to oc-mr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic2395d055e1f27b186c3b87be5440dc410ee16a3
2017-07-25 12:00:01 -07:00
Philip P. Moltmann
c0a128dc2b Dump print manager as proto
Test: incident_report print. Having no entries
Change-Id: I3c7d611e44c0d3bf8e00775b1708bd82a334121a
2017-07-25 11:32:24 -07:00
TreeHugger Robot
36d8b489d2 Merge "Zygote: Increase wrap-pid timeout to thirty seconds" into oc-mr1-dev 2017-07-25 18:09:42 +00:00
TreeHugger Robot
a1f64b0a91 Merge "Fix jank when switching themes" into oc-dr1-dev 2017-07-25 17:40:02 +00:00
Calin Juravle
bfb00badf6 Merge "Add DexClassLoader to the list of supported class loaders" 2017-07-25 17:10:49 +00:00
Calin Juravle
d08b3156e8 Add DexClassLoader to the list of supported class loaders
DexClassLoader have the same behavior as PathClassLoader and is still in
use by apps. Add it to the list of supported class loaders so that it can be
recognized during secondary dex file loads.

Bug: 38138251
Bug: 36044779

Test: runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java

Change-Id: I88617c446c0471ffa8daffa5bc1961785910005a
2017-07-25 17:08:55 +00:00
Calin Juravle
96995bb7a2 Merge "Fix system server compilation in ZygoteInit" into oc-mr1-dev 2017-07-25 16:54:06 +00:00
Andreas Gampe
032a929542 Zygote: Increase wrap-pid timeout to thirty seconds
Some lowend devices under heavy instrumentation may not be able to
send the pid in the current five seconds. Drop the safety and
ignore watchdog debug builds, and move the timeout to thirty seconds.

Make the ZygoteConnection constants sharable in their own @hide class.
Add an assert into the watchdog that the wait time is less than the
watchdog time on non-debug builds.

(cherry picked from commit 27497c6dfc)

Bug: 63904739
Bug: 63638768
Test: m
Test: manual test
Test: cts-tradefed run commandAndExit cts-dev -m CtsWrapWrapDebugTestCases
Change-Id: I80abdda54cd94e935de5a52b9f3c9192d0e31060
2017-07-24 19:59:13 -07:00
Ajay Panicker
4e38307433 Merge "Batterystats handles nested unoptimized ble scans" into oc-dr1-dev am: aaf3860941 am: 4c0900102b
am: 52c78bd5a2

Change-Id: Idd3e5b3677866fc5286bb94d12e921e70d641e9f
2017-07-25 02:36:21 +00:00
Ajay Panicker
52c78bd5a2 Merge "Batterystats handles nested unoptimized ble scans" into oc-dr1-dev am: aaf3860941
am: 4c0900102b

Change-Id: I72bd4d4769ac95b2ef2e78426cfa38c29c51ea6e
2017-07-25 02:26:48 +00:00
Ajay Panicker
4c0900102b Merge "Batterystats handles nested unoptimized ble scans" into oc-dr1-dev
am: aaf3860941

Change-Id: I627a6da4db6eb09b68e23882ccef2de4c80bf747
2017-07-25 02:19:31 +00:00
Ajay Panicker
aaf3860941 Merge "Batterystats handles nested unoptimized ble scans" into oc-dr1-dev 2017-07-25 02:11:26 +00:00
Calin Juravle
2f09ff38f6 Fix system server compilation in ZygoteInit
The code which dexopt SystemServer in ZygoteInit used to pass the
sharedLibrary string in the old format.

This CL updates the classPath string to the new class loader context
encoding.

Bug: 63941300
Test: compile WITH_DEXPREOPT=false and WITH_DEXPREOPT_BOOT_IMG_ONLY=false
and check that when the device boots the correct context is passed to
dex2oat.

(cherry picked from commit b0dede3ec2)

Change-Id: Ie27cd21b0b9c8b7e226bce74dfa297569ac12317
2017-07-24 18:40:17 -07:00
Calin Juravle
e4d310c564 Merge "Fix system server compilation in ZygoteInit" 2017-07-25 01:38:39 +00:00
Andreas Gampe
a1d451cb29 Merge "Zygote: Increase wrap-pid timeout to thirty seconds" am: 81f66ce5ab am: d795bbcdcc am: 7729d061ff am: bac3bc121f
am: 61491cc647

Change-Id: I8f8fe0774c6cf6a2ba42cdcc974bbf208d0c5a85
2017-07-25 00:49:39 +00:00
Andreas Gampe
61491cc647 Merge "Zygote: Increase wrap-pid timeout to thirty seconds" am: 81f66ce5ab am: d795bbcdcc am: 7729d061ff
am: bac3bc121f

Change-Id: I360a8d4a13d2bc02eff117f1161c48e782ef4de7
2017-07-25 00:39:13 +00:00
Andreas Gampe
bac3bc121f Merge "Zygote: Increase wrap-pid timeout to thirty seconds" am: 81f66ce5ab am: d795bbcdcc
am: 7729d061ff

Change-Id: I09b9eff7215bb22e831939eede7ddaa755fc4970
2017-07-25 00:32:46 +00:00
Selim Cinek
a8818f6b31 Changing the way the media image scales
Before, the media image could get really small
under certain conditions. We now just push it off
a bit.

Test: manual, test media notification with different densities
Change-Id: If0fec49510a0dee627ce4a8ddb7075534c0e15c3
Fixes: 63142413
2017-07-24 17:30:32 -07:00
Andreas Gampe
7729d061ff Merge "Zygote: Increase wrap-pid timeout to thirty seconds" am: 81f66ce5ab
am: d795bbcdcc

Change-Id: I350d479d030e3b8398975f60b8463343f7bb5e86
2017-07-25 00:27:45 +00:00
Andreas Gampe
d795bbcdcc Merge "Zygote: Increase wrap-pid timeout to thirty seconds"
am: 81f66ce5ab

Change-Id: I1cc8856ebb68ee83a8d3e62d86b48d497d0eb237
2017-07-25 00:18:19 +00:00
Treehugger Robot
81f66ce5ab Merge "Zygote: Increase wrap-pid timeout to thirty seconds" 2017-07-25 00:06:02 +00:00
Calin Juravle
b0dede3ec2 Fix system server compilation in ZygoteInit
The code which dexopt SystemServer in ZygoteInit used to pass the
sharedLibrary string in the old format.

This CL updates the classPath string to the new class loader context
encoding.

Bug: 63941300
Test: compile WITH_DEXPREOPT=false and WITH_DEXPREOPT_BOOT_IMG_ONLY=false
and check that when the device boots the correct context is passed to
dex2oat.

Change-Id: Ia8f7fc5ed81d41c375e1a67cd9744faf8cb4284c
2017-07-24 16:54:36 -07:00
Shubham Ajmera
0abf6a8485 Update DexFile#getDexOptNeeded usages to reflect API change am: 52c8620c19
am: 51b9a824d5

Change-Id: I40cb970c53220f42558cb8b968efc97b8c7408d6
2017-07-24 22:48:41 +00:00
Shubham Ajmera
51b9a824d5 Update DexFile#getDexOptNeeded usages to reflect API change
am: 52c8620c19

Change-Id: I31b2aec15ace15e159eaeaafdd55d10767aaca0f
2017-07-24 22:43:33 +00:00
Shubham Ajmera
52c8620c19 Update DexFile#getDexOptNeeded usages to reflect API change
Test: make and boot
Merged-in: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51
Bug: 36598475
(partially cherry-picked from commit 246dccf932)

Change-Id: Idfc9276eb2b61244bbd634f49a3912dab6fcabfa
2017-07-24 15:21:04 -07:00
Lucas Dupin
e17ce5286f Fix jank when switching themes
Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: Ie8860d00dbb0705ed76edf60a9d3030618dd21ca
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
2017-07-24 13:26:22 -07:00
TreeHugger Robot
1052d7e85f Merge "Crop PDF Thumbnails before sending them from Provider" 2017-07-24 19:44:24 +00:00
Pavel Grafov
b319125446 Don't attribute incorrect unified challenge attempt to profile.
If the profile uses unified challenge and we attempt to check its
password instead of parent user's password (as would be the case in
the UI), we shouldn't try report this attempt sinse the user doesn't
have a real password of its own and SecurityException will be thrown
from DPMS.reportFailedPasswordAttempt.

Test: adb shell cmd lock_settings verify --user 10 --old 12368
Bug: 63295016
Change-Id: Ieb60a064a79095be9fde12cbd6ffca8076d769c3
(cherry picked from commit 01376594b7)
2017-07-24 19:00:42 +00:00
TreeHugger Robot
16e592e128 Merge "Don't attribute incorrect unified challenge attempt to profile." 2017-07-24 18:54:41 +00:00
Andreas Gampe
27497c6dfc Zygote: Increase wrap-pid timeout to thirty seconds
Some lowend devices under heavy instrumentation may not be able to
send the pid in the current five seconds. Drop the safety and
ignore watchdog debug builds, and move the timeout to thirty seconds.

Make the ZygoteConnection constants sharable in their own @hide class.
Add an assert into the watchdog that the wait time is less than the
watchdog time on non-debug builds.

Bug: 63904739
Bug: 63638768
Test: m
Test: manual test
Test: cts-tradefed run commandAndExit cts-dev -m CtsWrapWrapDebugTestCases
Change-Id: I80abdda54cd94e935de5a52b9f3c9192d0e31060
2017-07-24 10:14:03 -07:00
Jorim Jaggi
b52ae1ad52 Revert "Fix jank when switching themes" am: 6498f96283 am: 51a1525199
am: e5e7ea281f

Change-Id: If4e1ae37e07d92a59592dc943aebc6a6940b4f31
2017-07-24 14:32:22 +00:00
Jorim Jaggi
e5e7ea281f Revert "Fix jank when switching themes" am: 6498f96283
am: 51a1525199

Change-Id: I06187734d198eff410f1b04d2c7c2e491e57e709
2017-07-24 14:23:10 +00:00
Jorim Jaggi
7f58322d51 Revert "Fix jank when switching themes"
am: 6498f96283

Change-Id: Ie5813f1c04a6db9d5ee291df764873900add5064
2017-07-24 14:14:34 +00:00
Jorim Jaggi
51a1525199 Revert "Fix jank when switching themes"
am: 6498f96283

Change-Id: I7e833b282939153d63fc2ffbeb8d5cb77923b62d
2017-07-24 14:14:27 +00:00