Commit Graph

767044 Commits

Author SHA1 Message Date
Jeff Sharkey
793ebebfe1 Merge "Add OWNERs for the android.app.ForegroundService*" 2022-11-07 22:53:59 +00:00
Christopher Ferris
6a62b29a8b Merge "Fix error message being cut off." 2022-11-07 22:47:48 +00:00
Jing Ji
78e6de07b0 Add OWNERs for the android.app.ForegroundService*
Test: m
Change-Id: If7acf753b3bd9cbe2a6f07518e4a88ef552c379d
2022-11-07 14:16:05 -08:00
Dmitry Dementyev
a8438682f7 Merge "Toast: Fix the concurrency problem of mAuthenticator" 2022-11-07 18:41:02 +00:00
Treehugger Robot
927a9ea7b9 Merge "Use Guava built from source in tools." 2022-11-07 17:42:07 +00:00
Treehugger Robot
1bd897f545 Merge "Remove permissions team from PermissionEnforcer OWNERS" 2022-11-07 15:14:46 +00:00
Treehugger Robot
6c88b0d188 Merge "remove obsolete apf properties from platform" 2022-11-07 13:31:29 +00:00
Chiachang Wang
ee9ad341e7 Merge "Add dump for Vpn" 2022-11-07 01:51:48 +00:00
Krzysztof Kosiński
7bd76c43c6 Use Guava built from source in tools.
Bug: 244341573
Test: presubmit
Change-Id: I401a191b414185a299ca1f28372770ff424171c4
2022-11-04 21:40:30 +00:00
Vova Sharaienko
dc7b608720 Merge "ExpressLog integration for JobScheduler" 2022-11-04 19:49:42 +00:00
Eran Messeri
edce19fef7 Merge "Keystore: EC_CURVE tag added import agruments" 2022-11-04 15:59:42 +00:00
Treehugger Robot
47050bb8b6 Merge "Unify binder txn trace name" 2022-11-04 15:31:23 +00:00
Treehugger Robot
72b0ad5427 Merge "Amend typo and code clean up for V2 signature and PackageManagerShellCommand" 2022-11-04 12:46:04 +00:00
Maciej Żenczykowski
100cd7a598 remove obsolete apf properties from platform
Bug: 257393783
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: If288ae56a937c332474531601e9ede303489327b
2022-11-04 08:31:52 +00:00
Treehugger Robot
89bda313ab Merge "Sort running task by focus and visibility" 2022-11-04 05:13:58 +00:00
Christopher Ferris
7fe5182312 Fix error message being cut off.
The current char msg is not large enough for the error message.
Change to a std::string to avoid this problem completely.

Test: Ran atest FrameworksServicesTests on oriole_hwasan-userdebug
Test: verifying entire error message present.
Change-Id: I663bcbafd96572151395a9054b09764dc8e05b51
2022-11-04 01:37:05 +00:00
Vova Sharaienko
194d719fa4 ExpressLog integration for JobScheduler
- logging counter for deadline jobs

Bug: 247803110
Test: build & statsd_testdrive
Change-Id: I9637554ae80454e60aac9e7b14e391250a6ed980
2022-11-03 20:02:48 +00:00
Jiakai Zhang
b754daeace Merge "Read odsign metrics from a file and write to statsd." 2022-11-03 18:32:48 +00:00
Vova Sharaienko
42bf7a986d Merge "[TeX] Introduced Telemetry Express Logging APIs" 2022-11-03 17:57:04 +00:00
Treehugger Robot
80ceccc4ac Merge "OMS: do not hide reason for failing transactions (on non-user builds)" 2022-11-03 17:09:11 +00:00
Treehugger Robot
abab751a70 Merge "Fix headings to be correct Markdown." 2022-11-03 17:04:33 +00:00
Daniel Peykov
228fabcbee Merge "Rely on Display#getRealSize when dumping XML hierarchy" 2022-11-03 16:20:17 +00:00
Dario Freni
820ee3fede Fix headings to be correct Markdown.
Test: n/a
Change-Id: I726d68eb74e83bda1341bd1e6afe79abe0ac8862
2022-11-03 15:40:58 +00:00
Shen Lin
53e9982584 Amend typo and code clean up for V2 signature and PackageManagerShellCommand
Test: mtest
Change-Id: I43c62a9388637b5da21098f82f99d5199514e3ff
2022-11-03 22:44:11 +08:00
Treehugger Robot
78b6cfbe4d Merge "Fix VPN retry timer mechanism" 2022-11-03 12:35:12 +00:00
chiachangwang
a967fb8038 Add dump for Vpn
Adding additional logging and dump information to help VPN debug.

