Commit Graph

7130 Commits

Author SHA1 Message Date
Treehugger Robot
15d5b1187f Merge "Support for SensorHeadTrackerTest on Hid command" am: 51f4fb2b20 am: 0dd28f8ef6 am: 12a00992d1 am: 85308f0402
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2215565

Change-Id: I76a0005a5f53fc126e498e578bbadb5c4d52ae44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 04:03:03 +00:00
Andrew Maganito
f532c91126 Support for SensorHeadTrackerTest on Hid command
- Added support for SensorHeadTrackerTest. This does not affect other tests used by Hid Command tool.
- Added two new functions setGetReportResponse() and
  sendSetReportReply()

Bug: 228319672
Test: atest android.hardware.cts.SensorHeadTrackerTest
Change-Id: I83cfe1f71df57584dac7288ab092164a5c5dea3c
2022-09-13 00:04:53 +00:00
Cole Faust
0bb48ec274 Merge "Fix module-file name collisions" am: 92f4e14b94 am: b88cb3e1ce am: 1d4139e72d am: 645e261b33
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2202594

Change-Id: If10153a1ccd76dc65295db1e73419dbcd5276350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 05:31:13 +00:00
Cole Faust
d633c8e430 Fix module-file name collisions
Bazel doesn't allow a module and file with the same name.

These are some extra modules I missed in aosp/2201115

Bug: 198619163
Test: m am, verified it was still installed to out/target/product/emulator64_x86_64/system/bin/am and not am.sh
Change-Id: I763a938918854541ec5b0bcf740b1b6cf0fce771
2022-09-01 15:04:37 -07:00
Ryan Prichard
43354b577c Merge "Add missing cassert includes" am: 565f2ab115 am: 1bfdac63f2 am: 935ee60974 am: a0511aa6ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2202602

Change-Id: I09091444a170617ae21dceae78ecea4275786b15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 21:26:58 +00:00
Ryan Prichard
565f2ab115 Merge "Add missing cassert includes" 2022-09-01 18:23:38 +00:00
Ryan Prichard
d9a3ffa6f8 Add missing cassert includes
Bug: http://b/175635923
Test: treehugger
Change-Id: I8caf940f7b6e2fdd921516efea4aed14e0c2afb7
2022-08-31 19:09:21 -07:00
Cole Faust
0422abefde Merge "Fix module-file name collisions" am: cdaa8466e0 am: eb143ce893 am: d951dc17cb am: a71665d073
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2201115

Change-Id: I9043a28088d90ea9bbf5f7de61eccec0618ff4e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 06:22:52 +00:00
Cole Faust
325fb3e2aa Fix module-file name collisions
Bazel doesn't allow a module and file with the same name.

Bug: 198619163
Test: m ime, verified it was still installed to out/target/product/emulator64_x86_64/system/bin/ime and not ime.sh
Change-Id: I214e190e159a7aff9149e77146d1a493992e885d
2022-08-29 18:42:32 -07:00
Patrick Williams
ac500b62f8 Merge "Add OWNERS for screencap" am: 7d825e6880 am: c8d43f772e am: 5e86dc7cec am: 84f8b5a57b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2199515

Change-Id: I8238c0a17413d0bcbf635de5c9e8ed2c342b3032
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-29 18:22:53 +00:00
Patrick Williams
7d825e6880 Merge "Add OWNERS for screencap" 2022-08-29 16:38:30 +00:00
Patrick Williams
7ccc37414b Add OWNERS for screencap
Test: n/a, OWNERS changes only
Change-Id: I84b14a46846f2bf29acb6cae37ed93b7258d50de
2022-08-29 15:08:40 +00:00
Zimuzo Ezeozue
5d66d97ba3 Merge "Fix ATRACE_TAG redefinition in SysTrace.h" am: 5b999ecd30 am: 9aa4f14985 am: bda05a0a37 am: 0d25702ac3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2190736

Change-Id: I578e0a3c1a9a4533d393d74ad8afbfa8396ba568
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 09:40:29 +00:00
Zimuzo Ezeozue
5b999ecd30 Merge "Fix ATRACE_TAG redefinition in SysTrace.h" 2022-08-26 08:35:47 +00:00
Mikhail Naganov
c9839d447c Merge "app_process: Fix className check" am: 1eeec581f7 am: 3ced7a684f am: afc6736225 am: 2f984b45c8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2193706

