Commit Graph

228738 Commits

Author SHA1 Message Date
Chong Zhang
f596cd519a Some fixes for docking from navigation bar use case
- Do not set replace window if we are keeping the window.

- After we received the app's addWindow request, do a reset of the
timeout timer to give the app more time to finish drawing. This
reduces the chance of the flash due to the old window being removed
before new window is drawn.

- If we really hit timeout limit, make sure the replaced window
is removed by using removeWindowInnerLocked(), not removeWindowLocked().
The latter does not actually remove the window if it's exiting,
and this leaves the window in the stack and marked not for
for replacing, then it can never be removed.

bug: 26324082

Change-Id: I59594798079481cba9490c4754de1b16533e72fe
2016-01-06 13:15:32 -08:00
Jeff Sharkey
11dce73277 Merge "Add Ethernet feature." 2016-01-06 18:04:57 +00:00
Jeff Sharkey
4efb8b4030 Add Ethernet feature.
Change-Id: I1f1badff5a8c9237d9489497e36e2578266e34b4
2016-01-06 11:02:52 -07:00
Jeff Sharkey
62728e3107 Merge "Discourage use of "_data" column." 2016-01-06 17:26:25 +00:00
Jeff Sharkey
60cfad80bd Discourage use of "_data" column.
Moving forward, all client file access really needs to be going
through explicit APIs like openFileDescriptor(), since that allows
the provider to better protect its underlying files.

This change also changes several classes to use the AutoClosable
pattern, which enables try-with-resources usage.  Older release()
methods are deprecated in favor of close().

Uniformly apply CloseGuard across several classes, using
AtomicBoolean to avoid double-freeing, and fix several resource
leaks and bugs related to MediaScanner allocation.  Switch
MediaScanner and friends to use public API instead of raw AIDL calls.

Bug: 22958127
Change-Id: Id722379f72c9e4b80d8b72550d7ce90e5e2bc786
2016-01-06 10:19:35 -07:00
Geoff Mendal
903d1b7642 Merge "Import translations. DO NOT MERGE" 2016-01-06 17:11:20 +00:00
Geoff Mendal
d737adfd95 Import translations. DO NOT MERGE
Change-Id: I00754c832145f46420748c7e94311ec300a8d96e
Auto-generated-cl: translation import
2016-01-06 18:05:25 +01:00
Clara Bayarri
8819c61bcf Merge "Work Challenge: Handle Recents launches" 2016-01-06 16:57:55 +00:00
Kenny Guy
028d6906d5 Merge "Add support message for device admins" 2016-01-06 16:27:18 +00:00
Clara Bayarri
ea9b10e644 Work Challenge: Handle Recents launches
Intercept calls to start activities from the recents
stack and show the Work Challenge if needed. This requires
passing the taskId to ConfirmDeviceCredential so it can
launch the recents task itself when the credentials are
confirmed.

Change-Id: I013b134f3f31a35b551ad683c68cc89b8af44499
2016-01-06 16:17:08 +00:00
Neil Fuller
feffc39ada Revert "Revert "Hide static setDefault methods in ICU4J""
This reverts commit 2be787e359.

It adds the missing file from the original commit.

Change-Id: Ia2c4a0f3fcc7ce1de222fa39b7fdf2ef7880468a
2016-01-06 15:47:48 +00:00
Jason Monk
6a40ac6cc6 Merge "Some Cleanup" 2016-01-06 15:25:50 +00:00
Neil Fuller
0ff26a767c Merge "Revert "Hide static setDefault methods in ICU4J"" 2016-01-06 15:19:17 +00:00
Jason Monk
2b37190fc5 Some Cleanup
Bug: 26395083
Bug: 26348883
Change-Id: I1e9b92fda1c83420ad72764ce2f02d7f40b34dae
2016-01-06 10:19:04 -05:00
Neil Fuller
2be787e359 Revert "Hide static setDefault methods in ICU4J"
This reverts commit 6a103d33a0.

