113187 Commits

Author SHA1 Message Date
Jeff Sharkey
15be83612c Support overriding calling package in Documents.
Calling package is only used to pick the stack to restore, not for
security purposes.  This lets other system tools (like Printing)
indicate the real caller.

Bug: 11149540
Change-Id: I155e32577eaeda7dfcb80a7d84ac3b54f281590a
2013-10-09 13:52:26 -07:00
Jeff Sharkey
d2e1e810a7 Drop <meta-data> support for DocumentsProviders.
Prebuilts have finished migrating to new <intent-filter> based
approach.  Also update isDocumentUri() to match new definition.

Bug: 11109484
Change-Id: Ib95e2c3f5a9ff70b8d5e411f68ad49d1990dae8c
2013-10-09 13:31:13 -07:00
Jeff Sharkey
e6d419de77 Merge "Grab Activity reference before leaving fragment." into klp-dev 2013-10-09 07:26:11 +00:00
Lorenzo Colitti
2845e5196a Merge "Fix captive portal detection on IPv6 networks." into klp-dev 2013-10-09 02:14:43 +00:00
Jeff Sharkey
78b1370308 Grab Activity reference before leaving fragment.
When creating a new directory, we spawn an AsyncTask and finish the
fragment.  This change keeps an Activity reference to report the
result back to.

Bug: 11137561
Change-Id: Icfccc5e50e8f53a50dced589e1564d64457e0ed0
2013-10-08 17:11:49 -07:00
Brian Carlstrom
6c3baf12e0 Preload DexCaches
Bug: 11045348
Change-Id: Id27333652d4b3b9ace6c1cdf0566bf39bf0084ed
2013-10-08 17:11:17 -07:00
Jake Hamby
b3a69c5dc3 Merge "Fix NPE in CallerInfo.getCurrentCountryIso()." into klp-dev 2013-10-09 00:03:34 +00:00
Jake Hamby
7f5bee01ec Fix NPE in CallerInfo.getCurrentCountryIso().
Internal method CallerInfo.getCurrentCountryIso() can throw NPE
if the country detector's detectCountry() method returns null.
Add code to check that the Country is not null before calling
getCountryIso() on it. Change fallback logic to call
locale.getCountry() whenever countryIso was not assigned.

Bug: 10607906
Change-Id: I08fe3f4d942f67c37a2e6ff0b067fe32ad8a6fa5
2013-10-08 16:31:16 -07:00
Jean-Michel Trivi
c04337aa55 Merge "Make RemoteController weakly referenced by IRemoteControlDisplay" into klp-dev 2013-10-08 23:31:04 +00:00
Jim Miller
888022cfd8 Merge "Fix default clock localization in keyguard." into klp-dev 2013-10-08 23:04:40 +00:00
Ed Heyl
984001af8f merge in KFS78N (no-op) 2013-10-08 15:59:56 -07:00
Jean-Michel Trivi
4348a73bbe Make RemoteController weakly referenced by IRemoteControlDisplay
In the RemoteController implementation, the inner class that
 implements the IRemoteControlDisplay interface must have a weak
 link to the RemoteController instance with which it is associated,
 as MediaFocusControl and RemoteControlClient hold a strong
 reference to this binder object in a different remote process.
 Without a weak reference, any object referencing RemoteController
 couldn't be independently garbage collected without a garbage
 collection in the remote process.

Bug 8209392

Change-Id: I29e4274c45249b3cb0d3d89417c69e8fe8f62fc4
2013-10-08 15:42:31 -07:00
Ed Heyl
bf2993b1ed merge in KQS81M 2013-10-08 15:40:08 -07:00
Adam Powell
79782d7ced Merge "Close context menu dialogs if the menu becomes empty" into klp-dev 2013-10-08 22:34:26 +00:00
Dan Sandler
0dfec17365 Merge "Revert "Show no_sim icon when no SIM card is available."" into klp-dev 2013-10-08 22:32:45 +00:00
Jim Miller
38ab277ad4 Fix default clock localization in keyguard.
Uses new DateFormat.getBestDateTimePattern() to get localized format
string.

Fixes bug 11120830

