Commit Graph

468813 Commits

Author SHA1 Message Date
Dave Mankoff
d13251a7fd Capture recent motion events used for falsing.
This spits out the last 20 motion events that the FalsingManager
uses into bug reports. It only records the data in eng/userdebug
builds.

This has been cleared with PWG over VC.

A tool to visualize this data in in progress.

Bug: 148084465
Test: manual
Change-Id: I3edf5dc8693a202ff0e31e737e912500a3e4363d
2020-02-11 12:13:18 -05:00
Lucas Dupin
4e4899616d Merge "Add blurs to WAKE_AND_UNLOCK" 2020-02-11 17:03:34 +00:00
Cody Kesting
7064b5c25a Include NetworkCapabilities and LinkProperties in DataStallReport.
DataStallReport is updated to include the NetworkCapabilities and Link
Properties for the Network being reported on. This provides a more
complete picture of the Network conditions when the suspected data stall
was detected.

Bug: 148966398
Test: atest FrameworksNetTests
Change-Id: I913cf18c348b9f688f9d2a3d25a71bc94eb8f000
2020-02-11 08:50:59 -08:00
Julia Reynolds
27e26448ff Optionally exclude snoozed notifs from dismissal archive
Test: manual
Bug: 137396965
Change-Id: I9238b3edc89a0c0821bcee38612dcb81b2f3f69c
2020-02-11 11:31:35 -05:00
Mathieu Chartier
19773e04fc Set boot image profile properties in a loop for BootImageProfileTest
Set the properties in a loop to attempt and prevent flakiness if
properties aren't set by the time the tests starts.

Bug: 148649139
Test: atest BootImageProfileTest
Change-Id: I9a51770d687c93e0eb8829c277e1ec0a33d7c481
2020-02-11 08:27:31 -08:00
Tony Mak
504c98ca56 Fix the issue that SettingsProvider sees mismatched calling uid and pkg
From SettingsProvider point of view, the calling package is "android".
However, the callingUID is the client that calls into TCMS.
The solution is to clear the calling identity when accessing
DeviceConfig in a binder call.

The problem is intermittent is because TCMS also accesses
DeviceConfig in its constructor. It is not in a binder call, and thus
it works. DeviceConfig caches the value, and so subsequent DeviceConfig
calls won't actually call into SettingsProvider, not until the cache
is invalidated somehow.
I can reproduce the issue all the time by commenting the line that
accesses DeviceConfig in the constructor.

BUG: 149219961

Test: Comment the line that accesses DeviceConfig in the constructor.
      And try out smart selection and smart reply.

Change-Id: I6d27bf9b5ec0d4337c2623a83d326adc688269af
2020-02-11 16:10:13 +00:00
Courtney Goeltzenleuchter
a6ae2c14cb Work around AM ContentObserver timing issue
For the CtsAngleDeveloperOptionHostTest tests we are seeing a flaky
failure in CTS and MTS testing. We tracked it down to a timing issue
with how/when the Activity Manager's cached settings values are updated.
Basically, we will set the settings to activate a particular code path
in GraphicsEnvironment and then run a test to check that behavior.
Sometimes, the test would fail. Logging showed that the test set the
values but the GraphicsEnvironment code path did not see the changes
because the Activity Manager's ContentObserver hadn't had time to
process the settings change. We can't read from the settings provider
directly because that has a huge performance impact and this is code
run during application startup.

Solution here is to add a command to ActivityManager to update it's
settings cache.
The test application then does:
Set setting.
Send AM refresh-settings-cache command.
At this time we know the cache is up-to-date and the test can run.

Test: atest android.angle.cts.CtsAngleDeveloperOptionHostTest
Bug: 148545737
Bug: 148546966
Change-Id: I7a12ce098315bb98eaafad122c770bfbfe67b988
2020-02-11 08:56:00 -07:00
Fabian Kozynski
ca30f57095 Add QSLogs using new loggers
Test: manual using DumpController
Test: atest

Change-Id: Id665ff047d60ddfa5f8f2fe907b7e20f84bd0013
2020-02-11 10:31:52 -05:00
Fabian Kozynski
753216ebc7 Merge "Remove plugin reference in QS" 2020-02-11 15:25:21 +00:00
Sahana Rao
364d250fb7 Fail silently on MediaScannerConnection#onScanCompleted
MediaScannerConnection#onScanCompleted callback runs on background
thread. Exception on the callback kills the process. To avoid this,
ignore exceptions from callback for apps targeting Q or lower.

This change fixes change in behavior from refactoring
Ie959daa7576214024150faf84b44cdba00119257 where errors on the callback
was handled on a binder thread that doesn't cause process crash.

