228656 Commits

Author SHA1 Message Date
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
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
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
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
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
Julia Reynolds
bc89558f4d Merge "Add 'more settings' and 'done' to guts." 2016-01-04 20:56:59 +00:00
Chad Brubaker
d8844613a3 Merge "Add ConfigNetworkSecurityPolicy" am: 2786002bd5
am: a35d617cce

* commit 'a35d617cce6c9b1b1cba7e7c786849d21ea42d3e':
  Add ConfigNetworkSecurityPolicy
2016-01-04 20:54:00 +00:00
Aga Wronska
7587fd0094 Change Internal Storage icon from sdcard to smartphone
Bug:26143658
Change-Id: I7663a477c8e90e89f8f5dbed1b6f2c1f83e929d1
2016-01-04 12:53:18 -08:00
Chad Brubaker
a35d617cce Merge "Add ConfigNetworkSecurityPolicy"
am: 2786002bd5

* commit '2786002bd51b229d9a4672e3c43f835796de06ea':
  Add ConfigNetworkSecurityPolicy
2016-01-04 20:49:29 +00:00
Fyodor Kupolov
7b4a8a4e80 Return USER_OP_SUCCESS when force stopping a user
Bug: 26379502
Change-Id: I08dc18eec5b8dccf63a806acc9b3bfda890ceedb
2016-01-04 12:47:22 -08:00
Wale Ogunwale
4cea0f5bfc Don't allow unfocusable activity/stack to gain focus
Prevents them from being resumed since we always want to resumed
activity to be a focusable acitvity.

Bug: 26273032
Change-Id: Ied832e100d9a2d8915762db53c9230774be21d1c
2016-01-04 20:37:02 +00:00
Wale Ogunwale
d6f5e6bb91 Merge "Consolidate resume activity code around focused stack." 2016-01-04 20:35:53 +00:00
Philip P. Moltmann
98edbe3e6d Merge "Show indeterminate progress bar when job is queued or started and the progress is not known." 2016-01-04 20:28:27 +00:00
Chad Brubaker
2786002bd5 Merge "Add ConfigNetworkSecurityPolicy" 2016-01-04 20:26:56 +00:00
Julia Reynolds
5682192a8f Add 'more settings' and 'done' to guts.
Change-Id: I0499869b1a40653ff1b179a95c55a22d8e12e718
2016-01-04 15:24:29 -05:00
Svetoslav Ganov
1463cebd77 Remove FLASHLIGHT permission
This permissions is not protecting access to the flashlight.
Anyone can use the latter via CameraManager.setTorchMode().

bug:26383626

Change-Id: I44c6395b5a0f80c1c539cffe61715b29b401a775
2016-01-04 12:19:45 -08:00
Jeff Sharkey
2f3e35376a More work towards triaging missing app behavior.
Many places across the platform query package details without
gracefully handling packages or components that go missing for
various reasons.  This can cause annoying user data loss, such as
resetting back to built-in apps or dropping of accounts, etc.

This change verifies that system callers have thought about these
edge cases by logging if they use default matching behaviors without
explicitly marking themselves as being "triaged."  (The logging is
currently disabled by default.)

Also creates explicit definitions of supported flags for various
incoming PackageManager calls, and defines a clear distinction
between flag types:

-- GET-style flags are used to request additional data that may have
been elided to save wire space.

-- MATCH-style flags are used to include components or packages that
would have otherwise been omitted from a result set by current system
state.

There are a handful of existing GET flags that better fit under the
MATCH definition, so this change clones them to new constants and
marks the old ones as deprecated.

Fixes bug in JobSchedulerService to consider jobs from apps on
external storage.  Revert some dialer behavior back to being
untriaged.

Change-Id: I9b6ab0968241e3479bddbd78de0c51e3b9917318
2016-01-04 13:19:02 -07:00
Dan Sandler
9945e1c67e Merge "Use GregorianCalendar.add() when searching for next alarm." am: b52de8248f
am: 65a35016c1

* commit '65a35016c1f22805c2e70b49ff2b121b9f7dc739':
  Use GregorianCalendar.add() when searching for next alarm.
2016-01-04 20:12:24 +00:00
Jack Yu
6978228ccf Fixed the incorrect cdma RAT detection logic.
am: fa530b4a10

* commit 'fa530b4a10e8553afd58b827dfd7dcd8726126b4':
  Fixed the incorrect cdma RAT detection logic.
2016-01-04 20:10:01 +00:00
Dan Sandler
65a35016c1 Merge "Use GregorianCalendar.add() when searching for next alarm."
am: b52de8248f

* commit 'b52de8248f8e5f95f7984967e646eb9b3a641526':
  Use GregorianCalendar.add() when searching for next alarm.
2016-01-04 20:07:38 +00:00
Jack Yu
fa530b4a10 Fixed the incorrect cdma RAT detection logic.
Used the correct CDMA bitmask to determine if the bearer services
are based on 3GPP2 radio technologies.

bug: 26318528
Change-Id: Ic30c25aa7b67372898a041dd1f3a08a3abede394
2016-01-04 11:58:48 -08:00