230500 Commits

Author SHA1 Message Date
Calin Juravle
9dff854be4 Clean up passing volumeUuid to DexOptimizer
The argument was redundant.

Also, we should have taken the uuid for shared library from their
package information.

Bug: 26080105
Change-Id: If3d86e00ebecfc13cf63482bce4ac32a119de967
2016-01-21 15:45:54 -08:00
Anthony Chen
f9bad765dd Merge "Add null checks for various buttons on the Nav Bar." 2016-01-21 23:41:45 +00:00
Makoto Onuki
31a05062c2 Merge "[FBE] Introduce shadow calllog provider [1/2]" 2016-01-21 23:39:07 +00:00
Lorenzo Colitti
a6855a1faa Merge "Debug logging for when getActiveNetworkInfo returns BLOCKED." into mnc-dr1.5-dev 2016-01-21 23:31:50 +00:00
Bryce Lee
b2f0e7f6bc Merge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into cw-e-dev am: 2e7ecddd5b -s ours
am: 746ea1efe3  -s ours

* commit '746ea1efe3e2acc13865f731f3b5a7cc88525c1d':
  DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall.
2016-01-21 23:30:48 +00:00
Robert Greenwalt
bd92c57a4f Merge "Add free short codes for Direct Carrier Billing and others."
am: 4d9ffdf952

* commit '4d9ffdf95237c4ee59514c678fea6ff157e0eee3':
  Add free short codes for Direct Carrier Billing and others.
2016-01-21 23:20:02 +00:00
Bryce Lee
746ea1efe3 Merge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into cw-e-dev
am: 2e7ecddd5b  -s ours

* commit '2e7ecddd5bb13721e5b3d55ee96b9dcf2e9148e6':
  DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall.
2016-01-21 23:19:06 +00:00
Makoto Onuki
b524741cb6 [FBE] Introduce shadow calllog provider [1/2]
Introduce a new provider that's a clone of the calllog provider but
is EA.

The provider is hidden and requires MANAGE_USERS to access.

Bug 26183949

Change-Id: Ie3181a2a68c522b7e513b45218ad06ecd27cda8c
2016-01-21 15:14:57 -08:00
Bryce Lee
18116c01c2 Improve logging in BluetoothHeadsetClientCall.
Change-Id: I3b1b3946ca21c0bbc902a2c521938239a486d98a
(cherry picked from commit fe985fa7f0286df0317b139a375fa8ee36e6a304)
2016-01-21 23:11:20 +00:00
Jean-Michel Trivi
b919f6fd71 Unhide audio recording notification API
Introduce new methods and classes for the audio recording
  configuration update and query API.
Callback registration supports a Handler.

Bug 22876530

Change-Id: I819ad464f095d970b5d1d8a3781fcf8dbb310424
2016-01-21 15:09:38 -08:00
Bryce Lee
2e7ecddd5b Merge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into cw-e-dev 2016-01-21 23:01:06 +00:00
Bryce Lee
fe985fa7f0 DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall.
Change-Id: I3b1b3946ca21c0bbc902a2c521938239a486d98a
2016-01-21 22:54:56 +00:00
Anthony Chen
ada13040d0 Add null checks for various buttons on the Nav Bar.
CarNavigationBarView extends NavigationBarView and provides a different
layout for the navigation bar which does not include all these buttons.
As a result, SystemUI will crash.

Change-Id: I1be079814faa26925721ec86a6f108506f54b99e
2016-01-21 14:47:32 -08:00
Santos Cordon
14176272ed Merge "Add metadata for car-mode in-call." 2016-01-21 22:35:52 +00:00
Anthony Chen
55e8e1ee60 Move hard-coded dimens to dimens.xml.
This is an initial change to allow the values to be overridden by
Android Auto.

