b58c3ef023acf3851e4a0557d04d65d52835d2df |
|
13-Sep-2017 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2: Convert binary ResTable_config to proto Test: make aapt2_tests Change-Id: I8641f13ce41cd58ac8bc3da31c4e15a7b3f06092
/frameworks/base/tools/aapt2/Locale.cpp
|
d5083f6f6b9bc76bbe64052bcec639eee752a321 |
|
17-Jan-2017 |
Adam Lesinski <adamlesinski@google.com> |
Move StringPiece to libandroidfw libandroidfw needs to make use of StringPiece, so move it to libandroidfw and update all code referencing StringPiece in aapt2. Test: make libandroidfw_tests libaapt2_tests Change-Id: I68d7f0fc7c651b048d9d1f5e7971f10ef5349fa1
/frameworks/base/tools/aapt2/Locale.cpp
|
ce5e56e243d262a9b65459c3bd0bb9eaadd40628 |
|
22-Oct-2016 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2: Rename to match new style Use Google3 naming style to match new projects' and open source google projects' style. Preferred to do this in a massive CL so as to avoid style inconsistencies that plague legacy code bases. This is a relatively NEW code base, may as well keep it up to date. Test: name/style refactor - existing tests pass Change-Id: Ie80ecb78d46ec53efdfca2336bb57d96cbb7fb87
/frameworks/base/tools/aapt2/Locale.cpp
|
cacb28f2d60858106e2819cc7d95a65e8bda890b |
|
19-Oct-2016 |
Adam Lesinski <adamlesinski@google.com> |
Use Google3 style guide with .clang-format Test: style change only, builds ok Change-Id: I885180e24cb2e7b58cfb4967c3bcb40058ce4078
/frameworks/base/tools/aapt2/Locale.cpp
|
112373006f082f6f1a648c34eace0efa87b38e6c |
|
25-Jun-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Remove LocaleValue::toDirName() from AAPT2 There was no user, and the code was incorrect too. Bug: 25599046 Change-Id: I50d14f58995ac611385a6fb17661a357bf473687
/frameworks/base/tools/aapt2/Locale.cpp
|
299e488ee28e75b96c23a8a37fdff2ec0f4ccb98 |
|
30-Mar-2016 |
Andrew Johnson <aqj@google.com> |
Removing assignments to localeScriptWasComputed in aapt. On certain devices running Android M with unknown vendor modifications. Setting the localeScriptWasComputed bit in the resource parameters struct causes the translations for many languages to fail to load. The app then defaults to English. This has been reported on the following devices: Motorola XT1086, XT1096, and XT1586, HTC One, and Huawei MediaPad 10 LINK. This change works around the issue by never setting localeScriptWasComputed in aapt and instead always writing the default value of false. Bug: 27872476 Change-Id: Id638d1d0e5f9dcb1c02e65d67667d76174c69b9e
/frameworks/base/tools/aapt2/Locale.cpp
|
7960898f6f886aadda1dd3d7a89106dde9f44217 |
|
04-Mar-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Fix script-related parts of locale resource matching Previously, a bit was kept to find if the script of a locale was explicitly "provided" in a resource. This was not backward compatible, and failed in some edge cases when the package was created with older versions of AAPT that did not set the bit. The cases would happen when the old resource had an explicit script specified in its locale, but since the "provided" bit was not set in the package, we would assume that the script was computed by us. This CL replaces the "provided" bit with a "computed" bit, so the default value of the bit (set to "false" for old packages) would be correct. Bug: 27156990 Change-Id: I99e7f1ad8f70c90e25ab3640ed34cc1a6f8d1d64
/frameworks/base/tools/aapt2/Locale.cpp
|
6a008170cb18666e04c42856f992fc7a0afa1e1f |
|
03-Feb-2016 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2: Support -c configuration filtering Change-Id: I1e5855ca73440bdc30c21bcbc1dfdd31a9842363
/frameworks/base/tools/aapt2/Locale.cpp
|
b927c559e1ef8530b08712507f320502627db298 |
|
15-Jan-2016 |
Roozbeh Pournader <roozbeh@google.com> |
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
/frameworks/base/tools/aapt2/Locale.cpp
|
1ab598f46c3ff520a67f9d80194847741f3467ab |
|
14-Aug-2015 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2: Separate out the various steps An early refactor. Some ideas became clearer as development continued. Now the various phases are much clearer and more easily reusable. Also added a ton of tests! Change-Id: Ic8f0a70c8222370352e63533b329c40457c0903e
/frameworks/base/tools/aapt2/Locale.cpp
|
6f6ceb7e1456698b1f33e04536bfb3227f9fcfcb |
|
14-Nov-2014 |
Adam Lesinski <adamlesinski@google.com> |
AAPT2 First checking of AAPT2. The individual phases of AAPT2 work, but there are some missing pieces. For early testing we are missing: - Need to properly mark file references and include them in package - Need to package into zip Final AAPT for apps we are missing: - Need to crush PNGs - Need to parse 9-patches - Need to validate all of AndroidManifest.xml - Need to write align method to align resource tables for splits. Final AAPT for apps + system we are missing: - Need to handle overlays - Need to store comments for R file - Need to handle --shared-lib (dynamic references too). New AAPT features coming: - Need to import compiled libraries - Name mangling - R file generation for library code Change-Id: I95f8a63581b81a1f424ae6fb2c373c883b72c18d
/frameworks/base/tools/aapt2/Locale.cpp
|