309376 Commits

Author SHA1 Message Date
Bryce Lee
6d41026f1b Clean up closing apps list when clearing anAppWindowToken's task.
Previously it was possible for an AppWindowToken to be removed while
on the closing apps list, used in transition animations. During these
transitions, the visibility of the token is modified. Since
visibility relies on the WindowContainer parent, a
NullPointerException would occur.

This changelist addresses the issue by making sure to remove any
AppWindowToken from this list when its task is set to null.

Change-Id: Id9234822b228f4658f04d42ac0fe7b49ded6f5a1
Fixes: 35352214
Test: manual (primarily code inspection)
2017-03-01 16:16:34 -08:00
Paul Stewart
32655dfa19 Merge "Fix up EAP-SIM documentation"
am: 2142b14a88

Change-Id: I944734796ea97fded5cc818899ddf7b41cbeca00
2017-03-02 00:12:43 +00:00
Fyodor Kupolov
fa0edc8c51 Log user running states
Test: manual
Bug: 28278870
Change-Id: I6ce20167e98eb44c838a681471095d00c4a6346d
2017-03-01 16:07:07 -08:00
Peter Qiu
f8dbd216c8 hotspot2: expose string constants for cert type and auth methods
So that we can use these constants in WifiService and the apps
as well in the future.

While there, remove auth method "CHAP" from the supported list,
since it is currenlty not supported by WifiService.

Bug: 34206769
Test: make -j32
Change-Id: Icadc3b13f2b135d51445d336116fbba86e96b70f
2017-03-01 16:05:52 -08:00
Treehugger Robot
2142b14a88 Merge "Fix up EAP-SIM documentation" 2017-03-02 00:01:33 +00:00
Android Build Merger (Role)
43d059bf48 Merge "Merge "Remove FastJNI optimization on AssetManager to avoid dead lock." am: 4904e7ae2a am: 07acbea653 am: 0c4cace2a0 -s ours" 2017-03-01 23:59:18 +00:00
Tim Zhang
d2dc222827 Merge "Remove FastJNI optimization on AssetManager to avoid dead lock." am: 4904e7ae2a am: 07acbea653
am: 0c4cace2a0  -s ours

Change-Id: Icbbbc4f885c3839dcbc6c695c2ee3d16c78abf92
2017-03-01 23:58:32 +00:00
Bryce Lee
f1d8cb26af Merge "Revert "Remove activity from task if not set properly."" 2017-03-01 23:58:17 +00:00
Yifan Hong
0c3b6b3eec Merge "getTransport checks interface and instance names." am: 7f0300f1e2 am: 7719c1ad0d
am: cf4bd05edd

Change-Id: I9b811571c301f034c06cdbad5c90afe746023173
2017-03-01 23:46:09 +00:00
Bryce Lee
98689f751d Revert "Remove activity from task if not set properly."
This reverts commit 0f9bde84a1120a17dc73d107fc7bb8e5c8c6e719.

Reason for revert: causing b/35879503

Change-Id: I06402356ecdb559dcb8342f3a6cca755aea6533a
Fixes: 35879503
Bug: 35034729
Bug: 35035258
Bug: 34179495
Test: manual with repro steps
2017-03-01 23:44:43 +00:00
Tyler Gunn
bf8d2a2bf4 Merge "Support for showing self-managed calls in IncallService." am: 5a33057092 am: 8c7d28f163
am: fd0e1a9d93

Change-Id: I88170e214ca6c142e0445a814ad0e76064e72ba7
2017-03-01 23:40:53 +00:00
nharold
d03ccf89bf Merge changes from topic 'query-fplmn-sync' am: 0dc62c6dd3 am: 1f7f262920
am: 3243ec0614

Change-Id: I3da03980792e5fa898b7109dbb2cea7147f7ee94
2017-03-01 23:38:30 +00:00
TreeHugger Robot
fa18d7cd71 Merge "Remove SystemApi from android.permission.REQUEST_NETWORK_SCORES." 2017-03-01 23:34:39 +00:00
Tim Zhang
0c4cace2a0 Merge "Remove FastJNI optimization on AssetManager to avoid dead lock." am: 4904e7ae2a
am: 07acbea653

Change-Id: I0087c756987e31f45a66928e60e5d8d53e26945a
2017-03-01 23:32:07 +00:00
Tim Zhang
07acbea653 Merge "Remove FastJNI optimization on AssetManager to avoid dead lock."
am: 4904e7ae2a

Change-Id: I38169c42b5b5600c0e3d00f0342429b3843f88f8
2017-03-01 23:23:24 +00:00
TreeHugger Robot
de06d67d16 Merge "Added auto-fill support for DatePicker and TimePicker." 2017-03-01 23:15:35 +00:00
Andrii Kulian
ceecd2805f Merge "Compute merged configuration changes" 2017-03-01 23:14:36 +00:00
Hyunyoung Song
e4179e2c4e Change MaskableBitmap to AdaptiveBitmap
Test: $ make dist -j30
b/35399620

