Commit Graph

7272 Commits

Author SHA1 Message Date
Svetoslav Ganov
8032741bdc Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev am: 0f3431b616
am: 8a20395156

* commit '8a203951566e6e5df730c49fb35054a851eb8834':
  Improve requestPermissions API docs and throw correct exception.
2016-02-19 04:16:19 +00:00
Svetoslav Ganov
8a20395156 Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev
am: 0f3431b616

* commit '0f3431b616e03fe76cb52cabad209f95e1d7899c':
  Improve requestPermissions API docs and throw correct exception.
2016-02-19 04:10:02 +00:00
Svetoslav Ganov
0f3431b616 Merge "Improve requestPermissions API docs and throw correct exception." into nyc-dev 2016-02-19 04:03:50 +00:00
Svet Ganov
f66381cd0d Improve requestPermissions API docs and throw correct exception.
bug:26220898

Change-Id: Iebda3fe13b963b10829de917fb00a9a14186b72c
2016-02-18 20:02:40 -08:00
Dianne Hackborn
c0e1a23a26 Merge "Implement lenient background check option." 2016-02-19 00:29:54 +00:00
Adam Powell
dbc45f3778 Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev am: 35c8e0fcf2
am: e0967f875e

* commit 'e0967f875ebf080b4231a56e7252905c334fe7dc':
  Fix NPE for Fragment#setUserVisibleHint(true)
2016-02-18 23:58:46 +00:00
Adam Powell
e0967f875e Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev
am: 35c8e0fcf2

* commit '35c8e0fcf2e26f24ac21bb3df87158d4a0f4587f':
  Fix NPE for Fragment#setUserVisibleHint(true)
2016-02-18 23:53:06 +00:00
Adam Powell
35c8e0fcf2 Merge "Fix NPE for Fragment#setUserVisibleHint(true)" into nyc-dev 2016-02-18 23:44:15 +00:00
Adam Powell
255b008afe Fix NPE for Fragment#setUserVisibleHint(true)
Fix a bug where calling setUserVisibleHint(true) before adding a
Fragment to a FragmentManager could cause a crash.

Bug 27250018

Change-Id: Id192ae31bab95f15d32de9f105e707bdb8691641
2016-02-18 15:17:29 -08:00
Christopher Tate
a836c545c3 Keyguard wallpaper am: be132e6ea4
am: 15e95000b1

* commit '15e95000b18086fc4f5dd948207a8fa863492852':
  Keyguard wallpaper
2016-02-18 23:16:51 +00:00
Christopher Tate
15e95000b1 Keyguard wallpaper
am: be132e6ea4

* commit 'be132e6ea494023d4b8c37658a34efa8b705dce9':
  Keyguard wallpaper
2016-02-18 23:10:07 +00:00
Christopher Tate
be132e6ea4 Keyguard wallpaper
Clients can now set a lock-only wallpaper that Keyguard can
observe and choose to draw as appropriate.

Bug 25454162

Change-Id: I3fc30e02919e814b55dfded2a1a36ad9d2e55299
2016-02-18 15:01:02 -08:00
Dianne Hackborn
72bea4a1f0 Implement lenient background check option.
Which really means, make background check much more
strict, with an option to revert to the more lenient
behavior.

In this strict version, an app can't have services
started or receive broadcasts at any point when it is
not foreground.  Also, it doesn't matter the importance
of a caller trying to start a service, it only depends
on the state of the app whose service is being started.

A new activity shell command allows you to control
whether to use the strict or lenient behavior.

Change-Id: I660df480dd55575a38c9542210210ec53e34eca0
2016-02-18 13:42:52 -08:00
Antonio Cansado
c607d1db22 Merge "Implementation of data usage callbacks." into nyc-dev am: 12d7ea815b
am: 7e098af672

* commit '7e098af67280dbc877790486043998b13e83986e':
  Implementation of data usage callbacks.
2016-02-18 21:12:15 +00:00
Antonio Cansado
7e098af672 Merge "Implementation of data usage callbacks." into nyc-dev
am: 12d7ea815b

* commit '12d7ea815b772b1013f9f5a583d296701a702a0c':
  Implementation of data usage callbacks.
2016-02-18 20:53:58 +00:00
Jeff Sharkey
3825dcd754 Merge "Make BackupManager encryption aware." into nyc-dev
am: 003ee19851

* commit '003ee198518490c9572e610ddc21e8b3a024364c':
  Make BackupManager encryption aware.
2016-02-18 20:52:48 +00:00
Antonio Cansado
12d7ea815b Merge "Implementation of data usage callbacks." into nyc-dev 2016-02-18 19:43:42 +00:00
Julia Reynolds
487295103d Merge "Inflate and strip remote views for pre-N apps." into nyc-dev am: 4bb2de2557
am: 3c2ed58ff0

* commit '3c2ed58ff01b5443c6d29f5bf873a28062fe0715':
  Inflate and strip remote views for pre-N apps.
2016-02-18 19:00:55 +00:00
Julia Reynolds
3c2ed58ff0 Merge "Inflate and strip remote views for pre-N apps." into nyc-dev
am: 4bb2de2557

