1782 Commits

Author SHA1 Message Date
Yu-Han Yang
83c0e19544 Link to death recipient for AIDL HAL
Bug: 215799354
Test: on Cuttlefish
Change-Id: I914295ed67fb4dc83d6977663030505318b4960c
2022-03-30 14:30:20 -07: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
Nicolas Geoffray
1c8eb0109f Merge "Move GraphicsStatsService native method registration to zygote." am: e420bd2635 am: ad7ab1f419 am: 1d7298bcec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2011395

Change-Id: I0f2206fee839f0f20fc465fdd4845d9eda7000f5
2022-03-10 19:41:01 +00:00
Nicolas Geoffray
1d7298bcec Merge "Move GraphicsStatsService native method registration to zygote." am: e420bd2635 am: ad7ab1f419
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2011395

Change-Id: I0ce995ace2ccdc1fd724a1f22f71b89d5ede737f
2022-03-10 19:39:57 +00:00
Nicolas Geoffray
e420bd2635 Merge "Move GraphicsStatsService native method registration to zygote." 2022-03-10 18:34:29 +00:00
Nicolas Geoffray
13f1f45e1e Move GraphicsStatsService native method registration to zygote.
It used to be in system server, but this is for a class in boot
classpath so we can move it to AndroidRuntime.cpp and avoid system
server dirtying memory for these methods.

Test: m
Bug: 162110941
Change-Id: Ifda5957aab757fe47c97b1aee0a6a8b7a059ac3d
2022-03-07 16:44:50 +00:00
TreeHugger Robot
01508633c3 Merge "Pipe SatellitePvt fields in JNI" into tm-dev 2022-03-03 16:35:30 +00:00
Prabir Pradhan
280b13eacf Support ANRs from windows that are not tracked by WM
Previously, ANRs for gesture monitors were reported using the pid of the
owner, and ANRs for all windows were reported using its input channel,
which was tracked by WM.

Now, there can be input windows that are not tracked by WM. We unify the
ANR reporting pipeline so that we first try to report an ANR using the
window's input channel. If the ANR reporting fails because the input
channel was not tracked by WM, we fall back on reporting ANR via the
pid of the window owner.

Bug: 210978621
Test: manual: Create a gesture monitor that sleeps while processing
input events, ensure there is an ANR.

Change-Id: If368ccf4a5cc676f64f3ed9de4f765b0abe63284
Merged-In: If368ccf4a5cc676f64f3ed9de4f765b0abe63284
2022-02-28 21:43:44 +00:00
Remi NGUYEN VAN
b6a652bc92 Move networkstats JNI to connectivity module am: f7c0b1fd9e am: f15c18ec08
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987468

Change-Id: I81c331b1799c7bd728937da870e501378d599063
2022-02-28 07:04:51 +00:00
Remi NGUYEN VAN
f15c18ec08 Move networkstats JNI to connectivity module am: f7c0b1fd9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987468

Change-Id: Icae9025ce53eca8a6636037f3baf7a6c17e5a5da
2022-02-28 06:26:56 +00:00
Yu-Han Yang
083d0a347a Pipe SatellitePvt fields in JNI
Bug: 206670536
Test: on Cuttlefish
Change-Id: I232a11eb84bf4c0bd34b3192c9530cfd63cbd708
2022-02-25 23:41:20 +00:00
Yu-Han Yang
cb84b63a8a Refactor IGnss JNI
Bug: 127519827
Test: atest CtsLocationGnssTestCases
Change-Id: Iff7e552f431d73f16921eaaf8baf4139113863aa
2022-02-18 20:51:06 +00:00
Remi NGUYEN VAN
f7c0b1fd9e Move networkstats JNI to connectivity module
Reorganize networkstats JNI so it can be included in the connectivity
module.

