OSDN Git Service

android-x86/frameworks-base.git
8 years agoDump full Glop in GlopBuilder::dump
Chris Craik [Sat, 12 Mar 2016 02:39:01 +0000 (18:39 -0800)]
Dump full Glop in GlopBuilder::dump

Change-Id: I022b3c8c265998fd97d41f13964f4703025b338a

8 years agoMerge "Disabled debug logs" into nyc-dev
Wale Ogunwale [Tue, 8 Mar 2016 16:55:33 +0000 (16:55 +0000)]
Merge "Disabled debug logs" into nyc-dev

8 years agoMerge "Add hidden slide fraction call to Slide" into nyc-dev
Tony Mantler [Tue, 8 Mar 2016 16:53:57 +0000 (16:53 +0000)]
Merge "Add hidden slide fraction call to Slide" into nyc-dev

8 years agoMerge "Added EIDs for ERP, Supported & Extended Rates" into mm-wireless-dev
Glen Kuhne [Tue, 8 Mar 2016 16:53:34 +0000 (16:53 +0000)]
Merge "Added EIDs for ERP, Supported & Extended Rates" into mm-wireless-dev
am: 45eb1bdf87

* commit '45eb1bdf8788bc2aa537ec86bc93b3bf437d9c6e':
  Added EIDs for ERP, Supported & Extended Rates

8 years agoMerge "Fix 'cmd package compile' help message" into nyc-dev
David Brazdil [Tue, 8 Mar 2016 16:48:37 +0000 (16:48 +0000)]
Merge "Fix 'cmd package compile' help message" into nyc-dev

8 years agoMerge "Added EIDs for ERP, Supported & Extended Rates" into mm-wireless-dev
Glen Kuhne [Tue, 8 Mar 2016 16:48:35 +0000 (16:48 +0000)]
Merge "Added EIDs for ERP, Supported & Extended Rates" into mm-wireless-dev

8 years agoFix 'cmd package compile' help message
David Brazdil [Tue, 8 Mar 2016 16:40:20 +0000 (16:40 +0000)]
Fix 'cmd package compile' help message

Change-Id: I6d4fc505b509569793c5e61410327b4c69487a43

8 years agoMerge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev
Jean-Michel Trivi [Tue, 8 Mar 2016 16:46:57 +0000 (16:46 +0000)]
Merge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev

8 years agoMerge "Rename 'all' compile mode to 'full'" into nyc-dev
David Brazdil [Tue, 8 Mar 2016 16:31:44 +0000 (16:31 +0000)]
Merge "Rename 'all' compile mode to 'full'" into nyc-dev

8 years agoRename 'all' compile mode to 'full'
David Brazdil [Tue, 8 Mar 2016 16:22:23 +0000 (16:22 +0000)]
Rename 'all' compile mode to 'full'

The name of the full-AoT compile mode is confusing. We should change it.

Change-Id: I9cba83e398fb4ae0efb1a25ff257ba79ab105386

8 years agoMerge "Update 'more options' button when changing the printer." into nyc-dev
Philip P. Moltmann [Tue, 8 Mar 2016 16:19:53 +0000 (16:19 +0000)]
Merge "Update 'more options' button when changing the printer." into nyc-dev

8 years agoMerge "Don't dock tasks that are non-dockable" into nyc-dev
Jorim Jaggi [Tue, 8 Mar 2016 15:27:54 +0000 (15:27 +0000)]
Merge "Don't dock tasks that are non-dockable" into nyc-dev

8 years agoDon't dock tasks that are non-dockable
Jorim Jaggi [Tue, 1 Mar 2016 13:10:14 +0000 (14:10 +0100)]
Don't dock tasks that are non-dockable

Bug: 27200491
Change-Id: I4578441b37734b85ea03b3bb67e57abed8b21182

8 years agoMerge "Add option to clear profile data to 'cmd package compile'" into nyc-dev
David Brazdil [Tue, 8 Mar 2016 14:49:55 +0000 (14:49 +0000)]
Merge "Add option to clear profile data to 'cmd package compile'" into nyc-dev

8 years agoMerge "Add option to compile all packages with 'cmd package compile'" into nyc-dev
David Brazdil [Tue, 8 Mar 2016 14:40:55 +0000 (14:40 +0000)]
Merge "Add option to compile all packages with 'cmd package compile'" into nyc-dev

8 years agoMerge "Don't apply dim if there is no docked stack" into nyc-dev
Jorim Jaggi [Tue, 8 Mar 2016 14:31:28 +0000 (14:31 +0000)]
Merge "Don't apply dim if there is no docked stack" into nyc-dev

8 years agoDon't apply dim if there is no docked stack
Jorim Jaggi [Tue, 1 Mar 2016 12:51:16 +0000 (13:51 +0100)]
Don't apply dim if there is no docked stack