* commit '4bb2de255733d48cbb21587fa4ab0eb4eacee943':
  Inflate and strip remote views for pre-N apps.
2016-02-18 18:40:09 +00:00
Jeff Sharkey
2c1ba9a961 Make BackupManager encryption aware.
Backup requires both CE and DE storage to be available, so delay
spinning up the backup system until the user is unlocked, since
that's when CE storage becomes available.  Note that devices without
FBE immediately transition USER_SYSTEM into the unlocked state,
since their CE is always available.

Offer to backup and restore files under both CE and DE.  Since DE
is effectively the same as CE, most logic is simply duplicated for
now, but it could be simplified in the future.  Since system apps
can force their default storage location to DE, we always build
explicit CE and DE paths.

Add getDataDir() to give clean access to the top-level private data
directory, but disclaim that apps shouldn't create files there.

Bug: 26279618
Change-Id: Ic34a4b330223725db93b1d0f5c9dffc88002c61f
2016-02-18 10:54:11 -07:00
Jeff Sharkey
7368938550 Merge "Make BackupManager encryption aware." 2016-02-18 17:38:42 +00:00
Julia Reynolds
d4ea741d66 Inflate and strip remote views for pre-N apps.
Bug: 27120291
Change-Id: I4e1497222f3787e68c3e385e45ab6a7c23799917
2016-02-18 08:35:45 -05:00
Antonio Cansado
cd42acd951 Implementation of data usage callbacks.
NetworkStatsService will register data usage requests
and keep data usage stats scoped to the request.

There are different types of data usage requests
- scoped to a set of NetworkTemplate; these are restrictred to
device owners and carrier apps and allow the caller to monitor
all activity on the specified interfaces.
- scoped to all uids visible to the user, if the user has
android.Manifest.permission#PACKAGE_USAGE_STATS permission.
The set of uids may change over time, so we keep track of that.
- scoped to a set of uids given by the caller, granted that
the caller has access to those uids.
- scoped to the caller's own data usage. This doesn't require
PACKAGE_USAGE_STATS.

Bug: 25812785
Change-Id: Ie11f35fc1f29d0dbe82f7fc924b169bb55c76708
2016-02-17 18:43:53 -08:00
Winson
30a969b513 Only set the task description if the colors are opaque. am: 2d47683ab9
am: 07801468b2

* commit '07801468b2b1c61e2fcb0a12516e1b3d1de5a466':
  Only set the task description if the colors are opaque.
2016-02-18 00:24:00 +00:00
Winson
07801468b2 Only set the task description if the colors are opaque.
am: 2d47683ab9

* commit '2d47683ab969a1da30209e44712ce6513e324b89':
  Only set the task description if the colors are opaque.
2016-02-18 00:18:06 +00:00
Makoto Onuki
933f3d03c3 Merge "[framework] Don\'t allow apps on external storage to be active admin" into nyc-dev am: fc482c30b7
am: d55874a6e2

* commit 'd55874a6e2a98527d32b148d8ea097e9dea319e3':
  [framework] Don't allow apps on external storage to be active admin
2016-02-18 00:00:11 +00:00
Makoto Onuki
d55874a6e2 Merge "[framework] Don\'t allow apps on external storage to be active admin" into nyc-dev
am: fc482c30b7

* commit 'fc482c30b7a3c2cf7bc14d5c86de758a16f6433d':
  [framework] Don't allow apps on external storage to be active admin
2016-02-17 23:51:15 +00:00
Jeff Sharkey
5808319629 Make BackupManager encryption aware.
Backup requires both CE and DE storage to be available, so delay
spinning up the backup system until the user is unlocked, since
that's when CE storage becomes available.  Note that devices without
FBE immediately transition USER_SYSTEM into the unlocked state,
since their CE is always available.

Offer to backup and restore files under both CE and DE.  Since DE
is effectively the same as CE, most logic is simply duplicated for
now, but it could be simplified in the future.  Since system apps
can force their default storage location to DE, we always build
explicit CE and DE paths.

Add getDataDir() to give clean access to the top-level private data
directory, but disclaim that apps shouldn't create files there.

Bug: 26279618
Change-Id: Ic34a4b330223725db93b1d0f5c9dffc88002c61f
2016-02-17 16:34:29 -07:00
Winson
2d47683ab9 Only set the task description if the colors are opaque.
Bug: 27214638
Change-Id: I75e0b8871087f0b8e6acd16dc751bb6374c0f968
2016-02-17 23:23:45 +00:00
Makoto Onuki
fc482c30b7 Merge "[framework] Don't allow apps on external storage to be active admin" into nyc-dev 2016-02-17 22:48:13 +00:00
Makoto Onuki
f34db0a17e [framework] Don't allow apps on external storage to be active admin
Bug 27149287

Change-Id: I6d959d2e66dc0b19f78e6135fbdcf45ca8551958
2016-02-17 14:24:25 -08:00
Amith Yamasani
f886598679 Merge "Clean up App Standby code" into nyc-dev am: 0137c3daf4
am: 4dcb319701

* commit '4dcb3197011c5fe75a3a39d436423689af27227a':
  Clean up App Standby code
