34218 Commits

Author SHA1 Message Date
Mahaver Chopra
1216ae5d02 Update DPM.reboot with new restriction
DPM.reboot() should not be called when there is an ongoing call on the
device.

Bug:27531799
Change-Id: Idc1fa4c7aa79b20ec9c2afcccf855455ee316787
2016-03-15 19:46:05 +00:00
Adrian Roos
7400f82699 Merge "Don't show wallpaper when backdrop is visible" into nyc-dev 2016-03-15 03:26:02 +00:00
Adrian Roos
d5c2db630f Don't show wallpaper when backdrop is visible
Hides the wallpaper when it's not needed and fixes
the unlock animation to not unnecessairly show the
wallpaper if neither the Keyguard nor the underlying
app need it.

Also fixes a bug where the enter animation had a background
set, which led to uglyness when no wallpaper is involved.

Bug: 27533740
Change-Id: I667c6f7ca6c0e1ff7e9f793c6ddc13f6da8387b1
2016-03-14 18:55:41 -07:00
Carlos Valdivia
658e4c5ece Merge "Permissions: Get rid of GET_ACCOUNTS" into nyc-dev 2016-03-15 01:36:26 +00:00
Wale Ogunwale
deee942be1 Merge "Added input freeze reason string." into nyc-dev 2016-03-15 00:32:19 +00:00
Makoto Onuki
84dce8cba9 Merge "Make "reset-throttling" per-user" into nyc-dev 2016-03-15 00:31:41 +00:00
Makoto Onuki
4554d0e5b6 Make "reset-throttling" per-user
Also don't reset the counter when the time is invalid

Bug 27549307

Change-Id: Ib9ad030e348ec5e32936709f1284e3c76e88e254
2016-03-14 15:53:59 -07:00
Chong Zhang
b20ecd6d5e Merge "Fixing misc issues that leads to black screen when pressing Home" into nyc-dev 2016-03-14 22:45:00 +00:00
Chong Zhang
65d15d0332 Fixing misc issues that leads to black screen when pressing Home
- Make sure to clear usingTransferredAnimation flag together when
  setting app animator's animation to null. Not clearing it will cause
  setAppVisibility to not apply dummy animation (placeholder)
  to a closing app token while it should, and the closing app token will
  then exit early before the opening app is ready, since it doesn't have
  any animation set. This causes a brief blank period.

- When app relayout to invisible, make sure to mark mWinAnimator's
  mAnimating to true if we decided exit animation is running. Note that
  even if we didn't actually apply the animation (which could happen if
  the window is no longer visible by policy), if the app token itself is
  under any animation, we need to mark mAnimating otherwise the clean up
  code in FinishExit will not run, and the window will be stuck in
  Exiting state.

- We no longer change mAnimatingExit flag in setAppVisibility(), but
  wait for app's relayoutWindow calls to change it if applicable.
  setAppVisibilty doesn't apply the animation until transition is good
  to go. Setting the flag without the animation applied will disable
  setTokenVisibilityLocked and relayoutWindow to actually apply the
  animation, because they may think the window is no longer visible.

bug: 27391256

Change-Id: I292305847d742cdbb5ebe6aa8daa5d83bf65483b
2016-03-14 15:43:09 -07:00
Makoto Onuki
49f6fbcd1f Merge "Implement the launcher side permission." into nyc-dev 2016-03-14 22:12:16 +00:00
Makoto Onuki
2d5b465fa9 Implement the launcher side permission.
Only the default launcher can call the LauncherApps shortcut APIs.

Bug 27548047

Change-Id: I6d597fcad80c5201a2f93b8cbecd567fc79926d8
2016-03-14 15:00:58 -07:00
Shreyas Basarge
513f77c8ef Merge "Remove SyncManager's local job cache" into nyc-dev 2016-03-14 21:45:38 +00:00
Andreas Gampe
fb5f2e572a Merge "Frameworks/base: Extract packages after cache pruning" into nyc-dev 2016-03-14 21:03:49 +00:00
Ajay Panicker
0a278b127b Merge "Get adapter name and address on boot" into nyc-dev 2016-03-14 20:48:13 +00:00
Rob Carr
481355a45d Merge "Use privateFlags for the preserve geometry check" into nyc-dev 2016-03-14 20:11:51 +00:00
Johan Redestig
b5e36b7fbe Use privateFlags for the preserve geometry check
PRIVATE_FLAG_PRESERVE_GEOMETRY flag is set to privateFlag, thus this
path wasn't really used triggering side-effects with SurfaceView
placement.

