Commit Graph

1713 Commits

Author SHA1 Message Date
Jeffrey Huang
677a0df03c Move enums file to new directory
Bug: 167962588
Test: m -j
Change-Id: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216
2020-11-25 10:46:51 -08:00
Jeffrey Huang
91224ea837 Revert^2 "Delete atoms.proto from statsd"
217301c36f

Change-Id: I81a8287ed5b055e7b6547794d01e7ac897f0f022
2020-11-24 22:28:38 +00:00
Alex Light
217301c36f Revert "Delete atoms.proto from statsd"
Revert "Add android bp to proto_logging"

Revert submission 13070789-atomsproto

Reason for revert: Breaks multiple git_master-without-vendor targets

```
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/base/tools/stats_log_api_gen/Android.bp:49:1: "stats-log-api-gen-test" depends on undefined module "libstats_proto_host"
ninja: build stopped: subcommand failed.
```

Reverted Changes:
I184cf8bf8:Add android bp to proto_logging
I36ec354d2:Delete atoms.proto from statsd

Bug: 167962588

Change-Id: Idce97c5cf020473744eb7f96dcfbdc7677c094da
2020-11-24 21:25:39 +00:00
Jeffrey Huang
4e671568fe Delete atoms.proto from statsd
Use the atoms.proto in proto_logging as the source of truth. Also
migrates statsd log api gen to use the new atoms.proto

Bug: 167962588
Test: m -j && m CtsStatsdAtomHostTestCases

Change-Id: I36ec354d273dceace5245d7634c68ac63dc5a8cd
2020-11-23 23:47:38 -08:00
TreeHugger Robot
1c1acd45d0 Merge "Camera: Enhance camera atoms for system health" 2020-11-19 18:22:50 +00:00
Chiachang Wang
d0ba3573fb Merge "Move BasicShellCommandHandler to frameworks/lib/modules-utils" 2020-11-19 00:45:29 +00:00
Jeff Sharkey
8fa2407ad2 Adjust "services.core" defaults for Error Prone.
It ends up that "services.core" itself doesn't catch Error Prone
issues, since it works with JAR output from a previous stage.  To
resolve this, we need to move up to "services.core.unboosted" where
the source code is still available.

Fix one instance of AndroidFrameworkCompatChange that had leaked
into the source tree recently.  Disable other checks since there
are hundreds of failures inside the actual "services.core" code.

Bug: 155703208
Test: manual
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: I13f15db61bbcf5f74023147a95551b541d0a8845
2020-11-18 12:17:46 -07:00
Shuzhen Wang
b2443990e9 Camera: Enhance camera atoms for system health
Introduce camera system health atoms, including:
- Camera open, close, and session creation time
- Camera session and stream combination information,
- Stream statistics:
  - stream width, height, format, dataspace, usage flag,
  - max buffer count
  - buffer loss
  - first frame latency.

Test: ./out/host/linux-x86/bin/statsd_testdrive 227
Test: CTS PerformanceTest
Bug: 154159000
Change-Id: I858d64f3324bb9652a59e5857f2730c92c616a8e
2020-11-18 09:49:17 -08:00
Chiachang Wang
6a555279ec 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: Ida30c877116090616d4bf3f87fdad835446dac84
2020-11-18 09:18:06 +00:00
Jeff Sharkey
3d39cd1cfc Merge changes from topic "nov14"
* changes:
  Hand-migration to TypedXml interface.
  Mechanically apply TypedXml refaster template.
  Refaster templates for new TypedXml classes.
  Mechanical refactoring to new XML resolvers.
  Refine TypedXmlPullParser API interface.
2020-11-18 01:56:22 +00:00
TreeHugger Robot
8eea08cbd6 Merge "Adding AudioUsage converters to AudioAttributes" 2020-11-17 00:27:53 +00:00
Yan Yan
5e75f56939 Merge changes from topics "PersistableBundleUtils", "bytearray-utils", "integer-utils" am: e9226f999f am: 089a20034d am: 984f6a74ad am: c6d6a9eee7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495099

Change-Id: I7a64378dff4a8354fb27756169845f1fcd81a242
2020-11-16 22:02:20 +00:00
Jeff Sharkey
f14ed648a9 Refaster templates for new TypedXml classes.
Since we have over 100 unique schemas across the OS, it would be
incredibly tedious to try migrating all that logic to use the more
efficient TypedXmlSerializer and TypedXmlPullParser interfaces.

