197173 Commits

Author SHA1 Message Date
Robert Greenwalt
3ac71b7f87 Fix filter on CONNECTIVITY_ACTION updates
Only send for network types which the network supports.

bug:22411968
Change-Id: I97765544eb653caf0ea4fc5d3feec5742d5d88dc
2015-07-10 16:26:40 -07:00
Eric Gilmore
8cce398480 Merge "Adding a link to what is currently our most popular "100 Days" video." into mnc-preview-docs 2015-07-10 23:19:43 +00:00
Wale Ogunwale
26b0f1e420 Merge "Revert "Finish already paused activity if it should be finished after pausing"" into mnc-dev 2015-07-10 22:53:14 +00:00
Adrian Roos
18a0b9e041 Fix flash of uninitialized surface
Fixes a bug where during the animation of
the backdrop uninitialized memory was showing
because the backdrop's alpha was zero, so RenderNode
didn't issue any drawing commands.

Bug: 21472158
Change-Id: I7ad6bb64e739059febffca10463c8097693a9563
2015-07-10 15:50:24 -07:00
John Reck
8657d9e8a5 Merge "JNI optimization tweaks to Paint high-frequency methods" into mnc-dev 2015-07-10 22:46:18 +00:00
Chris Craik
9f00492008 Merge "Reduce cost of span type checking" into mnc-dev 2015-07-10 22:44:28 +00:00
Wale Ogunwale
12bb956828 Revert "Finish already paused activity if it should be finished after pausing"
This reverts commit bef8a3e39372ca85104b894f7359deddc97a8fec.

Changed caused some existing apps to crash. Reverting to unblock the
build while I investigate.

Bug: 22170595
Bug: 22397812
2015-07-10 15:25:38 -07:00
Carlos Valdivia
a3db8acf3d Revert "Revert "Security: AccountChooser shouldn't auto reveal accounts.""
Fixes api stuff.

This reverts commit f2d248db8078e716b809e0a17cacdea5c5609bd5.

Change-Id: I75c05a17ebde4f245e1f3e0cc22e622d06534c4b
2015-07-10 14:47:07 -07:00
Chris Wren
05aa88a937 add new enums to MetricsConstans
Bug: 21114836
Change-Id: Id62701be012c10bc11ee1ff8aa8435e178d35684
2015-07-10 17:33:39 -04:00
Robin Lee
6795a2aeaf Check legacy VPN is connected before alerting
Legacy VPN does nothing if the device has no underlying network
connection, so showing this warning in that case is confusing.

Conversely third-party VPN can still be dangerous since a malicious
app will store sensitive information and upload it later.

Bug: 21499103
Change-Id: I25a0d4e1e5b10198cb067f06645f0e5ecf81bf56
2015-07-10 21:22:46 +00:00
Jorim Jaggi
0c758805b3 Merge "Fix empty keyguard for once and all" into mnc-dev 2015-07-10 21:16:26 +00:00
Jinsuk Kim
256642aa2f Merge "CEC: Do not switch language if the new one is same as the old one" into mnc-dev 2015-07-10 21:09:14 +00:00
Jorim Jaggi
4474f54f4e Fix empty keyguard for once and all
When a Keyguard exit animation was played while the screen was
turning off, the window animation was cancelled. However, since
we didn't reset mPostKeyguardExitAnimation, we thought we need to
apply it again, with a start time of Long.MIN_VALUE. For some reason,
this animation never ended, and it was stuck at the beginning. Thus,
the alpha was 0 and the user just saw a blank wallpaper.

In addition, we also forbid starting the Keyguard exit animation when
the screen is about to turn off.

Bug: 21124013
Change-Id: Ief022c5bd758a9fedcaab3fe9fc385fa4234b37f
2015-07-10 21:06:44 +00:00
Chris Craik
fc121c2430 Reduce cost of span type checking
bug:22378829

Change-Id: I1da5154b2fb4f5032eaed44586d5470d28ceb45b
2015-07-10 13:12:35 -07:00
David Friedman
c1541571ff am 1c231da0: am 48143e6a: Docs: Fixes to Preview "Program Overview" page; rewording on "Support" page
* commit '1c231da06c9e9f82c52d36211a865703a5d0cd62':
  Docs: Fixes to Preview "Program Overview" page; rewording on "Support" page
2015-07-10 20:11:46 +00:00
David Friedman
1c231da06c am 48143e6a: Docs: Fixes to Preview "Program Overview" page; rewording on "Support" page
* commit '48143e6ab960860a87171563d8a7535b41762ffa':
  Docs: Fixes to Preview "Program Overview" page; rewording on "Support" page
