OSDN Git Service

android-x86/frameworks-base.git
8 years agoHave unified setter/getter for Secure Settings.
Yohei Yukawa [Sat, 13 Feb 2016 03:37:08 +0000 (19:37 -0800)]
Have unified setter/getter for Secure Settings.

In order to make InputMethodManagerService encryption-aware, we are
going to introduce a new state where any read/write access to Secure
Settings from IMMS is virtualized so that we can temporarily enable
only encryption-aware IMEs until the user unlocks the device then revert
any changes made before the device enters into an unlocked state.

To do that, it would be convenient if InputMethodUtils has unified
getter/setter methods to access (Secure) settings.  In subsequent CLs we
will rely on those getter/setter methods to switch between the on-memory
data store and the actual Secure Settings.  Note that because of
multi-user support such a switch can occur multiple times.

This is still a preparation code.  Behavior change is not intended yet
in this CL.

Bug: 26279466
Change-Id: I0f79243e5cc1556764da37fa38078e075a27d42b

8 years agoRemove redundant arguments.
Yohei Yukawa [Sat, 13 Feb 2016 03:37:03 +0000 (19:37 -0800)]
Remove redundant arguments.

The "list" and "map" arguments of IMMS#buildInputMethodListLocked() are
nothing more than synonyms of IMMS#mMethodList and IMMS#mMethodMap,
respectively.  There is no reason to pass them as parameters.  We can
access them directly as we have done there for other member fields.

This is kind of a mechanical refactoring.  No behavior change is
intended.

Bug: 26279466
Change-Id: Ia27e19f9358ba33abbb1e5a27cebe7c9953c998f

8 years agoUse Context#getSystemService(Class<T>) in IMMS.
Yohei Yukawa [Thu, 11 Feb 2016 16:03:52 +0000 (08:03 -0800)]
Use Context#getSystemService(Class<T>) in IMMS.

This is a mechanical replacement of
  Object Context#getSystemService(String)
with
  T Context#getSystemService(Class<T>)
in InputMethodManagerService.java.

No behavior change is intended.

Bug: 26279466
Change-Id: Iec6b89f0367140f98d3ca4caa1dae7375e27f3ad

8 years agoUse Java7 diamond operator in InputMethodUtils.
Yohei Yukawa [Thu, 11 Feb 2016 15:56:53 +0000 (07:56 -0800)]
Use Java7 diamond operator in InputMethodUtils.

This CL changes nothing except for deleting redundant type parameters by
using diamond operator.

No behavior change is intended.

Bug: 26279466
Change-Id: I276c7eb0136d373464ba6e997685d440beaca674

8 years agoIntroduce ChromeOS-style keyboard navigation.
Ben Kwa [Wed, 10 Feb 2016 15:46:35 +0000 (07:46 -0800)]
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)

8 years agoUse IpManager.ifname as the tag in log messages.
Erik Kline [Thu, 11 Feb 2016 13:27:27 +0000 (13:27 +0000)]
Use IpManager.ifname as the tag in log messages.
am: ef1f39abff

* commit 'ef1f39abff088789853e8747418310534cf2127e':
  Use IpManager.ifname as the tag in log messages.

8 years agoApply 'used in last 7 days' filter to OTA package extraction
David Brazdil [Thu, 4 Feb 2016 11:54:17 +0000 (11:54 +0000)]
Apply 'used in last 7 days' filter to OTA package extraction

Bug: 26813999

Change-Id: I5f1eddb1d5e9f0bbaab62d86e6ccf3cc097c4edb
(cherry picked from commit e292175fbd495a63b48560439d2a84b239f91e18)

8 years agoTweak toHtml() paragraph conversion behavior
Daniel U [Fri, 29 Jan 2016 16:58:36 +0000 (16:58 +0000)]
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

8 years agoUse IpManager.ifname as the tag in log messages.
Erik Kline [Thu, 11 Feb 2016 08:47:39 +0000 (17:47 +0900)]
Use IpManager.ifname as the tag in log messages.

