228781 Commits

Author SHA1 Message Date
Chris Banes
812a806c4d Merge "Fix ToolbarActionBar invalidating destroyed Activities" 2016-01-05 16:33:13 +00:00
Filip Gruszczynski
bedb566a28 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
2016-01-05 08:32:22 -08:00
Jason Monk
fe8f6826ce 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
2016-01-05 11:08:05 -05:00
Alan Viverette
e273b93651 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
2016-01-05 10:25:54 -05:00
Jorim Jaggi
10b89dc531 Do not pass invalid bounds for dim layer #2
Bug: 26396656
Change-Id: Icb0419489a1b7a756a4622383c4c2462ee0d8d90
2016-01-05 14:42:25 +00:00
Jorim Jaggi
7b371ddfbd Do not pass invalid bounds for dim layer
Makes the entire system freeze.

Bug: 26396656
Change-Id: I9e9b0a297a351cd8ef72cdc8f5994df6c42567d9
2016-01-05 14:35:50 +00:00
Jorim Jaggi
2a37455a28 Fix build
Change-Id: Ifd69818ca6d5dbf129f6c956c1a7dfae760e30d6
2016-01-05 14:31:50 +00:00
Jerome Gaillard
a65ebea1ad Create new Navigation Bar for the Theme Editor Preview am: 3b90b74cf9
am: 968ee5368b

* commit '968ee5368b7d626e7ac64b0befd212a04e9533cf':
  Create new Navigation Bar for the Theme Editor Preview
2016-01-05 14:21:04 +00:00
Jerome Gaillard
968ee5368b Create new Navigation Bar for the Theme Editor Preview
am: 3b90b74cf9

* commit '3b90b74cf96c88267e20a410b639b68de84c3323':
  Create new Navigation Bar for the Theme Editor Preview
2016-01-05 14:16:57 +00:00
Jorim Jaggi
0fe356e83e Fix unnecessary relayouts
Make sure mPendingBackDropFrame is always up-to-date.

Bug: 26396351
Change-Id: Icb61f3581ee75e94d45fc0f8ae0895535bb130ea
2016-01-05 14:44:07 +01:00
Jorim Jaggi
514b2cf0f8 Add nice animation when touching the docked divider handle
To make the interaction more dynamic.

Change-Id: I8fc3e6240c229753dc26122ae0994d59c4f6486e
2016-01-05 13:50:56 +01:00
Jorim Jaggi
e435e982fa 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
2016-01-05 13:50:45 +01:00
Jorim Jaggi
5098159ae3 Dim stack while dismissing
When dismissing the docked or fullscreen stack, a dim layer is
introduced for a nicer visual effect.

Change-Id: I9f12e331e978208aa9fd9e9883b3c8a36d4da3a0
2016-01-05 13:50:32 +01:00
Jorim Jaggi
81fe2d1f0a 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
2016-01-05 13:50:20 +01:00
Jorim Jaggi
52641bc309 Add am command for CTS tests for resizedDockedStack (1/2)
Bug: 25015474
Bug: 26311778
Change-Id: Ia2b1f8ffc5c777d8199409041090a0106503c2e4
2016-01-05 13:50:10 +01:00
Jorim Jaggi
6f2efd3d8c 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
2016-01-05 13:49:59 +01:00
Jorim Jaggi
a6c934e2a3 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
2016-01-05 13:49:41 +01:00
Jorim Jaggi
0429f3522b 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
2016-01-05 13:49:23 +01:00
Jorim Jaggi
fe89d122e5 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
2016-01-05 13:48:46 +01:00
Jorim Jaggi
dc249c4ae7 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
2016-01-05 13:44:24 +01:00
Sailesh Nepal
c831e36b60 Merge "Fix InCallService permission doc" 2016-01-05 11:56:12 +00:00
Seigo Nonaka
4ea7d1d2ab 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
2016-01-05 12:32:26 +09:00
Wale Ogunwale
03ce863860 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
2016-01-05 03:22:25 +00:00
Wale Ogunwale
20e818238e Merge "Refactored ActivityStarter#startActivityUnchecked to make it easier to follow" 2016-01-05 03:21:45 +00:00
Roozbeh Pournader
d73a4fb22e Merge "Removed outdated TODO for LocaleList" 2016-01-05 02:10:21 +00:00
Roozbeh Pournader
8076c3a685 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
2016-01-04 18:03:36 -08:00
Wale Ogunwale
66d2dd686e Fix build breakage.
Change-Id: I694a885e705d2543e671fd2809bbb518176c3804
2016-01-04 17:54:26 -08:00
Wale Ogunwale
01d665686e Refactored ActivityStarter#startActivityUnchecked to make it easier to follow
Change-Id: I7566e69206753601fbc7b126da8b5db4891a955f
2016-01-05 01:49:19 +00:00
Wale Ogunwale
3a39664b07 Merge "Added hidden API for specifying launch stack in ActivityOptions" 2016-01-05 01:48:34 +00:00
Roozbeh Pournader
9ae46d8ee2 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
2016-01-04 17:38:17 -08:00
Chris Craik
e4db79de12 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
2016-01-04 17:00:03 -08:00
Doris Liu
8190e5dca4 Merge "Avoid calling invalidateSelf() from draw call" 2016-01-05 00:54:36 +00:00
Doris Liu
841f6e19ba Avoid calling invalidateSelf() from draw call
Bug: 26329675

