Commit Graph

7635 Commits

Author SHA1 Message Date
Treehugger Robot
4f20090b2c Merge "convert StreamingProtoTest to stream proto type" am: 5aba7d9d19 am: b873429660 am: 3c9fe76aa3 am: 7dceeeda41
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973039

Change-Id: I2d81c6ca36935625d52a04410a0476190ff0b241
2022-02-11 02:45:33 +00:00
Treehugger Robot
7dceeeda41 Merge "convert StreamingProtoTest to stream proto type" am: 5aba7d9d19 am: b873429660 am: 3c9fe76aa3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973039

Change-Id: I04889e675fd92ec2678b8c8bcd4abbadb93e04a3
2022-02-11 02:24:49 +00:00
Treehugger Robot
3c9fe76aa3 Merge "convert StreamingProtoTest to stream proto type" am: 5aba7d9d19 am: b873429660
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973039

Change-Id: I24bc44ef257214d429fae26200cc9efe2b796d4a
2022-02-11 02:08:15 +00:00
Rod S
7388cdfeb6 Remove legacy check for reversed ZWJ emoji sequences.
According to Behdad this issue was fixed in HarfBuzz 2.0.0, October
2018.

Change-Id: I6e23ae7d637f79cb55b99a73ac8d16a0b0395610