2016-02-17 22:21:55 +00:00
Amith Yamasani
4dcb319701 Merge "Clean up App Standby code" into nyc-dev
am: 0137c3daf4

* commit '0137c3daf4bdd3154b71d9b34536960c424fc422':
  Clean up App Standby code
2016-02-17 22:01:27 +00:00
Amith Yamasani
0137c3daf4 Merge "Clean up App Standby code" into nyc-dev 2016-02-17 21:50:32 +00:00
Amith Yamasani
ca5d6d2a81 Clean up App Standby code
Don't continue to check idle states for removed / stopped users.
No need to check for uninstalled packages for all users.

Bug: 27208519
Change-Id: I9a3a3bbec560dd380ce90df9fef102d7f62769ca
2016-02-17 13:36:48 -08:00
Edward Cunningham
11b2f01262 Merge "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details." into nyc-dev
am: e619e33b60

* commit 'e619e33b606dbdd885d5379a6f1fd60636ff59a2':
  DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.
2016-02-17 17:55:21 +00:00
Edward Cunningham
e619e33b60 Merge "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details." into nyc-dev 2016-02-17 17:50:45 +00:00
Andrei Stingaceanu
6cc3a00f96 Merge "Suspend packages - one call for multiple packages" into nyc-dev am: 3e7bfe98e0
am: cb4634aa72

* commit 'cb4634aa72c8435705e41d7b0bf714b5c276022e':
  Suspend packages - one call for multiple packages
2016-02-17 15:30:07 +00:00
Andrei Stingaceanu
cb4634aa72 Merge "Suspend packages - one call for multiple packages" into nyc-dev
am: 3e7bfe98e0

* commit '3e7bfe98e0727f54fe369bfa6b416e1d040830a7':
  Suspend packages - one call for multiple packages
2016-02-17 15:23:54 +00:00
Andrei Stingaceanu
3e7bfe98e0 Merge "Suspend packages - one call for multiple packages" into nyc-dev 2016-02-17 15:17:35 +00:00
Andrei Stingaceanu
eb84b1843a Suspend packages - one call for multiple packages
Refactor setPackageSuspended into setPackagesSuspended. The rationale
is that the consumers of this API are likely to want to remove
multiple packages at once. Rather than calling the API N times, call
it just once.

The good part is that we already have the broadcast intent for
suspended packages take an array so only one broadcast. Less stress
on the system.

Another good part is that (right now) we only have one consumer of
this API and it will be easy to make changes once this CL goes in.

As a shell command, for consistency only allowed one package at
a time.

Bug: 22776761
Change-Id: Ic8b8cf64d0a288ea3a282bb7b72f9d663b3b0049
2016-02-17 15:14:33 +00:00
Sergey Poromov
137a63025b Merge "Fix BackupTransport#getBackupQuota() javadoc." into nyc-dev am: af11ff0c03
am: 05878e0b06

* commit '05878e0b06c1e717c903cfe9fec2769b5f983e5b':
  Fix BackupTransport#getBackupQuota() javadoc.
2016-02-17 13:56:08 +00:00
Sergey Poromov
05878e0b06 Merge "Fix BackupTransport#getBackupQuota() javadoc." into nyc-dev
am: af11ff0c03

* commit 'af11ff0c03a774324726ade96ef162dbe9f279f4':
  Fix BackupTransport#getBackupQuota() javadoc.
2016-02-17 13:51:20 +00:00
Sergey Poromov
af11ff0c03 Merge "Fix BackupTransport#getBackupQuota() javadoc." into nyc-dev 2016-02-17 13:46:23 +00:00
Andrei Stingaceanu
4d9c991308 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev am: 5ae4e73ef0
am: d09548d408

* commit 'd09548d4082996edebc2ae96861be1bc510be34b':
  Suspend packages - new API for retrieving the suspended status
2016-02-17 12:07:18 +00:00
Andrei Stingaceanu
d09548d408 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev
am: 5ae4e73ef0

* commit '5ae4e73ef0747c2d08a901f1a76d8fb8ee64a53a':
  Suspend packages - new API for retrieving the suspended status
2016-02-17 12:03:16 +00:00
Andrei Stingaceanu
5ae4e73ef0 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev 2016-02-17 11:57:51 +00:00
Jorim Jaggi
6859c86aa3 Fix recents transitions am: 8a5c64062f
am: ec8506212c

* commit 'ec8506212c096f8e8c6404bd762e7472c8b08277':
  Fix recents transitions
2016-02-17 06:27:22 +00:00
Jorim Jaggi
ec8506212c Fix recents transitions
am: 8a5c64062f

* commit '8a5c64062f78b96c05638171a78331a2f8d422b5':
  Fix recents transitions
2016-02-17 06:23:20 +00:00
Jorim Jaggi
8a5c64062f Fix recents transitions
- Also animate when there is no thumbnail, which can frequently
happen after exiting multi-window.
- Also animate when the target stack id is INVALID, because we
currently don't persist stack id's in the tasks.

Change-Id: I280c85e62f55d712408a3e77c43f665acb19bc4c
2016-02-17 06:17:48 +00:00