196199 Commits

Author SHA1 Message Date
Christopher Tate
9a60072553 Merge "Don't throw TransactionTooLargeException for small payloads" into mnc-dev 2015-06-25 22:28:18 +00:00
Alan Viverette
d5b18387ab Merge "Ensure partially-detached AbsListView children are removed" into mnc-dev 2015-06-25 22:22:33 +00:00
Ronghua Wu
826bf9b63f Merge "media: parse max-concurrent-instances." into mnc-dev 2015-06-25 22:15:06 +00:00
Makoto Onuki
f97497db5a Merge "Fix Formatter.formatBytes() crash on non-EN locales" into mnc-dev 2015-06-25 22:03:02 +00:00
Alan Viverette
8bbae343d2 Ensure partially-detached AbsListView children are removed
Bug: 22052083
Change-Id: If8c30c622206257587441bbd4f02c83eb3a62b60
2015-06-25 14:49:29 -07:00
Jorim Jaggi
94f6f06101 Speedup PIN/Pattern dismissal
Bug: 22096344
Change-Id: I50d5ecaa03aae94cecf9da173f0d6318faaf6a1a
2015-06-25 21:49:20 +00:00
Adam Powell
cf392d143e Improve docs for View#addChildrenForAccessibility
Clarify the role of the list parameter and associated method
documentation.

Bug 22053511

Change-Id: Id0200bba8e60242caee2547bce30764dcabe02fd
2015-06-25 14:48:45 -07:00
Makoto Onuki
c7a14e442d Fix Formatter.formatBytes() crash on non-EN locales
Bug 22012651

Change-Id: I21b1834a35647527002e01d76a7eb3a6a0354512
2015-06-25 14:46:25 -07:00
Tenghui Zhu
5daee1dc27 Merge "Limit dotProduct value to 1.0f, so acosf would not return NaN." into mnc-dev 2015-06-25 21:45:32 +00:00
George Mount
e3a4cb5b38 Fix addTarget not limiting to the given views.
Bug 22086521

Views matched by instance, or appearing/disappearing, or
named views were not limited.

Change-Id: I70fd1497c58a3cde771f4eafe11d8ebe0889ab6c
2015-06-25 14:27:06 -07:00
Lazar Trsic
1240752c44 Limit dotProduct value to 1.0f, so acosf would not return NaN.
Cherry pick of b561f39d01c211425bfefaaa7b31ebe097e7ba79 from AOSP master.

Due to precision loss of float math, we sometimes get 1.000001f for
dotProduct. This causes NaN result from acosf() and floor() funcs.

At the moment, this does not cause any problems on ARM, as casting
NaN to int results in 0. On mips however (possibly on x86), such cast
gives INT_MAX, so crash occurs when trying to use the resulting value.

Change-Id: I8e0285a0306a65b8469d9f4885c19665066fc4c8
2015-06-25 14:22:13 -07:00
Jerome Poichet
fd70942147 Merge "Preventing leak" into mnc-dev 2015-06-25 21:21:02 +00:00
Ronghua Wu
cf6a4ba5a4 media: parse max-concurrent-instances.
Bug: 22089269
Change-Id: I2b0af7c5c6a309c8396b595ea54b899451239b18
2015-06-25 14:13:40 -07:00
George Mount
d9f3aa58d7 Merge "Fix removeTarget to remove by ID instead of index." into mnc-dev 2015-06-25 20:55:37 +00:00
Adam Lesinski
87fd322ecb BatteryStats: Record suspend abort reasons
Bug:18179405
Change-Id: I28c77f035400c32375dbe6d3c7057c0a2c093e8f
2015-06-25 13:14:27 -07:00
Alan Viverette
e71c6e3832 Merge "Constrain ListPopupWindow hint width spec to >= 0" into mnc-dev 2015-06-25 20:00:56 +00:00
Alan Viverette
ba4332d9cf Constrain ListPopupWindow hint width spec to >= 0
Bug: 22092169
Change-Id: Ia05302cf8d167aae26eccbf53dd3fd21d09b326d
2015-06-25 13:00:03 -07:00
Alan Viverette
fdf102e62d Merge "Constrain child width and height to >= 0 in FrameLayout.onMeasure()" into mnc-dev 2015-06-25 19:57:03 +00:00
George Mount
800320933e Fix endTransition index out of bounds exception.
Bug 22063111

