Commit Graph

542466 Commits

Author SHA1 Message Date
alexmang
18362e2c1e Fixing a11y bubble issues
- activating manage focuses on first item in manage menu
- scrimview no longer highlighted expanded bubble focus list
- bubble now says double tap to activate

Bug: 158811290
Bug: 158811563
Bug: 158811388
Test: manual
Change-Id: I72f348d1407df6fe73103001145891d55b7537da
2020-06-16 14:26:07 -07:00
Lyn Han
55f53a525a Fix issues with landscape transition
Bug: 158675544
Bug: 158675318
Test: manual - rotate phone to landscape, with stack expanded /
collapsed-then-expanded, select bubbles and overflow,  see that
        Overflow height matches normal bubble activity
        Expanded view at correct location and size
        Pointer still points to correct bubble
        Bubble spacing is wider as intended

Change-Id: I32bf1cdeaa4bade4d806e04b423f56991b41c3be
2020-06-16 14:15:34 -07:00
Beth Thibodeau
a0c29a2951 Merge "Make view intent immutable" into rvc-dev am: 80bf9c825a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11869229

Change-Id: I1eabf76133265093fd0aefa862bb3c605b002a61
2020-06-16 21:12:52 +00:00
TreeHugger Robot
9a815ca899 Merge "Document ACTION_WEBVIEW_SETTINGS possible unavailability" into rvc-dev am: 3b915e51e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11602072

Change-Id: I62f59621a7a29e162462141e187bf6a4a51a6d6c
2020-06-16 21:12:04 +00:00
Nikita Ioffe
bd787d983d Merge "Start OP_NO_ISOLATED_STORAGE on am instrument --no-isolated-storage" into rvc-dev am: 663727472a am: 2ea633314f am: f055be048b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11798518

Change-Id: I7a6434ddad549ff4b33f2adcfe967755949d060b
2020-06-16 21:11:51 +00:00
Beth Thibodeau
80bf9c825a Merge "Make view intent immutable" into rvc-dev 2020-06-16 21:00:12 +00:00
Hall Liu
91219a4a4f Fix docs for LISTEN_CELL_LOCATION
Update docs to reflect the ACCESS_FINE_LOCATION requirement.

Fixes: 140711339
Test: docs only
Change-Id: I64141b9428632069e0ec2345f3ff58a22bbb20aa
2020-06-16 13:53:59 -07:00
TreeHugger Robot
3b915e51e1 Merge "Document ACTION_WEBVIEW_SETTINGS possible unavailability" into rvc-dev 2020-06-16 20:53:01 +00:00
Kevin Chyn
01ab00121b Update biometric/keystore documentation
Fixes: 158883515

Test: Builds
Change-Id: I22aa2345fcb05c2f43344398dd5357dc1874414a
2020-06-16 13:51:33 -07:00
Nikita Ioffe
f055be048b Merge "Start OP_NO_ISOLATED_STORAGE on am instrument --no-isolated-storage" into rvc-dev am: 663727472a am: 2ea633314f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11798518

Change-Id: I58dbf68968568cb84351619be19bf3b690c11d50
2020-06-16 20:48:04 +00:00
jorgegil@google.com
79aae3c089 Allow finish resize transaction to be overriden
Allows vendors to modify the window container transaction
when finishing a bounds resize.

Bug: 159147615
Test: atest SystemUITests
Change-Id: Ibacaafb7ca2f79864997d3a43c372cf1814c8e3c
2020-06-16 13:42:59 -07:00
Shuo Qian
3950d0a631 Change the threshold for RSSNR from 10*db to db
Test: SignalStrengthTest
Bug: 158539126
Change-Id: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
Merged-In: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
(cherry picked from commit 6775b77bd5)
2020-06-16 20:41:05 +00:00
Eugene Susla
2ae38f3856 Guard against NPE in ServiceConnector
Fixes: 157759109
Test: presubmit
Change-Id: Ic1f594e667af50c0df8e566be4efdbaab6dccb26
2020-06-16 13:38:48 -07:00
Nikita Ioffe
2ea633314f Merge "Start OP_NO_ISOLATED_STORAGE on am instrument --no-isolated-storage" into rvc-dev am: 663727472a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11798518

Change-Id: I0c5fc35f9251c3ffd43b43d63b7bfbbddf8d5061
2020-06-16 20:31:04 +00:00
John Reck
3844f2a385 Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-dev am: 556fe0b9e5 am: 6bf4b6b216 am: aeae81a937
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838959

