Commit Graph

298060 Commits

Author SHA1 Message Date
Wale Ogunwale
3d0bfd9530 Prevent orphaning of windows when token is removed
When the owner of a window token requests window manager to remove the
token, we were removing it from it's parent which orphaned the token
and all it's windows and prevented them from being accessed from calls
like forAllWindows(). This problem wasn't visible before as the token
windows would still be in the window list, so they can still be accessed
for the exit animation transition which eventually removes them.
We no longer remove tokens from their parent we when are asked to remove
them from the system. We just set WindowToken.setExiting() so the token
can be removed once all its windows are removed at the end of the exit
animation.

Also,
- In AppWindowToken.removeIfPossible() and Task.removeIfPossible(), call
removeImmediately() instead of parent.removeChild() to make sure the
token and its windows are properly clean-up and avoid orphaning if they
aren't.
- Added DisplayContent.reParentWindowToken() for changing the display a
window token is on which is different from DisplayContent.removeWindowToken
which prepares the token and it's windows to be removed from the system.
- Renamed WindowToken.explicit to WindowToken.mPersistOnEmpty which is
what it does.

Fixes: 33098800
Test: bit FrameworksServicesTests:com.android.server.wm.WindowTokenTests
Test: Make sure toast windows don't persist on screen.
Change-Id: I40e0e8832141514b614e79d8e95cd27f24e52366
2016-12-05 16:50:03 -08:00
Narayan Kamath
d291683d9f Merge "Parcel: Add support for reading/writing lists of Parcelables." 2016-12-05 11:01:58 +00:00
Jorim Jaggi
5968660525 Merge "Don't disable search on Keyguard" 2016-12-05 10:44:35 +00:00
Jorim Jaggi
6aa763bbed Merge "Deprecate FLAG_DISMISS_KEYGUARD" 2016-12-05 10:43:50 +00:00
Tobias Thierer
57723684f4 Merge "Migrate StrictJarVerifier and ShortcutPackageInfo to java.util.Base64" am: 1e498a96c1 am: 6e2d3fa82f am: 386ba42ec5
am: 589ff8395d

Change-Id: I0861533c48a0eaa1972c95eb796b53dd0b2f3b8e
2016-12-05 09:52:58 +00:00
Tobias Thierer
589ff8395d Merge "Migrate StrictJarVerifier and ShortcutPackageInfo to java.util.Base64" am: 1e498a96c1 am: 6e2d3fa82f
am: 386ba42ec5

Change-Id: I0b0e8139cc084fbdf9918dd700d9be337e0c47df
2016-12-05 09:46:21 +00:00
Tobias Thierer
386ba42ec5 Merge "Migrate StrictJarVerifier and ShortcutPackageInfo to java.util.Base64" am: 1e498a96c1
am: 6e2d3fa82f

Change-Id: I925b0ca87bbd0f3be3f03865f70cafaaa1ef25ba
2016-12-05 09:39:55 +00:00
Tobias Thierer
6e2d3fa82f Merge "Migrate StrictJarVerifier and ShortcutPackageInfo to java.util.Base64"
am: 1e498a96c1

Change-Id: I28b8deadc9386b8772bd94870809213fdddad7e6
2016-12-05 09:35:10 +00:00
Tobias Thierer
1e498a96c1 Merge "Migrate StrictJarVerifier and ShortcutPackageInfo to java.util.Base64" 2016-12-05 09:28:47 +00:00
Sungsoo
e5da16d7dd resolve merge conflicts of a0f3e64 to master
Change-Id: I777a4410f89a8cc35db76ae0c98e54aee68703ad
2016-12-05 15:18:38 +09:00
Sungsoo Lim
a0f3e642a4 Merge "ExifInterface: fix NegativeArraySizeException" am: c57b472d67 am: 582e612fdc
am: 52dd278eb3

Change-Id: I511eb25ec5124d989889fcf9da33a167eed63bcd
2016-12-05 04:54:35 +00:00
Sungsoo Lim
52dd278eb3 Merge "ExifInterface: fix NegativeArraySizeException" am: c57b472d67
am: 582e612fdc