Bug: 197717846
Test: m
Change-Id: I815ea379f3d9915041c80ac5e743ce62e05f4cf8
Merged-In: I815ea379f3d9915041c80ac5e743ce62e05f4cf8
2022-02-18 16:20:47 +08:00
Patrick Rohr
d9bed53ea5 Merge "Replace qtaguid_deleteTagData with java implementation" am: 9ee2d46a8c am: ac03f3be6c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1969203

Change-Id: I2a60fe1df37091acc588e8af4e1d03257192d1f9
2022-02-16 21:02:38 +00:00
Patrick Rohr
ac03f3be6c Merge "Replace qtaguid_deleteTagData with java implementation" am: 9ee2d46a8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1969203

Change-Id: I8737beca8dfe0bf6cd4b3a117fc2c1b856592c8a
2022-02-16 20:35:22 +00:00
Patrick Rohr
9ee2d46a8c Merge "Replace qtaguid_deleteTagData with java implementation" 2022-02-16 19:59:14 +00:00
TreeHugger Robot
ee7ce221a5 Merge changes from topic "compaction-improvements"
* changes:
  Improve compaction to abort when system changes to awake state
  Improve compaction by skipping bad VMAs instead of fully bailing out
  Fix for compaction bailing out when MAX_RW_COUNT bytes are sent to compaction
2022-02-16 04:03:06 +00:00
Peiyong Lin
68e5d6b6d8 Merge "Address API review feedback." 2022-02-15 19:55:56 +00:00
Peiyong Lin
0c1891e714 Address API review feedback.
Avoid using nested callback classes, move the Executor to register
function and update the Javadoc to emphasize unregister call is always
expected even when a task is already destoryed.

Bug: b/216628683
Test: atest TaskFpsCallbackTest

Change-Id: I801898d082a6eeb6a6f991e3765795a270943d42
2022-02-14 22:18:29 +00:00
Treehugger Robot
a2f9e47c87 Merge "Fix cert-dcl16-c warnings" am: d78c0842df am: a4e7dfab4c am: 34fe73e15f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977907

Change-Id: Ia481193cdbd62c60d572db1c087597b439348ebd
2022-02-14 17:35:45 +00:00
Xin Li
a6a261b1be Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:12 +00:00
Treehugger Robot
34fe73e15f Merge "Fix cert-dcl16-c warnings" am: d78c0842df am: a4e7dfab4c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977907

Change-Id: I4ae11f4853a0b69267521b13b1c61b167b6b29e6
2022-02-14 17:18:58 +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
markchien
fb55ddd34f Replace qtaguid_deleteTagData with java implementation
Copies the behavior of TrafficController::deleteTagData.

Test: atest NetworkStatsServiceTest
Change-Id: I436ce514108486db712b455f1b5fd8dca345c65c
2022-02-11 14:51:09 +08:00
Siarhei Vishniakou
6d81374415 Merge "Use InputProcessor instead of InputClassifier" 2022-02-10 19:34:44 +00:00
Edgar Arriaga
9acf12b37c Improve compaction to abort when system changes to awake state
While the screen is off we sometimes issue compactions as they are not
disruptive to the user. However, it is possible to wake up and have
compactions running or scheduled so this may lead to jank. This patch
cancels any pending or running compactions that were scheduled to happen
during this non interactive type when the system becomes awake to avoid
jank.

Test: Manual
Bug: 214654755
Change-Id: Ie9b2cbaa7093d63e77f8666d1e6f050ab5610a1d
2022-02-10 10:36:00 -08:00
Edgar Arriaga
cbb6b2be37 Improve compaction by skipping bad VMAs instead of fully bailing out
Previously when a VMA failed compaction for any reason the system would
stop trying to compact all the rest of the VMAs and bail out. However,
there are multiple reasons that a VMA can fail due to not being
reclaimable with -EINVAL, in such instances we will just skip the VMA
and keep going with the rest of the VMAs and any other error will still
cause compaction to bail out as it would likely be irrecoverable.

