OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Only create custom database paths."
Jeff Sharkey [Mon, 1 Feb 2016 17:18:59 +0000 (17:18 +0000)]
Merge "Only create custom database paths."

8 years agoOnly create custom database paths.
Jeff Sharkey [Mon, 1 Feb 2016 17:16:01 +0000 (10:16 -0700)]
Only create custom database paths.

If the getDatabasePath() caller is using the default getDatabasesDir()
path, that method already handles possible path creation, so no
need for us to retry.

Also fix two small bugs that would have NPE'ed when listing files in
a directory that wasn't created.

Bug: 26895777
Change-Id: Iced16b05cfe95062717da8d0414c48daefcb5648

8 years agoMerge "Skip setting up cache paths on system package."
Jeff Sharkey [Mon, 1 Feb 2016 17:02:42 +0000 (17:02 +0000)]
Merge "Skip setting up cache paths on system package."

8 years agoSkip setting up cache paths on system package.
Jeff Sharkey [Mon, 1 Feb 2016 16:59:12 +0000 (09:59 -0700)]
Skip setting up cache paths on system package.

The system package doesn't have any real data directories, so we
shouldn't try setting any cache paths.

Bug: 26895494
Change-Id: Iafca72f51d77eac5f602d842369de74ae8669b02

8 years agoMerge "Merge decor caption button drawables."
Filip Gruszczynski [Mon, 1 Feb 2016 16:47:31 +0000 (16:47 +0000)]
Merge "Merge decor caption button drawables."

8 years agoMerge "Temporarily remove file:// Uri checks in Notification.sound."
Daniel Sandler [Mon, 1 Feb 2016 16:45:45 +0000 (16:45 +0000)]
Merge "Temporarily remove file:// Uri checks in Notification.sound."

8 years agoMerge "Add some cmds for statusbar"
Jason Monk [Mon, 1 Feb 2016 16:39:06 +0000 (16:39 +0000)]
Merge "Add some cmds for statusbar"

8 years agoTemporarily remove file:// Uri checks in Notification.sound.
Dan Sandler [Mon, 1 Feb 2016 16:33:54 +0000 (11:33 -0500)]
Temporarily remove file:// Uri checks in Notification.sound.

Bug: 26895798
Change-Id: I83034ab812108a5f692bbb608faf5951682f212e

8 years agoMerge "Clear/restore calling identity for ChooserTargetService"
Adam Powell [Mon, 1 Feb 2016 16:33:41 +0000 (16:33 +0000)]
Merge "Clear/restore calling identity for ChooserTargetService"

8 years agoMerge "Canel all work notification when the profile is turned off"
Rubin Xu [Mon, 1 Feb 2016 16:32:21 +0000 (16:32 +0000)]
Merge "Canel all work notification when the profile is turned off"

8 years agoCanel all work notification when the profile is turned off
Rubin Xu [Mon, 1 Feb 2016 16:13:45 +0000 (16:13 +0000)]
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

8 years agoMake color matrix parsing more robust.
Dan Sandler [Sat, 30 Jan 2016 04:27:59 +0000 (23:27 -0500)]
Make color matrix parsing more robust.

Bug: 26880793
Change-Id: I95e1b24ed949c6b341ecee7de5732a286c674824

8 years agoMerge "Fix crash in add QS tiles"
Jason Monk [Mon, 1 Feb 2016 16:10:53 +0000 (16:10 +0000)]
Merge "Fix crash in add QS tiles"

8 years agoFix crash in add QS tiles
Jason Monk [Mon, 1 Feb 2016 16:08:18 +0000 (11:08 -0500)]
Fix crash in add QS tiles

It seems one of the tiles has an empty icon... Fix the crash for
now, will deal with the tile later.

Bug: 26897121
Change-Id: I9abd073a891a5222711fe81ed05ade2a87d70121

8 years agoMerge "Updated Javadoc to reflect min period"
Shreyas Basarge [Mon, 1 Feb 2016 16:07:21 +0000 (16:07 +0000)]
Merge "Updated Javadoc to reflect min period"