Also add proper names for the different dim layer surfaces, so we
better know where they are coming from when we see it in the
surface flinger dump.

Bug: 27270126
Bug: 27200491
Change-Id: Ic085e8505d20a941f4631ec914f00eefda74a766

8 years agoAdd option to clear profile data to 'cmd package compile'
David Brazdil [Tue, 8 Mar 2016 12:57:12 +0000 (12:57 +0000)]
Add option to clear profile data to 'cmd package compile'

Adds an option which clears all profile data of a given package.

Bug: 27516490
Change-Id: Ie83ef1f06ca47d35ffb206c29341dc68166afeb3

8 years agoMerge "Don't destroy thumbnails immediately" into nyc-dev
Jorim Jaggi [Tue, 8 Mar 2016 14:20:47 +0000 (14:20 +0000)]
Merge "Don't destroy thumbnails immediately" into nyc-dev

8 years agoDon't destroy thumbnails immediately
Jorim Jaggi [Tue, 1 Mar 2016 11:37:07 +0000 (12:37 +0100)]
Don't destroy thumbnails immediately

The hiding of the thumbnails needs to be synchronized with the hiding
of the app window. Because destroying them immediately destroys them
without being part of the transaction, that can happen earlier than
hiding the surface.

Instead, hide the thumbnail in the transaction first and then put it
into a list to be cleared after the transaction is closed.

Bug: 27275815
Change-Id: I1530262c26c0751e53d218b686c46129f7c7df1d

8 years agoMerge "rename the asisstant service for the ranker" into nyc-dev
Chris Wren [Tue, 8 Mar 2016 14:13:44 +0000 (14:13 +0000)]
Merge "rename the asisstant service for the ranker" into nyc-dev

8 years agoAdd option to compile all packages with 'cmd package compile'
David Brazdil [Tue, 1 Mar 2016 10:02:27 +0000 (10:02 +0000)]
Add option to compile all packages with 'cmd package compile'

To help investigate performance regressions, an option is added to
'adb shell cmd package compile' to compile all packages with the
given mode.

Bug: 27391290
Change-Id: I70a3a518e08b54535bb34f13f0cedda3a1f7085f

8 years agoBridgeContext: Fix typo in attr name (toLeft -> toLeftOf)
Siva Velusamy [Tue, 8 Mar 2016 13:58:52 +0000 (13:58 +0000)]
BridgeContext: Fix typo in attr name (toLeft -> toLeftOf)
am: af0f3bda17

* commit 'af0f3bda17ee3de4ad3560c9a675527b20e2af5f':
  BridgeContext: Fix typo in attr name (toLeft -> toLeftOf)

8 years agoBridgeContext: Fix typo in attr name (toLeft -> toLeftOf)
Siva Velusamy [Tue, 8 Mar 2016 01:19:31 +0000 (17:19 -0800)]
BridgeContext: Fix typo in attr name (toLeft -> toLeftOf)

Change-Id: I214ddf066bd69d56275477712419745cf781cee3

8 years agoFix: Selection is not correctly used for SuggestionsPopup.
Keisuke Kuroyanagi [Tue, 1 Mar 2016 00:07:54 +0000 (16:07 -0800)]
Fix: Selection is not correctly used for SuggestionsPopup.

This happens because suggestions are gathered based on the
selection after setting the cursor position to the middle
of the user selected range, which means 0-width selection
at that position. As a result, SuggestionsPopup was not
shown when any suggestion spans don't overlap middle point
of the selection.

Bug: 20709442
Change-Id: I3e1cb570f451b4ab14cf36f7da23dc2bd22f4ac8

8 years agoMerge "Call View#setHasTransientState in TextView#spanChange." into nyc-dev
Keisuke Kuroyanagi [Tue, 8 Mar 2016 07:28:33 +0000 (07:28 +0000)]
Merge "Call View#setHasTransientState in TextView#spanChange." into nyc-dev

8 years agoMerge "TIF: Add more comments for TvInputInfo/TvTrackInfo" into nyc-dev
Jae Seo [Tue, 8 Mar 2016 05:41:13 +0000 (05:41 +0000)]
Merge "TIF: Add more comments for TvInputInfo/TvTrackInfo" into nyc-dev

8 years agoMerge "Have unified setter/getter for TSMS Settings." into nyc-dev
Yohei Yukawa [Tue, 8 Mar 2016 05:37:51 +0000 (05:37 +0000)]
Merge "Have unified setter/getter for TSMS Settings." into nyc-dev

8 years agoHave unified setter/getter for TSMS Settings.
Yohei Yukawa [Tue, 8 Mar 2016 05:26:38 +0000 (21:26 -0800)]
Have unified setter/getter for TSMS Settings.