Test: Manual. Verified that once a VMA errors with -EINVAL, it continues
with the rest of the VMAs and other errors bail out.
Bug: 205658049

Change-Id: Ifc190e371c4dce0eaa6dbab104aa0b666e06027d
2022-02-10 10:35:49 -08:00
Edgar Arriaga
eb69f2ead7 Fix for compaction bailing out when MAX_RW_COUNT bytes are sent to compaction
Compaction uses process_madvise which internally makes use of iovec
which imposes certain restrictions on the amount of data that can be
sent, previously we had added a constraint of the total vmas sent within
a single syscall determined by UIO_MAXIOV. However, in this CL we also
added a cap on the amount of bytes sent per syscall up to the maximum
supported MAX_RW_COUNT and split the VMA into chunks which end up
being sent in different syscalls.

Test: Verified ZRAM changes during compaction and added logging to
verify that all VMAs where processed
Bug: 205658049

Change-Id: Ib478397a1199d31a85606b0a38ab1b673b2333fc
2022-02-10 10:30:38 -08:00
Christine Franks
3b79889dfd Address API feedback and CTS on cloud devices
- Add additional javadoc for vendor and product ids
- Enumerate full allowed key code set for VirtualKeyEvent
- On cloud devices, CTS fails with 'bad address' for VirtualTouchscreen.
  Pass by address rather than by value to solve.

Bug: 216554655
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests
Change-Id: Ifb233d2b6c4eee1ffdcba218ed17312e67bac6f6
2022-02-09 17:14:52 -08:00
Chih-Hung Hsieh
623cf543a8 Fix cert-dcl16-c warnings
Bug: 120614316
Test: make tidy-frameworks-base_subset
Change-Id: Ie71c06e02fcb9a2f90508c37d926a79e0b591c5a
2022-02-09 15:30:51 -08:00
Edwin Tung
4a61a8808f Add MeasurementCorrections AIDL HAL (framework/base)
Bug: 208728105
Test: atest LocationManagerFineTest & atest LocationPrivilegedTest & atest GnssMeasurementCorrectionsTest
Change-Id: Ic909beb99e07ac8563b905c9f92b9c4acd2358b7
2022-02-09 06:12:22 +00:00
Joe Huang
89f7b91150 Add IGnssAntennaInfo AIDL HAL (frameworks/base)
Bug: 205185369
Test: atest LocationManagerFineTest#testGetGnssAntennaInfos & atest GnssAntennaInfoTest
Change-Id: Iedb95d88a7e71f3f8c2156064269007d3ce8ef61
2022-02-09 02:42:05 +08:00
TreeHugger Robot
a207a578a9 Merge "Reland "Add GnssVisibilityControl AIDL HAL (frameworks/base)"" 2022-02-08 05:41:26 +00:00
Remi NGUYEN VAN
92b2792a7c Move networkstats JNI to connectivity module
Reorganize networkstats JNI so it can be included in the connectivity
module.

Bug: 197717846
Test: m
Change-Id: I815ea379f3d9915041c80ac5e743ce62e05f4cf8
2022-02-07 11:45:18 +09:00
Antonio Kantek
efccd1dfe9 Merge "(TouchMode Permission 2/n) Introduce permission for touch mode" 2022-02-04 22:42:56 +00:00
Siarhei Vishniakou
64aa6b84b6 Use InputProcessor instead of InputClassifier
This HAL was changed to InputProcessor, use it here in the jni code in
order to link the InputManager code.

Bug: 210158587
Test: m libinputflinger
Change-Id: Iff33f089862422081ab8a0ddb06f12019e89d943
2022-02-04 14:02:30 -08:00
TreeHugger Robot
07526c6adc Merge "InputManagerService: Remove gesture monitor implementation" 2022-02-04 12:55:01 +00:00
Edwin Tung
c2b1fe36b7 Reland "Add GnssVisibilityControl AIDL HAL (frameworks/base)"
Bug: 208728105
Test: atest VtsHalGnssTargetTest
Change-Id: I70269fbcdcf47b1bd5d010e938a5dbcbd3493a20
2022-02-03 23:10:09 +08:00
Yu-Han Yang
ffc058ccea Update getInterfaceVersion checks to include -1
getInterfaceVersion() returns -1 if it is unknown.

