OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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

8 years agoFix window insets for settings activities
Jason Monk [Mon, 7 Mar 2016 15:31:15 +0000 (10:31 -0500)]
Fix window insets for settings activities

Bug: 27276035
Change-Id: I48d8361f38dd7b708c49e71087e3e2ebf3f2df7a

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 7 Mar 2016 15:30:19 +0000 (07:30 -0800)]
Import translations. DO NOT MERGE

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

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 7 Mar 2016 15:24:43 +0000 (07:24 -0800)]
Import translations. DO NOT MERGE

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

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 7 Mar 2016 15:20:15 +0000 (07:20 -0800)]
Import translations. DO NOT MERGE

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

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 7 Mar 2016 15:13:50 +0000 (07:13 -0800)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Move QS Edit into QSContainer" into nyc-dev
Jason Monk [Mon, 7 Mar 2016 14:56:04 +0000 (14:56 +0000)]
Merge "Move QS Edit into QSContainer" into nyc-dev

8 years agoMove QS Edit into QSContainer
Jason Monk [Wed, 2 Mar 2016 13:59:08 +0000 (08:59 -0500)]
Move QS Edit into QSContainer

This will let it play nicely with heads up.

 - Move to QS Container.
 - QS Edit is always full height (some layout hacks to do this)
 - Always draw QS customizer on top when animating
 - Block all panel scrolling while QS edit is open (all touches
   go to editing)
 - Instantaneously change the height of the QS container at
   start/end of animation as needed

Bug: 26969293
Change-Id: Iedc6f5aaf659dcc6750972eae5f69cc0cd2df844

8 years agoMerge "Remove redundant stop() from native audiotrack release." into nyc-dev
Paul Mclean [Mon, 7 Mar 2016 14:30:23 +0000 (14:30 +0000)]
Merge "Remove redundant stop() from native audiotrack release." into nyc-dev

8 years agoMerge "Don't crash if KeyChain can't be bound to." into nyc-dev
Kenny Guy [Mon, 7 Mar 2016 14:07:41 +0000 (14:07 +0000)]
Merge "Don't crash if KeyChain can't be bound to." into nyc-dev

8 years agoDon't crash if KeyChain can't be bound to.
Kenny Guy [Mon, 7 Mar 2016 13:59:56 +0000 (13:59 +0000)]
Don't crash if KeyChain can't be bound to.

KeyChain can throw an assertion error if
is not around, don't allow that to take down
system.

Bug: 27518175
Change-Id: I99418dfb65c58d3e07cbda91860cdb493b96a836

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 7 Mar 2016 13:25:10 +0000 (08:25 -0500)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Do not re-define remote bugreport constants defined in DevicePolicyManager...
Michal Karpinski [Mon, 7 Mar 2016 11:02:18 +0000 (11:02 +0000)]
Merge "Do not re-define remote bugreport constants defined in DevicePolicyManager" into nyc-dev

8 years agoFix null pointer exception in DocumentLoader.
Daichi Hirono [Fri, 4 Mar 2016 09:43:21 +0000 (18:43 +0900)]
Fix null pointer exception in DocumentLoader.

BUG=27489909

Change-Id: I1ebc9953f6db6639241d0c46257d110c5b0eb5b0

8 years agoAdd support for GradientColor in layoutlib
Diego Perez [Tue, 1 Mar 2016 16:20:43 +0000 (16:20 +0000)]
Add support for GradientColor in layoutlib

Change-Id: Ia9a55a9e00d7ddb5263f3dbe46b5da8dde457526

8 years agoChange BridgeResources to Resources_Delegate
Deepanshu Gupta [Fri, 4 Mar 2016 14:01:28 +0000 (19:31 +0530)]
Change BridgeResources to Resources_Delegate

This is a very hacky fix to make layoutlib work with the latest support
lib. Inject a couple of fields in android.content.res.Resources to
allow using most of the earlier code as is.

Bug: 27403642
Bug: http://b.android.com/201934
Change-Id: Ia96a1b4642a1907a77d9ca7a2392f78809b92e38

8 years agoMerge "Fix wrong metadata conversion in MediaSessionLegacyHelper" into nyc-dev
Insun Kang [Mon, 7 Mar 2016 06:31:21 +0000 (06:31 +0000)]
Merge "Fix wrong metadata conversion in MediaSessionLegacyHelper" into nyc-dev

8 years agoEnsure PopupDecorView is not IME-focusable during exit transition.
Yohei Yukawa [Mon, 7 Mar 2016 06:27:40 +0000 (22:27 -0800)]
Ensure PopupDecorView is not IME-focusable during exit transition.

