Commit Graph

316794 Commits

Author SHA1 Message Date
Narayan Kamath
a22a766ea3 Eagerly serialize historical sessions
mHistoricalSessions maintained a strong reference to a PackageInstallerSession,
which in turn kept references to Bitmaps and other heavy-weight objects around.

Since this field is primarily used for debugging, this change replaces it with
a String dump of the session in question. Each dump takes about 600bytes, which
is comparable to the sizes of the un-serialized raw objects.

Bug: 62485552
Test: Manual

Change-Id: I4949a64b538ab4a97384f4f8bc9a6ef155a4b128
2017-06-13 10:29:12 +00:00
Jason Monk
a5b457b3bf Merge "Move QS cell indicator back into mobile data tile" into oc-dev 2017-06-08 16:35:26 +00:00
TreeHugger Robot
053fb9120e Merge "Ensure only test print services enabled - framework" into oc-dev 2017-06-08 15:55:14 +00:00
TreeHugger Robot
cd603221e1 Merge "Fix unexpected DatePicker validation" into oc-dev 2017-06-08 14:36:13 +00:00
Wale Ogunwale
13059cc2ad Merge "Revert "Temporarily enable screen wakelock logging in WM"" into oc-dev 2017-06-08 14:33:10 +00:00
Selim Cinek
b18f65a168 Merge "Fixed a bug where the navigation notification would flicker" into oc-dev 2017-06-08 14:07:23 +00:00
Erik Kline
9e22554068 Delete legacy "wifi interface name guessing" behaviour
Now that Wi-Fi always passes us the AP interface name (and mode)
we no longer need to guess which interface on which we're supposed
to be starting IP serving (either tethering or local-only hotspot).

Test: as follows
    - built
    - flashed
    - booted
    - TetheringTest passes
Bug: 32163131
Bug: 62343300

Change-Id: I6019410ee5adff4929690d35ba09294765fcd6a4
2017-06-08 18:51:33 +09:00
Felipe Leme
9be8c96918 Merge "Overall improvement on Autofill javadocs for autofillable APIs." into oc-dev 2017-06-08 05:21:08 +00:00
Mark Rathjen
3492ed4376 Merge "Update Android ID (SSAID) to exclude package name in generation." into oc-dev 2017-06-08 04:44:07 +00:00
Yuchen He
3671e9249b Merge "Fix AeModeAndLock test cases. Bug: 36103813" into oc-dev 2017-06-08 04:32:36 +00:00
Adam Bookatz
6029bce3b4 Merge "Avoid background getTotalTimeLocked misreporting" into oc-dev 2017-06-08 02:43:20 +00:00
Svetoslav Ganov
2dcedc1276 Ensure only test print services enabled - framework
Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b
2017-06-07 18:50:05 -07:00
TreeHugger Robot
3834421c96 Merge changes Iea24e5a1,If71385bc into oc-dev
* changes:
  expand who can uninstall an instant app
  Final changes to protect the API surface
2017-06-08 01:40:07 +00:00
Phil Weaver
03a5b3a509 Merge "Confirm a11y shortcut service for correct user" into oc-dev 2017-06-08 01:37:48 +00:00
Selim Cinek
131f1a4bc4 Fixed a bug where the navigation notification would flicker
Change-Id: Id68ba339407287d67d8db888515389e79e09ece3
Fixes: 62339936
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java
2017-06-07 18:04:57 -07:00
TreeHugger Robot
dacdf2e978 Merge "Passing callingUid to internal methods" into oc-dev 2017-06-08 01:00:52 +00:00
Yuchen He
526239e800 Fix AeModeAndLock test cases.
Bug: 36103813