This ports my previous CL for InputMethodManagerService [1] to
TextServicesManagerService (TSMS).

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

See my previous commit message [1] for details.

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

  [1]: I0f79243e5cc1556764da37fa38078e075a27d42b
       8752367042cb690f78953557433c16ac77eeea45

Bug: 27456430
Change-Id: I97a1e2f75bdecb0aa88fb35dfe56732c08fcbbd5

8 years agoCall View#setHasTransientState in TextView#spanChange.
Keisuke Kuroyanagi [Mon, 29 Feb 2016 20:53:58 +0000 (12:53 -0800)]
Call View#setHasTransientState in TextView#spanChange.

setHasTransientState(true) and setHasTransientState(false) have to
be coupled, but they were not always coupled in TextView. e.g. when
we fire PROCESS_TEXT intent.
With this CL, TextView calls setHasTransientState() always when
selection is created or cleared to make sure 2 setHasTransientState
calls are always coupled.

Bug: 27409041
Change-Id: Ib454b0fbbc2c2f8d19818f154f415c4a5d7e2d7e

8 years agoTIF: Add more comments for TvInputInfo/TvTrackInfo
Jae Seo [Tue, 8 Mar 2016 04:00:14 +0000 (20:00 -0800)]
TIF: Add more comments for TvInputInfo/TvTrackInfo

- Documented what TvInputInfo.getTunerCount returns if the input is not
  of TYPE_TUNER.
- Documented what all getters/setters in TvTrackInfo throw if not called
  on proper types.

Bug: 27531254
Change-Id: I32d83ce888507ec29cda8dce74871a3d55783766

8 years agoMerge "Rely on SystemService#onSwitchUser() in IMMS." into nyc-dev
Yohei Yukawa [Tue, 8 Mar 2016 03:03:13 +0000 (03:03 +0000)]
Merge "Rely on SystemService#onSwitchUser() in IMMS." into nyc-dev

8 years agoMerge "Add a new key to Settings.Global to obtain the number of boot." into nyc-dev
Daichi Hirono [Tue, 8 Mar 2016 02:06:38 +0000 (02:06 +0000)]
Merge "Add a new key to Settings.Global to obtain the number of boot." into nyc-dev

8 years agoMerge "MediaBrowser: Copy options before using it in subscribe()" into nyc-dev
Sungsoo Lim [Tue, 8 Mar 2016 01:46:09 +0000 (01:46 +0000)]
Merge "MediaBrowser: Copy options before using it in subscribe()" into nyc-dev

8 years agoMerge "Suppress tests that are consistently failing..." into nyc-dev
Steve McKay [Tue, 8 Mar 2016 01:38:51 +0000 (01:38 +0000)]
Merge "Suppress tests that are consistently failing..." into nyc-dev

8 years agoMerge "New permission for bypassing premium short code check." into nyc-dev
Amit Mahajan [Tue, 8 Mar 2016 01:13:52 +0000 (01:13 +0000)]
Merge "New permission for bypassing premium short code check." into nyc-dev

8 years agoMerge "Draw a clock on top of the Android boot animation" into nyc-dev
Damien Bargiacchi [Tue, 8 Mar 2016 00:44:34 +0000 (00:44 +0000)]
Merge "Draw a clock on top of the Android boot animation" into nyc-dev

8 years agoMerge "Show active downloads in Files app Downloads dir." into nyc-dev
Steve McKay [Tue, 8 Mar 2016 00:34:51 +0000 (00:34 +0000)]
Merge "Show active downloads in Files app Downloads dir." into nyc-dev

8 years agoDraw a clock on top of the Android boot animation
Damien Bargiacchi [Wed, 17 Feb 2016 00:55:49 +0000 (16:55 -0800)]
Draw a clock on top of the Android boot animation

Don't draw on top of vendor specific animations/logos since we can't
make it look good.

Bug: 27209004
Change-Id: If4791b861ff476c23b37787ba896a3ef8d9df4fd

8 years agoMerge "Add a VR listener service." into nyc-dev
Ruben Brunk [Tue, 8 Mar 2016 00:14:55 +0000 (00:14 +0000)]
Merge "Add a VR listener service." into nyc-dev

8 years agoRename AudioRecordConfiguration to AudioRecordingConfiguration
Jean-Michel Trivi [Mon, 7 Mar 2016 22:13:03 +0000 (14:13 -0800)]
Rename AudioRecordConfiguration to AudioRecordingConfiguration

In package android.media:
- rename AudioRecordConfiguration to
   AudioRecordingConfiguration to avoid ambiguity with the
   android.media.AudioRecord class
- rename AudioManager.getActiveRecordConfigurations() to
   getActiveRecordingConfigurations.

Bug 27385560

Change-Id: I5ef404ff36522193990c9b563d4545893529b365

