232788 Commits

Author SHA1 Message Date
Jerome Gaillard
c80af9d2ab Merge branch 'nyc-dev' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev 2016-02-11 17:12:08 +00:00
Jerome Gaillard
69d9feb938 Layoutlib supports rounded corners of different sizes am: 3381cde9f2
am: 6f35d2c6ea

* commit '6f35d2c6ea1d18decd6b646035fd02fd5b1f0256':
  Layoutlib supports rounded corners of different sizes
2016-02-11 17:11:33 +00:00
Przemyslaw Szczepaniak
237f3ef21c Merge "Remove java.nio.channels.* classes without test coverage." into nyc-dev 2016-02-11 17:10:56 +00:00
Shreyas Basarge
3a1356f3ff Merge "Fix ConcurrentModificationException in SyncManager" into nyc-dev 2016-02-11 17:09:30 +00:00
John Reck
45242f7125 Merge "Revert "VectorDrawable native rendering - Step 5 of MANY"" into nyc-dev 2016-02-11 17:02:48 +00:00
John Reck
e03ef25a3e Revert "VectorDrawable native rendering - Step 5 of MANY"
Bug: 27136799

This reverts commit 18bdf443e371e9f293439b4ff92cc79abaa422e5.

Change-Id: I825b061eec2a591f2d18119ba64494624b9ad4f2
2016-02-11 17:02:33 +00:00
Jerome Gaillard
6f35d2c6ea Layoutlib supports rounded corners of different sizes
am: 3381cde9f2

* commit '3381cde9f293c52f195b31b0e4049649db31181a':
  Layoutlib supports rounded corners of different sizes
2016-02-11 16:57:48 +00:00
Shreyas Basarge
7680dd9bdf Fix ConcurrentModificationException in SyncManager
ConcurrentModificationException would be thrown because
we didn't break from the for loop after removing an
entry from the collection we were looping over.

Change-Id: I30435670f76f60b238e29658611b06ec789219aa
Bug: 27136502
(cherry picked from commit 12832e3291a66bcab12edd5943767c7827c3f7c6)
2016-02-11 16:54:12 +00:00
Jason Monk
c8bac80390 Merge "Guard against monkey crash" into nyc-dev 2016-02-11 16:41:25 +00:00
Jason Monk
da63ceb785 Guard against monkey crash
Bug: 27099281
Change-Id: I58951ee7ff5f14f5c2d60e450ed3b0fa7bf31e8e
2016-02-11 11:37:24 -05:00
Andreas Gampe
e610e288cd Merge "Frameworks/base: Fix LineBreakBufferedWriter" into nyc-dev 2016-02-11 16:26:19 +00:00
Jeremy Joslin
5c55babd64 Merge "New systemapi to mark a wifi network as metered." into mm-wireless-dev
am: 3d4acbf5fb

* commit '3d4acbf5fbe74133b70b0bec51a387428f251ac1':
  New systemapi to mark a wifi network as metered.
2016-02-11 15:59:36 +00:00
Seigo Nonaka
d538e38a00 Introduce dimension of text edit related floating window.
This is a follow up CL of I5a9bcbe29400d6193eb0532a5e711a78a12383cd.
Floating toolbar and suggestion window has a same elevation and
layout_margin. Introduce dimension value for elevation and
layout_margin and refer them.

Bug: 15347319

Change-Id: I6c635398241b60415437707285faeac76a1a4b6d
(cherry picked from commit eee8941e52042ff8a9be1b20f91c8c5045aa3b83)
2016-02-11 15:54:02 +00:00
Przemyslaw Szczepaniak
a2cbdfb33c Remove java.nio.channels.* classes without test coverage.
Removed classes come from openJdk 1.7 and were never
implemented before. We lack a testing suite to verify that
they are working correctly. Those clasess might by
re-added in further releases

Bug: 27117463
Change-Id: Ia7554a9182507b9fa1c1b6db9573ab68cb641f36
(cherry picked from commit 5fbc42d6a2baae747ddf660d5e64bc82b1795d4e)
2016-02-11 15:44:34 +00:00
Jeremy Joslin
da11f5cdf5 Send explicit broadcasts when the scorer changes.
When the scorer is changed send a targeted broadcast to the previous
scorer (if any) and then a targeted broadcast to the new scorer.

BUG:26815773
Change-Id: If28414f4373a531b10f581ecd096cbc27a7318a4
2016-02-11 07:15:44 -08:00
David Brazdil
186b54397a Merge "Address minor comments after go/ag/858723" into nyc-dev 2016-02-11 15:08:38 +00:00
David Brazdil
b62d690e7e Address minor comments after go/ag/858723
Change-Id: I549bd3290ae47d46b2ef10553466db2c29296ee9
2016-02-11 15:06:44 +00:00
Jeremy Joslin
3d4acbf5fb Merge "New systemapi to mark a wifi network as metered." into mm-wireless-dev 2016-02-11 15:03:52 +00:00
shwetachahar
4bad4fa152 Remove higher speech rate settings.
Higher speech rate setting used to increase the max text to speech output
rate to 6x from the default 4x. The default max speech rate is now
set to 6x, thereby, rendering the higher speech rate setting irrelevant.

Bug:24527715
Change-Id: I3777e63e6ddff797c18bf17fcefa3e262ea822d1
2016-02-11 14:59:33 +00:00
Ben Kwa
2036dad877 Introduce ChromeOS-style keyboard navigation.
- Turn the DirectoryFragment (DF) and the RootsFragment (RF) into
  top-level views, and allow switching between them via the tab key.

- Disallow arrow-key navigation from switching the user between the
  DF and RF.

- When nothing is explicitly focused, make navigation keys focus the
  DF.  This makes it so that if a user opens DocumentsUI and just starts
  pressing arrow keys, they'll navigate in the directory listing.

- When restoring focus on the DF and RF, remember the last thing that
  was focused, and restore focus on that thing.

BUG=25195767
BUG=25121367

Change-Id: I00e20cbdbe9edfe269fb356440a93ef5d67c5298
(cherry picked from commit 1c9f9222e56482682461013b703590c5c9471018)
2016-02-11 14:16:04 +00:00
phweiss
e9c440638e DPM.createAndManageUser should work even with DISALLOW_ADD_USER set
For this, the DPM calls a new function
UserManagerInternal.createUserEvenWhenDisallowed() instead of
UserManager.createUser(). This calls
UserManagerService.createUserInternalUnchecked().

Also, only the system user is allowed to call this method, otherwise
a security exception is thrown.

Bug: 26952210
Bug: 26786199
Change-Id: I69c16354898d68592d13f5f53b840551f7ad4779
2016-02-11 14:43:18 +01:00
Erik Kline
16e1e55271 Use IpManager.ifname as the tag in log messages.
am: ef1f39abff

* commit 'ef1f39abff088789853e8747418310534cf2127e':
  Use IpManager.ifname as the tag in log messages.
2016-02-11 13:27:27 +00:00
Sergey Poromov
266190839f Don't call BackupTransport#checkFullBackupSize when preflight timeouted.
mResult in SinglePackageBackupPreflight could be set
to a negative value if preflight timeouted.
Together with ag/863259 this change will better handle this case.

Bug: 26818914
Change-Id: I171bf95f146552b3b50f044964c2b041f6303d90
(cherry picked from commit a235f7e4e046b1a69af988240ff5f0dd46f3b5f9)
2016-02-11 13:12:53 +00:00
Wale Ogunwale
d829d36f09 Force pre-N apps to be resizeable.
We feel this experience is better than the 2-finger gesture.
Added ActivityInfo.RESIZE_MODE_FORCE_RESIZEABLE resizeMode
to indicate we are force resizing an app.

