Commit Graph

336805 Commits

Author SHA1 Message Date
Adam Lesinski
e02983681a Merge changes Id8bdb14e,I573a6735,Ia804777f,Ia68122cb,Ia1997800, ... into oc-mr1-dev
* changes:
  AAPT2: Bump to version 2.19
  AAPT2: Fix issue with resource deduping
  AAPT: Dump badging should pickup strings from the right package
  AAPT2: Change the daemon mode to be line based
  AAPT2: better error handling for daemon mode
  AAPT2: Fix regression in Manifest.java permissions
  AAPT2: Define intermediate compiled XML proto
  AAPT2: Add a daemon mode
  AAPT2: Fix mkdirs implementation
  AAPT2: Change XmlDom to exclude Namespace as a node
  AAPT2: Fix windows unicode path issues
  AAPT2: Fix typo in Config parsing
  AAPT2: Change proto format to reduce usage of StringPool
  AAPT2: Add navigation type
  AAPT2: Document Format.proto
2017-09-15 16:49:34 +00:00
Neil Fuller
293e2f9955 Merge "Finalize package intents used to trigger tz update" into oc-mr1-dev 2017-09-15 09:40:05 +00:00
Adam Lesinski
689ce3f658 AAPT2: Bump to version 2.19
Test: manual
Bug: 65645766
Change-Id: Id8bdb14e498bd79ff642f9ad56ef05ec7a5825af
Merged-In: Id8bdb14e498bd79ff642f9ad56ef05ec7a5825af
2017-09-15 08:49:24 +00:00
TreeHugger Robot
7bbe06231f Merge "Fix conflicting JavaDoc of TYPE_TEXT_FLAG_NO_SUGGESTIONS" into oc-mr1-dev 2017-09-15 03:39:41 +00:00
Jiyong Park
93d436f4bc Merge "Fix missing null checking" into oc-mr1-dev 2017-09-15 02:19:19 +00:00
TreeHugger Robot
cebe432650 Merge "Throw if BitmapFactory.Options.inBitmap is HARDWARE" into oc-mr1-dev 2017-09-15 02:15:23 +00:00
TreeHugger Robot
2437f9f10c Merge "Frameworks: Fix NPE for agent attach" into oc-mr1-dev 2017-09-15 02:11:12 +00:00
Jean-Michel Trivi
982ee8e6c3 Merge "AudioPlaybackConfiguration: prevent race condition on mIPlayerShell" into oc-mr1-dev 2017-09-15 01:37:55 +00:00
Kevin Hufnagle
677b6f5a7b Merge "docs: updated link on RemoteInput page" into oc-dev am: 6087b990df
am: 91fb9b2a16

Change-Id: Ib5ff83e4ce6c5a172db8f483387ebb6a8a97ae55
2017-09-15 01:01:15 +00:00
TreeHugger Robot
06dc14cabc Merge "Do not animate icons when leaving AoD" into oc-mr1-dev 2017-09-15 00:56:22 +00:00
Kevin Hufnagle
91fb9b2a16 Merge "docs: updated link on RemoteInput page" into oc-dev
am: 6087b990df

Change-Id: Idc629243c3794565cdfebe7bd737a78d97010295
2017-09-15 00:42:20 +00:00
Kevin Hufnagle
6087b990df Merge "docs: updated link on RemoteInput page" into oc-dev 2017-09-15 00:12:41 +00:00
Yohei Yukawa
71803994a3 Fix conflicting JavaDoc of TYPE_TEXT_FLAG_NO_SUGGESTIONS
TYPE_TEXT_FLAG_NO_SUGGESTIONS is just a hint and does not mean
IME should never show a UI to display suggestions.

This CL makes that point clear in JavaDoc.

Test: checkbuild
Bug: 35875399
Bug: 38139781
Bug: 38184682
Fixes: 65693181
Change-Id: Id0c3b6bc05689a5f1c8b52637664f59d45850a60
2017-09-14 23:59:18 +00:00
TreeHugger Robot
33b1e1fe4d Merge "Avoid saving position before minimizing when in transition" into oc-mr1-dev 2017-09-14 23:28:24 +00:00
TreeHugger Robot
03f8b068a9 Merge "Fixes quick switch animation entering recents for low ram devices" into oc-mr1-dev 2017-09-14 23:27:04 +00:00
Jiyong Park
63495c2796 Fix missing null checking
Bug: 65666724
Test: build