V1 of the HAL doesn't implement getInterfaceVersion
due to ABI reasons for regular, unversioned, AIDL
interfaces.

Bug: 206670536
Test: on device
Change-Id: I358fe2748b4a8450b68d0954dee0814fe246eb18
2022-02-02 16:28:58 -08:00
Antonio Kantek
d299b88323 (TouchMode Permission 2/n) Introduce permission for touch mode
This CL adds caller pid and uid for permission checks in the native
layer when switching touch mode state.

Bug: 198487159
Test: atest FrameworksCoreTests
Test: atest CtsInputMethodTestCases
Test: atest CtsInputTestCases
Test: atest CtsSecurityTestCases
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: I64480c0284481b288ad0950c2e95726b9adb529f
2022-02-02 15:10:34 -08:00
TreeHugger Robot
f75a93dd7d Merge "Call DeleteLocalRef in MeasurementCorrections" 2022-02-02 01:29:13 +00:00
Yu-Han Yang
ca207e40bf Merge "Add register/unregister methods for SvStatus and NMEA (frameworks/base)" 2022-02-02 01:05:24 +00:00
Prabir Pradhan
d35d4543ca InputManagerService: Remove gesture monitor implementation
Bug: 162194035
Test: manual
Change-Id: I8a2649f168f76aa56e3a1cb44d85516bebfc6342
2022-02-01 14:09:06 -08:00
Yu-Han Yang
51c67cb97a [automerge] DO NOT MERGE: Call DeleteLocalRef on callObjectMethod's returned value 2p: 7a883af438
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16770624

Bug: 214967397
Change-Id: Iccc200fc1e9ade3650b530b746df97edbd4fa467
2022-02-01 19:04:56 +00:00
Yu-Han Yang
7a883af438 DO NOT MERGE: Call DeleteLocalRef on callObjectMethod's returned value
CallObjectMethod returns a local reference that's causing memory
leakage. We need to make sure all these local refs are deleted.

This change combines I7462bd9293b214d75df5196ae42b4da1da904e1a
(ag/16752598) and I85d68039a5f3951cb629fd4286b182c93a7293e1
(ag/16765005) from the master branch.

Bug: 214967397
Test: manual
Change-Id: Idb222eab7a498b23a194272543b2dab235eaf002
2022-02-01 11:02:02 -08:00
Shubham Dubey
1cb1b98f1e Merge "Revert "Add GnssVisibilityControl AIDL HAL (frameworks/base)"" 2022-02-01 09:27:28 +00:00
Shubham Dubey
2b1010003e Revert "Add GnssVisibilityControl AIDL HAL (frameworks/base)"
This reverts commit 454aff818016f91fe9a73b0ce25ba59dc963f024.

Reason for revert: Causing boot failures
BUG: 217304780

Change-Id: I5a5591a4684677ce7d47782ebe78f1158a5b0b05
2022-02-01 07:41:14 +00:00
Edwin Tung
269a3757fd Merge "Add GnssVisibilityControl AIDL HAL (frameworks/base)" 2022-02-01 05:24:44 +00:00
Yu-Han Yang
b7c706d9c7 Call DeleteLocalRef in MeasurementCorrections
Bug: 214967397
Test: manual
Change-Id: I85d68039a5f3951cb629fd4286b182c93a7293e1
2022-01-31 15:29:42 -08:00
Siarhei Vishniakou
22097a0976 Merge "Add dump for UnwantedInteractionBlocker" 2022-01-31 21:38:42 +00:00