To aid this migration process, this change adds Refaster templates
that offer to refactor matching existing code in a no-op fashion.

This change also upgrades Error Prone to the latest release.

Bug: 171832118
Test: manual
Change-Id: Ic93a46d646edee98af7d0e2f7891d931fca4825f
2020-11-16 14:44:01 -07:00
Hayden Gomes
24b336f82c Adding AudioUsage converters to AudioAttributes
audio_policy_configuration.xsd defines strings used by HAL
to represent audio usages. This adds converters between
those strings and the AudioAttributes#attributeUsage values

Bug: 171572311
Test: atest AudioAttributesTest
Change-Id: I5301276ebd6ea1539182e9925a1e19f515e80597
2020-11-16 08:46:00 -08:00
Yan Yan
a3e954ffda Include PersistableBundleUtils in framework-ike-shared-srcs
Bug: 163604823
Test: FrameworksIkeTests, CtsIkeTestCases
Change-Id: Iee38086e122293f59ae14d3350f45a63671e8566
2020-11-13 22:51:59 +00:00
raychi
88254a2b56 Support USB Gadget V1.2 HAL
USB Gadget V1.2 HAL include:
1. support NCM function
2. add api to inquiry USB speed
3. add api to inquiry HAL version

Bug: 168282708
Test: build pass and functions are working normally
Change-Id: Idd07c55f4610740c0cf9023391125a86ba39ddee
2020-11-12 10:59:40 +08:00
Chong Zhang
c035a6f07b Merge "ActivityManager: use proc state from compiled aidl" 2020-11-11 18:57:13 +00:00
Chong Zhang
423349508c ActivityManager: use proc state from compiled aidl
bug: 172942349
bug: 159172726
test: builds
Change-Id: I3dafe7a75b2dae561583a7821284027a1896b9a5
2020-11-10 12:38:31 -08:00
David Su
fd626dbc84 framework-wifi-util-lib: compile against min_sdk_version = 30
sdk_version should still be module_current since we need to use
new Android S APIs. Change min_sdk_version to 30 to satisfy
Mainline module requirements.

Bug: 171330443
Test: compiles
Change-Id: I1129f690b06e7da8b3b8bbd60ab82253d52e75f8
2020-11-09 14:31:45 -08:00
Michael Sun
dfe0fe8583 Merge "Update to use new android.system.suspend.control AIDL interface" am: e40aa2d118 am: b726bcfd65 am: a9b465c8d8 am: f9fd07e735
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1480304

Change-Id: I45693209b358a1b1f9691d3729743688b3229172
2020-11-06 19:40:26 +00:00
Michael Sun
d523796ec5 Update to use new android.system.suspend.control AIDL interface
The suspend_control_aidl_interface is updated, renamed, and splitted
into android.system.suspend.control and
android.system.suspend.control.internal. Update to use the correct
interfaces.

Test: atest FrameworksCoreTests:KernelWakelockReaderTest
Bug: 171598743
Change-Id: I32aa339b27f3d9680a61b7338b1bdb531a1a43f7
2020-11-06 03:44:01 +00:00
Treehugger Robot
9ad8254a96 Merge changes Ib3c9affb,I1dbe3d02,I88681f21 am: 1f65c6b62e am: f2abffe107 am: df8410e677 am: 15e1f8f5eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1451015

Change-Id: Ia0c6195e820a04d5ac0a330a0813d308d0eb0c08
2020-11-06 02:32:52 +00:00
Treehugger Robot
1f65c6b62e Merge changes Ib3c9affb,I1dbe3d02,I88681f21
* changes:
  Keystore 2.0 SPI: Adding the keystore AIDL interface to frameworks
  Keystore 2.0: KeyProperties SignaturePadding is now public but hidden
  Keystore SPI: Add SecurityLevelEnum to KeyProperties
2020-11-06 01:01:00 +00:00
Janis Danisevskis
145e11ff93 Keystore 2.0 SPI: Adding the keystore AIDL interface to frameworks
Adds the dependency to the new Keystore 2.0 AIDL spec to the frameworks
module.