2015-07-10 19:55:22 +00:00
Eric Gilmore
08983186de Adding a link to what is currently our most popular "100 Days" video.
Change-Id: Iae8beba1a7530262424d305d0a609b541503b236
2015-07-10 12:42:38 -07:00
David Friedman
48143e6ab9 Docs: Fixes to Preview "Program Overview" page; rewording on "Support" page
Fixes broken anchors in yellow banner on English version. Adds the banner
to non-English version pages. Adjusted wording for a Known Issue on the
"Support and Release Notes" page.

Change-Id: Ia1db8db34cec854bcc4ad7daa1ad44fa23fc878e
2015-07-10 12:39:41 -07:00
Robin Lee
f180fe31de Merge "Legacy VPN calls to require a userID" into mnc-dev 2015-07-10 19:05:38 +00:00
Dan Sandler
a17703138b Allow notification strings to be unredacted in dump output.
This won't happen automatically and unredacted strings will
still not appear in bugreports, but if you are attached via
adb you can now do `dumpsys notification --unredact` to get
the contents of String/CharSequence fields and extras
emitted along with the rest of the dump.

The arg handling is also improved so that multiple filters
can be specified at once, e.g. --package (was "p") to
restrict to a single package, and --stats to get JSON
output.

Bug: 20451514
Change-Id: I37fc5ce86c7e28e8f8286917f6764d64bc081108
2015-07-10 14:56:29 -04:00
Raph Levien
5d1654a943 Merge "Fix StaticLayout crash when maxLines = 0" into mnc-dev 2015-07-10 18:37:49 +00:00
Robert Greenwalt
1570b6b3c7 Merge "Enable EMERGENCY mobile connections." into mnc-dev 2015-07-10 18:23:24 +00:00
Robert Greenwalt
1ebcb6f8b2 Merge "Fix permissions." into mnc-dev 2015-07-10 18:21:48 +00:00
John Reck
c6024cdd35 JNI optimization tweaks to Paint high-frequency methods
Bug: 22378829

Use fast-jni for getFontMetrics, drops from 35us -> 30us
Note the "heavy" part of the method, getMetricsInternal, is
already called by other fast-jni methods.

Use critical array access for getRunAdvance_* methods. This
will avoid the copy and the access is appropriately scoped
and fast enough to not significantly block the moving GC.
Improves from 88us -> 79us on short text

Change-Id: I7c1481c23f6dba3420fbcf48220f6335cf9f6d10
2015-07-10 10:58:46 -07:00
Chris Banes
77cae7869d am 98b1f102: am c2b0d1d4: Merge "Support Library v22.2.0 API diff" into mnc-preview-docs
* commit '98b1f1025c606f955ab9afc3872a435a770e3813':
  Support Library v22.2.0 API diff
2015-07-10 17:54:40 +00:00
Sanket Padawe
194cce695b Changes security for Passpoint to EAP security from "Passpoint".
Bug: 22402754
Change-Id: I3afbb6f3f446657a3e9505122032f4edc6401302
2015-07-10 10:53:31 -07:00
John Reck
2c7ed6e80a Merge "Improve ImageView drawable re-use" into mnc-dev 2015-07-10 17:50:28 +00:00
John Reck
525ac80d2d Merge "Create a thread_local cache for textLocale" into mnc-dev 2015-07-10 17:50:12 +00:00
David Friedman
a2c2cc422c am 3f831568: am 6fb22b4e: Docs: Revisions to top DAC landing page and several Preview-page revisions.
* commit '3f83156867fba70db9f2a03f2f0192d8f3b4688e':
  Docs: Revisions to top DAC landing page and several Preview-page revisions.
2015-07-10 17:43:32 +00:00
Chris Banes
98b1f1025c am c2b0d1d4: Merge "Support Library v22.2.0 API diff" into mnc-preview-docs
* commit 'c2b0d1d42cf6ba2e77fdf31982b3436eeb95b89c':
  Support Library v22.2.0 API diff
2015-07-10 17:39:34 +00:00
Vinit Deshpande
5b7352cf1b Fix multiple SSIDs for same Passpoint issues
This change fixes Wifi Settings UI for passpoint. The
connected notification now should show up only for the
SSIDs that match.

Bug: 22200890
Change-Id: If69a9364eca5505fe2d4037217f1777fa4d823f5
2015-07-10 10:39:16 -07:00
John Reck
476f715822 Create a thread_local cache for textLocale
Bug:22378829

toLanguageTag is significantly more expensive than previously
thought (note ULOC_FULLNAME_CAPACITY is 157) and weighs
in at around 40us. Given that this is called on every Paint
and that there are typically thousands of Paint objects
created this adds up very quickly.