Change-Id: I671ef98f05431e7c4baa2a7b84f6cb04a82c5d9d
2016-12-05 04:47:33 +00:00
Sungsoo Lim
582e612fdc Merge "ExifInterface: fix NegativeArraySizeException"
am: c57b472d67

Change-Id: Ifbe9af9b62837923e6e56159759da6c59795b3aa
2016-12-05 04:41:30 +00:00
Sungsoo Lim
c57b472d67 Merge "ExifInterface: fix NegativeArraySizeException" 2016-12-05 04:35:19 +00:00
Tomasz Mikolajewski
e4ba777a18 Merge "Add CATEGORY_TYPED_OPENABLE for ACTION_SEND[_MULTIPLE]." 2016-12-05 03:20:29 +00:00
TreeHugger Robot
9593f04fb2 Merge "ExifInterface: fix NegativeArraySizeException" 2016-12-05 02:22:46 +00:00
NIEJuhu
dbe99b56ec ExifInterface: fix NegativeArraySizeException
The IFD entry has a 4-byte field COUNT. It is read as int type
and is used as array size by ExifInterface. If a crafted JPEG
file contains a negative value, a NegativeArraySizeException
occurs.

Test: passed ExifInterface CTS
Change-Id: Ief29936400f04636928df09e7f357cbf25345383
Signed-off-by: NIEJuhu <niejuhu@xiaomi.com>
2016-12-05 09:18:58 +09:00
Yifan Hong
a0291419e1 Merge "Use IBase instead of IBinder for IServiceManager." am: 8ead2f0c9a am: dab9e7bfc7 am: bc9c711513
am: ae68a5cb29

Change-Id: I29e0b6276239da96c0ab0f57c8b0841d079f2316
2016-12-03 23:28:31 +00:00
Yifan Hong
ae68a5cb29 Merge "Use IBase instead of IBinder for IServiceManager." am: 8ead2f0c9a am: dab9e7bfc7
am: bc9c711513

Change-Id: I6047e1d936ef515d531a8ad4b875ab443ff2f50d
2016-12-03 23:22:40 +00:00
Yifan Hong
bc9c711513 Merge "Use IBase instead of IBinder for IServiceManager." am: 8ead2f0c9a
am: dab9e7bfc7

Change-Id: I8c39d01e0670d200c18ba02dbd3d09cea5a503c7
2016-12-03 23:15:52 +00:00
Yifan Hong
dab9e7bfc7 Merge "Use IBase instead of IBinder for IServiceManager."
am: 8ead2f0c9a

Change-Id: Ia18426c336f1ba9c9bceb57db0222ba6c59667a9
2016-12-03 23:10:08 +00:00
Treehugger Robot
8ead2f0c9a Merge "Use IBase instead of IBinder for IServiceManager." 2016-12-03 23:04:26 +00:00
TreeHugger Robot
c770b052ad Merge changes I71ed6927,If5687e31
* changes:
  NetworkMonitor: send one DNS probe per web probe
  NetworkMonitor metrics: add first validation information
2016-12-03 20:08:47 +00:00
TreeHugger Robot
0f0e424329 Merge "Use IBase instead of IBinder for IServiceManager." 2016-12-03 19:58:53 +00:00
Jean-Michel Trivi
ce8617c0df Merge "Volume dialog controller: make loading of stream names more robust" 2016-12-03 19:29:17 +00:00
Hugo Benichi
ab61e7c324 NetworkMonitor: send one DNS probe per web probe
This patch changes sligthly the two web probes mechanism for captive
portal detection and network validation so that DNS resolution is always
done for both probes.

In general the target web servers of the two parallel HTTP and HTTPS probes
are now different. This introduces a bias in the latency measurement of
th HTTPS probe since this latency will also include DNS resolution in
general.