Change-Id: Iaa611b6ff2ce0aa00d93776e775905c786802ef2
2016-01-21 14:33:21 -08:00
Roozbeh Pournader
2d05094209 Merge "Implement smarter locale resource selection" 2016-01-21 22:17:31 +00:00
Adam Lesinski
6f0324315b Merge "AAPT2: Accept empty zip files" 2016-01-21 22:13:15 +00:00
Robert Greenwalt
4d9ffdf952 Merge "Add free short codes for Direct Carrier Billing and others." 2016-01-21 22:10:55 +00:00
Santos Cordon
888815501b Add metadata for car-mode in-call.
Change-Id: Ic2d55889e0ab65195bee549837b51c581ce5076a
2016-01-21 14:09:09 -08:00
John Reck
32a95af029 Merge "libhwui: fix texture memory leak"
am: 550d46d9da

* commit '550d46d9dae8a4de5abd36a5e2d3c101135da696':
  libhwui: fix texture memory leak
2016-01-21 22:08:44 +00:00
Michael Wright
d5f7ed9fe9 Switch and store keyboard layouts based on IME subtype.
Rather than associate the keyboard layout solely with a specific
hardware model, we should also associate it with a given IME subtype.
This lets users switch between various languages and have the
keyboard change in unison with them so they can use the appropriate
layouts for each language.

This change adds initial support for associating IME subtypes and
keyboard layouts. We still need to:
  - Remove support for the old style of layout association once the
    Settings apps begins to use the new APIs
  - Automatically select an appropriate layout based on the given
    subtype (or set a reasonable universal default such as QWERTY)

Bug: 25752812

Change-Id: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216
2016-01-21 14:03:43 -08:00
Doris Liu
7f193c5b03 Merge "Create SkCanvas on the stack to avoid leaking memeory" 2016-01-21 21:49:54 +00:00
Chong Zhang
4eb533fee9 Merge "Fixes for broken saved surface" 2016-01-21 21:48:55 +00:00
John Reck
550d46d9da Merge "libhwui: fix texture memory leak" 2016-01-21 21:48:24 +00:00
Roozbeh Pournader
b927c559e1 Implement smarter locale resource selection
* Add support for determining script from language and region.
* Add support for determining special parents of locales.
* Add support for smart comparison of locales with only a difference
  in region, using the locale parentage tree.
* Fix LocaleData.matchScore() to not fallback to old locale matching
  behavior if we can't determine a script.
* Allow four-character variant codes. (Previously, only five- to
  eight-character variant codes were allowed.)

Bug: 7296673
Bug: 26589793
Change-Id: Ibde0a48c0564ff383b41068095a5cbacfe7b94bc
2016-01-21 13:47:22 -08:00
Sergey Poromov
9448196076 Add BackupManager#isAppEligibleForBackup() method to Backup API.
Check is done only in framework.
Transport still can deny backup for the package.

Bug: 26443192
Change-Id: Ifcde67a4d11725aa4b15ab4f57d740f55ab2b265
2016-01-21 22:41:39 +01:00
Steve McKay
17fefe5b1a Merge "Move delete support into FileOperationService." 2016-01-21 21:38:41 +00:00
Makoto Onuki
e5fea6fad1 Merge "SUW shouldn't use hidden APIs." 2016-01-21 21:36:45 +00:00
Makoto Onuki
efd88c3beb Merge "Add missing system broadcast actions to the protected list." 2016-01-21 21:34:59 +00:00
Chong Zhang
eb22e8ed42 Fixes for broken saved surface
- Reset and restore the visibility flags and hasSurface states when
  surface is saved or restored. When the surface is in saved stated,
  we have to make the rest of the system believe that the window has
  no surface.

- Set app windows to 'mExiting' when we start a transistion because
  window manager changes the visibility of the app. We can't rely on
  receiving a relayoutWindow from the app to invisible. We need to
  mark it exiting so that when the transition is done, the surfaces
  get removed (or saved if possible) promptly.

- We need to save the surface if the app token is the last one in
  a task, regardless of whether it's visible, this means the whole
  task is going into background. But if the app has another visible
  token on top of it, we don't need to save it. For example one
  activity launches another activity, in this case we don't want to
  save the surface of the activity on the bottom.

