Commit Graph

253881 Commits

Author SHA1 Message Date
Jeff Sharkey
4a2b119f14 Don't cache external storage directories.
External storage paths can change over time as the user inserts or
formats media, we can't cache the directories in ContextImpl.

Bug: 29496175
Change-Id: Ib656a5e525cf03669022c50f68ef50b7ad872caf
2016-06-27 17:43:17 -06:00
Andre Eisenbach
4d6be6b308 Merge "Add extra waiting when switching users" into nyc-dev 2016-06-27 23:42:17 +00:00
Jeff Sharkey
a52c9d90cb Ignore serial number checks when emulating FBE.
When emulating FBE, we may have chmod 000'ed the directory to emulate
it being locked, which results in us failing to read the serial
number, causing a unintentional data wipe.

To avoid this, ignore the serial number check when emulating FBE,
which is a developer-only feature.

Bug: 29231715
Change-Id: Idb056ab378174004d1430b5e7c20db17de28231e
2016-06-27 17:28:21 -06:00
Philip P. Moltmann
0de4834dd8 Always reload print services
We want to reload print service if anything relevant changed. E.g. this can
be the label. Which label is loaded depends on the the resolve info and
the package manager. Hence short of reverse engineering what fields are
used to determine how this is done it is very hard to say how we figure
out the label.

Hence the only option we have is to reload the print services every time
a print services is added, removed or changed.

Change-Id: Iff5a05dd1cad923da42c360a88559a2cc61c95aa
Fixes: 29765394
2016-06-27 23:25:23 +00:00
Christopher Tate
defa943074 Merge \"Fix #29737133 : content-trigger jobs not running properly\" into nyc-dev
am: f480698298

Change-Id: I957ae07c46573f0e6a066cc1cb0a27b8bafe5811
2016-06-27 23:24:01 +00:00
Bill Yi
95ad00d115 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-06-27 23:19:29 +00:00
Chris Tate
f480698298 Merge "Fix #29737133 : content-trigger jobs not running properly" into nyc-dev 2016-06-27 23:18:31 +00:00
Christopher Tate
4b425712c6 Fix #29737133 : content-trigger jobs not running properly
When removing the ContentObserver wrapper from our internal
bookkeeping we were using the wrong key.  That led to future
re-registrations thinking they were reusing a currently-
registered observers, but instead never getting onChange()
notifications.

Change-Id: Id3111db057ae63194049d7d48d45b75be6bb0000
2016-06-27 16:12:41 -07:00
TreeHugger Robot
bdad0ccf3b Merge "Fix AttributeCache" into nyc-mr1-dev 2016-06-27 23:11:33 +00:00
Pavlin Radoslavov
4140111167 Add extra waiting when switching users
If disabling Bluetooth times out, wait for an additional amount of time
to ensure the process is shut down completely before attempting to restart.

Bug: 29738770
Change-Id: I43dec35a1e03d12cb07863babea97d55baa32528
2016-06-27 23:09:09 +00:00
Dianne Hackborn
a590d2be93 Fix bug where process whitelist manager state would not be correct.
We can't update this in updateOomAdjLocked(), because we very
deliberately only iterate through services in there as needed.
The correct thing to do is update the process as services/connections
are associated with it, so do that.

Now basically all of the logic for tracking the state is in
ActiveServices, as we bind and unbind services and add and removing
them from process records.  It's a little messy because we don't
have a central place for removing them from process records, which
should be cleaned up in the future.

Part of fixes for issue #29480440

Change-Id: Iac96f002a5b4e3b0277df244ff7b90f59a6e8440
2016-06-27 15:40:38 -07:00
John Reck
11858f170a Merge \"Add missing roundOut for layer damage\" into nyc-dev
am: 48cde353eb

Change-Id: I99532e6b7992452523c4fb0716a7161c06b92950
2016-06-27 22:28:41 +00:00
John Reck
48cde353eb Merge "Add missing roundOut for layer damage" into nyc-dev 2016-06-27 22:22:41 +00:00
Daniel Nishi
690346b145 Use the Deletion Helper when system storage is low.
A notification is posted when the system storage gets too low.
Currently, it redirects into the Storage Settings. Instead,
it should redirect into the Deletion Helper to directly let the
user clear out their storage.

Bug: 29437277
Change-Id: I4e35adf300d5e479d4171f1e6f090f2a757400f2
2016-06-27 15:22:35 -07:00
John Reck
ac046387be Add missing roundOut for layer damage
fixes: 29771171

This is a regression from HWUI_NEW_OPS, a roundOut
was missing in the new path that was in the old one

