Commit Graph

417548 Commits

Author SHA1 Message Date
TreeHugger Robot
0f10625790 Merge "Fix crash of test after finishing RecentsAnimationTest" into qt-dev 2019-06-12 04:53:47 +00:00
Andreas Gampe
e252d155b1 Merge changes I66eac0c5,I07602072 into qt-dev
* changes:
  Frameworks: Add fdatasync after dumping a trace
  Frameworks: Change Java stack trace dumping
2019-06-12 02:58:31 +00:00
Andreas Gampe
72768ed944 Frameworks: Add fdatasync after dumping a trace
Ensure that data hits storage when dumping.

Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Merged-In: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
Change-Id: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
2019-06-12 02:58:16 +00:00
Andreas Gampe
fa178e14b9 Frameworks: Change Java stack trace dumping
When dumping stacks, e.g., for ANRs, even if the "Java" version from ART
reports success, check that output was generated, and fall back to a
"native" dump if the output is too small, currently set at one hundred
bytes.

Add more logging of failure paths.

Fix some error logging in native to go to logcat instead of stderr.

Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Exempt-From-Owner-Approval: Cherry-pick
Merged-In: I0760207229989f6f34e10edcf45fb140bc81d0e5
Change-Id: I0760207229989f6f34e10edcf45fb140bc81d0e5
2019-06-12 02:56:49 +00:00
Xiangyu/Malcolm Chen
1f7ee0bc98 Merge "Make sure on non-dds phone, try MMS data connection when PS is not attached." into qt-dev 2019-06-12 02:23:13 +00:00
TreeHugger Robot
a66bfb90b6 Merge "audioservice: add RTT mode observer" into qt-dev 2019-06-12 01:02:33 +00:00
Anil Admal
1c60a7c773 Merge "Emergency location notification text must be in the correct language" into qt-dev 2019-06-12 00:59:15 +00:00
TreeHugger Robot
b349bcf5a5 Merge "Fixes bad merge in Assistant Handle logic" into qt-dev 2019-06-12 00:15:36 +00:00
Matt Pietal
0ebf0252e0 Merge "GlobalScreenshot - Fix race condition" into qt-dev 2019-06-12 00:04:23 +00:00
Anil Admal
6acd4d7ee8 Emergency location notification text must be in the correct language
When the sytem language is changed, the emergency location user
notification text is not posted in the new language unless the
system server is restarted.

Bug: 116328114
Test: Visually verified that the notification reflects system
      language changes.

Change-Id: I63c265da985395879683484af94e10159557789a
2019-06-11 23:07:42 +00:00
TreeHugger Robot
bd32a804ef Merge "Fixed an issue where the background was visible while pulsing" into qt-dev 2019-06-11 22:55:02 +00:00
Malcolm Chen
6499e6d95b Make sure on non-dds phone, try MMS data connection when PS is not
attached.

Before setting up data connection, we check if it's on non-dds and
voice is registered on non-LTE network, if true we'll setup the data
connection even if it's not attached.

Bug: 134086103
Test: manual
Change-Id: I43e150c1d0cc4065da07f4a5ec738b967e7a9a6d
2019-06-11 22:22:53 +00:00
Govinda Wasserman
24ca1bb1bf Fixes bad merge in Assistant Handle logic
Test: atest AssistHandleBehaviorControllerTest
BUG:134572553
Change-Id: Ifdbaa45046f68f6af8708180abe97085ab70af0f
2019-06-11 18:21:38 -04:00
Eric Laurent
6acdc094d6 audioservice: add RTT mode observer
Add content observer for RTT mode: when RTT is ON during a call,
The assistant is allowed to capture audio similarly to when an
accessibility service is in the foreground.

Bug: 132976361
Test: use voice input during a call with RTT enabled.
Change-Id: Ief04d886370b50ae3dac0a72dbd1a4ea5f2c66a3
2019-06-11 15:01:45 -07:00
TreeHugger Robot
6210ac615e Merge "Moving some methods to PendingIntentController" into qt-dev 2019-06-11 21:53:06 +00:00
TreeHugger Robot
2b2d6f58c1 Merge "Gesture exclusion for seekbar thumbs/edit handles" into qt-dev 2019-06-11 20:25:45 +00:00
Matt Pietal
777c82d9b7 GlobalScreenshot - Fix race condition
It is possible for the call to system windows to occur slightly after
the ChooserActivity gets launched, therefore preventing it from ever
showing. Wait on the future before attempting to launch the activity.

Bug: 134976976
Test: Screenshot, then share over and over
Change-Id: Iba98a079412f8e35643f3a1db04e749b3c654637
2019-06-11 15:50:54 -04:00
Selim Cinek
0acf430f12 Fixed an issue where the background was visible while pulsing
We were using our own right instead of the current right to render
the background.

