Commit Graph

640958 Commits

Author SHA1 Message Date
Yifan Hong
92bd842472 Merge "AndroidRuntime.h: do not include IBinder.h" 2021-04-28 17:29:44 +00:00
Beverly Tai
08d64fbc05 Merge "Suggest use fp after face-auth fail" into sc-dev 2021-04-28 17:28:57 +00:00
Soonil Nagarkar
3a9558052c Include provider tag in complete attribution tag list
Ensure that the list of attribution tags considered "producer" or "source"
includes the attribution tag of the location provider itself. This is
particularily important if the location provider does not use any
attribution tags, as this ensures the null tag is included in the list.

Bug: 186572461
Test: manual
Change-Id: I9a7b2e9b67cbeb700d5c04730541ad4bf051d0da
2021-04-28 10:27:42 -07:00
Robert Shih
5bb242afe0 libmedia_jni requiresSecureDecoder: throw on error
Bug: 164486735
Test: MediaDrmTest
Change-Id: I2a062e6bd73630621fd022fcb0d640f812a7a8eb
2021-04-28 10:17:44 -07:00
Garfield Tan
f2dd033aad Add Dimmer to RootDisplayArea
There are 2 reasons that led to this change.

Right now on trusted displays Dimmer is offered on windowed
magnification display area, but no one offers it on untrusted displays.
There is no guarantee that windowed manification display area always
exists either on all OEM.

In Task#getDimmer() if the task is fullscreen but is translucent it asks
for a dimmer from one of its ancestors, and WindowState#applyDims() uses
Dimmer as if it always can get one. There can also be system dialogs
(e.g. ANR dialogs) that don't belong to any TaskDisplayArea that also
needs a Dimmer.

Therefore add a dimmer to RootDisplayArea.

Bug: 186436456
Test: atest TaskTests
Change-Id: I284b60124e27496352c27f446a2742e3e4756ec9
2021-04-28 10:10:48 -07:00
TreeHugger Robot
f343ef3161 Merge "Toast apperance updates" into sc-dev 2021-04-28 17:01:30 +00:00
Dan Sandler
a5df2171fc Fix longstanding 0B in heap tile
Also adds the number of views and ExpandableNotificationRows
to the subtext. The former is likely to be in the 1000s for
a healthy SystemUI process; the latter should be roughly
equivalent to the number of notifications (otherwise there
is a leak).

Fixes: 159917121
Test: make, pull down QS, examine tile
Change-Id: I97b17fb8e991264db612b8a6689051b8d83b4222
2021-04-28 16:58:21 +00:00
Alex Johnston
9ca2d03ff2 Allow installation of cert with .der extension
* Add der file extension to
  application/x-x509-ca-cert MIME type.

Manual testing steps
* Push .der certificate onto device
* Install CA certificate via Settings
  and select .der certificate
* Verify certificate has been
  successfully installed

Bug: 185283683
Test: manual testing
Change-Id: I0be1897a0aaf6f771c0e534533d2413ff0fc12f6
2021-04-28 17:49:47 +01:00
Chris Li
2e02036650 Move legacy split screen flicker tests for non-resizable to presubmit
Fix: 182235458
Test: pass existing
Change-Id: Ia139972beae25fcb60dc68c11c2d50efc38e00cf
2021-04-28 16:46:58 +00:00
Nikita Dubrovsky
16f253446d Merge "Use ActivityRecord for URI permissions in autofill" into sc-dev 2021-04-28 16:40:35 +00:00
Jagadeesh Pakaravoor
525caa44ce Add traces in ViewRootImpl handler
Add traces to show what messages are currently being handled inside
ViewRootImpl's handler.

bug: 184951839
Test: presubmit
Change-Id: I00c04250b3ea00fb32473d9fa35390510e8692c5
2021-04-28 09:39:19 -07:00
Ahan Wu
30fc7e95b2 Refine the latency and jank instrumentation of opening panel
We had two problems, the first one is that the latency instruemntation
overlapped with the jank instrumentation; the second one is that
the swipe / fling instrumentation might be ended too early and the
fling part was ignored.

Bug: 169221093
Bug: 176953201
Test: See the doc list in comment
Change-Id: I11937d02a3a05c82dd2526ae59ccd472f39309c7
2021-04-29 00:37:05 +08:00
Felipe Leme
056452001f Merge "Disabled DevicePolicyManager.setLocationEnabled() for automotive." into sc-dev 2021-04-28 16:31:45 +00:00
Rhed Jao
782d17ddd7 Clean up uses-native-library targetSdkVersion check
Instead of the explicit version check, using the PlatformCompat
api to check whether the feature is enabled or not.

Bug: 160928779
Test: atest android.appmanifest.cts.UsesNativeLibraryTestCase
Change-Id: I316ef37804f75ea05503fb82c021de1701789133
2021-04-29 00:18:55 +08:00
Peter_Liang
b8f8b1fd57 Revise the character limit of the string.
Goal:
In order to get better translations from the expert to users