Change-Id: Ie3fa891da012cbb3f313a33e0e5759f743887480
2017-09-15 08:07:41 +09:00
TreeHugger Robot
8bba760b4f Merge "Added SafetyNet logging for UsbDebugging security bug." into oc-mr1-dev 2017-09-14 22:26:55 +00:00
TreeHugger Robot
a4996f241f Merge "Show big text on AoD" into oc-mr1-dev 2017-09-14 22:19:41 +00:00
TreeHugger Robot
c668bc0d92 Merge "Use correct date pattern for displaying year in DatePicker" into oc-mr1-dev 2017-09-14 21:49:43 +00:00
Lei Yu
a57aea0d61 Merge "Change battery icon to the side of bt icon" into oc-mr1-dev 2017-09-14 21:31:11 +00:00
Andreas Gampe
55351365a9 Frameworks: Fix NPE for agent attach
Fix missing null check.

Bug: 62445317
Test: m
Test: adb shell am start --attach-agent dummy.so
Test: m cts && cts-tradefed run commandAndExit cts-dev --module CtsJvmtiAttachingHostTestCases
Change-Id: Ia16c2973b24f81839d20502339978e75a23a93bc
2017-09-14 14:18:52 -07:00
sergeyv
08beea71c9 Throw if BitmapFactory.Options.inBitmap is HARDWARE
Test: BitmapRegionDecoderTest#testHardwareBitmapIn
bug:34415265
Change-Id: I58061504dd42ba918f89e1e5daf668f7601ca8d3
2017-09-14 21:13:58 +00:00
Chris Wren
e72e8b1528 Merge "also log user-initiated notification collapse events" into oc-mr1-dev 2017-09-14 19:55:32 +00:00
Philip P. Moltmann
304d267066 Merge "Do not fail session.commit on current thread" into oc-mr1-dev 2017-09-14 19:52:31 +00:00
Julia Reynolds
bc0c5882c6 Merge "Clear calling identity" into oc-mr1-dev 2017-09-14 19:26:25 +00:00
Julia Reynolds
d5ca90a7af Merge "Display volume dialog for longer..." into oc-mr1-dev 2017-09-14 19:19:56 +00:00
Beverly
5cdff9579b Added SafetyNet logging for UsbDebugging security bug.
Bug: 62187985
Test: n/a
Change-Id: I69244381b2172357c5adc8785fc73d1cfd3cc17d
2017-09-14 19:15:52 +00:00
Beverly Tai
9fbf077e80 Merge "DO NOT MERGE Backporting potential usb tapjacking precaution." into oc-dev am: d740b2d09a -s ours
am: fe5ce91c5f  -s ours

Change-Id: I28bb498ea60d1a42d4b557f0b58c7134650bb3dd
2017-09-14 19:09:35 +00:00
Beverly Tai
fe5ce91c5f Merge "DO NOT MERGE Backporting potential usb tapjacking precaution." into oc-dev
am: d740b2d09a  -s ours

Change-Id: I952391f1801cd678240b145971a733c755f62078
2017-09-14 19:00:40 +00:00
Beverly Tai
d740b2d09a Merge "DO NOT MERGE Backporting potential usb tapjacking precaution." into oc-dev 2017-09-14 18:49:00 +00:00
Hall Liu
5dab2f297c Merge "Unhide EMBMS download API" into oc-mr1-dev 2017-09-14 18:39:46 +00:00
TreeHugger Robot
a76a1e8842 Merge "Show mobile signal strength in QS edit panel" into oc-mr1-dev 2017-09-14 18:34:55 +00:00
Adam Lesinski
a91d5c39ed AAPT2: Fix issue with resource deduping
Resource deduping relies on the definitions of
ConfigDescription.ConflictsWith, ConfigDescription.IsCompatibleWith,
and ConfigDescription.Dominates.