Fixes: 135042415
Test: atest SystemUITests
Change-Id: I853d1ee4d2e9f8472c9786e3ce8f68ab605d1bcd
2019-06-11 12:43:03 -07:00
TreeHugger Robot
0c7bac8718 Merge "Adds note about _native namespaces" into qt-dev 2019-06-11 19:24:29 +00:00
TreeHugger Robot
192b61833d Merge "Link to death of external vibrations" into qt-dev 2019-06-11 18:05:38 +00:00
Adrian Roos
f5432f1862 Merge "DecorView: Fix status guard" into qt-dev 2019-06-11 17:34:32 +00:00
Riddle Hsu
e2e5ee1c39 Fix crash of test after finishing RecentsAnimationTest
The scheduleIdleLocked may be called when updating visibility
of activity. That will cause a mocked record to be used in
unexpected invocations.

Also block until the test thread has completed the pending
messages to prevent the execution from overlapping with the
next test.

Fix: 134891465
Test: atest RecentsAnimationTest
Change-Id: I339505ee75ba6e67aa8668dd4e40aef0f74df2aa
2019-06-12 01:28:56 +08:00
Patrick Baumann
b816823ba3 Adds note about _native namespaces
This change is purely documentation and addresses the use of _native for
device config namespaces.

Bug: 129344328
Test: N/A
Change-Id: I4eea3252be39024c02e4e601b6892223b009c82f
2019-06-11 10:17:49 -07:00
Jorim Jaggi
c10f3c1c1a Merge "If window isn't requested to be visible, don't consider it" into qt-dev 2019-06-11 17:00:55 +00:00
TreeHugger Robot
9388e83d7f Merge "Add comments to frozen AIDL API files" into qt-dev 2019-06-11 16:18:57 +00:00
TreeHugger Robot
94f7f39a01 Merge "Prevent dismissing starting window when reopening app" into qt-dev 2019-06-11 15:20:51 +00:00
TreeHugger Robot
7ac45d97cf Merge "Fixed an issue where test had lingering inflations" into qt-dev 2019-06-11 15:10:50 +00:00
Adrian Roos
27db0caaca DecorView: Fix status guard
Fixes several issues with the status guard:
- poor background color for light status bar background
- guard & action mode need insets for the navigation bar in landscape
- status guard was not properly dismissed after completion of the action mode
- uses the proper non-zero root inset when LAYOUT_HIDE_NAVIGATION is unset & in landscape

Bug: 132924796
Test: make ApiDemos, use SystemUiModes activity to trigger action mode
Change-Id: Ie9ba2b6fb2c87a1825df85f756ffb062a45d4f55
2019-06-11 17:09:12 +02:00
Adrian Roos
7a84eb8de0 Merge "ScreenDecor: Fix cutout overlay regression" into qt-dev 2019-06-11 14:52:58 +00:00
Alexey Kuzmin
133815450b Link to death of external vibrations
Bug: 133200481
Test: manual
Change-Id: I6a76b926d60a79fd450a2f7eaf9609243ac0aaf7
2019-06-11 15:06:59 +01:00
Jorim Jaggi
995e106ad7 If window isn't requested to be visible, don't consider it
For the -1 overlay in Launcher, we'd like to keep it invisible
to reduce global system contention, to avoid allocating a surface
when just swiping up. However, this doesn't work yet as we always
consider the window as interesting even though it requested to
be not visible.

To fix that, we only consider a window as interesting if it has
also requested to be visible. Note: This doesn't apply for the main
window.

Test: go/wm-smoke
Test: Swipe up with special home APK
Bug: 123539527
Change-Id: I19f712051b51fed0435d80442ecb7bd9b0a69f80
2019-06-11 13:12:38 +00:00
Selim Cinek
69d11c2e56 Fixed an issue where test had lingering inflations
Because we are overriding the mainLooper and certain tests
had lingering inflations, when those inflation finished,
the main handler had been changed again.
We should really look into if this is 100% necessary in the
future but this should fix the flakey tests.

Fixes: 131413417
Test: atest SystemUITests
Change-Id: I761eace99cbedc2fa57e90016152c6d29b351dc2
2019-06-10 23:52:32 -07:00
PO HUNG CHEN
13ee78763d Merge "Stub the oemlock operations when the PersistentDataBlock is not supported" into qt-dev 2019-06-11 05:48:28 +00:00
TreeHugger Robot
c0d808a274 Merge "AccessibilityNodeIdManager should hold onto weak references of Views." into qt-dev 2019-06-11 05:09:12 +00:00
Qasid Ahmad Sadiq
2e6efdefa6 AccessibilityNodeIdManager should hold onto weak references of Views.
... as opposed to strong references.
In case the calls between register and unregister aren't matched, we don't want to be leaking views.
I haven't seen any real eveidence of there being leaks, just a report. But this is preventative.