Change-Id: I4ab268ba6eb22fbbad13ab78f29465ce105026de
2016-01-06 15:17:55 +00:00
Neil Fuller
2e79249795 Merge "Hide static setDefault methods in ICU4J" 2016-01-06 15:01:24 +00:00
Neil Fuller
6a103d33a0 Hide static setDefault methods in ICU4J
Associated with a change in external/icu.

Bug: 25924145
Change-Id: I3fea5e3d88417cfb702550147c0c33d1cd2d0dc9
2016-01-06 14:30:23 +00:00
Jason Monk
5a34cb8a73 Merge "More QS Tile modes in the API" 2016-01-06 14:18:57 +00:00
Geoff Mendal
07354e8788 Merge "Import translations. DO NOT MERGE" 2016-01-06 14:05:03 +00:00
Geoff Mendal
9e6fe0cf38 Merge "Import translations. DO NOT MERGE" 2016-01-06 14:04:33 +00:00
Geoff Mendal
53453502ca Import translations. DO NOT MERGE
Change-Id: Idd3021ee355626bc12361a252aab329d1d116b24
Auto-generated-cl: translation import
2016-01-06 05:57:10 -08:00
Jorim Jaggi
d8fb3ac4b8 Start moving divider only after passing touch slop
So there is a clear distinction between grabbing it and
start moving it.

Change-Id: I51b50220bd35d8040d0c11f131918d9741cd8403
2016-01-06 13:53:28 +00:00
Geoff Mendal
ee03b99a47 Import translations. DO NOT MERGE
Change-Id: I069886b4230a02864c84c5e12d29ac2149f88878
Auto-generated-cl: translation import
2016-01-06 05:53:27 -08:00
Jorim Jaggi
0035e383e4 Make sure to use right thread to change icon
Not sure why this ever worked.

Change-Id: Ib044236856522fb9d9e737c885d5e9223e5f3fe3
2016-01-06 13:52:01 +00:00
Geoff Mendal
41a324ebea Import translations. DO NOT MERGE
Change-Id: Icd9c16ad1f8cad8f53a99a1b7a4d7ca73510881d
Auto-generated-cl: translation import
2016-01-06 05:20:03 -08:00
Tony Mak
64ef34bc1a Merge "Add a new property PROPERTY_WORK_CALL" 2016-01-06 12:25:14 +00:00
Vadim Tryshev
1ee3e370f9 Merge "Fixing crash in D&D due to race conditions during drag end." 2016-01-06 02:55:06 +00:00
Tomasz Mikolajewski
7e6040d981 Merge "Set the default mode to grid view." 2016-01-06 02:45:56 +00:00
Roozbeh Pournader
7eae10928a Merge "For locale negotiation, assume English is always supported" 2016-01-06 01:27:42 +00:00
Roozbeh Pournader
f0ce621ceb Merge "Add pseduolocales back to Settings" 2016-01-06 01:18:21 +00:00
Roozbeh Pournader
4f06e6ed6e Add pseduolocales back to Settings
The change I2f264cdb7b7fc586124dd58fad2c68060d5b7aa8 unintentionally
removed pseduolocales from the list of locales in Settings. This
adds them back.

Bug: 26412909
Change-Id: I1d89154e1c0e0312f996252bbfc9f6ded2412d90
2016-01-05 17:12:15 -08:00
Steve McKay
44408260ba Don't proxy calls to DocumentsAdapter in MultiSelManager.
We were bouncing calls out to the adapter pulled from RecyclerView,
but the adapter is easy to write a test double for and
we can readily inject the adapter when needed at runtime.

Eliminates unnecessary indirection.
Also, protect against failure when documents can't be loaded for delete.

Change-Id: Ief6585bf2e3e4fd407d801d485a9d7cd888b8500
2016-01-05 15:50:35 -08:00
Roozbeh Pournader
fb9236cb0c For locale negotiation, assume English is always supported
In practice, a lot of apps provide English resources as their default
resources, so assume that English is always supported.

With this change, users can safely set secondary locales after
English in their preferred locale lists. Such settings would help
the apps (and parts of the system that are aware of multiple locales)
consider the user's familiarity with the secondary locale or the
user's preference for glyphs forms in the secondary locale.  This
change makes sure that no app unintentionally switches to such
secondary locales.