Bug: 27132829
Bug: 26847884
Change-Id: I65db2de0d9f3f171cc3bb136cc1282b3ef3549b0
2016-02-11 05:02:14 -08:00
Jerome Gaillard
3381cde9f2 Layoutlib supports rounded corners of different sizes
Bug: http://b.android.com/29098
Change-Id: I4e7dc3810559b509baf5ea306221c1d2504be0e1
2016-02-11 12:26:50 +00:00
David Brazdil
6b4736d604 Apply 'used in last 7 days' filter to OTA package extraction
Bug: 26813999

Change-Id: I5f1eddb1d5e9f0bbaab62d86e6ccf3cc097c4edb
(cherry picked from commit e292175fbd495a63b48560439d2a84b239f91e18)
2016-02-11 12:16:41 +00:00
Daniel U
4a70f09e39 Tweak toHtml() paragraph conversion behavior
For mode TO_HTML_PARAGRAPH_LINES_INDIVIDUAL:
1) Empty line outputs <br> instead of <p><br></p>

2) A <ul> element is closed if it is followed by a <br>

3) Explicit zero vertical margin is applied to <ul> instead of <li>'s

4) More deterministic way to encode AlignmentSpans: only spans with
   SPAN_PARAGRAPH flag is used. If multiple spans exist, the last one
   (which is added most recently) is used.

BUG: 26224878
Change-Id: I86a2aeced9965ae465daac1ace64e5e41cf45caf
2016-02-11 12:11:44 +00:00
Erik Kline
ef1f39abff Use IpManager.ifname as the tag in log messages.
Bug: 26991160
Change-Id: Idc9231819298b65da3cc3baa88f1f0cd18ab6df7
2016-02-11 21:07:07 +09:00
Daniel U
1914dc60c9 Merge "Handle <span>, <ul>, and <li> tags in fromHtml()" into nyc-dev 2016-02-11 11:54:32 +00:00
Michal Karpinski
ed5c8f0216 Log strength of auth method used into security log
As approved by Android Security team, added logging of
strength of auth method as well as logging of fingerprint
keyguard actions.

Bug: 26841997
Change-Id: Ic8e3f125f775a7585fe56003f4c6442390edea61
2016-02-11 10:36:56 +00:00
Przemyslaw Szczepaniak
00a6750d37 Merge "SocketImpl#getFileDescriptor shouldn't be public" into nyc-dev 2016-02-11 10:23:39 +00:00
Przemyslaw Szczepaniak
8d4242c85d SocketImpl#getFileDescriptor shouldn't be public
It's protected, as it was before openJdk switch. Added
hidden public method getFD$ for tests.

Bug: 26689841
Change-Id: I18f53356a108c1f7e0525c6f2f8130eac173e81e
(cherry picked from commit ce41c4ee22dbf4d53c2ba5a21a63a0a3081bd732)
2016-02-11 10:18:48 +00:00
Przemyslaw Szczepaniak
c343177bba Remove public InetAddress#getAddressInternal()
This method shouldn't be public + can be replaced by
the #getAddress method

Bug: 26689841
Change-Id: Ic0f9e0b03979d141c5648772ad94ba2c651ba6e7
(cherry picked from commit 1f3148c27db5f80c50cf326cc898387ba9d00b9a)
2016-02-11 10:15:00 +00:00
Selim Cinek
738a2b67f1 Merge "Notifications now support runtime density changes" into nyc-dev 2016-02-11 04:45:49 +00:00
Selim Cinek
cc10bfbaaa Added support for media notifications without expanded state
Bug: 26837953
Change-Id: I9fcf56013c44a2420367ef0a908dc45992c8a766
2016-02-10 20:27:53 -08:00
Selim Cinek
01af334b70 Notifications now support runtime density changes
We reinflate notifications whenever the density or the
font size changes.

Bug: 25613008
Change-Id: I61d48e477b1865e2124d055e537a592aceb667f2
2016-02-10 19:57:27 -08:00
Selim Cinek
8a7f35e4ef Merge "Improved the heads up logic to launch fullscreen intents less" into nyc-dev 2016-02-11 03:41:38 +00:00
Wale Ogunwale
abcab7036e Merge "Fixed permission issue with AM.setFocusedStack/Task APIs" into nyc-dev 2016-02-11 03:31:02 +00:00
Wale Ogunwale
b7521b3174 Fixed permission issue with AM.setFocusedStack/Task APIs
- Check for MANAGE_ACTIVITY_STACKS permission when AM.setFocusedStack
or AM.setFocusedTask is called.
- Clear calling identity when AM.setFocusedStack is called.