8 years agoUpdated Javadoc to reflect min period
Shreyas Basarge [Fri, 29 Jan 2016 19:25:51 +0000 (19:25 +0000)]
Updated Javadoc to reflect min period

Javadoc updated and logging added for
min period and min flex enforcements
in JobScheduler and SyncManager.

Bug: 26874152
Change-Id: Ifdd248b776a1bd04df21b7b9f0ac96bdef0f8bb6

8 years agoMerge "SyncManager on JobScheduler"
Shreyas Basarge [Mon, 1 Feb 2016 15:32:58 +0000 (15:32 +0000)]
Merge "SyncManager on JobScheduler"

8 years agoMerge "Fix TextDropShadowCache infinite loop"
John Reck [Mon, 1 Feb 2016 15:24:57 +0000 (15:24 +0000)]
Merge "Fix TextDropShadowCache infinite loop"

8 years agoMerge "Encode paletted PNGs more efficiently (part 2)"
Matt Sarett [Mon, 1 Feb 2016 15:22:42 +0000 (15:22 +0000)]
Merge "Encode paletted PNGs more efficiently (part 2)"

8 years agoMerge "Encode paletted PNGs more efficiently"
Matt Sarett [Mon, 1 Feb 2016 15:20:24 +0000 (15:20 +0000)]
Merge "Encode paletted PNGs more efficiently"

8 years agoMerge "Let SysUI watch TileService's dialog lifecycle"
Jason Monk [Mon, 1 Feb 2016 15:19:47 +0000 (15:19 +0000)]
Merge "Let SysUI watch TileService's dialog lifecycle"

8 years agoMerge "Revert "Bugfix for accountsUpdated receiver in SyncManager""
Matthew Williams [Mon, 1 Feb 2016 15:16:57 +0000 (15:16 +0000)]
Merge "Revert "Bugfix for accountsUpdated receiver in SyncManager""

8 years agoRevert "Bugfix for accountsUpdated receiver in SyncManager"
Matthew Williams [Mon, 1 Feb 2016 15:16:14 +0000 (15:16 +0000)]
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

8 years agoMerge "Bugfix for accountsUpdated receiver in SyncManager"
Matthew Williams [Mon, 1 Feb 2016 15:14:49 +0000 (15:14 +0000)]
Merge "Bugfix for accountsUpdated receiver in SyncManager"

8 years agoMerge "Renamed Activity class multi-window APIs"
Wale Ogunwale [Mon, 1 Feb 2016 15:04:48 +0000 (15:04 +0000)]
Merge "Renamed Activity class multi-window APIs"

8 years agoLet SysUI watch TileService's dialog lifecycle
Jason Monk [Fri, 29 Jan 2016 16:28:44 +0000 (11:28 -0500)]
Let SysUI watch TileService's dialog lifecycle

That way it can better handle tokens and service binding.

Change-Id: I9b882181ecbe52a65e731a2c45f1d296315884b4

8 years agoRenamed Activity class multi-window APIs
Wale Ogunwale [Sat, 30 Jan 2016 01:46:53 +0000 (17:46 -0800)]
Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827

8 years agoAdd some cmds for statusbar
Jason Monk [Thu, 28 Jan 2016 15:40:20 +0000 (10:40 -0500)]
Add some cmds for statusbar

They will be used for tests?!

Also move around where some of the tile lifecycle happens so that
it can easily be shared with these commands.

Change-Id: I72386afce5a2d335df45ecc5946679efcd826bae

8 years agoMerge "Don't forward an intent if all handlers are suspended."
Nicolas Prévot [Mon, 1 Feb 2016 14:52:03 +0000 (14:52 +0000)]
Merge "Don't forward an intent if all handlers are suspended."

8 years agoMerge "Run PeriodicJobs only if constraints are satisfied"
Shreyas Basarge [Mon, 1 Feb 2016 14:33:44 +0000 (14:33 +0000)]
Merge "Run PeriodicJobs only if constraints are satisfied"

8 years agoEncode paletted PNGs more efficiently (part 2)
Matt Sarett [Fri, 29 Jan 2016 23:02:41 +0000 (18:02 -0500)]
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