Change-Id: I8cb2361540838c936ffd8996e03086363b480f42
2020-06-16 20:30:37 +00:00
Nikita Ioffe
663727472a Merge "Start OP_NO_ISOLATED_STORAGE on am instrument --no-isolated-storage" into rvc-dev 2020-06-16 20:17:29 +00:00
Kweku Adams
effeb2a6cc Cache power whitelisted apps.
DeviceIdleController sits higher in the lock hierarchy than
AppStandbyController, so ASC shouldn't call out to DIC with its lock
held. In order to know if an app is power whitelisted, ASC needs to call
out to DIC and cache the result outside of holding the lock.

Bug: 158779091
Test: atest CtsBatterySavingTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: Iff500f3ab00f6881348926604be7ab07693bdf40
2020-06-16 20:15:49 +00:00
John Reck
aeae81a937 Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-dev am: 556fe0b9e5 am: 6bf4b6b216
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838959

Change-Id: Id333a99a719bf4e016a1b7434169009721f7b878
2020-06-16 20:10:56 +00:00
Sudheer Shanka
c608143486 Maintain the fuse buffer pool keyed by inode instead of threadId.
In order to save memory, FuseAppLoop maintains a buffer pool to use
when dispatching the read/write requests. Currently, it uses
the threadId of the ProxyFileDescriptorCallback as the key for this
buffer pool and this can result in an issue when a caller creates
multiple ProxyFileDescriptors with ProxyFileDescriptorCallbacks
running on the same thread. When this happens, it is possible that
a buffer is reused before a read/write request which was using it
earlier has been handled and would result in data from read/write
requests on different fds getting mixed up.

Bug: 158568683
Test: atest --test-mapping apex/blobstore
Change-Id: Iaffd54f4430ecb3778f01c80f5a1684ac448f8dc
2020-06-16 13:07:42 -07:00
Ben Lin
a6024e8652 Fix accessibility regression.
Instead of setting mHideMenuAfterShown to true for all cases, only do it
when accessibility isn't enabled.

Bug: 158662766
Test: Double tap when PIP focused
Change-Id: I18713ab1fdf511b74108df355204b2c54913a078
2020-06-16 13:01:32 -07:00
Beverly
546aa10dbf Track non-foreground service notifs for appOps
Previously we were only updating appOps for notifications with standard
layouts that were associated with a foreground services. However,
non-foreground service notifications can be tagged with appOps, so we
make sure to update these notifications' appOps whenever appOps are
changed. (We do this by tracking all notifications with standard
layouts instead of just the foreground service notifications)

Test: atest AppOpsCoordinatorTest ForegroundServiceControllerTest
Test: manual (use camera on whatsApp, receive message with app op, quit
app, see that app op is gone on the notification)
Fixes: 158585352
Change-Id: I674fc42441c2847a030df03516484ee6cd9217ac

Change-Id: I0527b8596277e53bea5a68aa57e0726aea9d14ac
2020-06-16 15:47:37 -04:00
John Reck
6bf4b6b216 Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-dev am: 556fe0b9e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838959

Change-Id: I656f9bf0e04ed46c3e65dfd49fb0caa19b658b1e
2020-06-16 19:47:27 +00:00
Feng Cao
14de002685 Fix input method switch handling in autofill
* this reverts ag/11592765 since it causes a regression for b/145949573
  in the following case:
  1. user taps on a field for which autofill returns null and augmented
     autofill is triggered
  2. user goes home, which sets the mExpiredResponse to true
  3. user comes back to the app, now tapping on the input field over
     and over, each tap will trigger a new augmented autofill request
* the fix is to revert the above patch, and then handle the input
  method switch for augmented autofill case by setting the current
  view to null, and also setting the augmented autofill id to null,
  such that the entire autofill flow will be executed again.
* note that this patch changes one behavior - in case regular autofill
  returns null and augmented autofill is triggered, switching input
  method and tap on the field again, it will trigger regular autofill
  again (before this patch, it will only trigger augmented autofill)

Test: relevant cts tests
Test: manual testing that on the chat app, switching input method
      and then tap on the field again triggers a new request
Bug: 150483555
Bug: 157412832