When transition.end() is run, it removes itself from
the list of running transitions and perturbs the list.

Change-Id: I4feb7ebe19717a0e2302844d4e4e0d19a55ec57c
2015-06-25 12:52:18 -07:00
Yohei Yukawa
ab142f7f57 Merge "Handle back key to cancel text action mode in full-screen IME." into mnc-dev 2015-06-25 19:39:36 +00:00
Alan Viverette
39fd902bdb Constrain child width and height to >= 0 in FrameLayout.onMeasure()
Bug: 22093669
Change-Id: I55e8a0289f871b73ed07f3d73e8297786f9acac1
2015-06-25 12:24:27 -07:00
Jerome Poichet
cd62b10bd6 Preventing leak
When transitioning from ON to OFF with LE Advertisers, advertiser do not
get a chance to unregister themselves as the stopAdvertising checks the
state of the stack and throws before unregistering the object.

It will then never remove the callback objects causing a leak.

b/22092678 | Remote service crash after switching to restricted profile

Change-Id: I04817026a524d10d60abdd8b533554a71a0112e2
2015-06-25 19:20:38 +00:00
Robert Schaub
ba12e22698 am 0b5d0509: Merge "docs: Removed sentence from permissions doc" into mnc-preview-docs
* commit '0b5d0509ad381fc7ab519a60e2d749f27db7a070':
  docs: Removed sentence from permissions doc
2015-06-25 19:06:53 +00:00
Robert Schaub
0b5d0509ad Merge "docs: Removed sentence from permissions doc" into mnc-preview-docs 2015-06-25 18:57:08 +00:00
Svetoslav
f9c6dbb6d1 Merge "Add missing conditional in settings provider" into mnc-dev 2015-06-25 18:53:59 +00:00
Svetoslav
45146493c6 Add missing conditional in settings provider
Change-Id: I717e8b87eccbedf1a1abead77e7856a2aa2405fa
2015-06-25 11:53:02 -07:00
Selim Cinek
0ebd001f30 Merge "Fixed a HUN crash with notification children" into mnc-dev 2015-06-25 18:37:56 +00:00
Chris Wren
c26939b478 Merge "add banned packages to notification dumpsys" into mnc-dev 2015-06-25 18:21:03 +00:00
Svetoslav
263b6e6983 Merge "Prevent certain actions of app has revoked permissions" into mnc-dev 2015-06-25 18:20:16 +00:00
Jun Mukai
46f087c43b Merge "Apply thumbTint and trackTint styles to Switch from xml." into mnc-dev 2015-06-25 18:16:57 +00:00
Chris Wren
66189fc168 add banned packages to notification dumpsys
Bug: 20451514
Change-Id: I4ae3adfc8dcd7e7625ca41950e5642c30b8cb25e
2015-06-25 14:12:05 -04:00
Svetoslav
7008b51817 Prevent certain actions of app has revoked permissions
bug:21808294

