Commit Graph

640958 Commits

Author SHA1 Message Date
Jing Ji
d5c7dc045b Merge "Kill process if it's cached & idle and in forced-app-standby mode" into sc-dev 2021-05-09 00:23:05 +00:00
Treehugger Robot
919348e6e2 Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b am: 259c28e935 am: 074175209a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927

Change-Id: Ib101cbb3f574780d6f34592340e9b67d493c3654
2021-05-08 23:08:19 +00:00
Treehugger Robot
4cc4892b29 [automerger skipped] Merge "DO NOT MERGE - Merge RQ2A.210505.003." am: d943c45349 am: 2b5630f86c -s ours am: b351365a44 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7e6d75cfaf22f5addfeb41afdc9d943646a5be3b
2021-05-08 23:07:40 +00:00
Xin Li
46d6bdda48 [automerger skipped] DO NOT MERGE - Merge RQ2A.210505.003. am: 4ba43d5b0b am: 8fdc05d89c -s ours am: b5eb7582ad -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic1516bf6842dbe30750adb720ce82ef69cf9bd24
2021-05-08 23:07:26 +00:00
Treehugger Robot
074175209a Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b am: 259c28e935
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927

Change-Id: Ic618bb85e0f8be9468fa1158b9f9e62682b9932d
2021-05-08 22:46:04 +00:00
Treehugger Robot
b351365a44 [automerger skipped] Merge "DO NOT MERGE - Merge RQ2A.210505.003." am: d943c45349 am: 2b5630f86c -s ours
am skip reason: Merged-In Ia6bd5658b77a26ab15fea013ec875050457473e0 with SHA-1 ed2ff0f5da is already in history

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

Change-Id: I61b8200fac87aed2c5b0d8406dde315ea7846dd4
2021-05-08 22:45:25 +00:00
Xin Li
b5eb7582ad [automerger skipped] DO NOT MERGE - Merge RQ2A.210505.003. am: 4ba43d5b0b am: 8fdc05d89c -s ours
am skip reason: Merged-In Ia6bd5658b77a26ab15fea013ec875050457473e0 with SHA-1 ed2ff0f5da is already in history

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

Change-Id: I76681ea55fcc2d9806f0ad87162a4b96abf419a3
2021-05-08 22:45:12 +00:00
Treehugger Robot
259c28e935 Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927

Change-Id: I9ff6584ab6cb32baa30d2bd6ec59a83eeec70d75
2021-05-08 22:06:34 +00:00
Treehugger Robot
2b5630f86c Merge "DO NOT MERGE - Merge RQ2A.210505.003." am: d943c45349
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700314

Change-Id: I9177512ca93ed708eab7674c69238fb32627348e
2021-05-08 22:03:18 +00:00
Xin Li
8fdc05d89c DO NOT MERGE - Merge RQ2A.210505.003. am: 4ba43d5b0b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700314

Change-Id: Ib9103480b9d089c3374ae2adc0ea36a7b664554d
2021-05-08 22:00:40 +00:00
Treehugger Robot
3736d7ac1b Merge "Call apexd's API to allocate space before install non-AB package" 2021-05-08 21:44:57 +00:00
Treehugger Robot
d943c45349 Merge "DO NOT MERGE - Merge RQ2A.210505.003." 2021-05-08 21:38:02 +00:00
TreeHugger Robot
6f7a5b8eb0 Merge "Avoid sysfs name clashes." into sc-dev 2021-05-08 21:11:13 +00:00
Jing Ji
a575e65fdb Merge "Fix issue with acquiring singleton content provider from another user" into sc-dev 2021-05-08 20:21:29 +00:00
TreeHugger Robot
0bc505c093 Merge "Move mForceDeniedNapps check into synchronized block" into sc-dev 2021-05-08 19:59:13 +00:00
Hai Zhang
9c9b661253 Revert "Revert "Only update default home when the preferred home activity is modified.""
To avoid the race condition when other preferred activities are being
configured while home role is being set.

This reverts commit d30570e29a.

Reason for revert: Resubmission after fix
Bug: 178191941
Test: presubmit
Change-Id: Ib9777aba92462eec1d7c595833a86cfeddc02c1b
2021-05-08 18:27:20 +00:00
Baligh Uddin
7e7c76c8a8 Merge "Revert "Only update default home when the preferred home activity is modified."" into sc-dev 2021-05-08 16:30:38 +00:00
Yu-Han Yang
83a305a089 Merge "Revert "Remove dynamic location settings footer"" into sc-dev 2021-05-08 15:58:10 +00:00
Yu-Han Yang
7b1f58ce2d Revert "Remove dynamic location settings footer"
Revert "Remove dynamic location settings footer"

Revert submission 13809184-location_footer

Reason for revert: b/187211885

Reverted Changes:
Iaf14044e0:Remove dynamic location settings footer
Ifa6468b11:Remove dynamic location settings footer
If3ab49241:Remove dynamic location settings footer

Bug: 187211885

