Commit Graph

767020 Commits

Author SHA1 Message Date
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
Treehugger Robot
78b6cfbe4d Merge "Fix VPN retry timer mechanism" 2022-11-03 12:35:12 +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
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
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
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
Shen Lin
2dd9562c55 Make sure view is laid out before calling createBitmap
This CL contains two fixes:

- Make sure view is laid out before calling createBitmap.

- Organize some field declarations.

Bug: 246412041

Test: manual
Change-Id: Icd5637086b3935afe89743472e68bbd3a6102222
2022-11-02 10:25:26 +08:00
Jerry Chang
05661cbbde Merge "Add sub owner to common/split and tests" 2022-11-02 00:36:11 +00:00
Pavel Labovich
9687a71214 Merge "Improve performance by resolving MediaCodec.BufferInfo members outside of the frequently called code (like dequeueOutputBuffer)" 2022-11-01 23:43:06 +00:00
Eric Biggers
415ed9afd6 Catch exceptions from prepareUserStorage() in loadPrivatePackagesInner()
There is a race condition where loadPrivatePackagesInner() can run after
the volume has already been unmounted, and even reformatted as a public
volume.  This race can be triggered by AdoptableHostTest in CTS.

Until the volume state change handling logic is fixed, it is necessary
to ignore the RuntimeException that sm.prepareUserStorage() can throw
after commit 9d2bb776ed (https://r.android.com/1959519).

Bug: 253711749
Bug: 253868095
Change-Id: I9985eb5e410a5a5ff41935c806370826c6e4117d
2022-11-01 22:40:56 +00:00
Zak Cohen
b69d632603 Merge "Update various corner radiuses to align with AOSP apps" 2022-11-01 22:16:42 +00:00
Jack Yu
3084175e53 Merge "Fixed permananent failure behaviors" 2022-11-01 17:53:16 +00:00
Lucas Lin
0cadebbc28 Merge "Dynamically calculate IKEv2/IPsec VPN MTU" 2022-11-01 16:23:25 +00:00
Jack Yu
f1d7bc6c2e Fixed permananent failure behaviors
1. Non-conditional based evaluations will no longer trigger
   setup data if the APN was marked as permanent failure earlier.
   Only environmental changes can result in data setup.
2. Permanent failure can be only applied to the failed APN. When
   this happens, frameworks retries the next non-permanent-failed
   APN.

Fix: 254752857
Fix: 249908875
Test: Manual (verified on JP carrier) + atest FrameworksTelephonyTests
     + Basic testing.
Merged-In: Ic43100635907153bce9631473c56f1edef187fc4
Change-Id: Ic43100635907153bce9631473c56f1edef187fc4
2022-11-01 09:12:42 -07:00
Robert Horvath
e1d3b5d01c Merge "Let DreamActivity handle all configuration changes" 2022-11-01 16:01:23 +00:00
Robert Horvath
998ef9a536 Let DreamActivity handle all configuration changes
On configuration changes such as screen orientation change,
activities are usually recreated to reload resources.
However, when DreamActivity is destroyed (also in the process
of activity recreation) the dream is dismissed.
To prevent this, DreamActivity was previously set to handle
orientation change without activity recreation, but orientation changes
often go along with screen size/layout changes, which still caused the
DreamActivity to be recreated.
This change lets DreamActivity handle all configuration changes without
recreation, similar to how Window-based dreams used to work.

Bug: 240892000
Merged-In: I345eb1d17ae88d893789dfcc160b4a9a664ba57f
Change-Id: I4fdf0fe5f0bcd28b9af5cbe55f20760a3719da9c
2022-11-01 14:22:30 +00:00
Gil Cukierman
6c70a328e5 Merge changes from topic "cukie-2genterprise-user-restriction"
* changes:
  Add TelephonyManager.ALLOWED_NETWORK_TYPES_REASON_USER_RESTRICTION
  Add DISALLOW_CELLULAR_2G As a New User Restriction
2022-11-01 13:51:58 +00:00
Treehugger Robot
0c35c51d71 Merge "Parcel: noop upon double recycle" 2022-11-01 10:15:54 +00:00
Jerry Chang
affabcaee0 Add sub owner to common/split and tests
Test: n/a
Bug: 207582920
Change-Id: I46cc309b2453296910c8516cffd2b5b352376b01
2022-11-01 10:13:52 +00:00
Pavel Labovich
e53421b3a6 Improve performance by resolving MediaCodec.BufferInfo members outside of the frequently called code (like dequeueOutputBuffer)
Change-Id: Ibec402eede944c98844799771b39e3a9140d21e2
2022-11-01 04:08:08 +00:00
Treehugger Robot
92e34479f2 Merge "Remove wtf if no display nits mapping exists" 2022-11-01 01:07:57 +00:00
Steven Moreland
2681cb2d92 Merge "Parcelable: getStability in system API" 2022-10-31 17:39:56 +00:00
Victor Hsieh
095c17d5b8 Merge changes Ie0408ecc,I80bbbd88
* changes:
  Add OWNERS for VerityUtilsTest.java
  Provide a method to verify a PKCS#7 signature
2022-10-31 16:05:31 +00:00
lucaslin
84672d5e62 Dynamically calculate IKEv2/IPsec VPN MTU
This change calculates the maximum possible MTU based on the underlying
network and proposed algorithms. If MTU drops below 1280, IPv6 is
disabled, per RFC2460.

In order to ensure that apps with UDP sockets on an IPv6 network are
reset when the IPv6 addresses/routes are removed, the network is
restarted (disconnected/reconnected) when the MTU first drops below
1280. If the VPN only supports IPv6, a VpnManager event is sent to the
provisioning app, and considered failed.

MTUs will only ever be lowered from the MTU provided by the provisioning
application, exclusively improving compatibility if the calculated MTU
is lower than the app-specified MTU. Similarly, MTUs of underlying
networks are gathered on a best-effort basis, using LinkProperties, or
actual Linux interface MTU if not populated in LinkProperties.

For stability & backwards compatibility, this change is ONLY applied for
IKEv2 VPNs.

Bug: 245612827
Test: atest FrameworksNetTests:VpnTest
      Manual test:
      - Test if IPv6 will be disabled when VPN's MTU is lower
        than 1280
      - Test if IPv6 only VPN will be restarted when its MTU
        is lower than 1280
Change-Id: Ic97c16f12229c5377923b031497190082319d035
2022-10-31 14:26:29 +00:00
Gil Cukierman
838637c660 Add TelephonyManager.ALLOWED_NETWORK_TYPES_REASON_USER_RESTRICTION
This reason is intended to be passed to TelephonyManager.setAllowedNetworkTypesForReason
when 2g is disabled by a user restriction.

Bug: 247522864
Test: Included in future commits
Change-Id: I617e629163cfb63235055a4e9a75b0c2d6629ad5
2022-10-31 13:31:15 +00:00
Gil Cukierman
a247dae4d4 Add DISALLOW_CELLULAR_2G As a New User Restriction
Bug: 247121216
Test: atest UserRestrictionsTest
Change-Id: I9be85ae7a9bfb3f287ea972bbaac35469e8d772b
2022-10-31 13:25:51 +00:00
Edward Savage-Jones
4ba3e68f51 Update various corner radiuses to align with AOSP apps
There is a mismatch between some of the UI components
in the AOSP apps, such as launcher3 (lpress shortcuts),
and some dialogs and such in SystemUI/Settings.

This corrects the mismatch.

Bug: 216182276
Test: See examples in bug
Change-Id: Ie3f6a74ef9d36d36d9ff6be956d37d030c64f12c
2022-10-31 10:01:10 +00:00
Treehugger Robot
4ee969e8ef Merge "Owners updates" 2022-10-31 08:46:52 +00:00