Commit Graph

640958 Commits

Author SHA1 Message Date
Jack Yu
98f5053d03 Merge "Revert "[ANAPIC Review] Change the type of List by ANAPIC review"" into sc-dev 2021-04-16 21:06:05 +00:00
Mark Renouf
c14734d865 Account for padding in dispatchScrollCaptureSearch
When dispatching to self, ViewGroup is  not applying padding
to localVisibleRect, only when dispatching to child views.

Also when deducting padding from the visible bounds,
it must be intersected with bounds, not subtracted.

Test: atest ViewGroupScrollCaptureTest
Bug: 185153400
Change-Id: Ib92e4c552fbe02fd863123f166878e19b8b1c952
2021-04-16 17:01:27 -04:00
Jack Yu
c94f691019 Revert "[ANAPIC Review] Change the type of List by ANAPIC review"
Revert "[ANAPIC Review] Modify radio 1.6 based on ANAPIC comment..."

Revert "[ANAPIC Review] Modify radio 1.6 in telephony side"

Revert submission 14098561-ANAPIC_1_6

Reason for revert: broke the builds
Reverted Changes:
Ibcbdc0cac:[ANAPIC Review] Change the type of List by ANAPIC ...
Ie8d40439e:[ANAPIC Review] Modify radio 1.6 in telephony side...
I24106cba4:[ANAPIC Review] Modify radio 1.6 based on ANAPIC c...
I71b0d0014:[ANAPIC Review] Modify radio 1.6 based on ANAPIC c...

Change-Id: I33ee563f99b56ed478656474dc24c030f35ebf44
2021-04-16 21:00:36 +00:00
Andy Wickham
aaef048c4b Merge "Removes System UI plugin for BC Smartspace." into sc-dev 2021-04-16 20:59:37 +00:00
Adam He
7ae022ade8 Merge "Add cancellationSignal to the Translator#translate() api." into sc-dev 2021-04-16 20:58:59 +00:00
Wale Ogunwale
b4ab288c81 Don't use WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY
Temp. solution to get the build going. This is okay as we need to remove
this option anyways since we are now using
WindowContainerTransaction#setLaunchRoot

Bug: 185192439
Test: manual
Change-Id: I5b7fa6c9ddb57b74af4b8e0862723e1f7c4e72bd
2021-04-16 13:57:58 -07:00
Bill Yi
7f5839d916 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3cd97aa24e6340b2a8c88a1360e90e7911ed4297
2021-04-16 20:44:05 +00:00
Fabian Kozynski
22c255d69c Update strings for privacy dialog
Test: manual and TB
Fixes: 184776891
Change-Id: I316ff5a26ef642b2d28e0c49ab3e1b59b9a8d05c
2021-04-16 20:33:26 +00:00
TreeHugger Robot
c6df2ba06a Merge "Indication area text running into wallet" into sc-dev 2021-04-16 20:01:53 +00:00
TreeHugger Robot
861446d2e7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-16 20:01:12 +00:00
Janis Danisevskis
8c97d4fe79 Fix operation auth bound keys.
CryptoObject still called the legacy AndroidKeystoreProvider which did
not return the correct operation handle for per operation auth bound
keys.

Bug: 184804041
Bug: 185181377
Test: CtsVerifier->Security->Biometric Tests->2a Strong Biometrics +
      Crypto
Merged-In: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
Change-Id: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
2021-04-16 12:55:33 -07:00
TreeHugger Robot
306ebb508f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-16 19:55:23 +00:00
Bill Yi
732437f3a5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47920fa7efc471010dc8a78d70bc6d5f1285dc1d
2021-04-16 19:43:32 +00:00
Jeff Sharkey
6eed56ddd3 More Bluetooth API annotation updates.
This change adds a "BluetoothPermissionChecker" that ensures that
all Bluetooth permission annotations are consistent.  In addition, it
verifies that all Bluetooth public APIs have been audited to be
permission protected where relevant.

We've currently standardized on saying that APIs that return device
or Bluetooth state information (without sharing details about any
particular remote Bluetooth device) do not need to be permission
protected.

This change is only annotations and has no behavior changes.

Bug: 183626724
Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true
Change-Id: Ie80b15b058359bf1e9a6ee881b89cb3e5b584ca1
2021-04-16 13:31:22 -06:00
Alex Buynytskyy
c863792d62 Check if idsig size is within IncFs limits.
Bug: 152148243
Fixes: 152148243
Test: pm install-incremental <apk in the bug>
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I33623a9240482ea36a8e1eeb97ec01294e7249ff
2021-04-16 12:28:41 -07:00
Song Hu
a12fc5162f Merge "Pass ScreenshotSmartActionType as a new parameter into ScreenshotNotificationSmartActionsProviderGoogle#getActions where it maps to InteractionType to differentiate Quick Share action from regular smart actions. SystemUI side change." into sc-dev 2021-04-16 19:28:02 +00:00
TreeHugger Robot
c595b18769 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-16 19:26:13 +00:00
Bill Yi
f7dc0bc328 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I48896599efc84fb5236448f999e20c88dd1387ea
2021-04-16 19:24:21 +00:00
Sarah Chin
d1430abd06 Set CDMA roaming/subscription mode throws ISE if not CDMA
Since the phone can switch to/from CDMA, returning when not CDMA could
cause issues later on. This essentially reverts ag/13862397 and updates
the documentation to call out more clearly when ISE is thrown.