Sample dump result(adb shell dumpsys vpn_management)

VPNs:
  0: com.vpn.test
    Active package name: com.vpn.test
    Active vpn type: 2
    NetworkCapabilities: [ Transports: VPN Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED TransportInfo: <VpnTransportInfo{type=2, sessionId=null}> Uids: <{0-99999}> OwnerUid: 10106 AdminUids: [10106] UnderlyingNetworks: [107]]
    Token: 8876c2c4-df5f-46b8-82c7-8f124178254a
    MOBIKE enabled
    mUnderlyNetworkChanges (most recent first):
      2022-10-31T17:42:31.039068 - Switch to 107
      2022-10-31T17:42:29.510574 - Agent connect. Switch to 105
      2022-10-31T17:41:57.590691 - Agent connect. Switch to 103
      2022-10-31T17:41:31.269923 - Switch to 103
      2022-10-31T17:41:20.145050 - Switch to 102
      2022-10-31T17:41:14.480618 - Agent connect. Switch to 100
    mVpnManagerEvent (most recent first):
      2022-10-31T17:42:11.641201 - Event class=ERROR_CLASS_RECOVERABLE, err=ERROR_CODE_NETWORK_LOST for com.vpn.test on session 8876c2c4-df5f-46b8-82c7-8f124178254a
      2022-10-31T17:41:34.921219 - com.vpn.test stopped

Test: atest FrameworksNetTests
Test: adb shell dumpsys vpn_management
Bug: 238696406
Change-Id: I05b66ddb4a2b7a73707db39c6b89bf497aed1266
2022-11-03 11:10:43 +00:00
Jiakai Zhang
ea86c680a5 Read odsign metrics from a file and write to statsd.
Bug: 257028435
Test: adb shell cmd stats print-stats | grep 548
Change-Id: I3f53e999d5dbfaeda3f5571432302df84fad46cf
2022-11-03 10:24:20 +00:00
Mårten Kongstad
5a3163d2eb OMS: do not hide reason for failing transactions (on non-user builds)
To improve security, the reason why an overlay transaction failed is
hidden from the caller unless OverlayManagerService.DEBUG is set to
true.

Tweak the logic to not hide the reason on userdebug and eng builds: this
will make it easier to debug tests that fail in CI while keeping the
code secure on user builds.

Test: manual: make executeAllRequests throw, test via `adb shell cmd overlay enable`, check error message
Change-Id: I1c35b9b24a01ea30a50398df9f250ad4e43c0686
Merged-In: I1c35b9b24a01ea30a50398df9f250ad4e43c0686
2022-11-03 10:02:54 +01:00
Bowen Li
76df3f4574 Sort running task by focus and visibility
Currently the order of visible tasks we get is opposite to that in the
system.

This CL is to ensure that the visible focused task is on top, visible
tasks below, then invisible tasks. And keep the order within the
acquired focus, visible and invisible tasks groups consistent with
the system instead of sort by lastActiveTime.

If there are multiple DisplayContents, getTasks method will return:
[{VisibleFocusTask for DisplayTop, VisibleFocusTask for DisplayBottom},
{VisbleTask0...n1 for DisplayTop, VisbleTask0...n2 for DisplayBottom},
{InvisbleTask0...n3 for DisplayTop, InvisbleTask0...n4 for DisplayBottom}]
in the same result List.

Bug: 255255158

Signed-off-by: Bowen Li <libowen1@xiaomi.corp-partner.google.com>
Merged-In: I7f7d5e72fbf73988b58c23f8a11dff05dbc1b3f1
Change-Id: I7f7d5e72fbf73988b58c23f8a11dff05dbc1b3f1
2022-11-03 15:40:50 +08:00
Treehugger Robot
79605eb994 Merge "Fix some syntax errors in javadoc" 2022-11-03 06:47:52 +00:00
minjie.pan
3818806981 Fix some syntax errors in javadoc
No documentation found when without '#'.

Test: manual

Change-Id: I116fa04a7a90d4de60bd2c1b78c8dd72f3bfcf3c
2022-11-03 06:18:59 +00:00
Treehugger Robot
13b8faaaa1 Merge "Make sure view is laid out before calling createBitmap" 2022-11-03 02:11:29 +00:00
Hai Zhang
2ba6452ffc Remove permissions team from PermissionEnforcer OWNERS
Our team didn't implement and isn't intended to be the owner of this.