8 years agoAdd a VR listener service.
Ruben Brunk [Wed, 17 Feb 2016 05:38:24 +0000 (21:38 -0800)]
Add a VR listener service.

Bug: 22855417
Bug: 26724891
Bug: 27364145

- Add an API for VrListenerService, which is bound/unbound
  from the framework when the system VR mode changes.
- Allow only a single bound VrListenerService at a time.
- Monitor allowed VrListenerService implementations from
  VrManagerService and evict services as needed when packages,
  users, or settings change.
- Remove previous VR functionality in NotificationListenerService.
- Add component target to Activity#setVrMode to allow
  explicit selection of the running VrListenerService from
  the current VR activity.

Change-Id: I776335f4441be0e793d3126f2d16faf86a8c621a

8 years agoMerge "Correct how to deal with print service installation" into nyc-dev
Philip P. Moltmann [Mon, 7 Mar 2016 23:46:48 +0000 (23:46 +0000)]
Merge "Correct how to deal with print service installation" into nyc-dev

8 years agoMerge changes I6e5dc836,Ia0c663f0,I97eb6e79,I8a4a0213,I87798da9, ... into nyc-dev
Selim Cinek [Mon, 7 Mar 2016 23:43:56 +0000 (23:43 +0000)]
Merge changes I6e5dc836,Ia0c663f0,I97eb6e79,I8a4a0213,I87798da9, ... into nyc-dev

* changes:
  Removed the group expand button
  Removed the bundle number from the header
  Fixed a crash with notification children
  Fixed a bug where the media header wasn't indented
  Fixed fading and dozemode for custom notifications
  Fixed a group bug with a single expanded child
  Fixed a bug where the top child notification wasn't expandable
  Fixed a bug where heads up where not expandable by touch
  Fixed a bug where the wallpaper was shining through the background

8 years agoMerge "Send APKs through safe install path." into nyc-dev
Steve McKay [Mon, 7 Mar 2016 23:43:53 +0000 (23:43 +0000)]
Merge "Send APKs through safe install path." into nyc-dev

8 years agoSuppress tests that are consistently failing...
Steve McKay [Mon, 7 Mar 2016 23:14:46 +0000 (15:14 -0800)]
Suppress tests that are consistently failing...

on APCT.

Change-Id: I3a3a718b8211a5188130aa698322934bf62d81d1

8 years agoCorrect how to deal with print service installation
Philip P. Moltmann [Mon, 7 Mar 2016 23:27:05 +0000 (15:27 -0800)]
Correct how to deal with print service installation

- Deal with case that there are currently no print services installed
- Deal with the case that a package modification adds a print service

Bug: 27530312
Change-Id: I67a647bd0982a092a4810d6c1285d0c7b64e104e

8 years agoMerge "Back region to lang selection: preserve search & position" into nyc-dev
Mihai Niță [Mon, 7 Mar 2016 23:18:30 +0000 (23:18 +0000)]
Merge "Back region to lang selection: preserve search & position" into nyc-dev

8 years agoRemoved the group expand button
Selim Cinek [Sat, 5 Mar 2016 03:11:27 +0000 (19:11 -0800)]
Removed the group expand button

It's now a normal group expand button.

Bug: 27431551
Change-Id: I6e5dc83613533ef8590b0a8180d8c4be8322aa21

8 years agoRemoved the bundle number from the header
Selim Cinek [Sat, 5 Mar 2016 02:53:48 +0000 (18:53 -0800)]
Removed the bundle number from the header

Bug: 27431551
Change-Id: Ia0c663f0bab875abba4b35d565f3ac4ed2306079

8 years agoFixed a crash with notification children
Selim Cinek [Sat, 5 Mar 2016 02:10:37 +0000 (18:10 -0800)]
Fixed a crash with notification children

Notification children would animate when removed even
though they were just transferring to a different parent
or to the root.

Bug: 27476798
Change-Id: I97eb6e795d7762fb150b63f49eec9bb6092339be

8 years agoFixed a bug where the media header wasn't indented
Selim Cinek [Sat, 5 Mar 2016 00:13:06 +0000 (16:13 -0800)]
Fixed a bug where the media header wasn't indented

We need to remeasure in case we change the params.

Bug: 27494315
Change-Id: I8a4a0213db75f866a87a5c117f98d80fe80641c9

8 years agoMerge "Preventing users from over scrolling too far." into nyc-dev
Winson Chung [Mon, 7 Mar 2016 23:10:02 +0000 (23:10 +0000)]
Merge "Preventing users from over scrolling too far." into nyc-dev

8 years agoMerge "Fix NPE in PrintManagerService" into nyc-dev
Jae Seo [Mon, 7 Mar 2016 23:06:47 +0000 (23:06 +0000)]
Merge "Fix NPE in PrintManagerService" into nyc-dev