ConflictsWith is supposed to ignore range-based qualifiers, like
version, density, smallest width, screen size, etc.

This was not the case for screen size, and was assumed that the
choice of screen size is mutually exclusive.

This CL fixes the assumption and includes screen size (small, normal, large, xlarge)
as a qualifier that does not conflict.

Bug: 64397629
Bug: 65645766
Test: make aapt2_tests
Change-Id: I573a6735fedd7721a10ba32902bc5d27ef99b88e
Merged-In: I573a6735fedd7721a10ba32902bc5d27ef99b88e
2017-09-14 11:31:48 -07:00
Adam Lesinski
40e869e2a5 AAPT: Dump badging should pickup strings from the right package
A bug in the dump badging command caused strings to be looked up in the
first loaded package only.

Bug: 64948230
Bug: 65645766
Test: none
Change-Id: Ia804777fe3f963004a5c053129ef6e0c94b7f6a3
Merged-In: Ia804777fe3f963004a5c053129ef6e0c94b7f6a3
2017-09-14 11:31:40 -07:00
Adam Lesinski
f1a7e04851 AAPT2: Change the daemon mode to be line based
Accept a set of arguments separated by newlines.
This avoids path separator conflicts with the argument
format for passing splits.

Test: manual
Bug: 65645766
Change-Id: Ia68122cb77b7dde2292a0fd953e79f02996ac01c
Merged-In: Ia68122cb77b7dde2292a0fd953e79f02996ac01c
2017-09-14 11:31:30 -07:00
Izabela Orlowska
96ed7c3b17 AAPT2: better error handling for daemon mode
Test: manual
Bug: 65645766
Change-Id: Ia1997800ad94f386dbbb4195011395ecee1ba91f
Merged-In: Ia1997800ad94f386dbbb4195011395ecee1ba91f
2017-09-14 11:31:22 -07:00
Adam Lesinski
6e241e7e54 AAPT2: Fix regression in Manifest.java permissions
Permissions defined with the same leaf name emit the same
string symbol, which causes collisions. AAPT would override
the symbol with the last one seen.

Do the same thing as AAPT, but emit a warning.

Bug: 64472942
Bug: 65645766
Test: make aapt2_tests
Change-Id: I17b9dc7e8d8bd80db98869394c93695cb453bebd
Merged-In: I17b9dc7e8d8bd80db98869394c93695cb453bebd
2017-09-14 11:31:13 -07:00
Adam Lesinski
b791721cd1 AAPT2: Define intermediate compiled XML proto
This proto format is meant to encapsulate more information
that is specific to Android and allows for easier validation
and manipulation across tools.

Test: make aapt2_tests
Bug: 65645766
Change-Id: I13bc34a460671fc0a36246be0d287a3d37d244d6
Merged-In: I13bc34a460671fc0a36246be0d287a3d37d244d6
2017-09-14 11:31:04 -07:00
Adam Lesinski
44ec315e06 AAPT2: Add a daemon mode
Gradle and other build tools that need to frequently interact with aapt2
can use the daemon mode to issue regular CLI commands without paying
the process start cost for each invocation.

Test: manual
Bug: 65645766
Change-Id: I543858ed46496278bad643f0dae688c924ec6c3f
Merged-In: I543858ed46496278bad643f0dae688c924ec6c3f
2017-09-14 11:30:56 -07:00
Adam Lesinski
68b5e8a439 AAPT2: Fix mkdirs implementation
Once switched to using std::string, the mkdirs implementation was
trying to create an empty string when an absolute file path on
linux or macOS was used.

Bug: 62336414
Bug: 65645766
Test: manual
Change-Id: I52f3050b410a923ca48f353b0983667c16d00ee8
Merged-In: I52f3050b410a923ca48f353b0983667c16d00ee8
2017-09-14 11:30:48 -07:00
Adam Lesinski
5c33fb5408 AAPT2: Change XmlDom to exclude Namespace as a node
In preparation for exporting an XML proto format for UAM to consume,
this change brings the XML DOM API more in line with other APIs that
do not make the Namespace a separate node.

