235158 Commits

Author SHA1 Message Date
Xavier Ducrohet
7ba6dc0fcc Merge "Change BridgeResources to Resources_Delegate" into nyc-dev 2016-03-07 20:28:14 +00:00
Xavier Ducrohet
5b5b1c0c5d Merge "Animated vector drawable support" into nyc-dev 2016-03-07 20:26:56 +00:00
Adam Lesinski
53185a50d1 Merge "Revert "AssetManager: Cache a pre-filtered list of configurations"" into nyc-dev 2016-03-07 20:22:24 +00:00
Jean-Michel Trivi
310355d28e Merge "Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"" into nyc-dev 2016-03-07 19:59:42 +00:00
Jean-Michel Trivi
431ec6cdb9 Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"
This reverts commit 99278e1c724e01b792dd27031bc579e7d738edc1.

Change-Id: Ifcb3f17a26df8171cbc21dac093477b98a1333db
2016-03-07 19:59:21 +00:00
Seigo Nonaka
072a95a309 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
2016-03-07 11:50:30 -08:00
Adam Lesinski
fa7d78ae87 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
2016-03-07 19:39:56 +00:00
Jean-Michel Trivi
46f5429768 Merge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev 2016-03-07 19:29:04 +00:00
Muyuan Li
19df1284d9 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)
2016-03-07 19:08:04 +00:00
Lorenzo Colitti
2a3ca73158 DO NOT MERGE: Move PinningNetworkCallback out to a new NetworkPinner class.
Cherry-picked from 531a34430072b9296aaeb47d9e7d04326a93fee4

Bug: 19159232
Change-Id: Ic366b53259ee5944a8e864876425a6558c0a7216
2016-03-07 10:34:32 -08:00
Wale Ogunwale
8482826287 Merge "Fixed IndexOutOfBoundsException when removing child windows" into nyc-dev 2016-03-07 18:24:44 +00:00
Jeff Tinker
b849eeab26 Merge "Add error code to MediaCodec.CryptoException" into nyc-dev 2016-03-07 18:18:10 +00:00
Pablo Ceballos
659f3a11e9 Merge "Implement glCreateShaderProgramv JNI" into nyc-dev 2016-03-07 18:17:26 +00:00
Philip P. Moltmann
02a465ace7 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 2016-03-07 18:14:14 +00:00
Wale Ogunwale
33fde7d098 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
2016-03-07 10:09:05 -08:00
Philip P. Moltmann
66c96591e2 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
2016-03-07 09:58:08 -08:00
Yohei Yukawa
64177e51e4 Merge "Ensure PopupDecorView is not IME-focusable during exit transition." into nyc-dev 2016-03-07 17:47:48 +00:00
Chris Craik
a98222ae7a Merge "Reject RenderNodes contents when clip is empty" into nyc-dev 2016-03-07 17:43:32 +00:00
Glen Kuhne
bff37ecdaa 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
2016-03-07 08:54:07 -08:00
Philip P. Moltmann
75e9129453 Merge "Do not move PDF content as the content is already moved." into nyc-dev 2016-03-07 16:53:39 +00:00
Philip P. Moltmann
59d12c6a27 Merge "Update print document view if printer capabilities changed" into nyc-dev 2016-03-07 16:45:36 +00:00
Philip P. Moltmann
0d92153759 Merge "Redraw the UI when a print page preview is updated" into nyc-dev 2016-03-07 16:44:41 +00:00
Wale Ogunwale
e4f131a595 Disabled debug logs
Disabled log points that were enabled for b/27286867