8 years agoPreventing users from over scrolling too far.
Winson [Sat, 5 Mar 2016 00:55:16 +0000 (16:55 -0800)]
Preventing users from over scrolling too far.

- Also tweaking the second part of the unfocused curve to make it more
  linear to touch.

Bug: 27478701
Bug: 27376567

Change-Id: If187ea333579221ef24986d8d37d0606e50ab7bc

8 years agoFixing screenshot regression from ag/879131.
Winson [Mon, 7 Mar 2016 22:52:59 +0000 (14:52 -0800)]
Fixing screenshot regression from ag/879131.

- We were not poking existing TaskViews from updating after their tasks
  have been updated (ie. with a new screenshot)

Change-Id: I33916aecf004afdb88a2462e69437ad1d9e8017d

8 years agoAdd hidden slide fraction call to Slide
Tony Mantler [Mon, 7 Mar 2016 18:20:01 +0000 (10:20 -0800)]
Add hidden slide fraction call to Slide

b/27460758

Change-Id: I936ce1c0ece24dd6a9e1c546f0bf261b37ba97c1

8 years agoMerge "WifiScanner: Add hidden networkIds in scan setting" into mm-wireless-dev
Roshan Pius [Mon, 7 Mar 2016 22:47:59 +0000 (22:47 +0000)]
Merge "WifiScanner: Add hidden networkIds in scan setting" into mm-wireless-dev
am: d412376ca0

* commit 'd412376ca00545857df7a21829e3f674253c0567':
  WifiScanner: Add hidden networkIds in scan setting

8 years agoMerge "WifiScanner: Add hidden networkIds in scan setting" into mm-wireless-dev
Roshan Pius [Mon, 7 Mar 2016 22:44:08 +0000 (22:44 +0000)]
Merge "WifiScanner: Add hidden networkIds in scan setting" into mm-wireless-dev

8 years agoSend APKs through safe install path.
Steve McKay [Mon, 7 Mar 2016 19:49:05 +0000 (11:49 -0800)]
Send APKs through safe install path.

Basically push them through downloads.ui TrampolineActivity
    to get origin url and referer and other security bits
    added before handing off to package manager.

Bug: 24676446
Change-Id: Id40787ada6ace424c4e5e4bfeedc0a8005b7a734

8 years agoFix NPE in PrintManagerService
Jae Seo [Mon, 7 Mar 2016 22:30:33 +0000 (14:30 -0800)]
Fix NPE in PrintManagerService

Bug: 27530312
Change-Id: I86800572a93fbcf37f2e073a1eaee6fbe6658de1

8 years agoMerge "Change suggestion window text color based on user feedback." into nyc-dev
Seigo Nonaka [Mon, 7 Mar 2016 22:26:22 +0000 (22:26 +0000)]
Merge "Change suggestion window text color based on user feedback." into nyc-dev

8 years agoChange suggestion window text color based on user feedback.
Seigo Nonaka [Mon, 7 Mar 2016 21:52:52 +0000 (13:52 -0800)]
Change suggestion window text color based on user feedback.

Changing highlight text color to black alpha=.87 and normal text
to black alpha=.57.

It turned out that alpha value is ignored if we set alpha value
and textColor at the same time. Using #AARRGGBB style instead.

Bug: 27389556
Change-Id: I318379261c66d9da089e8f8bf9f8136c10958511

8 years agoDO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.
Lorenzo Colitti [Mon, 7 Mar 2016 22:19:32 +0000 (22:19 +0000)]
DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.
am: 2a3ca73158  -s ours

* commit '2a3ca73158227751321e98ba707496adf84007a6':
  DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.

8 years agoShow active downloads in Files app Downloads dir.
Steve McKay [Mon, 7 Mar 2016 19:51:31 +0000 (11:51 -0800)]
Show active downloads in Files app Downloads dir.

And permit users to peek into zip files stored in Downloads.
But dont' show active downloads in pickers.

Bug: 26759955
Change-Id: Ib425a79488e953c981ddadeb01a37f6e1d8a8285

8 years agoMerge "Add missing references to VNativeObject" into nyc-dev
Xavier Ducrohet [Mon, 7 Mar 2016 22:13:45 +0000 (22:13 +0000)]
Merge "Add missing references to VNativeObject" into nyc-dev

8 years agoMerge changes I2d6f9932,Ib3cc799d into nyc-dev
Yohei Yukawa [Mon, 7 Mar 2016 22:12:57 +0000 (22:12 +0000)]
Merge changes I2d6f9932,Ib3cc799d into nyc-dev

* changes:
  Rely on SystemService#onSwitchUser() in TSMS.
  Switch to SystemService lifecycle in TSMS.