Change-Id: I7214c1fe47c15fe185423a54a74b58caf8d82daa
2015-06-25 10:55:11 -07:00
Selim Gurun
cb247780d3 Merge "Remove Webviewtests in frameworks" into mnc-dev 2015-06-25 17:54:01 +00:00
Christopher Tate
02ca7a7db0 Don't throw TransactionTooLargeException for small payloads
In practice, if we ever see an apparent transaction-too-large result
with a modest-sized payload, it means that the remote process died at
just the right time (with the binder transaction already in flight
so it wasn't detected as a DEAD_OBJECT up front).  Don't throw
TransactionTooLargeException in this case, because we really do need
to distinguish that from dead-remote more accurately.

In particular, certain common execution patterns on existing hardware
trigger this circumstance, and they wind up crashing the system.
This is bad, so now we avoid it unless we're pretty sure that is
really what happened.

Bug 21801759

Change-Id: Id05f1eecc0d23dc8d0505c402e2cb68396782135
2015-06-25 10:50:38 -07:00
Selim Gurun
e9f13e171d Remove Webviewtests in frameworks
Bug: 22090564

These tests were not touched for at least 3 years, and with webview
moving to chromium, they are tested at the chromium side.

Change-Id: I4424871dd97c5dc23bb3dbdcee0915d5ab893c7e
2015-06-25 10:50:26 -07:00
Chris Manton
60061c26a2 Merge "Carrier Config API KEY_FORCE_HOME_NETWORK_BOOL" into mnc-dev 2015-06-25 17:42:18 +00:00
Yusuke Sato
0f61c7dcc4 Merge "Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files" into mnc-dev 2015-06-25 17:34:01 +00:00
Nancy Chen
1979dd631d Merge "Add comments for visual voicemail short codes in whitelist." into mnc-dev 2015-06-25 17:32:25 +00:00
Winson Chung
b49dbeef52 Merge "Refactoring recents search bar widget logic." into mnc-dev 2015-06-25 17:24:55 +00:00
Chris Manton
63f25b6e3f Carrier Config API KEY_FORCE_HOME_NETWORK_BOOL
Bug: 20828356

Change-Id: I30a286e7af884a11c51363916dd6a4dc965d399a
2015-06-25 10:08:45 -07:00
Alan Viverette
efb49bd811 Merge "Constrain width and height to >= 0 in FastScroller layout" into mnc-dev 2015-06-25 17:08:42 +00:00
Alan Viverette
de14ad55f6 Constrain width and height to >= 0 in FastScroller layout
Bug: 22071990
Change-Id: I9dcb2066ee069a3764b7d711cb341a4dfdc4445e
2015-06-25 09:57:30 -07:00
Alex Klyubin
9440a6e6be Merge "Support RSA encrypt using private key and PKCS#1 paddding." into mnc-dev 2015-06-25 16:46:17 +00:00
Seigo Nonaka
86d60cde91 Fix crash due to reverse selection.
Selection start can be bigger than selection end and this kind
of selection is generated by mouse selection at least from L MR1.

To fix and support SHARE button for this kind of selection,
getSelectedText need to invert selection start and selection end
when the selection start is bigger than selection end.

Bug: 22065979
Change-Id: Ide4ac41e3f59d256033aca004450712ca0bb0f03
2015-06-26 01:40:49 +09:00
Seigo Nonaka
145252f840 Do not show selection action mode when the TextView is not shown.
OnPreDraw is called even if the View is not visible.
So need to check isShown() and hasWindowFocus() before calling
starting selection action mode.

This hack is originally introduced for keeping selection on device rotation.
I manually verified this issue does not revive with this CL.

Bug: 22036870
Change-Id: I814db6165e2345fcacedcbd399c1a3985501c8fd
2015-06-26 01:30:40 +09:00
Alex Klyubin
25d2270704 Support RSA encrypt using private key and PKCS#1 paddding.
Some apps such as OpenVPN Connect for some reason generate
PKCS#1-padded RSA signatures using Cipher (initialized in
Cipher.ENCRYPT_MODE with private key!) instead of using Signature.

Unfortunately, RI supports this strange behavior and previous releases
of Android Keystore did the same. So, we have to continue supporting
this craziness.

Bug: 22083023
Change-Id: Ife3950d0d4ceb4e44e08014635312c1252878b69
2015-06-25 09:09:04 -07:00
Mady Mellor
d4d802be39 Merge "Fix: Don't display the drag handles when focus is lost" into mnc-dev 2015-06-25 15:54:03 +00:00
Andrei Stingaceanu
3d7109a1f6 Merge "EditText - can not drag handles in extracted mode" into mnc-dev 2015-06-25 15:52:51 +00:00
Andres Morales
f1900b500f Merge "[LockSettings] clear secure user id when user is removed" into mnc-dev 2015-06-25 15:43:13 +00:00
Mady Mellor
a2861454aa Fix: Don't display the drag handles when focus is lost
The text selection handles should be hidden / shown when the window
loses / regains focus.

Additionally renames method to make more sense.

Bug: 22062480
Change-Id: I6e160234cf112ee285367637e2f1c14defd82e89
2015-06-25 08:40:27 -07:00