232554 Commits

Author SHA1 Message Date
John Reck
1d4e6a0901 Fix bpp mismatch
Bug: 26980851

GL_RGBA16F was being incorrectly calculated
as 4 bpp instead of 16 in Texture's objectSize(),
leading to a mismatch in cache size tracking
in GradientCache

Change-Id: I533c52fcdf9910d7a7d14bbd80965b8cbef8e147
2016-02-11 13:22:25 -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
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
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
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
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
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
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
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
John Reck
ab9651b9e1 Merge "Fix all LA memory leaks forever!" into nyc-dev 2016-02-11 00:30:14 +00:00
John Reck
499d83f21e 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: I5e0e36e72c6dd93324194ebf9a95f8204f05f261
2016-02-10 16:11:26 -08:00
Sanket Padawe
72494f69b5 Merge "Add OEM specific error code space which can by used to replace Generic errors." into mm-wireless-dev
am: de0cc7f4d3

* commit 'de0cc7f4d3b3c8abbb73f2a65a52fbd77001afeb':
  Add OEM specific error code space which can by used to replace Generic errors.
2016-02-11 00:10:36 +00:00
Sanket Padawe
de0cc7f4d3 Merge "Add OEM specific error code space which can by used to replace Generic errors." into mm-wireless-dev 2016-02-11 00:04:01 +00:00
Shuzhen Wang
1b59699877 Merge "Camera2: Clarify ordering between onCaptureStart and onCaptureProgressed" into nyc-dev 2016-02-10 23:48:49 +00:00
Shuzhen Wang
0fc589cb29 Camera2: Clarify ordering between onCaptureStart and onCaptureProgressed
It's not a guarantee that onCaptureProgressed happens after
onCaptureStart for a particular request.

Bug: 26676240
Change-Id: I900c3b36e1738dd3514954498023eaa4a1618989
2016-02-10 15:40:03 -08:00
Jeff Davidson
48aa86bd0b Expose APIs to analyze UIDs in UserHandle/Process.
Clients of the NetworkStatsManager public APIs may get UIDs belonging
to other users, and UIDs which don't actually represent applications.
These APIs allow clients to understand whether a given ID belongs to
the same user as themselves, and whether an ID represents an
application or something else (e.g. a system UID).

Change-Id: Ia56d5891521ce98e5594c41da8f9d756819deb66
2016-02-10 15:20:33 -08:00
Mark Renouf
960170c63b Merge "Assign Theme.DeviceDefault.Settings -> Theme.Micro for watches" into nyc-dev 2016-02-10 23:11:14 +00:00
Andres Morales
e5951de6c8 Merge "check for null members in NotifyHandler" into nyc-dev 2016-02-10 23:01:11 +00:00
Suprabh Shukla
338c1d8607 Merge "Added an api to uninstall a packge with active DAs" into nyc-dev 2016-02-10 22:47:59 +00:00
Erik Kline
db338c2e90 Merge "Incorporate historical WifiStateMachine notions of provisioning." into mm-wireless-dev
am: f94dc18746

* commit 'f94dc18746d93e98d2e48cdd25b799aa20a142ab':
  Incorporate historical WifiStateMachine notions of provisioning.
2016-02-10 22:13:31 +00:00
Jeff Sharkey
406e9d44fd Merge "Consistent naming for internal storage APIs." into nyc-dev 2016-02-10 22:11:52 +00:00
Jeff Sharkey
8212ae0aee Consistent naming for internal storage APIs.
Also completely remove a few confusingly named deprecated APIs.

Change-Id: Ia7e4ea3190a97f0a7dfa9bebf2118da0866ec38f
2016-02-10 15:03:33 -07:00
Jae Seo
a2a0c735ff TIF: Add Active Format Description to TvTrackInfo
Bug: 21277083
Change-Id: Ided4ffcd2816e7bb11a81ef10f3b6e1499c6e89b
2016-02-10 14:03:18 -08:00
Makoto Onuki
cc725a4b6c Merge "Use Slog.e() instead of Slog.wtf() for unknown restrictions" into nyc-dev 2016-02-10 21:59:15 +00:00
Suprabh Shukla
a2ae2238e5 Added an api to uninstall a packge with active DAs
The api deactivates all the active admins in the package, then force
stops the package and starts the uninstall intent for the package. This
is intended to provide an easy way for a user to delete a misbehaving
Device Admin

Bug: b/22359208
cherrypick of Ic7ddd89ef6db53e7e76f805808d9e806100374db

Change-Id: I0d677839120c46f22231a7d6f9cf6630cb020227
2016-02-10 13:57:22 -08:00
Jason Monk
ee4ce4233c Merge changes I8a56254b,I618e363c into nyc-dev
* changes:
  Fix QS input handling
  Extract QS animations to QSContainer
2016-02-10 21:56:17 +00:00
Jason Monk
16ac3774e3 Fix QS input handling
Remove the observable scroll view and put the qs container in its
place.  Also update the NotificationStackScrollerLayout to be aware
of the container and not eat up its touches as scroll events.

Change-Id: I8a56254bf8e76a7cdd63bd637a974c1f3aa49482
2016-02-10 16:54:16 -05:00
Wale Ogunwale
de41f15a14 Merge "Don't stop paused activities that are visible." into nyc-dev 2016-02-10 21:48:42 +00:00
Jason Monk
26a3f15a2c Merge "Move editing from long press to edit button" into nyc-dev 2016-02-10 21:47:55 +00:00
Wale Ogunwale
d802664120 Don't stop paused activities that are visible.
Paused activities can be visible, but stopped activities are not
visible.

Change-Id: I305f77542d198ca897b33ad07ac3fc2a14a04397
2016-02-10 13:46:50 -08:00
Jason Monk
2142843ea5 Move editing from long press to edit button
Change-Id: I2bd0e2febbde4babe05545c79d585280a7b2fb14
2016-02-10 16:44:51 -05:00
Makoto Onuki
ad5619d447 Use Slog.e() instead of Slog.wtf() for unknown restrictions
Slog.wtf() normally indicates a bug in the system, but in this case
it's a caller side issue, so e() is more suitable.

Bug 26918715

Change-Id: I94980cb9dafd34e6c5672bf833fec921df14e6a1
2016-02-10 13:41:15 -08:00
Julia Reynolds
dc414fa479 Merge "Don't unbind services unnecessarily." into nyc-dev 2016-02-10 21:34:55 +00:00