Bug: 27607148
Author: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Change-Id: Ic2708bbcc9c2ab1cfaf324b6fd539a1ad027429c
2016-03-14 12:52:49 -07:00
Ajay Panicker
bf796d8777 Get adapter name and address on boot
Bug: 25836009
Change-Id: I6fe68b116fcd736cd5736be68c97af3052351b33
2016-03-14 19:32:55 +00:00
Jeff Davidson
1c0c14febf Merge "NetworkStats.Bucket API polish." into nyc-dev 2016-03-14 19:30:23 +00:00
Wale Ogunwale
7c74ae040d Merge "Disable FLAG_LAYOUT_NO_LIMITS window flag in multi-window mode" into nyc-dev 2016-03-14 19:26:27 +00:00
Amith Yamasani
3e9717bf38 Merge "Clear app idle state for removed packages" into nyc-dev 2016-03-14 19:13:26 +00:00
Amith Yamasani
bdda1e076e Clear app idle state for removed packages
On a package being added or removed, remove
app idle state for the app.

Bug: 27570398
Bug: 26182816
Change-Id: I14bdc1f951bbd99bda8111bea56f8c9dda04148d
2016-03-14 11:55:38 -07:00
Jeff Sharkey
815c6a8716 Merge "Offer to cache ContentResolver-related Bundles." into nyc-dev 2016-03-14 18:36:32 +00:00
Zach Kuznia
6ab4498ccc Merge "Fix double tap issue in TouchExplorer" into nyc-dev 2016-03-14 18:32:09 +00:00
Jeff Davidson
1f7e05eda6 NetworkStats.Bucket API polish.
-Add @IntDef constants for STATE_ and ROAMING_.
-Expand docs for ROAMING_ constants.
-Use ROAMING_NO/YES instead of ROAMING_DEFAULT/ROAMING.

Bug: 27531260
Change-Id: I54ecfb4148caa549214df0bee9983036ffa4cb55
2016-03-14 11:24:12 -07:00
Robin Lee
5a032c33e4 Merge "Specifically block suspending the package verifier." into nyc-dev 2016-03-14 18:22:49 +00:00
Michael Wright
848727cd66 Merge "Make display mirroring for local displays configurable." into nyc-dev 2016-03-14 18:16:52 +00:00
Andreas Gampe
d7f9220a7c Frameworks/base: Extract packages after cache pruning
In case the runtime pruned the dalvik cache on boot, run the package
extraction logic, so we have working oat files.

As the system server only runs in the primary ABI, this is best effort
and won't hit if only the secondary ABI has been pruned.

Bug: 27618311
Change-Id: I178d18d731a9dce5cb11ed0874c9c9c9d36d7d8e
2016-03-14 10:56:50 -07:00
Jeff Sharkey
8731408b11 Offer to cache ContentResolver-related Bundles.
There are a handful of core system services that collect data from
third-party ContentProviders by spinning them up and then caching the
results locally in memory.  However, if those apps are killed due to
low-memory pressure, they lose that cached data and have to collect
it again from scratch.  It's impossible for those apps to maintain a
correct cache when not running, since they'll miss out on Uri change
notifications.

To work around this, this change introducing a narrowly-scoped
caching mechanism that maps from Uris to Bundles.  The cache is
isolated per-user and per-calling-package, and internally it's
optimized to keep the Uri notification flow as fast as possible.
Each Bundle is invalidated whenever a notification event for a Uri
key is sent, or when the package hosting the provider is changed.

This change also wires up DocumentsUI to use this new mechanism,
which improves cold-start performance from 3300ms to 1800ms.  The
more DocumentsProviders a system has, the more pronounced this
benefit is.  Use BOOT_COMPLETED to build the cache at boot.

Add more permission docs, send a missing extra in DATA_CLEARED
broadcast.

Bug: 18406595
Change-Id: If3eae14bb3c69a8b83a65f530e081efc3b34d4bc
2016-03-14 11:45:50 -06:00
Wale Ogunwale
e89eeac547 Added input freeze reason string.
To help debug b/27576902

Bug: 27576902
Change-Id: Ic3d2bb25842593efb11e195a1bbe19bed3bf7067
2016-03-14 09:21:26 -07:00
Amith Yamasani
c070a099f5 Merge "Add ENCRYPTION_STATUS_ACTIVE_PER_USER to..." into nyc-dev 2016-03-14 15:54:19 +00:00
Brian Carlstrom
b4cab0bd5d Merge "frameworks/base: Make Thread::run threadName argument required" into nyc-dev 2016-03-14 15:18:06 +00:00
Robin Lee
d646b3d67f Merge "Skip lockdown setup if user is not up yet" into nyc-dev 2016-03-14 13:19:56 +00:00
Robin Lee
18566c1bae Skip lockdown setup if user is not up yet
Sometimes USER_UNLOCKED can be sent before USER_STARTED. This puts
lockdown in a bad state as it needs a fully-functioning user to tie
itself to and listen for connectivity events.