Bug: 27135250
Change-Id: Ib082bc6cd03411c4cbf741e5bdcec54679441eff
2016-02-10 18:37:26 -08:00
Jae Seo
bfed18aa3c Merge "TIF: Add Active Format Description to TvTrackInfo" into nyc-dev 2016-02-11 02:22:39 +00:00
Jorim Jaggi
9dcb85a0a6 Do not ensure visibility when just resizing
No need to ensure the visibilities of activities if only the
bounds change. If we resize the docked stack to fullscreen this
method still gets called.

This makes multi-window dogfoodable again with all that DEBUG
churn we have enabled, but also helps performance in general
when the history is quite big.

Bug: 25015474
Change-Id: I9ae0281392353e6c01563d021bca7dc23125b14f
2016-02-11 02:16:22 +00:00
Jeremy Joslin
7a598d3d80 New systemapi to mark a wifi network as metered.
The implementation will come after the wifi code base has stablized.

BUG:27120794
Change-Id: I6a8140dae45dcd7ec70ac0c51b9513b907a41b63
2016-02-10 17:20:22 -08:00
Doris Liu
18bdf443e3 VectorDrawable native rendering - Step 5 of MANY
Implemented reset() (public API for AVD)
and reverse() (internal API that needs to be supported)

Change-Id: Ife1650049f271cad1347943151a5800c40c20aa2
2016-02-11 01:08:47 +00:00
Raph Levien
b68d147b86 Allow null string to BidiFormatter#unicodeWrap
The BidiFormatter#unicodeWrap() methods allow null string, but the
toString() call on the result in the refactored code was crashing.
Also adds @Nullable annotations.

Bug: 27124532
Change-Id: I25922d104587af4a850c3640987af9315c3d3bde
2016-02-10 17:00:22 -08:00
Jeff Davidson
7f036f8bce Merge "Expose APIs to analyze UIDs in UserHandle/Process." into nyc-dev 2016-02-11 00:52:02 +00:00
John Reck
7df9ff2a08 Fix all LA memory leaks forever!
Bug: 27072626

Or at least fix this one and make it harder to leak
going forward. static_asserts are cool, use them liberally

Also makes allocation via LA (slightly) faster by fixing create*
variants to use rvalue references & std::forward, preventing
an accidental pass-by-value

Change-Id: I18fd696a93dd6ea49c8d8c587d4c8bee56dbfdf5
2016-02-11 00:42:23 +00:00
John Reck
6354f440da Merge "Revert "Fix all LA memory leaks forever!"" into nyc-dev 2016-02-11 00:41:46 +00:00
Makoto Onuki
ed9fa2ca3c If package has no active admins, just uninstall right away
Also fix the bug where removeAdminArtifacts() is called
for all active admins on the target user.

Bug 27107878

Change-Id: I6edbdadffe8c75628539976d304e39d6abed73a4
2016-02-10 16:40:30 -08:00
John Reck
e537330ead Revert "Fix all LA memory leaks forever!"
This reverts commit 499d83f21e7ffb687788bba1668b05fe38f6ebaf.

Change-Id: Ia893ae16ebbeae68e49cd13a20587104b73d39a0
2016-02-11 00:36:34 +00:00
Mihai Nita
c67b64fda4 Flag all the locales of the default region as suggested
This was done by the SetupWizard to suggest the default locale
before the SIM was detected.
It is also handy for devices without SIM (tablets).

Bug: 26784450
Bug: 26882058
Bug: 26939651
Change-Id: Ia1d3b2ef4756121cf6ca13d5d7280215df060a8f
2016-02-11 00:34:45 +00:00