Change-Id: I7dd17d41c930fd3d1e5771e7779cb2e9927c9c43
Test: presubmit
2022-11-02 23:37:43 +00:00
Eric Biggers
00212f28bd Merge "Catch exceptions from prepareUserStorage() in loadPrivatePackagesInner()" 2022-11-02 23:11:47 +00:00
Thiébaud Weksteen
4f2bc9a73a Merge changes I72f810a7,I2bd23f62
* changes:
  Add OWNER entry for android.os.PermissionEnforcer
  Add PermissionEnforcer class
2022-11-02 23:03:07 +00:00
Jon Eckenrode
f74a4b312b Merge "Removed outdated link." 2022-11-02 22:59:53 +00:00
Treehugger Robot
ae3cd5f9e9 Merge "Revert "Revert "Compress .so files for PackageManager to reclaim the space""" 2022-11-02 21:32:15 +00:00
George Burgess
b3a175ac30 Merge "CursorWindow_test: fix leaks" 2022-11-02 21:09:37 +00:00
Daniel Peykov
afebeb7b43 Rely on Display#getRealSize when dumping XML hierarchy
* Previously, the height returned by Display#getSize was used to
  determine visible objects. Based on the API level and the presence of
  system decorations (e.g. notches), this can cause objects near the
  bottom of the screen to be considered out of bounds (i.e. only objects
  within y=0 and y=partial_height are considered even if the omitted
  decorations are at the top of the screen).

Bug: 193270758
Bug: 188156320
Bug: 27537269
Test: manual
Change-Id: Iba21245c947cec0d0054f6d86e3585ba73233223
2022-11-02 20:58:48 +00:00
Daniel Peykov
3b60cd3b94 Merge "Fix display size calculations in large screen (2/3)" 2022-11-02 20:53:18 +00:00
Jon Eckenrode
4b376be8df Removed outdated link.
Change-Id: I01db8876d591efad358957269e4e358282943e40
2022-11-02 20:36:35 +00:00
Vova Sharaienko
ff1ed5d78d [TeX] Introduced Telemetry Express Logging APIs
- provided Java Counter metric logging API

Bug: 247803110
Test: m
Change-Id: Ib154f8fda2c136a62f4a90fb2b14b816233d3b47
2022-11-02 20:22:03 +00:00
Yunfan Chen
6183509d5f 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
(cherry picked from commit d1e350c7fc)
Merged-In: I9223ef5552ddb081e75de1242670862f2813e56d
2022-11-02 17:55:27 +00:00
Daniel Peykov
b546f825e8 Merge "Add OWNERS file to cmds/uiautomator" 2022-11-02 17:29:58 +00:00
lucaslin
849bbda37d Fix VPN retry timer mechanism
This commit does:
- Skip the new retrying request when there is a pending retrying
  task. Otherwise, the mRetryCount will be increased unexpectedly
  before the current retrying task finishes its job.
- onChildOpened will call onSessionLost when MTU is invalid, and
  onChildOpened will be called after onIkeOpened, so if
  mRetryCount is reset in onIkeOpened, the mRetryCount will always
  start from 0.

Bug: 256776571
Test: atest FrameworksNetTests:VpnTest
      Manual test and check the log.
Change-Id: I396a3c279dc909f78c400cff1c31d77fe98cd7a6
2022-11-02 17:28:30 +00:00
Zim
762a8b305a Unify binder txn trace name
To match cpp aidl trace name for easier perfetto parsing

Test: Manual
Bug: 161393989
Change-Id: I21d788c8de27327bd3f64da2e8cf14e6fcf9d073
2022-11-02 10:33:45 +00:00
Hassan Ali
fbfc1da075 Merge "Set min_sdk_version to 29 in SampleRollbackApp." 2022-11-02 10:30:58 +00:00
Treehugger Robot
9dd239ec3b Merge "Include AM owners in AM test owners" 2022-11-02 09:47:54 +00:00
Treehugger Robot
b9c3e68a5d Merge "Only create clip bound object when RenderNode is not quick rejected" 2022-11-02 05:44:07 +00:00
Alex Buynytskyy
dc82976271 Revert "Revert "Compress .so files for PackageManager to reclaim the space""
This reverts commit ad0c6b5d8c.

Reason for revert: rolling forward the .so compression change. According to https://b.corp.google.com/issues/188859114#comment8, the underlying issue was fixed.

Bug: 254793035
Bug: 188859114
Fixes: 254793035
Fixes: 188859114

Change-Id: I4edc15d08527013206e3daf20c33ba29c87a01a2
Merged-In: I4edc15d08527013206e3daf20c33ba29c87a01a2
2022-11-02 02:30:17 +00:00