Treating Namespace declarations as just properties of an Element
node makes the implementation of algorithms much simpler, as
the constraints that Namespace nodes have only one child
are now built in and traversing to find Element nodes
is much simpler.

Also made a bunch of quality of life improvements, like formatting and
comment style.

Test: make aapt2_tests
Bug: 65645766
Change-Id: Ib97ff1c4252b7907e2cc1f13a448dc4ca3b809a4
Merged-In: Ib97ff1c4252b7907e2cc1f13a448dc4ca3b809a4
2017-09-14 11:30:38 -07:00
Adam Lesinski
5b54ca2d72 AAPT2: Fix windows unicode path issues
Mingw64 was being difficult, so instead of defining a wmain entrypoint,
the command line parameters are parsed manually using built-in Windows
methods that support Unicode. The results are converted to UTF8 and
handled just like the rest of the linux/mac version of the code.

This also removes dependencies on std::istream in favour of a
FileInputStream which calls the appropriate unicode version of
open to read a file.

No speed regressions found on Linux or MacOS.

Bug: 62336414
Bug: 63830502
Bug: 65645766
Test: manual
Change-Id: I597da51e33729ed1b98bf246e7e773337fd3fee8
Merged-In: I597da51e33729ed1b98bf246e7e773337fd3fee8
2017-09-14 11:30:29 -07:00
Adam Lesinski
cb1e6f95ae AAPT2: Fix typo in Config parsing
The 'any' syntax of a configuration is rarely used so this has not been
an issue in the field.

Test: none
Bug: 65645766
Change-Id: Icb9cb2d5ad061e3ea1c43dc1cd7ca2f222965cdc
Merged-In: Icb9cb2d5ad061e3ea1c43dc1cd7ca2f222965cdc
2017-09-14 11:30:18 -07:00
Adam Lesinski
e116ebe0bc AAPT2: Change proto format to reduce usage of StringPool
The StringPool class is a binary blob and makes it difficult to
modify the proto files from external tools (like bundle-tool).

Size increase of full build is negligible.

Test: make aapt2_tests
Bug: 65645766
Change-Id: I984755170c315730ab751b51133f8fb2f614f6af
Merged-In: I984755170c315730ab751b51133f8fb2f614f6af
2017-09-14 11:29:47 -07:00
Adam Lesinski
ee0e486d36 AAPT2: Add navigation type
Test: build succeeds
Bug: 65645766
Change-Id: I7d49366c7cc4a93c29bad4cb9f13eec23ad05bd2
Merged-In: I7d49366c7cc4a93c29bad4cb9f13eec23ad05bd2
2017-09-14 11:29:34 -07:00
Adam Lesinski
18fc9f65d0 AAPT2: Document Format.proto
Test: none
Bug: 65645766
Change-Id: I6b05bcdece5a310201d3ab0790a4ea1d23698e96
Merged-In: I6b05bcdece5a310201d3ab0790a4ea1d23698e96
2017-09-14 11:29:24 -07:00
Android Build Merger (Role)
2dfb1bab8d Merge "Merge "DO NOT MERGE Backporting potential usb tapjacking precaution." into nyc-mr1-dev am: 61bc3f3c9b am: 68f91528c3 -s ours am: 26e84466d3 -s ours am: 9bc160cc3d am: b237ea7cc8" into oc-mr1-dev 2017-09-14 18:26:13 +00:00
Beverly Tai
cc79ead77a Merge "DO NOT MERGE Backporting potential usb tapjacking precaution." into nyc-mr1-dev am: 61bc3f3c9b am: 68f91528c3 -s ours am: 26e84466d3 -s ours am: 9bc160cc3d
am: b237ea7cc8

Change-Id: Id56d8fb2630c03f7588ba475dafa48f5f7bab011
2017-09-14 18:24:15 +00:00
Adam Bookatz
8ddb77a3df Merge "Throttle fetching RPM stats" into oc-mr1-dev 2017-09-14 18:23:36 +00:00
Adam Bookatz
e332629667 Merge changes I54d54f24,I0c384eb3 into oc-mr1-dev
* changes:
  Disable screen-off RPM timing in BatteryStats
  Added resource power manager stats to batterystats
2017-09-14 18:22:34 +00:00