bug: 26573100

Change-Id: Id845f87b30cda1cebcc12ad2ac8dbf19a068a86e
2016-01-21 13:32:33 -08:00
Ben Kwa
760199ea72 Merge "Rework selection handling for items in the DirectoryFragment." 2016-01-21 21:28:46 +00:00
Vladislav Kaznacheev
e382831109 Merge "Send ACTION_DRAG_LOCATION right after ACTION_DRAG_STARTED" 2016-01-21 21:26:11 +00:00
Yohei Yukawa
d469f2122e Clarify the purpose of EditorInfo#hintLocales.
During the initial attempt to support automatic language switching in
LatinIME, it turns out that the current EditorInfo#locales is difficult
to use and even confusing in some situations.  Based on that
experience, this CL changes as follows:

* Rename EditorInfo#locales to EditorInfo#hintLocales:
  This is mainly to avoid possible confusion when to set this.  We want
  to make it clear that having non-empty LocaleList there is a clear
  signal that the user would switch to certain languages regardless of
  the currently selected input method subtype.

* Make EditorInfo#hintLocales nullable:
  Previously marshaling EditorInfor causes NPE when
  EditorInfo#hintLocales is null.  This CL relaxes such a restriction.

* Introduce TextView#{set, get}ImeHintLocales():
  In the previous implementation [1], we just copied
  TextView#getTextLocales() into EditorInfo.  This is, however, does not
  work well because it is no more or less than the default value.  If
  LatinIME supports automatic language switching, having the default
  value in EditorInfo actually means that whenever you focus in a new
  text field, the keyboard language is reset to the default locale.
  In order to make this "hint" useful for IME developers, this "hint"
  should be specified only when the application developers are confident
  to do so.

  [1]: I738ffaaf07091d8b980f8bfc6e16227fcb85a96a
       0445fdf321e74044dc9f3719922fc8ff4923fdf4

Bug: 22859862
Change-Id: I0a730011874ea8d01e50624ed3f1ecd197d05f94
2016-01-21 21:13:06 +00:00
Doris Liu
c2de46fadd Create SkCanvas on the stack to avoid leaking memeory
Bug: 26447978
Change-Id: Ied022c103c3b08e9cfc3cb775a8c95fd5461e81d
2016-01-21 13:05:48 -08:00
Oleksandr Peletskyi
b7cc096fd4 Merge "Added restriction if a user is allowed to change the icon. BUG: 25305966" 2016-01-21 20:25:46 +00:00
Lorenzo Colitti
c1a6ce70be Debug logging for when getActiveNetworkInfo returns BLOCKED.
Bug: 26488100
Change-Id: I991581732d35aed18392bed2f3d69ca8fb231f5e
2016-01-22 05:21:34 +09:00
Ben Kwa
0436a75721 Rework selection handling for items in the DirectoryFragment.
- Remove the gesture detector from the MultiSelectManager, and
  consolidate gesture detection and event dispatch logic in
  DirectoryFragment.GestureListener.

- Route single-tap events through the DocumentHolder, so that it can
  apply view-specific logic, like making a tap on the item's icon
  select rather than activate.

- Consolidate event handling logic in the ItemEventListener.

- Add new unit tests for DocumentHandler.

BUG=24326546

Change-Id: Id15cdd11b13e4c063c1baff95aa8ee09c190d6c3
2016-01-21 12:18:01 -08:00
Makoto Onuki
730a759254 Add missing system broadcast actions to the protected list.
Bug 26697573

Change-Id: I39e6b90b38c6e1dbe4978be1cb2a10d72b015cba
2016-01-21 12:17:14 -08:00
Steve McKay
3564543e1e Move delete support into FileOperationService.
Refactor Jobs to work with files from multiple providers.
Don't shut down threadpool until service#onDestroy is called.