Change-Id: Ibf223d550bb5525781864dd9b7f7cd6d73adb98b
2016-06-27 15:18:26 -07:00
William Harmon
611093b1a1 Merge "Allow system apps to have disabled QS tiles." into nyc-mr1-dev 2016-06-27 22:15:46 +00:00
Will Harmon
294af233a9 Allow system apps to have disabled QS tiles.
Otherwise the tile can get removed on bootup if the tile is disabled by
default.

Fixes: 29509725

Change-Id: Icc6b63b6cf9b9cdca367c79c3175896c87041e05
2016-06-27 22:14:21 +00:00
Andreas Gampe
cc241a580c Frameworks/base: Add new flow to OtaDexoptService
Add functionality to capture/intercept installd communication, and
use this to return the full communication for dexopt. These parameters
can be used to drive otapreopt_chroot directly.

Keep the old direct invocation alive until devices have transitioned
to a service that exposes this API.

In preparation for renaming of A/B OTA artifacts to include target
slot names.

Bug: 25612095
Bug: 28069686
Change-Id: I14728ee1266f3882cada8f08dd21891ed5f7a0cb
2016-06-27 15:10:12 -07:00
Chris Craik
90a9370b59 Round unclipped saveLayers
am: 45e83338e5

Change-Id: Ifc598495cb8ad99b9f1534c1d783c3e4f483f1c5
2016-06-27 21:45:03 +00:00
Tyler Gunn
780648be53 Merge "Add onConferenceSupportedChanged callback, carrier config." into nyc-mr1-dev 2016-06-27 21:35:49 +00:00
Philip P. Moltmann
3cf17ad26d Syncronize renderPage vs. onServiceDisconnected
An async renderPage request might be in progress while the service is
getting disconnected.

Fixes: 29639740
Change-Id: I8a33e5fba96dd76ecb1e14d0e3a26334eb8965a5
2016-06-27 21:06:42 +00:00
Chris Craik
45e83338e5 Round unclipped saveLayers
fixes: 29456451

Change-Id: I2be8b47c46936e75071ad0819a718f72b96cbd2b
(cherry picked from commit d5a9011412)
2016-06-27 21:06:35 +00:00
Andrii Kulian
bb7c5aca25 Merge \"Resume only activities in focused stack\" into nyc-dev
am: 06b1d786e9

Change-Id: I699695002213bdc0482d6b44447a5c26a27445d1
2016-06-27 21:02:56 +00:00
Jorim Jaggi
573e85fff8 Merge \"Fix smooth panel deceleration\" into nyc-dev
am: e858432241

Change-Id: I2520d88620d5f3f12cab60a9422db8a41e40bec8
2016-06-27 20:54:29 +00:00
Andrii Kulian
06b1d786e9 Merge "Resume only activities in focused stack" into nyc-dev 2016-06-27 20:50:02 +00:00
TreeHugger Robot
e858432241 Merge "Fix smooth panel deceleration" into nyc-dev 2016-06-27 20:44:56 +00:00
John Reck
7b570deea6 Fix SurfaceViewPositionListener race bugs
Bug: 29628138

1: Make windowPositionLost synchronous as that's
what the Java side was expecting

2: Make the listener ref counted as otherwise
there's a race condition with the GC, which could
end up with use-after-frees

3: Ensure that all position updates are invoked
prior to frame completion

Change-Id: Iedbc017f611ba2878a49b4586612f79249ca2fe3
2016-06-27 13:35:13 -07:00
Android Build Merger (Role)
157c6811de Merge "Merge \"Fix mistranslation from the NDK changelog.\" into nyc-dev am: 95fbc2de1b" into nyc-mr1-dev 2016-06-27 20:21:26 +00:00
Dan Albert
b82f7fd2c0 Merge \"Fix mistranslation from the NDK changelog.\" into nyc-dev
am: 95fbc2de1b

Change-Id: I612b9e58060b46af2b1dce7f6d0faf91d9674d8c
2016-06-27 20:21:01 +00:00
Yohei Yukawa
cb56978912 Merge "Use a flag to grant a temporary URI permission." into nyc-mr1-dev 2016-06-27 20:18:51 +00:00
TreeHugger Robot
95fbc2de1b Merge "Fix mistranslation from the NDK changelog." into nyc-dev 2016-06-27 20:13:53 +00:00
Amith Yamasani
88a4c5ba4e Merge "Don't reuse userids that are being cleaned up on boot" into nyc-mr1-dev 2016-06-27 20:13:01 +00:00
Android Build Merger (Role)
61ef7897bd Merge "Remove reference to obsolete installation step. am: 17d0ccb1a9" into nyc-mr1-dev 2016-06-27 20:02:55 +00:00
Dan Albert
36b3143dc2 Remove reference to obsolete installation step.
am: 17d0ccb1a9

