231388 Commits

Author SHA1 Message Date
Rubin Xu
7eadc1bf68 Canel all work notification when the profile is turned off
When the work profile is turned off, all work apps are killed and the
profile marked as stopped. Cancel all pending work notifications
immediately in this case, with a new reason.

Bug: 22541941
Change-Id: I97935c3bac3eba1e9c38f7449ebcc182f6c66769
2016-02-01 16:13:45 +00:00
John Reck
15d21b3aca Merge "Fix TextDropShadowCache infinite loop" 2016-02-01 15:24:57 +00:00
Matt Sarett
37a866e9a6 Merge "Encode paletted PNGs more efficiently (part 2)" 2016-02-01 15:22:42 +00:00
Matt Sarett
4c95e0b4df Merge "Encode paletted PNGs more efficiently" 2016-02-01 15:20:24 +00:00
Jason Monk
9bcdf36af2 Merge "Let SysUI watch TileService's dialog lifecycle" 2016-02-01 15:19:47 +00:00
Matthew Williams
b053d468dc Merge "Revert "Bugfix for accountsUpdated receiver in SyncManager"" 2016-02-01 15:16:57 +00:00
Matthew Williams
e4d4435e23 Revert "Bugfix for accountsUpdated receiver in SyncManager"
Hastily submitted this patch which is already fixed in ag/846619
reverting for simplicity of merge
This reverts commit d9be7216fdfc8eeebb9090af8eacd327cc0d2e1a.

Change-Id: I799869c33f42044ee4e06477ee46b83a3436cc40
2016-02-01 15:16:14 +00:00
Matthew Williams
a26bd2ab99 Merge "Bugfix for accountsUpdated receiver in SyncManager" 2016-02-01 15:14:49 +00:00
Wale Ogunwale
3dcb080b4a Merge "Renamed Activity class multi-window APIs" 2016-02-01 15:04:48 +00:00
Jason Monk
34a5cef629 Let SysUI watch TileService's dialog lifecycle
That way it can better handle tokens and service binding.

Change-Id: I9b882181ecbe52a65e731a2c45f1d296315884b4
2016-02-01 15:04:29 +00:00
Wale Ogunwale
3b93a4d351 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
2016-02-01 06:58:31 -08:00
Nicolas Prévot
20a0e405aa Merge "Don't forward an intent if all handlers are suspended." 2016-02-01 14:52:03 +00:00
Shreyas Basarge
23b1de1122 Merge "Run PeriodicJobs only if constraints are satisfied" 2016-02-01 14:33:44 +00:00
Matt Sarett
33fcd11bc2 Encode paletted PNGs more efficiently (part 2)
Many PNGs have multiple distinct pixels with zero alpha.  This
CL allows us to treat all of those pixels as a single zero pixel.

This saves space in the color palette and also may help save
memory pages when we skip writing zeros.

There is also a potential disadvantage: if someone intended to decode
this image as unpremultiplied with particular transfer modes where
their color components have an effect even though alpha is zero,
this will prevent that.  At the moment, we do not support unpremul as
a source, so this won't affect anyone trying to draw with the view
system.

This change originated in:
https://googleplex-android-review.git.corp.google.com/#/c/854580/

Change-Id: I702c7bd22d431cc7c775ed29bbd73c930f945ca3
2016-02-01 14:15:35 +00:00
Ritesh Reddy
e0cbb65e10 Merge "Revert "Enabled NetworkPolicy backup and restore."" 2016-02-01 14:05:04 +00:00
Geoff Mendal
37f153b445 Merge "Import translations. DO NOT MERGE" 2016-02-01 14:04:29 +00:00
Matt Sarett
2a84e23399 Encode paletted PNGs more efficiently
Saves about 2 MB of encoded size across affected assets.

Also will enable more efficient decoding.

Specifically, encoded palette values are assumed to be opaque unless
alpha values are provided in a tRNS chunk.  Before this change, we
would wastefully store many opaque alpha values in tRNS chunk.
Additionally, the decoder used to need to premultiply all of these
opaque colors, because the encoded data indicated that they had alpha.