Change-Id: I96d6eaceaf7ce9dec7de21634a5fa2bd40b0deba
2017-03-01 15:14:02 -08:00
Treehugger Robot
4904e7ae2a Merge "Remove FastJNI optimization on AssetManager to avoid dead lock." 2017-03-01 23:13:14 +00:00
Wale Ogunwale
5aa8683bb7 Fixed some issues with alert window notifications
- Don't hold window manager lock while calling into notification
manager since it can end up calling into activity manager.
- Fixed issue with using checkCallingPermission() to check if the
system has the internal system window permission. This call fails
if it isn't a binder call. Change to use checkCallingorSelfPermission()
instead.
- Fixed class cast exception while getting app icon by using
IconUtilities class to the the drawable to bitmap convertion.

Change-Id: I4ef380618f558a8aac5b152d97536a614040397f
Fixes: 35780846
Fixes: 35846667
Fixes: 35854470
Bug: 35657567
Test: cts/hostsidetests/.../run-test CtsWindowManagerHostTestCases android.server.cts.AlertWindowsTests
2017-03-01 15:10:17 -08:00
TreeHugger Robot
7bf141233b Merge "IServiceManager/ITokenManager uses "default" service name" 2017-03-01 23:06:02 +00:00
TreeHugger Robot
485c0feea5 Merge "Adding flags to filter dumping of activities." 2017-03-01 22:39:05 +00:00
Mathias Agopian
78eed31d2d Merge "Remove AHardwareBuffer_ API from libandroid" 2017-03-01 22:18:30 +00:00
Tim Zhang
14e0a1e819 Remove FastJNI optimization on AssetManager to avoid dead lock.
I found there was a dead lock among main, android.display and GC threads
when running monkey test.
 - Main thread got a mutex and was suspended by GC thread.
 - Android.display thread waited for mutex held by main thread.
 - GC thread waited for suspention of android.display thread.

This will lead to ANR or screen freeze.

Merged-In: I13cf1eca3cb3b7c01aa754874f2b48aab0b472e8
Change-Id: I13cf1eca3cb3b7c01aa754874f2b48aab0b472e8
2017-03-01 22:17:19 +00:00
Daniel Nishi
19710527d7 Merge "Add a debug flag to disable time correction." 2017-03-01 22:16:48 +00:00
Steven Moreland
8dd89024ec LightService: recover if light hal fails.
- Also cleaned up implementation.

Fixes: 35728264
Test: killing android.hardware.light@2.0-service, lights still work
Change-Id: I608b85491f3b10864b8591e15537777068ded079
2017-03-01 22:09:25 +00:00
TreeHugger Robot
5a7c7b8e53 Merge "Remove FastJNI optimization on AssetManager to avoid dead lock." 2017-03-01 22:06:17 +00:00
Bryce Lee
353112c604 Clear associated task when starting activity in a new task.
In the case that an activity is brought to the foreground with clear
top, we will start it at the top of the source record's task. The
current code sets the task to match the found activity, which will no
longer be the case.

This changelist cleans up this reference so that we do not try to
reparent and instead just add the activity to the task.

Change-Id: Ic7428548fa4972aa19bc9ba890c9edaf2ff31220
Fixes: 35318848
Test: manual by bug repo steps (consistently reproducible).
2017-03-01 14:04:07 -08:00
Christine Franks
70d89be807 Merge "Add QS tile for Night Display when first used" 2017-03-01 22:03:56 +00:00
TreeHugger Robot
f2f36e5f75 Merge "Fix some old and annoying doc problems." 2017-03-01 22:03:23 +00:00
Paul Stewart
906a077cf8 Fix up EAP-SIM documentation
Address API Council comments on doucmentation for the method calls
and constants related to EAP-SIM.  While here, improve unit tests
to ensure that passing a null certificate (chain) causes the config
to forget any existing client certificates.

Bug: 35847887
Test: Unit tests

Change-Id: I1c4e18e1a7cfb61aa4764e32778793368938e70b
2017-03-01 14:02:28 -08:00
TreeHugger Robot
c4584c1da8 Merge "Add a network scorer label metadata field to NetworkScoreAppData" 2017-03-01 21:54:37 +00:00
Yifan Hong
cf4bd05edd Merge "getTransport checks interface and instance names." am: 7f0300f1e2
am: 7719c1ad0d

Change-Id: I8fcb35bdd7325e9bcae169f03142499b2490dd19
2017-03-01 21:54:14 +00:00
Tyler Gunn
fd0e1a9d93 Merge "Support for showing self-managed calls in IncallService." am: 5a33057092
am: 8c7d28f163

