OSDN Git Service

android-x86/frameworks-base.git
8 years agoRevert "TIF: Improve android.media.tv.TvContract.Programs.Genres#decode"
Chulwoo Lee [Tue, 2 Feb 2016 18:34:58 +0000 (18:34 +0000)]
Revert "TIF: Improve android.media.tv.TvContract.Programs.Genres#decode"

This reverts commit a6130cee3ac9ed8648be005adcf217cf4426defc.

Change-Id: Id3d5ec0ca35bbd8e0b28b2b0dd936078b5da93d6

8 years agoTIF: Improve android.media.tv.TvContract.Programs.Genres#decode
Jiabin Huang [Tue, 2 Feb 2016 08:09:05 +0000 (17:09 +0900)]
TIF: Improve android.media.tv.TvContract.Programs.Genres#decode

test results:
 random string(1000 channels) decode 1000 times on Nexus Player
 6.8 seconds => 1.4 seconds

Bug: 23307587
Change-Id: If309b0819d705d791c8fa9b177e6d2bd0019102e

8 years agoMerge "Update "accessing files" notification resources."
Daichi Hirono [Mon, 25 Jan 2016 08:28:23 +0000 (08:28 +0000)]
Merge "Update "accessing files" notification resources."

8 years agoUpdate "accessing files" notification resources.
Daichi Hirono [Mon, 25 Jan 2016 07:06:57 +0000 (16:06 +0900)]
Update "accessing files" notification resources.

 * Replace tentative resources with real ones.
 * Show the notification for each device as per request from UX.

BUG=26625702

Change-Id: Ibcfe7075e4827d5aee216ce5c0007f6dd4572efe

8 years agoMerge "ImageReader: fix missing pixel stride"
Yin-Chia Yeh [Mon, 25 Jan 2016 02:26:11 +0000 (02:26 +0000)]
Merge "ImageReader: fix missing pixel stride"

8 years agoMerge "Add eventsSupported property to MtpDeviceInfo."
Daichi Hirono [Mon, 25 Jan 2016 01:59:27 +0000 (01:59 +0000)]
Merge "Add eventsSupported property to MtpDeviceInfo."

8 years agoAdd eventsSupported property to MtpDeviceInfo.
Daichi Hirono [Thu, 21 Jan 2016 10:55:45 +0000 (19:55 +0900)]
Add eventsSupported property to MtpDeviceInfo.

The property provides the set of event code that are supported by
MtpDevice.

BUG=26147375

Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8

8 years agoMerge "Make ACTION_QUICK_VIEW public."
Tomasz Mikolajewski [Mon, 25 Jan 2016 01:04:02 +0000 (01:04 +0000)]
Merge "Make ACTION_QUICK_VIEW public."

8 years agoMerge "Camera2: add surface set ID"
Zhijun He [Sun, 24 Jan 2016 17:42:43 +0000 (17:42 +0000)]
Merge "Camera2: add surface set ID"

8 years agoAdds Settings.System.FONT_SCALE observer to ActivityManagerService
Casey Burkhardt [Wed, 30 Dec 2015 02:03:36 +0000 (18:03 -0800)]
Adds Settings.System.FONT_SCALE observer to ActivityManagerService

Changes to Settings.System.FONT_SCALE were not being handled by any service,
which required a device reboot for any changes to take effect.  Changes to
this field by the Settings app worked as expected only because it is able to
poke ActivityManager with an updated configuration, whereas unbundled
applications cannot.

This also ensures the setting value is backed up and doesn't conflict with
a configured value from accessibility onboarding during restore.

Bug:23033258
Change-Id: I98d4aed2f9f5893d054e6b10c4dfda406de8eba2

8 years agoVoice Interaction from within an Activity
Amith Yamasani [Sun, 17 Jan 2016 23:36:19 +0000 (15:36 -0800)]
Voice Interaction from within an Activity

This allows an app to show a voice search button
and invoke a voice interaction session for use
within the activity. Once the activity exits, the
session is stopped.

Test application has a new activity that
demonstrates it with the test voice interaction
service.

This initial version is functional enough for
an integration test, with some more tests
and improvements to come later.

Bug: 22791070
Change-Id: Ib1e5bc8cae1fde40570c999b9cf4bb29efe4916d

8 years agoMerge "Removed some left over log spam."
Wale Ogunwale [Sun, 24 Jan 2016 02:16:18 +0000 (02:16 +0000)]
Merge "Removed some left over log spam."