Bug: 26991160
Change-Id: Idc9231819298b65da3cc3baa88f1f0cd18ab6df7

8 years agoMerge "Handle <span>, <ul>, and <li> tags in fromHtml()" into nyc-dev
Daniel U [Thu, 11 Feb 2016 11:54:31 +0000 (11:54 +0000)]
Merge "Handle <span>, <ul>, and <li> tags in fromHtml()" into nyc-dev

8 years agoLog strength of auth method used into security log
Michal Karpinski [Tue, 9 Feb 2016 15:43:41 +0000 (15:43 +0000)]
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

8 years agoMerge "SocketImpl#getFileDescriptor shouldn't be public" into nyc-dev
Przemyslaw Szczepaniak [Thu, 11 Feb 2016 10:23:38 +0000 (10:23 +0000)]
Merge "SocketImpl#getFileDescriptor shouldn't be public" into nyc-dev

8 years agoSocketImpl#getFileDescriptor shouldn't be public
Przemyslaw Szczepaniak [Mon, 8 Feb 2016 16:54:35 +0000 (16:54 +0000)]
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)

8 years agoRemove public InetAddress#getAddressInternal()
Przemyslaw Szczepaniak [Mon, 8 Feb 2016 14:55:15 +0000 (14:55 +0000)]
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)

8 years agoMerge "Notifications now support runtime density changes" into nyc-dev
Selim Cinek [Thu, 11 Feb 2016 04:45:48 +0000 (04:45 +0000)]
Merge "Notifications now support runtime density changes" into nyc-dev

8 years agoNotifications now support runtime density changes
Selim Cinek [Wed, 10 Feb 2016 03:25:31 +0000 (19:25 -0800)]
Notifications now support runtime density changes

We reinflate notifications whenever the density or the
font size changes.

Bug: 25613008
Change-Id: I61d48e477b1865e2124d055e537a592aceb667f2

8 years agoMerge "Improved the heads up logic to launch fullscreen intents less" into nyc-dev
Selim Cinek [Thu, 11 Feb 2016 03:41:37 +0000 (03:41 +0000)]
Merge "Improved the heads up logic to launch fullscreen intents less" into nyc-dev

8 years agoMerge "Fixed permission issue with AM.setFocusedStack/Task APIs" into nyc-dev
Wale Ogunwale [Thu, 11 Feb 2016 03:31:01 +0000 (03:31 +0000)]
Merge "Fixed permission issue with AM.setFocusedStack/Task APIs" into nyc-dev

8 years agoFixed permission issue with AM.setFocusedStack/Task APIs
Wale Ogunwale [Thu, 11 Feb 2016 02:37:26 +0000 (18:37 -0800)]
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

8 years agoMerge "TIF: Add Active Format Description to TvTrackInfo" into nyc-dev
Jae Seo [Thu, 11 Feb 2016 02:22:39 +0000 (02:22 +0000)]
Merge "TIF: Add Active Format Description to TvTrackInfo" into nyc-dev

8 years agoDo not ensure visibility when just resizing
Jorim Jaggi [Wed, 10 Feb 2016 06:25:16 +0000 (22:25 -0800)]
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

8 years agoVectorDrawable native rendering - Step 5 of MANY
Doris Liu [Tue, 2 Feb 2016 22:14:04 +0000 (14:14 -0800)]
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

8 years agoMerge "Expose APIs to analyze UIDs in UserHandle/Process." into nyc-dev
Jeff Davidson [Thu, 11 Feb 2016 00:52:01 +0000 (00:52 +0000)]
Merge "Expose APIs to analyze UIDs in UserHandle/Process." into nyc-dev

8 years agoFix all LA memory leaks forever!
John Reck [Thu, 11 Feb 2016 00:08:08 +0000 (16:08 -0800)]
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

8 years agoMerge "Revert "Fix all LA memory leaks forever!"" into nyc-dev
John Reck [Thu, 11 Feb 2016 00:41:45 +0000 (00:41 +0000)]
Merge "Revert "Fix all LA memory leaks forever!"" into nyc-dev

