Commit Graph

640958 Commits

Author SHA1 Message Date
Zhen Zhang
433d3bfe69 Update logging of the USER_LEVEL_HIBERNATION_STATE_CHANGED atom
Update the atom logging as the time_in_last_state_millis field is being
removed.

Bug: 187224817
Test: atest AppHibernationServiceTest
Test: atest CtsStatsdAtomHostTestCases:AppHibernationStatsTest
Test: run statsd_testdrive 370. Run the hibernation job from cmd and see
correct pushed data

Change-Id: I53fa09b8dd822c158db983544500566cc0127837
2021-05-07 15:52:22 -07:00
Baligh Uddin
77adbea4e4 [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev am: c560d404a0 -s ours am: 0316c8a07d -s ours am: 7e3b81d5cd -s ours
am skip reason: Merged-In I38139a95761f70ad6a523888cdda2076ce65aa30 with SHA-1 f08bd224bb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406612

Change-Id: I0ae83c99e76ab21728fc4b3941672b15e655d681
2021-05-07 22:46:25 +00:00
Baligh Uddin
73b9e9710c [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-qpr-dev am: fd2df8ef61 -s ours am: 1d2d9b118e -s ours
am skip reason: Merged-In I31f2b4512164bb043d78d503f4f38accedc49f8d with SHA-1 7ec2a29f78 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406614

Change-Id: Ibf9f78fec9e1dba484b7d70268ea94bf304e0ea9
2021-05-07 22:45:38 +00:00
Baligh Uddin
c8bc3d8f74 [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev am: c560d404a0 -s ours am: 5a5cba8407 -s ours
am skip reason: Merged-In I38139a95761f70ad6a523888cdda2076ce65aa30 with SHA-1 f08bd224bb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406612

Change-Id: Ic8340f86d9a533e11112ade1e50d4f7c76f52791
2021-05-07 22:43:54 +00:00
Fabian Kozynski
6765c1d932 Merge "Add rounded corners to customizer decoration" into sc-dev 2021-05-07 22:34:02 +00:00
Tim Murray
b42d33ec7b BackgroundDexOptService: defer post-boot job further
Delay the post-boot dexopt job to avoid mmap_sem contention caused by
mapping dex files.

Test: boot, dexopt starts later
Bug: 161866124
(cherry pick from commit 0977880865)

Merged-In: Iaceb2b7c34c7b923778a8a603d7b9666ea9a20c4
Change-Id: Iaceb2b7c34c7b923778a8a603d7b9666ea9a20c4
2021-05-07 15:31:14 -07:00
Calin Juravle
f4a6ba88b3 Enforce system/root/shell for dexopt operation.
Dexopt acquires system level locks (e.g. installd locks) so it should
not be called by artbitrary apps via `adb shell` commands.

Test: manual
Bug: 180652564
Change-Id: I385d5346df7721d95edf40c45d06b969870e4bda
2021-05-07 15:31:09 -07:00
Baligh Uddin
5a5cba8407 [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev am: c560d404a0 -s ours
am skip reason: Merged-In I38139a95761f70ad6a523888cdda2076ce65aa30 with SHA-1 f08bd224bb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406612

Change-Id: Idd9781d76bff77e9e47a15019f2e229047d9ebf4
2021-05-07 22:28:20 +00:00
Baligh Uddin
7e3b81d5cd [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev am: c560d404a0 -s ours am: 0316c8a07d -s ours
am skip reason: Merged-In I38139a95761f70ad6a523888cdda2076ce65aa30 with SHA-1 f08bd224bb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406612

Change-Id: I4746105a532cea01de6e83a4994c00c104337c83
2021-05-07 22:28:01 +00:00
Baligh Uddin
1d2d9b118e [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-qpr-dev am: fd2df8ef61 -s ours
am skip reason: Merged-In I31f2b4512164bb043d78d503f4f38accedc49f8d with SHA-1 7ec2a29f78 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406614

Change-Id: I24eed3e77e1b6d59f43b6779588b0c397a3f42bc
2021-05-07 22:26:47 +00:00
Baligh Uddin
0316c8a07d [automerger skipped] Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev am: c560d404a0 -s ours
am skip reason: Merged-In I38139a95761f70ad6a523888cdda2076ce65aa30 with SHA-1 f08bd224bb is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14406612

Change-Id: I98439d6452985e35a8c48b1f34e094b7be20d9bb
2021-05-07 22:26:40 +00:00
Baligh Uddin
c560d404a0 Merge "Migrate apex/permission to packages/modules/Permission" into rvc-dev 2021-05-07 22:16:55 +00:00
Baligh Uddin
fd2df8ef61 Merge "Migrate apex/permission to packages/modules/Permission" into rvc-qpr-dev 2021-05-07 22:14:50 +00:00
Adam He
b9cdc84c87 Add android: to text constant to prevent namespace conflicts.
Fixes: 187219011
Test: atest CtsTranslationTestCases
Change-Id: I980156c8653581aa5020afaa5bcb97e909d291df
2021-05-07 15:14:30 -07:00
Bill Yi
84dccc72e0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-07 22:11:41 +00:00
Rob Carr
84c2f5bf21 Merge "SyncRtSurfaceTransactionApplier: Improve thread safety" into sc-dev 2021-05-07 22:11:00 +00:00
Benedict Wong
0c1a3b9db2 Apply transform to FWD policy if configured to provide tethering
This change allows the VCN to trigger the application of IpSecTransforms
as in the FWD path, ensuring that tethering works across interfaces

Bug: 185495453
Test: atest FrameworksVcnTests
Test: manual testing with cross-device tethering
Change-Id: I90fc77226ca971dbd8ac549b96a4828da1079cd5
2021-05-07 15:09:42 -07:00
Benedict Wong
7f5a2fe728 Add internal support for IPsec forward policies
This change adds support for IPsec forward policies, which are necessary
for packets to be allowed to be forwarded to another interface, as is
the case with tethering. This is necessary and useful only within the
system server, and as such is not exposed as a public API.

This change is safe, since the addition of a FWD policy on IPsec tunnel
interfaces will by default block forwarded traffic (as would be the case
without this patch). In the event that the (system) owner of the tunnel
requires support for forwarded packets (eg tethering), this patch allows
application of transforms in the FWD direction as well.

This will be used to ensure that the VCN can be used as the underlying
network for the purposes of tethering.

Bug: 185495453
Test: atest IpSecServiceTest
Test: atest IpSecServiceParameterizedTest
Test: manual testing with tethering over VCN
Change-Id: I74ecea71f1954029f6fbdbe34598c82e0aac386b
2021-05-07 15:09:42 -07:00
Jing Ji
6cf25139a0 Kill process if it's cached & idle and in forced-app-standby mode
This behavior could be turned OFF via the flag kill_fas_cached_idle
in device_config.

Bug: 152573287
Test: atest FrameworksServicesTests:ActivityManagerTest
Test: atest FrameworksMockingServicesTests:AppStateTrackerTest
Change-Id: Ifa6950582fbf6a24595b36163810f3c7e9345394
2021-05-07 14:27:30 -07:00
TreeHugger Robot
969f4ec61b Merge "Change default temp allowlist duration for BOOT_COMPLETED broadcast to 20 seconds." into sc-dev 2021-05-07 21:27:17 +00:00
Hongwei Wang
bec1c53ed9 Pass the float9 values in PictureInPictureSurfaceTransaction
For auto enter PiP from landscape when no source rect hint is specified,
we should actually use the skew instead scale values to set the matrix
transform.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dpLVOQzIVjdJpn5kg7T4Fc
Bug: 179720719
Test: manual use ApiDemos app, see video
Change-Id: Ic7072e8354329584f9cb75876911c3d58d78e7f5
2021-05-07 14:26:43 -07:00
Tim Barron
6e797a5de7 Merge "Call persistToDisk after indexing VisibilityDoc" into sc-dev 2021-05-07 21:25:29 +00:00
Tim Barron
b10fd7d064 Call persistToDisk after indexing VisibilityDoc
In ag/13985751 [e62a4eb007fc0266be6955c837d188a204c11cc2], we added calls to persist LITE after each mutation api
call. However, VisibilityStore also creates a mutation in Icing lib - it
indexes a single VisibilityDoc. We should also call persist LITE after
this so that we can be sure not to lose the VisibilityDoc.

Bug: 180127220
Test: None

Change-Id: Ib8465a3b2f4adb8f4dc4308c3845fcc501f36c0b
2021-05-07 21:24:56 +00:00
TreeHugger Robot
14449b8794 Merge "Add NO_FOCUS_CHANGE flag to MotionEvent" into sc-dev 2021-05-07 20:54:30 +00:00
Dave Mankoff
047161d25c Add more utitlities to ThreadFactory.
Add the ability to create Handlers in TheadFactory, as well
as the ability to create Executors from Handlers.

Use these in ScreenDecorations. Also, use the executor rather than
then handler in ScreenDecorations where possible.

Bug: 177323724
Test: atest SystemUITests
Change-Id: Icaedbfe3dc89f5bbc00c780533cb46279c2d2088
2021-05-07 16:45:46 -04:00
Selim Cinek
f2267af049 Fixed an issue where the qs position was wrong while bypassing
The header wasn't translated at all in the default state, but
only when pulse expanding. Changing it to also be translated
by default fixes this.

Fixes: 187316916
Test: use bypass, observe no clipping
Change-Id: Ic20d717affa0a16f69480e472795e9cef2c692f3
2021-05-07 22:37:20 +02:00
Anthony Stange
8800ba65c8 Move mForceDeniedNapps check into synchronized block
This fixes a race condition that existed when using the test command
that allows force denying access to a nanoapp. This race condition
occurred when updateNanoAppAuthState was called immediately following
the force denial command invocation which meant that it was waiting on
the lock to be released after the force denial went through and was
using stale mForceDeniedNapps which caused the authorization to be
granted again.

Fixes: 187437820
Test: atest PtsChreTestCases
Change-Id: I39fc05abc95f3d7fe0c929ddce9b212f729506c5
2021-05-07 20:33:04 +00:00
Songchun Fan
72de027815 Merge "[SettingsProvider] better debug messages for invalid write arguments" into sc-dev 2021-05-07 20:20:16 +00:00
Jeff DeCew
4a312a8afb Merge "Do not hide the header of a HUN." into sc-dev 2021-05-07 20:14:33 +00:00
TreeHugger Robot
3582d5cb2d Merge "Fixed AudioMixingRule usage of AudioAttribute#getUsage" into sc-dev 2021-05-07 20:06:35 +00:00
Zhangrui Zhang
cee3c552b8 AudioSystem: update framework channel capabilities
Anticipate more than 8 channels (such as 7.1.4) on
future devices, but keep at 8 for now.

Test: atest AudioTrackTest#testImmersiveStreaming
Test: same test by manually adjusting to 24 channels.
Bug: 127896072
Bug: 187062102
Change-Id: I72c2ff0faa7794f22deaeb794920afb65788f40b
2021-05-07 13:06:18 -07:00
Adlai Holler
108be5bcfa Always use Skia reduceOpsTaskSplitting
This feature was previously limited to high-end devices, but now that
there is a fallback when VRAM is limited, it will be enabled globally.

After the feature is rolled out to all major Skia clients, it will be
the only way things work.

Bug: 183612348
Change-Id: Ia99ec154b498ab9315ec5f5285241fde8136c4ab
2021-05-07 20:05:56 +00:00
TreeHugger Robot
7b526955cd Merge "Update fontchain_linter.py to be compatible with Compat font" into sc-dev 2021-05-07 20:00:38 +00:00
Beth Thibodeau
47f282905e Merge "Improve power menu animation" into sc-dev 2021-05-07 19:58:52 +00:00
Peter Kalauskas
bef91bdc2e Remove char limit for new user dialog message
Bug: 186889731
Test: manual test && atest EditUserInfoControllerTest
Change-Id: Ib640e9e9b997620758e8051bf3900f4d3bbe104e
2021-05-07 19:19:33 +00:00
Treehugger Robot
4f2e331f25 Merge "Add platform-systemserverclasspath." am: 61f27d7d52 am: 0fd596fddd am: b26407bef8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665367

Change-Id: I8c19ef7991636512b920f40d75678ad77113f61b
2021-05-07 19:13:59 +00:00
Brad Ebinger
500397d3e8 Add the REGISTRATION_TECH_NR Tech type
Adds the new NR registration technology for devices
that support IMS over NR so that the APIs can report
this technology.

Bug: 179724463
Test: atest CtsTelephonyTestCases
Merged-In: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
Change-Id: I4b0f9882dcf36e2ff7151778cbadb8e83513df5a
2021-05-07 19:08:37 +00:00
Oli Lan
f67f9b539e Merge "Amend wording of clipboard access notification." into sc-dev 2021-05-07 19:06:30 +00:00
Jeff DeCew
4b419f08d5 Merge "Remove use of androidprv to work around a bug in sysyui studio build" into sc-dev 2021-05-07 18:56:03 +00:00
Robert Carr
e9ea91f47d SyncRtSurfaceTransactionApplier: Improve thread safety
If the calling thread releases the SurfaceControl passed
to SyncRtSurfaceTransactionApplier concurrently with the
applier preparing the transaction, this can lead to a
synchronization error and a crash. Once the state is
inside the transaction no further synchronization is required
as the native transaction will hold its own sp<SurfaceControl>
reference. By constructing the Transaction on the calling thread
and deferring application to the RenderThread we enable the calling
thread to not have any release synchronization requirements with
RenderThread.

Bug: 186391509
Change-Id: I585e1a9d3baf9ea384b00408b6253f34487d5037
2021-05-07 18:53:00 +00:00
Treehugger Robot
b26407bef8 Merge "Add platform-systemserverclasspath." am: 61f27d7d52 am: 0fd596fddd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665367

Change-Id: I25b9583313dedf268733fd6b22536cd000b0504c
2021-05-07 18:49:22 +00:00
Jing Ji
eaa7835d03 Fix issue with acquiring singleton content provider from another user
The content provider host app could be living in a different user from
the client app's expectation when it's singleton, this could result in
client app ignores notification of the start of the content provider
because of the discrepancy of user id. Now remember the original
expected user id so client app can clearly know whether the incoming
notification of the start of a content provider is what it expects or
not.

Bug: 181789697
Test: atest CtsContentTestCases:android.content.cts
Test: atest FrameworksCoreTests:android.content
Test: Manual - steps in b/181789697#comment1
Change-Id: Ic909620059e1f989a5e7c8cf3ede2b8d63814a96
2021-05-07 11:44:34 -07:00
Hyunyoung Song
c8478e5a9d All Apps Search API council feedback (second round)
Bug: 186756959
Test: atest CtsSearchUiServiceTestCases
Change-Id: I0c83d79ede8801f71c89e71cc6ec2c73b2d8bfcd
2021-05-07 11:41:43 -07:00
Treehugger Robot
0fd596fddd Merge "Add platform-systemserverclasspath." am: 61f27d7d52
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665367

Change-Id: Ie9a3878a9945b04b07c44b3970384dc96411abd4
2021-05-07 18:41:00 +00:00
yinxu
dfdff144ae Don't refresh the Tile if the airplane mode is not changed
Bug: 187336225
Test: Manual tests
Change-Id: I1e01387871b3c436952e1ec364b0e13fc6a37c3b
2021-05-07 11:37:44 -07:00
Matt Pietal
bf934d2201 Smartspace - Next alarm
Support next alarm appearing next to DnD. If weather is showing, show
inline, otherwise below the smartspace content. Next alarm will not
fade out but DnD will.

Fixes: 185678563
Test: atest KeyguardZenAlarmViewControllerTest

Change-Id: I21e95470d0013bfb6900c1c228dda69f5707c9e6
2021-05-07 14:35:34 -04:00
Treehugger Robot
61f27d7d52 Merge "Add platform-systemserverclasspath." 2021-05-07 18:34:52 +00:00
Julia Reynolds
910dff6136 Allow NLS metadata fields to use name strings
Instead of just numbers

Test: atest, CTS Verifier
Fixes: 181175697
Change-Id: I677d1cfa47bb55a94b3c153453447477c66f99bd
2021-05-07 14:32:44 -04:00
Jeff DeCew
b3727dccba Do not hide the header of a HUN.
With our headerless notifications, this ends up being very jarring, because you always show the entire headerless notification, but when tapping expand the icon and expander disappear.

Fixes: 182011099
Test: expand a HUN
Change-Id: I2bfdd1b7740af5e65cb7007b1e2afc0d7e27cce2
2021-05-07 14:30:04 -04:00
Evan Laird
cfa1f3d130 Merge "Privacy chip (3/many)" into sc-dev 2021-05-07 18:15:11 +00:00