8 years agoRemoved some left over log spam.
Wale Ogunwale [Sun, 24 Jan 2016 02:14:58 +0000 (18:14 -0800)]
Removed some left over log spam.

Change-Id: Iaac41b7202b7634185bf522dfab36832c4830bba

8 years agoMerge "Camera: add post RAW sensitivity keys"
Yin-Chia Yeh [Sat, 23 Jan 2016 23:05:03 +0000 (23:05 +0000)]
Merge "Camera: add post RAW sensitivity keys"

8 years agoMerge "Make missed call action public"
Sailesh Nepal [Sat, 23 Jan 2016 18:28:31 +0000 (18:28 +0000)]
Merge "Make missed call action public"

8 years agoMerge "NullPointerException when starting VoiceInteractionManagerService" am: b7fbe1104f
Jorim Jaggi [Sat, 23 Jan 2016 03:47:29 +0000 (03:47 +0000)]
Merge "NullPointerException when starting VoiceInteractionManagerService" am: b7fbe1104f
am: 5d6da4eab0

* commit '5d6da4eab024c13afbfef5cfec0f9f2b19168318':
  NullPointerException when starting VoiceInteractionManagerService

8 years agoMerge "Minor fixes on string resources due to translation issues."
Felipe Leme [Sat, 23 Jan 2016 02:43:18 +0000 (02:43 +0000)]
Merge "Minor fixes on string resources due to translation issues."

8 years agoMinor fixes on string resources due to translation issues.
Felipe Leme [Sat, 23 Jan 2016 02:27:38 +0000 (18:27 -0800)]
Minor fixes on string resources due to translation issues.

BUG: 26723186
BUG: 26733350
Change-Id: I17d5f7c6845ad1dea00b1085bf57073d16a3fd44

8 years agoMerge "NullPointerException when starting VoiceInteractionManagerService"
Jorim Jaggi [Sat, 23 Jan 2016 02:18:13 +0000 (02:18 +0000)]
Merge "NullPointerException when starting VoiceInteractionManagerService"
am: b7fbe1104f

* commit 'b7fbe1104fd93b426dd6a6f2ed9dfc9cb12b4dd8':
  NullPointerException when starting VoiceInteractionManagerService

8 years agoMerge "NullPointerException when starting VoiceInteractionManagerService"
Jorim Jaggi [Sat, 23 Jan 2016 02:09:36 +0000 (02:09 +0000)]
Merge "NullPointerException when starting VoiceInteractionManagerService"

8 years agoImageReader: fix missing pixel stride
Yin-Chia Yeh [Sat, 23 Jan 2016 02:02:58 +0000 (18:02 -0800)]
ImageReader: fix missing pixel stride

Change-Id: Ie34cb51fee90e2d5624663fa23da4093fec435e2

8 years agoMerge "Fix issue with stack not invalidating when only focus state changes."
Winson Chung [Sat, 23 Jan 2016 01:54:59 +0000 (01:54 +0000)]
Merge "Fix issue with stack not invalidating when only focus state changes."

8 years agoFixed a clipping bug when expanding children notification
Selim Cinek [Sat, 23 Jan 2016 01:48:22 +0000 (17:48 -0800)]
Fixed a clipping bug when expanding children notification

When children are expanded with a finger we still need to clip!

Change-Id: Ie66bb0ba690163bcabdc503a03f1e23869ec175d

8 years agoMake missed call action public
Sailesh Nepal [Fri, 22 Jan 2016 03:26:20 +0000 (19:26 -0800)]
Make missed call action public

This CL makes the missed call notification action public. This will be
used by the dialer app to show it's own missed call UI.

See ag/850080 for more info.

BUG: 22857261

Change-Id: Ifae82d3036a278e5619edc8c766a1d0781296e72

8 years agoMerge "Relaunch activity resumed if it got resumed before relaunching."
Filip Gruszczynski [Sat, 23 Jan 2016 01:15:05 +0000 (01:15 +0000)]
Merge "Relaunch activity resumed if it got resumed before relaunching."

8 years agoRelaunch activity resumed if it got resumed before relaunching.
Filip Gruszczynski [Sat, 23 Jan 2016 00:43:48 +0000 (16:43 -0800)]
Relaunch activity resumed if it got resumed before relaunching.