Bug: 27637943
Change-Id: I41a784a75a8c8674cb61dbba10693dd56c9396dd
2016-03-14 13:19:14 +00:00
Robin Lee
ab5ba2ef2a Specifically block suspending the package verifier.
Bug: 27635033
Change-Id: I65684239e0c1bcd710753ec76e436328a33f0967
2016-03-14 09:59:44 +00:00
Pierre Imai
68fe236172 Merge "Remove an unnecessary InputStream and prevent leaking memory." into nyc-dev 2016-03-14 02:54:11 +00:00
Carlos Valdivia
d39600585b Permissions: Get rid of GET_ACCOUNTS
Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
2016-03-13 17:13:54 -07:00
Brian Carlstrom
66f4831aa1 frameworks/base: Make Thread::run threadName argument required
Bug: 27557176
Change-Id: Icff15e51fb7c99387ac8317181d12749f343439a
2016-03-12 16:07:48 -08:00
Zachary Kuznia
fd6aa8a1fa Fix double tap issue in TouchExplorer
In certain conditions, the first tap in a double tap could be detected
as Touch Exploration.  This ensures that cannot occur.

Change-Id: I20941be54413534d9dc74e5a3152c27dd0c998fe
2016-03-11 20:21:13 -08:00
Wale Ogunwale
9185fb07c4 Disable FLAG_LAYOUT_NO_LIMITS window flag in multi-window mode
FLAG_LAYOUT_NO_LIMITS allows a window to extend its dimensions outside
the screen area by setting the display frame to a really big value.
We don't want this in multi-window mode since all window frames should
be limited to their parent task/stack dimensions.

Bug: 27577275
Change-Id: Ie0a8b8c13de91561e06dadc27aac3a5ba209d05b
2016-03-11 18:15:58 -08:00
Carlos Valdivia
83d036f497 Merge "Logging to KEY_INTENT security failure" into nyc-dev 2016-03-12 02:06:39 +00:00
Chris Tate
fcbe17e1e0 Merge "Once restored, the wallpaper needs to actually draw" into nyc-dev 2016-03-12 01:55:19 +00:00
Christopher Tate
41297ff82c Once restored, the wallpaper needs to actually draw
We now wait until both the wallpaper imagery and the metadata have
been restored [if present], and then explicitly regenerate the crop
from the source based on that.

Bug 27423845

Change-Id: I986efd13b6b73d25b5ab1215af516ccea3a5c609
2016-03-11 17:51:33 -08:00
Carlos Valdivia
6ede9c3d22 Logging to KEY_INTENT security failure
To help debugging we would like to know the targetPackageName and uid of
the KEY_INTENT that is being rejected.

Bug: 27598664
Change-Id: Idcf1eea82a96913947975b6fe3aa1e9c6e5109a7
2016-03-11 17:42:55 -08:00
Michael Wright
4b0fa173de Make display mirroring for local displays configurable.
While in general we still want to mirror the content of the default
displays onto content-less displays, some devices (e.g. Android Auto)
know they're going to have a secondary display for specific
information and don't want this behavior.

Change-Id: I068cc898a4118e78a5fff67bba27ad54504d9e2f
2016-03-11 17:28:35 -08:00
Makoto Onuki
d4c9e541ec Add ENCRYPTION_STATUS_ACTIVE_PER_USER to...
getStorageEncryptionStatus()
Use StorageManager APIs to get the encryption
state instead of from the system properties
directly.

Bug 26547262

Change-Id: Ic27baa9489d43a93873f8bb0428084f8886aed67
2016-03-11 15:50:04 -08:00
Anthony Hugh
526cb5a26a Merge "Add system wide long-press back button functionality" into nyc-dev 2016-03-11 22:52:59 +00:00
Ruben Brunk
89db9dbedb Merge "Allow per-package exemptions for restricted AppOps" into nyc-dev 2016-03-11 22:48:38 +00:00
Anthony Hugh
34f09ca843 Add system wide long-press back button functionality
This CL adds long-press back button functionality as a system
intercepted keypress.

Incorporated in this is an update to clockwork overlays so that
long-press on back will launch ACTION_VOICE_ASSIST.

BUG: 27313719
BUG: 27427088
Change-Id: Iaff337dc50e0022d2392c19d095cec98563b1c7d
2016-03-11 14:44:09 -08:00
Ruben Brunk
29931bc684 Allow per-package exemptions for restricted AppOps
- When setting blanket user restrictions, per-package
  exemptions may be granted.
- Exempt the current active VrListenerService from the
  blanket restriction on drawing overlays while in VR mode.

Bug: 26775563
Change-Id: I14b17a126502c7905a970ad42d25d6dd600b86b1
2016-03-11 14:05:44 -08:00
Makoto Onuki
5fe29adc81 Merge "ShortcutManager refactor: per-user information class" into nyc-dev 2016-03-11 21:52:21 +00:00