Commit Graph

54529 Commits

Author SHA1 Message Date
Tomasz Mikolajewski
97dd67cc34 Merge "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."" 2016-01-07 04:47:42 +00:00
Tomasz Mikolajewski
2b93171978 Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."
This reverts commit 95149ab6a5.

Change-Id: I218aa8059ef674400dac8531a86cd326748c26d5
2016-01-07 04:47:03 +00:00
Tomasz Mikolajewski
5a22e1a19d Merge "Remove the flag and make openTypedDocument throw FileNotFoundException." 2016-01-07 03:52:01 +00:00
Tomasz Mikolajewski
95149ab6a5 Remove the flag and make openTypedDocument throw FileNotFoundException.
To be compatible with ContentProvider, DocumentsProvider should not
require checking for a flag before calling openTypedAssetFile.

This CL removes the flag, and makes the default implementation throw
FileNotFoundException instead.

Bug: 26222645
Change-Id: I3492f05804e39583ebb8584109c7017b3082846e
2016-01-07 03:49:14 +00:00
Jeff Sharkey
873b382cfa Merge "Add some TestApis to fix build." 2016-01-07 00:41:45 +00:00
Jeff Sharkey
a73b8fd1f4 Add some TestApis to fix build.
Change-Id: Icf0d8d63f3a41d99e46ebe96003863bae637bd9d
2016-01-06 17:37:32 -07:00
Siyamed Sinir
f744b0793b Merge "New regular expression to autolink URLs" 2016-01-07 00:14:26 +00:00
Philip P. Moltmann
092ec82dc1 Merge "Fix wrong annotation for PrintInfo.Builder.setStatus" 2016-01-06 22:35:35 +00:00
Jeff Sharkey
51f3908c6a Merge "Consistent naming for PackageManager methods." 2016-01-06 22:26:16 +00:00
Jeff Sharkey
e06b4d1d9f Consistent naming for PackageManager methods.
When hidden PackageManager methods take a userId argument, they
should be named explicitly with the "AsUser" suffix.  This fixes
several lagging examples so that we can pave the way to safely
start passing flags to new methods without scary overloading.

Also fix spacing issues in various logging statements.

Change-Id: I1e42f7f66427410275df713bea04f6e0445fba28
2016-01-06 15:21:06 -07:00
Jeremy Joslin
904bfb5fc4 Exit getAllValidScorers early if not the primary. am: 5b294b45d0 am: 2a5f880c9e
am: 0807537ac2

* commit '0807537ac25bb0557a009e64eb1e399296c7531b':
  Exit getAllValidScorers early if not the primary.
2016-01-06 21:52:43 +00:00
Jeff Sharkey
81cf69a3b4 Merge "Update logic for resolving verifiers." 2016-01-06 21:50:06 +00:00
Jeremy Joslin
0807537ac2 Exit getAllValidScorers early if not the primary. am: 5b294b45d0
am: 2a5f880c9e

* commit '2a5f880c9e3c14c5e3421259f7904d9c352f79dc':
  Exit getAllValidScorers early if not the primary.
2016-01-06 21:48:30 +00:00
Jeremy Joslin
2a5f880c9e Exit getAllValidScorers early if not the primary.
am: 5b294b45d0

* commit '5b294b45d0d7afbed71fd2e59342c5ad7b8b7d76':
  Exit getAllValidScorers early if not the primary.
2016-01-06 21:43:24 +00:00
Jason Monk
cd90a54e12 Merge "QS Customize panel cleanup" 2016-01-06 21:43:13 +00:00
Philip P. Moltmann
b8c1a02adb Fix wrong annotation for PrintInfo.Builder.setStatus
Change-Id: I11fd68497c6229d16c0827f4753f485e9095649d
2016-01-06 21:42:31 +00:00
Jason Monk
51c444be14 QS Customize panel cleanup
- Use better service management to ensure onTileAdded and onTileRemoved
   are sent.
 - Fix not always registered as tunable bug.

Bug: 26423350
Change-Id: I56156de8e0edf903509dac594b471700068ebe3e
2016-01-06 16:32:29 -05:00
Jeff Sharkey
2a90f673f5 Update logic for resolving verifiers.
Verifiers or installers may not be encryption-aware, or the user may
have disabled them, so we probe pretty deeply during system boot to
resolve them.  Use the new MATCH_SYSTEM_ONLY flag to limit results to
packages on the system image.

When there are multiple matches, pick the one with highest priority
instead of crashing the system.

Switch to updated MATCH_ constants in more places.