Bug: 26696797, 26462789, 26567205, 25162803, 26714663
Change-Id: Id43e8e3dc2294cd07dcd6a3477b19efb298c260f
2016-01-21 12:16:04 -08:00
Matt Wu
6c09ff5560 Merge "Set WindowSession's touchmode when in local focus mode," 2016-01-21 20:09:36 +00:00
Fyodor Kupolov
1e33dc8fdf Use SystemService lifecycle API in input method service
Change-Id: Ic17667df60b30e5355b61a3601ad27a000cab3a3
2016-01-21 12:06:11 -08:00
Oleksandr Peletskyi
7f1f1dfc87 Added restriction if a user is allowed to change the icon.
BUG: 25305966

Change-Id: I3d527224f00087b2bd959879ebb143e2ecb9c914
2016-01-21 20:49:32 +01:00
Alan Viverette
dd26bfc13e Merge "Remove unnecessary @inheritDoc, add missing @Override to ViewGroup" 2016-01-21 19:49:00 +00:00
Alan Viverette
62bbd1a952 Ensure all showContextMenu() overrides have matching x,y overrides
Bug: 26340507
Change-Id: I9c6da434954d40fe689c18fa9559a80c8ca61f95
2016-01-21 14:47:30 -05:00
Matthew Williams
b7a73360b5 DO NOT MERGE Redact Account info from getCurrentSyncs am: a5cafd2a93 am: 06ef7dfdf0 am: 5fc753acaf -s ours am: 0d3e46391a am: 9c841923df -s ours am: a76208d4e4 am: 9e52b29fe2 am: 1f6dbd910b -s ours am: 5cb2597a9d am: 08d7e9608e am: c151cec56e am: 4831ef3872 am: d877135d61
am: caf53acdd7  -s ours

* commit 'caf53acdd7d4d1c2ec4d5678aa9b6a1c5c1340f8':
  DO NOT MERGE Redact Account info from getCurrentSyncs
2016-01-21 19:30:43 +00:00
Matthew Williams
caf53acdd7 DO NOT MERGE Redact Account info from getCurrentSyncs am: a5cafd2a93 am: 06ef7dfdf0 am: 5fc753acaf -s ours am: 0d3e46391a am: 9c841923df -s ours am: a76208d4e4 am: 9e52b29fe2 am: 1f6dbd910b -s ours am: 5cb2597a9d am: 08d7e9608e am: c151cec56e am: 4831ef3872
am: d877135d61

* commit 'd877135d616321b4b3013b302e8615a8f8b04ffa':
  DO NOT MERGE Redact Account info from getCurrentSyncs
2016-01-21 19:25:51 +00:00
Matthew Williams
d877135d61 DO NOT MERGE Redact Account info from getCurrentSyncs am: a5cafd2a93 am: 06ef7dfdf0 am: 5fc753acaf -s ours am: 0d3e46391a am: 9c841923df -s ours am: a76208d4e4 am: 9e52b29fe2 am: 1f6dbd910b -s ours am: 5cb2597a9d am: 08d7e9608e am: c151cec56e
am: 4831ef3872

* commit '4831ef3872f7f5c5d2ea0838f0958412e3833aeb':
  DO NOT MERGE Redact Account info from getCurrentSyncs
2016-01-21 19:20:31 +00:00
Adam Powell
db33840518 Merge "Init child fragments consistently with activity fragments" 2016-01-21 19:19:01 +00:00
Phil Weaver
75fab6b8bc Merge "Pass drawing order information to accessibility." 2016-01-21 19:17:48 +00:00
Matthew Williams
4831ef3872 DO NOT MERGE Redact Account info from getCurrentSyncs am: a5cafd2a93 am: 06ef7dfdf0 am: 5fc753acaf -s ours am: 0d3e46391a am: 9c841923df -s ours am: a76208d4e4 am: 9e52b29fe2 am: 1f6dbd910b -s ours am: 5cb2597a9d am: 08d7e9608e
am: c151cec56e

* commit 'c151cec56ec3666b5bb20e8cf7c3dca2500ea353':
  DO NOT MERGE Redact Account info from getCurrentSyncs
2016-01-21 19:13:32 +00:00