OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Discourage use of "_data" column."
Jeff Sharkey [Wed, 6 Jan 2016 17:26:25 +0000 (17:26 +0000)]
Merge "Discourage use of "_data" column."

8 years agoDiscourage use of "_data" column.
Jeff Sharkey [Wed, 6 Jan 2016 00:30:57 +0000 (17:30 -0700)]
Discourage use of "_data" column.

Moving forward, all client file access really needs to be going
through explicit APIs like openFileDescriptor(), since that allows
the provider to better protect its underlying files.

This change also changes several classes to use the AutoClosable
pattern, which enables try-with-resources usage.  Older release()
methods are deprecated in favor of close().

Uniformly apply CloseGuard across several classes, using
AtomicBoolean to avoid double-freeing, and fix several resource
leaks and bugs related to MediaScanner allocation.  Switch
MediaScanner and friends to use public API instead of raw AIDL calls.

Bug: 22958127
Change-Id: Id722379f72c9e4b80d8b72550d7ce90e5e2bc786

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 6 Jan 2016 17:11:20 +0000 (17:11 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 6 Jan 2016 17:05:25 +0000 (18:05 +0100)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Work Challenge: Handle Recents launches"
Clara Bayarri [Wed, 6 Jan 2016 16:57:55 +0000 (16:57 +0000)]
Merge "Work Challenge: Handle Recents launches"

8 years agoMerge "Add support message for device admins"
Kenny Guy [Wed, 6 Jan 2016 16:27:18 +0000 (16:27 +0000)]
Merge "Add support message for device admins"

8 years agoWork Challenge: Handle Recents launches
Clara Bayarri [Fri, 4 Dec 2015 15:36:26 +0000 (15:36 +0000)]
Work Challenge: Handle Recents launches

Intercept calls to start activities from the recents
stack and show the Work Challenge if needed. This requires
passing the taskId to ConfirmDeviceCredential so it can
launch the recents task itself when the credentials are
confirmed.

Change-Id: I013b134f3f31a35b551ad683c68cc89b8af44499

8 years agoRevert "Revert "Hide static setDefault methods in ICU4J""
Neil Fuller [Wed, 6 Jan 2016 15:46:59 +0000 (15:46 +0000)]
Revert "Revert "Hide static setDefault methods in ICU4J""

This reverts commit 2be787e359c76086b57dc9f35868da9db71099e8.

It adds the missing file from the original commit.

Change-Id: Ia2c4a0f3fcc7ce1de222fa39b7fdf2ef7880468a

8 years agoMerge "Some Cleanup"
Jason Monk [Wed, 6 Jan 2016 15:25:50 +0000 (15:25 +0000)]
Merge "Some Cleanup"

8 years agoMerge "Revert "Hide static setDefault methods in ICU4J""
Neil Fuller [Wed, 6 Jan 2016 15:19:17 +0000 (15:19 +0000)]
Merge "Revert "Hide static setDefault methods in ICU4J""

8 years agoSome Cleanup
Jason Monk [Wed, 6 Jan 2016 15:19:04 +0000 (10:19 -0500)]
Some Cleanup

Bug: 26395083
Bug: 26348883
Change-Id: I1e9b92fda1c83420ad72764ce2f02d7f40b34dae

8 years agoRevert "Hide static setDefault methods in ICU4J"
Neil Fuller [Wed, 6 Jan 2016 15:17:55 +0000 (15:17 +0000)]
Revert "Hide static setDefault methods in ICU4J"

This reverts commit 6a103d33a059e009275bfc287d1aa549343259bb.

Change-Id: I4ab268ba6eb22fbbad13ab78f29465ce105026de

8 years agoMerge "Hide static setDefault methods in ICU4J"
Neil Fuller [Wed, 6 Jan 2016 15:01:24 +0000 (15:01 +0000)]
Merge "Hide static setDefault methods in ICU4J"

8 years agoHide static setDefault methods in ICU4J
Neil Fuller [Mon, 7 Dec 2015 16:50:16 +0000 (16:50 +0000)]
Hide static setDefault methods in ICU4J

Associated with a change in external/icu.

Bug: 25924145
Change-Id: I3fea5e3d88417cfb702550147c0c33d1cd2d0dc9

8 years agoMerge "More QS Tile modes in the API"
Jason Monk [Wed, 6 Jan 2016 14:18:57 +0000 (14:18 +0000)]
Merge "More QS Tile modes in the API"

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 6 Jan 2016 14:05:03 +0000 (14:05 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 6 Jan 2016 14:04:33 +0000 (14:04 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 6 Jan 2016 13:57:10 +0000 (05:57 -0800)]
Import translations. DO NOT MERGE

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

8 years agoStart moving divider only after passing touch slop
Jorim Jaggi [Tue, 5 Jan 2016 14:37:42 +0000 (15:37 +0100)]
Start moving divider only after passing touch slop

So there is a clear distinction between grabbing it and
start moving it.

Change-Id: I51b50220bd35d8040d0c11f131918d9741cd8403

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 6 Jan 2016 13:53:27 +0000 (05:53 -0800)]
Import translations. DO NOT MERGE

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

8 years agoMake sure to use right thread to change icon
Jorim Jaggi [Tue, 5 Jan 2016 13:59:28 +0000 (14:59 +0100)]
Make sure to use right thread to change icon

Not sure why this ever worked.

Change-Id: Ib044236856522fb9d9e737c885d5e9223e5f3fe3

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 6 Jan 2016 13:20:03 +0000 (05:20 -0800)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Add a new property PROPERTY_WORK_CALL"
Tony Mak [Wed, 6 Jan 2016 12:25:14 +0000 (12:25 +0000)]
Merge "Add a new property PROPERTY_WORK_CALL"

8 years agoMerge "Fixing crash in D&D due to race conditions during drag end."
Vadim Tryshev [Wed, 6 Jan 2016 02:55:06 +0000 (02:55 +0000)]
Merge "Fixing crash in D&D due to race conditions during drag end."

8 years agoMerge "Set the default mode to grid view."
Tomasz Mikolajewski [Wed, 6 Jan 2016 02:45:56 +0000 (02:45 +0000)]
Merge "Set the default mode to grid view."

8 years agoMerge "For locale negotiation, assume English is always supported"
Roozbeh Pournader [Wed, 6 Jan 2016 01:27:42 +0000 (01:27 +0000)]
Merge "For locale negotiation, assume English is always supported"

8 years agoMerge "Add pseduolocales back to Settings"
Roozbeh Pournader [Wed, 6 Jan 2016 01:18:21 +0000 (01:18 +0000)]
Merge "Add pseduolocales back to Settings"

8 years agoAdd pseduolocales back to Settings
Roozbeh Pournader [Wed, 6 Jan 2016 01:12:15 +0000 (17:12 -0800)]
Add pseduolocales back to Settings

The change I2f264cdb7b7fc586124dd58fad2c68060d5b7aa8 unintentionally
removed pseduolocales from the list of locales in Settings. This
adds them back.

Bug: 26412909
Change-Id: I1d89154e1c0e0312f996252bbfc9f6ded2412d90

8 years agoDon't proxy calls to DocumentsAdapter in MultiSelManager.
Steve McKay [Tue, 5 Jan 2016 23:27:17 +0000 (15:27 -0800)]
Don't proxy calls to DocumentsAdapter in MultiSelManager.

We were bouncing calls out to the adapter pulled from RecyclerView,
but the adapter is easy to write a test double for and
we can readily inject the adapter when needed at runtime.

Eliminates unnecessary indirection.
Also, protect against failure when documents can't be loaded for delete.

Change-Id: Ief6585bf2e3e4fd407d801d485a9d7cd888b8500

8 years agoFor locale negotiation, assume English is always supported
Roozbeh Pournader [Wed, 16 Dec 2015 07:56:11 +0000 (23:56 -0800)]
For locale negotiation, assume English is always supported

In practice, a lot of apps provide English resources as their default
resources, so assume that English is always supported.

With this change, users can safely set secondary locales after
English in their preferred locale lists. Such settings would help
the apps (and parts of the system that are aware of multiple locales)
consider the user's familiarity with the secondary locale or the
user's preference for glyphs forms in the secondary locale.  This
change makes sure that no app unintentionally switches to such
secondary locales.

Note that this doesn't break from the tradition of previous releases.
Traditionally, if the user had set the system locale to English, they
would get the default resources when the app didn't explicitly
provide English resources. This will continue to be the case where
the user's locale list has English in it before another supported
language. (English will be the first locale in most cases.)

Bug: 26192817
Change-Id: I2c1a003760299157786c1b3f9fb116ce18db3b8c

8 years agoMerge "Fix event relay to correctly dispatch events."
Steve McKay [Tue, 5 Jan 2016 22:47:37 +0000 (22:47 +0000)]
Merge "Fix event relay to correctly dispatch events."

8 years agoMerge "Unhide hostname aware isCleartextTrafficPermitted"
Chad Brubaker [Tue, 5 Jan 2016 22:37:06 +0000 (22:37 +0000)]
Merge "Unhide hostname aware isCleartextTrafficPermitted"

8 years agoFix event relay to correctly dispatch events.
Steve McKay [Tue, 5 Jan 2016 20:53:35 +0000 (12:53 -0800)]
Fix event relay to correctly dispatch events.

This fixes:
- UI to show selection which was broken in ag/838866
- Delete undo, which throws IOB exception
  when undoing a a full delete of all entries.

Change-Id: Idbb43510974e130d283313602a71ac15ad10aadf

8 years agoMerge "Replace Qaae script with Zsye"
Roozbeh Pournader [Tue, 5 Jan 2016 21:54:29 +0000 (21:54 +0000)]
Merge "Replace Qaae script with Zsye"

8 years agoReplace Qaae script with Zsye
Seigo Nonaka [Tue, 22 Dec 2015 04:23:58 +0000 (13:23 +0900)]
Replace Qaae script with Zsye

The emoji variant script "Zsye" is registered in ISO 15924.

Bug: 26226285
Change-Id: Ie561d8192c4ec8f242706339ca67b44133867e50

8 years agoMerge "Fix flashing dialogs when IME enters/exits."
Filip Gruszczynski [Tue, 5 Jan 2016 21:36:31 +0000 (21:36 +0000)]
Merge "Fix flashing dialogs when IME enters/exits."

8 years agoFix flashing dialogs when IME enters/exits.
Filip Gruszczynski [Tue, 5 Jan 2016 19:29:21 +0000 (11:29 -0800)]
Fix flashing dialogs when IME enters/exits.

The flashing is caused by changing the shown frame of the window
prematurely, before the animation kicks in. After the animation kicks
in, the shown frame goes back to the original position and then animates
to the final position.

We need the shown calculation to happen during layout for resizing and
the layout might be triggered at any time before the animation is run.
In order to avoid flashing, we don't calculate shown frame for windows
that are animating during the layout and let the animation position the
shown frame correctly later.

Includes also logging for inset setting, which triggers layout run.

Bug: 26323134
Change-Id: Ibe1efae798415d3564c659aa94c2b94af92c743a

8 years agoMerge "No need to pass digest of AndroidManifest.xml around."
Alex Klyubin [Tue, 5 Jan 2016 21:19:41 +0000 (21:19 +0000)]
Merge "No need to pass digest of AndroidManifest.xml around."

8 years agoMerge "Increase charlimit for select_logd_size_summaries"
Tony Mantler [Tue, 5 Jan 2016 21:08:47 +0000 (21:08 +0000)]
Merge "Increase charlimit for select_logd_size_summaries"

8 years agoIncrease charlimit for select_logd_size_summaries
Tony Mantler [Tue, 5 Jan 2016 20:53:51 +0000 (12:53 -0800)]
Increase charlimit for select_logd_size_summaries

b/26328941
b/26335699

Change-Id: I40d5b745a5794bc63e3cb4c8bfb357164b36265d

8 years agoMerge "Show 'end now' in expanded volume panel."
Julia Reynolds [Tue, 5 Jan 2016 20:47:20 +0000 (20:47 +0000)]
Merge "Show 'end now' in expanded volume panel."

8 years agoMerge "DND visual interruptions: prevent screen on."
Julia Reynolds [Tue, 5 Jan 2016 20:45:45 +0000 (20:45 +0000)]
Merge "DND visual interruptions: prevent screen on."

8 years agoMerge "Fixing issue with exit animation due to incorrect visibility state."
Winson Chung [Tue, 5 Jan 2016 19:41:23 +0000 (19:41 +0000)]
Merge "Fixing issue with exit animation due to incorrect visibility state."

8 years agoUnhide hostname aware isCleartextTrafficPermitted
Chad Brubaker [Tue, 5 Jan 2016 19:36:22 +0000 (11:36 -0800)]
Unhide hostname aware isCleartextTrafficPermitted

Change-Id: Id2bde5889d963ca2820fdecce1628dce022b510b

8 years agoMerge "Move Adapters to their own classes."
Steve McKay [Tue, 5 Jan 2016 19:29:46 +0000 (19:29 +0000)]
Merge "Move Adapters to their own classes."

8 years agoMerge "Move Language normalization code from Paint.cpp to Minikin."
Roozbeh Pournader [Tue, 5 Jan 2016 19:27:32 +0000 (19:27 +0000)]
Merge "Move Language normalization code from Paint.cpp to Minikin."

8 years agoMerge "Optimize locale negotiation when there's only one locale"
Roozbeh Pournader [Tue, 5 Jan 2016 19:23:42 +0000 (19:23 +0000)]
Merge "Optimize locale negotiation when there's only one locale"

8 years agoFixing issue with exit animation due to incorrect visibility state.
Winson [Tue, 5 Jan 2016 01:51:18 +0000 (17:51 -0800)]
Fixing issue with exit animation due to incorrect visibility state.

- This CL ensures that only Recents updates the SysUI visibility state
  for itself, ensuring that the visibility state reflects the state in
  Recents, and allows us to skip unnecessary work to close system
  dialogs when it is not required.

Bug: 26390248
Change-Id: Ib6301a8300cc3da6da75fcbbceceb0e1da3beab4

8 years agoMerge "Don't set replacing flag in starting windows."
Wale Ogunwale [Tue, 5 Jan 2016 19:16:29 +0000 (19:16 +0000)]
Merge "Don't set replacing flag in starting windows."

8 years agoAdd support message for device admins
Kenny Guy [Tue, 22 Dec 2015 12:07:39 +0000 (12:07 +0000)]
Add support message for device admins

Allow admins to set a long and short support
message for settings to display.

Bug: 25659579
Change-Id: Ib645490785642e49c69d8dbc65455eb3398547ee

8 years agoMove Adapters to their own classes.
Steve McKay [Wed, 23 Dec 2015 02:15:31 +0000 (18:15 -0800)]
Move Adapters to their own classes.

Move section break support into a separate wrapper class.
Fix issue where intermediate directory updates were briefly showing hidden files.
Add a rudimentary test for ModelBackedDocumentsAdapter.

Bug: 26293561263832372629356126309025
Change-Id: I1fa489b110754d8801091b2009caebe9d2278701

8 years agoMerge "Avoid matching system locales in locale negotiation"
Roozbeh Pournader [Tue, 5 Jan 2016 18:45:29 +0000 (18:45 +0000)]
Merge "Avoid matching system locales in locale negotiation"

8 years agoDon't set replacing flag in starting windows.
Wale Ogunwale [Tue, 5 Jan 2016 18:43:25 +0000 (10:43 -0800)]
Don't set replacing flag in starting windows.

When ever an app is changing stacks we set replacing flag on all it's
windows. Starting windows can be part of an apps window list, but is
added by window manager not the app. So, when we set replacing flag
on the starting window it can cause the starting window never to be
cleaned up since we are expecting the client to replace it which will
never happen since it was added by window manager.
We shouldn't be setting replacing flag on starting windows since they
can never be replaced.

Bug: 26294740
Change-Id: I0a4f1e44188e96e73614130cbea02a3860850f58

8 years agoShow 'end now' in expanded volume panel.
Julia Reynolds [Tue, 5 Jan 2016 18:42:43 +0000 (13:42 -0500)]
Show 'end now' in expanded volume panel.

Bug: 26165288
Change-Id: I1e75a33f7745a7aa0b4740010cc554b4f1d924c6

8 years agoMerge "Support for stencil clipping in layers"
Chris Craik [Tue, 5 Jan 2016 18:33:54 +0000 (18:33 +0000)]
Merge "Support for stencil clipping in layers"

8 years agoSupport for stencil clipping in layers
Chris Craik [Mon, 4 Jan 2016 23:09:19 +0000 (15:09 -0800)]
Support for stencil clipping in layers

bug:22480459

Change-Id: Ic9e8652379524ccc46d8722ce49f9190b08a2abc

8 years agoMerge "Stencil support in new recorder/reorderer"
Chris Craik [Tue, 5 Jan 2016 17:54:47 +0000 (17:54 +0000)]
Merge "Stencil support in new recorder/reorderer"

8 years agoDND visual interruptions: prevent screen on.
Julia Reynolds [Tue, 5 Jan 2016 13:35:25 +0000 (08:35 -0500)]
DND visual interruptions: prevent screen on.

Bug: 25423508
Change-Id: Ie935a2051e1ae774fbeaf624f3599b2b1bb8666d

8 years agoMerge "Fix unnecessary relayouts"
Filip Gruszczynski [Tue, 5 Jan 2016 17:25:11 +0000 (17:25 +0000)]
Merge "Fix unnecessary relayouts"

8 years agoMerge "Fix ToolbarActionBar invalidating destroyed Activities"
Chris Banes [Tue, 5 Jan 2016 16:33:13 +0000 (16:33 +0000)]
Merge "Fix ToolbarActionBar invalidating destroyed Activities"

8 years agoDon't push IME above all app windows and dock divider.
Filip Gruszczynski [Mon, 4 Jan 2016 23:56:07 +0000 (15:56 -0800)]
Don't push IME above all app windows and dock divider.

The IME should only be pushed above the application that requested it.
There might be other windows that go above the IME, e.g. spinner dialog.

We used to need the IME to go above all app windows, because the dock
divider goes above all app windows and we want IME above the dock
divider. This is not necessary anymore, because the dock divider is now
aware of the IME and changes it's size to available space. The
transition is also graceful enough, that it looks correct even when the
IME goes away.

Bug: 26325071
Change-Id: I8c05f2d200c5bb92c5fdb0d252e277fbe43a60a5

8 years agoMore QS Tile modes in the API
Jason Monk [Mon, 21 Dec 2015 20:12:01 +0000 (15:12 -0500)]
More QS Tile modes in the API

Allow tiles to request when they are bound instead of doing it
automatically for them when in the listening state.  Only one
of these modes is allowed for a given tile, meaning it can either
push updates when it thinks they matter, or it can be told when
to update.

Change-Id: I165b39dddb836df90d253aeb5ebea48e62ea0dae

8 years agoDo not pass invalid bounds for dim layer #2
Jorim Jaggi [Tue, 5 Jan 2016 14:40:17 +0000 (15:40 +0100)]
Do not pass invalid bounds for dim layer #2

Bug: 26396656
Change-Id: Icb0419489a1b7a756a4622383c4c2462ee0d8d90

8 years agoDo not pass invalid bounds for dim layer
Jorim Jaggi [Tue, 5 Jan 2016 14:32:34 +0000 (15:32 +0100)]
Do not pass invalid bounds for dim layer

Makes the entire system freeze.

Bug: 26396656
Change-Id: I9e9b0a297a351cd8ef72cdc8f5994df6c42567d9

8 years agoFix build
Jorim Jaggi [Tue, 5 Jan 2016 14:25:24 +0000 (15:25 +0100)]
Fix build

Change-Id: Ifd69818ca6d5dbf129f6c956c1a7dfae760e30d6

8 years agoCreate new Navigation Bar for the Theme Editor Preview am: 3b90b74cf9
Jerome Gaillard [Tue, 5 Jan 2016 14:21:04 +0000 (14:21 +0000)]
Create new Navigation Bar for the Theme Editor Preview am: 3b90b74cf9
am: 968ee5368b

* commit '968ee5368b7d626e7ac64b0befd212a04e9533cf':
  Create new Navigation Bar for the Theme Editor Preview

8 years agoCreate new Navigation Bar for the Theme Editor Preview
Jerome Gaillard [Tue, 5 Jan 2016 14:16:57 +0000 (14:16 +0000)]
Create new Navigation Bar for the Theme Editor Preview
am: 3b90b74cf9

* commit '3b90b74cf96c88267e20a410b639b68de84c3323':
  Create new Navigation Bar for the Theme Editor Preview

8 years agoFix unnecessary relayouts
Jorim Jaggi [Tue, 5 Jan 2016 13:43:25 +0000 (14:43 +0100)]
Fix unnecessary relayouts

Make sure mPendingBackDropFrame is always up-to-date.

Bug: 26396351
Change-Id: Icb61f3581ee75e94d45fc0f8ae0895535bb130ea

8 years agoAdd nice animation when touching the docked divider handle
Jorim Jaggi [Mon, 4 Jan 2016 12:06:34 +0000 (13:06 +0100)]
Add nice animation when touching the docked divider handle

To make the interaction more dynamic.

Change-Id: I8fc3e6240c229753dc26122ae0994d59c4f6486e

8 years agoImplement parallax when dismissing docked/fullscreen stack
Jorim Jaggi [Wed, 30 Dec 2015 12:54:32 +0000 (13:54 +0100)]
Implement parallax when dismissing docked/fullscreen stack

When moving the docked or the fullscreen task close to the side,
we add a nice parallax to indicate that this task will be dismissed.

Change-Id: Ide195876942c1614c186fd5f3ff3e86f6fdfec61

8 years agoDim stack while dismissing
Jorim Jaggi [Tue, 29 Dec 2015 16:54:12 +0000 (17:54 +0100)]
Dim stack while dismissing

When dismissing the docked or fullscreen stack, a dim layer is
introduced for a nicer visual effect.

Change-Id: I9f12e331e978208aa9fd9e9883b3c8a36d4da3a0

8 years agoRefine snap position behavior
Jorim Jaggi [Mon, 21 Dec 2015 13:45:18 +0000 (14:45 +0100)]
Refine snap position behavior

- Use the stable insets to communicate the system insets to the
docked divider view.
- When calculating the sizes for the snap positions, exclude the
system insets.
- Add 3 snap position modes: 16:9 in one window, 1:1, 16:9 in the
other (phone portrait). Only 1:1 (phone landscape). Fixed relation,
1:1, 1 - fixed relation (tablet portrait/landscape).

Change-Id: If2166c5fb99f12535eeab5de18e9f5aaf433d77c

8 years agoAdd am command for CTS tests for resizedDockedStack (1/2)
Jorim Jaggi [Tue, 29 Dec 2015 13:28:32 +0000 (14:28 +0100)]
Add am command for CTS tests for resizedDockedStack (1/2)

Bug: 25015474
Bug: 26311778
Change-Id: Ia2b1f8ffc5c777d8199409041090a0106503c2e4

8 years agoAdd developer option for freeform window support (1/2)
Jorim Jaggi [Wed, 23 Dec 2015 11:04:39 +0000 (12:04 +0100)]
Add developer option for freeform window support (1/2)

Also disable default force-resizable on non-user builds.

Bug: 25276672
Bug: 24815256
Bug: 26294625
Bug: 26294534
Change-Id: I5b31e494c993d2d9dad175b94b4f30637e8f3718

8 years agoUse different asset when docked stack exists
Jorim Jaggi [Mon, 21 Dec 2015 12:22:31 +0000 (13:22 +0100)]
Use different asset when docked stack exists

- Add the ability to add a listener when the existence of the
docked stack changes.
- Register SystemUI as such a listener and switch the recents
button asset when docked stack exists.

Change-Id: I05350878c5adc7ad9f0399f0c42d8d1615d44d02

8 years agoFreeze task bounds when relaunching
Jorim Jaggi [Tue, 22 Dec 2015 15:29:16 +0000 (16:29 +0100)]
Freeze task bounds when relaunching

To make sure that task is only laid out with the size
that matches the current configuration, we have to "freeze"
the task bounds when we send a configuration change. Without this
change, it could happen that the app already laid out with the new
task bounds, but still had the old configuration, leading to
wrong layouts.

Bug: 26311778
Bug: 25015474

Change-Id: I8d3a3fdf3735f446a4affbbdb4986dafc97623a5

8 years agoAdd infrastructure to track activitiy relaunches
Jorim Jaggi [Tue, 22 Dec 2015 15:28:44 +0000 (16:28 +0100)]
Add infrastructure to track activitiy relaunches

As a preparation to start synchronizing task size
with activity relaunches, we need a infrastructure
so we know in AM/WM when an activity is relaunching
and when it's done relaunching.

Bug: 26311778
Bug: 25015474
Change-Id: Ied3795eddbcd112f6329494afbf13178ca49a799

8 years agoChange behavior when resizing docked stack
Jorim Jaggi [Tue, 15 Dec 2015 22:57:31 +0000 (14:57 -0800)]
Change behavior when resizing docked stack

- Add an API resizeDockedStack to resize the docked stack
and supply temporary task bounds, which can be different from
the stack bounds.
- Use that API in SystemUI to only switch task bounds when
crossing thresholds, so we have less flickering and more
predictable resizing.

Bug: 25015474
Bug: 26311778
Change-Id: Id5c9277dd908ccc28f95dab023efc914757a50d0

8 years agoMerge "Fix InCallService permission doc"
Sailesh Nepal [Tue, 5 Jan 2016 11:56:12 +0000 (11:56 +0000)]
Merge "Fix InCallService permission doc"

8 years agoMove Language normalization code from Paint.cpp to Minikin.
Seigo Nonaka [Tue, 15 Dec 2015 18:03:36 +0000 (10:03 -0800)]
Move Language normalization code from Paint.cpp to Minikin.

This is 2nd attempt of I277a08b5a17d45c3edb8fb597fdf6786bbe9f83b

The language code to BCP47 conversion is done by Minikin.

Also this CL addresses the signature changes by
I8df992a6851021903478972601a9a5c9424b100c

Bug: 26168983
Change-Id: Id106e9bb5c3eaa6652b44a1735f427accaca1368

8 years agoAdded support for notifying listeners when an activity is pinned.
Wale Ogunwale [Wed, 30 Dec 2015 00:15:22 +0000 (16:15 -0800)]
Added support for notifying listeners when an activity is pinned.

Also, protected AMS#registerTaskStackListener call with
MANAGE_ACTIVITY_STACKS permission.

Bug: 26273032
Bug: 25928537
Change-Id: Ic5e663e373978e0429ecdcc6934a51a295c18268

8 years agoMerge "Refactored ActivityStarter#startActivityUnchecked to make it easier to follow"
Wale Ogunwale [Tue, 5 Jan 2016 03:21:45 +0000 (03:21 +0000)]
Merge "Refactored ActivityStarter#startActivityUnchecked to make it easier to follow"

8 years agoMerge "Removed outdated TODO for LocaleList"
Roozbeh Pournader [Tue, 5 Jan 2016 02:10:21 +0000 (02:10 +0000)]
Merge "Removed outdated TODO for LocaleList"

8 years agoRemoved outdated TODO for LocaleList
Roozbeh Pournader [Tue, 5 Jan 2016 02:03:36 +0000 (18:03 -0800)]
Removed outdated TODO for LocaleList

The suggested TODO is no longer deemed necessary (and is too
expensive to do for all LocaleLists). LocaleLists get (and will get)
passed down to the native level through strings that are the result
of calls to toLanguageTags(), which is pre-computed at construction
time. Users who need to interact with the native level can do their
own caching, such as in commit
cfc607cf57d453f977c9c4bf09b41ac481c4bbec.

Change-Id: I665f3b28eaf8df309bf1aec96f9d237aeb72865c

8 years agoFix build breakage.
Wale Ogunwale [Tue, 5 Jan 2016 01:54:26 +0000 (17:54 -0800)]
Fix build breakage.

Change-Id: I694a885e705d2543e671fd2809bbb518176c3804

8 years agoRefactored ActivityStarter#startActivityUnchecked to make it easier to follow
Wale Ogunwale [Tue, 29 Dec 2015 16:19:19 +0000 (08:19 -0800)]
Refactored ActivityStarter#startActivityUnchecked to make it easier to follow

Change-Id: I7566e69206753601fbc7b126da8b5db4891a955f

8 years agoMerge "Added hidden API for specifying launch stack in ActivityOptions"
Wale Ogunwale [Tue, 5 Jan 2016 01:48:34 +0000 (01:48 +0000)]
Merge "Added hidden API for specifying launch stack in ActivityOptions"

8 years agoOptimize locale negotiation when there's only one locale
Roozbeh Pournader [Tue, 5 Jan 2016 01:38:17 +0000 (17:38 -0800)]
Optimize locale negotiation when there's only one locale

Previously, we were finding the list of locales supported by the
system in all cases, costing us a JNI call, which was not necessary
when there was only one locale (which is expected to be quite
common).

Change-Id: I2f752a71a46b66ac2abb553a5939eddf0f761698

8 years agoStencil support in new recorder/reorderer
Chris Craik [Wed, 23 Dec 2015 00:32:23 +0000 (16:32 -0800)]
Stencil support in new recorder/reorderer

bug:22480459
bug:26358504

Adds complex (non-rectangular) clipping support, and overdraw
visualization. Doesn't support stencil clipping in layers.

Change-Id: I8d10c7f1d2769ab5756774ca672344cc09901f87

8 years agoMerge "Avoid calling invalidateSelf() from draw call"
Doris Liu [Tue, 5 Jan 2016 00:54:36 +0000 (00:54 +0000)]
Merge "Avoid calling invalidateSelf() from draw call"

8 years agoAvoid calling invalidateSelf() from draw call
Doris Liu [Mon, 4 Jan 2016 22:32:00 +0000 (14:32 -0800)]
Avoid calling invalidateSelf() from draw call

Bug: 26329675

Change-Id: Ieb76b6f63a5139f6033ca9baa9ba6fac36ae466c

8 years agoMerge "Remove FLASHLIGHT permission"
Svetoslav Ganov [Tue, 5 Jan 2016 00:06:03 +0000 (00:06 +0000)]
Merge "Remove FLASHLIGHT permission"

8 years agoAdded hidden API for specifying launch stack in ActivityOptions
Wale Ogunwale [Mon, 28 Dec 2015 00:18:19 +0000 (16:18 -0800)]
Added hidden API for specifying launch stack in ActivityOptions

Bug: 26273032
Change-Id: Ifb9c70e6783b0426613709693e11742d80ba2fc3

8 years agoMerge "Added support for android.R.attr#alwaysFocusable"
Wale Ogunwale [Mon, 4 Jan 2016 23:57:17 +0000 (23:57 +0000)]
Merge "Added support for android.R.attr#alwaysFocusable"

8 years agoMerge "Change Internal Storage icon from sdcard to smartphone"
Aga Wronska [Mon, 4 Jan 2016 23:25:51 +0000 (23:25 +0000)]
Merge "Change Internal Storage icon from sdcard to smartphone"

8 years agoMerge "Make BitmapFactory.Options API Changes"
Matt Sarett [Mon, 4 Jan 2016 22:55:38 +0000 (22:55 +0000)]
Merge "Make BitmapFactory.Options API Changes"

8 years agoAdded support for android.R.attr#alwaysFocusable
Wale Ogunwale [Sat, 26 Dec 2015 15:36:26 +0000 (07:36 -0800)]
Added support for android.R.attr#alwaysFocusable

Allows an activity to always be focusable regardless of if it is in a
stack whose activities are normally not focusable. For example, activities
in pinned stack aren't focusable. This flag allows them to be focusable.

Also, changed ActivityInfo.#{resizeable, supportsPip} to use flags.

Bug: 26273032
Bug: 26034613
Change-Id: I8c63e6d3256757e2e6931e08b8a65269f5169d35

8 years agoMerge "Don't allow unfocusable activity/stack to gain focus"
Wale Ogunwale [Mon, 4 Jan 2016 22:22:16 +0000 (22:22 +0000)]
Merge "Don't allow unfocusable activity/stack to gain focus"

8 years agoMake BitmapFactory.Options API Changes
Matt Sarett [Fri, 18 Dec 2015 18:07:01 +0000 (13:07 -0500)]
Make BitmapFactory.Options API Changes

This changes the documentation for inPreferQualityOverSpeed,
inDither, and requestCancelDecode().

These changes are a result of modifying the backends of
BitmapFactory and BitmapRegionDecoder to be faster, higher quality,
and to use standard libraries.

BUG:26266063
BUG:25556965
Change-Id: I9008fd276a38c737e242bcc6930ffe4e36d9fd1d

8 years agoAvoid matching system locales in locale negotiation
Roozbeh Pournader [Fri, 18 Dec 2015 22:22:14 +0000 (14:22 -0800)]
Avoid matching system locales in locale negotiation

Also:
1. Add AssetManager method for finding non-system locales: This is
used in per-app locale negotiation. (Normally,
AssetManager#getLocales() returns both system and non-system
locales.)

2. Match pseudolocales correctly in locale negotiation.

Bug: 25800576
Bug: 26236938
Change-Id: I116caf3a91c290deb4ad68b291c65b7035b18dd4