Commit Graph

5875 Commits

Author SHA1 Message Date
TreeHugger Robot
8cfd3d03de Merge "Use serif fonts for serif fallback." 2017-11-21 01:40:34 +00:00
Seigo Nonaka
99a7b60e51 Use serif fonts for serif fallback.
Bug: 31491668
Test: m -j1024 fontchain_lint
Change-Id: Ic1d356aa684f2284b0b0fc8de5d0e36380eb44bc
2017-11-20 14:46:31 -08:00
Jeff Sharkey
c6c6c349f9 Collect set of "changed" classes.
Generate hash of each class to quickly identify which classes have
been touched between two API files.

Test: manually verified
Bug: 69115817
Change-Id: I0be92ec8a4e9ef6ca603e70c8164e10a2eaf4161
2017-11-20 13:48:45 -07:00
Nan Zhang
24c9924797 Merge "Build fontchain_lint using python_binary_host" am: 7ecac139ea am: 7ade558ad2
am: 67695d3aff

Change-Id: I850304f79c1c35bfeb6951307b8ca2365da0330b
2017-11-17 22:30:37 +00:00
Nan Zhang
67695d3aff Merge "Build fontchain_lint using python_binary_host" am: 7ecac139ea
am: 7ade558ad2

Change-Id: Ie920005b39a476b281333b12fbed9e586a2ce3e7
2017-11-17 22:20:57 +00:00
Nan Zhang
7ade558ad2 Merge "Build fontchain_lint using python_binary_host"
am: 7ecac139ea

Change-Id: I4fef971c8fc8837f73644667988ddc3e7f4305ec
2017-11-17 22:12:58 +00:00
Yao Chen
80235403d2 statsd: parse the new format of stats log
+ Changed how we construct LogEvent, now it's based on the context from log_msg
  without making a copy of the list.

+ All stats logs now have the same event tag, the atom id is the first elem in the log.

Test: statsd_test
Change-Id: I4419380f2ee1c2b2155d427b9f2adb78883b337f
2017-11-17 11:53:15 -08:00
Adam Lesinski
f7b3a7e908 Merge "AAPT2: Fix debugging output" 2017-11-17 19:25:28 +00:00
Adam Lesinski
ff3a8080f6 Merge "AAPT2: Move all file output to FileOutputStream" 2017-11-17 19:24:06 +00:00
Nan Zhang
2db709de30 Build fontchain_lint using python_binary_host
Test: out/host/linux-x86/bin/fontchain_lint
out/target/product/generic/system true external/unicode
Bug: b/27727331

Change-Id: Ib9353d2338c3b939027069f49e3e847c65526581
2017-11-17 09:22:12 -08:00
Adam Lesinski
5a217b052d AAPT2: Fix debugging output
Test: manual
Change-Id: I3a362caf7bd691df399db00c6280e0a208a406da
2017-11-16 16:58:02 -08:00
Adam Lesinski
a693c4a32e AAPT2: Move all file output to FileOutputStream
FileOutputStream is safe to use on Windows, as it opens
files using our compatibility API.

Bug: 68262818
Test: make aapt2_tests
Change-Id: Ib0b27e93edd609b49b1327db7d9867a002198ebb
2017-11-16 12:06:17 -08:00
Chih-hung Hsieh
5209abad9b Merge "Use -Werror in frameworks/base/tools/stats_log_api_gen" 2017-11-16 19:09:45 +00:00
TreeHugger Robot
b1d9bd9c5d Merge "Implement System Properties Section" 2017-11-15 03:05:18 +00:00
Xin Li
220871a697 Merge commit '98e12851336b7db16e583f9afac63ecc97465980' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: Ia7b8da4a00d215160e4a4fa40f6044208d1297b7
Merged-In: I19846d2a3ee27aecbae2367a74ee49082eea154d
2017-11-14 12:31:11 -08:00
Stefan Lafon
ae2df01aae Rename "stats_events" as "atom".
Also make atom WakelockStateChanged use the "Type" enum instead of int32.

Test: Unittests are passing. Statsd is working.

Change-Id: I0909e2d97297f78996a81366d66aae62d5bf5ce1
2017-11-14 11:56:05 -08:00
Yi Jin
0dfa752e67 Implement System Properties Section
Bug: 68774852
Test: unit tested and on device tests
Change-Id: I0d4aadf8d4203fe56e35bbfb77e5c532116fd27e
2017-11-14 10:54:24 -08:00
Pierre Lecesne
d8b4beaae9 AAPT2 - Add ProtoApkSerializer implementation to convert from Binary to Proto.
Also new flag to choose the conversion direction:
  --output_format [binary|proto].

Test: Manual