Change-Id: Iee295980a2c19e4319f569e81f9875d61b52506f
2016-06-27 20:02:29 +00:00
Andrew Sapperstein
26a17dc894 Merge "Add new private theme for Dialer." into nyc-mr1-dev 2016-06-27 20:01:32 +00:00
Dan Albert
e080bc5bf7 Fix Windows NDK labeling.
32-bit and 64-bit labels are backward.

Bug: http://b/29523188
Bug: https://github.com/android-ndk/ndk/issues/127
Change-Id: I87de0730c54555dc219d170fd600ec23a51decc2
2016-06-27 12:57:20 -07:00
Adam Lesinski
6aec452f91 Fix AttributeCache
AttributeCache relied on the frequency of the garbage collector
to clean up resource references. The garbage collector seems to have
gotten faster and the cache essentially doesn't cache anything.

Switch to using an LRU cache that holds strong references to
a finite set of Resources. This should be very small, just to
keep the few working apps involved in app switches in memory.

Bug:29405575
Change-Id: I64b34742c820f1e7872061a574e6cf1a76887149
2016-06-27 12:30:02 -07:00
Sanket Padawe
afcc40f818 Merge "Fix documentation of getTelephonyHistogram() api." into nyc-mr1-dev 2016-06-27 19:21:56 +00:00
Philip Cuadra
e9d6d6dcf5 Merge "Add tracing events for system service lifecycle events" into nyc-mr1-dev 2016-06-27 19:02:07 +00:00
Sanket Padawe
7f89016579 Fix documentation of getTelephonyHistogram() api.
Bug: 29760459
Change-Id: Ib7c4df81026331f88f6a8776c0042abf4f32c620
2016-06-27 11:57:01 -07:00
Jorim Jaggi
0fdf574bc8 Fix smooth panel deceleration
State of dismiss view was wrong when the panel was closed, thus, we didn't
apply our logic for smooth panel deceleration anymore.

Bug: 29579394
Change-Id: I79718517e776adad092457aba6db18219998fde1
2016-06-27 18:54:34 +00:00
Steven Ng
dc52eaaa98 Merge "Disallow disable / hide device provision app" into nyc-mr1-dev 2016-06-27 18:50:02 +00:00
Dan Albert
cb76aad0c4 Fix mistranslation from the NDK changelog.
Gingerbread begins at API level 9, not 10.

Bug: https://github.com/android-ndk/ndk/issues/136
Change-Id: Ie65e543c06bed925f33e2cac92a27d6b83934a88
2016-06-27 11:19:11 -07:00
Cheryl Potter
3a6b63ee7e Merge \"Add redirect for new Run/Debug Config doc b/29615014\" into nyc-dev
am: 5836c9e658

Change-Id: I0ee8a4c36279b6bd339454ad71bb2cba289f8306
2016-06-27 18:17:15 +00:00
Dan Albert
17d0ccb1a9 Remove reference to obsolete installation step.
Bug: https://github.com/android-ndk/ndk/issues/136
Change-Id: Idd08b009fefd69053675545bf94fda2147e01318
2016-06-27 11:16:42 -07:00
Amith Yamasani
b75fc2b2b7 Add tron logging for retail demo session counters
Count each demo user creation and time between
first touch (to dismiss the video) and the start
of inactivity timeout.

Fixed an NPE in SysUI when user switcher is missing.

Bug: 29540372
Change-Id: I7bc0e0dde75e7b213a025683c15c9b3e750643a9
2016-06-27 11:15:38 -07:00
Mitchell Wills
9f750bf5f4 Merge "Add a WifiScanner API to listener for ongoing scans" into nyc-mr1-dev 2016-06-27 18:12:41 +00:00
Philip P. Moltmann
b6ee468b3e Merge "Do not remove handlers for loaders." into nyc-mr1-dev 2016-06-27 18:12:12 +00:00
Cheryl Potter
5836c9e658 Merge "Add redirect for new Run/Debug Config doc b/29615014" into nyc-dev 2016-06-27 18:02:54 +00:00
Amith Yamasani
ae26189aa9 Don't reuse userids that are being cleaned up on boot
During the current session, if we're cleaning up some
old users, mark them as being in the remove pile so
that the userIds are not reused right away. Otherwise
there's a potential for confusing the file-based crypto
layer.

Bug: 29635364
Change-Id: I57a868fbe6c58a02ffcea63809d25eba01360e1e
2016-06-27 10:58:39 -07:00