Commit Graph

1434 Commits

Author SHA1 Message Date
Baligh Uddin
d4a52c97ee Add visibility for new location of permission apex.
This is prep. work for f/b/apex/permission migraton to
packages/modules/Permission.  The Build System does not
enforce location checks within visibility, which allows
us to add the new location post migration and ensure
migration process does not run into visibility related errors.

BUG: 167963264
Test: TH
Change-Id: I765b73bb8e0f377ef03805423807e720f1e90582
2021-01-26 13:50:56 +00:00
Anton Hansson
2df7832825 Update framework/base/apex OWNERS
Add the modularization team as "global" module OWNERS.

Bug: 151089579
Test: No
Change-Id: I4f5c377fcadf6121f9d49f75465ca2e342abdee9
2021-01-20 16:44:36 +00:00
Sudheer Shanka
5b734e1701 Update language to comply with Android’s inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference

Test: atest --test-mapping apex/blobstore
Change-Id: Ic1db6fadab90667b0c3a383caa9ad60fab7d1f1b
2021-01-11 02:06:59 +00:00
Anton Hansson
110820fc92 Allow-list service-permission to not track latest api
The system-server part of this library has last-api tacking, but we also
enable the public api tracking which we don't have last-api tracking of.

Bug: 176092454
Test: m nothing
Change-Id: I0685ad7a971b2b0ce4e01bc7bd31b9d393eed60d
2020-12-21 17:05:22 +00:00
Treehugger Robot
634c55be11 Merge "Add dplotnikov to OWNERS" 2020-12-16 19:40:48 +00:00
Anton Hansson
5c1e4538c8 Add dplotnikov to OWNERS
...and sort the list.

Change-Id: I60fa68b6b3fbd61380258ca9385d6510426282ab
2020-12-16 12:08:11 +00:00
Anton Hansson
83ae4ece0b Remove "set noparent" in blobstore OWNERS file
Change-Id: Ied56c752bb631885d1183a5300631432a40864fe
2020-12-15 18:40:31 +00:00
Baligh Uddin
8f2e0ec950 Merge "Migrate apex/statsd -> packages/modules/StatsD/apex" into stage-aosp-master 2020-12-09 22:51:28 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Baligh Uddin
71725afa9a Migrate apex/statsd -> packages/modules/StatsD/apex
BUG: 167962588
TEST: TH
Merged-In: If4917e82f6dcc6e0f5606b0dfecabc7dbf72982d
Change-Id: Idd54132eb244b6c4316825b558ad9bb7211f1a93
2020-12-07 15:32:57 +00:00
Treehugger Robot
029c7e2a02 Merge "Fix visibility rules for apex/statsd" am: 3af010fe57
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1517519

Change-Id: I1f8858b9412a73d6c052f4c5604b0ba415cab286
2020-12-04 07:29:33 +00:00
Baligh Uddin
a73e594013 Fix visibility rules for apex/statsd
The //frameworks/base/apex/statsd path is being migrated to
//packages/modules/StatsD/apex.
BUG: 167962588
TEST: TH

Change-Id: Ifee35a00de64e194abb80af5d85e34732244f509
2020-12-04 03:59:37 +00:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Remi NGUYEN VAN
e8e9dec395 Remove JobInfo usage of NetworkRequest#networkCaps
NetworkRequest#networkCapabilities is an implementation detail (not part
of the NetworkRequest API); NetworkRequest has getters that return the
same information.

Bug: 174436414
Bug: 142281756
Test: m
Merged-In: I47e7ab1b887b2fe2dddef223bd7c66bdd290fc56

Change-Id: I47e7ab1b887b2fe2dddef223bd7c66bdd290fc56
2020-12-01 01:37:51 +00:00
Chiachang Wang
1b414d61b4 Merge changes from topic "move_BSCH"
* changes:
  Remove BasicShellCommandHandler from frameworks/base
  Move BasicShellCommandHandler to frameworks/lib/modules-utils
2020-11-20 07:29:56 +00:00
Chiachang Wang
d5726c1916 Move BasicShellCommandHandler to frameworks/lib/modules-utils
BasicShellCommandHandler is used by mainline modules and the
framwork. There is a new repo that was created for putting
this kind of utility class. Move BasicShellCommandHandler for
the incoming ConnectivityService mainline and updating the
related usage.

