196066 Commits

Author SHA1 Message Date
Chris Craik
f8d25ea8eb Merge "Don't promote functors onto layers due to outline rect clipping" into mnc-dev 2015-06-26 20:28:36 +00:00
Eino-Ville Talvala
daee1e5bde Merge "Camera2: Add clarification about simultaneous trigger use" into mnc-dev 2015-06-26 19:53:30 +00:00
Eric Laurent
5da8ed1623 Merge "AudioManager: optimize audio port listener registration" into mnc-dev 2015-06-26 17:43:03 +00:00
Mady Mellor
29f37e1597 Merge "Text selection: When user reaches midpoint jump to end of word" into mnc-dev 2015-06-26 17:38:08 +00:00
Mady Mellor
10f9251736 Merge "Text selection: Fix word boundaries for languages without spaces" into mnc-dev 2015-06-26 17:33:22 +00:00
Dianne Hackborn
ff81025a9d Merge "Fix issue #22013372: Assist should take translationX and friends..." into mnc-dev 2015-06-26 17:20:12 +00:00
Eric Laurent
c573bc5d3d AudioManager: optimize audio port listener registration
In order to reduce the number of binder calls, only install an
audio port callback in a client process if either:
- an audio port related API has been called once
- an audio port listenr has been registered.

Bug: 22045560.
Change-Id: I0e5cf31bec0c986d6f7761891b860ba6fadd2f4c
2015-06-26 10:01:12 -07:00
Jeff Sharkey
d2c4145732 Merge "Let's reinvent storage, yet again!" into mnc-dev 2015-06-26 15:43:31 +00:00
Selim Cinek
b84ace51b2 Merge "Fixed a crash where onTouch might have been called too early" into mnc-dev 2015-06-26 15:26:29 +00:00
Selim Cinek
eb4ce1d6a3 Merge "Now showing unlocked icon if both trusted and fingerprint running" into mnc-dev 2015-06-26 15:26:08 +00:00
Abodunrinwa Toki
a2e0dc4d20 Merge "Enforce FloatingToolbar themes." into mnc-dev 2015-06-26 05:26:40 +00:00
Jeff Sharkey
9527b223a9 Let's reinvent storage, yet again!
Now that we're treating storage as a runtime permission, we need to
grant read/write access without killing the app.  This is really
tricky, since we had been using GIDs for access control, and they're
set in stone once Zygote drops privileges.

The only thing left that can change dynamically is the filesystem
itself, so let's do that.  This means changing the FUSE daemon to
present itself as three different views:

/mnt/runtime_default/foo - view for apps with no access
/mnt/runtime_read/foo - view for apps with read access
/mnt/runtime_write/foo - view for apps with write access

There is still a single location for all the backing files, and
filesystem permissions are derived the same way for each view, but
the file modes are masked off differently for each mountpoint.

During Zygote fork, it wires up the appropriate storage access into
an isolated mount namespace based on the current app permissions.  When
the app is granted permissions dynamically at runtime, the system
asks vold to jump into the existing mount namespace and bind mount
the newly granted access model into place.

Bug: 21858077
Change-Id: I62fb25d126dd815aea699b33d580e3afb90f8fd2
2015-06-25 22:25:48 -07:00
Svetoslav
e171899ac8 Merge "Add JavaDoc for permission protection level" into mnc-dev 2015-06-26 05:24:45 +00:00
Keisuke Kuroyanagi
c1bd7da990 Merge "Fix: Ellipsis is wrongly applied or not applied in TextView." into mnc-dev 2015-06-26 05:11:25 +00:00
Seigo Nonaka
084b7a15c9 Merge "Do not show selection action mode when the TextView is not shown." into mnc-dev 2015-06-26 05:10:35 +00:00
Dianne Hackborn
70d8be7616 Fix issue #22013372: Assist should take translationX and friends...
...into account when calculating the position information

Actually what we need here is the full transformation matrix, if it
is available.  And that means actually computing the location of
views on the screen requires doing this all through transformations,
so the AssistVisualizer has been changed to do this (while still
also keeping the old mechanism for comparison to verify that things
are working correctly).

Also added new properties for elevation and alpha.

And optimized the parcelling of AssistStructure to not write things
that aren't needed; this reduces the parcelled size by about half.

Change-Id: I50b0dd2e6599c74701a5d188617a3eff64b07d03
2015-06-25 20:24:34 -07:00
Robert Schaub
f207285d8d am ba12e226: am 0b5d0509: Merge "docs: Removed sentence from permissions doc" into mnc-preview-docs
* commit 'ba12e226981216116de772739165ace65fe59d5b':
  docs: Removed sentence from permissions doc
2015-06-26 02:23:09 +00:00
Svetoslav
71b6ca6d43 Add JavaDoc for permission protection level
1. Add the permission protection level in the java doc

2. Make some system permissions that are not mean to be
   used by third-parties system API.

bug:21402257

Change-Id: Ic0ae8d6ca44dbbbf12848a9164acc0e908c90402
2015-06-25 18:19:19 -07:00
Selim Cinek
4e6b2d3e7d Fixed a crash where onTouch might have been called too early
Bug: 21906153
Change-Id: I1fbc8b29f9cb0d7d71d6cb81e95a35da2fe9959e
2015-06-25 20:15:33 -04:00
Chris Craik
b60d3e7856 Don't promote functors onto layers due to outline rect clipping
bug:21320333

Change-Id: Ie70982c88498395148dab6eaca861de66e6207ed
2015-06-25 17:15:17 -07:00
Selim Cinek
2a46d68571 Now showing unlocked icon if both trusted and fingerprint running
Bug: 21781452
Change-Id: I7b04975b36f7a135358cdd68c1bdae1e73f22cc0
2015-06-25 19:44:05 -04:00
Abodunrinwa Toki
079f33bca0 Enforce FloatingToolbar themes.
This ensures that theme attribute values that affect the look and
feel of the FloatingToolbar views are the ones specified in the
framework.
The aim is to avoid apps modifying the toolbar's look and feel in
unexpected ways by overriding Theme attributes.

Bug: 21957785

Change-Id: Idd472b4e8511f0a039cd07f98b1fd3ce93ae97fa
2015-06-25 15:47:26 -07:00
Doris Liu
9206d6a0e6 Merge "Fix logic for whether beginning/end divider should be drawn" into mnc-dev 2015-06-25 22:43:14 +00:00
Jorim Jaggi
91617a793e Hide assist when launching an activity over an action
Also make sure to resume app switches in this case.

Bug: 22071080
Change-Id: Ib30e064f4a5d0768b608e23183a34e326ada32e6
2015-06-25 22:39:53 +00:00
Jorim Jaggi
7e6571f13d Use long press of KeyButtonView to invoke assist
This makes sure that accessibility is handled properly.

Bug: 18778078
Change-Id: I967b387aabff973b5a9fea649a805540ee08eea8
2015-06-25 22:39:21 +00:00
Doris Liu
ec6a4cdeda Fix logic for whether beginning/end divider should be drawn
Bug: 18945384
Change-Id: Ib8e785cb97d288e39a39b968bcb9c05410acbe34
2015-06-25 15:29:41 -07:00
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
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
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
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
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