Note that this doesn't break from the tradition of previous releases.
Traditionally, if the user had set the system locale to English, they
would get the default resources when the app didn't explicitly
provide English resources. This will continue to be the case where
the user's locale list has English in it before another supported
language. (English will be the first locale in most cases.)

Bug: 26192817
Change-Id: I2c1a003760299157786c1b3f9fb116ce18db3b8c
2016-01-05 14:52:38 -08:00
Steve McKay
ab6fb6fcaf Merge "Fix event relay to correctly dispatch events." 2016-01-05 22:47:37 +00:00
Chad Brubaker
8885958f4b Merge "Unhide hostname aware isCleartextTrafficPermitted" 2016-01-05 22:37:06 +00:00
Steve McKay
955e46d004 Fix event relay to correctly dispatch events.
This fixes:
- UI to show selection which was broken in ag/838866
- Delete undo, which throws IOB exception
  when undoing a a full delete of all entries.

Change-Id: Idbb43510974e130d283313602a71ac15ad10aadf
2016-01-05 14:13:57 -08:00
Roozbeh Pournader
37bcaf3b6e Merge "Replace Qaae script with Zsye" 2016-01-05 21:54:29 +00:00
Seigo Nonaka
dcf2ea2fbe Replace Qaae script with Zsye
The emoji variant script "Zsye" is registered in ISO 15924.

Bug: 26226285
Change-Id: Ie561d8192c4ec8f242706339ca67b44133867e50
2016-01-05 21:53:53 +00:00
Filip Gruszczynski
f8b3266124 Merge "Fix flashing dialogs when IME enters/exits." 2016-01-05 21:36:31 +00:00
Filip Gruszczynski
c46f41c5b5 Fix flashing dialogs when IME enters/exits.
The flashing is caused by changing the shown frame of the window
prematurely, before the animation kicks in. After the animation kicks
in, the shown frame goes back to the original position and then animates
to the final position.

We need the shown calculation to happen during layout for resizing and
the layout might be triggered at any time before the animation is run.
In order to avoid flashing, we don't calculate shown frame for windows
that are animating during the layout and let the animation position the
shown frame correctly later.

Includes also logging for inset setting, which triggers layout run.

Bug: 26323134
Change-Id: Ibe1efae798415d3564c659aa94c2b94af92c743a
2016-01-05 13:35:12 -08:00
Alex Klyubin
4f6d400b0f Merge "No need to pass digest of AndroidManifest.xml around." 2016-01-05 21:19:41 +00:00
Tony Mantler
4c66048659 Merge "Increase charlimit for select_logd_size_summaries" 2016-01-05 21:08:47 +00:00
Tony Mantler
ea2295c446 Increase charlimit for select_logd_size_summaries
b/26328941
b/26335699

Change-Id: I40d5b745a5794bc63e3cb4c8bfb357164b36265d
2016-01-05 12:53:51 -08:00
Julia Reynolds
1a3d9ba7cc Merge "Show 'end now' in expanded volume panel." 2016-01-05 20:47:20 +00:00
Julia Reynolds
ed150013e3 Merge "DND visual interruptions: prevent screen on." 2016-01-05 20:45:45 +00:00
Winson Chung
61dead71a4 Merge "Fixing issue with exit animation due to incorrect visibility state." 2016-01-05 19:41:23 +00:00
Chad Brubaker
25e34339ba Unhide hostname aware isCleartextTrafficPermitted
Change-Id: Id2bde5889d963ca2820fdecce1628dce022b510b
2016-01-05 11:36:43 -08:00
Steve McKay
eceac1b1e3 Merge "Move Adapters to their own classes." 2016-01-05 19:29:46 +00:00
Roozbeh Pournader
771bc90e43 Merge "Move Language normalization code from Paint.cpp to Minikin." 2016-01-05 19:27:32 +00:00
Roozbeh Pournader
34c4756e2d Merge "Optimize locale negotiation when there's only one locale" 2016-01-05 19:23:42 +00:00