Bug: 170598012
Test: m ; verify with adb shell cmd
Change-Id: I8a2873df6e7d8342b7a8b466bda155f74c807ee3
Merged-In: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-19 03:16:03 +00:00
Aurimas Liutikas
bdd6c53abb Merge "Suppress all hidden abstract methods in constructable classes." 2020-11-13 02:56:37 +00:00
Aurimas Liutikas
d23189b998 Suppress all hidden abstract methods in constructable classes.
Having a hidden abstract method for a class that can be extended
means that public implementors cannot implement these hidden methods
posing a risk that custom implementations will not have required
abstract methods resulting in an exception.

Bug: 151134792
Test: make update-api
Change-Id: I758d12465fabc671be19bedeeceb16885de23c87
Merged-In: I758d12465fabc671be19bedeeceb16885de23c87
Exempt-From-Owner-Approval: large scale suppression of existing issues,
    no-op in terms of behavior
2020-11-13 02:56:20 +00:00
Treehugger Robot
958c6e7ed7 Merge "statsd: Set min_sdk_version to "30"" 2020-11-12 23:47:15 +00:00
Nikita Ioffe
6836898311 permission: Set min_sdk_version to "30"
Just a cosmetic cleanup since "R" resolves to 30 as well.

Test: m
Bug: 171330443
Change-Id: I83dcc7be1ff18e6429955a0fee2596d8b0e19a25
2020-11-12 17:59:38 +00:00
Nikita Ioffe
e6ea94960c statsd: Set min_sdk_version to "30"
Just a cosmetic cleanup since "R" resolves to 30 as well.

Test: m
Bug: 171330443
Change-Id: I6c6785b93f64a89633fcc7e64116d7a2f4578d2a
2020-11-12 03:38:38 +00:00
Mathew Inwood
f8abe13db4 Merge "Add maxTargetSdk restriction to unused APIs." 2020-11-09 14:41:20 +00:00
Anton Hansson
1de077e8fd Merge "Restrict visibility of framework-module-common-defaults" 2020-11-04 15:49:55 +00:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00
Baligh Uddin
f860dff75b Merge "Migrate frameworks/base/apex/extservices to packages/Modules/ExtServices/apex" 2020-11-03 15:41:07 +00:00
Baligh Uddin
bea839ed43 Migrate frameworks/base/apex/extservices to packages/Modules/ExtServices/apex
BUG: 167960011
Test: TH
Merged-In: I654ba2791a1c8a782c04409ae756a6be335e0306
Change-Id: I35c1467693344e103d77314af727899f92e99fd4
2020-11-03 13:13:58 +00:00
Paul Duffin
7af9f89358 Remove unused API defaults
Bug: 155164730
Test: m nothing
Change-Id: I312de1cc3d4ac493d3570d3b6ad6e94e6cb4e4db
Merged-In: I312de1cc3d4ac493d3570d3b6ad6e94e6cb4e4db
2020-11-02 18:59:06 +00:00
Anton Hansson
7b5929720e Restrict visibility of framework-module-common-defaults
This isn't meant to be used directly, instead one of the default
modules that inherits this rule should be used.

Test: m nothing
Change-Id: I32a20de74c29b9fa1a0083bce084896aad99eb41
2020-11-02 18:57:12 +00:00
Anton Hansson
d2d4637685 Merge "Remove @TestApi from @SystemApi symbols" 2020-10-20 13:45:13 +00:00
Anton Hansson
dd7d52f963 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 16:41:01 +01:00
Liz Kammer
09e4eb17ba Correct visibility to use __pkg__
Test: m nothing
Change-Id: I2dcf7f0f24948422e0ffd4880846313a75d467d2
2020-10-15 10:28:46 -07:00
Tej Singh
39074df903 Remove dead code for AnomalyAlarm
Anomaly alarms now rely on the flow of events into statsd's socket for
firing alarms. Remove the StatsCompanionService code path, which is
unused now.

Test: m
Bug: 161326200
Bug: 152642091
Change-Id: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
Merged-In: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
2020-10-10 04:33:12 +00:00
Jin Seok Park
d7d0a6d48b Merge "Add media team members to OWNERS" am: 6300a62dbb am: 1c2d6c8fd5 am: f893c9711e am: 69042dbd16
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440233

Change-Id: Ib33ff071e89ba62960d1389014ee784a5be0fd35
2020-09-29 09:13:27 +00:00
Jin Seok Park
83970e504c Merge "Add new OWNERS to media's apex folder." am: ce220d48a0 am: 0684bf6a64 am: 8986fc2257 am: d9916cd268
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440243

