Commit Graph

484624 Commits

Author SHA1 Message Date
TreeHugger Robot
1fcdd59ec3 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev am: 6a785ca36c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12960393

Change-Id: I1d91298c1b16cb04451e56a84d7caf8e3f61308c
2020-10-31 02:55:46 +00:00
TreeHugger Robot
c3de3e3151 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev am: 8c93c6c3d1 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12960756

Change-Id: I922172130512e5ce95d0e6baf20537f6d3e3adfa
2020-10-31 02:55:25 +00:00
TreeHugger Robot
0dab5b2c88 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev am: b630b27967 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12960639

Change-Id: Icbf8ebffd44b7f946df6a9a9a4423390e1a23e2d
2020-10-31 02:55:06 +00:00
TreeHugger Robot
6a785ca36c Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-10-31 02:36:23 +00:00
TreeHugger Robot
8c93c6c3d1 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-10-31 02:30:53 +00:00
TreeHugger Robot
b630b27967 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-10-31 02:28:13 +00:00
Bill Yi
17be842e19 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9b88331b14418360b149fbb6acbcc03b840278bf
2020-10-31 01:02:13 +00:00
Bill Yi
84e5cae5e8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I652ec2029d0205de82b618fecec7e99a26b1bbd7
2020-10-31 00:37:18 +00:00
Bill Yi
88e5295c19 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I32fb3eb86802d50d1effb1db4b311a14c73dcadc
2020-10-31 00:12:59 +00:00
Baligh Uddin
1f9ca72364 Fix visibility rule.
Issue identified in ag/12956706

BUG: 167962976
Test: TH
Merged-In: If00767d0fefb35bba8633a594a0e5b26b2e64e12
Change-Id: I469774c85b4864a325a89338a2dc58e706dd7432
2020-10-30 17:23:18 +00:00
Baligh Uddin
ab93bef800 Fix visibility rules for packages/modules/Connectivity
BUG: 167962976
Test: TH
Merged-In: I476629002e075d01c83f77be8343157dbd66ce9b
Change-Id: If00767d0fefb35bba8633a594a0e5b26b2e64e12
2020-10-30 16:08:18 +00:00
Baligh Uddin
4afb09db93 Restructure Module code [ com.android.tethering ]
Code Migration from frameworks/base/packages/Tethering ->
packages/modules/Connectivity/Tethering

BUG: 167962976
Test: TH
Merged-In: I2accb96abbdfa665ef34aa79e87af040226bcf32
Change-Id: Id7656fe7f6a6fae044dc8defd05e83d81c6b8c11
2020-10-30 14:42:23 +00:00
Santiago Seifert
fd3f41c4b7 Merge "Add MediaMetrics support to MediaParser" into mainline-prod 2020-10-30 14:37:53 +00:00
TreeHugger Robot
d1e92cd2a8 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev am: 1fcc7833e0 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12952052

Change-Id: Ie6bd3c6b7b62823729b28cf3a84e4a240a5d6766
2020-10-30 04:40:45 +00:00
TreeHugger Robot
1fcc7833e0 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-dev 2020-10-30 04:11:37 +00:00
Bill Yi
d4d4c84c55 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ea82d90e45 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12951854

Change-Id: I2228f7c105ead543f0e0cd5bbc727e73882d77f8
2020-10-30 02:59:09 +00:00
Bill Yi
425a2a6d45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic316e5ff443df6d6a762ac95250d053f3d09925a
2020-10-30 01:40:28 +00:00
Bill Yi
ea82d90e45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I00714f611d36977a0ccb447f012b33af0fc162b2
2020-10-29 23:14:35 +00:00
Santiago Seifert
4ab236d326 Add MediaMetrics support to MediaParser
Includes:
- Java changes to collect the metrics.
- JNI changes to plumb metrics to the MediaMetrics service.
- statsd atoms.proto changes for data transmission.

Bug: 158742256
Test: atest CtsMediaParserTestCases
Test: atest CtsMediaParserHostTestCases
Test: Manually using dumpsys.
Change-Id: If51ee018da3056231910cd9c18f1b938a5c0e343
Merged-In: If51ee018da3056231910cd9c18f1b938a5c0e343
2020-10-29 17:42:32 +00:00
Mark Chien
522e0728ef Merge "Correct PendingIntent#getActivity() flags" into mainline-prod 2020-10-28 13:18:30 +00:00
Paul Hu
4865cfcdb9 Verify pending intent flags
All PendingIntent included activity and broadcast should set
FLAG_IMMUTABLE flag.

Bug: 156353008
Test: atest TetheringTests

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1325696

Change-Id: I885046eb25c6dafbcb4284fd94bff0052f7bdd09
Merged-In: I4592e914b67ecb8865d7de47797423f27e9ff840
(cherry picked from commit 1a306394c9)
2020-10-28 10:35:54 +00:00
Paul Hu
5633274eef Correct PendingIntent#getActivity() flags
TetheringNotificationUpdater create a PendingIntent with
Intent#FLAG_ACTIVITY_NEW_TASK flag. But this flag is used for
Intent only. Thus, move this flag into Intent.