Bug: 27286867
Change-Id: I1a5fe82dfc3e85adef12be8b52277be6131f5d73
2016-03-07 07:33:56 -08:00
Jason Monk
cea711916d Merge "Fix window insets for settings activities" into nyc-dev 2016-03-07 15:33:10 +00:00
Geoff Mendal
0726c8aec5 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-07 15:31:24 +00:00
Jason Monk
73f842917e Fix window insets for settings activities
Bug: 27276035
Change-Id: I48d8361f38dd7b708c49e71087e3e2ebf3f2df7a
2016-03-07 10:31:15 -05:00
Geoff Mendal
3da14578db Import translations. DO NOT MERGE
Change-Id: I8cf0013b48f45c76a22bf6235bed8f50a05235e0
Auto-generated-cl: translation import
2016-03-07 07:30:19 -08:00
Geoff Mendal
f49a740ecd Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-07 15:26:59 +00:00
Geoff Mendal
db0b359e90 Import translations. DO NOT MERGE
Change-Id: Ic8549a10856925a33d2fde60685914c59c9ac89e
Auto-generated-cl: translation import
2016-03-07 07:24:43 -08:00
Geoff Mendal
40df5dfa34 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-07 15:21:04 +00:00
Geoff Mendal
d76f9a23c9 Import translations. DO NOT MERGE
Change-Id: I4124a949eb423b0ab9074825c1eb7f00f1fd7302
Auto-generated-cl: translation import
2016-03-07 07:20:15 -08:00
Geoff Mendal
3620737531 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-07 15:15:59 +00:00
Geoff Mendal
0595d78d12 Import translations. DO NOT MERGE
Change-Id: I6e0ba0cb89a831434306e8681b9c66d803394103
Auto-generated-cl: translation import
2016-03-07 07:13:50 -08:00
Jason Monk
c8bc4713d0 Merge "Move QS Edit into QSContainer" into nyc-dev 2016-03-07 14:56:05 +00:00
Jason Monk
8b9d67fb63 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
2016-03-07 09:55:27 -05:00
Paul Mclean
ca8772377e Merge "Remove redundant stop() from native audiotrack release." into nyc-dev 2016-03-07 14:30:24 +00:00
Kenny Guy
fdadb4b475 Merge "Don't crash if KeyChain can't be bound to." into nyc-dev 2016-03-07 14:07:43 +00:00
Kenny Guy
1145cd26bd 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
2016-03-07 13:59:56 +00:00
Geoff Mendal
00694afd43 Import translations. DO NOT MERGE
Change-Id: Ic74d711aa527bd6696c8ea4f79d251426265941b
Auto-generated-cl: translation import
2016-03-07 08:25:10 -05:00
Michal Karpinski
a586c55dc9 Merge "Do not re-define remote bugreport constants defined in DevicePolicyManager" into nyc-dev 2016-03-07 11:02:20 +00:00
Daichi Hirono
37a655aac1 Fix null pointer exception in DocumentLoader.
BUG=27489909

Change-Id: I1ebc9953f6db6639241d0c46257d110c5b0eb5b0
2016-03-07 19:41:10 +09:00
Diego Perez
566b303365 Add support for GradientColor in layoutlib
Change-Id: Ia9a55a9e00d7ddb5263f3dbe46b5da8dde457526
2016-03-07 09:11:11 +00:00
Deepanshu Gupta
e05f1c4684 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
2016-03-07 09:09:02 +00:00
Insun Kang
bf8ff76fee Merge "Fix wrong metadata conversion in MediaSessionLegacyHelper" into nyc-dev 2016-03-07 06:31:22 +00:00
Yohei Yukawa
dbd299de2a 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
2016-03-06 22:27:40 -08:00
Daichi Hirono
a30918dc26 Merge "Ensure to complete background thread of PipeManager." into nyc-dev 2016-03-07 04:54:07 +00:00
Roshan Pius
49b6f19ded 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
2016-03-06 20:22:11 -08:00
Daichi Hirono
82ab9801eb Add a new key to Settings.Global to obtain the number of boot.
BUG=26212981

Change-Id: I5ca51ca624a30dc2d96e547a85a712e273af1931
2016-03-07 12:45:19 +09:00
Yohei Yukawa
e95ba66be0 Merge "Use Java7 diamond operator in TSMS." into nyc-dev 2016-03-07 02:50:04 +00:00
Keisuke Kuroyanagi
15ae7c1328 Merge "Try to find equivalent SuggestionsSpan when it has been updated." into nyc-dev 2016-03-07 02:48:17 +00:00