Commit Graph

640958 Commits

Author SHA1 Message Date
Les Lee
d9592852bc Merge "wifi: Use new API for wifi data usage function" am: f437848713
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697190

Change-Id: I9c4473021a67500b81f98012f95fcc24c45c1792
2021-05-06 05:11:36 +00:00
Kohsuke Yatoh
7a295f21b6 Ignore 'cmd font clear' failure in tearDown().
This would fail (as expected) on Pixel 3 / 3a.
On Pixel 3 / 3a, we skip the test in assumeTrue() in setUp(). tearDown()
should not throw and make the test fail.

Bug: 187364676
Test: forrest
Change-Id: I9e82c2e27c3ef71e73bf022db543318cfc0f2ef7
2021-05-05 22:00:18 -07:00
Les Lee
f437848713 Merge "wifi: Use new API for wifi data usage function" 2021-05-06 04:42:07 +00:00
Robin Lee
0c60c8722a Add cldr translation for values-es-rMX
This stub locale allows devices to choose Spanish (Mexico) in the setup
app and Settings. There must be at least one translation in the
framework for the internationalisation system to present that locale as
a selectable option.

Test: manual (flash a device with PRODUCT_LOCALES += es_MX and use it)
Bug: 172918378
Change-Id: I0e04846a29b697d7f7acfde7c6aaa684512afbab
(cherry picked from commit d46287c7d7a139e0ef6d1dd1ed2bf96966190634)
2021-05-06 03:42:21 +00:00
TreeHugger Robot
399a00fff0 Merge "TEMP: trust recognition service providers" into sc-dev 2021-05-06 03:34:25 +00:00
Hui Yu
32bf836de3 Merge "Exempt some broadcasts from FGS start restriction." into sc-dev 2021-05-06 03:33:18 +00:00
SongFerng Wang
606c1c77d7 Merge "[security] SubscriptionGroup is exposed to unprivileged callers" into sc-dev 2021-05-06 03:19:48 +00:00
Riddle Hsu
a54290f36b Merge "Load icon of splash screen only once" into sc-dev 2021-05-06 02:28:59 +00:00
Nate Myren
22962c17df Merge "Add flag gate to show only indicator dot" into sc-dev 2021-05-06 02:11:45 +00:00
Evan Rosky
abc24090f0 Revert "Add reporting to monitor apps incorrectly using getRaw"
This reverts commit 8b82086722.

Reason for revert: Metrics no-longer needed, we are adding compat for this.

Bug: 187153492
Test: N/A
Change-Id: I31bbe36378a2da969a094405b0e0a7b7b9cde3a0
2021-05-06 01:44:51 +00:00
Ben Lin
5059bd6b37 PiP: API - explain isStashed in more detail.
Bug: 185972980
Test: None. Documentation update.
Change-Id: I7653a394a9ecdc0c89e65604a466f8448439f8fe
2021-05-05 18:44:24 -07:00
lesl
fda6acc990 wifi: Use new API for wifi data usage function
For wifi, a old API: buildTemplateWifiWildcard will includes the merged
wifi which is included to mobile usage. It should not double count
again. Call new API: buildTemplateWifi with
NetworkId: NetworkTemplate.WIFI_NETWORKID_ALL
and null subscriberId to get non-merged wifi usage.

Test: atest -c DataUsageControllerTest
Test: Manual Test, wifi data usage count correctly.
Bug: 176396812
Merged-In: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
Change-Id: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
2021-05-06 09:19:41 +08:00
TreeHugger Robot
d1fb9c7b11 Merge "Propogate userId parameter to challenge client." into sc-dev 2021-05-06 01:05:34 +00:00
Song Hu
3f1a2f8740 Pass Intent as additional parameter in ContentSuggestionsServiceClient#notifyAction. This allows QuickShareProcessor to report share event in notifyInteraction. SystemUI side change.
Test: test on local device
Bug: 185423664
Change-Id: I40d9dd159694c1e03569f77a2d1090b4b42502da
2021-05-05 18:05:04 -07:00
Seth Moore
c73fe01f16 Don't re-wrap DeviceIdAttestationExceptions
Instead of always wrapping errors in a DeviceIdAttestationException,
check to see if the underlying cause was originally a
DeviceIdAttestationException. If so, unwrap the cause and just re-throw
that, preserving the original error.

Bug: 183827468
Test: GtsGmsCoreSecurityTestApp
Change-Id: Iab78ccaff91dd1de615e1d2b18f709027aecd59e
2021-05-05 17:41:38 -07:00
Hui Wang
82b59178a4 Process rcsVolteSingleRegistration if it is not provided or roaming
Bug: 186884505
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Change-Id: I800ba7cfda4fdd9bd2590a12c23c33ee72b07396
2021-05-06 00:30:27 +00:00
Antonio Kantek
1ebf0cf006 Merge "Deleting frameworks/base/tests/ActivityViewTest" into sc-dev 2021-05-06 00:24:56 +00:00
TreeHugger Robot
5d723faa14 Merge "Use BinderDeathDispatcher for alarm listeners" into sc-dev 2021-05-06 00:22:37 +00:00
Jing Ji
90381205cc Merge "Skip STATE_SERVICE_RESTARTING while dumping procstats to statsd" into sc-dev 2021-05-06 00:18:53 +00:00
Calin Juravle
f93ecde2fe Allow ART profile saver period to be parsed from sys props
Test: manual