This fixes following scenario:
1) first activity starts second activity and expects results; first
activity gets paused;
2) second activity finishes and returns a result;
3) first activity is still paused and receives the result from the second
activity; first activty requests a local relaunch; relaunch gets
scheduled and is marked as launching paused (because the activity is
still paused)
4) first activity resumes;
5) first activity relaunches and finishes in paused state.

The fix makes it drop the information about launching paused when it
gets resumed in step 4.

Bug: 25674611
Change-Id: Ieeef3f0d5c311679882fdc59c13fd8a99e3d3a20

8 years agoMerge "Remove GregorianCalendar hack" am: 187c022bf1
Deepanshu Gupta [Sat, 23 Jan 2016 01:05:26 +0000 (01:05 +0000)]
Merge "Remove GregorianCalendar hack" am: 187c022bf1
am: 08f736e7b1

* commit '08f736e7b143f825fe3c29e70e9b505bbf8e1ae6':
  Remove GregorianCalendar hack

8 years agoMerge "Fix broken SearchViewUiTest."
Steve McKay [Sat, 23 Jan 2016 00:54:40 +0000 (00:54 +0000)]
Merge "Fix broken SearchViewUiTest."

8 years agoMerge "Change mouse pointer when drag and drop is active"
Vladislav Kaznacheev [Sat, 23 Jan 2016 00:26:01 +0000 (00:26 +0000)]
Merge "Change mouse pointer when drag and drop is active"

8 years agoFix broken SearchViewUiTest.
Steve McKay [Sat, 23 Jan 2016 00:03:57 +0000 (16:03 -0800)]
Fix broken SearchViewUiTest.

Change-Id: I0df509ff6307f9aeb32d9fbfaaf68de59507e3f7

8 years agoMerge "Remove GregorianCalendar hack"
Deepanshu Gupta [Sat, 23 Jan 2016 00:02:05 +0000 (00:02 +0000)]
Merge "Remove GregorianCalendar hack"
am: 187c022bf1

* commit '187c022bf187f137d48d9031c43cfc233c9fc158':
  Remove GregorianCalendar hack

8 years agoMerge "Remove GregorianCalendar hack"
Deepanshu Gupta [Fri, 22 Jan 2016 23:53:07 +0000 (23:53 +0000)]
Merge "Remove GregorianCalendar hack"

8 years agoMerge "Change "touch" to "tap"."
Steve McKay [Fri, 22 Jan 2016 23:46:17 +0000 (23:46 +0000)]
Merge "Change "touch" to "tap"."

8 years agoChange "touch" to "tap".
Steve McKay [Fri, 22 Jan 2016 23:44:31 +0000 (15:44 -0800)]
Change "touch" to "tap".

Bug: 26744850
Change-Id: I2f0f0c817ea40de4fbc6ef21e68ccbde293d3135

8 years agoCamera: add post RAW sensitivity keys
Yin-Chia Yeh [Tue, 19 Jan 2016 03:13:47 +0000 (19:13 -0800)]
Camera: add post RAW sensitivity keys

Codegen change.

Bug: 26625646
Change-Id: I1b84fa5545db73002640d03fa6b9786986a3afdf

8 years agoFix issue with stack not invalidating when only focus state changes.
Winson [Fri, 22 Jan 2016 19:34:38 +0000 (11:34 -0800)]
Fix issue with stack not invalidating when only focus state changes.

- Adding callback to invalidate when focus state changes.
- Fixing issue where we were posting the invalidate, causing everything
  to lag by 1 frame
- Fixing issue where we weren’t passing the cancel-enter animation flag
  down when setting focused tasks

Change-Id: I218ec78dc0e4e22e59ffcef03a1bc91d08b7c18b

8 years agoMerge "Add support for renaming documents"
Aga Wronska [Fri, 22 Jan 2016 23:26:35 +0000 (23:26 +0000)]
Merge "Add support for renaming documents"

8 years agoMerge "Expanded wallpaper APIs for keyguard and change detection"
Chris Tate [Fri, 22 Jan 2016 23:24:54 +0000 (23:24 +0000)]
Merge "Expanded wallpaper APIs for keyguard and change detection"

8 years agoMerge "Provide a way to supply different algorithms for token binding key"
Selim Gurun [Fri, 22 Jan 2016 22:52:51 +0000 (22:52 +0000)]
Merge "Provide a way to supply different algorithms for token binding key"