Change-Id: I5ccccfd72f9ec4ac7523420c8f8df184d31bc6f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 17:16:05 +00:00
Zim
cabd966568 Fix ATRACE_TAG redefinition in SysTrace.h
Split SysTrace.h into SysTrace.cpp to avoid defining ATRACE_TAG
in the clients of SysTrace.h

This is in preparation to land aosp/2190022

Test: m
Bug: 161393989
Change-Id: I0ed94c9f66043aa83a59e8042ec9e61ee47db0f2
2022-08-25 14:03:49 +00:00
Mikhail Naganov
b523e5e6dc app_process: Fix className check
Emptyness of a String8 variable was not checked correctly.
As a result, even when no arguments were provided,
`app_process` was still launching runtime.

Test: adb shell app_process64
Change-Id: Ia303edb5a74b61efad24b475008a3642a07ab789
2022-08-24 19:54:48 +00:00
Yunfan Chen
a71995dd93 Merge "Fix display size calculations in large screen (2/3)" into tm-qpr-dev am: 13255a0a50
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19565191

Change-Id: I09f4d6af3fc61a7b78346294096a1f98b665778a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-17 05:19:23 +00:00
Yunfan Chen
d1e350c7fc Fix display size calculations in large screen (2/3)
The fix is taken from AOSP patch aosp/2154236.

This will make sure the UI Automator always has the entire display to
interact with. Otherwise, in multi-windowing mode or on devices with
task bar, it will only be able to interact with the current focused
window, the default launch bounds, or the display excluding task bar,
depends on the actual scenario.

Test: PlatformSenarioTests
Bug: 238981445
Bug: 238985243
Bug: 238581838
Bug: 233945217
Change-Id: I9223ef5552ddb081e75de1242670862f2813e56d
2022-08-09 13:38:43 +09:00
Kevin Jeon
faef3a82de Merge "Exclude dumpsys from incident in dumpstate" am: 6e1ac19115
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2156679

Change-Id: I5c81d8ed230d499c6ab97d99643bb5a23f8d20e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:35:06 +00:00
Kevin Jeon
6e1ac19115 Merge "Exclude dumpsys from incident in dumpstate" 2022-07-25 16:17:32 +00:00
Thomas Stuart
6ff1ff9e20 cleanupOrphanPA's feature framework (2/2)*
Bug: 210134615
Test: Unit + manual
Change-Id: Ic350e4e45c0d1597c6f61e3e3e717b3a2c1bb099
Merged-In: Ic350e4e45c0d1597c6f61e3e3e717b3a2c1bb099
2022-07-21 00:43:36 +00:00
Kevin Jeon
4ee5ba59ef Exclude dumpsys from incident in dumpstate
This change adds all dumpsys sections defined in incident.proto from
being included when incident is called from dumpstate, since these
sections are already included elsewhere in bug reports. This reduces the
time taken in the INCIDENT REPORT section by ~6.8s (18.64s -> 11.83s).

Test: - atest incidentd_test
Test: - Took a bug report and verified that the incident report in bug
        reports no longer contained dumpsys sections.
      - atest incident_d test
Bug: 239444802
Change-Id: Ia090131687401fcbfea9708e80fd02899a8fb643
2022-07-18 22:26:56 +00:00
Jayant Chowdhary
8a289a650c s/get_interesting_hal_pids/get_interesting_pids.
Since pids can belong to non hal processes as well, in theory.

Bug: 233130219

Test: build

Merged-In: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Change-Id: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit d1ce457da1)
2022-06-16 18:15:48 +00:00
Eric Biggers
cb6e4d4cda Merge "Remove obsolete support for emulated FBE" am: d96c8701dd am: 5f2aa0bd19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2101871

Change-Id: Idd5e502f12216c2de212b68682fb97a4bb28e874
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 19:52:48 +00:00
Eric Biggers
a0da4eb791 Remove obsolete support for emulated FBE
Emulated FBE was a developer-mode feature intended to allow developers
to add Direct Boot support to apps before native FBE devices became
widely available.  Since all devices running the latest version of
Android now use native FBE (except for a couple edge cases not relevant
here, like in-development devices on which encryption hasn't been
enabled yet), and emulated FBE doesn't work on native FBE devices
anyway, there's no longer any need to carry the code for emulated FBE.

Bug: 232458753
Change-Id: I2ab35472c872b19b2bf64aa99424b5ccd9f6170f
2022-06-02 00:53:48 +00:00
Jayant Chowdhary
1d4c0cc6a8 Merge "s/get_interesting_hal_pids/get_interesting_pids." into tm-dev am: 09261f42c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18587492

