473688 Commits

Author SHA1 Message Date
TreeHugger Robot
325764e1b4 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2020-04-04 00:11:37 +00:00
Jing Ji
fb18abde48 Multiply the total memory by mem_unit
Bug: 153107152
Test: Manual
Change-Id: If268b1ea63d7166158ac546dd8a1f445eb3d09f9
Merged-In: If268b1ea63d7166158ac546dd8a1f445eb3d09f9
2020-04-03 17:06:00 -07:00
Andrii Kulian
3dbef9419f Merge "4/n Add fallback to default task display area" into rvc-dev 2020-04-04 00:04:00 +00:00
Muhammad Qureshi
3f9c330eef Make state_option top-level boolean annotations
- Add AnnotationId enum stats-log-api-gen
- Rename RESET_STATE annotation to TRIGGER_STATE_RESET. Also rename the proto annotation.

Bug: 152412767
Test: stats-log-api-gen-test
Test: m statslog-framework-java-gen
Change-Id: I2c12ea0b9222ef28b8cc11ea36b272e518a96259
2020-04-03 17:00:55 -07:00
Selim Cinek
dcfa46c5ca Fixed an issue where the conversation title was showing doubled
For conversations, it's not necessary anymore to extract
the conversation title into the heads up layout.

Fixes: 152655946
Test: add conversation group, observe no double text
Change-Id: I99594ae9e503cf8589603899e0053793be96958a
2020-04-03 17:00:49 -07:00
TreeHugger Robot
e72d456c3f [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev am: 682ee20837 -s ours
am skip reason: subject contains skip directive

Change-Id: I19a26a04df56212c59f2f74e64dfdcd333ff0ca6
2020-04-03 23:39:04 +00:00
Heemin Seog
cbb774dc6e Allow nav bar to consume touch events based on configuration
This is particularly useful for OEMs that want to ensure that OEMs can
override the touch behavior of the system bars without impacting the
notification panel touch behavior.

Bug: 150613278
Test: manual, atest CarNavigationBarViewTest
Change-Id: Icb5ae3388f4004b4f465e9a9e85e8d175bbe7d78
2020-04-03 16:38:24 -07:00
Ned Burns
c0e4c56696 Don't crash if NSSL gets incomplete gesture
In *theory*, a View should always receive an ACTION_DOWN before
receiving any other touch events, but this isn't always the case in
practice. Whenever we see one of these "partial" gestures, we should
ignore it until a real one starts.

Test: manual
Bug: 146323887

Merged-In: I22182d90b0057df67fbd6d20785da23d6c17dcf3
Change-Id: I22182d90b0057df67fbd6d20785da23d6c17dcf3
(cherry picked from commit c8048daed2e1b15fca1e281499d426920fc245c0)
2020-04-03 23:35:38 +00:00
Ned Burns
afc37b88ac Merge "Don't crash if NSSL gets incomplete gesture" into rvc-dev 2020-04-03 23:34:25 +00:00
TreeHugger Robot
682ee20837 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2020-04-03 23:18:53 +00:00
TreeHugger Robot
b402caadc5 Merge "Add BIND_INCLUDE_CAPABILITIES flags to SystemCaptionsManagerService" into rvc-dev 2020-04-03 23:15:44 +00:00
TreeHugger Robot
330450c283 Merge "freezer: disable on "am dumpheap <pid>"" into rvc-dev 2020-04-03 23:04:48 +00:00
TreeHugger Robot
2c1f53ad6f Merge "Disable the freezer while we're collecting binder interface descriptors." into rvc-dev 2020-04-03 22:41:52 +00:00
TreeHugger Robot
222153bb6b Merge "Remove insets before calculating bounds" into rvc-dev 2020-04-03 22:36:38 +00:00
Yan Wang
57179c5fb1 iorap_functional_test: Add iorap function test.
Changes:
* Check logcat instead of db to confirm each step.
* Include version invalidation.

Bug: 152443508
Bug: 148936893
Test: atest iorap-functional-tests on cuttlefish.
Change-Id: I27e8fc8705889a04cb6f38295b64a25c1aceb742
2020-04-03 15:36:20 -07:00
Hongyi Zhang
b11ab47265 Merge "DeviceConfig: Unban all banned namespaces if any banned one unbanned" into rvc-dev 2020-04-03 22:17:32 +00:00
Phil Burk
576e2cc6fe Merge "BluetoothMidi: ignore reserved bit in header" into rvc-dev 2020-04-03 22:15:13 +00:00
Robert Carr
92e08bf997 SurfaceView: Ensure we don't fill unused BLAST Transaction.
If BLAST is enabled and we somehow end up in positionLost or
setParentSpaceRectangle without having called setUseBLASTSyncTransaction
we will end up putting operations in to a Transaction which will never be
applied. This condition should be considered a bug, but it's best to
defend against it. To compensate, rather than checking the global
use BLAST flag, we check if the current draw is actually using
BLAST.

Bug: 152663327
Bug: 152780239
Test: Existing tests pass
Change-Id: I3c05b83400b59be82a339933fc8ef1382d4f0e21
2020-04-03 15:07:35 -07:00
Lyn Han
e1cf3b2d9c Illustrations for empty overflow (light/dark modes)
onResume, BubbleOverflowActivity lazy-updates UI theming

The stack has to collapse for the user to make theming changes, so
onResume is guaranteed to run before the user sees the overflow again.

Fixes: 148879187
Fixes: 149711636
Test: manual: toggle light/dark mode -> illustration updates

Change-Id: Iaad6c92d140e141ca9203990efc07df16cc7edf8
2020-04-03 15:00:47 -07:00
TreeHugger Robot
5afebd9a44 Merge "[incfs] fix the storage loading for existing mounts" into rvc-dev 2020-04-03 21:56:03 +00:00
sallyyuen
d3ef403fc3 Laziliy initialize SystemActionPerformer
Tests indicate starting up AccessibilityManagerService takes 5ms longer
than expected and may be due to ag/9726764. Unsure how that change
could cause it, but we can take action and avoid initializing
SystemActionPerformer on start up.

Bug: 145909124
Test: builds and registers actions
Change-Id: Id7b8d5bfc450f96691b1810bf701644a0b1ef637
2020-04-03 14:50:02 -07:00
Rob Carr
73e4cc48c7 Merge "BLASTBufferQueue: Fix unnecessary copying of Surface" into rvc-dev 2020-04-03 21:48:08 +00:00
TreeHugger Robot
fa25797fb1 Merge "Allow Test Harness Mode when secure ADB is disabled" into rvc-dev 2020-04-03 21:39:32 +00:00
chaviw
45c25bfc1b Added test for isAnimating bug
Fixes: 152657145
Test: WindowContainerTests#testIsAnimating_typesToCheck
Change-Id: Id2b99e6d50ae1ee6cc8df870077cb542b2127601
2020-04-03 14:35:50 -07:00
chaviw
6103c92a56 Override base isAnimating in WindowState
WindowState overrides the isAnimating call. A new base method was added
to handle specific animation types, but the WindowState class was still
overriding the old isAnimating call. Therefore, the check for insets
provider was not handled.

Test: NexusLauncherTests
Fixes: 152657145
Change-Id: I32f5469fa992adb712779a6cb961bd3a1b44a227
2020-04-03 14:34:29 -07:00
chaviw
9177c77262 Ignore specified animation types when checking isAnimating
The check isAnimating is used in a lot of places to determine if the
apps can hide, show, removed, etc. However, we don't always want to
check if any animation is running, just if a specific animation.
This change adds a new method that allows the caller to check if
isAnmating but ignore certain animationTypes.

This is specifically needed for ScreenRotationAnimation refactor to
ensure we can ignore screen rotation animation when checking
isAnimating. Otherwise, screen rotation will block hiding closing apps
if rotation occurs at the same time.

Test: WindowContainerTests
Bug: 152333373
Bug: 149490428
Change-Id: I922e3a5698f5db4dcc819a59ebfde2cd0301d7d2
2020-04-03 14:34:15 -07:00
Curtis Belmonte
f1ef159a7f Merge changes I7dcdef58,Ibba26a57 into rvc-dev
* changes:
  Make BiometricServiceBase more robust to HAL crash
  Fix BiometricServiceBase crash in handleEnumerate
2020-04-03 21:33:58 +00:00
Winson Chung
616fcd819d Merge "Remove the input consumer surfaces when the consumer is disposed" into rvc-dev 2020-04-03 21:32:17 +00:00
Christine Tsai
f3d5e7329b Merge "Clean up unused LogEvent constructors" into rvc-dev 2020-04-03 21:03:57 +00:00
Chris Wren
65a70c93a3 add westworld log to global actions
Bug: 147508238
Test: atest GlobalActionsDialogTest
Change-Id: I298f4737e022b4d8aff51891a2b283a2c6679ffe
2020-04-03 21:03:39 +00:00
Hui Yu
4fca9fc778 Add BIND_INCLUDE_CAPABILITIES flags to SystemCaptionsManagerService
When system process binds to SystemCaptionsManagerService, add BIND_INCLUDE_CAPABILITIES

Bug: 153144383
Test: adb shell dumpsys activity -a, observe com.google.android.as
process has capability 7.

Change-Id: I3284ac60a3032c68b378570ceb20129916445596
2020-04-03 13:52:40 -07:00
chaviw
945f7301f0 Added displayPosition in LogicalDisplay
Allow WindowManager to get display position from DisplayManager. This
will allow display animations to work since we need to know the initial
position of the display to correctly handle animations

Test: LogicalDisplayTest
Bug: 149490428

Change-Id: I5de2495982294ffa0437d8e87a43bf1d2fd0d86a
2020-04-03 13:51:03 -07:00
Tracy Zhou
f1a03e07cd Merge "Get rid of usage of Context#getDisplayNoVerify() in SurfaceViewRequestReceiver" into rvc-dev 2020-04-03 20:43:51 +00:00
Steve Elliott
8d0b0290e8 Merge "Update header text color when theme changes" into rvc-dev 2020-04-03 20:31:14 +00:00
Hongwei Wang
56889eb7ba Merge "Ignore the negative minWidth/minHeight populated from windowLayout" into rvc-dev 2020-04-03 20:28:27 +00:00
Roshan Pius
12e167b30e WifiManager: Update doc for new metered change behavior
Also, explictitly mark OVERRIDE_NOT_METERED in WifiConfiguration
when suggestion is not metered.

Bug: 153127005
Test: Compiles
Change-Id: I917de747406167fc38faa05e15d98a9b867a6ce8
2020-04-03 13:27:50 -07:00
Vinit Nayak
74153ee3e8 Merge "Disabled back gesture when quickswitching if needed" into rvc-dev 2020-04-03 20:27:50 +00:00
Hai Shalom
faac9ca5a9 Merge "[DPP] Fix typo in javadoc for SUCCESS_CONFIGURATION_APPLIED" into rvc-dev 2020-04-03 20:21:34 +00:00
Marco Ballesio
d1b29e838a freezer: disable on "am dumpheap <pid>"
heapDump() is used to collect process heaps via "am dumpheap <pid>". It is
alternative to "dumpsys meminfo" and would hang if called on a frozen
process. In this patch:

 - disable freezer before the binder transaction to collect heap data
 - install a man-in-the-middle callback to handle completion of
   collection. The new callback will invoke the original one from the client
   and then enable the freezer again.

Change-Id: I43f501a88a7325d1bd2b3d1c6eb4a4d03b97a691
Test: am dumpheap <frozen process pid>
Bug: 151225245
2020-04-03 13:16:38 -07:00
Yurii Zubrytskyi
107ae35444 [incfs] fix the storage loading for existing mounts
IncrementalService used to keep the storage parameters in the
directory metadata, but our current incfs doesn't support
metadata on directories - so the storage id is encoded in its
name. But the loading code used to think it's still in the
metadata and couldn't load anything for that reason

Bug: 151241369
Test: install an app and reboot the phone. It's still there
Change-Id: Ic93f8f368b48fc5c5cc9bb726eff80478183596c
2020-04-03 13:15:53 -07:00
Henry Fang
bc93009274 Merge "Add test api for CTS to test resource lost event" into rvc-dev 2020-04-03 20:09:19 +00:00
Selim Cinek
0c33b0a842 Merge "Fixed a test for app ops icons" into rvc-dev 2020-04-03 20:00:27 +00:00
Selim Cinek
78c8731c20 Fixed a test for app ops icons
Bug: 150905003
Test: atest SystemUITests
Change-Id: I0c2c6a3f5b041e874bd3e0a5ff7b9e1e407e5e70
2020-04-03 19:59:53 +00:00
TreeHugger Robot
59a65bdc0f Merge "Revert "Fix DecorView error about non-visual context"" into rvc-dev 2020-04-03 19:53:56 +00:00
Andrii Kulian
f9df4a8130 5/n Add support for multiple task display areas
Replaces the references to DisplayContent#mTaskContainers field with
iteration over all child task containers where necessary.

This does not change the behavior for the regular non-foldable
devices, since they would normally have only one task display area,
so iterating throught the list is logically equivalent to referencing
it directly.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: Ibc1b18ad4c06236e944abd49089672105506ec2c
2020-04-03 12:53:09 -07:00
Curtis Belmonte
da9204a96b Improve a11y for BiometricPrompt credential view
Ensures text that is important for accessibility in the auth prompt
credential view is read aloud by TalkBack.

Test: Manual:
1. Set PIN/pattern/password as screen unlock method
3. Enable Talkback in settings
4. Launch the CtsVerifier-v2 test app
5. Open SECURITY > Biometric Tests > BIOMETRIC+CREDENTIAL TESTS
6. Tap 4a: SetUserAuthParams: Credential, Cipher
7. Tap Choose Unlock time-based key with credential
8. Enter an incorrect PIN/pattern/password

Fixes: 151389440
Fixes: 151390960
Change-Id: I95c38cb678b0ae46988539b167c48fe9572677bc
2020-04-03 12:38:01 -07:00
Ned Burns
42c2b4fa22 Merge "Emit onRankingApplied in NEM" into rvc-dev 2020-04-03 19:36:20 +00:00
Ned Burns
c8048daed2 Don't crash if NSSL gets incomplete gesture
In *theory*, a View should always receive an ACTION_DOWN before
receiving any other touch events, but this isn't always the case in
practice. Whenever we see one of these "partial" gestures, we should
ignore it until a real one starts.

Test: manual
Bug: 146323887

Change-Id: I22182d90b0057df67fbd6d20785da23d6c17dcf3
2020-04-03 15:14:13 -04:00
tsaichristine
c7911dd000 Clean up unused LogEvent constructors
After switching to the new socket schema, we can remove certain LogEvent
constructors. AttributionNodeInternal was only used in tests and can be
removed as well.

Bug: 14959031
Test: bit statsd_test:*
Change-Id: Ib5cb6acc50cc4d37a46a076d41face452a0a87d8
2020-04-03 12:12:24 -07:00
Kevin Han
7d00ba0dfe Merge changes I92ee530a,I5a528d65,Ifb3a9ff7,I0c841bec into rvc-dev
* changes:
  Dispatch bind pipeline at end of UI thread handler
  Fix modifying NBP callbacks in the callback
  Refactor heads up view binding
  Change free API to free when the content is safe
2020-04-03 19:09:25 +00:00