Currently PopupDecorView temporarily gets FLAG_NOT_FOCUSABLE bit during
exit transition.  When doing this we it is important that PopupDecorView
does not have FLAG_ALT_FOCUSABLE_IM bit, because having both
FLAG_NOT_FOCUSABLE and FLAG_ALT_FOCUSABLE_IM means that PopupDecorView
is IME-focusable.

To prevent IMEs from flickering, this CL ensures that PopupDecorView is
not IME-focusable during exit transition.

Bug: 27396330
Change-Id: I0cc81791b826f7d4257f0b6085c028c796fd9536

8 years agoMerge "Ensure to complete background thread of PipeManager." into nyc-dev
Daichi Hirono [Mon, 7 Mar 2016 04:54:06 +0000 (04:54 +0000)]
Merge "Ensure to complete background thread of PipeManager." into nyc-dev

8 years agoWifiScanner: Add hidden networkIds in scan setting
Roshan Pius [Sat, 5 Mar 2016 01:33:17 +0000 (17:33 -0800)]
WifiScanner: Add hidden networkIds in scan setting

Add the hidden networkId list in scan settings to be used for
connectivity scans.

BUG: 27503786
Change-Id: Ibe7eaccd84d03a7b48728e3ea1d98ccc974377ec
TEST: Compiles & unit-test passes

8 years agoAdd a new key to Settings.Global to obtain the number of boot.
Daichi Hirono [Wed, 2 Mar 2016 04:23:29 +0000 (13:23 +0900)]
Add a new key to Settings.Global to obtain the number of boot.

BUG=26212981

Change-Id: I5ca51ca624a30dc2d96e547a85a712e273af1931

8 years agoMerge "Use Java7 diamond operator in TSMS." into nyc-dev
Yohei Yukawa [Mon, 7 Mar 2016 02:50:03 +0000 (02:50 +0000)]
Merge "Use Java7 diamond operator in TSMS." into nyc-dev

8 years agoMerge "Try to find equivalent SuggestionsSpan when it has been updated." into nyc-dev
Keisuke Kuroyanagi [Mon, 7 Mar 2016 02:48:15 +0000 (02:48 +0000)]
Merge "Try to find equivalent SuggestionsSpan when it has been updated." into nyc-dev

8 years agoMerge "PIP: Apply the latest UI spec for overlay text" into nyc-dev
Jaewan Kim [Mon, 7 Mar 2016 01:22:55 +0000 (01:22 +0000)]
Merge "PIP: Apply the latest UI spec for overlay text" into nyc-dev

8 years agoUse Java7 diamond operator in TSMS.
Yohei Yukawa [Sun, 6 Mar 2016 22:34:55 +0000 (14:34 -0800)]
Use Java7 diamond operator in TSMS.

This CL changes nothing except for deleting redundant type parameters by
using diamond operator in TextServicesManagerService (TSMS).

No behavior change is intended.

Bug: 27456430
Change-Id: I18708fe44d2d9edfef8c1cf7cffef1bb0b5c003a

8 years agoRevert "Introduce script matching for enabling default IME subtypes."
Yohei Yukawa [Sun, 6 Mar 2016 05:46:20 +0000 (21:46 -0800)]
Revert "Introduce script matching for enabling default IME subtypes."

This reverts commit 9e7a1c9824cffca32fd7d58bb13bd3416ab32091.

Seems that that CL causes ArrayIndexOutOfBoundsException when
initializing InputMethodManagerService, which results in an infinite
boot animation.

Bug: 27129703
Bug: 27348943
Change-Id: I474a87876670ac018c675ac7b4608e90fbb2434b

8 years agoMerge "Don't make home stack visible if starting activity isn't translucent" into...
Wale Ogunwale [Sun, 6 Mar 2016 04:16:43 +0000 (04:16 +0000)]
Merge "Don't make home stack visible if starting activity isn't translucent" into nyc-dev

8 years agoDon't make home stack visible if starting activity isn't translucent
Wale Ogunwale [Fri, 4 Mar 2016 18:27:32 +0000 (10:27 -0800)]
Don't make home stack visible if starting activity isn't translucent

We allow the home stack to be visible right behind the fullscreen
stack if all the activities fullscreen stack are translucent and
visible. However, if we are starting an acitvity it isn't visible
yet so our check for translucent activities in the fullscreen
stack will return true since there is nothing visible. This will
cause the home stack to the visible and the visiblilty of its app
token set to true in window manager and it been factored into the
transition animation.

In addition to checking if the activity is visible, we now also
check if it is the starting activity when trying to determine if
the stack is translucent.

Bug: 27448511
Change-Id: Icbbd57c0632cc5389c7ac894800a41f75d4bc450

8 years agoMerge "Introduce script matching for enabling default IME subtypes." into nyc-dev
Seigo Nonaka [Sun, 6 Mar 2016 03:02:24 +0000 (03:02 +0000)]
Merge "Introduce script matching for enabling default IME subtypes." into nyc-dev