OSDN Git Service

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

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.

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
Change-Id: I5bb1bd8cdb9096d516d60beb9936e55bf2b757ae

8 years agoMerge "Skip publishContentProviders() when we have zero." into nyc-dev
Jeff Sharkey [Sun, 6 Mar 2016 02:50:31 +0000 (02:50 +0000)]
Merge "Skip publishContentProviders() when we have zero." into nyc-dev

8 years agoSkip publishContentProviders() when we have zero.
Jeff Sharkey [Sun, 6 Mar 2016 02:48:59 +0000 (19:48 -0700)]
Skip publishContentProviders() when we have zero.

If the list of providers for the application being bound is empty,
don't bother trying to register them.

Bug: 27510621
Change-Id: I921fb70a4c97433fa123fa88e170745ee013ee35

8 years agoMerge "Set default ringtones through RingtoneManager." into nyc-dev
Jeff Sharkey [Sun, 6 Mar 2016 00:50:19 +0000 (00:50 +0000)]
Merge "Set default ringtones through RingtoneManager." into nyc-dev

8 years agoMerge "fix DocumentsUI tests makefile" into nyc-dev
Guang Zhu [Sun, 6 Mar 2016 00:48:34 +0000 (00:48 +0000)]
Merge "fix DocumentsUI tests makefile" into nyc-dev

8 years agofix DocumentsUI tests makefile
Guang Zhu [Sat, 5 Mar 2016 23:46:46 +0000 (15:46 -0800)]
fix DocumentsUI tests makefile

For instrumentation test apks, it should not statically include
Java libraries that are already present in the app module being
instrumented. They only need to be on classpath during compile
time.

Bug: 26689464
Change-Id: I68d4be95e30ae70bbab23d016a87eb085c10cc50

8 years agoSet default ringtones through RingtoneManager.
Jeff Sharkey [Sun, 6 Mar 2016 00:43:20 +0000 (17:43 -0700)]
Set default ringtones through RingtoneManager.

RingtoneManager is the public API that everyone should be going
through, and it now has the side-effect of caching the set ringtone
to make it available before CE storage is unlocked.

Bug: 27435331
Change-Id: I30ed4e2df2ef1e4fd47f947c70845aaa74356384

8 years agoMerge "Ask RingtonePlayer to open data for caching." into nyc-dev
Jeff Sharkey [Sun, 6 Mar 2016 00:29:00 +0000 (00:29 +0000)]
Merge "Ask RingtonePlayer to open data for caching." into nyc-dev

8 years agoAsk RingtonePlayer to open data for caching.
Jeff Sharkey [Sun, 6 Mar 2016 00:23:28 +0000 (17:23 -0700)]
Ask RingtonePlayer to open data for caching.

When setting default ringtones, RingtoneManager now caches the
selected media for playback before the device is unlocked.  However,
this API hasn't historically required the caller to hold storage
permissions.

To keep this working, we attempt to delegate ringtone access over
through RingtonePlayer, which is what we do for playback.  However,
because we're caching the real ringtone bits now, we need to be much
more careful about the PFDs we're willing to return.  This change
requires that they be in external storage, and that they have the
ringtone/alarm/notification bit set.

Bug: 27366059
Change-Id: I59c2adc1d1250a3eac281f190f35a7cb3119967b

8 years agoMerge "Add AssetFileDescriptor to MediaExtractor." into nyc-dev
Jeff Sharkey [Sat, 5 Mar 2016 23:09:23 +0000 (23:09 +0000)]
Merge "Add AssetFileDescriptor to MediaExtractor." into nyc-dev

8 years agoAdd AssetFileDescriptor to MediaExtractor.
Jeff Sharkey [Sat, 5 Mar 2016 22:57:58 +0000 (15:57 -0700)]
Add AssetFileDescriptor to MediaExtractor.

Mirrors API on MediaPlayer.

Bug: 27506874
Change-Id: Ibc07cf8151c362ff7375b89e7a9044bef1d9e94d

8 years agoMerge "Kick Bluetooth stack after user is unlocked." into nyc-dev
Jeff Sharkey [Sat, 5 Mar 2016 22:28:33 +0000 (22:28 +0000)]
Merge "Kick Bluetooth stack after user is unlocked." into nyc-dev

8 years agoKick Bluetooth stack after user is unlocked.
Jeff Sharkey [Sat, 5 Mar 2016 21:42:58 +0000 (14:42 -0700)]
Kick Bluetooth stack after user is unlocked.

If Bluetooth was enabled at boot time, but the actual Bluetooth
package wasn't encryption aware, we need to kick off another enabled
pass once the user is unlocked.