8 years agoProvide a way to supply different algorithms for token binding key
Selim Gurun [Fri, 22 Jan 2016 19:36:10 +0000 (11:36 -0800)]
Provide a way to supply different algorithms for token binding key

Bug: 22665752

The user of the API can provide different algorithms for key generation.
The API should also provide information about which algorithm is
used for generating the key.

Change-Id: I1d671ba351ca495b031b159132f33291a4f33aac

8 years agoMerge "Move localeScriptWasProvided to end of ResTable_config"
Roozbeh Pournader [Fri, 22 Jan 2016 22:48:42 +0000 (22:48 +0000)]
Merge "Move localeScriptWasProvided to end of ResTable_config"

8 years agoMerge "Logging of unlock attempts and device locking to security log"
Michal Karpinski [Fri, 22 Jan 2016 22:48:17 +0000 (22:48 +0000)]
Merge "Logging of unlock attempts and device locking to security log"

8 years agoMove localeScriptWasProvided to end of ResTable_config
Roozbeh Pournader [Fri, 22 Jan 2016 22:44:53 +0000 (14:44 -0800)]
Move localeScriptWasProvided to end of ResTable_config

This is to try and be safer with different versions potentially
interpreting the data differently.

Change-Id: I599b6a20d908e8379727a5b06cc6631f1954bcff

8 years agoMerge "Minor fixes"
Suprabh Shukla [Fri, 22 Jan 2016 22:43:38 +0000 (22:43 +0000)]
Merge "Minor fixes"

8 years agoMerge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793 am:...
Thierry Strudel [Fri, 22 Jan 2016 22:35:05 +0000 (22:35 +0000)]
Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793 am: e8b476e8e8
am: afbf1570ac

* commit 'afbf1570acfac5dfc28196c3f4b424fdaef85508':
  Don't assume kernel tick is 100Hz

8 years agoMerge "implement onNotificationEnqueued callback"
Chris Wren [Fri, 22 Jan 2016 22:32:55 +0000 (22:32 +0000)]
Merge "implement onNotificationEnqueued callback"

8 years agoMerge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793
Thierry Strudel [Fri, 22 Jan 2016 22:28:41 +0000 (22:28 +0000)]
Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793
am: e8b476e8e8

* commit 'e8b476e8e81ee8bc4fe70fbc78db2f496b2aa023':
  Don't assume kernel tick is 100Hz

8 years agoMerge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev
Thierry Strudel [Fri, 22 Jan 2016 22:20:30 +0000 (22:20 +0000)]
Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev
am: 0064c4c793

* commit '0064c4c79341bcb47bcb5b9ff568871f34f1dc63':
  Don't assume kernel tick is 100Hz

8 years agoMerge "AAPT2: Allow specifying non-final IDS when building 'legacy' style libraries"
Adam Lesinski [Fri, 22 Jan 2016 22:12:01 +0000 (22:12 +0000)]
Merge "AAPT2: Allow specifying non-final IDS when building 'legacy' style libraries"

8 years agoAAPT2: Allow specifying non-final IDS when building 'legacy' style libraries
Adam Lesinski [Fri, 22 Jan 2016 22:09:53 +0000 (14:09 -0800)]
AAPT2: Allow specifying non-final IDS when building 'legacy' style libraries

Real libraries will be built correctly, but since we are not doing that
yet, support the old way and allow a flag --non-final-ids to remove
the final modifier from R.java.

Change-Id: Iad55fb9140e55dbb0f41d0d55f2e2bd958294c8e

8 years agoMerge "Don't assume kernel tick is 100Hz" into mnc-dr1.5-dev
Thierry Strudel [Fri, 22 Jan 2016 22:07:32 +0000 (22:07 +0000)]
Merge "Don't assume kernel tick is 100Hz" into mnc-dr1.5-dev

8 years agoCheck apps idle states on time changes am: c465e71cdc am: d4bd4cb4b1
Amith Yamasani [Fri, 22 Jan 2016 21:49:37 +0000 (21:49 +0000)]
Check apps idle states on time changes am: c465e71cdc am: d4bd4cb4b1
am: 375901244c

* commit '375901244c051d85a63d7ca83807e5f1ca7a5d0a':
  Check apps idle states on time changes

8 years agoAdd support for renaming documents
Aga Wronska [Thu, 21 Jan 2016 00:32:33 +0000 (16:32 -0800)]
Add support for renaming documents