Change-Id: If49a95ac4f222da7d16523c99476c5895326d71e
2013-10-08 15:32:09 -07:00
Dan Sandler
99270a8972 Revert "Show no_sim icon when no SIM card is available."
It doesn't look good in the combo RSSI layout, and while we could make 
it look better by adding some padding (like the airplane icon), we haven't
had a no_sim icon since ICS and people are pretty much OK with it.

This reverts commit 2eeacc02a252607e7c2fd1a00c60d8aa567694cc.

Bug: 11127588
Change-Id: Ibefd6096171588fcab1e3c5174abda9758cc5f6d
2013-10-08 22:31:25 +00:00
Adam Powell
fd71db8445 Close context menu dialogs if the menu becomes empty
If a view triggers showContextMenu while a context menu is already
shown but contributes no items to the menu the menu dialog would
become empty. Simply close the dialog if this happens.

Bug 11063885

Change-Id: I9e7c96073318c94eda5f1e1c4beb596b3d9da781
2013-10-08 15:20:29 -07:00
Svetoslav
dcd05b440d Merge "Fix a crash in the select printers activity." into klp-dev 2013-10-08 21:28:13 +00:00
Michael Jurka
c39bfa9f0e Merge "Wallpaper cropper should inherit translucent theme" into klp-dev 2013-10-08 21:27:14 +00:00
John Spurlock
fe124594d6 Merge "Tweak status bar gradient." into klp-dev 2013-10-08 21:25:11 +00:00
John Spurlock
02b1bdc28a Tweak status bar gradient.
Bug:10967264
Change-Id: I803420ba332934398b4878644e3a168bd99701ad
2013-10-08 17:22:56 -04:00
Jeff Sharkey
a6af40cda2 Merge "Add secondary external storage support." into klp-dev 2013-10-08 21:05:36 +00:00
Dianne Hackborn
c739a76598 Merge "Wrong argument: handleUnstableProviderDiedLocked" into klp-dev 2013-10-08 20:29:47 +00:00
Alan Viverette
3a407fad35 Merge "Fix HIDE_DESCENDANTS accessibility importance mode" into klp-dev 2013-10-08 20:14:21 +00:00
Daniel Sandler
40bacdf484 Merge "Don't wake users up with low battery sounds." into klp-dev 2013-10-08 20:03:06 +00:00
Daniel Sandler
cd85db331d Merge "Out with the sliders, in with the cog." into klp-dev 2013-10-08 20:02:49 +00:00
Jeff Sharkey
44cbdec292 Add secondary external storage support.
When SECONDARY_STORAGE is defined by the hardware configuration,
include those paths in the new getExternalCacheDirs() and
getExternalFilesDirs() APIs.  Give secondary volumes valid state
until vold reports back.

Bug: 10330128, 10330229
Change-Id: Ifa55bfda47fd7c750f462dd26c98792ad462ab91
2013-10-08 12:57:11 -07:00
Michael Jurka
33c493e653 Wallpaper cropper should inherit translucent theme
Change-Id: Icd13130d6250759c71ef016f62d10d7359cf067e
2013-10-08 12:47:22 -07:00
You Kim
bc74de6722 Wrong argument: handleUnstableProviderDiedLocked
mProvider is HashMap<ProviderKey, ProviderClientRecord>. String
is not correct object for KEY. Complete removal using iterator.

Bug: 11086495

Change-Id: I51e4576544ef02ede6f96938689dd4e43ec6eb4f
2013-10-08 12:22:30 -07:00
Svetoslav
53e8a26d61 Fix a crash in the select printers activity.
When the search view is attached and detached we announce that
 for accessibility. The trouble is that if the activity is being
 torn down we are trying to access resources from a fragment that
 is detached and the qcrash occurs. This change does not try to
 access resources if the activity is finishing and also we do not
 load resource strings if accessibility is not enabled.

bug:11127814

Change-Id: I4a47a8ed3b6a13544cf17b4395560246a33f0e2d
2013-10-08 12:05:24 -07:00
Jim Miller
c23ee579ac Merge "Disable dragging the challenge area when there are no widgets" into klp-dev 2013-10-08 18:38:26 +00:00
John Spurlock
4268600f39 Merge "Translucent sysui flags affect layout." into klp-dev 2013-10-08 18:34:57 +00:00
Daniel Sandler
dea6462aab Don't wake users up with low battery sounds.
Battery sounds will always play when the screen is on, and
then for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT
milliseconds after the screen goes off. After that, low
battery alerts will be pushed out the airlock until the
screen comes back on again.

