OSDN Git Service

android-x86/frameworks-base.git
8 years agoDefine new APIs for metering and roaming network stats buckets.
Jeff Davidson [Wed, 6 Jan 2016 21:53:36 +0000 (13:53 -0800)]
Define new APIs for metering and roaming network stats buckets.

These are analagous to the state buckets for tracking whether usage is
incurred while the app is in the foreground or background. We will
additionally track whether data usage is incurred over a metered or
unmetered network, and whether it is incurred over a roaming or native
network.

The APIs are not implemented in this CL; the existing buckets are
still returned with METERING_ALL and ROAMING_ALL to indicate that this
is not yet being tracked.

Bug: 25813438
Bug: 25813958
Change-Id: I76dd3dd063ed28ef5579ca3a978570532e7836bc

8 years agoMerge "Cache XML blocks against file name rather than resource ID"
Alan Viverette [Wed, 6 Jan 2016 20:36:05 +0000 (20:36 +0000)]
Merge "Cache XML blocks against file name rather than resource ID"

8 years ago[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.
Tyler Gunn [Wed, 6 Jan 2016 20:31:00 +0000 (20:31 +0000)]
[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.
am: ae85bc3c65  -s ours

* commit 'ae85bc3c65b33b8b00b610246e41e282d16605b9':
  [DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.

8 years agoMerge "Clean up asset manager package-private methods"
Alan Viverette [Wed, 6 Jan 2016 20:29:49 +0000 (20:29 +0000)]
Merge "Clean up asset manager package-private methods"

8 years agoMerge "Skip the cache when loading drawables from a foreign density"
Alan Viverette [Wed, 6 Jan 2016 20:29:19 +0000 (20:29 +0000)]
Merge "Skip the cache when loading drawables from a foreign density"

8 years agoCache XML blocks against file name rather than resource ID
Alan Viverette [Wed, 6 Jan 2016 20:27:35 +0000 (15:27 -0500)]
Cache XML blocks against file name rather than resource ID

Caching against resource ID leads to incorrect cache hits, since multiple
files (ex. within drawable-mdpi, drawable-ldpi) may map to the same ID.

Also adds nullability annotations.

Bug: 26400880
Change-Id: I4d83caf3c44dc9b546511753e9e72171e8850eb2

8 years agoMerge "[WindowManagerService] fix starting window issue" am: 8683f1b160
Wale Ogunwale [Wed, 6 Jan 2016 20:27:04 +0000 (20:27 +0000)]
Merge "[WindowManagerService] fix starting window issue" am: 8683f1b160
am: a7582b55e7  -s ours

* commit 'a7582b55e789f76fa18364950a93193ba7c0b2dd':
  [WindowManagerService] fix starting window issue

8 years agoMerge "More logging for ANR track-down"
Rob Carr [Wed, 6 Jan 2016 19:36:13 +0000 (19:36 +0000)]
Merge "More logging for ANR track-down"

8 years agoMerge "Collect user creation metrics"
Fyodor Kupolov [Wed, 6 Jan 2016 19:10:19 +0000 (19:10 +0000)]
Merge "Collect user creation metrics"

8 years agoMerge "Change fragment removal order for fragment replacement."
Aurimas Liutikas [Wed, 6 Jan 2016 19:05:36 +0000 (19:05 +0000)]
Merge "Change fragment removal order for fragment replacement."

8 years agoMore logging for ANR track-down
Robert Carr [Wed, 6 Jan 2016 19:01:43 +0000 (11:01 -0800)]
More logging for ANR track-down

More logging for ANR track-down. Seems to relate
to starting windows hanging around during app
transitions.

Bug: 26157153
Change-Id: Ie88d0c97f11bbc6fae029cf28b07b329188e5f86

8 years agoMerge "Add missing @deprecated comments to canvas methods"
Chris Craik [Wed, 6 Jan 2016 18:32:50 +0000 (18:32 +0000)]
Merge "Add missing @deprecated comments to canvas methods"

8 years agoMerge "Fixed corner-case scenario where a screenshot is finished after the share...
Felipe Leme [Wed, 6 Jan 2016 18:28:38 +0000 (18:28 +0000)]
Merge "Fixed corner-case scenario where a screenshot is finished after the share notification is sent."

8 years agoMerge "Check api level before throwing in drawable setters"
Chris Craik [Wed, 6 Jan 2016 18:18:07 +0000 (18:18 +0000)]
Merge "Check api level before throwing in drawable setters"

8 years agoFixed corner-case scenario where a screenshot is finished after the share
Felipe Leme [Wed, 6 Jan 2016 17:57:23 +0000 (09:57 -0800)]
Fixed corner-case scenario where a screenshot is finished after the share
notification is sent.

Prior to this change, if a screenshot finished after the share
notification was sent, it would replace the share notification with a
progress notification, and the share notification would never be sent
again.

Also improved the test cases that automatically generate a screenshot
but don't use it to wait for the screenshot to finish before proceeding,
otherwise it could cause a future test to fail (if the screenshot is
finished after the initial test is completed).

Change-Id: I6e2a6549ebb48e5bebf5aa78d1bda94404c1812b

8 years agoMerge "Add Ethernet feature."
Jeff Sharkey [Wed, 6 Jan 2016 18:04:57 +0000 (18:04 +0000)]
Merge "Add Ethernet feature."

8 years agoAdd Ethernet feature.
Jeff Sharkey [Wed, 6 Jan 2016 18:02:52 +0000 (11:02 -0700)]
Add Ethernet feature.

Change-Id: I1f1badff5a8c9237d9489497e36e2578266e34b4

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 agoSkip the cache when loading drawables from a foreign density
Alan Viverette [Wed, 6 Jan 2016 16:11:53 +0000 (11:11 -0500)]
Skip the cache when loading drawables from a foreign density

Bug: 26400880
Change-Id: I87c06b30afc61495fe62aa6a9dfe77990200cde7

8 years agoMerge "[WindowManagerService] fix starting window issue"
Wale Ogunwale [Wed, 6 Jan 2016 15:55:02 +0000 (15:55 +0000)]
Merge "[WindowManagerService] fix starting window issue"
am: 8683f1b160

* commit '8683f1b160c10184aa15cec1b8ef776e2ce8fa9a':
  [WindowManagerService] fix starting window issue

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 "[WindowManagerService] fix starting window issue"
Wale Ogunwale [Wed, 6 Jan 2016 15:47:05 +0000 (15:47 +0000)]
Merge "[WindowManagerService] fix starting window issue"

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 ago[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.
Tyler Gunn [Fri, 23 Oct 2015 21:39:49 +0000 (14:39 -0700)]
[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.

- Added acceptRingingCall API which accepts a videostate to complement the
existing API.

Bug: 20159300
Change-Id: I2a9d53fd4dbbb0be49d95416f7e26d3ec61774cd

8 years agoChange fragment removal order for fragment replacement.
Aurimas Liutikas [Tue, 5 Jan 2016 23:58:29 +0000 (15:58 -0800)]
Change fragment removal order for fragment replacement.

Before this patch it for loop was accessing mManager.mAdded elements using
an integer index and also removing the fragments from mAdded using
mManager.removeFragment().

Bug: 24693644
Change-Id: I8e32fffa9f65c2795141f61670956740399960e4

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 agoClean up asset manager package-private methods
Alan Viverette [Tue, 5 Jan 2016 15:25:54 +0000 (10:25 -0500)]
Clean up asset manager package-private methods

Refactors duplicate code, flattens methods by inverting if blocks, updates
nullability annotations, fills out missing javadoc, uses consistent
variable names. No functional changes.

Change-Id: I4c3a139197697a9d6f6afc9c428a193c02fc777c

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