Bug: 26250295
Change-Id: Ia7a3b1fb74da6c3b9d2c2edbf1deaa9fb52fc40a
2016-01-06 13:49:55 -07:00
Alan Viverette
946502f50a Merge "Cache XML blocks against file name rather than resource ID" 2016-01-06 20:36:05 +00:00
Alan Viverette
b7e3363359 Merge "Clean up asset manager package-private methods" 2016-01-06 20:29:49 +00:00
Alan Viverette
ec76b2a1d8 Merge "Skip the cache when loading drawables from a foreign density" 2016-01-06 20:29:19 +00:00
Alan Viverette
1097961389 Cache XML blocks against file name rather than resource ID
Caching against resource ID leads to incorrect cache hits, since multiple
files (ex. within drawable-mdpi, drawable-ldpi) may map to the same ID.

Also adds nullability annotations.

Bug: 26400880
Change-Id: I4d83caf3c44dc9b546511753e9e72171e8850eb2
2016-01-06 15:27:35 -05:00
Aurimas Liutikas
3a70807125 Merge "Change fragment removal order for fragment replacement." 2016-01-06 19:05:36 +00:00
Chris Craik
4420eae399 Merge "Check api level before throwing in drawable setters" 2016-01-06 18:18:07 +00: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
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
Alan Viverette
7941a7fd8e Skip the cache when loading drawables from a foreign density
Bug: 26400880
Change-Id: I87c06b30afc61495fe62aa6a9dfe77990200cde7
2016-01-06 11:11:53 -05:00
Jason Monk
5a34cb8a73 Merge "More QS Tile modes in the API" 2016-01-06 14:18:57 +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
Jeremy Joslin
5b294b45d0 Exit getAllValidScorers early if not the primary.
This fixes the crash that occurs when getAllValidScorers() is invoked by
a non-primary user when a scorer is active.

BUG: 23040221
Change-Id: I42c9e18d74389be3191258ca5626f2c433ca7cc7
2016-01-05 17:44:05 -08:00
Aurimas Liutikas
61fa2d466a Change fragment removal order for fragment replacement.
Before this patch it for loop was accessing mManager.mAdded elements using
an integer index and also removing the fragments from mAdded using
mManager.removeFragment().

Bug: 24693644
Change-Id: I8e32fffa9f65c2795141f61670956740399960e4
2016-01-05 15:58:29 -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
Chad Brubaker
8885958f4b Merge "Unhide hostname aware isCleartextTrafficPermitted" 2016-01-05 22:37:06 +00:00
Alex Klyubin
4f6d400b0f Merge "No need to pass digest of AndroidManifest.xml around." 2016-01-05 21:19:41 +00:00
Julia Reynolds
ed150013e3 Merge "DND visual interruptions: prevent screen on." 2016-01-05 20:45:45 +00:00
Chad Brubaker
25e34339ba Unhide hostname aware isCleartextTrafficPermitted
Change-Id: Id2bde5889d963ca2820fdecce1628dce022b510b
2016-01-05 11:36:43 -08:00
Kenny Guy
06de4e77c2 Add support message for device admins
Allow admins to set a long and short support
message for settings to display.

Bug: 25659579
Change-Id: Ib645490785642e49c69d8dbc65455eb3398547ee
2016-01-05 19:07:04 +00:00
Roozbeh Pournader
4fac768030 Merge "Avoid matching system locales in locale negotiation" 2016-01-05 18:45:29 +00:00
Julia Reynolds
617215874d DND visual interruptions: prevent screen on.
Bug: 25423508
Change-Id: Ie935a2051e1ae774fbeaf624f3599b2b1bb8666d
2016-01-05 12:49:09 -05:00
Filip Gruszczynski
ce7d682adb Merge "Fix unnecessary relayouts" 2016-01-05 17:25:11 +00:00
Chris Banes
812a806c4d Merge "Fix ToolbarActionBar invalidating destroyed Activities" 2016-01-05 16:33:13 +00:00
Jason Monk
fe8f6826ce More QS Tile modes in the API
Allow tiles to request when they are bound instead of doing it
automatically for them when in the listening state.  Only one
of these modes is allowed for a given tile, meaning it can either
push updates when it thinks they matter, or it can be told when
to update.

Change-Id: I165b39dddb836df90d253aeb5ebea48e62ea0dae
2016-01-05 11:08:05 -05:00
Alan Viverette
e273b93651 Clean up asset manager package-private methods
Refactors duplicate code, flattens methods by inverting if blocks, updates
nullability annotations, fills out missing javadoc, uses consistent
variable names. No functional changes.

Change-Id: I4c3a139197697a9d6f6afc9c428a193c02fc777c
2016-01-05 10:25:54 -05:00
Jorim Jaggi
0fe356e83e Fix unnecessary relayouts
Make sure mPendingBackDropFrame is always up-to-date.

Bug: 26396351
Change-Id: Icb61f3581ee75e94d45fc0f8ae0895535bb130ea
2016-01-05 14:44:07 +01:00
Jorim Jaggi
5098159ae3 Dim stack while dismissing
When dismissing the docked or fullscreen stack, a dim layer is
introduced for a nicer visual effect.

Change-Id: I9f12e331e978208aa9fd9e9883b3c8a36d4da3a0
2016-01-05 13:50:32 +01:00