Test: manual verification + $ runtest frameworks-net
Bug: 32198726
Change-Id: I71ed6927f5d9cdab0d0236cc147fe1c5735a1245
2016-12-04 03:39:16 +09:00
Hugo Benichi
147aa6d53b NetworkMonitor metrics: add first validation information
This patch adds first validation information to:
  - ValidationProbeEvent, by extending the probe_type int field of to
    also include a bit indicating if the probe was part of a first
    validation attempt or not.
  - NetworkMonitorEvent, by defining new contants for the event_type
    field.

Test: $ runtest frameworks-net
      + manually generating events and inspecting the
        output of $ adb shell dumpsys connmetrics list
Bug: b/32198726
Change-Id: If5687e310ddd18ed3096f8ecbdfc2ef866519234
2016-12-04 03:38:54 +09:00
Yifan Hong
95c1cd53d9 Use IBase instead of IBinder for IServiceManager.
Test: compiles with mma
Change-Id: I5805df48aa358dcef555125f6467d659f095b0c2
2016-12-03 15:15:35 +00:00
TreeHugger Robot
1d31ab693e Merge "Import translations. DO NOT MERGE" 2016-12-03 10:16:16 +00:00
Bill Yi
1b16871ea7 Import translations. DO NOT MERGE am: 52ae3289fb -s ours
am: b344ba69e6  -s ours

Change-Id: I55feaa7bef40a53abc0493199cce24e8e66106ab
2016-12-03 10:04:23 +00:00
Bill Yi
b344ba69e6 Import translations. DO NOT MERGE
am: 52ae3289fb  -s ours

Change-Id: I77c441b5116ab1dc8d9236cdb38bf776afaa88e4
2016-12-03 09:59:20 +00:00
TreeHugger Robot
0e1f49908c Merge "Import translations. DO NOT MERGE" 2016-12-03 09:48:48 +00:00
TreeHugger Robot
b9bbd433ae Merge "Import translations. DO NOT MERGE" 2016-12-03 09:18:09 +00:00
TreeHugger Robot
4e01cdb7cd Merge "Import translations. DO NOT MERGE" 2016-12-03 09:17:37 +00:00
TreeHugger Robot
784f8534cb Merge "Import translations. DO NOT MERGE" 2016-12-03 09:17:10 +00:00
TreeHugger Robot
dcee02a384 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:16:47 +00:00
TreeHugger Robot
db1dc7c646 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:16:27 +00:00
TreeHugger Robot
e7d3413ec7 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:15:56 +00:00
TreeHugger Robot
a7e5278f80 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:15:33 +00:00
TreeHugger Robot
9030c65502 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:15:09 +00:00
TreeHugger Robot
408c3e5901 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:14:47 +00:00
TreeHugger Robot
488b600356 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:13:52 +00:00
TreeHugger Robot
ab084fb896 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:13:30 +00:00
TreeHugger Robot
4a1e1d0441 Merge "Import translations. DO NOT MERGE" 2016-12-03 09:12:12 +00:00
TreeHugger Robot
195db4123f Merge "Import translations. DO NOT MERGE" 2016-12-03 09:11:29 +00:00
Bill Yi
52ae3289fb Import translations. DO NOT MERGE
Change-Id: Ifb7cde4b8e869f98f49a2fb0270bc9cd30ed7b0d
Auto-generated-cl: translation import
2016-12-03 00:20:58 -08:00
Bill Yi
6561ccdb99 Import translations. DO NOT MERGE
Change-Id: I20348078648afcf2a154494348d2b55cd3fb2f62
Auto-generated-cl: translation import
2016-12-03 00:17:44 -08:00
Bill Yi
e16ad05887 Import translations. DO NOT MERGE
Change-Id: Icd4e321f703bc7d994152dd5f29bb692f1529b83
Auto-generated-cl: translation import
2016-12-03 00:11:42 -08:00
TreeHugger Robot
3fdcd78a29 Merge "APF: also drop any ICMPv6 RSs" 2016-12-03 07:21:08 +00:00
Hugo Benichi
f98182ef5e APF: also drop any ICMPv6 RSs
Test: new unit test + $ runtest franeworks-net
Bug: 32833400
Change-Id: Ibd7ce2e3565eab74043fe9604fe2b23abd53a2eb
2016-12-03 14:38:58 +09:00