Bug: 184714236
Bug: 185979271
Change-Id: I4ab069e8c4de9f73b7951845e7cb80bc00642e22
2021-05-05 17:15:38 -07:00
Jerry Chang
3afe697d94 Merge "Revert "Make sure tasks below home task is invisible while in split"" into sc-dev 2021-05-06 00:06:41 +00:00
TreeHugger Robot
d9b50675fd Merge "[am] report new incremental crash/anr metrics" into sc-dev 2021-05-06 00:02:46 +00:00
Bill Lin
f94486117f Merge changes from topic "ohm-shortcut" into sc-dev
* changes:
  3/ Listen ONE_HANDED_MODE_ACTIVATED for A11y shortcut action
  2/ Implement Shortcut for One Handed mode feature
2021-05-05 23:43:12 +00:00
Svetoslav Ganov
720add59c7 Merge "Prepare AttributionSource to expose to native" into sc-dev 2021-05-05 23:23:54 +00:00
Robert Carr
86b378b810 ANativeWindow_fromSurface: Use acquire not incStrong
When we call incStrong like this, it won't work if the
caller of ANativeWindow_fromSurface later calls
ANativeWindow_release and so we leak the reference indefinitely.
We change to call acquire so that the caller can call release.

Bug: 186190571
Test: Existing tests pass
Change-Id: I647a856923c891da2d305471f5ff84103d1f9ed5
2021-05-05 15:51:35 -07:00
Nate Myren
71d3b3fa74 Add flag gate to show only indicator dot
Bug: 187343115
Test: manual
Change-Id: Ifa46eb5556e016e2a1b433886cdf1b302ca4673e
2021-05-05 15:39:34 -07:00
Cody Kesting
dc3608af59 Merge changes I01ffdde2,Iecab1226 am: a5786a15e1 am: cbf91b3e8c am: 88d6f01bae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1696089

Change-Id: I7888e363733ac767c43a5b6c716b45da81544830
2021-05-05 22:31:12 +00:00
Kurt Dresner
81f2994f35 Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener
Bug: 175130323
Test: Presubmits
Change-Id: Ica48cd073e256055d5cac0f12e9ce814227eb0d6
2021-05-05 15:27:31 -07:00
Zhen Zhang
ead4b44c0a Log GlobalHibernatedApps atom
Log the pull atom -- GlobalHibernatedApps in AppHibernationService

Bug: 186159449
Test: atest AppHibernationService
Test: statsd_testdrive 10109, pulled data is correct
Change-Id: Iefbdf6206b2615c5486aa6b22c0ef901bf2dcd76
2021-05-05 15:19:31 -07:00
Nate Myren
a295723c13 Merge "Ensure that animation does not play after brief lapses in app usage" into sc-dev 2021-05-05 22:19:04 +00:00
Cody Kesting
88d6f01bae Merge changes I01ffdde2,Iecab1226 am: a5786a15e1 am: cbf91b3e8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1696089

Change-Id: I71bc1d1230d07c811e72d55023dd59dc9323d367
2021-05-05 22:13:57 +00:00
Antonio Kantek
d944234bd6 Update TaskStackChangedListenerTest to not depend on ActivityView
This CL is part of the effort of removing ActivityView.

Test: atest WmTests:TaskStackChangedListenerTest
Bug: 179161778
Change-Id: Ia86232ce382a562ea6b31836e8e396bf1a6d5730
2021-05-05 15:12:18 -07:00
TreeHugger Robot
ca3cc01d0d Merge "SoundPool: Update documentation for sound duration" into sc-dev 2021-05-05 21:56:23 +00:00
Cody Kesting
cbf91b3e8c Merge changes I01ffdde2,Iecab1226 am: a5786a15e1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1696089

Change-Id: If24eabfdfa80b036b541c4d3e1bf8064fe80f213
2021-05-05 21:48:26 +00:00
Treehugger Robot
a5c04b6fd9 Merge "update L photo size name with JPN_ prefix" am: 2a46c6491f am: 70100919d0 am: 9e0ab4a327
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697309

Change-Id: Id300ef712eda7bfab164044c95c807ebf4e9798f
2021-05-05 21:35:24 +00:00
Hui Yu
0daa76ed40 Exempt some broadcasts from FGS start restriction.
1. Exempt broadcasts ACTION_TIMEZONE_CHANGED, ACTION_TIME_CHANGED, ACTION_LOCALE_CHANGED
from FGS start restriction.
2. Add test case AlarmManagerServiceTest#setTimeZoneImpl.

Bug: 184111171
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/AlarmManagerServiceTest.java
Change-Id: I80ce830d1bd98d69f35fdc6bcc041de173083fba
2021-05-05 14:33:35 -07:00
Robert Carr
599f912e4e AttachedSurfaceControl: Respond to API feedback.
"Root" is eliminated from the interface name as it is a property
of the object and not the interface, but remains highlighted in the
getters to express the relationship between the called and returned
object.