8 years agoAdd missing references to VNativeObject
Diego Perez [Mon, 7 Mar 2016 22:12:01 +0000 (22:12 +0000)]
Add missing references to VNativeObject

Change-Id: I2db4ad94009c0daff4649da6f85e5c084f4c01ea

8 years agoNew permission for bypassing premium short code check.
Amit Mahajan [Fri, 12 Feb 2016 00:08:14 +0000 (16:08 -0800)]
New permission for bypassing premium short code check.

Bug: 18326557
Change-Id: I1b05f73103183b851bbef1280d0785ce0a48159a

8 years agorename the asisstant service for the ranker
Chris Wren [Fri, 4 Mar 2016 22:30:43 +0000 (17:30 -0500)]
rename the asisstant service for the ranker

Bug: 22960980
Change-Id: Ibe57933303a488b01c43a7621a488d425d6f707d

8 years agoUpdate 'more options' button when changing the printer.
Philip P. Moltmann [Mon, 7 Mar 2016 21:44:59 +0000 (13:44 -0800)]
Update 'more options' button when changing the printer.

Change-Id: I1bf71629027c18e297426e26db2923c447e47734

8 years agoRely on SystemService#onSwitchUser() in TSMS.
Yohei Yukawa [Mon, 7 Mar 2016 21:42:07 +0000 (13:42 -0800)]
Rely on SystemService#onSwitchUser() in TSMS.

SystemService class has already provided SystemService#onSwitchUser()
callback event.  We do not need to set up SynchronousUserSwitchObserver
separately in TextServicesManagerService.

Bug: 25816558
Bug: 27456430
Change-Id: I2d6f9932f30b72cf4ae4bc0c41810f75e2667478

8 years agoSwitch to SystemService lifecycle in TSMS.
Yohei Yukawa [Mon, 7 Mar 2016 21:41:15 +0000 (13:41 -0800)]
Switch to SystemService lifecycle in TSMS.

Like we did this for InputMethodManagerService [1],
TextServicesManagerService (TSMS) needs to be recognized by
SystemServiceManager with SystemService lifecycle mechanism so that we
can receive SystemService#onUnlockUser() event, which is necessary to
make TSMS encryption-aware.

As a preparation, with this CL we only does mechcanical migration to
SystemService lifecycle mechanism in TSMS.  Hence no user-visible
behavior change should occur.

  [1]: Ic17667df60b30e5355b61a3601ad27a000cab3a3
       1e33dc8fdf3f722ecd32cc586b2a9515de24a242

Bug: 27456430
Change-Id: Ib3cc799d384f259b4fa3f5295f2da198df015eb8

8 years agoMerge "Introduce script matching for enabling default IME subtypes." into nyc-dev
Seigo Nonaka [Mon, 7 Mar 2016 21:28:53 +0000 (21:28 +0000)]
Merge "Introduce script matching for enabling default IME subtypes." into nyc-dev

8 years agoRely on SystemService#onSwitchUser() in IMMS.
Yohei Yukawa [Mon, 7 Mar 2016 21:04:32 +0000 (13:04 -0800)]
Rely on SystemService#onSwitchUser() in IMMS.

SystemService class has already provided SystemService#onSwitchUser()
callback event.  We do not need to set up SynchronousUserSwitchObserver
separately in InputMethodManagerService.

Bug: 25816558
Bug: 26279466
Change-Id: I8ce2ba1335ae4caa35f9a21d87b751bfb4614033

8 years agoMerge "Change BridgeResources to Resources_Delegate" into nyc-dev
Xavier Ducrohet [Mon, 7 Mar 2016 20:28:12 +0000 (20:28 +0000)]
Merge "Change BridgeResources to Resources_Delegate" into nyc-dev

8 years agoMerge "Animated vector drawable support" into nyc-dev
Xavier Ducrohet [Mon, 7 Mar 2016 20:26:55 +0000 (20:26 +0000)]
Merge "Animated vector drawable support" into nyc-dev

8 years agoMerge "Revert "AssetManager: Cache a pre-filtered list of configurations"" into nyc-dev
Adam Lesinski [Mon, 7 Mar 2016 20:22:23 +0000 (20:22 +0000)]
Merge "Revert "AssetManager: Cache a pre-filtered list of configurations"" into nyc-dev

8 years agoMerge "Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"" into...
Jean-Michel Trivi [Mon, 7 Mar 2016 19:59:40 +0000 (19:59 +0000)]
Merge "Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"" into nyc-dev

8 years agoRevert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"
Jean-Michel Trivi [Mon, 7 Mar 2016 19:59:21 +0000 (19:59 +0000)]
Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"

This reverts commit 99278e1c724e01b792dd27031bc579e7d738edc1.

Change-Id: Ifcb3f17a26df8171cbc21dac093477b98a1333db