- Add rename dialog
- Add rename menu option
- Enable rename menu option only when renaming supported
- Rename files and directories
- Present error message if renaming fails

Bug: 20493815
Change-Id: Ic7386d14e3876655fb19245b9a90b4c67a4febb4

8 years agoMerge "Specify the time units for waitForActivityWithTimeout"
Ben Gruver [Fri, 22 Jan 2016 21:27:44 +0000 (21:27 +0000)]
Merge "Specify the time units for waitForActivityWithTimeout"

8 years agoSpecify the time units for waitForActivityWithTimeout
Ben Gruver [Fri, 22 Jan 2016 21:11:11 +0000 (13:11 -0800)]
Specify the time units for waitForActivityWithTimeout

Change-Id: I21bf943e03d1f85094af5e7579fefb27f302f16c

8 years agoCheck apps idle states on time changes am: c465e71cdc
Amith Yamasani [Fri, 22 Jan 2016 20:58:46 +0000 (20:58 +0000)]
Check apps idle states on time changes am: c465e71cdc
am: d4bd4cb4b1

* commit 'd4bd4cb4b1faa8663cc8dde4d9bab15a9ec764d3':
  Check apps idle states on time changes

8 years agoMerge "Log important VrManagerService lifecycle events."
Ruben Brunk [Fri, 22 Jan 2016 20:55:10 +0000 (20:55 +0000)]
Merge "Log important VrManagerService lifecycle events."

8 years agoCheck apps idle states on time changes
Amith Yamasani [Fri, 22 Jan 2016 20:51:34 +0000 (20:51 +0000)]
Check apps idle states on time changes
am: c465e71cdc

* commit 'c465e71cdc401e1565c29a895a5c6d366ba5344c':
  Check apps idle states on time changes

8 years agoLog important VrManagerService lifecycle events.
Ruben Brunk [Fri, 22 Jan 2016 20:48:26 +0000 (12:48 -0800)]
Log important VrManagerService lifecycle events.

- Events are rare, and user triggered, so will not
  cause logcat spamming.

Change-Id: I2bdf29b0ca7d86ab64e9a20ee018e3f9e8eb1e5d

8 years agoExpanded wallpaper APIs for keyguard and change detection
Christopher Tate [Thu, 21 Jan 2016 02:13:17 +0000 (18:13 -0800)]
Expanded wallpaper APIs for keyguard and change detection

* There is a nonzero integer ID associated with the currently-set
  wallpaper image, and this changes every time any caller sets
  the wallpaper.  This is to support external change detection.

* The API now permits a caller to independently set imagery as
  the new general system wallpaper or keyguard-specific wallpaper.
  The backing implementation is not yet plumbed through, but the
  API is now in place for clients to safely write code against.

Bug 25454501
Bug 25454162

Change-Id: I4934f102d5630485bf2870d83664145ae68a3695

8 years agoMerge "Show empty file cabinet for no search results."
Ben Kwa [Fri, 22 Jan 2016 20:44:40 +0000 (20:44 +0000)]
Merge "Show empty file cabinet for no search results."

8 years agoMerge "Switch and store keyboard layouts based on IME subtype."
Michael Wright [Fri, 22 Jan 2016 20:18:29 +0000 (20:18 +0000)]
Merge "Switch and store keyboard layouts based on IME subtype."

8 years agoimplement onNotificationEnqueued callback
Chris Wren [Fri, 22 Jan 2016 14:56:59 +0000 (09:56 -0500)]
implement onNotificationEnqueued callback

Bug: 22455414
Change-Id: I9dafc7b8cbf0268b28d9e9fb0cae9c3b451be52c

8 years agoChange mouse pointer when drag and drop is active
Vladislav Kaznacheev [Fri, 22 Jan 2016 20:09:45 +0000 (12:09 -0800)]
Change mouse pointer when drag and drop is active

Mouse pointer is set to STYLE_GRAB when the drag has started and
reset to STYLE_DEFAULT when the drag has ended.

Resetting the pointer shape to the one defined by an underlying
view will be handled in a separate patch.

Bug: 24415739
Change-Id: I8df0a08c5701a34a48f10ec6b43c2cf2e6362d61

8 years agoMerge "Fix minor logging issues in WindowSurfacePlacer."
Filip Gruszczynski [Fri, 22 Jan 2016 20:05:08 +0000 (20:05 +0000)]
Merge "Fix minor logging issues in WindowSurfacePlacer."