8 years agoRevert "Fix all LA memory leaks forever!"
John Reck [Thu, 11 Feb 2016 00:36:34 +0000 (00:36 +0000)]
Revert "Fix all LA memory leaks forever!"

This reverts commit 499d83f21e7ffb687788bba1668b05fe38f6ebaf.

Change-Id: Ia893ae16ebbeae68e49cd13a20587104b73d39a0

8 years agoFlag all the locales of the default region as suggested
Mihai Nita [Fri, 5 Feb 2016 22:27:55 +0000 (14:27 -0800)]
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

8 years agoMerge "Fix all LA memory leaks forever!" into nyc-dev
John Reck [Thu, 11 Feb 2016 00:30:13 +0000 (00:30 +0000)]
Merge "Fix all LA memory leaks forever!" into nyc-dev

8 years agoFix all LA memory leaks forever!
John Reck [Thu, 11 Feb 2016 00:08:08 +0000 (16:08 -0800)]
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

8 years agoMerge "Add OEM specific error code space which can by used to replace Generic errors...
Sanket Padawe [Thu, 11 Feb 2016 00:10:36 +0000 (00:10 +0000)]
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.

8 years agoMerge "Add OEM specific error code space which can by used to replace Generic errors...
Sanket Padawe [Thu, 11 Feb 2016 00:04:00 +0000 (00:04 +0000)]
Merge "Add OEM specific error code space which can by used to replace Generic errors." into mm-wireless-dev

8 years agoMerge "Camera2: Clarify ordering between onCaptureStart and onCaptureProgressed"...
Shuzhen Wang [Wed, 10 Feb 2016 23:48:48 +0000 (23:48 +0000)]
Merge "Camera2: Clarify ordering between onCaptureStart and onCaptureProgressed" into nyc-dev

8 years agoCamera2: Clarify ordering between onCaptureStart and onCaptureProgressed
Shuzhen Wang [Wed, 10 Feb 2016 21:47:32 +0000 (13:47 -0800)]
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

8 years agoExpose APIs to analyze UIDs in UserHandle/Process.
Jeff Davidson [Wed, 10 Feb 2016 22:15:42 +0000 (14:15 -0800)]
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

8 years agoMerge "Assign Theme.DeviceDefault.Settings -> Theme.Micro for watches" into nyc-dev
Mark Renouf [Wed, 10 Feb 2016 23:11:14 +0000 (23:11 +0000)]
Merge "Assign Theme.DeviceDefault.Settings -> Theme.Micro for watches" into nyc-dev

8 years agoMerge "check for null members in NotifyHandler" into nyc-dev
Andres Morales [Wed, 10 Feb 2016 23:01:10 +0000 (23:01 +0000)]
Merge "check for null members in NotifyHandler" into nyc-dev

8 years agoMerge "Added an api to uninstall a packge with active DAs" into nyc-dev
Suprabh Shukla [Wed, 10 Feb 2016 22:47:59 +0000 (22:47 +0000)]
Merge "Added an api to uninstall a packge with active DAs" into nyc-dev

8 years agoMerge "Incorporate historical WifiStateMachine notions of provisioning." into mm...
Erik Kline [Wed, 10 Feb 2016 22:13:31 +0000 (22:13 +0000)]
Merge "Incorporate historical WifiStateMachine notions of provisioning." into mm-wireless-dev
am: f94dc18746

* commit 'f94dc18746d93e98d2e48cdd25b799aa20a142ab':
  Incorporate historical WifiStateMachine notions of provisioning.

8 years agoMerge "Consistent naming for internal storage APIs." into nyc-dev
Jeff Sharkey [Wed, 10 Feb 2016 22:11:51 +0000 (22:11 +0000)]
Merge "Consistent naming for internal storage APIs." into nyc-dev

8 years agoConsistent naming for internal storage APIs.
Jeff Sharkey [Wed, 10 Feb 2016 21:46:43 +0000 (14:46 -0700)]
Consistent naming for internal storage APIs.

Also completely remove a few confusingly named deprecated APIs.

Change-Id: Ia7e4ea3190a97f0a7dfa9bebf2118da0866ec38f

8 years agoTIF: Add Active Format Description to TvTrackInfo
Jae Seo [Wed, 10 Feb 2016 22:03:18 +0000 (14:03 -0800)]
TIF: Add Active Format Description to TvTrackInfo

Bug: 21277083
Change-Id: Ided4ffcd2816e7bb11a81ef10f3b6e1499c6e89b

8 years agoMerge "Use Slog.e() instead of Slog.wtf() for unknown restrictions" into nyc-dev
Makoto Onuki [Wed, 10 Feb 2016 21:59:14 +0000 (21:59 +0000)]
Merge "Use Slog.e() instead of Slog.wtf() for unknown restrictions" into nyc-dev

8 years agoAdded an api to uninstall a packge with active DAs
Suprabh Shukla [Fri, 29 Jan 2016 02:05:14 +0000 (18:05 -0800)]
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

8 years agoMerge changes I8a56254b,I618e363c into nyc-dev
Jason Monk [Wed, 10 Feb 2016 21:56:17 +0000 (21:56 +0000)]
Merge changes I8a56254b,I618e363c into nyc-dev

* changes:
  Fix QS input handling
  Extract QS animations to QSContainer

8 years agoFix QS input handling
Jason Monk [Wed, 10 Feb 2016 20:39:21 +0000 (15:39 -0500)]
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

8 years agoMerge "Don't stop paused activities that are visible." into nyc-dev
Wale Ogunwale [Wed, 10 Feb 2016 21:48:41 +0000 (21:48 +0000)]
Merge "Don't stop paused activities that are visible." into nyc-dev

8 years agoMerge "Move editing from long press to edit button" into nyc-dev
Jason Monk [Wed, 10 Feb 2016 21:47:55 +0000 (21:47 +0000)]
Merge "Move editing from long press to edit button" into nyc-dev

8 years agoDon't stop paused activities that are visible.
Wale Ogunwale [Wed, 10 Feb 2016 04:40:18 +0000 (20:40 -0800)]
Don't stop paused activities that are visible.

Paused activities can be visible, but stopped activities are not
visible.

Change-Id: I305f77542d198ca897b33ad07ac3fc2a14a04397

8 years agoMove editing from long press to edit button
Jason Monk [Wed, 10 Feb 2016 21:42:38 +0000 (16:42 -0500)]
Move editing from long press to edit button

Change-Id: I2bd0e2febbde4babe05545c79d585280a7b2fb14

8 years agoUse Slog.e() instead of Slog.wtf() for unknown restrictions
Makoto Onuki [Wed, 10 Feb 2016 21:41:15 +0000 (13:41 -0800)]
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

8 years agoMerge "Don't unbind services unnecessarily." into nyc-dev
Julia Reynolds [Wed, 10 Feb 2016 21:34:54 +0000 (21:34 +0000)]
Merge "Don't unbind services unnecessarily." into nyc-dev

8 years agoAssign Theme.DeviceDefault.Settings -> Theme.Micro for watches
Mark Renouf [Wed, 10 Feb 2016 21:11:36 +0000 (16:11 -0500)]
Assign Theme.DeviceDefault.Settings -> Theme.Micro for watches

This theme is explicitly referenced via a ContextThemeWrapper,
used in InputMethodManager when constructing the alert dialog for
showInputMethodPicker(). This theme does not seem to be referenced
elsewhere in the platform.

BUG: 24803707
Change-Id: I5a67ef6e4387620a9624d13e7d76ef6f4f1d2cd2

8 years agoMerge "Add hidden APIs for number blocking which will be used by the system." into...
Abhijith Shastry [Wed, 10 Feb 2016 21:22:52 +0000 (21:22 +0000)]
Merge "Add hidden APIs for number blocking which will be used by the system." into nyc-dev

8 years agoTIF: Add INPUT_ID field in RecordedProgram
Youngsang Cho [Sat, 6 Feb 2016 00:15:23 +0000 (16:15 -0800)]
TIF: Add INPUT_ID field in RecordedProgram

INPUT_ID can be retrieved from CHANNEL_ID. But, even if the channel
is removed, recording should be playable. So INPUT_ID is needed.

Change-Id: I7042a19758ce71e77ca2ae7613015e4d22f0d41f

8 years agoMerge "Incorporate historical WifiStateMachine notions of provisioning." into mm...
Erik Kline [Wed, 10 Feb 2016 21:15:11 +0000 (21:15 +0000)]
Merge "Incorporate historical WifiStateMachine notions of provisioning." into mm-wireless-dev

8 years agoDon't unbind services unnecessarily.
Julia Reynolds [Wed, 10 Feb 2016 20:38:15 +0000 (15:38 -0500)]
Don't unbind services unnecessarily.

When rebinding services, don't unbind from services that are still allowed to
be bound.

Change-Id: I5f250724d2d0931ee0ac7d1182e9c1d8122bfdf0

8 years agoExtract QS animations to QSContainer
Jason Monk [Tue, 9 Feb 2016 15:51:40 +0000 (10:51 -0500)]
Extract QS animations to QSContainer

Move some of the logic for QS animations into QSContainer with a
stable interface for NotificationPanelView to call.

This also moves the QSPanel out of the scroll container and up
to live in with the header (QSContainer is the parent of both
the header and the QSPanel now).

Change-Id: I618e363ccca2be9197a4a75256e0b7841ca2c61c

8 years agocheck for null members in NotifyHandler
Andres Morales [Wed, 10 Feb 2016 19:56:25 +0000 (11:56 -0800)]
check for null members in NotifyHandler

An unexpected message posted to the queue should not
crash the application.

Bug: 27097094
Change-Id: Ide6a07014660ff14e0f287660c534cfa1e0acad9

8 years agoAdd hidden APIs for number blocking which will be used by the system.
Abhijith Shastry [Wed, 10 Feb 2016 19:15:08 +0000 (11:15 -0800)]
Add hidden APIs for number blocking which will be used by the system.

These APIs will ensure that blocking is suppressed after the user contacts emergency services.

BUG: 26989170

Change-Id: Ib78c9faa31a6d4bfb62b690f97d5ca8084d69927

8 years agoMerge "Enabled Network Policy Backup/Restore." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 19:46:20 +0000 (19:46 +0000)]
Merge "Enabled Network Policy Backup/Restore." into mm-wireless-dev
am: d9c4bc0c4d

* commit 'd9c4bc0c4db7a8b16d8ea0f58ed0615efc167f47':
  Enabled Network Policy Backup/Restore.

8 years agoMerge "Update bmgr tool." into nyc-dev
Sergey Poromov [Wed, 10 Feb 2016 19:40:53 +0000 (19:40 +0000)]
Merge "Update bmgr tool." into nyc-dev

8 years agoMerge "Fix that backupFinished() callback is not called sometimes." into nyc-dev
Sergey Poromov [Wed, 10 Feb 2016 19:40:47 +0000 (19:40 +0000)]
Merge "Fix that backupFinished() callback is not called sometimes." into nyc-dev

8 years agoMerge "Enabled Network Policy Backup/Restore." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 19:37:17 +0000 (19:37 +0000)]
Merge "Enabled Network Policy Backup/Restore." into mm-wireless-dev

8 years agoTIF: Clean the hardware input list when the input service is reconnected
Jae Seo [Wed, 10 Feb 2016 07:46:58 +0000 (23:46 -0800)]
TIF: Clean the hardware input list when the input service is reconnected

Needed to avoid adding duplicate TvInputInfo objects when the hardware
TV input service is killed and reconnected.

