238127 Commits

Author SHA1 Message Date
Fyodor Kupolov
4c74334c44 Merge "Added getProfileIds method returning array of userIds" into nyc-dev 2016-04-11 16:40:55 +00:00
Chris Thornton
9e928c1f71 Merge "Support multiple Enrollment APKs" into nyc-dev 2016-04-11 16:40:43 +00:00
Alan Viverette
f716d815af Merge "Use old-style pickers on sub-small screens" into nyc-dev 2016-04-11 16:39:28 +00:00
Chris Wren
248a2e0364 Merge "don't copy importance forward" into nyc-dev 2016-04-11 16:30:07 +00:00
Julia Reynolds
8a199a7562 Merge "Merge "Show volume safety warning for all users" am: 0a51955 am: 6cd66de" into nyc-dev 2016-04-11 16:28:55 +00:00
Jason Monk
97e4c5e607 Merge "Fix QS accessibility issues" into nyc-dev 2016-04-11 16:23:48 +00:00
Alan Viverette
94caf7a797 Merge "Dialog theme overlay should reset window fixed width and height" into nyc-dev 2016-04-11 16:21:53 +00:00
Lorenzo Colitti
ed748c2c56 Merge "Reinstate much-reduced ConnectivityService logging." into nyc-dev 2016-04-11 16:08:52 +00:00
Yohei Yukawa
063fe652be Merge "Make additional IME Subtype ID persistent." into nyc-dev 2016-04-11 15:46:12 +00:00
Jason Monk
bc4574352d Fix QS accessibility issues
- Add label to quick settings expand indicator
 - Add battery tile content description

Change-Id: I112c3ba23906a4afe8068acf916e710ec9d40917
Fixes: 28073200
2016-04-11 11:36:55 -04:00
Gustav Sennton
15e636b570 Merge "Ensure we don't crash the system server when disabling/enabling package." into nyc-dev 2016-04-11 15:10:35 +00:00
Jason Monk
4e9348c7bb Merge "Guard against crash in RTL." into nyc-dev 2016-04-11 15:08:09 +00:00
David Brazdil
ffdaae004b Merge "Retry compiling a previously failing package after update" into nyc-dev 2016-04-11 15:04:20 +00:00
Jason Monk
c98ad64e4c Merge "Fix weird broken state from lock screen -> QS edit" into nyc-dev 2016-04-11 15:02:29 +00:00
Jason Monk
339df0742c Guard against crash in RTL.
Change-Id: Id692360cc66600a06a4353a8029440be422cc79f
Fixes: 27927374
2016-04-11 11:00:46 -04:00
Julia Reynolds
0940808a75 Merge "Show volume safety warning for all users" am: 0a51955
am: 6cd66de

* commit '6cd66defe33ef84580aff5ab067cd5308d258c01':
  Show volume safety warning for all users

Change-Id: Ic417e1591a1a7b7876b5a5e4f75153eb1992fe66
(cherry picked from commit 683bda7cb228c0576fbeebcca6df3cd3c9a8ca6c)

Bug: 24884692
2016-04-11 14:57:09 +00:00
Jason Monk
469d5cbf07 Fix weird broken state from lock screen -> QS edit
Change-Id: I852d28e0bbe682b85178163c362ed8d1b00a1eb7
Fixes: 28075240
2016-04-11 10:56:03 -04:00
David Brazdil
ace80c56d7 Retry compiling a previously failing package after update
BackgroundDexOptimizer (BDOS) keeps a list of packages it attempted
to compile but dexopt failed. Once such a package is put on the list,
it is never removed from it until reboot.

This CL modifies BDOS to accept notificiations from
PackageManagerService on recently installed packages and removes
their names from the list.

Bug: 28082762
Change-Id: I0c3d3f657bd3ff5f0a61dfeef1d8174ed7be0b74
2016-04-11 15:45:46 +01:00
Alan Viverette
80288c99c0 Dialog theme overlay should reset window fixed width and height
Bug: 28071435
Change-Id: Ib05fdd5294ebfb6448a992c8c7fe8106eacd8bfa
2016-04-11 10:44:14 -04:00
Chris Wren
1f602dc326 don't copy importance forward
copyRankingInformation should only copy side notes to be used by rankers.

Bug: 26919636
Change-Id: I6d0d87d4dc93ced65180ce58a4dcde2cac60e8b6
2016-04-11 10:36:01 -04:00
Benjamin Franz
3f7fdaaa76 Merge "Revert "Throw security exception for non-parent aware APIs"" into nyc-dev 2016-04-11 14:32:49 +00:00
Lorenzo Colitti
b89d33ee44 Merge changes Ic2c84de7,I379aef92 into nyc-dev
* changes:
  Remove duplicated code in NetworkStateTrackerHandler.
  Improve Tethering and NativeDaemonConnector logging.