8 years agoMerge "Specify a maximum value for View.MeasureSpec.makeMeasureSpec"
Tor Norbye [Fri, 22 Jan 2016 20:00:16 +0000 (20:00 +0000)]
Merge "Specify a maximum value for View.MeasureSpec.makeMeasureSpec"

8 years agoShow empty file cabinet for no search results.
Steve McKay [Fri, 22 Jan 2016 02:46:15 +0000 (18:46 -0800)]
Show empty file cabinet for no search results.

And for empty directory.

Magic-submit? Yes please!

Change-Id: If9e1f8ab48eebd9c275ad043da728e28b850ab73

8 years agoMerge "Inline settings color changes."
Julia Reynolds [Fri, 22 Jan 2016 19:47:37 +0000 (19:47 +0000)]
Merge "Inline settings color changes."

8 years agoMerge "Updates notification while bugreport zip is being changed."
Felipe Leme [Fri, 22 Jan 2016 19:46:38 +0000 (19:46 +0000)]
Merge "Updates notification while bugreport zip is being changed."

8 years agoMerge "Fix thumbnail header animation to follow the app window."
Filip Gruszczynski [Fri, 22 Jan 2016 19:43:54 +0000 (19:43 +0000)]
Merge "Fix thumbnail header animation to follow the app window."

8 years agoMerge "Verify results of methods called during child ordering"
Alan Viverette [Fri, 22 Jan 2016 19:43:18 +0000 (19:43 +0000)]
Merge "Verify results of methods called during child ordering"

8 years agoInline settings color changes.
Julia Reynolds [Fri, 22 Jan 2016 19:38:46 +0000 (14:38 -0500)]
Inline settings color changes.

Bug: 26486314
Change-Id: I8c842081e544b05c6d88e99361426052c216d8f7

8 years agoMerge "Initial implementation of onShellCommand()."
Felipe Leme [Fri, 22 Jan 2016 19:37:53 +0000 (19:37 +0000)]
Merge "Initial implementation of onShellCommand()."

8 years agoMerge "Disable log"
Makoto Onuki [Fri, 22 Jan 2016 19:37:09 +0000 (19:37 +0000)]
Merge "Disable log"

8 years agoRemove GregorianCalendar hack
Deepanshu Gupta [Fri, 22 Jan 2016 19:11:57 +0000 (11:11 -0800)]
Remove GregorianCalendar hack

Bug: http://b.android.com/199424
Change-Id: I589d153e1f57b6302c6fe3c031c5c63e33ad9996

8 years agoInitial implementation of onShellCommand().
Felipe Leme [Sat, 16 Jan 2016 02:37:06 +0000 (18:37 -0800)]
Initial implementation of onShellCommand().

Only the commands related to restrict background whitelisting were
initially added, so they can be used in the CTS test for the new APIs.

BUG: 26451391
Change-Id: I5479073d85c44b99368497448f1f8e36cd99e63c

8 years agoCheck apps idle states on time changes
Amith Yamasani [Fri, 22 Jan 2016 19:27:16 +0000 (11:27 -0800)]
Check apps idle states on time changes

And ensure that the listeners are informed of app standby transitions
that might occur during time changes.

Fix for apps that sometimes don't have network access until reboot.

Bug: 26488100
Change-Id: Ic342c188a6cd19faee88f50b2c6a342a6968cb23

8 years agoMerge "Created new public API so applications can customize its metered network usage...
Felipe Leme [Fri, 22 Jan 2016 19:26:06 +0000 (19:26 +0000)]
Merge "Created new public API so applications can customize its metered network usage while running in background."

8 years agoFix minor logging issues in WindowSurfacePlacer.
Filip Gruszczynski [Fri, 22 Jan 2016 19:22:47 +0000 (11:22 -0800)]
Fix minor logging issues in WindowSurfacePlacer.

Change-Id: If4ed3c36004cc8932db92adee74ab349ec2d95c4

8 years agoDisable log
Makoto Onuki [Fri, 22 Jan 2016 19:22:26 +0000 (11:22 -0800)]
Disable log

Change-Id: I373e3f7e31dc697bd5f62d226e2a0e3e7a4aeffd

8 years agoMerge "Fix mismatch in assumed defaults vs. actual defaults"
John Reck [Fri, 22 Jan 2016 19:18:54 +0000 (19:18 +0000)]
Merge "Fix mismatch in assumed defaults vs. actual defaults"