Bug: 27326711
Change-Id: I511c4fd8567792e5bc4d49fa95929fd87edd0fbf

8 years agoMerge "Bluetooth should use Slog." into nyc-dev
Jeff Sharkey [Sat, 5 Mar 2016 21:30:30 +0000 (21:30 +0000)]
Merge "Bluetooth should use Slog." into nyc-dev

8 years agoBluetooth should use Slog.
Jeff Sharkey [Sat, 5 Mar 2016 21:29:13 +0000 (14:29 -0700)]
Bluetooth should use Slog.

It's in the system process, so whatever it has to say is probably
important enough to stick around.

Change-Id: Iaeca99d6b9c4881c53ab89216b5128e345a5ff0f

8 years agoMerge "Move more PM calls to ParceledListSlice." into nyc-dev
Jeff Sharkey [Sat, 5 Mar 2016 21:06:37 +0000 (21:06 +0000)]
Merge "Move more PM calls to ParceledListSlice." into nyc-dev

8 years agoAdd error code to MediaCodec.CryptoException
Jeff Tinker [Sat, 5 Mar 2016 19:35:20 +0000 (11:35 -0800)]
Add error code to MediaCodec.CryptoException

Added a code to represent unsupported operations

bug: 25929554
Change-Id: Id8bfa092f29de073db19c4d7444f89249ea2cdd5

8 years agoRemove accidentally committed core dump file
Adam Lesinski [Sat, 5 Mar 2016 06:30:32 +0000 (22:30 -0800)]
Remove accidentally committed core dump file

Change-Id: I610abfbce62585c25e98b5c36ac9f496861e66e7

8 years agoMerge "AAPT2: Emit proper doclava comments in R.java" into nyc-dev
Adam Lesinski [Sat, 5 Mar 2016 05:39:00 +0000 (05:39 +0000)]
Merge "AAPT2: Emit proper doclava comments in R.java" into nyc-dev

8 years agoMerge "AAPT2: Support --no-version-vectors" into nyc-dev
Adam Lesinski [Sat, 5 Mar 2016 05:38:05 +0000 (05:38 +0000)]
Merge "AAPT2: Support --no-version-vectors" into nyc-dev

8 years agoAAPT2: Emit proper doclava comments in R.java
Adam Lesinski [Thu, 3 Mar 2016 23:39:50 +0000 (15:39 -0800)]
AAPT2: Emit proper doclava comments in R.java

Bug:25958912
Change-Id: I663f2eb5bd54e3c3288ce9bc186c928f0a014f93

8 years agoMerge "Fixed the crash caused by type mismatch" into nyc-dev
Lifu Tang [Sat, 5 Mar 2016 01:28:47 +0000 (01:28 +0000)]
Merge "Fixed the crash caused by type mismatch" into nyc-dev

8 years agoMerge "Don't crash legacy apps with revoked "Draw over apps access"" into nyc-dev
Svetoslav Ganov [Sat, 5 Mar 2016 01:25:32 +0000 (01:25 +0000)]
Merge "Don't crash legacy apps with revoked "Draw over apps access"" into nyc-dev

8 years agoMerge changes I5c414d67,I83d74c94 into nyc-dev
Winson Chung [Sat, 5 Mar 2016 01:21:01 +0000 (01:21 +0000)]
Merge changes I5c414d67,I83d74c94 into nyc-dev

* changes:
  Just return the task to the pool if it is not in the current stack.
  Refactoring to update stack in onResume.

8 years agoAAPT2: Support --no-version-vectors
Adam Lesinski [Thu, 3 Mar 2016 18:09:26 +0000 (10:09 -0800)]
AAPT2: Support --no-version-vectors

Change-Id: I8029b2f9e2f7ab8e37a49565f95210f47a7be609

8 years agoFixed the crash caused by type mismatch
Lifu Tang [Sat, 5 Mar 2016 01:01:06 +0000 (17:01 -0800)]
Fixed the crash caused by type mismatch

Bug: 27503442
Change-Id: I019afc1f3dd872c8f9d79e9b6e589a77acd0cddc

8 years agoJust return the task to the pool if it is not in the current stack.
Winson [Fri, 4 Mar 2016 19:21:09 +0000 (11:21 -0800)]
Just return the task to the pool if it is not in the current stack.

Bug: 27467025
Change-Id: I5c414d674fb0db152b77c2025b4885d340e81880

8 years agoRefactoring to update stack in onResume.
Winson [Wed, 17 Feb 2016 21:27:33 +0000 (13:27 -0800)]
Refactoring to update stack in onResume.

This CL fixes a long-standing issue in which Recents is not updated
correctly if it is not completely hidden and shown.  In particular, it
would cause animation issues when launching into a non-fullscreen
activity or if the user quickly toggles between recent tasks.  It
contains several fixes:

- The visual state in Recents is no longer reset until the activity is
  fully hidden (onStop() is called), and the task stack state is saved
  allowing us to return to the same initial state.  When restarting the
  activity, we propagate whether the activity was hidden down the view
  hierarchy, so that each task can decide whether to reset itself.
- When the recents activity is started, we now merge the new stack with
  the current stack instead of replacing it completely.  This unifies
  the logic when dismissing multi-window while Recents is open, and this
  CL fixes an issue with the merging where onStackTaskAdded() was called
  before the stack was updated with the new task.  As a result of this
  change, we can just rebind the task views without having to return and
  pick them up from the view pool.
- This CL also fixes an issue with flashing when the screen turns off.
  The activity onStop() can be called before the activity is fully
  hidden, which would trigger a reset(), which would return all views to
  the pool.

Bug: 23815609
Bug: 25411120
Bug: 27186407
Change-Id: I83d74c947f9b47766d6778b7f5c421bb6df833e9

8 years agoMerge "Changed breadcrumb arrow to match mocks" into nyc-dev
Aga Wronska [Sat, 5 Mar 2016 00:29:47 +0000 (00:29 +0000)]
Merge "Changed breadcrumb arrow to match mocks" into nyc-dev

8 years agoReject RenderNodes contents when clip is empty
Chris Craik [Fri, 15 Jan 2016 00:15:03 +0000 (16:15 -0800)]
Reject RenderNodes contents when clip is empty

bug:22630332

Change-Id: I326123de3154f655e35d649c242daea3b4f0fda0

8 years agoDon't crash legacy apps with revoked "Draw over apps access"
Svet Ganov [Sat, 5 Mar 2016 00:13:03 +0000 (16:13 -0800)]
Don't crash legacy apps with revoked "Draw over apps access"

bug:26396161

Change-Id: I8b86e175b4815e58ace78c37a86141c5e4dbe183

8 years agoMerge "Support GPU profiling vis in new pipeline" into nyc-dev
Chris Craik [Sat, 5 Mar 2016 00:19:09 +0000 (00:19 +0000)]
Merge "Support GPU profiling vis in new pipeline" into nyc-dev

8 years agoSupport GPU profiling vis in new pipeline
Chris Craik [Fri, 4 Mar 2016 23:59:24 +0000 (15:59 -0800)]
Support GPU profiling vis in new pipeline

bug:27353099

Change-Id: I905c1a998d9a9e2097c047dab9de87a70d7a370e

8 years agoChanged breadcrumb arrow to match mocks
Aga Wronska [Sat, 5 Mar 2016 00:10:12 +0000 (16:10 -0800)]
Changed breadcrumb arrow to match mocks

Bug: 27136601
Change-Id: I03b3d789c1edf8de7f3d92238045cca123ce5e72

8 years agoMerge "AAPT2: Support building, linking, and merging static libraries" into nyc-dev
Adam Lesinski [Fri, 4 Mar 2016 23:46:48 +0000 (23:46 +0000)]
Merge "AAPT2: Support building, linking, and merging static libraries" into nyc-dev

8 years agoMerge "Fix BiDi issues in app error dialogs" into nyc-dev
Adrian Roos [Fri, 4 Mar 2016 23:37:02 +0000 (23:37 +0000)]
Merge "Fix BiDi issues in app error dialogs" into nyc-dev

8 years agoMove more PM calls to ParceledListSlice.
Jeff Sharkey [Fri, 4 Mar 2016 23:16:00 +0000 (16:16 -0700)]
Move more PM calls to ParceledListSlice.

Since the data returned by these calls can grow unbounded based on
various GET flags, we need to switch 'em over.

Bug: 27391893
Change-Id: Ie849ca30dbaaa91158da4c83675657715629a0ee

8 years agoLog bouncer prompt reason
Adrian Roos [Thu, 3 Mar 2016 23:39:03 +0000 (15:39 -0800)]
Log bouncer prompt reason

Bug: 27434873
Change-Id: I6918507b66506cf95b20f95fe4a5cb19c899122f

8 years agoMerge "API changes for audio recording notifications" into nyc-dev
Jean-Michel Trivi [Fri, 4 Mar 2016 22:49:29 +0000 (22:49 +0000)]
Merge "API changes for audio recording notifications" into nyc-dev