Bug: 158639789
Test: atest TetheringTests
Change-Id: I4c3af75c87b797bcde9356a94c835c7422dac1c6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1329013

Change-Id: Ia843da82bc8fa03aca33a51fc309b65e73dfdc8f
Merged-In: I4c3af75c87b797bcde9356a94c835c7422dac1c6
(cherry picked from commit d7638aecc2)
2020-10-28 10:21:27 +00:00
TreeHugger Robot
4aa8adb073 Merge "Merge "Remove unused methods from LinkProperties." am: ec3a0131b9 am: cc7d3d97f3 am: b4f637d300 am: c7c6d5ab55" into mainline-prod 2020-10-22 06:14:52 +00:00
Kevin Hufnagle
63314714e0 Merge "docs: Use correct profile for intent" into rvc-dev am: b7eef50878
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12879988

Change-Id: If6942c2427842d2445e02a3e3281c41fb4d16fe1
2020-10-22 06:13:43 +00:00
Chalard Jean
8975535c29 Merge "Remove unused methods from LinkProperties." am: ec3a0131b9 am: cc7d3d97f3 am: b4f637d300 am: c7c6d5ab55
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448415

Change-Id: I7e97ed89636e22553c6b2a3a759d2bdcbed9ba24
(cherry picked from commit 58b2025873)
2020-10-22 02:12:47 +00:00
Kevin Hufnagle
b7eef50878 Merge "docs: Use correct profile for intent" into rvc-dev 2020-10-22 01:25:23 +00:00
TreeHugger Robot
27831ee373 Merge "Ignore non test package events for AppStandbyControllerTests" into rvc-dev am: 2ac647d545
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12788106

Change-Id: Ic6923227e619761c8ad89ab620afc0fe838284e3
2020-10-21 23:11:43 +00:00
TreeHugger Robot
2ac647d545 Merge "Ignore non test package events for AppStandbyControllerTests" into rvc-dev 2020-10-21 22:45:05 +00:00
Liz Kammer
f5759da7a2 Merge "Do not change resources table for overriding apps" into mainline-prod 2020-10-20 20:12:22 +00:00
Anton Hansson
0bace0cd01 Merge "Remove @TestApi from @SystemApi symbols" into mainline-prod 2020-10-20 16:24:59 +00:00
Kevin Hufnagle
fcd519fde9 docs: Use correct profile for intent
The ACTION_AUDIO_STATE_CHANGED intent action uses the HDP profile,
not the A2DP profile.

Bug: 158742305
Test: m ds-docs-java
Exempt-From-Owner-Approval: Docs-only change
Change-Id: I4358aac8c8aa9fc8b36e517e568e5a9db538555e
2020-10-19 21:08:17 -04:00
Liz Kammer
281625a31b Do not change resources table for overriding apps
Maintains the current resources table for apps that override
PackageInstaller.

soong is adding rename_resources_package property which renames an
overriding package to the override name rather than the base name. This
defaults packages which override PackageInstaller to _not_ rename from
com.android.packageinstaller to the override name due to many hardcoded
uses.