Test: make
Fix: 175665470
Change-Id: Ie6ab0fd4b317d66a74a7c667a0ed6a54ee56c150
2021-04-16 12:10:06 -07:00
Matt Casey
74f9861490 Move RecyclerView scroll capture to the center
Avoid most floating content by centering the requested content within
the view instead of just scrolling so that it's visible.

Bug: 174571735
Test: atest RecyclerViewCaptureHelperTest, plus manual testing across
      major apps.
Change-Id: Ie275f5c37998a9d88e5ccde7af043443cbc4d94c
2021-04-16 15:01:45 -04:00
Erik Wolsheimer
e7df558396 Revert "Revert "Increase MAX_ATTRIBUTIONS to 10000""
This reverts commit ac9d5cd7ec.

Reason for revert: Fixed test

Change-Id: I01efe527b6e9c2adf3bec354faf9e9dde586cc17
2021-04-16 18:57:35 +00:00
Zhen Zhang
c8db0a505f Merge "Refactor isAppHibernationEnabled check in AppHibernationService" into sc-dev 2021-04-16 18:45:29 +00:00
Sarah Chin
eecdf254e9 Remove checks for system_process in TelephonyManager
Instead of throwing exceptions, return the default null/empty/void
behavior.

Test: atest TelephonyManagerTest
Fix: 175881713
Change-Id: Ia15c8183212bc67e74b45fc119b5ef9d4c295c94
2021-04-16 11:44:49 -07:00
Bill Yi
48fb879bad Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idada8d92e90f13e52a2722cd6119ee68cbe85ff2
2021-04-16 18:42:53 +00:00
Amy Zhang
0aa9d38e9d Merge "Force FilterClient to NOT reset the FMQ pointer when creating the MQ" into sc-dev 2021-04-16 18:41:31 +00:00
Winson Chiu
e78782b60b Merge "Enforce isSystem for app-link SysConfig" into sc-dev 2021-04-16 18:23:42 +00:00
Bill Yi
fcfcd6b5c3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I69b34b0b3753911e8fc9efb9fd96a95a661d0e85
2021-04-16 18:21:23 +00:00
Mohammad Samiul Islam
58cd8bc29e Prevent apk-in-apex from being registered under wrong apex
Without this fix, an apk-in-apex located in path
/apex/com.android.mediaprovider will be added as apk-in-apex
for com.android.media too, just because they have the same
prefix.

Added a info log too to make it easier to understand which apk-in-apex
is being registered under which apex.

Bug: 170640411
Test: Manual testing
Change-Id: Idc989ac84777589b4bdd72012833cdbdab7e872c
Merged-In: Idc989ac84777589b4bdd72012833cdbdab7e872c
(cherry picked from commit c45a426e8e)
2021-04-16 19:17:38 +01:00
Hongming Jin
0f4986c28f Merge "Restructure tracing code to prepare for the adding of filtering and searching features." into sc-dev 2021-04-16 17:57:27 +00:00
Jason Chang
3a77d720e9 Fix screen will flicker when swipe-down around NavigationBar to
trigger One-Handed mode many times quickly in a short time

To prevent entering or exiting OHM quilcky in a shot time.

Bug: 185304468
Test: manual
Test: atest WMShellUnitTests
Change-Id: Ibc5ade564da241d5871b3b037c97bd68a6b03a5d
2021-04-17 01:50:18 +08:00
Almaz Mingaleev
e2b7cb3df2 Merge "Add copy builder to TimeZoneCapabilities." into sc-dev 2021-04-16 17:45:54 +00:00
Pinyao Ting
38304db40b Merge "Various fixes in ShortcutService" into sc-dev 2021-04-16 17:45:31 +00:00
Bill Yi
c30f4b7712 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I662b3784aa18d8b6fe7337cfccaaa78e1eecad53
2021-04-16 17:42:59 +00:00
Dan Saadati
fddc1eb396 Update AppSearchManager to clarify features
Bug: 185595210
Change-Id: Idb2eae922bf208490f1c166a99bb8a1b0e05191c
2021-04-16 17:42:39 +00:00
Matt Casey
657b3c4f2f Hide LongScreenshotActivity title in dark theme.
Bug: 185590757
Test: Verify dark theme title gone.
Change-Id: Ia1a8e287c07512b926dd6681af9d7c27dc03d180
2021-04-16 13:38:28 -04:00
Yi Jiang
1e4d75a06b Fixes metrics collection in RRMS.
The current metrics collection in RRMS is incorrect. Here is the desired
behavior:

- Successfully got resolution: log the rotation result.
- Feature is disabled: log RESOLUTION_DISABLED.
- Remote service is not available: log RESOLUTION_UNAVAILABLE.
- Request timed out or no face detected: log ORIENTATION_UNKNOWN.
- All other failures: log RESOLTUION FAILURE.

Test: none.
Bug: 185512682
Change-Id: Iae94122840a3078a93b34e38fe15f9da902144cb
2021-04-16 10:38:02 -07:00
Caitlin Cassidy
516cd3e2cd [Ongoing Call Chip] Add a click handler using ActivityLaunchAnimator.
Demo video: https://b.corp.google.com/issues/183229367#comment8

Thanks to jdemeulenaere@'s hard work on animations, this is an easy
change on my end.

Test: atest and manual
Bug: 183229367
Change-Id: I9411bf6fc11b380717ac139ef57f1c67011cac61
2021-04-16 17:36:27 +00:00
TreeHugger Robot
b2cf9f0988 Merge "Fix alignment when build number is not shown" into sc-dev 2021-04-16 17:23:55 +00:00
TreeHugger Robot
1f1bbd88dc Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-16 17:20:34 +00:00
Junyu Lai
6c443135d2 [automerger skipped] Merge "[VCN20] Change requestBackgroundNetwork argument order" am: 28aca09bbf am: 7de0a9088f am: a4ca067284 -s ours
am skip reason: skip tag Change-Id Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb with SHA-1 0aa8c19a82 is already in history

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

Change-Id: Icd3d0fe11a9de3c98d55fb91e935dc537a28af48
2021-04-16 17:16:07 +00:00
Jeff DeCew
d50d6db3e8 Merge "Fix notigication group background color" into sc-dev 2021-04-16 17:12:28 +00:00
Jeff DeCew
24220aae09 CallStyle actions have minimum width
This ensures that the major action buttons have a minimum visual emphasis in the layout.

Bug: 179178086
Test: manual
Change-Id: I58744ada45d789a9acb53b0f4965354835595b19
2021-04-16 13:08:40 -04:00
Jeff DeCew
208b1b1b69 Allow passing 0 to RemoteViews.setDimen() or setAttr()
Bug: 185488522
Test: atest RemoteViewsTest
Change-Id: I535e44a431701e68edcfaf527e326fd0e769b16a
2021-04-16 13:08:40 -04:00
TreeHugger Robot
db9210da53 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-16 17:06:51 +00:00
Mark Renouf
c86a84fd9e Enforce mutual exclusivity in setScrollCaptureHint
This change causes HINT_EXCLUDE to take precedence
over HINT_INLUDE when both are present.

Test: atest ViewGroupScrollCaptureTest
Bug: 184370898
Change-Id: Ie4779067c3db82c65816dc4a5129badf74b3c9b4
2021-04-16 17:01:10 +00:00
TreeHugger Robot
637ad5dc1e Merge "Bug fix for QuickAccessWallet." into sc-dev 2021-04-16 16:57:42 +00:00
Neil Fuller
d13937900c Add the ability to override time origin priorities
Add the ability to override time detector "origin priorities" config
with device_config. This is primarily intended for use by tests to set
the device into known states, regardless of the static xml OEM partner
config.

For example, to test the new "external" suggestion code in CTS, even a
device that does not support it "out of the box" can be set to just use
external suggestions and verify the associated code paths are working.
Previously, external time suggestions were untestable on devices that
didn't use it "out of the box".

Similarly, carrier acceptance tests could use this to just set "nitz"
from the priority list and ensure that NITZ behavior is working as
expected.

An initial TimeDetectorShellCommand implementation has also been written
to provide help that lists the device_config key, and expose settings
state. The set_auto_detection_enabled command can be added after bug
172891783 is complete.

This change also makes the origin priorities more dynamic. i.e. config
overlays like locale or MCC-based resource configs could now also affect
the origin priorities, previously the string was read once and cached
forever.

Bug: 183239968
Bug: 172891783
Bug: 172230856
Test: build / treehugger only
Change-Id: Ic67f35aa6d417bbbb4172643c10a796d484ccd1f
2021-04-16 17:54:17 +01:00
Junyu Lai
a4ca067284 Merge "[VCN20] Change requestBackgroundNetwork argument order" am: 28aca09bbf am: 7de0a9088f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675630

Change-Id: I2b4369cb4127f130076ced52ba020db99f617cd7
2021-04-16 16:52:07 +00:00
Anna Zappone
6de947c807 Update on shortcut changes and statuses cleared
Test: DataManagerTest
Bug: 178792356
Change-Id: I75499d7fe856222499689ef4b5c5be1c064211a9
2021-04-16 16:51:54 +00:00
Zoey Chen
6670d2d5d0 Merge "[ANAPIC Review] Change the type of List by ANAPIC review" into sc-dev 2021-04-16 16:50:15 +00:00