Commit Graph

626331 Commits

Author SHA1 Message Date
James O'Leary
bbfe962fff Fix crash when number of pixels < max colors
If extraction is run on a set of pixels whose count is less than the
number of max colors, then colors.length < max colors, and accesses
to colors[index] inside the for loop throw an ArrayOutOfBoundsException.

Test: add widget to home screen, reduce size of widget to small area.
observe crash. `mp core services` with fix, observe that crash no longer
occurs. `mp core services` again without fix, verify crash occurs after
boot.
Fixes: 181130209

Change-Id: I60bf1ab39f7a69f2fb0745049fd46d2f0b53a12c
2021-03-03 10:46:16 -05:00
TreeHugger Robot
f98091f2e1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-02-27 16:47:34 +00:00
Jeff DeCew
1c05dbcd2b Merge "Fixes Copyright date & incorrect a11y announcement" into sc-dev 2021-02-27 16:37:30 +00:00
Julia Reynolds
5db5a6ae40 Merge "Adds an NLS api for telling the OS what notifs types they bridge" into sc-dev 2021-02-27 15:34:34 +00:00
Bill Yi
a7d6179c19 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6ed49146882593db8b8982a5e34e92efaf5e9ebb
2021-02-27 06:02:56 -08:00
Kyunglyul Hyun
b8407d691c Merge "[Media ML] Let MCS manage MediaSession2" into sc-dev 2021-02-27 06:43:58 +00:00
TreeHugger Robot
7d4e773f18 Merge changes from topic "presubmit-am-eaa6dc71b50c4c6fa8ae3801f2e77aeb" into sc-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: b27f4465bd
  Import translations. DO NOT MERGE ANYWHERE
2021-02-27 04:53:13 +00:00
Chris Li
dfb9bb76fe Merge "Don't launch orientation-matching unresizable apps in freeform" into sc-dev 2021-02-27 04:23:57 +00:00
Bill Yi
b584adbfeb [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: b27f4465bd
Blank merge reason: commit message contains skip directive

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

Change-Id: Idd1e889bb641c22bbcac955ea750c2fde3c4e827
2021-02-27 03:23:25 +00:00
Bill Yi
b27f4465bd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0b1f11a3ab06fa02a087cb9f8d9186a702e8df74
2021-02-27 03:23:04 +00:00
Jeff DeCew
6cd5cb738d Merge changes I57fb542a,If2a13daf into sc-dev
* changes:
  Fix the vertical positioning of the text in collapsed notifications.
  Increase the notification height to 88dp
2021-02-27 03:08:17 +00:00
Soonil Nagarkar
be0734de31 Merge "Assorted minor cleanups" into sc-dev 2021-02-27 01:14:41 +00:00
Hui Wang
043304fc1d Merge "Support telephoy command to set test mode for RCS single registration" into sc-dev 2021-02-27 00:04:51 +00:00
Hui Wang
4c207117c0 Merge "Notify rcs config as needed when RCS service ready" into sc-dev 2021-02-27 00:04:51 +00:00
Nate Myren
066f1bce6e Merge "Show usage by default speech recognizer" into sc-dev 2021-02-26 23:51:30 +00:00
Shuo Qian
8b8f2625db Merge changes from topic "cp-rvc-aosp" into sc-dev
* changes:
  [automerged blank] Add Emergency callback mode shell command 2p: b201f9b1e6
  Add Emergency callback mode shell command
2021-02-26 22:56:18 +00:00
TreeHugger Robot
3512bdfde4 Merge "Add @IntRange() to audio encoding capability apis" into sc-dev 2021-02-26 22:39:53 +00:00
Paul Hobbs
8aee32530e Merge "Revert "setTemporaryAppWhitelistDuration(long duration) is depre..."" into sc-dev 2021-02-26 22:34:14 +00:00
Soonil Nagarkar
fd1b2d1bf0 Merge "Use listener for AntennaInfo" into sc-dev 2021-02-26 22:19:40 +00:00
Hai Zhang
9793a67875 Merge "Fix permission state missing when backup is restored." into sc-dev 2021-02-26 21:59:42 +00:00
Kevin Chyn
e9e5607415 Merge changes Ib61c9a4f,I308cd691 into sc-dev
* changes:
  Inflate a new UdfpsView for each new operation
  Add defaults to fix fake UDFPS
2021-02-26 21:35:12 +00:00
Paul Hobbs
13bcd99f34 Revert "setTemporaryAppWhitelistDuration(long duration) is depre..."
Revert "Specify temp-allowlist reasonCode."

Revert submission 13705302-setTemporaryAppWhitelistDuration(long duration)

Reason for revert: This CL breaks com.android.server.pm.test.verify.domain.DomainVerificationProxyTest. It was submitted via a bad TreeHugger bypass.

Reverted Changes:
I705b97e33:setTemporaryAppWhitelistDuration(long duration) is...
Ide879bafb:Specify temp-allowlist reasonCode.

Change-Id: I13f90beaaff484e4abdcc61bb026685bd0cb16f2
2021-02-26 21:18:50 +00:00
Jeff DeCew
726294ff05 Fixes Copyright date & incorrect a11y announcement
Fixes: 180118819
Test: Manual
Change-Id: I8a89ece2db075ceb33861109d1634442a670233e
2021-02-26 15:49:16 -05:00
Fabian Kozynski
8760b38f80 Merge "Dismantle remove labels prototype" into sc-dev 2021-02-26 20:47:59 +00:00
Antonio Kantek
22d3fb687f Merge "Hiding back AudioAttributes#usageToString(int)" into sc-dev 2021-02-26 20:43:52 +00:00
Winson Chung
243f0d1f48 Merge "Compute nearest frames after layout" into sc-dev 2021-02-26 19:59:33 +00:00
Ying Xu
288c04525d Merge "Use the NetworkCallback to determine the default network" into sc-dev 2021-02-26 19:55:13 +00:00
Ying Xu
b370a661b7 Merge "Define wrapper classes for WiFi and Mobile indicators" into sc-dev 2021-02-26 19:54:52 +00:00
Salud Lemus
c8fa14edae Merge "Update keyguard screen text for a financed device" into sc-dev 2021-02-26 19:44:41 +00:00
Chris Li
cc8370b542 Merge "Attach immersive confirmation window to the immersive activity root" into sc-dev 2021-02-26 19:30:21 +00:00
Pinyao Ting
f11257a6db Merge "Shortcut integration with AppSearch (Part 1)" into sc-dev 2021-02-26 19:25:30 +00:00
Nate Myren
4ee433cc90 Show usage by default speech recognizer
Test: manual
Fixes: 181067845
Change-Id: I9be50bf4bbafcedbc1c52adc0780b9821c865c8d
2021-02-26 11:22:58 -08:00
Jeff DeCew
19864ec962 Fix the vertical positioning of the text in collapsed notifications.
Test: manual / visual
Bug: 181048615
Change-Id: I57fb542a776b254a6537dbed608259e69def411f
2021-02-26 14:19:00 -05:00
Jeff DeCew
072848e163 Increase the notification height to 88dp
Test: manual
Bug: 181048615
Change-Id: If2a13daf2b4b583102ec0a1d1f3df8b9f17b41dd
2021-02-26 14:18:59 -05:00
Jeff DeCew
8ceb0f52d1 Merge "Hide the snooze button from various notifications." into sc-dev 2021-02-26 19:17:38 +00:00
Meng Wang
b06c496db7 Merge "Rename KEY_AES_URL_STRING" into sc-dev 2021-02-26 19:06:21 +00:00
TreeHugger Robot
ce601122fa Merge "Block instant apps before domain verification filtering" into sc-dev 2021-02-26 19:01:37 +00:00
Daniel Bright
e32074d80f Merge "Merge "Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"" am: cc318221a5 am: 9c4102e2a1" into sc-dev 2021-02-26 19:00:37 +00:00
Hui Yu
2683542500 Merge "setTemporaryAppWhitelistDuration(long duration) is deprecated." into sc-dev 2021-02-26 18:55:37 +00:00
Brad Ebinger
c9fa77a9a6 Merge "Add a new Config to map PIDF service-description to IMS Feature Tags" into sc-dev 2021-02-26 18:52:55 +00:00
Fabian Kozynski
e377f441e0 Dismantle remove labels prototype
Test: manual
Bug: 171319433
Change-Id: I1ea97cec5c0d9b559213ca2adb9ddf7af60229a6
2021-02-26 13:50:43 -05:00
Hai Zhang
416a04e4c6 Fix permission state missing when backup is restored.
The BackupAgent of an application may run before package post
installation, so the permission state must be ready by then. So
instead of calling onPackageInstalled() in post install, we can revert
to calling it in updateSettingsInternalLI() as in R (before
ag/13144022 which introduced the regression).

This changes the grant permissions etc to be done before package
post-installation, but this might be actually a correct change as
application code may expect permissions, and we are already doing it
like this in installExistingPackageAsUser() so this change is making
it consistent.

Fixes: 175932103
Test: manual
Test: Wipe and restore a backup and ensure Keep is no longer crashing.
Test: presubmit
Change-Id: Ie2e0dbd7a1a8454f9935527b9c303c26010ff592
2021-02-26 10:44:10 -08:00
Leon Scroggins
9d65c12580 Merge "Add comments regarding FILTER_BITMAP_FLAG" into sc-dev 2021-02-26 18:39:51 +00:00
Shuo Qian
42b7f2b3e5 Merge "Companion InCallService API review" into sc-dev 2021-02-26 18:35:52 +00:00
Winson
cb5517f329 Update domain verification Settings API
Adjusts the logic for selecting a domain, removing the selection for
other applications once a domain is verified or overridden by another
application being selected.

To this end, exposes a new Domain class with verified/selected booleans
to encapsulate the state, returned in the initial response for the
Settings screen API. This avoids the usage of the
getDomainVerificationSet API, so that can be restricted to only the
domain verification agent in a future change.

Also introduces the concept of a DomainOwner, which represents a single
package who has been granted any positive level of approval to open
a domain.

Bug: 177923646

CTS-Coverage-Bug: 179382047

Test: atest com.android.server.pm.verify.domain
Test: TODO with Settings changes

Change-Id: Ib14049e397154616f84a2264167ac30659cd81c9
2021-02-26 18:11:26 +00:00
Winson Chiu
ad07b85125 Merge "Send domains through Parcel#writeBlob to avoid size limit" into sc-dev 2021-02-26 18:11:03 +00:00
Evan Severson
768cddd98e Merge changes from topics "remove_bg_mic_cam_public", "remove_role_exempt" into sc-dev
* changes:
  Remove role exempt flag
  Remove background microphone and camera from public api
2021-02-26 18:09:50 +00:00
Hui Yu
edc573f0ac Merge "Specify temp-allowlist reasonCode while calling setPendingIntentAllowlistDuration()." into sc-dev 2021-02-26 18:07:47 +00:00
Winson
f4afcc8a10 Block instant apps before domain verification filtering
Because domain verification itself filters instant apps, and isn't
aware of the allow instant apps toggle that PackageManagerService
holds onto, PMS should filter the set of ResolveInfo candidates before
DomainVerificationService gets them.

This way it can avoid resolving to an instant app that would later be
blocked and thus fail resolution entirely.

Bug: 180628950

Test: manual, see steps in bug

Change-Id: I37ba986bfafd26f6633ff1b6e355a76b4c92552c
2021-02-26 18:07:05 +00:00
Daniel Bright
25c1b9b848 Merge "Revert^2 "Add CAPABILITY_ALLOWED_NETWORK_TYPES_USED"" am: cc318221a5 am: 9c4102e2a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606546

MUST ONLY BE SUBMITTED BY AUTOMERGER

Bug: 181335996
Change-Id: Ib29e39622ec998bc911cdd5ec220692c7b6f5ea0
(cherry picked from commit b50587319e)
2021-02-26 17:50:28 +00:00