Change-Id: Ib53c42b3583fd93c87d21feb9882f3431b133d40
2021-05-08 15:57:26 +00:00
Hai Zhang
d30570e29a Revert "Only update default home when the preferred home activity is modified."
This reverts commit cac5c6812a.

Reason for revert: Broke build
Bug: 178191941

Change-Id: Idd8d4e3421fe2f9df1165974359fc2f4294a9725
2021-05-08 14:40:01 +00:00
Alex Buynytskyy
e76e1ef510 Avoid sysfs name clashes.
Bug: 187437944
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest ApkVerityInstallTest
Change-Id: Idc8cb4d170b0bfd98ee3a10bdf57439801739757
2021-05-08 14:10:33 +00:00
Soonil Nagarkar
93f7083eab Merge "Fix NPE in LocationProviderManager" into sc-dev 2021-05-08 12:26:25 +00:00
Xin Li
4ba43d5b0b DO NOT MERGE - Merge RQ2A.210505.003.
Bug: 187544653
Merged-In: If9e34a0120121ed851b911c8a8bd2bbe0e0f9e34
Merged-In: Ia6bd5658b77a26ab15fea013ec875050457473e0
Change-Id: I2e22d2bdd2c54eb3489fe82f2601ded2af16bd5c
2021-05-08 08:39:19 +00:00
Edgar Wang
7948cf883c Merge "Update MainSwitchBar to Material Next style." into sc-dev 2021-05-08 07:30:06 +00:00
Edgar Wang
673add4d48 Merge "Considering to mainline moudle to move some resource to v31" into sc-dev 2021-05-08 07:29:37 +00:00
TreeHugger Robot
bfdcaaf25d Merge "Only update default home when the preferred home activity is modified." into sc-dev 2021-05-08 07:19:25 +00:00
Nader Jawad
bc341860f0 Updated HWUI to calculate the stretch bounds for a surface
Added logic to StretchEffect to be able to calculate the
stretched position of a pixel on an input texture based
on the current stretch parameters.

Updated shader to leverage linear easing instead of
cubic in order to have a reversible method that
can be used to map input textures to the corresponding
stretch position.

Bug: 179047472
Test: manual

Change-Id: Id32afcf0df1cca03e68ac0c594d307a1090264f2
2021-05-07 22:45:26 -07:00
Joe Huang
027bb813be Add additional doc for SatellitePvt
Bug: 183239007
Test: atest CtsLocationPrivilegedTestCases
Change-Id: I30a0ff67c2523ab08505c2761594b64f48c23a21
2021-05-08 04:51:52 +00:00
Jing Ji
fa42613b96 Fix the argument list to logcat from am instrument
Bug: 186570682
Test: am instrument
Change-Id: I3290022c865ca16150c3392657f1fe9d31834fc5
2021-05-07 21:11:24 -07:00
yawanng
c34748cf2c Fix the path of boot image profile and preloaded classes for frameworks.
They should locate under "boot" instead of "build/boot"

Bug: 186455808
Test: m
Change-Id: Ibde3edcb17135aec35aa7956d233768818d14178
2021-05-08 03:59:54 +00:00
Anthony Hugh
815fda395d Use correct UserId when checking for lock state
Update API to include userId rather than using the default Context
userId.

Fixes: 187344132
Test: Toggling muted mic works

Change-Id: I2771117d97f89e961a6fb9949d28f0edbb4b5591
2021-05-07 20:35:49 -07:00
Vova Sharaienko
42cda4953c AMS: added caching DataInputStream object
DataInputStream is cached for the lmkd socket communication
Since the LmkdConnection ByteBuffer is allocated once,
no need to dynamically allocate DataInputStream,
just do a reset() before using

Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I9b65d82618654d59236c79be8cd8da66bc90c91c
2021-05-08 02:36:25 +00:00
Rahul Sabnis
6f92ae94ab Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the
device is bonding, we either broadcast cached UUIDs or wait for SDP to
be performed after the device is bonded.

Tag: #feature
Bug: 187157597
Test: Manual
Change-Id: I1bd694195c4e974b7cd72f81848a6343b45c98fd
2021-05-07 19:13:25 -07:00
Dmitri Plotnikov
00b667a64e BatteryStatsViewer UI improvements:
1. DEVICE and ALL_APPS are now combined in one screen
2. Totals are displayed at the top
3. Column headers are shown conditionally
4. New icon for totals
5. Swipe-to-refresh

Bug: 187370721
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryConsumerPickerActivity

Change-Id: Ic250fe54b3fe3c54ff461218f126fc83f9921fd9
2021-05-07 18:33:42 -07:00
Vova Sharaienko
26df817b7c ActivityManagerService: reroute lmkd atoms logging
- Added support to subscribe for a lmkd LMK_ASYNC_EVENT_STAT event
- Added processing LMK_KILL_OCCURRED and LMK_STATE_CHANGED packets
  with logging to statsd
- Added statsd auto-generated code wrapping the statsd logging