Test: atest frameworks/base/media/ directory
Test: "in.mohalla.sharechat" app doesn't crash while sharing video.
Test: "com.vkontakte.android" app doesn't crash while sending a photo.
Bug: 147998630
Bug: 148925602
Change-Id: I5bd5f9fc22ac274da4d09c55dd639a6cca08be9b
2020-02-11 15:20:01 +00:00
Lee Shombert
e0f6225c7b Merge "Binder cache for isUserUnlocked()." 2020-02-11 15:13:38 +00:00
TreeHugger Robot
2c09c170b1 Merge "Delete files properly when history disabled" 2020-02-11 15:02:19 +00:00
Miranda Kephart
998081581e Merge "Start saving screenshot in background earlier" 2020-02-11 14:55:02 +00:00
Alex Kershaw
0124a09844 Give new permission to set cross-profile app-op to ManagedProvisioning
This is required for the provisioning cross-profile consent screen which
is used to take some apps off INTERACT_ACROSS_USERS.

Hidden API CrossProfileApps#setInteractAcrossProfilesAppOp is changed
from requiring the broad app-op permissions to requiring
CONFIGURE_INTERACT_ACROSS_PROFILES. It then clears identity before
calling into AppOpsManager. For convenience, we also allow apps (such as
Settings) with the broader app-op permissions to continue to call this
method; in that case, we simply don't clear the identity and let
AppOpsManager check the permissions (so we allow AppOpsManager to set
the requirements if you don't have the new
CONFIGURE_INTERACT_ACROSS_PROFILES).

The CL also adds 'withCleanCallingIdentity' support to
CrossProfileAppsServiceImpl and moves over existing calls.

Bug: 136249261
Bug: 140728653
Test: atest --verbose com.android.managedprovisioning.provisioning.crossprofile.CrossProfileConsentActivityRoboTest
Change-Id: Ibd304563dd1ef5f16784e3502be5ef1ec4675b63
2020-02-11 14:06:33 +00:00
Yoshiro MIHIRA
e5f72e2b6c Change default print media size from JIS_B5 to ISO_A4 for Japanese
The Japanese government sat the new rule for a business document
from B5 to A4 from Aprial/1993. Currently, A4 is a common print paper
size in Japan.
However, the current *Android* default media size in Japan is JIS_B5.
Maybe this default media size is based on the old Japanese standard
information.

MHLW formally adopted it in 1993(but in Japanese)
https://www.mhlw.go.jp/web/t_doc?dataId=00ta0034&dataType=1&pageNo=1

Test: Change Languages to Japanese(Nippon), Tap "Print" in Gmail or Chrome and check Paper size(before test this, remove all favorite printers).
Change-Id: I2748bc76d5b7143b99d21e07e8c5c44f87246c84
Signed-off-by: Yoshiro MIHIRA <sanpei@sanpei.org>
2020-02-11 13:23:28 +00:00
Ricky Wai
afc21c8679 Do not crash Zygote even if app profile is not accessible
Bug: 149200535
Test: Zygote doesn't not crash after pm move-package.
Change-Id: Iac04678b18c330cfbc82366c35661ba8a759f5a8
2020-02-11 13:18:21 +00:00
Derek Sollenberger
e2edcebb2b Merge "Consolidate AssetManager calls in Font/FontFamily" 2020-02-11 13:11:42 +00:00
Anna Malova
29ed0cc421 Implement PacService using WebView's version of libpac.
Add config flag to choose between PacService implementations.
Added flag (config_useWebViewPacProcessor) is disabled
by default for now.

Bug: 148516710
Test: atest DeviceOwnerTest#testProxyPacProxyTest
Change-Id: I5d376a2a37f1bfb7ba5268c0088bf4417434b8f5
2020-02-11 12:54:26 +00:00
Alex Johnston
57ec80939f Rename lockdown admin configured networks API
* Renamed 'isLockdownAdminConfiguredNetworks'
  to 'hasLockdownAdminConfiguredNetworks'
* Renamed 'setLockdownAdminConfiguredNetworks'
  to 'setConfiguredNetworksLockdownState'

Bug: 148853269
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAdminConfiguredNetworks
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testAdminConfiguredNetworks

Change-Id: I6bef862b4ef7e5a7997378efcff08477da9de6dc
2020-02-11 12:43:21 +00:00
Shu Chen
51520d1fd1 Limits the left/right bounds of the magnified text content within the
textview.

Test: locally verified.
Bug: 148988709
Change-Id: I255de87a602ad39fd05c9b87f44e1c1ba5b3e244
2020-02-11 20:36:40 +08:00
TreeHugger Robot
20024529db Merge "Fix ConcurrentModificationException on CachedBluetoothDevice" 2020-02-11 12:17:35 +00:00
TreeHugger Robot
784a7ad7e3 Merge "Fix ConcurrentModificationException on LocalBluetoothProfileManager" 2020-02-11 12:16:07 +00:00
Bram Bonné
323728413b Adds RestrictedStoragePermissionTest to CtsPermission2TestCases.
Storage tests are separated out from RestrictedPermissionsTest in
ag/10260977. This CL adds the new test file to CtsPermission2TestCases
presubmit tests.