If battery sounds are suppressed via this mechanism you'll
see a log line like:

	V/PowerUI ( 3161): screen off too long (5779ms, limit
	5000ms): not waking up the user with low battery sound

The default value of LOW_BATTERY_SOUND_TIMEOUT is a settings
provider resource: R.integer.def_low_battery_sound_timeout.

Bug: 10487557
Change-Id: Iddd42038aa630631dc8f1833f20fcc5a0c646681
2013-10-08 17:37:06 +00:00
Daniel Sandler
9f6ed15b7a Out with the sliders, in with the cog.
Bug: 11103061
Change-Id: I58895c426f76f81148e4b0b08115c85f40debf6a
2013-10-08 13:27:33 -04:00
Chris Craik
46ec729a88 Merge "Clean up unused resources" into klp-dev 2013-10-08 17:26:59 +00:00
Torne (Richard Coles)
facf26c053 Merge "Hide Experimental WebView from dev settings DO NOT MERGE" into klp-dev 2013-10-08 17:17:07 +00:00
Adam Powell
2d3f3b1c80 Merge "Fix typo in drawable xml" into klp-dev 2013-10-08 17:15:39 +00:00
Adam Powell
0b6afb3356 Fix typo in drawable xml
Bug 11130411

Change-Id: I76e1f5f684b17a4fa9e3e7064f7ab66029171c70
2013-10-08 10:10:40 -07:00
Jonathan Dixon
be706eb1c1 Hide Experimental WebView from dev settings DO NOT MERGE
Bug 10427705

The persist.webview system property is no longer needed, so removed too.

Change-Id: I8f02736469464b52636f3d59ec8537d11766d39f
2013-10-08 17:59:13 +01:00
John Spurlock
7f4820ae4e Translucent sysui flags affect layout.
Recently removed when they went private, but that was wrong:
they still affect layout.

Bug:11128955
Change-Id: Ic94230732a6b2ff3dcaa79b03e181a4e46585902
2013-10-08 12:54:35 -04:00
John Spurlock
e60b7bf7f5 Merge "Don't crop top-most windows at rest." into klp-dev 2013-10-08 16:36:49 +00:00
Svetoslav Ganov
c2242aac0c Merge "Show unavailable printers disabled and grayed out." into klp-dev 2013-10-08 16:34:59 +00:00
Svetoslav Ganov
ef4a6f8662 Merge "Do not do a layout and write while a cancellation is in progress." into klp-dev 2013-10-08 16:34:27 +00:00
Svetoslav Ganov
92f8648ebd Merge "Make the print dialog floating." into klp-dev 2013-10-08 16:32:52 +00:00
Svetoslav Ganov
69b91e0ecb Show unavailable printers disabled and grayed out.
1. If a printer is not available it has to disabled and grayed out.

2. Cancle a print job if the app does not provide the requested pages.

3. Fix current printer selection flicker when the print dialog is
   showing up. Often the current printer is initially set to the user's
   favorite and then it is changed back to the PDF one.

bug:10983508

Change-Id: I8d53eb992cf1c92675ec09f61b2ec272b962fa68
2013-10-08 09:08:19 -07:00
John Spurlock
65567d4e6c Don't crop top-most windows at rest.
They can affect the system decor state, cropping to their
current requested state is too aggressive.

Bug:11079003
Change-Id: Ifec576d41cdefd1b851463d4b12311f1a8e27b3d
2013-10-08 11:49:47 -04:00
John Spurlock
c8670bbd0a Merge "Remove remaining (unused) sysui asset in classic blue." into klp-dev 2013-10-08 14:38:35 +00:00
John Spurlock
404cd06f54 Remove remaining (unused) sysui asset in classic blue.
Bug: 10918599
Change-Id: I417b32f30dae4211a492120e35716da434a6474b
2013-10-08 14:37:43 +00:00
John Spurlock
1ef5865c29 Merge "Turn debugging off prior to ship." into klp-dev 2013-10-08 13:56:32 +00:00