Bug: 184698933
Test: lmkd_unit_test - test check_for_oom tests lmkd message send to AMS
Test: statsd_testdrive 51 54 to inspect statsd logged atoms data
Change-Id: I69ef1a9daa5532244a15665bff06d0ad6b370869
2021-05-08 01:00:08 +00:00
Bo Liu
4d0f1f1cce Ignore blocked-on-sf time for ADPF
Subtract out time spent blocked in dequeueBuffer. Also subtract out any
time UI spents waiting on render thread while render thread is blocked
dequeueBuffer, though this calculation is fairly crude.

Test: Checked bouncyball returns reasonable-ish numbers even when HWUI
      is ahead of surface flinger
Bug: 187556381
Change-Id: I368c446d93990ff8b7b645e30509405ba799c79c
2021-05-08 00:54:41 +00:00
Ned Burns
d11e30df2c Add injectable version of Assert.isMainThread()
Introduces:
Execution.assertIsMainThread()
Execution.isMainThread()

Which can be injected and manipulated during tests

Bug: 186481467
Test: atest
Change-Id: Iba1cee95946452e3f74e55865d2a7fee2089798d
2021-05-07 20:41:03 -04:00
Ned Burns
687043b78e Break circular dependency in NotificationEntryManager
The NEM has a dependency on the ranker that it really shouldn't have
(because the ranker has a dependency on things that might want to have a
dependency on the NEM). This makes it a lazy dependency for now -- this
should be a field that gets set on the NEM eventually.

Bug: 186481467
Test: atest
Change-Id: Ic5192c787ad367fadfc1e43eb529f7663ab81d77
2021-05-07 20:40:49 -04:00
Makoto Onuki
306ed287f4 Send a broadcast when an app is granted SCHEDULE_EXACT_ALARM
Bug: 187206399
Test: atest AlarmManagerServiceTest
Test: Manual test with a test app.
- Grant the permission to test app and make sure it can start FGS.
Log:
```
05-07 10:12:08.671  1000  1579  9475 I ActivityManager: Background started FGS: Allowed [callingPackage: com.google.omakoto.testapp; callingUid: 10294; uidState: RCVR; intent: Intent { act=fgs cmp=com.google.omakoto.testapp/.MyFgs }; code:(unknown:207); tempAllowListReason:<broadcast:1000:android.app.action.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED,reason:,reasonCode:(unknown:207),duration:10000,callingUid:1000>; targetSdkVersion:30; callerTargetSdkVersion:30; startForegroundCount:0]
```
- Grant the permission to a different app and make sure the test app
  won't receive the broadcast.

Test: CTS -- Incoming

Change-Id: Iefe3e12dcf51318d8433532ba3048caa69b1edcd
2021-05-07 17:34:12 -07:00
Benedict Wong
1d9c19a635 Add additional logging to improve debugability of VcnManagementService
Test: atest FrameworksVcnTests
Change-Id: I23af20ea655e11934f6ac679c1bfc0943d5a148f
2021-05-07 17:18:21 -07:00
Shashwat Razdan
0408e507b6 Merge "Resurrecting sessions when AiAi is bound for the first time" into sc-dev 2021-05-08 00:06:42 +00:00
TreeHugger Robot
a32a8bb74f [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: d0ca1ef6d4 -s ours am: 46f671f7a3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1a5b646b24ef57d5ca0436ce09f59eb7b8a5d145
2021-05-07 23:46:00 +00:00
TreeHugger Robot
e5c7f2c24d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 9145d1b503 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I80ee91089980968f1e7f97d15d403c9d582460ad
2021-05-07 23:44:48 +00:00
Tyler Gunn
78a59ff70b Add hidden extra for communicating whether D2D is available
Test: Added unit test
Bug: 163085177
Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
2021-05-07 16:41:19 -07:00
James.cf Lin
cf451204eb Add carrier config for the SIP 486 request forbidden and add API for SHELL command to remove the UCE requests cannot be sent the network status.
Bug: 186131340
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: Id3a97fc975764754d6b610478c17a501f65aa229
2021-05-08 07:33:03 +08:00
TreeHugger Robot
9145d1b503 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-05-07 23:29:19 +00:00
TreeHugger Robot
46f671f7a3 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: d0ca1ef6d4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I80cdc3d4b5e901532b0f59409c0180a4c0d4f77e
2021-05-07 23:26:44 +00:00
TreeHugger Robot
d0ca1ef6d4 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-05-07 23:11:06 +00:00
Salini Venate
d7282448a6 [DO NOT MERGE] Handle landscape and portrait display for PIP rotation
Both landscape or portrait display screen scenarios
should be handled when logicalWidth and LogicalHeight
are updated during the rotation of a pip activity

Bug: 185196174
Signed-off-by: Salini Venate <salini.venate@intel.com>
Signed-off-by: Swee Yee Fonn <swee.yee.fonn@intel.com>
Change-Id: Ic0dffb059f1a430ae5b08d91f1fa0d7b585c25ef
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackInBoundsAfterRotation
2021-05-07 23:06:17 +00:00
Aurimas Liutikas
b8ca1157ab Fix incompatibilities with Kotlin 1.5.0
Test: make
Change-Id: I9bc49c759d0b2527b6419f5d711e394402a7e781
2021-05-07 23:00:23 +00:00