Change-Id: Ie2e9938f6ae607f5fced5048c5ff5e41e4f7836b
(cherry picked from commit e256bc9f66)
2017-06-08 00:32:43 +00:00
Jeff Sharkey
fdb3d31504 Merge "Add timeout to StrictMode flash." into oc-dev 2017-06-08 00:32:35 +00:00
Sudheer Shanka
f34713066e Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev 2017-06-08 00:08:47 +00:00
Ian Pedowitz
695f21a661 Merge "Fixed an issue where the icons had the wrong color" into oc-dev 2017-06-08 00:00:20 +00:00
Adrian Roos
2ff366a39a Merge "Keyguard: Increase clock size" into oc-dev 2017-06-07 23:54:05 +00:00
Bryce Lee
f867733d4f Merge "Revert "Coordinate configuration changes and window frame size."" into oc-dev 2017-06-07 23:23:30 +00:00
TreeHugger Robot
09d06437ad Merge "Remove Wifi Badges from platform." into oc-dev 2017-06-07 23:19:09 +00:00
TreeHugger Robot
584406f8e1 Merge "DO NOT MERGE: Kill Wifi Badging in OC." into oc-dev 2017-06-07 23:18:11 +00:00
Bryce Lee
46b01655b3 Revert "Coordinate configuration changes and window frame size."
This reverts commit afb45bba83.

Bug: 32839232
Fixes: 62424393
Change-Id: Ifaa0176e18100ec85b8c81268a26fb16ffe9b5f3
2017-06-07 23:03:09 +00:00
Todd Kennedy
18211fd8f6 Passing callingUid to internal methods
Sometimes callers want to clear the calling identity [to avoid permission
calls]. In this case, allow passing the original calling identity to
internal methods.

Test: Manual; create profile account and observe launcher still works cross profile
Test: bit FrameworksServicesTests:com.android.server.pm.ShortcutManagerTest{1..10}
Change-Id: I73f8ad4b2dc1895227c3fcb14f3f1f18f600562f
Fixes: 38349978
2017-06-07 15:53:21 -07:00
Selim Cinek
a7c69637f8 Fixed an issue where the icons had the wrong color
The color of the icons was taken from the ambient view
and wasn't updated when dark changed.

Change-Id: I472e76ff9d4d92500faae5517f10bdeb2658936d
Fixes: 62423352
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
2017-06-07 15:52:30 -07:00
Todd Kennedy
96a7326d90 expand who can uninstall an instant app
More than just those with the ACCESS_INSTANT_APP
permission should be able to uninstall instant apps.
Any uid that can see instant apps [that includes
the shell and some others] should be able to
uninstall them.

Change-Id: Iea24e5a1cdb369bdf29e7cf5db7977db63faedfc
Fixes: 62406346
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
2017-06-07 14:46:02 -07:00
TreeHugger Robot
58977d1035 Merge "Update strings for modem restricted state." into oc-dev 2017-06-07 21:42:37 +00:00
TreeHugger Robot
fc1753d495 Merge "Also inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND" into oc-dev 2017-06-07 21:40:04 +00:00
Selim Cinek
beba1bf936 Merge "Fixed a flicker of group notifications" into oc-dev 2017-06-07 20:47:52 +00:00
TreeHugger Robot
fd6b3c6da3 Merge "Run explicit GC to clear references to bitmaps earlier." into oc-dev 2017-06-07 20:46:20 +00:00
Jeff Sharkey
65ac7619f9 Add timeout to StrictMode flash.
Consider an app that requests that a StrictMode border be shown, and
then immediately crashes.  We'd end up showing the bars indefinitely,
which is a terrible UX.

This CL enqueues a second message to tear down the bars if nobody
asks for them to be taken down within 1 second.