Change-Id: I201275ad6daf66201eb57f9215c6ec88fe65539e
2017-03-01 21:50:32 +00:00
TreeHugger Robot
fb64de06cd Merge "Use context's userId in ContentResolver class." 2017-03-01 21:49:30 +00:00
Yifan Hong
7719c1ad0d Merge "getTransport checks interface and instance names."
am: 7f0300f1e2

Change-Id: Ie44e09d89745d2179514c3b9fb8ab80e544e3701
2017-03-01 21:46:05 +00:00
nharold
3243ec0614 Merge changes from topic 'query-fplmn-sync' am: 0dc62c6dd3
am: 1f7f262920

Change-Id: I9cce740f777f0c881b37cbf4752cd81d7f817a41
2017-03-01 21:44:49 +00:00
Tyler Gunn
8c7d28f163 Merge "Support for showing self-managed calls in IncallService."
am: 5a33057092

Change-Id: I3491e4c099abf8ccc504fcb85109ba1576e34aba
2017-03-01 21:41:04 +00:00
nharold
1f7f262920 Merge changes from topic 'query-fplmn-sync'
am: 0dc62c6dd3

Change-Id: Ibc08427e8de920f7f95a6a530b45cfcf8402d203
2017-03-01 21:37:58 +00:00
Treehugger Robot
7f0300f1e2 Merge "getTransport checks interface and instance names." 2017-03-01 21:24:25 +00:00
Selim Cinek
fc9fb15c22 Fixed a bug where a wrong notification could be visible
Because we were not looking at the wrong state and ignoring
gone.

Test: add 4 notifications, pull down and tap on bottom continuously
Change-Id: Ic4370fa89525802ed99377da215085d84642a174
2017-03-01 13:15:09 -08:00
Selim Cinek
c8007c5975 Fixed a bug where the icon would dissappear
If we were inflated on the lockscreen as the only child
the icon would dissappear.

Test: send multiple messages, kill systemui, observe
Change-Id: I81c433292f6839920b99ac124ca1dd17eb6e962e
2017-03-01 13:15:08 -08:00
Selim Cinek
414ad33470 Continued low-priority group implementation
Adapting the low-priority group implementation
according to spec. Expanding a group takes 2 taps now.

Test: add low-priority group observe behavior
Change-Id: Ic563a8fe0e71df746b9b548adc8d1698940b1a83
Fixes: 35125708
2017-03-01 13:15:08 -08:00
Selim Cinek
17fd64b340 Fixed an issue where the minimum height wasn't applied correctly
Test: send multiple message on same thread, observe normal padding
Change-Id: I6d4be7702de0b749963e236cbfa8c1f351742233
Fixes: 35672249
2017-03-01 13:15:08 -08:00
Selim Cinek
4ca6c63c96 Worked around a bug where the view could render blank
Heads up notifications could render blank due to a
bug with invalidation. This works around this issue
by manually invalidating the parent.

Change-Id: I858d1c95bc936f5b14fc3485b2d54d76717c2537
Fixes: 34660898
2017-03-01 13:15:07 -08:00
Selim Cinek
c8df064db3 Fixed another memory leak
Clicked heads-up notifications were never released

Test: runtest systemui
Change-Id: I9a1097fd5d26caca25c784905b60ea4b40468b2f
2017-03-01 13:15:07 -08:00
Selim Cinek
c478f9023d Creating the right views for low-priority group children
Previously we always created the low-priority views even if it
was in a group, but now we use the collapsed or the singleline
one based on the group state.

Test: runtest systemui
Bug: 35125708
Change-Id: I49d418912f65c3bc8b672d383eb6a0526fcb8993
2017-03-01 13:15:03 -08:00
Selim Cinek
1a48babb5e Move the inflation away from the statusbar
Since the notifications need to inflate more dynamically
based on their own state, the inflation is moved away
from the statusbar.
This also improves the apply inplace logic, that was
reinflating all views even if only a single notification
layout was changed.

Test: runtest systemui
Bug: 35125708
Change-Id: I42a33065ab60b7c45ca979ae2d7baa1518bf92b7
2017-03-01 13:14:40 -08:00
Robert Carr
026a6c45e7 Correct dissapearing SurfaceView during exit animations.
We were missing a call to detachChildren in the case
that the visibility change originates from AM (rather than relayout).
Thus we were racing relayout with the client to detach fast enough.
Detach before notifying the client of window visibility changes.

Test: Slow down animation speed. Open close SV app (say Chrome). No flashes.
Change-Id: Ibf027c2ca295f25765ba95b36c1346a715f3bc6e
2017-03-01 13:13:45 -08:00
Carmen Jackson
1ea593325f Merge "Add tracing for broadcast sending and processing." 2017-03-01 21:03:14 +00:00