Commit Graph

58355 Commits

Author SHA1 Message Date
Nicolas Prevot
07387fedfa Add method to tell the dpc if provisioning is allowed.
The DPC can use it to tell if provisioning a managed profile or for
device owner would work or not.

BUG:25338478
Change-Id: I09ea6a9f23a8e88e4ed37c048170b2a68213086e
2015-11-04 14:50:22 +00:00
Ian Pedowitz
18896e0893 Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev am: 966d6040c6 am: 95fc53b029 am: d6f3e38738
am: 87455c7397

* commit '87455c7397605fba4bf3ad04af8df3c599a7a6ba':
  Limit persistent ashmem backed fds to a minimum of 128kB.
2015-11-03 23:34:54 +00:00
Jeff Sharkey
dde4ecbb93 Merge "Yell when calling installd with PM lock held." 2015-11-03 22:48:08 +00:00
Jeff Sharkey
8948c01eb7 Yell when calling installd with PM lock held.
As a matter of policy, we should never be holding the mPackages lock
while calling down into installd.  This little bit of logic helps us
catch accidental cases where this happens.

Change-Id: I676c81df43ef936ffd36290d45a79429630c1b4b
2015-11-03 14:44:20 -08:00
Ian Pedowitz
87455c7397 Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev am: 966d6040c6 am: 95fc53b029
am: d6f3e38738

* commit 'd6f3e38738c88821b28b2571d034fc1b189a35de':
  Limit persistent ashmem backed fds to a minimum of 128kB.
2015-11-03 22:21:48 +00:00
Chet Haase
1d17ee041d Merge "Un-hide FloatProperty and IntProperty" 2015-11-03 22:16:14 +00:00
Ian Pedowitz
95fc53b029 Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev
am: 966d6040c6

* commit '966d6040c6b171c75e9fb0ca942e84f9cf4d0dff':
  Limit persistent ashmem backed fds to a minimum of 128kB.
2015-11-03 22:05:23 +00:00
Ian Pedowitz
966d6040c6 Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev 2015-11-03 21:58:30 +00:00
Chet Haase
8240c97b01 Un-hide FloatProperty and IntProperty
These simple utility classes (used internally since Property was first introduced
way back in Jellybean) are the best way to avoid autoboxing when using the Property
approach to ObjectAnimator. But since their hidden, developers have to use the
autoboxing version (Property, the superclass) or know to come up with their own
primitive-optimized property subclasses.

This CL simply un-hides these two classes to make them usable outside of the framework.

Issue #21722783 Make [Int|Float]Property public

Change-Id: I7f3a456d108bf48587d711255d3577cce3ac5e24
2015-11-03 13:41:46 -08:00
Dianne Hackborn
24937d235d resolve merge conflicts of 3aee38c86e to master.
Change-Id: I9ff3f92b37e24f5f0527a0034b159920f6d7ffe1
2015-11-03 12:47:12 -08:00
Fyodor Kupolov
598ee3f6c2 Merge "Introduced short-term lock for UMS internal state" 2015-11-03 20:06:25 +00:00
Fyodor Kupolov
8240275381 Introduced short-term lock for UMS internal state
Added mUsersLock - short-term lock for internal state, when interaction and
synchronization with PM is not required. Modifications to mUsers and
mRemovingUserIds must be guarded by 3 locks: mInstallLock, mPackagesLock and
mUsersLock. While reads can use mUsersLock.

Testing revealed that the following methods in UMS often cause contention:
- exists
- getUserInfo
- getProfileParent

They all now use a short-term lock mUsersLock for reads.

Bug: 24979571
Change-Id: Ie3a22ea7cbb450c7969800fe2a4a2b2516165e5b
2015-11-03 11:56:33 -08:00
Dianne Hackborn
3aee38c86e Merge "Fix issue #25357209: Could not send SMS or MMS messages, had to reboot" into mnc-dr-dev am: 71e4984505 am: 9a13cc6992
am: a09ac2d998

* commit 'a09ac2d998fdc901fb65b57a061cc445922e081f':
  Fix issue #25357209: Could not send SMS or MMS messages, had to reboot
2015-11-03 19:40:43 +00:00
Chad Brubaker
9f591aeb8b Merge "Add stub isSameTrustConfiguration API" 2015-11-03 18:38:37 +00:00
Dianne Hackborn
9a13cc6992 Merge "Fix issue #25357209: Could not send SMS or MMS messages, had to reboot" into mnc-dr-dev
am: 71e4984505

* commit '71e49845054a3a7dacc51efc4fe658818caec048':
  Fix issue #25357209: Could not send SMS or MMS messages, had to reboot