Change-Id: I61d381aa49869b0fd6bd9f017dda0cac5ca998bb
2017-11-14 09:05:27 +00:00
Pierre Lecesne
514971a39c Merge "AAPT2 - Convert command to copy all the files." 2017-11-13 23:52:28 +00:00
Pierre Lecesne
d55bef78a5 AAPT2 - Convert command to copy all the files.
Test: Manual

Change-Id: I8705966cb34ff41eb362126a35956720147fae91
2017-11-13 21:07:34 +00:00
TreeHugger Robot
53ef795e28 Merge "Add api lint to upload checks" 2017-11-13 20:30:58 +00:00
TreeHugger Robot
3f89bd6783 Merge "Change conditional keep rule syntax" 2017-11-13 20:02:41 +00:00
Jason Monk
53b2a73c37 Add api lint to upload checks
Currently will never block upload, only considered a warning, but
will print out any lint issues discovered.

Test: do an upload
Bug: 69115822
Change-Id: I69b8e5a3f92ac28ee3c954408e88a1056c33af65
2017-11-13 13:25:05 -05:00
Yi Jin
e2f7f79d02 Implement Cpu Info Section
Support carriage return in Read class, and add a new way to parse lines
which is not able to split purly by delimiters

Bug: 65642861
Test: unit test and on device test
Change-Id: Ib82dd4e458bb7d2fa33462b23fbe11b828325916
2017-11-10 17:34:07 -08:00
Chih-Hung Hsieh
ca189f4db6 Use -Werror in frameworks/base/tools/stats_log_api_gen
* Remove unused local variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I24b33facec0bfd73eb5c2a9759b42f9c98ee285f
2017-11-10 15:10:34 -08:00
Pierre Lecesne
288536b6bd Merge "Refactor Convert command to use a ISerializer interface." 2017-11-10 20:09:47 +00:00
Adam Koski
09ef94e918 Change conditional keep rule syntax
Google's ProGuard fork is migrating to a new syntax that upstream
ProGuard 6.0 will also support.

Test: unit tests
Bug: 69162105
Change-Id: I3b6d7e82eb99c2e2af6c4d851a4f97ec3e471b55
2017-11-10 11:30:56 -08:00
Adam Lesinski
cc8aa11f6c Merge "AAPT2: Differentiate between Android and Java package names" into oc-mr1-dev
am: 07d8249c4b

Change-Id: I0a3235052cea9041cf6c944f71879d304bce5a56
2017-11-10 17:50:49 +00:00
Adam Lesinski
07d8249c4b Merge "AAPT2: Differentiate between Android and Java package names" into oc-mr1-dev 2017-11-10 17:32:52 +00:00
Adam Lesinski
6385bbd860 Merge "AAPT2: Workaround for feature splits without namespacing" into oc-mr1-dev
am: 751e69b38b

Change-Id: I8791a0cbfb32c25a0c73552c47509cce1d5f06e2
2017-11-10 10:13:26 +00:00
Donald Chai
414e48a541 AAPT2: whitelist alphanums instead of blacklisting hyphens in package names.
BCP 47 uses plus signs for name mangling, and future qualifiers may
start using other reserved characters as well, so we might as well
futureproof the sanitizer.

Change-Id: I1be7ee4234f8e30bb0ea832372b4dc932d30550c
Fixes: 69134786
Test: UtilTest.SplitNamesAreSanitized
2017-11-09 21:47:20 -08:00
Pierre Lecesne
7e8549dd57 Refactor Convert command to use a ISerializer interface.
This will allow for other implementations.

Test: Manual

Change-Id: Ibf9cf8f5ac2b5b8e51a5fb684b434a0f59a3cbee
2017-11-10 05:04:48 +00:00
TreeHugger Robot
c8e3c7c816 Merge "AAPT2: Workaround for feature splits without namespacing" 2017-11-10 01:27:34 +00:00
Adam Lesinski
1210e8c81b AAPT2: Workaround for feature splits without namespacing
Android Instant Apps in its current iteration does not use namespaces,
but due to limitations on the Android resource runtime, needs to make
it look like it does.

This is due to a bug that treats any package ID that's not 0x01 or 0x7F
as a shared library. Shared libraries require unique package names.

As a workaround, and since Android Instant Apps can not have a feature
depend on another feature, we can alter the resource package name of a
feature split just before writing it out to disk. This avoids using a
unique package name while linking, thereby avoiding namespace issues.

Bug: 68820737
Test: manual
Merged-In: Ic553ed42656436bbb949393d0248ee7bb9d37860
Change-Id: Ic553ed42656436bbb949393d0248ee7bb9d37860
2017-11-09 23:00:56 +00:00
Adam Lesinski
490595a5fc AAPT2: Workaround for feature splits without namespacing
Android Instant Apps in its current iteration does not use namespaces,
but due to limitations on the Android resource runtime, needs to make
it look like it does.