Bug: 184872714
Test: manual test
Change-Id: I776ddece7163ba3ee6643d4e19f5d45c558aad39
2021-04-29 00:11:47 +08:00
Kweku Adams
c49760fc63 Merge "Updating proto enums." into sc-dev 2021-04-28 16:09:35 +00:00
Kweku Adams
88cf226a2d Merge "Remove isForegroundJob." into sc-dev 2021-04-28 16:08:38 +00:00
Marcin Oczeretko
a7e3943e50 Count the overall number of missed frames
A frame might be missed in both app and SF so adding a separate counter
to keep track of the overall number.

Test: manual
Bug: 185897790

Change-Id: I0ed4e0dc4ef949f40ba612b68860a2da3d0e7e91
2021-04-28 17:01:49 +01:00
TreeHugger Robot
89cc25da5a Merge "[Telephony] Clean up: remove getApnTypeStringInternal" into sc-dev 2021-04-28 16:00:03 +00:00
Yohei Yukawa
1d14a33860 Merge "Make IInputMethodPrivilegedOperations to async (4/N)" into sc-dev 2021-04-28 15:45:58 +00:00
Chavi Weingarten
121f71d4ff Merge "Added setBufferCrop to setGeometry" into sc-dev 2021-04-28 15:41:18 +00:00
kholoud mohamed
1df9148931 Fix security vulnerability in DPMS#setProfileOwner
Fail with a more general error message if the provided component is not
installed, this avoids exploiting the API to identify which packages are
installed without holding QUERY_ALL_PACKAGES

Test: Manual testing
Bug: 184658476
Change-Id: I47b80acb4c847f3bc0c6550deca40b192f57d598
2021-04-28 16:38:51 +01:00
Jeff Sharkey
0cab9b7480 Preserve legacy permission check behavior.
As part of the new "Nearby devices" permission work, the
registerStateChangeCallback() API has been relaxed to no longer
require permissions.  However, we've discovered that some apps were
depending on that SecurityException being thrown, so this change
restores throwing behavior for those legacy apps.

Bug: 186176507
Test: atest BluetoothInstrumentationTests
Change-Id: Ife536dee246b300ffb3dd78aef0b059a230f3835
2021-04-28 09:25:38 -06:00
Riddle Hsu
11f232ce5d Disable fixed rotation for starting window with ime surface
The IME window may show later depends on whether the task snapshot
contains the snapshot of IME surface, and whether the edit view
is still focused. If display orientation is changed, IME window may
take longer time to redraw. That requires to adjust the timing
of the removal starting window to avoid flickering.

For short term, just fallback the case to legacy behavior that
applies normal screen rotation animation.

Bug: 160451808
Test: Launch a landscape app which opens IME from portrait home.
      Return to home and launch it again. The IME window isn't
      flickering in 2 orientations.
Change-Id: Idfdf129adbfbee6634d8a27aa78da1f631bd213b
2021-04-28 23:23:27 +08:00
Martijn Coenen
d6b7b6b3aa Revert "Revert "Fixup app-private dirs that are not writable.""
Fixup non-writable app-private dirs that could have been left around by
an earlier race condition in the setup of the FUSE filesystem.

Bug: 181726193
Bug: 182088154
Test: erase userdata, check Youtube dirs are fixed up correctly

Reason for revert: fixing issue in original CL

Change-Id: Ifacf807f62dec3c9e22b5e5af0f2b00c4423ede4
2021-04-28 15:23:15 +00:00
Kelvin Zhang
968fa77746 Add API to ApexManager for compressed APEX
Test: th
Change-Id: I26b77cf61716882e8620ece7e10e0bc93d30599c
2021-04-28 11:21:25 -04:00
Adrian Roos
3e7a628f0f Merge "Revert "Fixup app-private dirs that are not writable."" into sc-dev 2021-04-28 15:17:46 +00:00
Adrian Roos
20705fdb10 Revert "Fixup app-private dirs that are not writable."
This reverts commit 13f793aec9.

Reason for revert: Breaks device health checks; crashes if dir is null.

Bug: 181726193
Bug: 182088154

Fixes: 186633787
Change-Id: Ia28df79c6ff4aacd6bdadf1d9c540f49dcace707
2021-04-28 15:16:55 +00:00
TreeHugger Robot
f1f615d992 Merge "Note that user engagement replenishes EJ quota." into sc-dev 2021-04-28 15:11:46 +00:00
Andrei-Valentin Onea
e93cf9e566 Merge "Replace source based system server stubs" 2021-04-28 15:06:22 +00:00
Issei Suzuki
d0ba2859dd Enable remote animation for keygaurd going away.
Disable remote animation for keyguard transition.
% adb shell setprop persist.wm.enable_remote_keyguard_animation 0

Enable remote animation only for keyguard going away transition
(default).
% adb shell setprop persist.wm.enable_remote_keyguard_animation 1

Enable remote animation for both keyguard going away and (un)occlude
transition.
% adb shell setprop persist.wm.enable_remote_keyguard_animation 2