Change-Id: Ieb76b6f63a5139f6033ca9baa9ba6fac36ae466c
2016-01-05 00:53:07 +00:00
Svetoslav Ganov
a7ca3e73bf Merge "Remove FLASHLIGHT permission" 2016-01-05 00:06:03 +00:00
Wale Ogunwale
854809c074 Added hidden API for specifying launch stack in ActivityOptions
Bug: 26273032
Change-Id: Ifb9c70e6783b0426613709693e11742d80ba2fc3
2016-01-04 23:58:18 +00:00
Wale Ogunwale
89109a2464 Merge "Added support for android.R.attr#alwaysFocusable" 2016-01-04 23:57:17 +00:00
Chris Craik
b7244809f5 Check api level before throwing in drawable setters
bug:25801789

TextureView started throwing in these in N.

Change-Id: I538d1c57deb0a5a6a25c297833af06d3f237600c
2016-01-04 15:49:12 -08:00
Aga Wronska
e8ff81c1b1 Merge "Change Internal Storage icon from sdcard to smartphone" 2016-01-04 23:25:51 +00:00
Matt Sarett
e3b8f255cf Merge "Make BitmapFactory.Options API Changes" 2016-01-04 22:55:38 +00:00
Wale Ogunwale
6cae765b67 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
2016-01-04 22:23:56 +00:00
Wale Ogunwale
46ca282851 Merge "Don't allow unfocusable activity/stack to gain focus" 2016-01-04 22:22:16 +00:00
Matt Sarett
5e2496bcee 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
2016-01-04 17:20:17 -05:00
Roozbeh Pournader
1c686f2ce6 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
2016-01-04 13:53:54 -08:00
Chris Wren
4bd4f40fb2 Merge "fix ActivityMetricsLogger counter names" 2016-01-04 21:33:46 +00:00
Andre Eisenbach
09bc4e0b7e Protect android.bluetooth.intent.DISCOVERABLE_TIMEOUT
Bug: 26347910
Change-Id: I61b211c3f32c9e79c40c2b07798dd9cb6d82df22
2016-01-04 21:26:57 +00:00
Jeff Sharkey
4070072669 Merge "More work towards triaging missing app behavior." 2016-01-04 21:20:49 +00:00
Chris Wren
ae255ee61b fix ActivityMetricsLogger counter names
Change-Id: I49e4785fdecfdbb60fc168539e654bcb7847d1dd
2016-01-04 16:20:17 -05:00
George Mount
2701831775 Merge "Tests for DatePicker keyboard interaction." 2016-01-04 21:14:38 +00:00
Chris Wren
29b7dd8d69 Merge "implement assistant service connection" 2016-01-04 21:07:24 +00:00
Fyodor Kupolov
63f3b88873 Merge "Return USER_OP_SUCCESS when force stopping a user" 2016-01-04 20:59:12 +00:00