This is due to a bug that treats any package ID that's not 0x01 or 0x7F
as a shared library. Shared libraries require unique package names.

As a workaround, and since Android Instant Apps can not have a feature
depend on another feature, we can alter the resource package name of a
feature split just before writing it out to disk. This avoids using a
unique package name while linking, thereby avoiding namespace issues.

Bug: 68820737
Test: manual
Change-Id: Ic553ed42656436bbb949393d0248ee7bb9d37860
2017-11-09 14:57:49 -08:00
Adam Lesinski
81e9ecfc00 AAPT2: Differentiate between Android and Java package names
Android package names are more strict (ASCII only) than Java package names.
Also fixed an issue where trailing underscores were disallowed in Android
package names.

Bug: 68468089
Test: make aapt2_tests
Merged-In: I1052e9e82b6617db6065ce448d9bf7972bb68d59
Change-Id: I1052e9e82b6617db6065ce448d9bf7972bb68d59
2017-11-09 01:49:58 +00:00
TreeHugger Robot
903ed1b6f9 Merge "AAPT2: Differentiate between Android and Java package names" 2017-11-08 21:08:26 +00:00
Adam Lesinski
96ea08f1e7 AAPT2: Differentiate between Android and Java package names
Android package names are more strict (ASCII only) than Java package names.
Also fixed an issue where trailing underscores were disallowed in Android
package names.

Bug: 68468089
Test: make aapt2_tests
Change-Id: I1052e9e82b6617db6065ce448d9bf7972bb68d59
2017-11-07 11:31:17 -08:00
Adam Lesinski
93190b79d1 AAPT2: Better debugging output
Test: make aapt2_tests
Change-Id: I7778b773201381538dc1f2e376abee4eb33e44c0
2017-11-07 11:21:10 -08:00
Adam Lesinski
4ee829a707 Merge "AAPT2: Add convert command" 2017-11-07 19:05:22 +00:00
TreeHugger Robot
2475c68edf Merge "AAPT2: Fix GetFileType for unicode and long paths on Windows" 2017-11-03 22:10:35 +00:00
Adam Lesinski
3a725dc11f AAPT2: Fix GetFileType for unicode and long paths on Windows
Bug: 68262818
Test: manual
Change-Id: I4f02e544e45865984ff4e021a7d1e83f8baf24c3
2017-11-03 11:19:36 -07:00
TreeHugger Robot
a544f25b1a Merge "AAPT2: Better error messages for ManifestFixer" 2017-11-03 11:13:33 +00:00
TreeHugger Robot
e20e09d184 Merge "AAPT2: Introduce command to run unit tests" 2017-11-03 01:18:16 +00:00
Adam Lesinski
181799bc53 Merge "AAPT2: Update tests to reflect new development API 'P'" 2017-11-02 23:28:32 +00:00
Adam Lesinski
04465e7f25 AAPT2: Introduce command to run unit tests
This command will execute the aapt2_tests with a parameter
to emit XML test results into the out/dist directory.

Test: manual
Change-Id: I10cf119bb47b7698ddd91b1adf7323e51d169970
2017-11-02 15:33:26 -07:00
Adam Lesinski
178e67835a AAPT2: Update tests to reflect new development API 'P'
Bug: 68346913
Test: make aapt2_tests
Change-Id: Ic1435c529b6c80206d2326ac0da076777dffcc9a
2017-11-02 14:12:38 -07:00
Adam Lesinski
ed37f4842a AAPT2: Better error messages for ManifestFixer
AAPT2 will now print the XML hierarchy where it found an unexpected
element.

Test: make aapt2_tests
Change-Id: Iac7918b2f344fab874f0a3e7aa9c6936ecde8913
2017-11-02 12:07:55 -07:00
TreeHugger Robot
9cc9ad632b Merge "Enable Window Dumpsys Section" 2017-11-02 18:19:37 +00:00
Yi Jin
be6de3017b Enable Window Dumpsys Section
Protobuf defines classes, which can have self recursive message
definitions and cause a bug in generating privacy flags.
Solve the problem here. The details is in incident_section_gen/main.cpp.
The logic is a bit complicated to address more than one level of self
recursion proto message definition.

Also solve a bug when PrivacyBuffer strips fields.
Modify PRIVACY_POLICY_LIST to be type Privacy** in order to allow
initialization by a method.

Bug: 68162512
Test: unit tested and on device tests
Change-Id: I1d0b79f6813e5fd66c4cf5823d0fa17efc57bb1d
2017-11-01 18:24:57 -07:00