Change-Id: I0868ff62047f66402885f9821f7981ca4596f76b
2020-06-16 19:42:22 +00:00
John Reck
556fe0b9e5 Merge "Revert "Drop max texture cache size from 12x to 5x"" into rvc-dev 2020-06-16 19:32:59 +00:00
TreeHugger Robot
77c5047aa6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-d1-dev am: df1bc05463 -s ours am: 77c24ecc36 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9dd1295e8b913dfa0866d9b8dd684ef987c03ff7
2020-06-16 18:48:21 +00:00
Robert Carr
c34aea875a SurfaceView: Check ViewRootImpl non-null
This call to updateRelativeZ may be triggered from the
RT frame callback which may be triggered after we are detached
from the Window and in that case will be null. If we are detached
we are also going invisible so there is no need
to set a relativeZ.

Bug: 158706756
Test: Existing tests pass
Change-Id: I46aa824807b7b275e6a015c428fe7467a72ca949
2020-06-16 11:47:07 -07:00
Tingting Wang
b4ecadb54a Add CP2 general usage counters to westworld logs.
Bug: 158875840
Test: Together with ag/11419187, run $make statsd_testdrive &
./out/host/linux-x86/bin/statsd_testdrive
-p com.android.providers.contacts 301

Change-Id: Icf6a17ab410e581a445342e829d130d6d705e71b
2020-06-16 18:46:26 +00:00
Patrick Baumann
0192f737ff Pre-cache filter results
This change adds a cache layer for the return of
shouldFilterApplicationInternal in AppsFilter. This cuts most operations
that rely on app filtering nearly in half by removing a good deal of
branching that used to exist on the critical path for a crosshatch.

Before this CL:
android.os.PackageManagerPerfTest#testGetApplicationInfoWithFiltering:
	getApplicationInfoWithFiltering_mean: 983719
	getApplicationInfoWithFiltering_standardDeviation: 120061
	getApplicationInfoWithFiltering_median: 1061674
	getApplicationInfoWithFiltering_min: 827489
android.multiuser.UserLifecycleTests#createAndStartUser:
	Mean (ms): 4243.10

After this CL:
android.os.PackageManagerPerfTest#testGetApplicationInfoWithFiltering:
	getApplicationInfoWithFiltering_mean: 426340
	getApplicationInfoWithFiltering_standardDeviation: 18861
	getApplicationInfoWithFiltering_median: 427002
	getApplicationInfoWithFiltering_min: 407887
android.multiuser.UserLifecycleTests#createAndStartUser:
	Mean (ms): 3387.25

Note: this is a 2nd attempt at this change that fixes a few from the
previous at ag/11622391. This works with multi-user and updates tests to
ensure this stays true. It also improves peformance when building the
cache by pre-allocating the SparseBooleanArrays to their max sizes.

Test: atest AppEnumerationTests AppsFilterTest PackageManagerPerfTests
Fixes: 150405193
Change-Id: I6e0446068f46af0f22e0259ab7b6cdbbc7e08a22
Merged-In: I6e0446068f46af0f22e0259ab7b6cdbbc7e08a22
Merged-In: I67969ee2dec7a70442d2bea43c99fba977ee33f4
2020-06-16 11:46:14 -07:00
TreeHugger Robot
28b32a2682 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-d1-dev am: df1bc05463 -s ours am: aca62f10a2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iff9fd8e3375822779976df0b7d445e37af700ad1
2020-06-16 18:45:57 +00:00
TreeHugger Robot
77c24ecc36 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-d1-dev am: df1bc05463 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iac8ad24d993e29c11d9b083fa6068b4707406c02
2020-06-16 18:31:38 +00:00
TreeHugger Robot
aca62f10a2 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-d1-dev am: df1bc05463 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If7d7f5ef7d2823c9619fff595864e53c017cfd87
2020-06-16 18:31:07 +00:00
Bill Yi
6c08438dd9 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I6595582fa599523a1d85a85ec4baa2ee488cae2c
2020-06-16 18:20:13 +00:00
TreeHugger Robot
df1bc05463 Merge "Import translations. DO NOT MERGE" into rvc-d1-dev 2020-06-16 18:14:54 +00:00
Tiger Huang
83754537f5 Exclude translation caused by surface insets from the matrix
The matrix returned from getTransformationMatrix is used by a11y
controller for computing the touchable region. Since the touchable
region doesn't include the surface insets area, the translation in the
method should not be affected by surface insets.

Fix: 151868913
Test: atest WindowStateTests
Change-Id: I1ae58716d7270a58d527b807b74cdadc6e4624ab
2020-06-17 02:06:11 +08:00
Matt Pietal
0aefc0cefc Sharesheet - Don't update list on bg thread
Found a potential issue where the adapter list was being updated on
the bg thread, and could cause conflicts while the recyclerview is
loading.