Bug: 159476414
Test: None
Change-Id: Ib3c9affbe0dfcbd78ff47b41907f5650444711a4
2020-11-05 13:11:12 -08:00
Anton Hansson
c33bf84579 Merge changes from topic "addsup"
* changes:
  [automerge] Add SuppressLint to framework-annotations-lib 2p: 2157c89792
  Add SuppressLint to framework-annotations-lib
2020-11-05 10:12:39 +00:00
Ytai Ben-tsvi
df2e907e08 Merge changes from topic "aidlize-audioflinger"
* changes:
  Remove manual parceling from Interpolator and VolumeShaper
  Add av-types-aidl to libandroid_runtime, libmedia_jni
  Add dependencies to libandroid_runtime, libmedia_jni
  Add dependency to libandroid_runtime
2020-11-04 21:03:37 +00:00
vichang
bd61a3225e Merge "Add app compat config from ICU4J" am: 6d5fbc8434 am: cf0dc89869 am: 334b0811ac am: b295aad1bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1481306

Change-Id: Ie64209ccda762c3c7ebabdeace1a34c16794c47d
2020-11-04 13:34:08 +00:00
vichang
6d5fbc8434 Merge "Add app compat config from ICU4J" 2020-11-04 12:28:57 +00:00
Ytai Ben-Tsvi
c3cd3cda9b Remove manual parceling from Interpolator and VolumeShaper
Change-Id: Ic5c3bfeb67c6e1b9b2b3c6275ea4badbef8536d3
2020-11-03 16:21:15 -08:00
Presubmit Automerger Backend
ddd05ba022 [automerge] Add SuppressLint to framework-annotations-lib 2p: 2157c89792
Change-Id: I9c0d36bb0cdfdfa4d5d1fa20a62bd5151a02e63f
2020-11-03 09:56:32 +00:00
Anton Hansson
2157c89792 Add SuppressLint to framework-annotations-lib
Not having this on the classpath causes metalava to ignore
@SuppressLint annotations on APIs.

(The annotation has CLASS retention).

Bug: 172266358
Test: m <framework-module>-check-current-api (with suppressions)
Change-Id: I4aeecf6f067f5c141c6f2a31c9e8b46df3ff7e6a
2020-11-03 09:55:56 +00:00
Victor Chang
a4fae275d5 Add app compat config from ICU4J
Bug: 139480281
Bug: 171979766
Test: device boots
Change-Id: Ib2065368e2c5e0904c229c9383bc774269a0f410
2020-10-30 12:14:34 +00:00
Treehugger Robot
67b2e68a7c Merge changes from topic "bug_167962976_visibility" am: 39c6068cbc am: 5942721506 am: 29bed11140 am: a678e6b183
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1478840

Change-Id: I476629002e075d01c83f77be8343157dbd66ce9b
2020-10-29 08:48:24 +00:00
Treehugger Robot
39c6068cbc Merge changes from topic "bug_167962976_visibility"
* changes:
  Add OWNERS block to prevent the tree from mooving during migration.
  Add visibility rules for packages/modules/Connectivity/Tethering
2020-10-29 07:15:03 +00:00
Baligh Uddin
ff8ff126c7 Add visibility rules for packages/modules/Connectivity/Tethering
BUG: 167962976
Test: TH
Change-Id: Id28881b35cf24fc9517fa11af6d8e539ab244fa6
2020-10-29 02:11:55 +00:00
Amit Mahajan
51fa2d3c56 Remove unused telephony api files.
Test: TH
Bug: 170906882
Merged-in: Ie91e11a23988729a63b6bf6a7ba965552b241748
Merged-in: Idbd05aeef055291fc50008129c30c4ae272c1ac0
Change-Id: If0d86ab504d5e5ca2cd288bd142f12a87465a8c5
2020-10-28 16:33:02 -07:00
David Su
bae149c2a8 Merge "framework-wifi-util-lib - compile against sdk level 30" 2020-10-28 14:58:25 +00:00
Amit Mahajan
27d13cada5 Get rid of telephony-stubs.
It was added for telephony mainline and is currently not needed.