Test: manual app that crashed after showing violation bars
Bug: 37787765
Change-Id: I45d2078d0dcaa94e8f24087d028f5f06d12c4349
2017-06-07 14:36:03 -06:00
Adrian Roos
dea3c986bc Keyguard: Increase clock size
Test: observe that keyguard clock looks slightly bigger now
Change-Id: Ic55582abb1cf82bf104afce7d1271e456c78aa1b
Fixes: 62105028
2017-06-07 20:34:08 +00:00
Jian Sun
8d5b58a660 Merge "Notify registered packages of visible accounts change when authenticators get uninstalled." into oc-dev 2017-06-07 20:31:08 +00:00
Bookatz
6d79993cb3 Avoid background getTotalTimeLocked misreporting
It has been discovered that for background values of
AggregatedWakelock, Sync, Job, and partial wakelocks,
the value of getTotalTimeLocked is wrong and often very
negative. getTotalDurationMsLocked, which should provide the exact same
value in all of these cases (since background data is never pooled),
does not have this problem. So while the source of the bug is sought
out, we should use getTotalDurationMsLocked instead of getTotalTimeLocked for
these data.

Bug: 62352334
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I78e84368615578483ab8e9e5f0ee1d067491be08
2017-06-07 13:29:41 -07:00
Todd Kennedy
4e4769c120 Final changes to protect the API surface
This is it. The last set of changes to protect instant apps
from full apps.

Bug: 35871369
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual; install instant app and ensure it runs
Change-Id: If71385bcc9a5637590fbd99b0ffcd5ed8809509c
2017-06-07 13:22:51 -07:00
Julia Reynolds
6e96251d92 Merge "Revert "Change default for group alert behavior"" into oc-dev 2017-06-07 20:12:28 +00:00
Sundeep Ghuman
889e961477 DO NOT MERGE: Kill Wifi Badging in OC.
Speed labeling is turned on in O-DR hence this CL should not be merged
into master. Using the merged in tag below which implements speed
labeling (ag/2346102) to prevent this CL from being merged into upstream
branches which need scoring ui.

Merged-In: I0fd96da6a06dafd8c8ebb435a2725ab155bd26ed

Bug: b/35628911
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I5740f68be25d5ec297f1f7dc3b3e59203cec2eb5
2017-06-07 12:56:33 -07:00
Jorim Jaggi
d261632710 Also inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND
To make sure we won't cause SystemUI to draw the black status bar
background while the starting window is visible.

Test: Warm open chrome
Test: go/wm-smoke
Bug: 38136531
Change-Id: I8dfc0926cafef9d41e78a637523316ac46ce05df
2017-06-07 12:38:19 -07:00
Doris Liu
cabf9cdc2e Merge "Better error message for AVD" into oc-dev 2017-06-07 19:31:14 +00:00
Jeff Sharkey
6746aa8c4d Merge "Remove old FUSE bypass now that we have sdcardfs." into oc-dev 2017-06-07 19:03:57 +00:00
Jason Monk
01df36f37f Move QS cell indicator back into mobile data tile
Remove it from the header and drop it back in its old location.

This reverts commit 10b4c8a4ab.

Test: runtest systemui
Fixes: 62331189
Change-Id: I087589c256894e0972656619e665b6a16536ce6c
2017-06-07 15:00:23 -04:00
Todd Kennedy
91a9d65e42 Merge "always adjust per-user application info" into oc-dev 2017-06-07 18:42:13 +00:00
Makoto Onuki
28afa23a8f Merge "Fix IndexOutOfRange in dumpsys content." into oc-dev 2017-06-07 18:33:24 +00:00
Selim Cinek
295dd7193e Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev 2017-06-07 18:13:35 +00:00
Jason Monk
463985178c Merge "Make DND tile primary toggle remember favorite zen" into oc-dev 2017-06-07 17:17:47 +00:00
Sanket Padawe
c14c84c746 Update strings for modem restricted state.
Test: manual
Bug: 37377132
Change-Id: Iace44143623034c0255d7cceff839a4712972ee2
2017-06-07 10:02:24 -07:00
John Reck
d3e78478aa Merge "Clear native shader when Paint shader changes" into oc-dev 2017-06-07 16:42:47 +00:00
Daniel Sandler
630e7841e5 Merge "Use correct timebase in fg service notifications." into oc-dev 2017-06-07 14:56:45 +00:00