2015-11-03 18:27:18 +00:00
Gustav Sennton
8966460103 Merge "Load WebView from one out of a list of packages, reland." 2015-11-03 17:50:07 +00:00
Riley Andrews
8cee7c1711 Limit persistent ashmem backed fds to a minimum of 128kB.
Bug 25256717

Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8
Signed-off-by: Riley Andrews <riandrews@google.com>
2015-11-03 17:46:15 +00:00
Dianne Hackborn
fcc95a6d2c Fix issue #25357209: Could not send SMS or MMS messages, had to reboot
I think what probably happened is that since we only report an app
going in to the "interaction" state as an interaction event to usage
stats, apps that sit around in that state forever will only see one
interaction at the start and never again.  So usage stats could start
thinking they are idle.

Fix this by having the activity manager report an interaction event
for such long running applications at least once a day.

Also, because it is correct and for paranoia by protected us another
way, system uids should never go in to standby.

Change-Id: I8a3805bfca86cbe78560488a649ecd07427da99a
2015-11-02 16:15:35 -08:00
Mikhail Naganov
9daceaf609 Small update to WebResourceRequest.isRedirect
Specify that 'isRedirect' is only true for server-side redirects.

Bug: 22346196
Change-Id: I9a8c31476c796265f554327dfff46778c5f84399
2015-11-02 15:38:29 -08:00
Makoto Onuki
5263492de6 Merge "Allow DO to disable camera device-wise." 2015-11-02 22:00:09 +00:00
Makoto Onuki
759a763f5f Allow DO to disable camera device-wise.
Bug 24538855

Change-Id: I421690f14ee57fa818d2b233fe48a90a0a575a9e
2015-11-02 13:33:58 -08:00
Rob Carr
31b09bdcdd Merge "Sync SurfaceView position changes to parent render." 2015-11-02 21:30:56 +00:00
Jun Mukai
4c759ca99f Merge "Fix: ToolType() check -> isFromSource()." 2015-11-02 21:27:24 +00:00
Jun Mukai
36a9946b23 Fix: ToolType() check -> isFromSource().
Change-Id: I8e13a179dc076cc44248662e6e8fd60e8cc69a3f
2015-11-02 13:15:00 -08:00
Wale Ogunwale
02a5a6bb9b Merge "Added StackId object for checking what features a stack supports" 2015-11-02 20:38:39 +00:00
Glenn Kasten
6a230aa10b Merge "CDD for pro audio feature does not specify acoustics" 2015-11-02 19:54:41 +00:00
Wale Ogunwale
3797c22ea1 Added StackId object for checking what features a stack supports
Helps make the code easier to follow since we are no longer checking
multiple stack ids at various decision points.

Bug: 25282299
Change-Id: Ifa6864a1ef56ce2eca4c94f87a4e0b993de987cd
2015-11-02 11:32:42 -08:00
Badhri Jagan Sridharan
2b2e24c2ab Merge "BatteryService: Add Max charging voltage" 2015-11-02 18:35:09 +00:00
Winson Chung
d1f2ebcdb3 Merge "Add ability to cancel task window transitions." 2015-11-02 18:17:12 +00:00
Winson
c28098f69b Add ability to cancel task window transitions.
Bug: 25392381

Change-Id: I45f48edc21c058df0e4c22ceaf7e9aef5899a29c
2015-11-02 10:16:23 -08:00
Winson
2dd7694681 Reporting task bounds in RecentTaskInfo.
Change-Id: I8e88d1aca5fa0ee316e93afe4fb63264e2d338f0
2015-11-02 18:04:38 +00:00
Glenn Kasten
7587edccd0 CDD for pro audio feature does not specify acoustics
Change-Id: If24a2ee485a35ad18969abacf55798b64ff939af
2015-10-30 18:26:49 -07:00
Jeff Sharkey
6dbf6fda8c Merge "resolve merge conflicts of 07c6628d68 to master." 2015-10-30 22:45:53 +00:00
Jeff Sharkey
df5f870d98 resolve merge conflicts of 07c6628d68 to master.
Change-Id: I29c9b408956c578ce1cfe0eb5d8704b7a5d2f818
2015-10-30 15:44:58 -07:00
Jeff Sharkey
07c6628d68 Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev am: a975732a83 am: 637d05eb5c
am: d359137d41

* commit 'd359137d419023f207351251cdbfa23180236963':
  Handle "uninstalled" apps when pruning app-ops.
2015-10-30 21:59:36 +00:00
Jeff Sharkey
637d05eb5c Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev
am: a975732a83

* commit 'a975732a8302893a40cdc444f893bf09b7669173':
  Handle "uninstalled" apps when pruning app-ops.