8 years agoMerge "Fix accidental activateTexture(0)"
John Reck [Fri, 22 Jan 2016 19:18:43 +0000 (19:18 +0000)]
Merge "Fix accidental activateTexture(0)"

8 years agoMerge "Created a new API to grant scoped directory access to applications."
Felipe Leme [Fri, 22 Jan 2016 19:13:10 +0000 (19:13 +0000)]
Merge "Created a new API to grant scoped directory access to applications."

8 years agoFix thumbnail header animation to follow the app window.
Filip Gruszczynski [Fri, 22 Jan 2016 19:10:42 +0000 (11:10 -0800)]
Fix thumbnail header animation to follow the app window.

Bug: 25822325
Change-Id: I14c4d877d493cd4fc9397b551099990c31fd471e

8 years agoFix mismatch in assumed defaults vs. actual defaults
John Reck [Fri, 22 Jan 2016 18:55:32 +0000 (10:55 -0800)]
Fix mismatch in assumed defaults vs. actual defaults

Bug: 26584230
Change-Id: Ia0271b097a40123c18f6b3540c1168cba109b5ce

8 years agoMerge "Add Service Worker settings and callback support in WebView."
Tim Volodine [Fri, 22 Jan 2016 19:09:24 +0000 (19:09 +0000)]
Merge "Add Service Worker settings and callback support in WebView."

8 years agoMerge "Fetch WebView package even if it is uninstalled for the current user."
Gustav Sennton [Fri, 22 Jan 2016 19:00:37 +0000 (19:00 +0000)]
Merge "Fetch WebView package even if it is uninstalled for the current user."

8 years agoCreated a new API to grant scoped directory access to applications.
Felipe Leme [Fri, 15 Jan 2016 23:02:31 +0000 (15:02 -0800)]
Created a new API to grant scoped directory access to applications.

The Storage Access Framework currently provides an
API (OPEN_DOCUMENT_TREE) that lets the user pick a directory to be used
by the application. Although this APIs is very powerful (for example, it
allows the user to create sub-directories, delete and share files,
etc...), it's too complex for simpler use cases like a camera
application trying to have access to the standard Pictures directory.

The new API (OPEN_EXTERNAL_DIRECTORY) simplifies this scenario by
letting the application select a standard, pre-defined directory (as
defined by android.os.Environment). The user still needs to grant access
to the requested directory, but the resulting UI will be simpler and
more straightforward.

Usage example:

  // ...
  int requestCode = 42;
  Intent intent = new Intent(Intent.ACTION_OPEN_EXTERNAL_DIRECTORY);
  intent.setData(Uri.fromFile(
    new File(Environment.getExternalStorageDirectory(),
             Environment.DIRECTORY_PICTURES)));
  startActivityForResult(intent, requestCode);
  // ...

  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode != Activity.RESULT_OK) {
      return;
    }
    Uri uri = data.getData();
    int modeFlags = data.getFlags()
        & (Intent.FLAG_GRANT_READ_URI_PERMISSION
        | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
    getContentResolver().takePersistableUriPermission(uri, modeFlags);
  }

BUG: 23011462
Change-Id: Ie832026532f74e681ef220b761667eb66ff3c8b0

8 years agoAdd Service Worker settings and callback support in WebView.
Tim Volodine [Wed, 20 Jan 2016 19:23:03 +0000 (19:23 +0000)]
Add Service Worker settings and callback support in WebView.

Service Workers are not tied to WebView instances so currently
there is no mechanism to capture callbacks originating from
within Service Workers.

This patch adds the necessary classes to capture callbacks
and allows to set settings specifically for Service Workers.

The main idea is that to control service workers the embedding
app would obtain an instance of ServiceWorkerController using
ServiceWorkerController.getInstance() first. After that it would
be able to set a custom ServiceWorkerClient and change
ServiceWorkerWebSettings via the controller object.

BUG: 22709088
Change-Id: I0eb17be46b767851676b77a94757771611fa3a1b

8 years agoMerge "Add general reduction plumbing starting with Java Script::reduce()." am: fca55...
David Gross [Fri, 22 Jan 2016 18:52:21 +0000 (18:52 +0000)]
Merge "Add general reduction plumbing starting with Java Script::reduce()." am: fca558c549
am: ce9c9b7bce

