Commit Graph

2117 Commits

Author SHA1 Message Date
Lorena Torres-Huerta
cd5387e2df Add AudioAttributes and AudioFlag for use in HAL interface for engine configuration.
This requires a version bump to android.media.audio.common.types.

cc_defaults and java_defaults are used in order to avoid explicitly updating version references in several Android.bp files when we do future version bumps.

Test: m
Merged-In: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
Change-Id: I481d4b4e7b4f1302d508ab6eb2c7ed4336a8f801
(cherry picked from commit 6088f4b7bb)
2022-09-06 22:31:53 +00:00
Cole Faust
a1eb8cf128 Merge "Fix array-related errorprone warnings" 2022-08-30 18:03:01 +00:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
Thiébaud Weksteen
231574ce34 Remove lowpan internal API
This API is not used: marked as @hide with a commented out @SystemApi;
the AIDL server is not implemented in AOSP nor internally. There is one
extra client from the SEPolicy: wpantund; but there is no build rule for
this binary, and no reference for it in AOSP. This API appears be an
artifact from the initial import of Android Things back in 2017.

I confirmed with the previous owners that there is no intention to use
this API in the future (see bug).

This changes reduces the size of framework.jar by 77kb on
bramble-userdebug.

Bug: 235018188
Test: TH
Change-Id: Id66f5ed23ed26c7185f36454f168e34997be3f8f
Merged-In: Id66f5ed23ed26c7185f36454f168e34997be3f8f
(cherry picked from commit 7640656825)
2022-08-23 12:49:59 +10:00
Treehugger Robot
b8426673b2 Merge "Set min_sdk_version" am: 8fe47dd0b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2138336

Change-Id: Ib7f25d4224e481fa12162c3acd920c771a070cd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-04 14:29:59 +00:00
Jooyung Han
907d7169f0 Set min_sdk_version
This was done via the hard-coded list in build/soong.

Bug: 158059172
Test: m
Merged-In: Ie6dc1f59b459ec01605d796a4d81be04bc1d07da
Change-Id: Ie6dc1f59b459ec01605d796a4d81be04bc1d07da
2022-06-29 06:42:02 +09:00
Treehugger Robot
4ecafadd7b Merge "statemachine migration from base to modules-utils" am: 51e6e8a0e1 am: 8cc1782ba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893671

Change-Id: I5ba9d65a7223fbf9d1f371e672491f09b05c1940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 01:25:27 +00:00
William Escande
358a664344 statemachine migration from base to modules-utils
Bug: 198418216
Tag: #refactor
Test: atest ModulesUtilsTests
Test: atest FrameworksUtilTests
Merged-In: I65303c131f6e867f6c44d14baa537560fa8bf857
Change-Id: I65303c131f6e867f6c44d14baa537560fa8bf857
2022-06-08 21:15:14 +00:00
Treehugger Robot
36b1820a69 Merge "Remove unused empty filegroups from frameworks/base." am: 5ee9c55130 am: 76e9b955c5 am: 735d0192f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2026205

Change-Id: I044909e335b0b1786f8248c3d8d865eda75e6705
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-06 03:45:34 +00:00
Pedro Loureiro
e748d40d2b Merge "Allow unknown codenames in target sdk version for APK-in-apexes" into tm-dev 2022-04-05 12:46:45 +00:00
Pedro Loureiro
5ef7d7b777 Allow unknown codenames in target sdk version for APK-in-apexes
This is currently a recurring issue every new Android release as a few of
our apps will be targeting new platforms and they also get installed on
devices running older SDKs.

This change only changes behaviour for APK in apexes.

Test: atest com.android.server.pm.parsing.PackageParserLegacyCoreTest

Bug: 208239394

Merged-In: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
Change-Id: If1195c8ec39ac88a605e25dfb1c78d49a5aa3e7c
2022-04-01 11:51:06 +00:00
Xiao Ma
892ba98a72 Remove unused empty filegroups from frameworks/base.
connectivity-tiramisu-sources filegroup in the framework-t and service
folder is useless after moving all source files to updatable-sources
filegroup, delete them from f/b.

Bug: 210586283
Test: m
Merged-In: I2209df4b6f0b4daddc640fc4126ba89601df2c2b
Change-Id: If304e989c668cd816483647a9291968f2f15435d
2022-03-31 02:44:48 +00:00
Remi NGUYEN VAN
d386543a34 Remove stale aidl-export references
As per the TODO, the aidl-export directory was moved to
packages/modules/Connectivity/framework.

Bug: 222234190
Test: TH
Merged-In: I399d2bb259d50916c575e59621ddfaf798affc5c
Change-Id: I5d77a9b0acf8e47c3bed144c735440b5593d7ae1
2022-03-25 11:07:31 +00:00
Remi NGUYEN VAN
7c2b259435 Remove stale aidl-export references
As per the TODO, the aidl-export directory was moved to
packages/modules/Connectivity/framework.

Bug: 222234190
Test: TH
Merged-In: I4c8f84b5b7df057b30ce334a99ce4ce975080020
Change-Id: Ie05f6ffec77e5f2eb7f68a21a33fac6936fe3018
2022-03-24 14:22:40 +00:00
Corina Grigoras
2907ec82ab Merge "Move UiEventLogger interface to modules-utils." into tm-dev 2022-03-18 14:19:43 +00:00
Yu-Han Yang
97f3b91c53 Add GnssExcessPathInfo (frameworks/base)
Also add combinedAttenuationDb in GnssSingleSatCorrection

Bug: 201253590
Test: atest GnssExcessPathInfoTest
      atest GnssSingleSatCorrectionTest
Change-Id: I7f629f2fbca563a36d1b4543f768b8fabd5d91fd
2022-03-16 12:11:22 -07:00
Corina
cbc4d681e7 Move UiEventLogger interface to modules-utils.
This is so the soures can be accessed both fom framework and modules.
The implementation needs the local StatsLog, so cannot be reused.

Test: m
Test: atest SystemUITests
Test: make statsd_testdrive $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Bug: 218862369
Change-Id: I27ebffa6817575f1377beb80f4092287d9b12c49
Merged-In: I27ebffa6817575f1377beb80f4092287d9b12c49
2022-03-16 18:41:11 +00:00
Neha Pattan
0469e1ae46 Merge "Remove *nonpublic_deps which was added pre-Rb announcement." into tm-dev 2022-03-02 20:32:35 +00:00
Neha Pattan
2edfc48cb6 Remove *nonpublic_deps which was added pre-Rb announcement.
Bug: 221855066
     21090328
Test: build
      mmm -j packages/modules/Auxiliary
      mmm -j packages/modules/SupplementalApi
Change-Id: If84b882f8bdaee62cfb107c6a079fbc55a012876
2022-03-02 17:40:52 +00:00
Paul Hu
1843e673d7 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" am: 1d30d5d92e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976826

Change-Id: I8c273f9dbb49511b825982ade9a28e233eed00c9
2022-03-02 07:27:23 +00:00
paulhu
2a8c2c3601 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
Change-Id: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
2022-03-01 09:41:12 +08:00
Junyu Lai
2f00b07355 [MS54.1] Move NetworkStats to updatable sources am: 6b708138c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987467

Change-Id: I97311b503c0f959ed98199c89c6a7b657ab8be43
2022-02-28 06:26:49 +00:00
Lorenzo Colitti
a45c0d91fa Merge changes from topic "ms52-movenetstats"
* changes:
  Expose MATCH_PROXY as a module-lib API.
  Add setPollForce to module API
  Move networkstats JNI to connectivity module
  [MS54.1] Move NetworkStats to updatable sources
  [MS62.1] Start NetworkStatsService from the module
2022-02-28 05:32:23 +00:00
William Escande
c01e552e6f Use the specific export aidl folder of Bluetooth
Bug: 219528787
Test: build + start bt
Tag: #refactor

Change-Id: Ie0468a8d2933f9866fba2bec59b433446fab1938
2022-02-25 12:33:21 +01:00
Roopa Sattiraju
82c71dd74d Merge "Enabling Apex in BT" into tm-dev 2022-02-25 06:30:19 +00:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Alexander Dorokhine
5173a59c17 Remove an unused AppSearch-related target.
Bug: 146218515
Test: Builds
Change-Id: Ie5da42f7fdc2c8ccc4d5b81723a9bc7ac0fb1753
2022-02-23 23:14:57 -08:00
Paul Hu
2e835186e0 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" into tm-dev 2022-02-22 15:52:11 +00:00
Anton Hansson
46aa492ded Merge "Sort metalava_framework_docs_args" am: c741f70ac2 am: 02d396c043 am: b3623468ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991972

Change-Id: Iac3836a24e691b3c49fc26a05e2e084387afc56f
2022-02-21 15:29:41 +00:00
Anton Hansson
02d396c043 Merge "Sort metalava_framework_docs_args" am: c741f70ac2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991972

Change-Id: I89bb418c378b5bda820ba8fcbdcbbf4db4726661
2022-02-21 14:44:45 +00:00
paulhu
e074dd2e34 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
Change-Id: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
2022-02-20 15:10:27 +00:00
Anton Hansson
f67ce74fe6 Sort metalava_framework_docs_args
It was difficult to read.