Change-Id: Id0300de82061fa529f7b03b0515e765783f9e922
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 00:16:13 +00:00
Jayant Chowdhary
d1ce457da1 s/get_interesting_hal_pids/get_interesting_pids.
Since pids can belong to non hal processes as well, in theory.

Bug: 233130219

Test: build

Change-Id: I8ef6b2aaa871f6a8f992887a394d81c544e9cba4
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-05-24 20:50:08 +00:00
Lucas Dupin
8ab593e3a8 Merge "[Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms." am: 6562eb87f3 am: e3f08c403e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2092083

Change-Id: Iae7ebfe443056439545dec77f4f2e6b19afe79bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-14 00:23:15 +00:00
xi yu
c341544c80 [Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms.
Test: manual

Change-Id: I2074a48c6d3fc11f393bfa4fbcbcd8d0df5c780f
2022-05-13 09:03:00 +00:00
Lucas Dupin
bfd1812fcb Try to load colors more frequently
During OTA, sysprops aren't available as early in the boot process.
This causes the boot animation to not have dynamic colors.

This CL tries to load the colors more frequently, at every part loop.
Before we'd only try on the first frame of each animation part.

Test: adb shell bootanimation
Fixes: 229029861
Change-Id: I1bbebf93b4fbc31d945c4181472576cf29f13bc7
2022-04-25 15:57:38 -07:00
joenchen
85b339fb24 bootanimation: correct logo position and size after resolution changed
The resolution may be changed while the boot animation is playing.
mInitWidth and mInitHeight store the original resolution, and then the
animation coordinate and size are recalculated according to the ratio
(mWidth/mInitWidth and mHeight/mInitHeight).

Bug: 228605923
Test: change resolution and then reboot to check the animation
Change-Id: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
(cherry picked from commit 764ea04421)
Merged-In: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f
2022-04-20 07:05:15 +00:00
Tyler Gunn
e1edc97d38 Merge "Add telecom log marking shell command." am: 5b04c63c64 am: b984978ad7 am: 5f44a37baa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2061586

Change-Id: I8b7c0ed95bb77dd0761eebafa2deb645ec728163
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 16:36:33 +00:00
Tyler Gunn
043bb30f98 Add telecom log marking shell command.
We often get bugs where testers have executed a LONG list of test steps.
It becomes extremely difficult to know where in the logs corresponds to
which test script step.

This adds a new telecom shell command:
adb shell telecom log-mark Testing 1 2 3

This command adds a USER_LOG_MARK event log item to all ongoing calls and
to the general telecom logs with the specified message.

Test: Tested using the new shell command to mark the telecom logs in and out of calls.
Fixes: 228895073
Change-Id: Ic11edc777e57a4fc8748a42c931379faf7cea671
2022-04-12 11:14:14 -07:00
Dave McCloskey
5a608433a3 Update LockSettingsCmd's showUsage method to defer to calling
"locksettings help".

This removes the duplication and also fixes the
current behavior showing the incorrect documentation for "locksettings
verify" which does *not* log in the user.

Test: adb shell locksettings
Test: adb shell locksettings clear --old 0000 (to verify other commands
still work)

Change-Id: I429288a9e4280d41213e1c0fd8234d3666888abc
2022-04-05 17:06:15 +00:00
Ricky Niu
9d86af2555 Modified the resetUsbPort command to Asynchronous
Because the resetUsbPort API modified to Asynchronous,
related function need to be modified.

Bug: 217369748
Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ieef549736532688ff356b4bb8fa790fb10403300
2022-04-01 18:16:45 +00:00
Ricky Niu
66c77dfdf9 Add resetUsbPort in svc usb command
Implement resetUsbPort to support manual testing on
real device to verify feature functionality from App layer
and VTS test.

Bug: 216387845
Test: Manual test with "svc usb reset UsbPort" correctly

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: Ieb29de3dd398859607490548a1f3a16f8359ae8f
(cherry picked from commit 519062eabd)
Merged-In: Ieb29de3dd398859607490548a1f3a16f8359ae8f
2022-04-01 18:12:33 +00:00
Lucas Dupin
cd25684a0c Reload color sysprops after failing
During OTA, sysprops aren't load as fast as during regular boot.
This causes the animation to not be able to pick up the dynamic colors.

We can mitigate this issue by trying to reload the sysprops at the
beginning of each animation part.

Test: manual
Bug: 227381265
Change-Id: I4397079aacc52acb5cda54a925f70e4f5c745b3f
2022-03-29 23:38:50 +00:00
Nikita Ioffe
99ba880e55 Add a way to instrument sdk sandbox processes
The following restrictions applies to the instrumentation of the sdk
sandbox processes:

* Instrumentation must be signed with the same certificate as the client
  app the instrumented sdk sandbox belongs to.
* If there is a running instance of to-be-instrumented sdk sandbox
  process, then it will be killed before the instrumentation starts.
* While instrumentation is running the client app won't be allowed to
  connect to the instrumented sdk sandbox process.
* The --no-restart instrumentation of the sdk sandbox processes is not
  supported.

Bug: 209061624
Test: atest SdkSandboxInprocessTests
Change-Id: Ia4b145c091bf8da600a77ea82fc9e3cd97757275
2022-03-18 14:50:21 +00:00
Elliott Hughes
ff645f8555 Merge "Revert "Disable pointer authentication in app processes."" am: b9fc2910ca am: a236c37517 am: 95dc32f484
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2021036

Change-Id: Ic1be7b048ce64956ce5276c26a5a031e6192e3d6
2022-03-14 22:11:21 +00:00
Pirama Arumuga Nainar
3900e2887b Merge "Disable "-readability-duplicate-include" tidy warning in generated file" am: e6c05a8fd7 am: 07888666d2 am: 92d4ec9cd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019339

Change-Id: Id5cca221c2e7c80c66d3233020e0900faee230c2
2022-03-14 21:59:01 +00:00
Elliott Hughes
b9fc2910ca Merge "Revert "Disable pointer authentication in app processes."" 2022-03-14 21:09:31 +00:00
Elliott Hughes
90d4d6040c Revert "Disable pointer authentication in app processes."
Revert "Disable pointer authentication in app processes."

Revert submission 1954983-master-I3030c47be9d02a27505bd4775c1982a20755758c

Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
Reverted Changes:
I3030c47be:Disable pointer authentication in app processes.
I3030c47be:Disable pointer authentication in app processes.

Change-Id: I75c4d2d3cf59aecf99d9c9d37c6750f999e74de8
2022-03-10 18:01:04 +00:00
Pirama Arumuga Nainar
8186f296d0 Disable "-readability-duplicate-include" tidy warning in generated file
/buildbot/src/android/master-plus-llvm/out/soong/.intermediates/frameworks/base/cmds/idmap2/libidmap2_protos/android_arm64_armv8-2a_cortex-a55_static/gen/proto/frameworks/base/cmds/idmap2/libidmap2/proto/fabricated_v1.pb.h:34:1: error: duplicate include [readability-duplicate-include,-warnings-as-errors]

Change-Id: I5da44b2714ce8455a4b8af7556decfc1c24c0d11
Test: presubmit
2022-03-10 05:25:35 +00:00
Treehugger Robot
199359822e Merge "Forward svc bluetooth to "cmd bluetooth"" 2022-03-09 12:50:31 +00:00
Treehugger Robot
780bfed3f9 Merge "Add additional logs for bootanimation" am: 51a4954076 am: 4aa84137f0 am: a73e533986
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991970

Change-Id: Ia36255c49f4323125ac37b812b28a87091c8cd79
2022-03-04 03:03:17 +00:00
Treehugger Robot
4aa84137f0 Merge "Add additional logs for bootanimation" am: 51a4954076
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1991970

Change-Id: Ie8d99a45040925a1e9957dcf4ac1dfbcf65d9752
2022-03-04 02:29:48 +00:00
Treehugger Robot
51a4954076 Merge "Add additional logs for bootanimation" 2022-03-03 20:08:23 +00:00
Yoshiaki Maruoka
9ef19b85cb Add additional logs for bootanimation
The information will be printed
 - Message if no animation file
 - File name when it's loaded
 - Image name and path, loop information when playing
 - Play time at the end

Bug: 220161782
Test: Manual, check logcat with and without bootanimation.zip
Change-Id: I0e16bdeb4456a423649a27f7ae88f256e3fa3d19
2022-03-03 07:40:43 +00:00
TreeHugger Robot
c66198eec4 Merge "Forward svc bluetooth to "cmd bluetooth"" into tm-dev 2022-03-01 16:18:52 +00:00