2016-04-11 14:27:31 +00:00
Lorenzo Colitti
39d2bb56b6 Reinstate much-reduced ConnectivityService logging.
Change-Id: I9d1292f8c036be2a854fdb537f4ccb957d211966
2016-04-11 23:19:06 +09:00
Alan Viverette
315debb643 Use old-style pickers on sub-small screens
Bug: 28085161
Change-Id: I70eea06a1dc177484ed47f1ac59945e3d24a4973
2016-04-11 10:05:42 -04:00
Julia Reynolds
02d01b7b01 Merge "DND related restrictions" into nyc-dev 2016-04-11 14:05:06 +00:00
Andrei Stingaceanu
1399890890 Merge "Keyboard shortcuts: UI polish 1" into nyc-dev 2016-04-11 13:24:57 +00:00
Benjamin Franz
a26c626564 Revert "Throw security exception for non-parent aware APIs"
This reverts commit bd7ae782ed815a1765b15852caf6137ee6bae47e.

Bug: 28107853

Change-Id: Ic286d9a181e96b8eb9826dab9ed297e0e4dfa6de
2016-04-11 12:43:17 +00:00
Andrei Stingaceanu
a02965e211 Keyboard shortcuts: UI polish 1
* title color for system groups is now: "material_deep_teal_500"

* background behind shortcut keys:
** Now has 2dp rounded corners
** changed color from "material_grey_200" to "material_grey_100"

* the text items now have a minimum width equal to their height.
This means that now the text items with one character are always
the same (square) size as the icon items. Makes the UI look much
cleaner thus easier to read

* the line item now has a minimum height of 48dp and the content
is vertically centered

* minor variable renaming for increased readability

Bug: 28075364
Change-Id: Id7090b607b9c604c55513e7c393ed1084a1c8df0
2016-04-11 13:21:17 +01:00
David Brazdil
726959bf76 Merge changes If7388e15,Ica73e67a,Ia4d4362e into nyc-dev
* changes:
  Assume package failed to compile unless proven otherwise
  Refactor return values of performDexOpt
  Update packages in post-boot background job
2016-04-11 11:15:57 +00:00
David Brazdil
80932c1418 Assume package failed to compile unless proven otherwise
BackgroundDexOptService keeps a list of packages which failed to
compile so that they are not revisited. If compilation takes so long
that the background job is killed, the offending package is not
recorded.

This patch records the package before dexopt is called and removes it
from the list if dexopt succeeds.

Bug: 28082762
Change-Id: If7388e159b999287b60f19dc99cf4dde61ec64c8
2016-04-11 11:42:23 +01:00
David Brazdil
6a3b2d2bc6 Refactor return values of performDexOpt
PackageDexOptimizer.performDexOpt would return DEX_OPT_PERFORMED if
dexopt succeeded on the package and DEX_OPT_SKIPPED otherwise, even
if dexopt failed. This patch fixes that and cleans up the code.

PackageManagerService.performDexOpt* would return true only if
PackageDexOptimizer.performDexOpt returned DEX_OPT_PERFORMED.
Consequently, it would return false when dexopt was not needed. This
patch refactors the code to return true unless PackageDexOptimizer
returns DEX_OPT_FAILED and documents the behaviour.

Bug: 28082762
Change-Id: Ica73e67ab02025ef5619746bb8c465c96b72846b
2016-04-11 11:42:23 +01:00
David Brazdil
37a87698f5 Update packages in post-boot background job
Adds a post-boot job which scans all optimizable packages and updates
those whose OAT files are out of date. This is meant to offset the
fact that on OTA we only update the most used packages.

Bug: 27901338
Change-Id: Ia4d4362ecead1ca63d08d62c6814dad4b810f7cc
2016-04-11 11:42:18 +01:00
Andrei Stingaceanu
fecb3b8fd1 Merge "Keyboard shortcuts: sort application items" into nyc-dev 2016-04-11 10:00:15 +00:00
Yohei Yukawa
a8c81c1a80 Merge "Fix inefficient CursorAnchorInfo#hashCode()." into nyc-dev 2016-04-11 09:49:23 +00:00
Clara Bayarri
39cb01f9de Merge "Keyboard Shortcuts Helper: Find device with KeyCharacterMap" into nyc-dev 2016-04-11 09:44:52 +00:00
Clara Bayarri
738ab04fd9 Merge "Expose the Keyboard Shortcuts Helper in Activity" into nyc-dev 2016-04-11 09:43:16 +00:00
Yohei Yukawa
66baf69042 Make additional IME Subtype ID persistent.
It turns out that IME subtypes specified to
InputMethodManager#setAdditionalInputMethodSubtypes() are stored in the
presistent storate without subtype IDs.  As a result, when the system is
rebooted, the system would no longer consider those additional subtypes
as enabled due to subtype ID mismatch, until the IME re-adds those
additional subtypes again with the original subtype IDs.

Bug: 28104337
Change-Id: I1445213e0b83d76631a839b974ec1ab9b28ad7d2
2016-04-11 02:29:35 -07:00
Lorenzo Colitti
9b0c8fd95c Remove duplicated code in NetworkStateTrackerHandler.
Also use MessageUtils to decode message names.

Change-Id: Ic2c84de73fbf3eb10cc9634a083e5d3b3ffb807a
2016-04-11 17:40:22 +09:00
Lorenzo Colitti
cd63d247f0 Improve Tethering and NativeDaemonConnector logging.
1. Deduplicate the Tethering message numbers, and use MessageUtils
   to convert them to strings.
2. Add a warning to NativeDaemonConnector when an unsolicited
   event is more than 500ms late or takes more than 500ms to
   process.

Bug: 27857665
Change-Id: I379aef9257027d1ccf30906e79c6389ef1f95420
2016-04-11 17:40:21 +09:00
Yohei Yukawa
b7edebc8ad Fix inefficient CursorAnchorInfo#hashCode().
It turns out that the current CursorAnchorInfo#equals() is quite
inefficient because our CursorAnchorInfo#hashCode() tries to use almost
all the fields.  Even worse, as Matrix#hashCode() is hard-coded to 44,
we get the same hashCode() when comparing two CursorAnchorInfo objects
that are different only in transformation Matrix after such a complex
hash calculation.

In the real world scenarios, most likely calculation hash code only from
Matrix and composing text would be good enough for our use case, because
the former can cover UI scrolling scenario and the latter can cover the
text typing scenario.  More complex hash calculation is probably
inefficient.

With this CL, CursorAnchorInfo#hashCode() is pre-calculated only from
those two fields, and carefully reorder comparisons in
CursorAnchorInfo#equals() to improve the likelihood of returning false
with fewer comparisons.

Bug: 28105733
Change-Id: Id896adeab5ffe87ceddb2c2762d6d91475e28ec4
2016-04-11 01:38:23 -07:00
Daichi Hirono
df839271e3 Merge "Fix crash when deleting multiple files." into nyc-dev 2016-04-11 07:52:03 +00:00
Jeff Sharkey
2e3ce4ca46 Merge "Use inode numbers for CE storage." into nyc-dev 2016-04-11 06:12:37 +00:00
Jeff Sharkey
f06de20835 Merge "Relax SparseMappingTable Slog.wtf()." into nyc-dev 2016-04-11 05:50:41 +00:00
Jeff Sharkey
04b70fc63a Relax SparseMappingTable Slog.wtf().
When it's triggered, it happens with such frequency that it can DoS
the system server.

Bug: 28104329

Change-Id: I5c58e5f5bf4d88af2cb6215bcfddf35704e22eaa
2016-04-10 23:46:12 -06:00
Daichi Hirono
76be46f4d9 Fix crash when deleting multiple files.
When deleting files, MtpDocumentsProvider clears LoadingTask in
DocumentsLoader to update directory contents list. Previously it can
clear ongoing task, and it skips calling Mapper#stopAddingDocuments.
Since Mapper#startAddingDocuments and Mapper#stopAddingDocuments must be
called 1 to 1, it causes precondition check failure at the next call of
Mapper#startAddingDocuments.

Change-Id: I23e2b117da826297e45404be4db4cc29f96e5510
Fix: 28076320
2016-04-11 14:32:03 +09:00
Yohei Yukawa
270fe5dbe4 Merge "Shift+Meta+Space should reverse-rotate subtypes." into nyc-dev 2016-04-11 05:27:30 +00:00
Jeff Sharkey
4288419787 Use inode numbers for CE storage.
Certain operations, such as clearing/destroying app data, or just
counting on-disk size, require us to know the CE storage directory
of a particular app.  To facilitate these operations, offer a method
to get the inode of a CE directory, and accept that inode number
for later operations.  Collect and store the inode number in
PackageUserState for future use when that user's CE storage is
still locked.  This design means it's safe to clear/destroy app
data in both CE/DE storage at the same time.

Move most installd-related methods to a uniform calling convention
that accepts a single parent PackageParser.Package, and internally
fans out to handle all "leaf" packages under that parent.

In previous releases, we started installing apps using a new
directory-based layout, where all app code, unpacked native libraries,
and optimized code is bundled together.  So now we only have a single
path to measure for code size.  This fixes several outstanding bugs
that were causing sizes to be miscounted for apps supporting multiple
architectures.

Fix a subtle bug in PackageSettings that would cause "notLaunched"
to be parsed incorrectly.

Bug: 27828915, 27197819
Change-Id: Ia582cf3550553292bde4bb4313367111332913ec
2016-04-10 23:26:09 -06:00
Selim Cinek
db5c565380 Merge "Fixed a bug where clear all wasn't translated" into nyc-dev 2016-04-11 04:30:51 +00:00
Selim Cinek
32f723bfa4 Merge "Fixed a bug where the wrong group was HUNd" into nyc-dev 2016-04-11 04:30:38 +00:00
Yohei Yukawa
d39ae85482 Shift+Meta+Space should reverse-rotate subtypes.
This is a follow up CL to my previous CL [1], which added a new key
binding Meta+Space to rotate enabled IME subtypes.  With this CL,
Shift+Meta+Space starts reverse-rotating enabled IME subtypes as
originally planed.

 [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
      ae61f7118a92e097e854c840d5726c0920f5db0e

Bug: 25753404
Bug: 28103839
Change-Id: I3694edd80be6dfe18b90360e24ae4d451b331928
2016-04-10 20:28:40 -07:00