Test: m nothing
Change-Id: I4af28967c146d6b1a27daea4f297e33b258bccfe
2022-02-18 19:27:16 +00:00
Junyu Lai
6b708138c1 [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
Merged-In: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-18 16:20:47 +08:00
Baligh Uddin
15d4890f9c Merge "Remove apex/media - migrated to packages/modules/Media" am: 8aa8ce4f91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987167

Change-Id: I13e1c0f75834c11957aaf5ed7e94da85ab325329
2022-02-18 01:34:37 +00:00
Baligh Uddin
8aa8ce4f91 Merge "Remove apex/media - migrated to packages/modules/Media" 2022-02-17 18:59:06 +00:00
Baligh Uddin
235f9b1078 Remove apex/media - migrated to packages/modules/Media
Fix references for local_include_dirs for aidl support.

BUG: 171106157
Test: Local build and TH
Merged-In: Ice516a0ab0819c4a076c394c05be1643461d4309
Change-Id: I3625bf1e262a031263d500b2c6129bf3c18cdeb2
2022-02-17 16:01:56 +00:00
Baligh Uddin
fba1cbe1cd Merge "Remove apex/media - migrated to packages/modules/Media" 2022-02-16 22:36:25 +00:00
Baligh Uddin
b8b46fde2a Remove apex/media - migrated to packages/modules/Media
Fix references for local_include_dirs for aidl support.

BUG: 171106157
Test: Local build and TH
Change-Id: Ice516a0ab0819c4a076c394c05be1643461d4309
2022-02-16 16:00:58 +00:00
Eran Messeri
ce0a0909de Merge "Upgrade KeyMint version" am: b2f12f933a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988166

Change-Id: Ic3f772f99448cf501d97c2ef84a9051668fabf26
2022-02-16 15:49:55 +00:00
Eran Messeri
6c41bcee6f Upgrade KeyMint version
This is a cherry-pick of a change to internal master to upgrade the
KeyMint version.

The cherry-pick is necessary because the changes to support Curve
25519 will land in AOSP and there are currently merge conflicts for
Android.bp with internal master.

Bug: 194359292
Test: That it compiles.
Merged-In: I95191fd09b138bf3ba1cbb50534fdbdcf36d1596
Change-Id: Ibbd2f1ddd71ad855e26d59f72633c47351320ce6
2022-02-16 11:16:15 +00:00
Eran Messeri
4be1392293 Upgrade KeyMint version
Upgrade the KeyMint version the framework depends on to V2 (from V1).

This is necessary for the new constants related to Curve 25519.

Bug: 194359292
Test: That it compiles.
Change-Id: I95191fd09b138bf3ba1cbb50534fdbdcf36d1596
2022-02-15 11:12:59 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Leon Scroggins III
73e0689d8a getDisplayDecorationSupport: return more detailed info
Call the updated native version of getDisplayDecorationSupport (added in
I961051c0a660b596039ac04b546040764ee20d34), and convert the NDK struct
into a Java class. Depend on the graphics AIDLs, which now have Java
backends. A future CL will update SysUI to call the new API.

Add a PixelFormat for R_8 to correspond to the native version. This will
allow SysUI to use COLOR_MODE_A8 when the HAL reports R_8.

If64fd6924960f592b7a211371bc2ca6536ae34f7 demonstrates using this.

Bug: 216644902
Test: manual
Change-Id: I0e34c6d6e369fda0a96231ab38c3bd5f3bfe3e06
2022-02-09 17:30:29 -05:00
Junyu Lai
66760b299b [MS53] Add connectivity aidl exports to stubs
This is needed to solve the dependencies where platform
code such as ITelephony.aidl needs aidl definitions.

Test: TH
Bug: 204830222
Change-Id: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
Merged-In: Ie19a258c2e8a724dc087bc5ad5f8f522e29feca5
2022-02-08 10:21:53 +00:00
Anton Hansson
9a4e4e9156 Merge "Auto-generate list of module impl jars" 2022-02-07 11:51:11 +00:00
Remi NGUYEN VAN
8f497e5c43 Merge changes from topic "ms52-movenetstats"
* changes:
  Expose MATCH_PROXY as a module-lib API.
  Add setPollForce to module API
  Move networkstats JNI to connectivity module
  [MS54.1] Move NetworkStats to updatable sources
  [MS62.1] Start NetworkStatsService from the module
2022-02-07 10:27:37 +00:00
Lorenzo Colitti
b5e914a343 Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
Merged-In: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-07 06:03:11 +00:00
TreeHugger Robot
d44f10236a Merge changes from topic "no-dhcpresults"
* changes:
  [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
  Delete DhcpResults from frameworks/base.
2022-02-07 05:53:10 +00:00
Junyu Lai
a8f1f762eb [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-07 11:45:17 +09:00
Anton Hansson
95e89a8cb9 Auto-generate list of module impl jars
Eliminate another duplicated list of all modules. This one has a couple
of workarounds due to different naming of impl libs, and bluetooth not
being ready.

Bug: 169103987
Test: m framework-all and diff intermediates (no diffs)
Merged-In: Ia8627c6e3977cd271e389ec482388ff73661881d
Change-Id: Ia8627c6e3977cd271e389ec482388ff73661881d
2022-02-04 16:36:21 +00:00