196101 Commits

Author SHA1 Message Date
Abodunrinwa Toki
1fa8290dbe Merge "Fix FloatingToolbar flicker in reaction to text cursor blink." into mnc-dev 2015-06-26 22:09:43 +00:00
Chien-Yu Chen
f09fd213c3 Merge "Camera2: Remove references to sync.frameNumber" into mnc-dev 2015-06-26 22:09:37 +00:00
Abodunrinwa Toki
c107b0ecdc Fix FloatingToolbar flicker in reaction to text cursor blink.
1. Reposition the toolbar on predraw only when positioning has changed.
2. Update the toolbar popup's position only if the content rect changed.
3. Fix FloatingToolbarPopup.cancelOverflowAnimations().
   The previous implementation wasn't actually cancelling the animation.

(1) is enough to fix the bug. But (2) and (3) fix issues in the
toolbar directly related to this bug.

Bug: 22039189
Change-Id: I84ec793d788f9402a1f8635e68e3344746f6af07
2015-06-26 15:08:26 -07:00
Chien-Yu Chen
58a152e359 Merge "Camera2: Clarify session callbacks" into mnc-dev 2015-06-26 22:05:05 +00:00
Nathan Harold
aaf280b6b1 Merge "Deprecate TelephonyManager.getNeighboringCellInfo()" into mnc-dev 2015-06-26 21:47:21 +00:00
Shirish Kalele
869c230c14 Merge "Mark a connection as a Wifi Assistant connection based on the ephemeral flag in WifiInfo. Add this private field to WifiInfo." into mnc-dev 2015-06-26 21:34:47 +00:00
Jorim Jaggi
cc3a46ada8 Also reset assist setting when force stopping assist
Bug: 20882522
Change-Id: I57725586ab5ff203b378a1e6d2e5e77a47fd2448
2015-06-26 21:32:08 +00:00
Mady Mellor
450176c52c Merge "Fix: Text selection handles shouldn't be shown in accessibility mode" into mnc-dev 2015-06-26 21:21:56 +00:00
Alex Klyubin
e1cf75833b Merge "Don't offer crypto ops for public keys of trusted cert entries." into mnc-dev 2015-06-26 21:20:23 +00:00
George Mount
3ebcd8654d Merge "Fix endTransition index out of bounds exception." into mnc-dev 2015-06-26 21:18:57 +00:00
George Mount
7a0f54b140 Merge "Fix addTarget not limiting to the given views." into mnc-dev 2015-06-26 21:18:39 +00:00
Christopher Tate
1c3b7a6de6 Merge "Use a framework resource to name a factory-default browser app" into mnc-dev 2015-06-26 21:05:27 +00:00
Jim Miller
63ec93d570 Merge "Have FingerprintService keep the device awake on relevant events." into mnc-dev 2015-06-26 21:01:24 +00:00
Ying Wang
45f143fe48 Merge "Remove the obsolete LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES" into mnc-dev 2015-06-26 21:01:03 +00:00
Ying Wang
559ea2fd8c Remove the obsolete LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES
Change-Id: I08c2439bcab934e23c697b93aec47b2c7bcba037
2015-06-26 13:51:18 -07:00
Christopher Tate
db3fe81990 Use a framework resource to name a factory-default browser app
If there is no resource-named default but there is a single factory-
installed browser app, that app is made the titular default.

This also introduces a permission guard on attempts to set the
default browser or the app-link state.  These operations are now
contingent on the existing SET_PREFERRED_APPLICATIONS permission.

Bug 21778406