* commit 'ce9c9b7bce5944a13c60e82c9480654d9cc58737':
  Add general reduction plumbing starting with Java Script::reduce().

8 years agoMerge "Debug logging for when getActiveNetworkInfo returns BLOCKED." into mnc-dr1...
Lorenzo Colitti [Fri, 22 Jan 2016 18:50:49 +0000 (18:50 +0000)]
Merge "Debug logging for when getActiveNetworkInfo returns BLOCKED." into mnc-dr1.5-dev am: a6855a1faa am: d841d71593
am: af0c4d0c7e

* commit 'af0c4d0c7e680208075bea7b4b2df4d39ffc82f7':
  Debug logging for when getActiveNetworkInfo returns BLOCKED.

8 years agoCreated new public API so applications can customize its metered network
Felipe Leme [Fri, 22 Jan 2016 17:44:57 +0000 (09:44 -0800)]
Created new public API so applications can customize its metered network
usage while running in background.

The new API is 'int getRestrictBackgroundStatus()' and returns the
following values:

 - RESTRICT_BACKGROUND_STATUS_DISABLED: no restrictions
 - RESTRICT_BACKGROUND_STATUS_WHITELISTED: restriction but app is
   whitelisted
 - RESTRICT_BACKGROUND_STATUS_ENABLED: full restriction

The proper way to interprete these values for using metered networks
while running on background is:

 - When disabled, there is no restriction and the application could use the
   metered networks freely.

 - When whitelisted, the application can use the metered network, but should try
   to minimize the usage.

 - When enabled, the application should not try to use metered networks at
   all, since the usage will be denied.

BUG: 26451391
Change-Id: If07d42bb88e4c02802df0234861f38aef2cfead7

8 years agoMerge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into...
Bryce Lee [Fri, 22 Jan 2016 18:49:04 +0000 (18:49 +0000)]
Merge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into cw-e-dev am: 2e7ecddd5b  -s ours am: 746ea1efe3  -s ours am: b2f0e7f6bc  -s ours
am: c248f6c7ad  -s ours

* commit 'c248f6c7ad8ce315cb71a8b282371a0ddaf29abc':
  DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall.

8 years agoMerge "Add free short codes for Direct Carrier Billing and others." am: 4d9ffdf952
Robert Greenwalt [Fri, 22 Jan 2016 18:47:17 +0000 (18:47 +0000)]
Merge "Add free short codes for Direct Carrier Billing and others." am: 4d9ffdf952
am: bd92c57a4f

* commit 'bd92c57a4f74c5c6ea3b6e20964a5e7950a1f7e1':
  Add free short codes for Direct Carrier Billing and others.

8 years agoMerge "Use SystemService lifecycle API in input method service"
Fyodor Kupolov [Fri, 22 Jan 2016 18:21:15 +0000 (18:21 +0000)]
Merge "Use SystemService lifecycle API in input method service"

8 years agoMerge "Set the default locale list when it is changed."
Roozbeh Pournader [Fri, 22 Jan 2016 18:15:00 +0000 (18:15 +0000)]
Merge "Set the default locale list when it is changed."

8 years agoSet the default locale list when it is changed.
Seigo Nonaka [Fri, 22 Jan 2016 08:22:11 +0000 (17:22 +0900)]
Set the default locale list when it is changed.

When the system language is changed by the Settings app, we need to call
LocaleList.setDefault() to change the default locale list
since components like TextView should be able to assume that
LocaleList.getDefault() returns the latest system locale list.

BUG: 26731035
Change-Id: I482567476e1b14cd9b4716343183627f81d96ace

8 years agoMerge "Fixing crash with retrieving the first stack task."
Winson Chung [Fri, 22 Jan 2016 17:58:58 +0000 (17:58 +0000)]
Merge "Fixing crash with retrieving the first stack task."

8 years agoMerge "sysui: refactor PhoneStatusBar"
Xiaohui Chen [Fri, 22 Jan 2016 17:47:19 +0000 (17:47 +0000)]
Merge "sysui: refactor PhoneStatusBar"

8 years agoFixing crash with retrieving the first stack task.
Winson [Fri, 22 Jan 2016 17:41:09 +0000 (09:41 -0800)]
Fixing crash with retrieving the first stack task.

- We should be retrieving the first stack task for calculating the
  thumbnail transition, regardless of whether it is freeform or not.

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e