Created a "WeakSparseArray", which wraps SparseArray, and passes in a kind of WeakReference that has an id.
The references become unreachable, we use the id to remove the the entry from the SparseArray.

Test: Used the device for a bit with talkback on. CTSAccessibility*
Change-Id: I8d11727428f56fc06007232ae341d1409a11991f
Fix: 134506015
2019-06-10 19:47:34 -07:00
TreeHugger Robot
e33ff60894 Merge "Try augmented autofill if regular autofill is disabled." into qt-dev 2019-06-11 02:35:38 +00:00
Hongyi Zhang
365e2c0dae Merge "Fix NPE in removeGeofence" into qt-dev 2019-06-11 00:04:24 +00:00
Suprabh Shukla
cefb4b51da Moving some methods to PendingIntentController
Few code paths were still using the AMS lock which would cause races
corrupting PendingIntentRecord data.

Test: Builds. Existing pending intent tests pass:
atest CtsAppTestCases:android.app.cts.PendingIntentTest

Bug: 134707863
Change-Id: If55c0df1a24b50e72eb38f24d69a5a4aa1e8bfb3
2019-06-10 16:56:32 -07:00
TreeHugger Robot
335dfdec1e Merge "Correct sequencing of widget vs boot-complete broadcasts" into qt-dev 2019-06-10 23:35:20 +00:00
Adam He
3ca2ba3811 Try augmented autofill if regular autofill is disabled.
Fixes: 134914712
Test: atest android.autofillservice.cts.augmented
Change-Id: I7440bc4a9bff0b62b2625cd5bf24d3e276e4802c
2019-06-10 16:21:31 -07:00
Mehdi Alizadeh
2407da88a7 Merge "Show notifications when default launcher changes" into qt-dev 2019-06-10 22:39:20 +00:00
Christian Wailes
5e468cf4dd Merge "Fixes two data races in USAP pool management." into qt-dev 2019-06-10 22:09:43 +00:00
Quang Luong
8e13ea659e Merge "Made AccessPoint's scan result list thread safe" into qt-dev 2019-06-10 21:37:43 +00:00
Tracy Zhou
94a1aafcaa Merge "Make PiP window visible when user launches PiP in landscape mode" into qt-dev 2019-06-10 21:22:19 +00:00
TreeHugger Robot
e64acbea8e Merge "Guard against null mFunc in PooledLambdaImpl" into qt-dev 2019-06-10 20:28:11 +00:00
Adam Powell
8624121b27 Gesture exclusion for seekbar thumbs/edit handles
Track gesture exclusion rects for seekbars and EditText selection and
cursor handles.

Bug: 133845668
Bug: 129338678
Test: cts/manual
Change-Id: I029d8ba465459f8ecaa14ee8ad0f5f4139b24e65
2019-06-10 20:24:20 +00:00
Mehdi Alizadeh
dc664edb2f Show notifications when default launcher changes
Shows a notification when we have to switch away from Gesture Nav
because the new launcher doesn't support it.

Also shows another notification when previously we had to switch away
from Gesture Nav, but now the new launcher supports it.

Bug: 129532605
Test: Manual test
Change-Id: Ie954dd5dea1b45795f5c0e22ab7cc1cffde4aabe
2019-06-10 13:23:47 -07:00
TreeHugger Robot
d703395fcb Merge "Expose PermissionManager as TestApi and fix SplitPermissionInfo equality" into qt-dev 2019-06-10 20:12:57 +00:00
Andrew Solovay
b230dd4fe6 Merge "docs: Fixing broken HTML" into qt-dev 2019-06-10 18:23:40 +00:00
Hongyi Zhang
0e9ea75079 Fix NPE in removeGeofence
Check if geofence is null before reading getRadius()

Test: run cts-dev --module CtsLocationTestCases --test android.location.cts.LocationManagerTest
============================================
================= Results ==================
=============== Consumed Time ==============
    arm64-v8a CtsLocationTestCases: 1m 21s
Total aggregated tests run time: 1m 21s
============== TOP 1 Slow Modules ==============
    arm64-v8a CtsLocationTestCases: 0.29 tests/sec [24 tests / 81579 msec]
============== Modules Preparation Times ==============
    arm64-v8a CtsLocationTestCases => prep = 4604 ms || clean = 750 ms
Total preparation time: 4s  ||  Total tear down time: 750 ms
=======================================================
=============== Summary ===============
Total Run time: 1m 28s
1/1 modules completed
Total Tests       : 24
PASSED            : 24
FAILED            : 0
============== End of Results ==============
============================================


Bug: 134894083
Change-Id: I71f643688855394e14974170bd2380f66cd51308
2019-06-10 18:11:12 +00:00