2015-10-30 21:37:17 +00:00
Filip Gruszczynski
57311f7617 Merge "Hide recents during freeform to recents animation." 2015-10-30 21:34:57 +00:00
Filip Gruszczynski
1a5203dfd5 Hide recents during freeform to recents animation.
Bug: 24913782
Change-Id: I6a5d3a638640571a902e095c4c0650b88eea0fb6
2015-10-30 14:33:48 -07:00
Rob Carr
64e516f5fa Sync SurfaceView position changes to parent render.
In order to provide pixel perfect movement of SurfaceViews
'within' other views (e.g. scrolling) we need to be able to
synchronize the attached (parent window) painting with the
movement of the SurfaceView (recall, SurfaceViews are positioned
behind their attached windows and the parent must render a
transparent region for the SurfaceView to appear). Provide
a new WindowManager method to reposition an attaching window
(that is to say, a window which has an attached window like
SurfaceView) and defer the transaction until the parent frame.
SurfaceView is hooked up to use this for movement. This is still
'racy' in the hardware accelerated case as the render thread
could be on either side of dequeing the frame we are working on.

Bug: 22802885
Change-Id: I025d2bdcbe15c1c11047cc0dbca2cf2b7d67c632
2015-10-30 21:23:28 +00:00
Rob Carr
b97ba3c09d Merge "Add window setDecorView API." 2015-10-30 20:55:35 +00:00
Filip Gruszczynski
bac13378ca Merge "More granular reporting of size configurations." 2015-10-30 20:45:38 +00:00
Anthony Hugh
58a98c4572 Merge "Add intent extra for determining if apps are system apps" into cw-e-dev am: 3a9bf5c8ce am: a8e20b3919
am: c2b3e48bb1

* commit 'c2b3e48bb1ab75163f8d7890db39b91436c06015':
  Add intent extra for determining if apps are system apps
2015-10-30 20:27:33 +00:00
Anthony Hugh
c2b3e48bb1 Merge "Add intent extra for determining if apps are system apps" into cw-e-dev am: 3a9bf5c8ce
am: a8e20b3919

* commit 'a8e20b391909cbc115e8996bd247e84a2819bfc3':
  Add intent extra for determining if apps are system apps
2015-10-30 20:19:36 +00:00
Anthony Hugh
3a9bf5c8ce Merge "Add intent extra for determining if apps are system apps" into cw-e-dev 2015-10-30 20:04:10 +00:00
Christopher Tate
14a7bb0d37 Introduce direct listener API for alarm delivery
The Alarm Manager now supports a set() variant that takes a listener
callback to invoke at alarm trigger time rather than a PendingIntent.
This is much lower overhead and has guaranteed low delivery latency
from the trigger time.  The tradeoff is that the app must be running
*continuously* from the time the alarm is set to the time it is
delivered.  If the app exits for any reason before the alarm fires,
the listener becomes invalid and the alarm will be dropped.  This is
more or less equivalent to setting an alarm with a broadcast
PendingIntent that matches only a runtime-registered receiver.

The app's alarm listener can be any object that implements the new
AlarmManager.OnAlarmListener interface and implements its onAlarm()
method.  There is no data delivered at alarm trigger time: whatever
state needs to be associated with the specific alarm instance should
simply be packaged inside the OnAlarmListener instance.

An alarm using OnAlarmListener can request that the onAlarm() method
be called on an arbitrary handler.  If the program passes 'null' for
this parameter when setting the alarm, the callback occurs on the
application's main Looper thread.

Bug 20157436

Change-Id: I2eb030a24efdd466a2eee1666c5231201b43684b
2015-10-30 12:14:15 -07:00
Amith Yamasani
8f18dd4dfa Merge "Don't store a static instance of UserManager" 2015-10-30 18:19:08 +00:00
Amith Yamasani
c0688301de Don't store a static instance of UserManager
Otherwise the context within it can't be GCed.
It's better to leave the caching to the ContextImpl.

Bug: 25308506
Change-Id: I9be3ba5b1bb6cdc88b77520b2fbd72d9b72ef30d
2015-10-30 10:40:03 -07:00
Dianne Hackborn
d176de5f9d Merge "Add API to determine if the app supplied a web URI." 2015-10-30 17:18:31 +00:00
Dianne Hackborn
dfc23dd185 Add API to determine if the app supplied a web URI.
Change-Id: I60aa39b9db822fe46ddd57ef5483b5708cf21422
2015-10-30 10:17:03 -07:00
Filip Gruszczynski
20aa0aed8c More granular reporting of size configurations.
There are two improvements in reporting size configurations:
1) duplicates are removed;
2) smallest width is reported separately;

Change-Id: I8f8235c99e6eefcae178e8d61e79ad0c4d6f1144
2015-10-30 10:14:17 -07:00