Bug: 158944323
Test: drew a ZWJ in RTL and it worked fine
(https://screenshot.googleplex.com/AHrRaKNR6S4Nwgb.png)

Change-Id: I29e64f4577c819dfec0f3cbd878f0241bf706de0
2022-02-06 14:54:48 -08:00
Sam Delmerico
0156be8663 convert StreamingProtoTest to stream proto type
java_library now supports using the "stream" type for proto properties,
so we can use this type here to remove workaround.

Bug: 215230097
Test: m StreamingProtoTest
Change-Id: I365457c5392ef3e0ede39d9d36d0aa1f2951c902
2022-02-04 16:54:00 +00:00
Thiébaud Weksteen
b7339b1a84 Document ANDROID_LINT_CHECK
Test: n/a
Change-Id: Ief902e6ae28e4ebd67aba52d6b093a0d22996306
2022-01-31 14:57:45 +11:00
Calvin Pan
04cc40e4cc Merge "Add hyphenation pattern for Russian" 2022-01-24 03:34:04 +00:00
Thiébaud Weksteen
1892ac2a5c Merge "Add @EnforcePermission linter" 2022-01-23 21:49:05 +00:00
Calvin Pan
13c70d6d29 Add hyphenation pattern for Russian
Bug: 181262335
Test: atest android.graphics.text.cts.HyphenationTest
Change-Id: Ifa018e7bf09a3e541e5299002ef8a7995e1bdbd9
2022-01-21 09:42:33 +00:00
Thiébaud Weksteen
2c70244d21 Add @EnforcePermission linter
This linter ensures that any class (or method) that extends (or
overrides) another one annotated with @EnforcePermission, is also
annotated with the exact same annotation. The intent is to surface the
permissions verified at lower-level to the service implementation.

Test: atest --host com.google.android.lint.EnforcePermissionDetectorTest
Bug: 197828948
Change-Id: I042b7e5d99bae05681869f13702d1c169b8bdb05
2022-01-20 09:13:29 +11:00
Treehugger Robot
bb9501d2a2 Merge "Setting ASM to version 7 in sdkparcelables" am: e0029a5a87 am: 3a0e798ed9 am: 1b91eb3165 am: e00127f167
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1946689

Change-Id: I4a3359e821d32b09459aa36cab4f114870cdbbba
2022-01-18 19:02:17 +00:00
Treehugger Robot
e00127f167 Merge "Setting ASM to version 7 in sdkparcelables" am: e0029a5a87 am: 3a0e798ed9 am: 1b91eb3165
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1946689

Change-Id: I46bc58714611c899c6e43b3b264c7ab5a270b04e
2022-01-18 18:49:10 +00:00
Treehugger Robot
1b91eb3165 Merge "Setting ASM to version 7 in sdkparcelables" am: e0029a5a87 am: 3a0e798ed9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1946689

Change-Id: I4cb9b88255dd582c73be2dfcfdfc7f232110c2ab
2022-01-18 18:31:00 +00:00
Sorin Basca
e95eaf7f5a Setting ASM to version 7 in sdkparcelables
This is needed when using Java 11 as target.

Test: m
Bug: 195387473
Change-Id: I18abbdfee4039f9a366070b730930396ff4c210e
2022-01-18 09:03:12 +00:00
Anton Hansson
608147ad0c Merge "Improve how "likely an AOSP change" is detected" am: 0b0c098d36 am: 17ac2e2d80 am: 081048aff1 am: 392bc3d409
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948796

Change-Id: Icb97617eb1e7da9c804c59fecb32ebceae45474d
2022-01-14 17:23:04 +00:00
Anton Hansson
392bc3d409 Merge "Improve how "likely an AOSP change" is detected" am: 0b0c098d36 am: 17ac2e2d80 am: 081048aff1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948796

Change-Id: Ibfc755f0d745ed056eedc36b586ee36b595c077e
2022-01-14 17:09:44 +00:00
Anton Hansson
081048aff1 Merge "Improve how "likely an AOSP change" is detected" am: 0b0c098d36 am: 17ac2e2d80
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1948796

Change-Id: I564a443788f94a01c452b9a68d0317bd799ca0a9
2022-01-14 16:56:44 +00:00
Anton Hansson
2f51277ebf Improve how "likely an AOSP change" is detected
git branch -vv can be incredibly slow (over 5s on my machine/repo), so
when aosp_sha.sh is called multiple times per commit, the repo upload
hook can take a very long time to run (>2 mins for my stack of changes).

The only output used from git branch -vv was the upstream of the current
branch, which can be determined in a much faster/simpler way via
printing the ref name of @{u} (git lingo for the upstream HEAD).

Test: $ { aosp_sha.sh HEAD && echo ok || echo no } in aosp and internal
Change-Id: I993496d8ec9e55c13803590bbb6c5d9d49cde158
2022-01-13 17:30:18 +00:00
Makoto Onuki
23d8300a70 Merge "AAPT2: Emit @keep for sub-process app classes" 2022-01-13 16:07:52 +00:00
Calvin Pan
1e966a3796 Add hyphenation pattern for sv
Bug: 181262335
Test: atest android.graphics.text.cts.HyphenationTest
Change-Id: I948afae985a30ed81062d830e0c7cf7341d4e09d
2022-01-13 02:24:14 +00:00
Makoto Onuki
22a931eaab AAPT2: Emit @keep for sub-process app classes
Test: atest aapt2_tests
Bug: 197264681
Change-Id: I1f6cabfd0f3ce4c3c661d9dc132629d8c83048d9
2022-01-12 16:03:50 -08:00
Wei Su
ebe021a618 Merge "Write files in a temporary directory" am: efa03939f0 am: 49eec50a4a am: 28a89f1860 am: 72f49a1a3d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920049

Change-Id: I8aea202a97f28e612a6e17eabc604948f92d48f7
2022-01-11 17:24:51 +00:00
Wei Su
72f49a1a3d Merge "Write files in a temporary directory" am: efa03939f0 am: 49eec50a4a am: 28a89f1860
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920049

Change-Id: I3e26413428dea2deaeaa25146c65fae71c688718
2022-01-11 17:20:56 +00:00
Wei Su
28a89f1860 Merge "Write files in a temporary directory" am: efa03939f0 am: 49eec50a4a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1920049

Change-Id: If2e8b41a886a316346b60da996ef3745835c1b0e
2022-01-11 17:06:06 +00:00
Calvin Pan
03d94ee418 Merge "Add hyphenation pattern for af, cs, el, ka, mk, nl, sk, sq" 2022-01-06 02:29:33 +00:00
weisu
90d3fb6354 Write files in a temporary directory
Avoid writing test files in the build output directory which fails when
run with Bazel. This happens because Bazel's sandboxing environment
ensures that the test's working directory is unwritable.

See https://docs.bazel.build/versions/main/sandboxing.html for more
information.

Bug: 209687942
Test: atest --bazel-mode aapt2_tests
Test: atest aapt2_tests

Change-Id: I0fce701bbac255c3e308ad5c85aa27230c3b620b
2022-01-05 23:05:14 +00:00
Calvin Pan
24479da7b1 Add hyphenation pattern for af, cs, el, ka, mk, nl, sk, sq
Bug: 181262335
Test: atest android.graphics.text.cts.HyphenationTest

Change-Id: I8c8d79d3bf4cc511b9ccea0f4d15492d79633627
2021-12-23 13:05:40 +08:00
Pedro Loureiro
f6b66c3a7d Merge "Add instructions for creating/updating a lint baseline" 2021-12-22 19:56:54 +00:00
Pedro Loureiro
418a63cd46 Add instructions for creating/updating a lint baseline
Test: N/A

Change-Id: I2f55a897d6fb3a89dbd14ec1f020bade5b8d512b
2021-12-22 12:16:52 +00:00
Calvin Pan
fb114cc885 Add am, gl, it, lt, uk into fontchain_linter
Bug: 181262335
Test: m fontchain_lint
Change-Id: Icd616350b05ad2920d7102f774f97c16e78950e0
2021-12-21 12:40:56 +00:00
Makoto Onuki
808fd192fa Support per-process Application class in <process> tag
Bug: 197264681
Test: atest CtsProcessTest
Change-Id: I08889ed16fadb956715499dc7cee567d10988e61
2021-12-10 16:32:11 -08:00
Sorin Basca
be3958b7a3 Merge "Updating locked_region_code_injection to use ASM7" am: 96bbb00369 am: 8c95814002 am: 714440e6d3 am: 1ced75e7b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1904250

Change-Id: I681e497d00346f58895f8747f91796196aed89a3
2021-12-10 15:13:30 +00:00
Sorin Basca
1ced75e7b4 Merge "Updating locked_region_code_injection to use ASM7" am: 96bbb00369 am: 8c95814002 am: 714440e6d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1904250

Change-Id: I75b6280aac3f48d75f398d100d14365a7cd56408
2021-12-10 14:57:49 +00:00
Sorin Basca
714440e6d3 Merge "Updating locked_region_code_injection to use ASM7" am: 96bbb00369 am: 8c95814002
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1904250

Change-Id: I1b26f25b55ad274fbdd8b39ef4209bda01e76b1e
2021-12-10 14:44:04 +00:00
Sorin Basca
8c95814002 Merge "Updating locked_region_code_injection to use ASM7" am: 96bbb00369
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1904250

Change-Id: Id20e3b36b6bbd23c6415b01cb58ef55b362242e6
2021-12-10 14:21:24 +00:00
Gavin Corkery
ad5d4baecb Add apex-system-service tag to AndroidManifest.
This change introduces a new <apex-system-service> tag to the manifest.

A manifest may have multiple <apex-system-service> tags, with each tag
denoting one system service that lives in an apex. If the service is
not in SYSTEMSERVERCLASSPATH, the android:path attribute may be used to
indicate where the jar is located on the filesystem. The minSdkVersion
and maxSdkVersion attributes may be used to indicate which SDKs the
service should start on.

Test: atest PackageParserTest
Bug: 192880996
Change-Id: I28e595b397ed8db6c412f490f12c73537972efab
2021-12-08 16:00:26 +00:00
Alex Buynytskyy
a16137055f Revert "Revert "SDK libraries.""
This reverts commit a22b7e05d4.

Reason for revert: This is a roll forwards with the fix applied.

Fixes: 208710019

Change-Id: Id4e9029ebe5864ddcc5583ce525e8e70da79f82c
2021-12-02 19:39:09 +00:00
Sorin Basca
fc7aabcf2e Updating locked_region_code_injection to use ASM7
Bug: 195387073
Test: m
Test: EXPERIMENTAL_TARGET_JAVA_VERSION_11=true m
Change-Id: I34463d3da4d085697f441b4ca68007cafa9d7b69
2021-12-02 08:16:24 +00:00
Rick Yiu
a22b7e05d4 Revert "SDK libraries."
This reverts commit 8d0ec8faa8.

Reason for revert: DroidMonitor: Potential culprit for Bug 208710019 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted

Change-Id: Ic1ff41e7648afc0fa50081de9b7d538a49c6468a
2021-12-02 04:23:16 +00:00
Alex Buynytskyy
8d0ec8faa8 SDK libraries.
Design: go/sdk-android

Basic boilerplate code, only adding a concept of SDK library to the OS.
Additional public APIs and more custom processing are to follow.

Tests are added in ag/16348319.
Can't submit together because of the checked build error: AndroidManifest.xml:32: Error: Misspelled tag <sdk-library>: Did you mean <uses-library> ? [ManifestTypo]
Apparently it needs updated aapt2 before it can process the new manifest even though the aapt2 is part of this change.

Bug: 207413168
Test: atest AndroidPackageTest ScanTests PackageManagerSettingsTests PackageManagerComponentLabelIconOverrideTest PackageManagerShellCommandTest

Change-Id: I9ea77ba3a0550ef7d58778a3a6cb402f09e2d8d7
2021-11-30 23:11:28 +00:00
TreeHugger Robot
994d2edbdd Merge "Revert "Revert "Remove the implementation of libaapt2_jni in bui..."" 2021-11-29 19:35:49 +00:00
Vince Harron
821b4cdf55 Merge "BSD grep doesn't support -P" am: 3ad0c61146 am: 6e008cbb2a am: 39465971f4 am: ae3c5c8033
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891500

Change-Id: I0813007697d746539a2e234f79db13838b7e1cae
2021-11-18 22:52:51 +00:00
Vince Harron
ae3c5c8033 Merge "BSD grep doesn't support -P" am: 3ad0c61146 am: 6e008cbb2a am: 39465971f4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891500

Change-Id: I4af27181e9739553d5395eddac05f96038d7e634
2021-11-18 22:28:37 +00:00
Vince Harron
39465971f4 Merge "BSD grep doesn't support -P" am: 3ad0c61146 am: 6e008cbb2a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891500

Change-Id: Ifae93b7302a5b2d743a4c996c91586da6f23e24e
2021-11-18 22:04:40 +00:00
Vince Harron
6e008cbb2a Merge "BSD grep doesn't support -P" am: 3ad0c61146
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1891500

Change-Id: Ib7267a0b908187432d1b7cd753ca27e707a2a2f1
2021-11-18 21:59:12 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Vince Harron
b3a17c77be BSD grep doesn't support -P
Test: New grep command tested on Linux and macOS
Bug: b/206150971
Change-Id: I9f1684298672fee1561166a03392bd07be8c5cd6
2021-11-17 22:32:57 +00:00
Luke Edgar
3129a0d453 Merge "AAPT Files - Permit invariant filepaths for getting file names" am: 0ba2a37eaf am: c8b5598a14 am: b568a8202c am: 4b7dd9fced am: 94643cc013
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884590

Change-Id: I2fbc7dc5f3aea8d574ed00d3ab4f6536fc2bdae0
2021-11-11 11:20:29 +00:00
Luke Edgar
94643cc013 Merge "AAPT Files - Permit invariant filepaths for getting file names" am: 0ba2a37eaf am: c8b5598a14 am: b568a8202c am: 4b7dd9fced
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884590

Change-Id: Ibcb2b129b94db1d3a83160c2b413792c24509c79
2021-11-11 11:02:04 +00:00
Luke Edgar
0ba2a37eaf Merge "AAPT Files - Permit invariant filepaths for getting file names" 2021-11-11 09:17:33 +00:00