8 years agoMerge "Revert "Enabled NetworkPolicy backup and restore.""
Ritesh Reddy [Mon, 1 Feb 2016 14:05:04 +0000 (14:05 +0000)]
Merge "Revert "Enabled NetworkPolicy backup and restore.""

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 1 Feb 2016 14:04:29 +0000 (14:04 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoEncode paletted PNGs more efficiently
Matt Sarett [Thu, 28 Jan 2016 23:38:38 +0000 (18:38 -0500)]
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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 1 Feb 2016 14:03:29 +0000 (06:03 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ief9ab0c1b5fd8f6ceb868e8cd9804ede5913d6f8
Auto-generated-cl: translation import

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 1 Feb 2016 14:03:15 +0000 (14:03 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 1 Feb 2016 14:01:48 +0000 (06:01 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ieec11d6ae7c9daf5f56b4cca99fb2aa46acfc195
Auto-generated-cl: translation import

8 years agoRevert "Enabled NetworkPolicy backup and restore."
Ritesh Reddy [Mon, 1 Feb 2016 13:47:48 +0000 (13:47 +0000)]
Revert "Enabled NetworkPolicy backup and restore."

This reverts commit 9f548b00dcdd89e8d557223b8b99269ca7362c2e.

Change-Id: If0081fa34333339e36f9e8b9a34a2e3a84e4638f

8 years agoMerge "Revert "FloatingToolbar: Fix orientation change handling.""
Narayan Kamath [Mon, 1 Feb 2016 13:43:49 +0000 (13:43 +0000)]
Merge "Revert "FloatingToolbar: Fix orientation change handling.""

8 years agoRevert "FloatingToolbar: Fix orientation change handling."
Narayan Kamath [Mon, 1 Feb 2016 13:40:43 +0000 (13:40 +0000)]
Revert "FloatingToolbar: Fix orientation change handling."

This reverts commit a874e30959c9a19275ff3ce47ba6deda1955d094.

Change-Id: I8e61e4d1f4af8dea71f69babbe6224c01bb6c6ac

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 1 Feb 2016 13:18:12 +0000 (05:18 -0800)]
Import translations. DO NOT MERGE

Change-Id: I67ade5e23bfdea3b831bcdf4868456e27d735ff0
Auto-generated-cl: translation import

8 years agoMerge "FloatingToolbar: Fix orientation change handling."
Abodunrinwa Toki [Mon, 1 Feb 2016 12:54:10 +0000 (12:54 +0000)]
Merge "FloatingToolbar: Fix orientation change handling."

8 years agoMerge "close file in PersistentDataBlockService jni" am: c71c44a524
Narayan Kamath [Mon, 1 Feb 2016 11:42:45 +0000 (11:42 +0000)]
Merge "close file in PersistentDataBlockService jni" am: c71c44a524
am: 8e5a0d7da7

* commit '8e5a0d7da7f6df2c10d752b526a50ed4f5ade3fe':
  close file in PersistentDataBlockService jni

8 years agoMerge "close file in PersistentDataBlockService jni"
Narayan Kamath [Mon, 1 Feb 2016 11:38:27 +0000 (11:38 +0000)]
Merge "close file in PersistentDataBlockService jni"
am: c71c44a524

* commit 'c71c44a524e3b5f1f6a9864a0f03b20acd153a6d':
  close file in PersistentDataBlockService jni

8 years agoMerge "close file in PersistentDataBlockService jni"
Narayan Kamath [Mon, 1 Feb 2016 11:31:22 +0000 (11:31 +0000)]
Merge "close file in PersistentDataBlockService jni"

8 years agoclose file in PersistentDataBlockService jni
Lianwei Wang [Thu, 14 Jan 2016 02:42:35 +0000 (18:42 -0800)]
close file in PersistentDataBlockService jni

The opened file should be closed.

Change-Id: I8a43b338c5c9eb0a5b1b5329eec767c6395bc7eb
Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
8 years agoTrack libcore change
Kenny Root [Mon, 1 Feb 2016 11:24:03 +0000 (03:24 -0800)]
Track libcore change

Internal master also has test-current.txt which needs the new Java8 SNI
things added to it.

Change-Id: I36ad96ffc57cbcec4f0996e4f9dd390aff260017

8 years agoMerge changes from topic \'sni\' am: c76789d35a
Kenny Root [Mon, 1 Feb 2016 11:09:20 +0000 (11:09 +0000)]
Merge changes from topic \'sni\' am: c76789d35a
am: a849f1e430

* commit 'a849f1e4309e7624bdb3da7b443907cfd829a82e':
  Track libcore change
  Track libcore change

8 years agoMerge changes from topic \'sni\'
Kenny Root [Mon, 1 Feb 2016 11:05:01 +0000 (11:05 +0000)]
Merge changes from topic \'sni\'
am: c76789d35a

* commit 'c76789d35a7ca92c0b334cc6cf4a44a0044b2a44':
  Track libcore change
  Track libcore change

8 years agoMerge changes from topic 'sni'
Kenny Root [Mon, 1 Feb 2016 10:58:14 +0000 (10:58 +0000)]
Merge changes from topic 'sni'

* changes:
  Track libcore change
  Track libcore change

8 years agoTrack libcore change
Kenny Root [Fri, 15 Jan 2016 23:10:02 +0000 (15:10 -0800)]
Track libcore change

This tracks libcore change I5972095a2b51da50249016fda11ed4c046af4211
which adds honor-cipher-suite-ordering API.

Change-Id: I7f17e42561c76b4c0a3f451d1126458480c90273

8 years agoTrack libcore change
Kenny Root [Fri, 15 Jan 2016 23:10:02 +0000 (15:10 -0800)]
Track libcore change

This tracks libcore change I23b85308ac25fd00307d37cff1d93ee6c2bfba98
which adds SNI support.

Change-Id: I93d8a4b07cc1f599123565a5c0672dd7848f05bf

8 years agoAdd DevicePolicyManager APIs for process logging.
Rubin Xu [Mon, 11 Jan 2016 12:11:35 +0000 (12:11 +0000)]
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

8 years agoMake Notification Redaction independent for work profiles
Clara Bayarri [Thu, 28 Jan 2016 11:33:25 +0000 (11:33 +0000)]
Make Notification Redaction independent for work profiles

Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431

8 years agoInitial refactoring to group IP-related elements into an IpManager
Erik Kline [Mon, 1 Feb 2016 10:08:40 +0000 (10:08 +0000)]
Initial refactoring to group IP-related elements into an IpManager
am: a636761bd6

* commit 'a636761bd67963385397ee920dcf76ec7cf113fb':
  Initial refactoring to group IP-related elements into an IpManager

8 years agoInitial refactoring to group IP-related elements into an IpManager
Erik Kline [Wed, 13 Jan 2016 08:36:08 +0000 (17:36 +0900)]
Initial refactoring to group IP-related elements into an IpManager

Bug: 17345682
Change-Id: I88f3f4bd32d18cd8d4f1404493648c8bcc1deeec

8 years agoAdd launch notification for MTP devices.
Daichi Hirono [Mon, 18 Jan 2016 09:05:17 +0000 (18:05 +0900)]
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

8 years agoMerge "Cleanup copyDocument and moveDocument in SAF."
Tomasz Mikolajewski [Mon, 1 Feb 2016 00:17:30 +0000 (00:17 +0000)]
Merge "Cleanup copyDocument and moveDocument in SAF."

8 years agoMerge changes I8d546487,Ib62d357f
Wale Ogunwale [Sun, 31 Jan 2016 20:02:45 +0000 (20:02 +0000)]
Merge changes I8d546487,Ib62d357f

* changes:
  Allow resizeableActivity to be specified at the application level
  Renamed manifest attributes initialWidth/Height to defaultWidth/Height

8 years agoMerge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT"
Wale Ogunwale [Sun, 31 Jan 2016 19:57:16 +0000 (19:57 +0000)]
Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT"

8 years agoMerge "API council recommended changes to bounds APIs in ActivityOptions"
Wale Ogunwale [Sun, 31 Jan 2016 19:51:37 +0000 (19:51 +0000)]
Merge "API council recommended changes to bounds APIs in ActivityOptions"

8 years agoIgnore null actions.
Jeff Sharkey [Sun, 31 Jan 2016 00:58:09 +0000 (17:58 -0700)]
Ignore null actions.

Bug: 26862905
Change-Id: I30a21e67b0f60ebca5eaccc843834059e52a6b78

8 years agoThrow when using deprecated file modes.
Jeff Sharkey [Sun, 31 Jan 2016 00:44:15 +0000 (17:44 -0700)]
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

8 years agoOffer to migrate databases and SharedPreferences.
Jeff Sharkey [Sat, 30 Jan 2016 00:13:29 +0000 (17:13 -0700)]
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: 2666851025860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0

8 years agoMerge "Hide action bar search icon in directories that do not support search operation."
Aga Wronska [Sat, 30 Jan 2016 22:01:50 +0000 (22:01 +0000)]
Merge "Hide action bar search icon in directories that do not support search operation."

8 years agoAllow resizeableActivity to be specified at the application level
Wale Ogunwale [Sat, 30 Jan 2016 21:01:33 +0000 (13:01 -0800)]
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

8 years agoRenamed manifest attributes initialWidth/Height to defaultWidth/Height
Wale Ogunwale [Sat, 30 Jan 2016 20:23:09 +0000 (12:23 -0800)]
Renamed manifest attributes initialWidth/Height to defaultWidth/Height

Per feedback from API council.

Bug: 26508215
Change-Id: Ib62d357f0e6309ad6f6305ba5ac376c5e3ab04e7

8 years agoMerge "Deliver onEnterAnimationComplete when there is no transition animation."
Filip Gruszczynski [Sat, 30 Jan 2016 19:36:30 +0000 (19:36 +0000)]
Merge "Deliver onEnterAnimationComplete when there is no transition animation."

8 years agoRenamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Wale Ogunwale [Sat, 30 Jan 2016 19:27:21 +0000 (11:27 -0800)]
Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT

Per feedback from API council.

Bug: 26508215
Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6

8 years agoMerge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8
Stephen Hines [Sat, 30 Jan 2016 17:57:30 +0000 (17:57 +0000)]
Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API." am: 49aee686d8
am: c033f493f2

* commit 'c033f493f23574dc69bf8ecd0f04af8910b4a47e':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.

8 years agoMerge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
Stephen Hines [Sat, 30 Jan 2016 17:52:28 +0000 (17:52 +0000)]
Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
am: 49aee686d8

* commit '49aee686d8c1c888fd0dd2778c19d5968dae0252':
  Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.

8 years agoMerge "Fix rare crash in bt detail panel"
Jason Monk [Sat, 30 Jan 2016 17:52:14 +0000 (17:52 +0000)]
Merge "Fix rare crash in bt detail panel"

8 years agoFix rare crash in bt detail panel
Jason Monk [Sat, 30 Jan 2016 17:49:41 +0000 (12:49 -0500)]
Fix rare crash in bt detail panel

Since bond state is gotten directly from the bluetooth stack it is
possible it could change, and therefore change the number of devices
if pairing happens while the detail panel is updating.  Fix this by
just dropping them into a list.

Bug: 26258223
Change-Id: I7703520391798fd7c9ab097b0057b7b43b877212

8 years agoMerge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
Stephen Hines [Sat, 30 Jan 2016 17:44:52 +0000 (17:44 +0000)]
Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."

8 years agoFix nav bar clipping
Jason Monk [Sat, 30 Jan 2016 17:40:47 +0000 (12:40 -0500)]
Fix nav bar clipping

Bug: 26782800
Change-Id: I7ba3db27aeee46800f6b7f9cd239ad529b281dd8

8 years agoAPI council recommended changes to bounds APIs in ActivityOptions
Wale Ogunwale [Sat, 30 Jan 2016 06:33:38 +0000 (22:33 -0800)]
API council recommended changes to bounds APIs in ActivityOptions

Bug: 26509660
Change-Id: Id90fbda0e15e83145ecc85c214b0ae5763fcc902

8 years agoHide action bar search icon in directories that do not support search operation.
Aga Wronska [Fri, 29 Jan 2016 19:41:41 +0000 (11:41 -0800)]
Hide action bar search icon in directories that do not support search operation.

Bug:26593318
Change-Id: Ibb8945e6eba508aaaa55b1f666ac434f30b2aaaa

8 years agoMerge "Re-enabling fade-in of header bar icons."
Winson Chung [Sat, 30 Jan 2016 02:08:03 +0000 (02:08 +0000)]
Merge "Re-enabling fade-in of header bar icons."

8 years agoRe-enabling fade-in of header bar icons.
Winson Chung [Sat, 30 Jan 2016 01:09:20 +0000 (01:09 +0000)]
Re-enabling fade-in of header bar icons.

This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

Change-Id: I45095211aaa63b133ad5a4076df25823fa91efa3

8 years agoDeliver onEnterAnimationComplete when there is no transition animation.
Filip Gruszczynski [Sat, 30 Jan 2016 01:38:51 +0000 (17:38 -0800)]
Deliver onEnterAnimationComplete when there is no transition animation.

Documentation says that Activity.onEnterAnimationComplete() will be
called when it's safe to draw, so developers can wait for this callback
to do work. In certain cases we never trigger this callback: when the
screen is frozen and there is no transition animation and the window
just popups into existence. In that case we should forcefully schedule
this callback, so that it can be used reliably.

Bug: 24005761
Change-Id: I2c20ca9bc7fa15ca53d9d492ad1c3f5f9608e8c4

8 years agoMerge "Some fixes for saved surfaces"
Chong Zhang [Sat, 30 Jan 2016 01:14:17 +0000 (01:14 +0000)]
Merge "Some fixes for saved surfaces"

8 years agoMerge "Revert "Re-enabling fade-in of header bar icons.""
Winson Chung [Sat, 30 Jan 2016 01:08:09 +0000 (01:08 +0000)]
Merge "Revert "Re-enabling fade-in of header bar icons.""

8 years agoRevert "Re-enabling fade-in of header bar icons."
Winson Chung [Sat, 30 Jan 2016 01:07:34 +0000 (01:07 +0000)]
Revert "Re-enabling fade-in of header bar icons."

This reverts commit 9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc.

Change-Id: Ie9e6ba685654622a9a1e76a405cc4d47477d9e13

8 years agoMerge "PIP: Use StatusBarService to handle PIP key"
Jaewan Kim [Sat, 30 Jan 2016 01:06:29 +0000 (01:06 +0000)]
Merge "PIP: Use StatusBarService to handle PIP key"

8 years agoSome fixes for saved surfaces
Chong Zhang [Fri, 29 Jan 2016 23:50:34 +0000 (15:50 -0800)]
Some fixes for saved surfaces

- If we have a saved surface, and app relayouts to visible before we
  started entry animation, we need to restore the saved surfaces.
  Otherwise the surface might get stuck in the saved state, because
  we may not get to run any animation after this relayout.

- Keep track of the allDrawn while we're using the saved surfaces,
  so that we can rely on allDrawn itself, instead of whether we're
  using saved surfaces.

- If the app is set to visible when it's exiting, clear the exiting
  flags. Also, save the surface if we cancel an exiting animation.

- More debug logging.

bug: 26819496
Change-Id: Ie42c6eea7879632d82f24ed09c3b6e737dd6d8a4

8 years agoMerge "Camera2 framework stress test suite"
Hang Yin [Sat, 30 Jan 2016 00:45:00 +0000 (00:45 +0000)]
Merge "Camera2 framework stress test suite"

8 years agoFix TextDropShadowCache infinite loop
John Reck [Fri, 29 Jan 2016 23:54:10 +0000 (15:54 -0800)]
Fix TextDropShadowCache infinite loop

Bug: 26862239

Switch TextDropCacheShadow to use the tracked objectSize()
instead of the optional bitmapSize. A mismatch here
results in ::get() infinite looping trying to free space in
the cache since the LRU removal callback would always
decrement mSize by 0 since bitmapSize was not being set.

Also prevent the infinite loop in the future by crashing if
this scenario happens again.

Change-Id: Ib4e9fbe1c8327af2335ad650fd694a1627d9824f

8 years agoMerge "Fix permission doc"
Makoto Onuki [Sat, 30 Jan 2016 00:16:14 +0000 (00:16 +0000)]
Merge "Fix permission doc"

8 years agoFix permission doc
Makoto Onuki [Sat, 30 Jan 2016 00:14:41 +0000 (16:14 -0800)]
Fix permission doc

Bug 26406584

Change-Id: I2c443cc52c600edb1ad904e0eb013829caee9897

8 years agoMerge "Revert "Encode paletted PNGs more efficiently""
Matt Sarett [Fri, 29 Jan 2016 23:59:40 +0000 (23:59 +0000)]
Merge "Revert "Encode paletted PNGs more efficiently""

8 years agoRevert "Encode paletted PNGs more efficiently"
Matt Sarett [Fri, 29 Jan 2016 23:57:53 +0000 (23:57 +0000)]
Revert "Encode paletted PNGs more efficiently"

This reverts commit 3c7235d3868d4bf554d4c1700ac11fc3d4125c71.

Change-Id: I615827c7f4570467bb85c115c01de8c3b46e4e8a

8 years agoMerge "Re-enabling fade-in of header bar icons."
Winson Chung [Fri, 29 Jan 2016 23:41:00 +0000 (23:41 +0000)]
Merge "Re-enabling fade-in of header bar icons."

8 years agoMerge "Add a hidden anqp field to ScanResult" into mm-wireless-dev
Mitchell Wills [Fri, 29 Jan 2016 23:38:08 +0000 (23:38 +0000)]
Merge "Add a hidden anqp field to ScanResult" into mm-wireless-dev
am: 934b3b9c6c

* commit '934b3b9c6c83a372d5def7abaf22d0f185a810de':
  Add a hidden anqp field to ScanResult

8 years agoMerge "Load correct thumbnail size when switching to grid from list (and visa versa)."
Steve McKay [Fri, 29 Jan 2016 23:36:56 +0000 (23:36 +0000)]
Merge "Load correct thumbnail size when switching to grid from list (and visa versa)."

8 years agoMerge "Add a hidden anqp field to ScanResult" into mm-wireless-dev
Mitchell Wills [Fri, 29 Jan 2016 23:33:50 +0000 (23:33 +0000)]
Merge "Add a hidden anqp field to ScanResult" into mm-wireless-dev

8 years agoLoad correct thumbnail size when switching to grid from list (and visa versa).
Steve McKay [Fri, 29 Jan 2016 23:23:27 +0000 (15:23 -0800)]
Load correct thumbnail size when switching to grid from list (and visa versa).

This is a quickie change where we clear the cache, but I think there could be
a better behavior where we don't clear the cache, show low res (instantly)
then load higher resolution ontop of the low res.

Bug: 26763078
Change-Id: If9883d507984b555e790a06692390d4fa3334c28

8 years agoRe-enabling fade-in of header bar icons.
Winson [Fri, 29 Jan 2016 00:48:18 +0000 (16:48 -0800)]
Re-enabling fade-in of header bar icons.

- Removing extra syscall when rebinding tasks
- Only bind the click listeners on the header bar after they are visible

Change-Id: I6879b30a985ca8274ee77126b152daa985054371

8 years agoMerge "Encode paletted PNGs more efficiently"
Matt Sarett [Fri, 29 Jan 2016 22:57:12 +0000 (22:57 +0000)]
Merge "Encode paletted PNGs more efficiently"

8 years agoEncode paletted PNGs more efficiently
Matt Sarett [Thu, 28 Jan 2016 23:38:38 +0000 (18:38 -0500)]
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: I1d5400f71a0e3cb800fd0fc68a04c8c4069da8ef

8 years agoMerge "Fix copyLayerInto"
John Reck [Fri, 29 Jan 2016 22:54:54 +0000 (22:54 +0000)]
Merge "Fix copyLayerInto"