Change-Id: Id21b3b31850c9db6149ced6d20ed5e0ce2d71c5b
2016-02-01 09:03:34 -05:00
Geoff Mendal
32dd489779 Import translations. DO NOT MERGE
Change-Id: Ief9ab0c1b5fd8f6ceb868e8cd9804ede5913d6f8
Auto-generated-cl: translation import
2016-02-01 06:03:29 -08:00
Geoff Mendal
7428715571 Merge "Import translations. DO NOT MERGE" 2016-02-01 14:03:15 +00:00
Geoff Mendal
0059d9c990 Import translations. DO NOT MERGE
Change-Id: Ieec11d6ae7c9daf5f56b4cca99fb2aa46acfc195
Auto-generated-cl: translation import
2016-02-01 06:01:48 -08:00
Ritesh Reddy
6b7f0f3061 Revert "Enabled NetworkPolicy backup and restore."
This reverts commit 9f548b00dcdd89e8d557223b8b99269ca7362c2e.

Change-Id: If0081fa34333339e36f9e8b9a34a2e3a84e4638f
2016-02-01 13:47:48 +00:00
Narayan Kamath
b61437de5f Merge "Revert "FloatingToolbar: Fix orientation change handling."" 2016-02-01 13:43:49 +00:00
Narayan Kamath
6608a80fb3 Revert "FloatingToolbar: Fix orientation change handling."
This reverts commit a874e30959c9a19275ff3ce47ba6deda1955d094.

Change-Id: I8e61e4d1f4af8dea71f69babbe6224c01bb6c6ac
2016-02-01 13:40:43 +00:00
Geoff Mendal
9eb94d7173 Import translations. DO NOT MERGE
Change-Id: I67ade5e23bfdea3b831bcdf4868456e27d735ff0
Auto-generated-cl: translation import
2016-02-01 05:18:12 -08:00
Abodunrinwa Toki
cc3fb7a463 Merge "FloatingToolbar: Fix orientation change handling." 2016-02-01 12:54:10 +00:00
Narayan Kamath
b368bb20a3 Merge "close file in PersistentDataBlockService jni" am: c71c44a524
am: 8e5a0d7da7

* commit '8e5a0d7da7f6df2c10d752b526a50ed4f5ade3fe':
  close file in PersistentDataBlockService jni
2016-02-01 11:42:45 +00:00
Narayan Kamath
8e5a0d7da7 Merge "close file in PersistentDataBlockService jni"
am: c71c44a524

* commit 'c71c44a524e3b5f1f6a9864a0f03b20acd153a6d':
  close file in PersistentDataBlockService jni
2016-02-01 11:38:27 +00:00
Narayan Kamath
c71c44a524 Merge "close file in PersistentDataBlockService jni" 2016-02-01 11:31:22 +00:00
Lianwei Wang
5c74bb313f close file in PersistentDataBlockService jni
The opened file should be closed.

Change-Id: I8a43b338c5c9eb0a5b1b5329eec767c6395bc7eb
Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
2016-02-01 11:31:12 +00:00
Kenny Root
1c008de8db Track libcore change
Internal master also has test-current.txt which needs the new Java8 SNI
things added to it.

Change-Id: I36ad96ffc57cbcec4f0996e4f9dd390aff260017
2016-02-01 03:24:05 -08:00
Kenny Root
cdf8bc9449 Merge changes from topic \'sni\' am: c76789d35a
am: a849f1e430

* commit 'a849f1e4309e7624bdb3da7b443907cfd829a82e':
  Track libcore change
  Track libcore change
2016-02-01 11:09:20 +00:00
Kenny Root
a849f1e430 Merge changes from topic \'sni\'
am: c76789d35a

* commit 'c76789d35a7ca92c0b334cc6cf4a44a0044b2a44':
  Track libcore change
  Track libcore change
2016-02-01 11:05:01 +00:00
Kenny Root
c76789d35a Merge changes from topic 'sni'
* changes:
  Track libcore change
  Track libcore change
2016-02-01 10:58:14 +00:00
Kenny Root
779efda769 Track libcore change
This tracks libcore change I5972095a2b51da50249016fda11ed4c046af4211
which adds honor-cipher-suite-ordering API.

Change-Id: I7f17e42561c76b4c0a3f451d1126458480c90273
2016-02-01 02:55:34 -08:00
Kenny Root
542349a995 Track libcore change
This tracks libcore change I23b85308ac25fd00307d37cff1d93ee6c2bfba98
which adds SNI support.