Test: basic telephony validity, TH
Bug: 170906882
Change-Id: Idbd05aeef055291fc50008129c30c4ae272c1ac0
2020-10-28 02:36:43 +00:00
David Su
afb5415c54 framework-wifi-util-lib - compile against sdk level 30
Bug: 171330443
Test: compiles
Change-Id: Iaf506952f8d91a914a3fae3529ce738a743b1da3
2020-10-26 14:49:34 -07:00
Jeff Sharkey
d23b5379c0 Enable Error Prone to detect obscure bugs.
We've been writing many new framework-specific Error Prone checkers
to help detect obscure platform bugs, and this change starts enabling
those checkers for more packages across the platform.

Bug: 155703208
Test: manual
Exempt-From-Owner-Approval: trivial blueprint changes
Change-Id: I1db3412b0be40f6f78c68331ae01756887192071
2020-10-23 16:55:30 -06:00
Daniel Bright
f86143770f Merge "Add Handover Failure Mode to Radio Hal" 2020-10-22 21:38:58 +00:00
Daniel Bright
bd26ad22ba Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: I194aca34131301a3507ad3ba99be278cbf6fa87b
Merged-In: I194aca34131301a3507ad3ba99be278cbf6fa87b
2020-10-22 19:49:53 +00:00
TreeHugger Robot
fdda2eff52 Merge "Re-added intdef annotation processor plugin" 2020-10-21 14:01:00 +00:00
Ioana Stefan
2f5c545a2e Re-added intdef annotation processor plugin
Re-added plugin of intdefs annotation processor. The plugin was
added to a different target (`framework-minus-apex-intdefs`)
because of the refactoring of the `framework-all` target.

Generated files and command to properly merge them can be found at
go/winscope-help.

Test: run 'mp :framework-minus-apex-intdefs' and check if mapping files are properly generated
Change-Id: I295c85504246a85dea968ed26f8c05747ff5a7f7
2020-10-16 17:09:53 +02:00
Arthur Ishiguro
8368e94109 Add Context Hub HAL 1.2 in IContextHubWrapper
Bug: 166845383
Test: Flash and verify HAL 1.2 can be found if present
Change-Id: Ia8dc423f449c1e179ce450a1ee7954a964bae6cb
2020-10-15 09:41:25 -07:00
Amy Zhang
b13e3042f3 Make Tuner java framework and Tuner JNI adopt Tuner HAL 1.1
Please see the Tuner HAL 1.1 design doc here:
go/android_tuner_hal_1.1

In this CL, the Tuner framework and JNI start to use the
@1.1::IFilter.getId64Bit() API and @1.1::IFilterCallback.

Currently the 1.1 IFilterCallback passes two new 1.1 record filter
events: DemuxFilterTsRecordEvent and DemuxFilterMmtpRecordEvent.

Tuner Framework exposes a new API: getId64Bit() which calls
the native getId64Bit. Also Filter java will be using long id
instead of the previous int id.

The FilterCallback interface remains unchanged but the TsRecordEvent
and the MmtpRecordEvent carry more variables to pass the extra info
in version 1.1.
When the HAL implementation is on version 1.0 and calls
onFilterEvent, it still uses the extended TsRecordEvent and
MmtpRecordEvent but the 1.1 field will be set to invalid.

Related HAL interface can be referred here:
hardware/interfaces/tv/tuner/1.1

Test: make -j44 dist, atest android.media.tv.tuner.cts
Bug: b/159058358
Bug: 158816517

Change-Id: I8d52c0b2031eed9c54909e5bf233137c56eeb78f
2020-10-13 14:28:31 -07:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Anton Hansson
59e35965ee Merge "Convert appsearch to java_sdk_library" 2020-10-09 12:49:43 +00:00
Remi NGUYEN VAN
65a88ce8c3 Merge "Move IpUtils to frameworks/libs/net" am: e842db3548 am: 62e99304d6 am: e55c9f1335 am: 364672242c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440234

Change-Id: I27072c126ee7eedc2de3d1cdccd0fd503f1577a1
2020-10-09 01:58:35 +00:00
Remi NGUYEN VAN
e55c9f1335 Merge "Move IpUtils to frameworks/libs/net" am: e842db3548 am: 62e99304d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440234

Change-Id: I03872655d1ef3a7bb436666196ed67bd61601f65
2020-10-09 00:52:31 +00:00