Change-Id: Id099bb9c4141f28917546492657cd2fba472e6b6
2015-06-26 13:48:33 -07:00
Robin Lee
cd7ceb0711 Merge "SystemUI: show owner VPN for restricted profile" into mnc-dev 2015-06-26 20:44:57 +00:00
Adam Powell
6356d3b250 Merge "Improve docs for View#addChildrenForAccessibility" into mnc-dev 2015-06-26 20:35:37 +00:00
Amith Yamasani
2433655565 Merge "Clarify the intention of setNotificationsShown" into mnc-dev 2015-06-26 20:34:33 +00:00
Svet Ganov
6cbf792833 Merge "Revert get accounts permission to normal for now" into mnc-dev 2015-06-26 20:30:36 +00:00
Dianne Hackborn
7c5b5f713a Merge "Fix issue #22023824: Download folder is not created in internal storage" into mnc-dev 2015-06-26 20:30:21 +00:00
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
Dianne Hackborn
ca8e6da41c Fix issue #22023824: Download folder is not created in internal storage
The media provider and some other things need to be given storage access.

Also, seems like we should give storage access to the camera app as well.

And add a dump dump command that will dump data about a particular
permission name.

Change-Id: Idaaa9bba2ff4dc95290cf6d17e5df933df91e909
2015-06-26 13:28:29 -07:00
Shirish Kalele
c7a38ef840 Mark a connection as a Wifi Assistant connection based on the
ephemeral flag in WifiInfo.
Add this private field to WifiInfo.

Change-Id: Ic815b87a24e8272faa6e9e820b8fa55224af882a
2015-06-26 13:05:22 -07:00
Eino-Ville Talvala
daee1e5bde Merge "Camera2: Add clarification about simultaneous trigger use" into mnc-dev 2015-06-26 19:53:30 +00:00
Nathan Harold
748e9d5979 Deprecate TelephonyManager.getNeighboringCellInfo()
bug: 22121990
Change-Id: Id8f9d080fdd1e2993b414a5304424238396b6fd4
2015-06-26 12:20:58 -07:00
Chien-Yu Chen
161a76cae4 Camera2: Remove references to sync.frameNumber
sync.frameNumber is a hidden key.

Bug: 21957397
Change-Id: I3b235d776782a8441354ee24c9174ae30e074a61
2015-06-26 11:23:55 -07: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
Robin Lee
63204eeafe SystemUI: show owner VPN for restricted profile
Restricted profiles don't have their own VPN configuration - whatever
is in charge of VPN for our USER_OWNER user will have network traffic
routed to it instead.

Bug: 18419023
Bug: 21188177
Change-Id: I7205d90032461c240048a036606c3a7938d0eda2
2015-06-26 10:35:25 -07: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
Svet Ganov
a508bf8ba2 Revert get accounts permission to normal for now
Change-Id: I51efe557b69a50d85dc53ba7a1622b7bafc301e6
2015-06-26 10:25:02 -07: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
Mady Mellor
011a42dee7 Fix: Text selection handles shouldn't be shown in accessibility mode
If you select some text normally while in accessibility mode, it
should be cleared and handles should not show if you initiate text
selection using the accessibility context menu.

Bug: 22071639
Change-Id: I32b966e771ba5715a0ab370e6aa602398e5ec534
2015-06-26 09:51:35 -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
Alex Klyubin
903d0fb988 Don't offer crypto ops for public keys of trusted cert entries.
Android Keystore cannot offer crypto operations for public keys of
trusted certificate entries (entries without a private key). Prior to
this CL it accidentally tried to do so, causing crypto operations on
these keys to fail.

The fix is for Android Keystore to offer crypto operations only for
public keys for which there is a corresponding private key in the
keystore. Crypto operations on public keys from trusted certificate
entries will be handled by other installed crypto providers. Those
providers don't need a private key to carry out these operations on
public keys.

Bug: 22091725
Bug: 21835320
Change-Id: Ib7d92b067711e4c57128d0db72c08bf288a45ce1
2015-06-25 18:44:43 -07: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
Chien-Yu Chen
078c92a6b2 Camera2: Clarify session callbacks
If a prior session exists when a new session is created,
onClosed() for a prior session may be invoked after
onConfigured() for the new session.

Bug: 22072379
Change-Id: I6d4416b8e77d073e569ca55867dd705c245886d0
2015-06-25 16:54:17 -07:00