Fixes: 159028662
Test: atest ChooserActivityTest
Change-Id: I60abd9a8325964ed2ca1218e8846f816b02da431
2020-06-16 14:04:52 -04:00
Yabin Huang
30f2b4afad Update FocusFinder am: 713af5fdd3 am: 74f91531c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11825630

Change-Id: I82c7e5dd78281e2c49f31063c3979845cef9831b
2020-06-16 18:02:45 +00:00
Jeff DeCew
a87cddbce9 Re-add DO Disclosure text to lock screen; now faded.
Fix: 158755611
Test: atest KeyguardIndicationControllerTest
Change-Id: I6cb8b2762ff4d6326c7e0568e28e2e4b56df4017
2020-06-16 17:58:22 +00:00
TreeHugger Robot
dd8efac00c Merge "Implementation of sharding for procstats atoms" into rvc-dev am: 26dfdc587f am: add19fc222 am: 9baa0693e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11859725

Change-Id: I820bf07bfcfa528f7c82a9f4186aa8e4edd4863b
2020-06-16 17:48:55 +00:00
Yabin Huang
74f91531c8 Update FocusFinder am: 713af5fdd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11825630

Change-Id: I7636504c50fa48e92e89f557461a35bd0aea015a
2020-06-16 17:41:50 +00:00
TreeHugger Robot
9baa0693e1 Merge "Implementation of sharding for procstats atoms" into rvc-dev am: 26dfdc587f am: add19fc222
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11859725

Change-Id: I7a75f0918ab45d7e7d42431b8ed067f1a5b189ec
2020-06-16 17:35:24 +00:00
TreeHugger Robot
add19fc222 Merge "Implementation of sharding for procstats atoms" into rvc-dev am: 26dfdc587f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11859725

Change-Id: I5a771320a41fe4aefe813527042bf9c46c0747b6
2020-06-16 17:25:43 +00:00
TreeHugger Robot
26dfdc587f Merge "Implementation of sharding for procstats atoms" into rvc-dev 2020-06-16 17:12:16 +00:00
Yara Hassan
c2364270d1 Add westworld logging for CCAPI data share am: faf50e11cb am: 7c3ef4c31d am: 20d7af0f8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818613

Change-Id: Ia7af57098099b143dc30037a4041cbbc725c496c
2020-06-16 17:07:37 +00:00
Ruslan Tkhakokhov
b0a56d98c6 Merge "Store original values of replaced settings in Settings.Secure" into rvc-dev am: f2fd74fbdb am: 62bdcabed5 am: 8be850ea7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11867444

Change-Id: I68d9814ee6685ee5110b9932ebd2a3b43b7fcca1
2020-06-16 17:07:21 +00:00
Yara Hassan
20d7af0f8b Add westworld logging for CCAPI data share am: faf50e11cb am: 7c3ef4c31d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818613

Change-Id: I23a2370b857d9ef38547f36267a21a4fd8c2582f
2020-06-16 16:57:36 +00:00
Ruslan Tkhakokhov
8be850ea7d Merge "Store original values of replaced settings in Settings.Secure" into rvc-dev am: f2fd74fbdb am: 62bdcabed5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11867444

Change-Id: Ib249e54d72abe1be32408b90e41b0f96f0d0b81f
2020-06-16 16:57:28 +00:00
Winson Chung
38adc4c509 Merge "Add additional tracing for nav button backgrounds" into rvc-dev am: e184e6c819 am: 8c9db5dd54 am: b6abd7b862
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11869885

Change-Id: I9cb009cbebe1365ce5591ab0826d0b53a5e0aaad
2020-06-16 16:52:19 +00:00
Yara Hassan
7c3ef4c31d Add westworld logging for CCAPI data share am: faf50e11cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818613

Change-Id: Id1ff733e20b812dc997b00a514676f560cc9b6d0
2020-06-16 16:46:08 +00:00
Ruslan Tkhakokhov
62bdcabed5 Merge "Store original values of replaced settings in Settings.Secure" into rvc-dev am: f2fd74fbdb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11867444

Change-Id: I5e01eb1280a4e231a647c6301f0f7ae93e391493
2020-06-16 16:46:00 +00:00
Winson Chung
b6abd7b862 Merge "Add additional tracing for nav button backgrounds" into rvc-dev am: e184e6c819 am: 8c9db5dd54
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11869885

Change-Id: Ia88d35f99b64a3f7de0565a04cb4ac851ad52c6a
2020-06-16 16:39:17 +00:00