Change-Id: I93d8a4b07cc1f599123565a5c0672dd7848f05bf
2016-02-01 02:55:17 -08:00
Rubin Xu
c3cd05f8a4 Add DevicePolicyManager APIs for process logging.
Add Device Owner APIs for controlling and retrieving the logs. Retrieving the
logs should be rate limited unless we are at the risk of losing logs due to
constrained buffer space.

Bug: 22860162
Change-Id: I80658f5a14e86d7cfd42402fbc5e98dc11698c0e
2016-02-01 10:28:24 +00:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Erik Kline
4cc9ef8c74 Initial refactoring to group IP-related elements into an IpManager
am: a636761bd6

* commit 'a636761bd67963385397ee920dcf76ec7cf113fb':
  Initial refactoring to group IP-related elements into an IpManager
2016-02-01 10:08:40 +00:00
Erik Kline
a636761bd6 Initial refactoring to group IP-related elements into an IpManager
Bug: 17345682
Change-Id: I88f3f4bd32d18cd8d4f1404493648c8bcc1deeec
2016-02-01 17:59:47 +09:00
Daichi Hirono
163e4b6ae8 Add launch notification for MTP devices.
The CL adds launch notification that are shown after MTP/PTP device is
connected to Android device. By tapping the notification, Users can
launch an applicaiton that can handle USB_DEVICE_ATTACHED intent of MTP
device.

BUG=26611224

Change-Id: I6fd179ccd436531dfff6ff9a50dc2b754c20f190
2016-02-01 13:28:01 +09:00
Tomasz Mikolajewski
7fa765a40e Merge "Cleanup copyDocument and moveDocument in SAF." 2016-02-01 00:17:30 +00:00
Wale Ogunwale
14a79bd12a Merge changes I8d546487,Ib62d357f
* changes:
  Allow resizeableActivity to be specified at the application level
  Renamed manifest attributes initialWidth/Height to defaultWidth/Height
2016-01-31 20:02:45 +00:00
Wale Ogunwale
174d36d87a Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:16 +00:00
Wale Ogunwale
1902169600 Merge "API council recommended changes to bounds APIs in ActivityOptions" 2016-01-31 19:51:37 +00:00
Jeff Sharkey
a8b42780c2 Ignore null actions.
Bug: 26862905
Change-Id: I30a21e67b0f60ebca5eaccc843834059e52a6b78
2016-01-30 17:58:09 -07:00
Jeff Sharkey
634dc42c9e Throw when using deprecated file modes.
installd no longer grants o+x to private app data directories for
apps targeting N, so the long-deprecated MODE_WORLD_READABLE and
MODE_WORLD_WRITEABLE flags no longer have any effect, which may lead
to frustrating debugging sessions.

So to help clearly communicate that these flags no longer work, let's
throw when an app targeting N tries using them.

Bug: 26886867
Change-Id: I97dae6182fc3c55639ff37a39c4aae6dd0bed507
2016-01-30 17:48:32 -07:00
Jeff Sharkey
35871f2c2b Offer to migrate databases and SharedPreferences.
Databases and SharedPreferences often involve multiple files under
the hood, so developers wanting to migrate them between different
storage contexts should ask us to make sure all relevant files are
migrated correctly.

This makes a best-effort attempt to recover from battery pulls
during migration, while still trying to alert developers to
conflicting files.

Bug: 26668510, 25860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0
2016-01-30 17:03:23 -07:00
Aga Wronska
f6ede47b78 Merge "Hide action bar search icon in directories that do not support search operation." 2016-01-30 22:01:50 +00:00
Wale Ogunwale
6afdf91b17 Allow resizeableActivity to be specified at the application level
Makes it easier for developers to set a state for all their activities
vs. doing it individually.

Bug: 26508215
Change-Id: I8d546487b6461a03f75cce7760522e7af9fc2740
2016-01-30 13:01:33 -08:00
Wale Ogunwale
b12e1099ce Renamed manifest attributes initialWidth/Height to defaultWidth/Height
Per feedback from API council.

Bug: 26508215
Change-Id: Ib62d357f0e6309ad6f6305ba5ac376c5e3ab04e7
2016-01-30 12:24:44 -08:00