Test: forrest
Bug: 147434671
Merged-In: Ic7a5a9d8e3ffb60d0b9d4f4fda07946c64179e45
Change-Id: Ic7a5a9d8e3ffb60d0b9d4f4fda07946c64179e45
2020-10-19 20:35:00 +00:00
TreeHugger Robot
45d83c2145 Merge "[RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""" into rvc-dev am: 8b1151e4d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: Ib497378a7901c19fc156d625ce3b9014b19c7757
2020-10-19 20:34:12 +00:00
Charles Chen
f229afe648 [RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays"" am: c947b10f99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: I1c1093f14923aa7a5f2d7891912d13acd15fab66
2020-10-19 20:34:09 +00:00
Liz Kammer
32fefc2421 Merge "Make framework-res dep in stubs explicit am: 47994f3743" into mainline-prod 2020-10-19 20:29:17 +00:00
Anton Hansson
ee8c25823d Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-19 19:08:26 +01:00
markchien
53487145a1 Add the flag and default enable selectAllPrefixRange
Also add MtsTetheringTest which only run if tethering mainline
module is installed.

Bug: 166057846
Bug: 170265597
Test: atest TetheringTests
Change-Id: I434dda81eb5fab700d873a8ff3429b4222f0c7e6
Merged-In: I434dda81eb5fab700d873a8ff3429b4222f0c7e6
2020-10-19 19:15:18 +08:00
TreeHugger Robot
8b1151e4d5 Merge "[RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""" into rvc-dev 2020-10-16 18:26:02 +00:00
Anton Hansson
a66eacf8ee Make framework-res dep in stubs explicit am: 47994f3743
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12846973

Change-Id: I36644afecbd92822cf12c20adb607b09b5766521
2020-10-16 17:54:13 +00:00
TreeHugger Robot
f1ad3b3416 Merge "Fix miss tracking downstream problem in PrivateAddressCoordinator" into mainline-prod 2020-10-16 04:49:48 +00:00
TreeHugger Robot
b2c2e72be7 Merge "Test conflict notification work when using cached address" into mainline-prod 2020-10-16 02:39:42 +00:00
Mark Chien
c13332c891 Fix miss tracking downstream problem in PrivateAddressCoordinator
The downstream do not be tracked if PrivateAddressCoordinator just
return cached address. Then, PrivateAddressCoordinator would not notify
that downstream if conflict happen.

Also remove the null check in getDownstreamPrefix because:
- An IpServer is only added to mDownstreams by requestDownstreamAddress.
- That method will only add the IpServer to mDownstreams if it has an
IPv4 address.
- As soon as that method returns, the IpServer sets mIpv4Address to the
address that was returned.
- When an IpServer is torn down, mIpv4Address is set to null after
releaseDownstream is called.

So it should never be possible for this to return null.

Bug: 168169687
Test: atest CtsTetheringTest
      atest TetheringTests

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459887

Change-Id: I4b4d75c8a4f1de07aa7bb68b12d150d7c85c9cc1
Merged-In: Ide5206b013acdc499344e1c839a830c5b245af41
(cherry picked from commit 335c9c52d0)
2020-10-15 15:39:03 +00:00
Treehugger Robot
a737555854 Test conflict notification work when using cached address
This test catch the regression introduced in r.android.com/1432958.

Bug: 1432958
Test: atest TetheringTest
Change-Id: Id0c1afb5563954ffee1f598a3a5de6a245d77a0e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459889

Change-Id: Ie80d4d5d535d70df493cad0a80166d779bc6ab77
Merged-In: Id0c1afb5563954ffee1f598a3a5de6a245d77a0e
(cherry picked from commit 37738b53d7)
2020-10-15 15:36:21 +00:00
Anton Hansson
47994f3743 Make framework-res dep in stubs explicit
The android.jar stubs includes the resource from framework-res. This
dependency was previously added implicitly inside the build system, but
using a java_genrule we can add it directly, which makes it easier to
make changes to this rule.

This change has the side-effect of adding the resources to some stubs
that did not previously include the resources (e.g. module-libs), which
I think is desired.

Bug: 161214753
Test: build sdk, diff out/dist before and after (shows resources added
      to some stubs)
Change-Id: I1829789af207cc45c49c0c68369fc7c0c085bcb0
Merged-In: I1829789af207cc45c49c0c68369fc7c0c085bcb0
2020-10-15 15:18:46 +00:00
Anton Hansson
901f150945 Update test-current.txt with removed MP APIs
Bug: 170395679
Test: m checkapi
Change-Id: Ie81a2ef5dc6d2ba001ae87ad0cba99b4c1eede1c
2020-10-15 12:53:55 +01:00
Anton Hansson
b7a4938caf Have test_current be a union of system and test APIs
Include @SystemApi APIs in the test_current stub jar, while keeping
the @TestApi and @SystemApi API txt files tracked separately.

A side-effect of this change is that string constants of @SystemApi
permissions are no longer inlined in the test api tracking, possibly
because metalava was previously incorrectly peeking at @SystemApi
whereas it is now explicitly forbidden to do so. I don't believe the
API txt change has any practical effects.

Bug: 129133308
Test: presubmit
Change-Id: I23d3c88624ee7599485c3390a0440b78bc18a0a2
Merged-In: I23d3c88624ee7599485c3390a0440b78bc18a0a2
(cherry picked from commit 84ffba267e)
2020-10-15 12:52:59 +01:00
Anton Hansson
dc84389c93 Merge "Remove Tethering @TestApi" into mainline-prod 2020-10-15 10:05:16 +00:00
Anton Hansson
cc7e6f62e7 Remove Tethering @TestApi
Modules shouldn't have TestApis, as documented in go/android-api-types.
Additionally, nothing depends on these TestApis existing.

Bug: 170395679
Test: m checkapi
Change-Id: I6e2c8298e90b4b54f0264be974d036fa08cd5632
Merged-In: I6e2c8298e90b4b54f0264be974d036fa08cd5632
2020-10-15 07:55:00 +00:00
Mark Goldstein
6c0854d8a6 Doc: Fix typo the right way. Supersedes cl/318172931 am: d5726423ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12828332

Change-Id: Iae825b842d283067aaafbc4b48a398450a46ab9c
2020-10-14 21:42:49 +00:00
Mark Goldstein
d5726423ca Doc: Fix typo the right way. Supersedes cl/318172931
Bug: 170764224

Change-Id: Iaef1aa4fd3143e6e9019d06834001b3bfa3d887d

Exempt-from-owner-approval: Docs-only typo fix
2020-10-14 20:38:09 +00:00