Change-Id: I71f75ae59d772e335909c86c7c8d570036b3bfe5
2020-09-29 09:12:53 +00:00
Jin Seok Park
f893c9711e Merge "Add media team members to OWNERS" am: 6300a62dbb am: 1c2d6c8fd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440233

Change-Id: Ib6bd8494b61490ebe52603263ba873cc20455dcd
2020-09-29 08:48:32 +00:00
Jin Seok Park
8986fc2257 Merge "Add new OWNERS to media's apex folder." am: ce220d48a0 am: 0684bf6a64
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440243

Change-Id: I434cc32fe0cadbbed28786c1dbfff9785374a3d5
2020-09-29 08:03:40 +00:00
Jin Seok Park
6300a62dbb Merge "Add media team members to OWNERS" 2020-09-29 07:47:23 +00:00
Jin Seok Park
ce220d48a0 Merge "Add new OWNERS to media's apex folder." 2020-09-29 06:55:33 +00:00
Jin Seok Park
86cc8343bf Add media team members to OWNERS
Test: N/A
Change-Id: I12f98059bcf94d9e89b9ea766111f0bd7bb3c7b5
2020-09-29 12:34:25 +09:00
hkuang
d18d6cc06c Add new OWNERS to media's apex folder.
This is for moving MediaTranscodeManager to the media mainline module
in Android S.

Test: No test as just adding owners.
Bug: 145233472
Change-Id: I1dd63f280b55090995e1ba6354c0916aa8866f76
Merged-In: I1dd63f280b55090995e1ba6354c0916aa8866f76
2020-09-29 12:27:29 +09:00
Sudheer Shanka
641b12e328 Merge "Disable use of RevocableFileDescriptor for blob reads." into rvc-qpr-dev am: b4289dbe41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683844

Change-Id: I17c8ef8f9acff71c7cb20fae2eba8eb2f9dd728a
2020-09-26 00:07:54 +00:00
Sudheer Shanka
1c50961559 Disable use of RevocableFileDescriptor for blob reads.
We are using RevocableFileDescriptor as a precaution
to make sure when blobs get deleted, apps are not
holding onto those fds and preventing disk space from
getting freed but this might not be much
of a concern since non-system apps cannot be
persistent (so they eventually gets killed) and apps
can already fill up disk space if they want and given
that we are seeing issues with fuse reads, disabling
the use of RevocableFileDescriptor for blob reads.

Bug: 162662834
Test: atest --test-mapping apex/blobstore
Change-Id: I13a504fac154e2a3cacfb37e83a9cfec4ae80b63
2020-09-25 04:42:08 +00:00
Michael Wachenschwanz
70bfab0dd2 Merge "Prevent default wellbeing app from falling below WORKING_SET bucket" into rvc-qpr-dev am: 711cdc2220
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12663452

Change-Id: I5c85d31b5c42f4bbb7c33671d36120a6bcff5d80
2020-09-24 21:26:05 +00:00
Michael Wachenschwanz
0eb48db94c Prevent default wellbeing app from falling below WORKING_SET bucket
Bug: 166301584
Test: atest AppStandbyControllerTests
Change-Id: I5ef67308cabbe43801103e888165d488f4888ab9
(cherry picked from commit 9df9e30727)
2020-09-22 23:38:00 +00:00
Bill Yi
5b49c68d11 Merge mainline-release 6664920 to master - DO NOT MERGE
Merged-In: Id04ea331831e8b26ba99478848392b40a92548d5
Change-Id: I888da0c9475f2d00602d917d2f58169f8d7c93a4
2020-09-17 21:56:59 -07:00
Treehugger Robot
bc93881957 Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae am: 1d3e694b97 am: e022945d69
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048

Change-Id: I5725049a13c30e122e1f8b5e4e772b7431a4e32d
2020-09-14 22:44:28 +00:00
Treehugger Robot
1d3e694b97 Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048

Change-Id: I70eb21c1ea9411974a1c07f6aaaf611760110c34
2020-09-14 21:27:14 +00:00
Treehugger Robot
3563eeb4ae Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048

Change-Id: Ifd5f2a31ba5d3fbe9aaedca7b4c83d665cc61b9f
2020-09-14 20:26:42 +00:00
Julia Reynolds
71c18d2afc Replace 'whitelist' with 'allowlist'
Change-Id: If7422064e59e6c055c9dae092ead298b81cf41e8
Test: atest
Bug: 161889253
Merged-In: I94a43c1c995052b034d8a5377786e1a15e4c9c59
2020-09-14 18:29:23 +00:00