Bug: 166736690 185616888
Test: Pass existing tests.
Change-Id: Ia40e3325a9f22ce108f36c7111a92b514ce4fa19
2021-04-28 17:02:21 +02:00
TreeHugger Robot
4a44c4f4d7 Merge "Fix duplicate bubbles in the overflow" into sc-dev 2021-04-28 14:47:52 +00:00
Lucas Dupin
9bb13649cc Merge "Interpolate scrim radius using display shape" into sc-dev 2021-04-28 14:45:49 +00:00
Beverly
b8a4958216 Suggest use fp after face-auth fail
when udfps is enrolled

Test: manual
Fixes: 186314172
Change-Id: Ib75a896286309207e47f8121cff76ecda6e05515
2021-04-28 14:25:51 +00:00
Richard Coles
4656cb0260 Merge "Document WebViewDelegate.getTimestamps() better." into sc-dev 2021-04-28 14:25:36 +00:00
Alina Zaidi
4a076e1e53 Change background color of work widgets, for when work profile is off.
Bug: 184833070
Test: Manually tested
Change-Id: I7b53a9ee8e30871794bda3f4c5c8ac4d5d45ca32
2021-04-28 14:21:13 +00:00
Beverly
7a605e503b Toast apperance updates
- update elevation
- update font family to GS Text instead of Google Sans

Test: manual (see screenshots in bug)
Fixes: 185632543
Change-Id: I5c87a287f3e288198fc70f30ac9abb2c47ebb1eb
2021-04-28 10:08:08 -04:00
Jerry Chang
59f0ef3535 Fix tapping on divider bar several times makes split sloggish
Make sure it won't introduce redundant fling animation when touch on
divider bar didn't exceed tap threshold. This make sure it won't queue
extra sync transactions with SyncTransactionQueue. Also skip redundant
checks after detected double tap in staged split.

Fix: 186626153
Fix: 179004532
Test: tapping on divider bar of legacy and staged split, it won't make
split sloggish.

Change-Id: I2a326f54f25d77e86fa51bca67b68daca21dedfc
2021-04-28 22:08:00 +08:00
Chalard Jean
4d8a34d322 Allow usage of SdkLevel in the framework/wifi services
This is necessary for EthernetNetworkFactory because it uses
the static lib NetworkFactory which needs to test where it runs.
Wifi services also need this for its own factories.

Bug: 183902758
Test: ClientModeImplTest
      OemWifiNetworkFactoryTest
      TelephonyNetworkFactoryTest
      UntrustedWifiNetworkFactoryTest
      WifiNetworkFactoryTest
Change-Id: I73cc38d7857934fe50995c666915662de4c154ce
2021-04-28 23:04:53 +09:00
Martijn Coenen
8e176d97ae Merge "Fixup app-private dirs that are not writable." into sc-dev 2021-04-28 13:43:51 +00:00
Fabian Kozynski
416a475747 Use full top padding even in HorizontalLayout
Test: manual
Fixes: 184357310
Change-Id: I4734a8ab3e671543e1da622cb1a1a1786f5abb80
2021-04-28 09:30:31 -04:00
Dave Mankoff
323919098a Merge "Recognize the Back Gesture in the FalsingManager." into sc-dev 2021-04-28 13:23:10 +00:00
Fabian Kozynski
eebbd44aef Merge "Use full height (-navbars) for QS" into sc-dev 2021-04-28 13:13:05 +00:00
Jeff DeCew
c761eed3ac Merge "Enable new shade features in AOSP" into sc-dev 2021-04-28 12:48:27 +00:00
Cecilia Hong
f8b8f86226 Merge "Init MediaHost with KeyguardMediaController's initialization, not wait until the controller is attached." into sc-dev 2021-04-28 12:44:22 +00:00
wilsonshih
c443afb5b6 Only add one starting window for a task when unlock.
While unlock device, there will call showStartingWindow for every
visible activites, which is not necessary because there will only
need one starting window for each task.

Bug: 185318171
Test: atest ActivityRecordTests
Change-Id: I417e0b516de388373d49dc68f1ce6cf52dd1fd3e
2021-04-28 20:37:16 +08:00
George Chang
8347fb86d4 [SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Bug: 182283321
Bug: 174151290
Test: atest CtsNfcTestCases
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.nfc
Change-Id: I97fcd555072740cb3c0d80c9bb38edab5087195c
2021-04-28 12:35:12 +00:00
Edgar Wang
0d2ddfb7d2 Merge "Update TopIntroPreference fontFamily" into sc-dev 2021-04-28 12:25:56 +00:00
Beverly Tai
5f82e987a3 Merge "Don't show udfps disabled after biometric auth" into sc-dev 2021-04-28 11:40:09 +00:00
Siim Sammul
afbe75fd4a Merge "Add a version of SettingsObserver to BinderCallsStats and make it public so it could be used to collect binder latency data from bluetooth and telephony." into sc-dev 2021-04-28 11:38:42 +00:00