Bug: 185365821
Test: Existing tests pass
Change-Id: I163fc23f2c37c984ef3ffeb7514c4d8c1c1a3f90
2021-05-05 14:28:25 -07:00
Cody Kesting
a5786a15e1 Merge changes I01ffdde2,Iecab1226
* changes:
  Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
  Notify policy listeners when VCN subIds change.
2021-05-05 21:27:09 +00:00
Treehugger Robot
9e0ab4a327 Merge "update L photo size name with JPN_ prefix" am: 2a46c6491f am: 70100919d0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697309

Change-Id: I0a076d4f378f6c224c74cd3ae42fb2bcd805dfbe
2021-05-05 21:19:44 +00:00
Jeffrey Huang
19943bde4b Merge "Fix InvalidProtoWireException" into sc-dev 2021-05-05 21:18:57 +00:00
Beverly
bebd1dede8 Keyguard Wallet activity can request udfps
- Setup ability to request udfps from a SystemUI activity occluding the
keyguard
- Hookup keyguard wallet activity to request udfps
- Update UdfpsKeyguardView logic so that the udfps icon won't show if
the bouncer is visible. Add check for bouncer visibility to check
whether the bouncer view is visible - sometimes the bouncer expansion
can report visible even though the view itself is not visibile.

Test: atest SystemUITest
Bug: 183024921

Change-Id: I2aa922149586a8a6319e884442c21b74607e5017
2021-05-05 21:17:24 +00:00
Brad Stenning
1be127b866 Update Icon find shared library resources
Icon is building its own resource object and not including the default flag that would allow for including of shared-lib resources

Bug: 187332041
Test: Manual
Change-Id: I121b5f75cbe7d125f8adddb30c84024e2b1a80c7
2021-05-05 21:09:34 +00:00
Treehugger Robot
70100919d0 Merge "update L photo size name with JPN_ prefix" am: 2a46c6491f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697309

Change-Id: I3314ae4b03de074884f15824905258d9ab7a6476
2021-05-05 20:54:42 +00:00
Todd Kennedy
a02ce471be Revert "Migrate the usage of sCompatibilityModeEnabled"
This reverts commit 0a98d27b04.

Reason for revert: b/187301322

Change-Id: Iae9acc88841f214a5e3a14f83c3d5ee8b9ffd422
Bug: 187301322
2021-05-05 20:51:46 +00:00
Ben Lin
150072f401 PiP: Update menu state AFTER animation is done for show/hide/resize.
When hiding the menu, there is a brief moment where the menu hide
animation is running, but the menu is already set as hidden in
mMenuState. In that case, other menu operations, such as resizing it,
would no-op, since it assumes the menu is not visible to the user
anymore. We will update the menu at end of the animation so that before
the animation finishes, we will respect that the menu is still in its
previous state. This will break apart the callback into two parts -
onMenuStateChanging, and onMenuStateChangeFinish.

Additionally, PipAnimationController used to only control animating the
PiP leash, but not the menu. This CL also adds a handler callback to
allow menu controller to apply the transaction.

Bug: 185513811
Bug: 186424689
Test: Tap once (show menu), pinch resize - menu resizes & fade along
with the resize
Test: Resize to smallest size, tap once (so that it grows bigger), and
then tap outside region - see that the menu no longer lags behind on
fading out.

Change-Id: I4432961aff074f4569d5d6d61b0e917511e2cbad
2021-05-05 13:41:12 -07:00
Joe Bolinger
818f42cad3 Propogate userId parameter to challenge client.
Fix: 184915229
Test: manually create second profile on device and enroll face / fingerprint
Change-Id: Id5968938681be3b84d84f3dc85b00a9d05ce3d45
2021-05-05 13:39:12 -07:00
Hui Yu
b774250e18 Change default temp allowlist duration for BOOT_COMPLETED broadcast to 20 seconds.
This default temp allowlist duration is used by broadcasts BOOT_COMPLETED, PRE_BOOT_COMPLETED, LOCKED_BOOT_COMPLETED, MY_PACKAGE_REPLACED, TIMEZONE_CHANGED, TIME_CHANGED and LOCALE_CHANGED
that are exempted from BG-FGS-start restriction.

Bug: 187196777
Test: Build and run.
Change-Id: I80aec4cebaff1c6284a3e541e3f4a7a41be2e836
2021-05-05 13:37:34 -07:00
Treehugger Robot
2a46c6491f Merge "update L photo size name with JPN_ prefix" 2021-05-05 20:36:53 +00:00
Amit Mahajan
3d802f564e Avoid spurious logging for read device identifier denial.
The change is to avoid reporting failure if the check is done
as part of an intermediate step.

Test: manual
Bug: 151875019
Change-Id: Id181063a34d311adfd09912d1ecb3508c444e798
2021-05-05 13:36:00 -07:00
TreeHugger Robot
48a3676a12 Merge "Update "turn on work" dialog strings" into sc-dev 2021-05-05 20:16:53 +00:00