Change-Id: Id785f019e55e655703f823a857da44de0a2ef58d
Fix: 147034231
Bug: 144914977
Bug: 131432978
Test: atest CtsPermission2TestCases
2020-02-11 13:13:39 +01:00
Shu Chen
af86a485b3 Use the line height to adjust the Y coordinate for touch through.
Originally it uses the text height from the font metrics which is wrong
when the spanned text is smaller than the font metrics.

Test: locally verified.
Bug: 149287208
Change-Id: I91a87200e477faece543a8890aeccd5b7eed9f0b
2020-02-11 19:53:56 +08:00
Martijn Coenen
bc3a5111d1 Give installers/DownloadManager/MTP correct GIDs.
On devices without sdcardfs, these classes of apps get the right storage
access by being a part of the correct group.

Bug: 146419093
Test: manually verify apps get the correct GID
Change-Id: I7021cbf8a2e84bda7a49519da36e84fcf3f479a8
2020-02-11 12:24:18 +01:00
Bernardo Rufino
663a13b134 Merge "Return null for getWindowParams() on system-rendered toasts" 2020-02-11 11:10:10 +00:00
Rubin Xu
af35434a94 Merge "Throw exception when gatekeeper fails" 2020-02-11 10:27:36 +00:00
TreeHugger Robot
456ffd240f Merge "Two API changes:" 2020-02-11 10:13:19 +00:00
TreeHugger Robot
d3e333c2ab Merge "Fixes "package doesn't belong to uid" exception for DeviceConfig clients calling DeviceConfig's access methods as root or shell." 2020-02-11 10:12:03 +00:00
Sunny Shao
c83401dbc5 Add a new feature flag for Settings Schedules
Fixes: 148995400
Test: compilation
Change-Id: Id54eb51068ddf7b1a8fbbf535c7e0e86d1c9b5da
2020-02-11 17:48:22 +08:00
junyulai
d859855a04 [SP10] Add IntDef annotations for system api of NetworkStats
Test: m -j
Bug: 130855321
Change-Id: I8855ec95d5d086fc14e2eb71558bc2dcd9a830e5
2020-02-11 09:47:03 +00:00
Tiger Huang
c88227fee7 Test more about InsetsSourceProvider.updateControlForTarget
We added logic to the function, and this CL detects if the logic is
broken.

Bug; 149121559
Test: atest InsetsSourceProviderTest

Change-Id: I5eadae67aa0c2555441b16d8ae0146fe18ad0632
2020-02-11 17:43:12 +08:00
Chalard Jean
6dc9854996 Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c
Merged-In: I288ea32fac07a9a486e2ea451a2c9b098446a74c
2020-02-11 16:26:10 +08:00
Ahan Wu
4e4044060e Fix ImageWallpaper memory regression
Scale bitmap to fit display size leads to memory regression, this cl
removes the sacling logic and also disable wallpaper transitions when
the bitmap size is smaller than display size to avoid broken visual.

Bug: 147379974
Bug: 145897588
Bug: 124838911
Test: Manually
Test: atest com.android.systemui.ImageWallpaperTest
--rerun-until-failure 20
Test: atest com.android.systemui
Change-Id: I243274af54538fc89268c448aa2c5a95f63c7ae3
2020-02-11 16:18:02 +08:00
Sasha Kuznetsov
a68a7a3d23 Revert^2 "Add GnssAntennaInfo framework APIs" + added fixes
fef9247572

Test: End to end test: run "atest GnssAntennaInfoRegistrationTest" on cuttlefish and watch "adb logcat | grep -i GnssAntennaInfo". Other tests:  atest GnssAntennaInfoTest, atest GnssAntennaInfoProviderTest, atest GnssManagerServiceTest, atest VtsHalGnssV2_1TargetTest, atest LocationManagerFineTest.
Bug: 124556515
Change-Id: Ie1a8a60b9d7b9b95335bc84118639e33e0784ca1
2020-02-11 07:52:56 +00:00
TreeHugger Robot
a0466a29f9 Merge "SFStats: track lateAcquired and badDesiredPresent frames from the field" 2020-02-11 07:12:56 +00:00
Kyunglyul Hyun
5161b37e62 MediaRouter2: Add group volume
Add session volume or group volume info into RoutingSessionInfo.
Group volume can be controlled by MediaRouter2 or MediaRouter2Manager.

This CL includes minor clean up for CTS and MediaRouter2Manager.