Bug: 26503803
Change-Id: I9265219678cb8594d43dac561f1e69c21d9c2733
(cherry picked from commit 6657e292a57e600669b3102d27f69497c45f899d)

8 years agoHandle <span>, <ul>, and <li> tags in fromHtml()
Daniel U [Mon, 1 Feb 2016 16:09:18 +0000 (16:09 +0000)]
Handle <span>, <ul>, and <li> tags in fromHtml()

The vertical spacing of <ul> and <li> are determined by the
FROM_HTML_SEPARATOR_* flags. Foreground color, background color,
and text-decoration CSS attributes are parsed and converted into
the corresponding spans.

Change-Id: I93b232de15753ae510392cbacf45e7453d1ae067

8 years agoSyncManager sync blow up fix
Shreyas Basarge [Mon, 8 Feb 2016 23:52:27 +0000 (23:52 +0000)]
SyncManager sync blow up fix

Duplicates for periodic syncs would be
created just after boot and when a
periodic sync was delayed. This CL fixes
the behavior.

Bug: 26954967
Change-Id: I2440961629d443a62f96360563d435af9137857b
(cherry picked from commit 1675400a7cd0b56e5adc5606fb4fea77f8d24ea5)

8 years agoMerge "Add AudioRecord timestamps" into nyc-dev
Andy Hung [Wed, 10 Feb 2016 18:56:15 +0000 (18:56 +0000)]
Merge "Add AudioRecord timestamps" into nyc-dev

8 years agoMake actions extend over the whole action rail
Adrian Roos [Thu, 4 Feb 2016 22:55:57 +0000 (14:55 -0800)]
Make actions extend over the whole action rail

Bug: 26767249
Change-Id: I3c67f1de40b218aa21f0a1f68bda1032c0804a14

8 years agoMerge "Allow different paragraph breaks in fromHtml()" into nyc-dev
Daniel U [Wed, 10 Feb 2016 18:36:11 +0000 (18:36 +0000)]
Merge "Allow different paragraph breaks in fromHtml()" into nyc-dev

8 years agoAllow different paragraph breaks in fromHtml()
Daniel U [Thu, 21 Jan 2016 13:52:07 +0000 (13:52 +0000)]
Allow different paragraph breaks in fromHtml()

- Separate block-level elements with different numbers of newline
  characters according to the user specified option flag.

- Parse the ALIGN attribute and the CSS TEXT-ALIGN property to handle text
  alignment.

- Rename "header" to the correct term "heading"

Change-Id: I446fa97155e761623a1da6632a0d872a5e47e8af

8 years agoMerge "TIF: Rename connect()/disconnect() and remove unnecessary methods" into nyc-dev
Jae Seo [Wed, 10 Feb 2016 18:27:05 +0000 (18:27 +0000)]
Merge "TIF: Rename connect()/disconnect() and remove unnecessary methods" into nyc-dev

8 years agoReset docked stack resizing when divider dies
Jorim Jaggi [Wed, 10 Feb 2016 05:51:30 +0000 (21:51 -0800)]
Reset docked stack resizing when divider dies

Bug: 27062375
Change-Id: I699f8d99ceab8405bcb973942787ee80caea12b2

8 years agoIncorporate historical WifiStateMachine notions of provisioning.
Erik Kline [Wed, 3 Feb 2016 12:47:34 +0000 (21:47 +0900)]
Incorporate historical WifiStateMachine notions of provisioning.

Also: considerably expand logging capabilities.

Bug: 26991160
Change-Id: I36c3c1d2158ffd178e8ce163b8799d62938f39c7

8 years agoMerge "Improve document rename experience - Initially select the name of the...
Aga Wronska [Wed, 10 Feb 2016 18:19:50 +0000 (18:19 +0000)]
Merge "Improve document rename experience     - Initially select the name of the file without extension     - Trigger renaming action when software keyboard Done button pressed     - Trigger creating new directory when software kayboard Done button pressed" into nyc-dev

8 years agoIsolate Keyguard from main thread badness
Adrian Roos [Tue, 9 Feb 2016 18:13:41 +0000 (10:13 -0800)]
Isolate Keyguard from main thread badness

Adds a bindService variant to run the ServiceConnection callbacks
on a dedicated Handler.

Changes KeyguardService binding to use the foreground thread
instead of the main thread and changes state to the
KeyguardScrim on the UI thread.

Bug: 26954967
Change-Id: I9d7bd85382816cd0e23772b14ff6518266a9d232

8 years agoMerge "Enabling SoftAP Configuration Backup." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 18:04:38 +0000 (18:04 +0000)]
Merge "Enabling SoftAP Configuration Backup." into mm-wireless-dev
am: c4a1188afd

* commit 'c4a1188afd81b4b773e30ec184839bc1a82b355d':
  Enabling SoftAP Configuration Backup.

8 years agoMerge "Whitelisted ACTION_OPEN_EXTERNAL_DIRECTORY to use file:// URIs." into nyc-dev
Felipe Leme [Wed, 10 Feb 2016 18:02:20 +0000 (18:02 +0000)]
Merge "Whitelisted ACTION_OPEN_EXTERNAL_DIRECTORY to use file:// URIs." into nyc-dev

8 years agoMerge "Enabling SoftAP Configuration Backup." into mm-wireless-dev
Ritesh Reddy [Wed, 10 Feb 2016 17:48:31 +0000 (17:48 +0000)]
Merge "Enabling SoftAP Configuration Backup." into mm-wireless-dev

8 years agoWhitelisted ACTION_OPEN_EXTERNAL_DIRECTORY to use file:// URIs.
Felipe Leme [Wed, 10 Feb 2016 17:23:57 +0000 (09:23 -0800)]
Whitelisted ACTION_OPEN_EXTERNAL_DIRECTORY to use file:// URIs.

BUG: 27109099
BUG: 26742218
Change-Id: I4848b30e6efbda72ff04a6786bac32f34d528f84

8 years agoKeep metadata of documents as disconnected status after the device is
Daichi Hirono [Sun, 7 Feb 2016 06:17:16 +0000 (15:17 +0900)]
Keep metadata of documents as disconnected status after the device is
disconnected.

To restore Document IDs when the device is reconnected, we need to keep
the metadata in database so that we can use it as hint to remap document
ID with new MTP IDs.

BUG=26212981

Change-Id: Idcc93c41c09d082a709281022c56188dabc80515
(cherry picked from commit 53f5af3f2ba1328d301a0f8a4ae3f574ccc5da65)

8 years agoMerge "Check for null on app restrictions managing app APIs" into nyc-dev
Esteban Talavera [Wed, 10 Feb 2016 16:43:49 +0000 (16:43 +0000)]
Merge "Check for null on app restrictions managing app APIs" into nyc-dev

8 years agoMerge "Require delegated cert installer and app restriction manager to exist" into...
Rubin Xu [Wed, 10 Feb 2016 16:29:34 +0000 (16:29 +0000)]
Merge "Require delegated cert installer and app restriction manager to exist" into nyc-dev

8 years agoRequire delegated cert installer and app restriction manager to exist
Rubin Xu [Wed, 10 Feb 2016 14:54:15 +0000 (14:54 +0000)]
Require delegated cert installer and app restriction manager to exist

Enforce that apps with delegated powers to exist on device before
empowering them. This is consistent with DevicePolicyManagerService's
internal logic to clear the delegation power once the package is removed.
For delegated cert installer, only enforce this new restriction on
device admins targeting N or later.

Bug: 26233778
Change-Id: Ia8f45dfd5290958cebb36991c4b6baa03e8c28ae

8 years agoCheck for null on app restrictions managing app APIs
Esteban Talavera [Wed, 10 Feb 2016 16:24:28 +0000 (16:24 +0000)]
Check for null on app restrictions managing app APIs

Change-Id: I3d3cc9b4a4bd6a2526fd0bd7d8662c6b07183208

8 years agoMerge "Revert "Extract QS animations to QSContainer"" into nyc-dev
Jason Monk [Wed, 10 Feb 2016 16:16:37 +0000 (16:16 +0000)]
Merge "Revert "Extract QS animations to QSContainer"" into nyc-dev

8 years agoRevert "Extract QS animations to QSContainer"
Jason Monk [Wed, 10 Feb 2016 16:16:15 +0000 (16:16 +0000)]
Revert "Extract QS animations to QSContainer"

This reverts commit 04dd9d008a314709d4ab80216e2db6a7bb3a2a38.

Change-Id: I76f059fe54ad4417c45e008de5291da0f24099e1

8 years agoAdd AudioRecord timestamps
Andy Hung [Fri, 29 Jan 2016 01:47:56 +0000 (17:47 -0800)]
Add AudioRecord timestamps

Bug: 13569372
Bug: 22886739
Change-Id: Icdd0e6f3871a43a26faa39e5535740f72a58dcae

8 years agoExpose measurement results to interested callers.
Erik Kline [Wed, 10 Feb 2016 15:58:17 +0000 (15:58 +0000)]
Expose measurement results to interested callers.
am: 106cdf6c94

* commit '106cdf6c94c455462316555b7ac59ec79c3b40fa':
  Expose measurement results to interested callers.

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 10 Feb 2016 15:42:20 +0000 (15:42 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 10 Feb 2016 15:42:05 +0000 (15:42 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 10 Feb 2016 15:41:39 +0000 (15:41 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 10 Feb 2016 15:41:11 +0000 (15:41 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 10 Feb 2016 15:40:50 +0000 (15:40 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 10 Feb 2016 15:39:33 +0000 (10:39 -0500)]
Import translations. DO NOT MERGE

Change-Id: I8e98fc3cdb339c3374a7e4acd6f5d3973963687c
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 10 Feb 2016 15:38:51 +0000 (07:38 -0800)]
Import translations. DO NOT MERGE

Change-Id: Idc440b1951f4d3d0489adf7c59380b2d11ac7591
Auto-generated-cl: translation import

8 years agoMerge "Update test to stub the correct method." into nyc-dev
Jeremy Joslin [Wed, 10 Feb 2016 15:38:19 +0000 (15:38 +0000)]
Merge "Update test to stub the correct method." into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 10 Feb 2016 15:36:12 +0000 (07:36 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id4deeb209ea9830e53273b68152c0f7630a26389
Auto-generated-cl: translation import

8 years agoUpdate test to stub the correct method.
Jeremy Joslin [Wed, 10 Feb 2016 15:34:46 +0000 (07:34 -0800)]
Update test to stub the correct method.

NetworkScorerAppManager was recently updated to use
queryBroadcastReceiversAsUser() in place of
queryBroadcastReceivers() but its unit test wasn't changed accordingly.

Change-Id: Ib41195fe8b9cf8c8da9a9090a4f26e1cde3db4f0

8 years agoExpose measurement results to interested callers.
Erik Kline [Wed, 3 Feb 2016 05:12:23 +0000 (14:12 +0900)]
Expose measurement results to interested callers.

With this it's possible for callers to:

    Network network = ...
    LinkProperties lp = ...

    NetworkDiagnostics netdiag = new NetworkDiagnostics(network, lp, 5000);
    netdiag.startMeasurements();
    netdiag.waitForMeasurements();

    boolean result = true;
    for (Measurement m : netdiag.getMeasurements()) {
        if (!m.checkSucceeded()) {
            result = false;
            // Additional error handling here.
        }
    }

    return result;

Bug: 21832299
Bug: 26780890
Change-Id: Iaf7ff029e2c6a998b574c23d0dcde8d57a467a22

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 10 Feb 2016 15:23:03 +0000 (07:23 -0800)]
Import translations. DO NOT MERGE

Change-Id: Iba4fcac2427bf5213b78626aefdbabf17131e652
Auto-generated-cl: translation import