`android::util::Utf16ToUtf8()` actually returns a `std::string` due to
the actual conversion to Utf8. `ParseResourceNamedType()` operates on a
`StringPiece` of `converted` (the `std::string` returned from that
call), and stashes it away for later use. Of course, by the time we're
using the `StringPiece` in `parsed_type`, `converted` has already gone
out of scope and is invalid to access.
Bug: http://b/250827883
Test: ./art/test/testrunner/run_build_test_target.py -j80 art-asan
Merged-In: Iea71a5cc84b7dfa96e7dcb549435f8394770a4df
Change-Id: Ie03aa417c56df5cedd58bf0b32994d6b4e5395b4
Lint is being updated, and a type that used to be non-null
is now nullable, and needs to be null checked.
Bug: 247885568
Test: Presubmits
Change-Id: I7fc09a9d2d312485071364279c448550e3a1e124
Merged-In: Ie6eaf061d74bd773742aa47f731e95e4b137f438
This change modifies the test config file by switching to use `PushFilePreparer` instead of `FilePusher`, since the `FilePusher` class which is defined in `compatibility-tradefed` is designed for the tests that are part of compatibility suite, but PreloadCheck is not.
Bug: 220991354
Test: atest PreloadCheck
Change-Id: Id25a16d6339b0ec8b5b61f1799c842f5ebd143ba
Fix "'when' expression must be exhaustive" and UNEXPECTED_SAFE_CALL
errors.
Bug: 216136346
Test: m checkbuild
Change-Id: I2c1b1f7581426496f31198896c4ff3bd9abf2941
Merged-In: I2c1b1f7581426496f31198896c4ff3bd9abf2941
Fix "'when' expression must be exhaustive" and UNEXPECTED_SAFE_CALL
errors.
Bug: 216136346
Test: m checkbuild
Change-Id: I2c1b1f7581426496f31198896c4ff3bd9abf2941
(cherry picked from commit 64acfee25d)
Merged-In: I2c1b1f7581426496f31198896c4ff3bd9abf2941
This script has been deprecated and replaced by AyeAye checks
directly in Gerrit.
Bug: 164530987
Test: none
Change-Id: I6a36c0a7ac10cbec0667780c30ba4a20124edee4
Add the scaffolding for teaching the package parser to reject a package
if its manifest specifies a set of prefixes, and the device fingerprint
does not start with one of the prefixes.
Bug: b/232475788
Test: m
Change-Id: I9f3f3d3ad96332d2d65fbf6f58c7ce35992bcd7e
Andorid lint was updated, and now includes some
prebuilt classes compiled for java 15. The soong
build doesn't support java 15 yet, so we can't have
modules that compile against lint right now.
Bug: 239881504
Bug: 236431222
Test: Presubmits
Change-Id: Idc85e23438c1c5b1e7862312298e14e96cf2213e
Android lint is being updated, and now requires
custom detectors to be compiled with -Xjvm-default=all.
This is a cherrypick without the fixes for indentation
errors because lint is not actually run on these older
branches, but the custom detectors are compiled.
Bug: 236431222
Test: Presubmits
Change-Id: Idf5302302496a6dff0f79ced4e20327041ae7a5a
(cherry picked from commit b331e4e254)
(cherry picked from commit 116be9d69f)
I found no clients or tests for this. But System.gc() by itself does
nothing, so the original version clearly does not work as intended. The
revised version may.
Bug: 193185229
Test: Treehugger
Change-Id: Ie4e59834a6dd23d83f30f8d0aaa1bf6d124ade91
Some olders kernels don't yet support HID_PLAYSTATION. While they are
working on supporting this driver, provide this temporary solution.
Before this patch, if the key layout is loaded, but there is no
HID_PLAYSTATION, then the mappings on the device will be incorrect.
With this patch, this key layout will not be loaded unless there is a
CONFIG_HID_PLAYSTATION enabled on the device.
Instead, when the main layout cannot be loaded, we make another attempt
to load a fallback layout. This way, the mappings on DualSense can be
correct even if the HID_PLAYSTATION module is not loaded.
In this CL, the fallback layout was tested using controllerTester.
Bug: 228005926
Test: tested mappings with a DualSense controller on a device that does
not have CONFIG_HID_PLAYSTATION
Change-Id: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
Merged-In: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
This folder has only one script extract_icu_data.py.
The script parses the ICU data and generates a .cpp file.
Thus, add external/icu/OWNERS as the owner here.
Test: treehugger
Change-Id: I555e9785c576688e43e6362050180345c81d6c3e