8 years agoIntroduce script matching for enabling default IME subtypes.
Seigo Nonaka [Sat, 5 Mar 2016 02:38:26 +0000 (18:38 -0800)]
Introduce script matching for enabling default IME subtypes.

This is 2nd attempt of I5bb1bd8cdb9096d516d60beb9936e55bf2b757ae

The motivation of this CL is enhance the default IME subtype enabling
algorithm.  The new approach is done by score based algorithm.  The
design of the matching score is determined as follows:
- The matching score for the each two locale is up to 3 and determined
  as follows:
  - Score of 3 : matches all language, script and country.
  - Score of 2 : matches the language and script.
  - Score of 1 : matches the language regardless of country.
  - Score of 0 : doesn't match the language regardless of script and
                 country.
- All locales are fully expanded before matching by addLikelySubtags in
  ICU.

Bug: 27129703
Bug: 27348943
Change-Id: I8fc774154f5175abff2f16e8f12a4847bf5f5b7c

8 years agoRevert "AssetManager: Cache a pre-filtered list of configurations"
Adam Lesinski [Mon, 7 Mar 2016 19:39:56 +0000 (19:39 +0000)]
Revert "AssetManager: Cache a pre-filtered list of configurations"

There is a race due to the modification of shared data structures in the framework ResTable.

See b/27499488

This reverts commit d4b169173ad7805369204277580d3942cb08174a.

Change-Id: I3f400a2ad3b5ffc652b84dd5fe777f7cf34b5548

8 years agoMerge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev
Jean-Michel Trivi [Mon, 7 Mar 2016 19:29:02 +0000 (19:29 +0000)]
Merge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev

8 years agoMaking AccessibilityUtils interface multi-user aware
Muyuan Li [Mon, 7 Mar 2016 18:03:25 +0000 (10:03 -0800)]
Making AccessibilityUtils interface multi-user aware

The getEnabledServices and setAccessibilityServiceState now have an
overloaded version to take in a userId parameter.

Bug: 27383941
Change-Id: I3ea648fd5f22cd2e9402686b83ca42976b5306f8
(cherry picked from commit 2d1c0154b1f9aeeb991dc96efb29aa53c76f4957)

8 years agoDO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.
Lorenzo Colitti [Tue, 1 Mar 2016 03:55:58 +0000 (12:55 +0900)]
DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.

Cherry-picked from 531a34430072b9296aaeb47d9e7d04326a93fee4

Bug: 19159232
Change-Id: Ic366b53259ee5944a8e864876425a6558c0a7216

8 years agoMerge "Fixed IndexOutOfBoundsException when removing child windows" into nyc-dev
Wale Ogunwale [Mon, 7 Mar 2016 18:24:43 +0000 (18:24 +0000)]
Merge "Fixed IndexOutOfBoundsException when removing child windows" into nyc-dev

8 years agoMerge "Add error code to MediaCodec.CryptoException" into nyc-dev
Jeff Tinker [Mon, 7 Mar 2016 18:18:09 +0000 (18:18 +0000)]
Merge "Add error code to MediaCodec.CryptoException" into nyc-dev

8 years agoMerge "Implement glCreateShaderProgramv JNI" into nyc-dev
Pablo Ceballos [Mon, 7 Mar 2016 18:17:24 +0000 (18:17 +0000)]
Merge "Implement glCreateShaderProgramv JNI" into nyc-dev

8 years agoMerge "Add "app printer activity" and always keep the print service state updated...
Philip P. Moltmann [Mon, 7 Mar 2016 18:14:12 +0000 (18:14 +0000)]
Merge "Add "app printer activity" and always keep the print service state updated. Also fiddle with the UI to use more standard values." into nyc-dev

8 years agoFixed IndexOutOfBoundsException when removing child windows
Wale Ogunwale [Sun, 6 Mar 2016 06:38:51 +0000 (22:38 -0800)]
Fixed IndexOutOfBoundsException when removing child windows

The size of the list reduces when a child window is removed from the
list. So, we copy the window list and loop from the last entry to the
first when removing to avoid IndexOutOfBoundsException.

Bug: 27345523
Change-Id: I15986e418d29ee5035dc9d4c4f728ad33bfe6999

8 years agoAdd "app printer activity" and always keep the print service state
Philip P. Moltmann [Wed, 24 Feb 2016 19:32:43 +0000 (11:32 -0800)]
Add "app printer activity" and always keep the print service state
updated. Also fiddle with the UI to use more standard values.

To be sure the print service state alwasy updated I changed
PrintManager.getPrintServices to return a loader which just wraps a
registerListener/getList/removeListener combo.

I also added a new function to enabled/disable a print service to be
keep all updating logic inside the PrintManagerService->UserState.

Then I changed all code to use this new interface.

Detailed comments:

PrintServiceInfo:
- I had to add the enabled state to the PrintServiceInfo as some users
  of PrintManager.getPrintServices want all services but then display
  different data depending on the enabled state. Of course I could have
  created two PrintManager.getPrintServices-loaders to load the two
  separate list of services. I think it is much easier to add this
  property though. It is updated every time new data is returned to the
  PrintManager.getPrintServices-loader.

AddPrinterActivity:
- This is shown as a dialog-style overlay to indicate that the user will
  return to the select-printers activity. It contains of three list that
  are updated via separate loaders.
- The recommended services will be added later to keep this path set
  small.

PrintActivity:
- There are two small places where we have to update the data when we
  get a new list of print services.
  - In very, very rare conditions it can happen that the print service
    of the current printer gains or looses the "advancedOptions"
    activity
  - If we have no enabled print services we want to show "Add printer"
    instead of "All printers...".
- Also the print registry is not the only loader anymore, hence we have
  to assign loader ids to it to not conflict with the other loaders in
  this activity.
- Small bug in onPrintersChanged: If a printer is selected and the print
  service of this printer gets disabled the holder goes into "removed"
  state which disables the printer. When the print service is then
  enabled again, we forgot to re-enable the holder.

PrinterRegistry:
- The registry assumed that the FusedPrinterProvider was the only loader
  in the activity. This is not true anymore, hence it has to assign the
  appropriate loader ids.
- The FusedPrinterProvider has an internal loader, hence we have to
  forward a loader Id into it.
- The PrintRegistry is only called backed for a single loader, hence no
  need to check the loader-id.

SelectPrinterActivity:
- The AddPrinterDialog was removed as we now have the
  AddPrinterActivity.
- Added a loader for the enabled services to update the empty state.
- Added dedicated loader Id for the PrinterRegistry again.
- If we have no enabled services, the SelectPrinterActivity chainloads
  the AddPrinterActivity as this is the only thing the user can do
  anyway. "Save a click". This should only happen when the activity is
  create the first time.
- Moved the "add printer" from the menu item to the list of printers as
  suggested by UX and Zach.

PrintManagerService, UserState and IPrintManagerParamtersTest:
- As the only place where the print service state is updated is now the
  userstate, we have no more sychronization problems. Whohoo.
- The users can now register for changes to the print services similar
  as they can register for changes to the print jobs.
- UserState.getPrintServices is the only function can exposes any
  knowledge of the print services to the outside world.

Change-Id: I9be2c7300431e06aaff9bdf7eb36120d869b56ac

8 years agoMerge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev
Yohei Yukawa [Mon, 7 Mar 2016 17:47:46 +0000 (17:47 +0000)]
Merge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev

8 years agoMerge "Reject RenderNodes contents when clip is empty" into nyc-dev
Chris Craik [Mon, 7 Mar 2016 17:43:30 +0000 (17:43 +0000)]
Merge "Reject RenderNodes contents when clip is empty" into nyc-dev

8 years agoAdded EIDs for ERP, Supported & Extended Rates
Glen Kuhne [Tue, 1 Mar 2016 22:32:28 +0000 (14:32 -0800)]
Added EIDs for ERP, Supported & Extended Rates

Added EIs to InformationElement to support the parsing of Supported
Rates, Extended Supported Rates, and ERP.

BUG=25691077
Change-Id: Ie540e94f9aa0dca11c3b1d6a46c5a638ec958cff

8 years agoMerge "Do not move PDF content as the content is already moved." into nyc-dev
Philip P. Moltmann [Mon, 7 Mar 2016 16:53:37 +0000 (16:53 +0000)]
Merge "Do not move PDF content as the content is already moved." into nyc-dev

8 years agoMerge "Update print document view if printer capabilities changed" into nyc-dev
Philip P. Moltmann [Mon, 7 Mar 2016 16:45:34 +0000 (16:45 +0000)]
Merge "Update print document view if printer capabilities changed" into nyc-dev

8 years agoMerge "Redraw the UI when a print page preview is updated" into nyc-dev
Philip P. Moltmann [Mon, 7 Mar 2016 16:44:39 +0000 (16:44 +0000)]
Merge "Redraw the UI when a print page preview is updated" into nyc-dev

8 years agoDisabled debug logs
Wale Ogunwale [Mon, 7 Mar 2016 15:33:56 +0000 (07:33 -0800)]
Disabled debug logs

Disabled log points that were enabled for b/27286867

Bug: 27286867
Change-Id: I1a5fe82dfc3e85adef12be8b52277be6131f5d73

8 years agoMerge "Fix window insets for settings activities" into nyc-dev
Jason Monk [Mon, 7 Mar 2016 15:33:08 +0000 (15:33 +0000)]
Merge "Fix window insets for settings activities" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Mon, 7 Mar 2016 15:31:23 +0000 (15:31 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev