Commit Graph

640958 Commits

Author SHA1 Message Date
Bill Yi
294962b242 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ieadf8b68c2d0753777980f4c2e39c74b2ff3f950
2021-05-04 20:31:30 -07:00
lucaslin
f00993373c Update PrivateDnsMode from StringDef to IntDef
Update PrivateDnsMode from StringDef to IntDef because IntDef is
the normal way of representing multiple choices in public API.
Also update other related files.

Bug: 185311744
Test: 1. make update-api
      2. atest FrameworksNetTests CtsNetTestCases CtsNetTestCasesLatestSdk
      3. atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I23e7ec140066979726d769cabc5f7057bb2167e6
Merged-In: I23e7ec140066979726d769cabc5f7057bb2167e6
    (Cherry-picked from ag/14227609)
2021-05-05 03:19:51 +00:00
Lucy Chang
4bdb297c10 Merge "Clarify javadoc for ACTION_LONG_CLICK" into sc-dev 2021-05-05 03:17:36 +00:00
paulhu
549f152bf5 Add missed break
Bug: none
Test: atest FrameworksNetTests
Change-Id: I8e8d0223de50c75732b06b053b3e60ccf4ef1684
2021-05-05 11:04:59 +08:00
Nader Jawad
603d612707 Merge "Update hole punch logic in HWUI" into sc-dev 2021-05-05 02:59:18 +00:00
Suprabh Shukla
a94c55f2f4 Merge changes Ia8c656a0,I01f98255 into sc-dev
* changes:
  Change device-idle alarm fuzzing
  Hold wakeup alarms for as long as possible
2021-05-05 02:45:38 +00:00
Suprabh Shukla
faa2caf0ee Change device-idle alarm fuzzing
- Removing fuzz in the absence of an alarm clock alarm.
- Adding a minimum duration that the alarm should be fuzzed before an
alarm clock - currently 2 minutes.
- The maximum fuzz is now a linear function of futurity of the alarm
with the maximum capped at 15 minutes.
- If the futurity is less than the minimum fuzz, the alarm goes off
immediately, bringing the device out of idle.

Also, fixing a bug with re-evaluating alarm deliverability in doze and
battery saver.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm

Bug: 170279979
Bug: 166693547
Change-Id: Ia8c656a0336cc0b72f0b3901de96d4aa440186d4
2021-05-04 19:37:40 -07:00
Suprabh Shukla
74b85211fa Hold wakeup alarms for as long as possible
If the screen is off, but the CPU is awake and epoll_wait returns for a
non-wakeup alarm, sending any wakeup alarm within its eligibility window
would cause all the held non-wakeup alarms to also fire, which could:
1. Elongate the length of the time the CPU is awake.
2. Cause apps to wake up and perform work.

This change defers sending any wakeup alarm as long as it is possible to
defer all such eligible alarms to later.

Also, fixed a bug in sorting after adding multiple alarms to the store.

Test: atest CtsAlarmManagerTestCases
atest FrameworksMockingServicesTests:com.android.server.alarm

Bug: 161497385
Change-Id: I01f98255091baddf4e7529f88733776e27d090d7
2021-05-04 19:37:40 -07:00
Adam He
20e9693c3e Merge "Remove logging of translation requests/responses/chat related views." into sc-dev 2021-05-05 01:26:30 +00:00
James Lin
f4cd390e06 Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" am: d8ea14e052 am: 3381ad7c79 am: 09608dc5ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695312

Change-Id: I2e2a9fa4f23ebc22909ae9833d1f9fc19f6ce013
2021-05-05 00:37:35 +00:00
Kweku Adams
ed82890fa7 Fix QuotaController dump.
1. Remove extra space before "EJ" in the timer dump.
2. Actually print out the list of system installers. SparseSetArray
   doesn't have toString() implemented.

Bug: 141645789
Bug: 141495777
Test: adb shell dumpsys jobscheduler
Change-Id: Ia6e88b0b1177dc585fcca4a29d658b5a9370b60b
2021-05-04 17:32:08 -07:00
James Lin
09608dc5ce Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" am: d8ea14e052 am: 3381ad7c79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695312

Change-Id: Ie3cd2987122b9fde47264f03d31baad5b10fe0da
2021-05-05 00:18:45 +00:00
Seigo Nonaka
2e9e792e6e Update fontchain_linter.py to be compatible with Compat font
Bug: 186700756
Test: m fontchain_lint
Change-Id: Ibfe33f29f3db998fdc0db1bbf35851841ca73d9a
2021-05-04 17:12:35 -07:00
Songchun Fan
e749b4b2c4 Merge "[incremental] report new metrics from Incremental Service" into sc-dev 2021-05-05 00:09:59 +00:00
Cody Kesting
5b021003ac Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
This CL updates VcnManagementService to set the NOT_VCN_MANAGED bit for
Networks that are not VCN-managed. This ensures that Networks correctly
regain the NOT_VCN_MANAGED bit after leaving a VCN.

Bug:
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: I01ffdde246e602296673675add58c47c92b15994
2021-05-04 17:01:25 -07:00
Baligh Uddin
39c0f802e8 [automerger skipped] Merge "Remove annotations that have been relocated" am: 7a622ea7eb -s ours am: 1ae88c4be8 -s ours am: 7bb2ad33e4 -s ours
am skip reason: Merged-In I024252070bd806d50d54377190fdc5cd5b4445e1 with SHA-1 bda79da64b is already in history

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

Change-Id: Ife16dc0e3aab96e7bb2237e90b198dd06c95e9cd
2021-05-04 23:55:37 +00:00
James Lin
3381ad7c79 Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" am: d8ea14e052
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1695312

Change-Id: Ia0f23adf26625b84051159583c25632ee470fc9f
2021-05-04 23:54:03 +00:00
Lucas Dupin
534b1ea38f Merge "Add shade 10 to system palette" into sc-dev 2021-05-04 23:43:29 +00:00
Louis Chang
ba6bf9dad3 Merge "Remove WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY" into sc-dev 2021-05-04 23:42:51 +00:00
Nate Myren
5957b1d682 Update chip view when PrivacyItems update
If the user beings using a new privacy item while the chip is showing,
display the new item on the chip

Fixes: 187219110
Test: go to camera, start playing video while the chip is showing. It
should update to show the mic icon

Change-Id: I4e98375c70cb25e110824901e8738eab83564b3c
2021-05-04 16:41:54 -07:00
Jeffrey Huang
dd4f6314cc Fix InvalidProtoWireException
The NPE here would catch in the outer try-catch causing the end object
token to not be written by ProtoOutputStream

Bug: 187098431
Test: atest IncidentdTest#testIncidentReportDumpLocal
Change-Id: I65fb92c077e246aaf2ae902b545fea38dd667e25
2021-05-04 16:32:39 -07:00
Baligh Uddin
7bb2ad33e4 [automerger skipped] Merge "Remove annotations that have been relocated" am: 7a622ea7eb -s ours am: 1ae88c4be8 -s ours
am skip reason: Merged-In I024252070bd806d50d54377190fdc5cd5b4445e1 with SHA-1 bda79da64b is already in history

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

Change-Id: Ic68caa5e4f99ad6af4d1c3a7a936c1d36c2ffac0
2021-05-04 23:29:17 +00:00
James Lin
d8ea14e052 Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" 2021-05-04 23:17:45 +00:00
Baligh Uddin
1ae88c4be8 [automerger skipped] Merge "Remove annotations that have been relocated" am: 7a622ea7eb -s ours
am skip reason: Merged-In I024252070bd806d50d54377190fdc5cd5b4445e1 with SHA-1 bda79da64b is already in history

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

Change-Id: I1ba5e702bf3e8be192a29098b18dc3d165144194
2021-05-04 23:06:57 +00:00
Kweku Adams
0ec65b00b6 Merge "Fix EJ syncs." into sc-dev 2021-05-04 23:05:21 +00:00
Cody Kesting
2225648d47 Notify policy listeners when VCN subIds change.
This CL updates VcnManagementService to notify policy listeners
when the subIds for any VCN instances change. This is necessary to
ensure that NetworkFactories properly update their Networks in the
event that a Network comes up under an existing VCN are properly
marked as VCN-managed.

Bug: 187112989
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: Iecab1226119c8fd876131c381647267f18339db2
2021-05-04 15:57:32 -07:00
Baligh Uddin
6e367d8a19 [automerger skipped] Merge "Remove annotations that have been relocated" into stage-aosp-master am: 91852757e3 -s ours am: affd693c7d -s ours
am skip reason: Merged-In Ic0ec9c3c12571b3405c1b7668528f5c50d083896 with SHA-1 1176cad7f2 is already in history

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

Change-Id: If9138d77c0bad64ab833ee11829878292bb7b5b7
2021-05-04 22:56:12 +00:00
Ryan Mitchell
ea15d442b2 Merge "Fix uninitialized macro reference member" into sc-dev 2021-05-04 22:49:07 +00:00
Lee Shombert
646ce7eea2 Merge changes Iccf02e4d,Ibc931dab,Iba80142b into sc-dev
* changes:
  Watch ComponentResolver
  Thread WatchedIntentFilter in PackageManagerService
  WatchedIntentResolver now uses WatchedIntentFilter
2021-05-04 22:46:21 +00:00
Ryan Mitchell
fdb7c57dd1 Do not throw new incremental not found exceptions
For incremental hardening, our primary focus is to ensure the system
does not crash. Rather than throw new exceptions when querying from
incrementally installed packages we should return null values and not
subvert API expectations by throwing exceptions in places that
normally cannot fail.

This may cause UI issues when an app loads the resources of a
different, incrementally installed package. We can introduce new APIs
to allow system apps to determine when a package not being fully
present would cause issues on a case-by-case basis.

We will be able to tell from logcat and bugreports where the failed
read occurred in the resources.arsc.

Bug: 169167078
Test: builds
Change-Id: Idfd9ad11b64fc9e8dce9d0fa7ab9b6e4f6083d41
2021-05-04 22:44:23 +00:00
Andy Hung
b3b3a741d5 SoundPool: Update documentation for sound duration
Test: make docs and view
Bug: 147408160
Change-Id: I8952dd7da2ab8e493415e93f10f2346af3de2bd1
2021-05-04 15:36:40 -07:00
Baligh Uddin
affd693c7d [automerger skipped] Merge "Remove annotations that have been relocated" into stage-aosp-master am: 91852757e3 -s ours
am skip reason: Merged-In Ic0ec9c3c12571b3405c1b7668528f5c50d083896 with SHA-1 1176cad7f2 is already in history

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

Change-Id: I900da93daed7ebe7afa78d6da10f756a69134b0d
2021-05-04 22:32:20 +00:00
Stevie Kideckel
691ff96db6 Save/restore view states when reapplying RemoteViews for color changes
This ensures that adapters have their caches filles and other benefits
such as lists maintaining their scroll positions

Bug: 183503469
Test: validated with local app that service is not called on drag for
colors changing and that flicker is removed

Change-Id: I043d1d7a547b012f7a12eb555b35854a9bb7109b
2021-05-04 23:18:45 +01:00
Baligh Uddin
91852757e3 Merge "Remove annotations that have been relocated" into stage-aosp-master 2021-05-04 22:14:35 +00:00
Songchun Fan
0dc7772746 [incremental] report new metrics from Incremental Service
BUG: 184844615
Test: atest service.incremental_test
Change-Id: Ibbfe68851a4adfd620db9652f1fda550a3c6fb2c
2021-05-04 15:14:34 -07:00
Baligh Uddin
7a622ea7eb Merge "Remove annotations that have been relocated" 2021-05-04 22:11:41 +00:00
Lyn Han
52e5dd7fc8 Merge "Fix stack overflow from setOwnScrollY" into sc-dev 2021-05-04 21:56:28 +00:00
Lyn Han
61b39c06df Merge "Appear notifications at min height instead of 0 height" into sc-dev 2021-05-04 21:54:41 +00:00
Baligh Uddin
83d4508a12 [automerger skipped] Merge "Remove annotations that have been relocated" into rvc-qpr-dev-plus-aosp am: e6269baabb -s ours
am skip reason: Merged-In Ie6d4938961f7725cc141dd1a43f69a906b913f24 with SHA-1 3f0c3db187 is already in history

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

Change-Id: Ibedbb9179bc14446f2efcbf19a5d39c3efb41847
2021-05-04 21:46:16 +00:00
Kweku Adams
d23ce9610b Fix EJ syncs.
1. Only downgrade an EJ that doesn't have the IGNORE_BACKOFF extra when
   we are actually attempting to back off the job.
2. Allow EJs to have the FLAG_EXEMPT_FROM_APP_STANDBY flag since that
   can only be set by the system and won't cause issues.

Also propagate the scheduleEjAsRegularJob bit through the job extras to
help with debugging.

Bug: 178852366
Test: atest ContentResolverTest (all)
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest CtsSyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncManagerTest
Test: atest SyncRequestTest
Change-Id: I133d089a4d770a3cc37df72f8b38d234b24077df
2021-05-04 14:37:02 -07:00
Antonio Kantek
adcf065398 Deleting frameworks/base/tests/ActivityViewTest
This CL is part of the effort of removing ActivityView.

Test: m frameworks/base/tests
Bug: 179161778
Change-Id: I613107bbdde17b0d1cd2bb920d35953198a3195d
2021-05-04 14:32:21 -07:00
Baligh Uddin
e6269baabb Merge "Remove annotations that have been relocated" into rvc-qpr-dev-plus-aosp 2021-05-04 21:30:44 +00:00
Dave Mankoff
fc1ea085d5 Prevent NPE on ExpandableNotificationRow.
An NPE could happen, related to falsing, if the very
first gesture to happen is a tap on an ExpandableNotificationRow.

Fixes: 187196123
Test: atest SystemUITests
Change-Id: I8a82fc4d85ba5676a6c198a0b6ddb67009c8ad8e
2021-05-04 17:06:05 -04:00
Bill Yi
5f1fac6a58 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-04 21:03:00 +00:00
Todd Kennedy
d8fe801f9b Merge "Add debugging to diagnose failure" into sc-dev 2021-05-04 20:53:04 +00:00
Baligh Uddin
82df05f9a6 Merge "Remove annotations that have been relocated" into sc-dev 2021-05-04 20:28:32 +00:00
Alexander Dorokhine
2ee7641af7 Refactor how AppSearchResult and AppSearchBatchResult are parcelled.
Mainline modules seem to be metalava'd differently, causing the CREATOR,
describeContents(), and other parcelling methods to become part of the
public API.

Additionally, AppSearchResult and AppSearchBatchResult were forked from
Jetpack with parcelling added, and manually maintained.

Additionally, the parcelling wouldn't work properly if the keys and
values are not themselves parcelable, but this was not clearly
documented or called out.

This CL fixes these problems by creating parcelable wrappers around the
upstream Jetpack AppSearchResult and AppSearchBatchResult, usable only
when they contain parcelable keys and values.

Bug: 146218515
Test: Presubmit
Change-Id: I828a22dc6dae3e46f5d167f1a9d12627ba15d9fd
2021-05-04 13:24:47 -07:00
Henrik Baard
ebe03fcb4b Cancel NotificationTimeout alarms when canceling notification
If alarms with long timeouts are created, there is a risk of a
crash in system_server because of alarm creation limit is reached:

java.lang.IllegalStateException: Maximum limit of concurrent alarms 500
reached for uid: 1000, callingPackage: android

To avoid this cancel alarms if Notifications are canceled.

Suggested-by: Snild Dolkow <snild@sony.com>

Bug: 186456631
Change-Id: I63343b9450fc817ec6a2f46329de346320463c46
2021-05-04 22:18:04 +02:00
Christopher Tate
2de948bbee Don't defer FGS notification if it's already shown
Bug: 185523487
Test: atest CtsAppTestCases:android.app.cts.ServiceTest#testForegroundService_deferredExistingNotification
Change-Id: I081a3cc8862caf4d53dbd46be1b8b1d4e626ebc0
2021-05-04 13:16:10 -07:00
Mady Mellor
ae6e4330be Merge "Add the priority person highlight back to bubbles badge" into sc-dev 2021-05-04 20:10:55 +00:00