Given that the locale is almost always Locale.getDefault(),
a very simple thread_local cache of size 1 fixes this trivially

Change-Id: I819e60cac7a4b27e9dd5538332c22ce5bbd0851c
2015-07-10 10:08:31 -07:00
John Reck
5a1356916d Improve ImageView drawable re-use
Bug 22403868

Initial attempt only helped if setImageBitmap() was the only
thing called but during new-loading content it's common for a
placeholder to be set via setImageDrawable.

Tweak ImageView slightly to just have a BitmapDrawable that it
lazy-creates but will hold on to for any subsequent calls
to setImageBitmap

Change-Id: I7380521c7b363d458e4cda041f1f8b2b1fb3a93a
2015-07-10 10:08:01 -07:00
Roshan Pius
1cb0de17a9 Merge "Correct the comparison done in removeAdapter." into mnc-dev 2015-07-10 16:54:43 +00:00
Robert Greenwalt
9bc8299ca0 Fix permissions.
Legacy API should not need new permissions.
Also found some more hidden/system that should have permissions.

bug:22379438
bug:19257083
Change-Id: I24be0a90dffcffe03d25982a9b02eedcf03fbd59
2015-07-10 09:42:08 -07:00
Paul Jensen
3b9ce37b51 Fix build break.
Automatic merge commit caused breakage due to someone else's
intervening change adding a call site of a function whose last
parameter I removed.  Function in question is
ConnectivityService.rematchAllNetworksAndRequests.
Changes that merged badly are 85cf78e and 8d48252.

Change-Id: I8fd32e1a187236a65c1b7c0ecdf17b817d108fd0
2015-07-10 12:29:23 -04:00
Paul Jensen
bbce221eec Merge "Fallback to Cellular if WiFi fails to validate" into mnc-dev 2015-07-10 15:51:38 +00:00
Paul Jensen
d8cdba0d71 Merge "Prepare some ConnectivityService logic for fallback to Cellular change" into mnc-dev 2015-07-10 15:51:23 +00:00
Paul Jensen
00c64f7ca5 Merge "Add android.net.CaptivePortal class for captive-portal-handling-app callbacks" into mnc-dev 2015-07-10 14:57:13 +00:00
Esteban Talavera
1af7588da2 Use correct user when filtering app link candidates
Bug: 22288835
Change-Id: I29b3ac04e66b5e93f5cf29fd618b98d1c8106f58
2015-07-10 14:59:49 +01:00
Tom Hudson
9613e9b764 Merge "New setLocalMatrix() operation for HWUI" into mnc-dev 2015-07-10 12:35:12 +00:00
Chris Banes
c2b0d1d42c Merge "Support Library v22.2.0 API diff" into mnc-preview-docs 2015-07-10 07:29:21 +00:00
Bart Sears
0236e6b2d6 Fix the build.
Correct a typo.

Change-Id: I16131cf7c0ce17fa09dedc67264e8199482cd27e
2015-07-09 21:06:27 -07:00
Jinsuk Kim
8ea452e3f6 CEC: Do not switch language if the new one is same as the old one
Do not switch language if the new language is the same as
the current one. This helps avoid accidental country variant
switching such as from en_US to en_AU due to the limitation of CEC.

Bug: 22373619
Change-Id: Ia98aff67e37b470b3f550a5c097e8140c1a51ecf
2015-07-10 13:06:20 +09:00
David Friedman
3f83156867 am 6fb22b4e: Docs: Revisions to top DAC landing page and several Preview-page revisions.
* commit '6fb22b4e42c18c91238cc687f84e4fe5f2950c52':
  Docs: Revisions to top DAC landing page and several Preview-page revisions.
2015-07-10 03:40:47 +00:00
Svetoslav
664251a2fd Merge "Fix build" into mnc-dev 2015-07-10 03:31:55 +00:00
Svetoslav
2bb3842a06 Fix build
Change-Id: I1b56c07aa5b85662f25158156d2c0eff115e9544
2015-07-09 20:22:23 -07:00
Bart Sears
1aa4049286 Merge "Revert "Security: AccountChooser shouldn't auto reveal accounts."" into mnc-dev 2015-07-10 03:15:57 +00:00
Eino-Ville Talvala
a2cd9c56f8 Merge "Camera2: Reorganize high-speed recording API slightly" into mnc-dev 2015-07-10 03:14:35 +00:00
Baligh Uddin
f2d248db80 Revert "Security: AccountChooser shouldn't auto reveal accounts."
This reverts commit c3b3f46d5fcbd89deeb557556e5a695c3e5349a1.

Change-Id: I6d156e1ad82c052606f76644fe6085f14e82a734
2015-07-10 03:01:47 +00:00