Bug: 148994658
Bug: 149200358
Test: atest android.media.cts.MediaRoute2InfoTest
  && atest android.media.cts.MediaRouter2Test
  && atest android.media.cts.RouteDiscoveryPreferenceTest
  && atest android.media.cts.RoutingSessionInfoTest
  && atest android.media.cts.MediaRoute2ProviderServiceTest
  && atest mediaroutertest

Change-Id: If1d3aaae604a3c23d504e620ddb2bd2ffb260602
2020-02-11 16:12:12 +09:00
Peter_Liang
72048e32b2 Implement and add the bounce fragment type into shortcut menu.
Implementation for the bounce fragment.

Bug: 149268000
Test: manual test
Change-Id: Ic8365e0b8e1a860e73a7105e30ea39d78800a9f2
2020-02-11 15:00:00 +08:00
Taesu Lee
934f40aab7 Return null for getSubmitPdu() for encoding failure instead of NPE
It returns null as API description for null message or null destination
instead of NPE.

Bug: 111731144
Test: atest SmsMessageTest

Change-Id: I1dc8537b6d07a43345c266122a1c77e73e58e7e8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-02-11 15:33:13 +09:00
Ben Lin
a000089341 Merge "Implement stretch-free resizing for PIP (input side)." 2020-02-11 05:40:29 +00:00
Etan Cohen
b9f28bc805 [WIFICOND] Rename to nl80211
per API council feedback.

Bug: 149105833
Bug: 148680192
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I1d6bbd126ae0eb06068ff962573021fdec590735
2020-02-10 20:36:51 -08:00
Robert Shih
ec8e60c320 atoms.proto: locally aggregate legacy drm API metrics
Bug: 134789967
Test: statsd_testdrive
Change-Id: I5d5c3805925a1f9d611da99e433cd3a2e28744d8
2020-02-10 20:31:01 -08:00
Yu-Han Yang
eb1ae5b6bc Merge "Revert "Add GnssAntennaInfo framework APIs"" 2020-02-11 04:16:46 +00:00
Automerger Merge Worker
8a7fef3ee1 [automerger skipped] Merge "Use the main thread to update alignment indication" into qt-qpr1-dev am: 94431615b1 am: a939bb2f64 -s ours
am skip reason: Change-Id I89bf1c188d6ba094106e059f1590c9eaf3703bb8 with SHA-1 0e72713fdf is in history

Change-Id: I2d2873c4db0a23b5b80a1cc51f2287a052dc7c21
2020-02-11 04:05:59 +00:00
Automerger Merge Worker
937aa3aa9a Merge changes from topic "am-90f3bc3d5bbe49498428b40defa6b5a1" into qt-qpr1-dev-plus-aosp am: cd9e71744e
Change-Id: I2e3fe45cf89e8df7a305fb9cf6f926e99378d637
2020-02-11 04:05:49 +00:00
Automerger Merge Worker
6f7102fb48 [automerger skipped] Merge "[DO NOT MERGE] Fix AoD front scrim being opaque at DOZE_PULSING" into qt-qpr1-dev am: 3bc45ce2ab am: 3c0cd40a23 -s ours
am skip reason: subject contains skip directive

Change-Id: If88ca18397e936bbdd75235d4c68e62ef1261da2
2020-02-11 04:05:42 +00:00
Automerger Merge Worker
6350f9ae75 [automerger skipped] Merge "Fix review comments on aosp/1213524" am: a77fbc2539 -s ours am: 70158f3240 -s ours am: 45d4d19fc5 -s ours
am skip reason: Change-Id I621cfbe165996c67b201ca2dd2f95a5ab9af10ee with SHA-1 d969656f45 is in history

Change-Id: I0fe69f7c3e729f4317b7bbead5d4dc575fa83ba6
2020-02-11 04:05:16 +00:00
Yu-Han Yang
fef9247572 Revert "Add GnssAntennaInfo framework APIs"
Revert "Add GnssAntennaInfo tests"

Revert submission 10111057-pco_pcv

Reason for revert: Build breakage
Reverted Changes:
I70e4014dd:Add GnssAntennaInfo framework APIs
I072958ecb:Add GnssAntennaInfo tests
Ia63a1f502:Add GnssAntennaInfo to HAL

Change-Id: I1934b1061737b417bb903f592c8f51cc65523747
2020-02-11 04:02:18 +00:00
Automerger Merge Worker
a939bb2f64 Merge "Use the main thread to update alignment indication" into qt-qpr1-dev am: 94431615b1
Change-Id: Ibd86563b5d894e2d6623e17986cf13814fb0268a
2020-02-11 03:58:52 +00:00
Wilson Wu
94431615b1 Merge "Use the main thread to update alignment indication" into qt-qpr1-dev 2020-02-11 03:54:55 +00:00