OSDN Git Service

android-x86/frameworks-base.git
8 years agoTurn down the logging in ApfFilter.
Joe Onorato [Thu, 17 Mar 2016 20:41:23 +0000 (13:41 -0700)]
Turn down the logging in ApfFilter.

Bug: 27685384
Change-Id: I3583a61bfd7570caf017ee53f8b190388e3aa400

8 years agoMerge "Avoid allocation in methods of Outline" into nyc-dev
Chris Craik [Thu, 17 Mar 2016 17:21:32 +0000 (17:21 +0000)]
Merge "Avoid allocation in methods of Outline" into nyc-dev

8 years agoMerge "Lower the minimum period for periodic jobs to 15 minutes" into nyc-dev
Chris Tate [Thu, 17 Mar 2016 17:13:11 +0000 (17:13 +0000)]
Merge "Lower the minimum period for periodic jobs to 15 minutes" into nyc-dev

8 years agoMerge "Reload cached icons on density change." into nyc-dev
Jason Monk [Thu, 17 Mar 2016 17:13:04 +0000 (17:13 +0000)]
Merge "Reload cached icons on density change." into nyc-dev

8 years agoReload cached icons on density change.
Jason Monk [Thu, 17 Mar 2016 17:10:57 +0000 (13:10 -0400)]
Reload cached icons on density change.

Bug: 26038240
Change-Id: I3688996aa544a6bc7a464d7b95348acf68d640fa

8 years agoMerge "Account for text op stroke in bounds calculation" into nyc-dev
Chris Craik [Thu, 17 Mar 2016 17:05:14 +0000 (17:05 +0000)]
Merge "Account for text op stroke in bounds calculation" into nyc-dev

8 years agoMerge "Port OpenJDK 8 java.util.Arrays#setAll methods" into nyc-dev
Shubham Ajmera [Thu, 17 Mar 2016 16:57:47 +0000 (16:57 +0000)]
Merge "Port OpenJDK 8 java.util.Arrays#setAll methods" into nyc-dev

8 years agoPort OpenJDK 8 java.util.Arrays#setAll methods
Shubham Ajmera [Thu, 17 Mar 2016 16:24:52 +0000 (16:24 +0000)]
Port OpenJDK 8 java.util.Arrays#setAll methods

and add tests

Bug: 27540010
(cherry-picked from commit 8586ec5f15613d42ab55c5253c1d386fff473033)
Change-Id: I18f502caabc2f140fa503a0b03e9d6e310b4246c

8 years agoMerge "Replace hard coded color with equivalent theme value." into nyc-dev
Seigo Nonaka [Thu, 17 Mar 2016 16:32:09 +0000 (16:32 +0000)]
Merge "Replace hard coded color with equivalent theme value." into nyc-dev

8 years agoMerge "Fix work notification dismissed in work challenge screen" into nyc-dev
Ricky Wai [Thu, 17 Mar 2016 16:27:37 +0000 (16:27 +0000)]
Merge "Fix work notification dismissed in work challenge screen" into nyc-dev

8 years agoFix work notification dismissed in work challenge screen
Ricky Wai [Wed, 16 Mar 2016 12:13:54 +0000 (12:13 +0000)]
Fix work notification dismissed in work challenge screen

Bug: 26578550
Change-Id: Ic3a3a47a24df573b37b22ba1afeeaa83b312b201

8 years agoMerge "update "dont kill" api" into nyc-dev
Todd Kennedy [Thu, 17 Mar 2016 15:58:22 +0000 (15:58 +0000)]
Merge "update "dont kill" api" into nyc-dev

8 years agoMerge "Stop layout reset by setting empty locale list." into nyc-dev
Roozbeh Pournader [Thu, 17 Mar 2016 15:46:06 +0000 (15:46 +0000)]
Merge "Stop layout reset by setting empty locale list." into nyc-dev

8 years agoMerge "The PageAdapter update might be caused by the RecylerView." into nyc-dev
Philip P. Moltmann [Thu, 17 Mar 2016 15:41:22 +0000 (15:41 +0000)]
Merge "The PageAdapter update might be caused by the RecylerView." into nyc-dev

8 years agoMerge "Sanitize app op service inputs" into nyc-dev
Svetoslav Ganov [Thu, 17 Mar 2016 15:35:54 +0000 (15:35 +0000)]
Merge "Sanitize app op service inputs" into nyc-dev

8 years agoMerge "Use audio_session_t consistently" into nyc-dev
Glenn Kasten [Thu, 17 Mar 2016 14:22:50 +0000 (14:22 +0000)]
Merge "Use audio_session_t consistently" into nyc-dev

8 years agoMerge "don't call other services in dump" into nyc-dev
Chris Wren [Thu, 17 Mar 2016 13:59:02 +0000 (13:59 +0000)]
Merge "don't call other services in dump" into nyc-dev

8 years agoMerge "Fix up label in QS detail" into nyc-dev
Jason Monk [Thu, 17 Mar 2016 13:32:52 +0000 (13:32 +0000)]
Merge "Fix up label in QS detail" into nyc-dev

8 years agoMerge "Fix Settings home lifecycle" into nyc-dev
Jason Monk [Thu, 17 Mar 2016 13:32:18 +0000 (13:32 +0000)]
Merge "Fix Settings home lifecycle" into nyc-dev

8 years agoMerge "Change drag label while dragging QS tiles" into nyc-dev
Jason Monk [Thu, 17 Mar 2016 13:32:02 +0000 (13:32 +0000)]
Merge "Change drag label while dragging QS tiles" into nyc-dev

8 years agoMerge "Add some synchronization to hotspot callbacks" into nyc-dev
Jason Monk [Thu, 17 Mar 2016 13:31:29 +0000 (13:31 +0000)]
Merge "Add some synchronization to hotspot callbacks" into nyc-dev

8 years agoMerge "Close overflow when hiding QS editor" into nyc-dev
Jason Monk [Thu, 17 Mar 2016 13:30:51 +0000 (13:30 +0000)]
Merge "Close overflow when hiding QS editor" into nyc-dev

8 years agoMerge "Return DNG mimeType for the case kRAW_SkEncodedFormat" into nyc-dev
Yujie Qin [Thu, 17 Mar 2016 13:30:44 +0000 (13:30 +0000)]
Merge "Return DNG mimeType for the case kRAW_SkEncodedFormat" into nyc-dev

8 years agoReturn DNG mimeType for the case kRAW_SkEncodedFormat
Yujie Qin [Thu, 17 Mar 2016 13:13:22 +0000 (14:13 +0100)]
Return DNG mimeType for the case kRAW_SkEncodedFormat

Bug: 27587823
Change-Id: I0f539034a883083a30f33262edc715714f45e60d

8 years agoMerge "Load WebView library into the right classloader namespace." into nyc-dev
Richard Coles [Thu, 17 Mar 2016 12:52:21 +0000 (12:52 +0000)]
Merge "Load WebView library into the right classloader namespace." into nyc-dev

8 years agoStop layout reset by setting empty locale list.
Seigo Nonaka [Thu, 17 Mar 2016 12:18:53 +0000 (21:18 +0900)]
Stop layout reset by setting empty locale list.

Do not call Configuration.setLocales(empty LocaleList) if the locale
list is empty since Configuration.setLocales calls setLayoutDirection
which resets the layout to LTR.

Bug: 27411138
Change-Id: I7fa9693cdb7ed90267f074812c26ea50314ad839

8 years agoMerge "Unifying method names and comments to security logging, not device logging...
Rubin Xu [Thu, 17 Mar 2016 11:23:54 +0000 (11:23 +0000)]
Merge "Unifying method names and comments to security logging, not device logging" into nyc-dev

8 years agoMerge changes Idf0cfee8,I27307e2e into nyc-dev
Lorenzo Colitti [Thu, 17 Mar 2016 11:17:46 +0000 (11:17 +0000)]
Merge changes Idf0cfee8,I27307e2e into nyc-dev

* changes:
  Use native netd binder interface in NetworkManagementService.
  Fix IdleableHandlerThread.

8 years agoMerge "Change wording of WebView Implementation invalid-choice Toast." into nyc-dev
Gustav Sennton [Thu, 17 Mar 2016 10:53:23 +0000 (10:53 +0000)]
Merge "Change wording of WebView Implementation invalid-choice Toast." into nyc-dev

8 years agoMerge "Fix forgot adding textEditSuggestionHighlightStyle to dark theme." into nyc-dev
Seigo Nonaka [Thu, 17 Mar 2016 09:38:15 +0000 (09:38 +0000)]
Merge "Fix forgot adding textEditSuggestionHighlightStyle to dark theme." into nyc-dev

8 years agoUse native netd binder interface in NetworkManagementService.
Lorenzo Colitti [Tue, 2 Feb 2016 08:21:21 +0000 (17:21 +0900)]
Use native netd binder interface in NetworkManagementService.

Bug: 27239233
Change-Id: Idf0cfee82ec5007fde0237d944ab0c2b53ff4a7b

8 years agoFix forgot adding textEditSuggestionHighlightStyle to dark theme.
Seigo Nonaka [Thu, 17 Mar 2016 08:44:24 +0000 (17:44 +0900)]
Fix forgot adding textEditSuggestionHighlightStyle to dark theme.

textEditSuggestionHighlightStyle was introduced
Ieccea12db95c0a040b38680ae794b1cf6971736f but it fogot adding it to
dark theme.

Bug: 27660380
Change-Id: I7b107352b71f273ee5d8d1be8d68c308741e3fbc

8 years agoMerge "Add a performance test for launching DocumentsUI." into nyc-dev
Tomasz Mikolajewski [Thu, 17 Mar 2016 08:11:51 +0000 (08:11 +0000)]
Merge "Add a performance test for launching DocumentsUI." into nyc-dev

8 years agoMerge "Fix: setExtractedText partial span change handling." into nyc-dev
Keisuke Kuroyanagi [Thu, 17 Mar 2016 06:56:22 +0000 (06:56 +0000)]
Merge "Fix: setExtractedText partial span change handling." into nyc-dev

8 years agoMerge "Fix: setIntegerPart(long) doesn't set ARG_INTEGER_PART." into nyc-dev
Keisuke Kuroyanagi [Thu, 17 Mar 2016 06:42:22 +0000 (06:42 +0000)]
Merge "Fix: setIntegerPart(long) doesn't set ARG_INTEGER_PART." into nyc-dev

8 years agoUpdate comment for compareToIgnoreCaseNullable().
Tomasz Mikolajewski [Wed, 16 Mar 2016 02:02:06 +0000 (11:02 +0900)]
Update comment for compareToIgnoreCaseNullable().

Bug: 27286016
Change-Id: I0ff4d59e24e8afe129aa8a2921d3de71d3df7236

8 years agoAdd a performance test for launching DocumentsUI.
Tomasz Mikolajewski [Tue, 15 Mar 2016 08:41:31 +0000 (17:41 +0900)]
Add a performance test for launching DocumentsUI.

The test launches the DocumentsUI as picker, then waits until the
main thread idles, which guarantees that roots are loaded and UI
rendered.

It confirms, that the recent system cache improves cold start
performance by around 24% on my configuration (from 1685ms to 1357ms).

Bug: 27370274
Change-Id: I738202ea434a7bfe7080fc0994f636ef0e7847cd

8 years agoMerge "Add suffix number when copying a file." into nyc-dev
Daichi Hirono [Thu, 17 Mar 2016 04:53:34 +0000 (04:53 +0000)]
Merge "Add suffix number when copying a file." into nyc-dev

8 years agoAdd suffix number when copying a file.
Daichi Hirono [Tue, 15 Mar 2016 10:19:31 +0000 (19:19 +0900)]
Add suffix number when copying a file.

If we have an existing file in the destination directory, which has the
same name with the source file, adding suffix number is
DocumentsProvider's responsibility.

Because MTP does not provide a way to check existance of files with
given name, the logic is implemented as try-and error strategy. The CL
lets If we MtpDocumentsProvider assume we have a file that shares the
same name with the source file if it failed to invoke
MtpDevice#sendObjectInfo. In this case MtpDocumentsProvider retry to
invoke sendObjectInfo with new name with suffix number.

BUG=26991190

Change-Id: I223ac5031f079bc91eb27709b0356f621a1ed55b

8 years agoMerge "Don't clear effects when the panel is fully collapsed." into nyc-dev
Daniel Sandler [Thu, 17 Mar 2016 03:26:15 +0000 (03:26 +0000)]
Merge "Don't clear effects when the panel is fully collapsed." into nyc-dev

8 years agoMerge "Oops, missed a default Bundle flag." into nyc-dev
Jeff Sharkey [Thu, 17 Mar 2016 03:24:28 +0000 (03:24 +0000)]
Merge "Oops, missed a default Bundle flag." into nyc-dev

8 years agoOops, missed a default Bundle flag.
Jeff Sharkey [Thu, 17 Mar 2016 03:23:29 +0000 (21:23 -0600)]
Oops, missed a default Bundle flag.

Bug: 27706598
Change-Id: Idde1c25ea1b5944657075cd5f0da65396280f757

8 years agoMerge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev
Yohei Yukawa [Thu, 17 Mar 2016 02:02:59 +0000 (02:02 +0000)]
Merge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev

* changes:
  Add more @NonNull/@Nullable to TextServicesSettings.
  Remove an unnecessary int to String conversion.
  Add more @NonNull/@Nullable to InputMethodSettings.

8 years agoFix IdleableHandlerThread.
Lorenzo Colitti [Wed, 2 Mar 2016 12:47:42 +0000 (21:47 +0900)]
Fix IdleableHandlerThread.

Occasionally, ConnectivityServiceTest fails with "BUG: only one
idle handler allowed". I have not been able to reproduce this
consistently, but code inspection reveals an unsafe access to
mIdleHandler inside queueIdle. Wrap that in a synchronized block.

Change-Id: I27307e2e55fa8d937d7f043bd436894091c3c667

8 years agoAvoid allocation in methods of Outline
Chris Craik [Thu, 17 Mar 2016 01:46:09 +0000 (18:46 -0700)]
Avoid allocation in methods of Outline

bug:26516265

Outlines are generally cached by the View system and reused, so optimize
for performance/allocation avoidance, rather than size.

Change-Id: I578d24c1255f1c1d8ebb30f3223fbe4ade4c67b4

8 years agoMerge "Adding a default implementation for the new Window.Callback method" into nyc-dev
Sunny Goyal [Thu, 17 Mar 2016 01:50:07 +0000 (01:50 +0000)]
Merge "Adding a default implementation for the new Window.Callback method" into nyc-dev

8 years agoAccount for text op stroke in bounds calculation
Chris Craik [Thu, 17 Mar 2016 00:15:12 +0000 (17:15 -0700)]
Account for text op stroke in bounds calculation

bug:27410033
Change-Id: Idf5bd5d2401f458d03af11617144cbe88adaf886

8 years agoAdd more @NonNull/@Nullable to TextServicesSettings.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:30 +0000 (17:22 -0700)]
Add more @NonNull/@Nullable to TextServicesSettings.

We need to fix TextServicesSettings as well as InputMethodSettings,
because regarding Bug 27687531 the same issue was copied from
InputMethodSettings to TextServicesSettings by my CL [1].

This is basically a mirror of the fix for InputMethodSettings [2].

  [1]: Ie3d61458648df469abe149b7aaad8087c531a675
       49ed14017697f8f19b8d49d55462713396a0588e
  [2]: I169ad4957e68b65c64251b0849056195b8ca4911

Bug: 27687531
Change-Id: I068f8821a32d2e199fbf6239bbe833da8c5a4e5e

8 years agoRemove an unnecessary int to String conversion.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:27 +0000 (17:22 -0700)]
Remove an unnecessary int to String conversion.

This is a safe refactoring to remove an unnecessary int to String
conversion in TextServicesSettings.

Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE is a integer value that
indicates subtype ID (or SpellCheckerSubtype#hashCode() if the subtype
ID is not specified), and we can just rely on
Settings.Secure#putIntForUser() rather than converting int to String
by ourselves then pass it to Settings.Secure#putStringForUser().

Note that this change is still OK for existing users because
Settings.Secure#putIntForUser() has been internally doing exactly the
same thing.

Bug: 27687531
Change-Id: Ibcf12746f1295c12bec095300ea7f6ced0a51d09

8 years agoAdd more @NonNull/@Nullable to InputMethodSettings.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:22 +0000 (17:22 -0700)]
Add more @NonNull/@Nullable to InputMethodSettings.

This follows up to a previous CL [1] for Bug 26279466.

It turns out that we have not clearly defined how nonexistent key should
be handled in InputMethodSettings#getEnabledInputMethodsStr(), e.g. it
returns "" for when mCopyOnWrite is true but returns null when
mCopyOnWrite is false.

Also, since InputMethodSettings now can revert changes made during
mCopyOnWrite is true, the caller may also start receiving null in the
following scenario.
  1. call mSettings.switchCurrentUser(userId, true).
  2. call mSettings.putEnabledInputMethodsStr(str) where str is non-null.
  3. call mSettings.switchCurrentUser(userId, false).
  4. call mSettings.getEnabledInputMethodsStr().
If the caller of getEnabledInputMethodsStr() has assumed that it would
never return null, then it would start crashing due to NPE.

With this CL, getEnabledInputMethodsStr() is marked to be @NonNull we
should no longer see such kind of NPE.

  [1]: I9c6f9bb3d51174198e5f73588637f87ea0d90e11
       68645a638ad1bfb734b2b0f56b17fe206bb891c5

Bug: 27687531
Change-Id: I169ad4957e68b65c64251b0849056195b8ca4911

8 years agoAdding a default implementation for the new Window.Callback method
Sunny Goyal [Thu, 17 Mar 2016 00:12:46 +0000 (17:12 -0700)]
Adding a default implementation for the new Window.Callback method

Bug: 27702972
Change-Id: I6b8c1766ecf871801006d4dc47796a819e49bb57

8 years agoMerge "Refinement for onVisibilityAggregated" into nyc-dev
Doris Liu [Wed, 16 Mar 2016 23:55:02 +0000 (23:55 +0000)]
Merge "Refinement for onVisibilityAggregated" into nyc-dev

8 years agoMerge "Flush package restriction changes for a user." into nyc-dev
Benjamin Franz [Wed, 16 Mar 2016 23:51:43 +0000 (23:51 +0000)]
Merge "Flush package restriction changes for a user." into nyc-dev

8 years agoMerge "Clean up BoringLayout#isBoring() a little" into nyc-dev
Roozbeh Pournader [Wed, 16 Mar 2016 23:46:52 +0000 (23:46 +0000)]
Merge "Clean up BoringLayout#isBoring() a little" into nyc-dev

8 years agoMerge "Apply temp inset bounds to child window if it's not empty" into nyc-dev
Chong Zhang [Wed, 16 Mar 2016 23:41:36 +0000 (23:41 +0000)]
Merge "Apply temp inset bounds to child window if it's not empty" into nyc-dev

8 years agoMerge "Chaser patch for AppOps restriction changes." into nyc-dev
Ruben Brunk [Wed, 16 Mar 2016 23:36:18 +0000 (23:36 +0000)]
Merge "Chaser patch for AppOps restriction changes." into nyc-dev

8 years agoApply temp inset bounds to child window if it's not empty
Chong Zhang [Wed, 16 Mar 2016 22:56:55 +0000 (15:56 -0700)]
Apply temp inset bounds to child window if it's not empty

bug: 27676101
bug: 27687126
Change-Id: Iab1129cc0224194e7a9d11d0454bc7af6897a6e8

8 years agoMerge "Disallow disabling of the package installer" into nyc-dev
Svetoslav Ganov [Wed, 16 Mar 2016 23:32:25 +0000 (23:32 +0000)]
Merge "Disallow disabling of the package installer" into nyc-dev

8 years agoMerge "Add emoji-related tests for the font chain" into nyc-dev
Roozbeh Pournader [Wed, 16 Mar 2016 23:31:15 +0000 (23:31 +0000)]
Merge "Add emoji-related tests for the font chain" into nyc-dev

8 years agoMerge "DocsUI: Don't animate selection changes on all bind events." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 23:26:50 +0000 (23:26 +0000)]
Merge "DocsUI: Don't animate selection changes on all bind events." into nyc-dev

8 years agoMerge "Add new key in CarrierConfigManager for ICCID display." into nyc-dev
Meng Wang [Wed, 16 Mar 2016 23:25:08 +0000 (23:25 +0000)]
Merge "Add new key in CarrierConfigManager for ICCID display." into nyc-dev

8 years agoMerge "Add delete key support." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 23:24:42 +0000 (23:24 +0000)]
Merge "Add delete key support." into nyc-dev

8 years agoThe PageAdapter update might be caused by the RecylerView.
Philip P. Moltmann [Wed, 16 Mar 2016 23:24:38 +0000 (16:24 -0700)]
The PageAdapter update might be caused by the RecylerView.

In this case it cannot call back into the recyclerView and update the
data. For the call path please see the bug.

Bug: 27614499
Change-Id: I84733fea30429c20a2c96085efb47d4da5e1948a

8 years agoMerge "Add "pm set-home-activity"" into nyc-dev
Makoto Onuki [Wed, 16 Mar 2016 23:14:03 +0000 (23:14 +0000)]
Merge "Add "pm set-home-activity"" into nyc-dev

8 years agoMerge "DocsUI: Don't crash on invalid window sizes." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 22:52:34 +0000 (22:52 +0000)]
Merge "DocsUI: Don't crash on invalid window sizes." into nyc-dev

8 years agoDocsUI: Don't crash on invalid window sizes.
Ben Kwa [Wed, 16 Mar 2016 20:01:20 +0000 (13:01 -0700)]
DocsUI: Don't crash on invalid window sizes.

Our layout code asserts when passed an (invalid) width of 0.  The assert
is unnecessary as we already handle this situation by always laying out
the content pane with a column count of at least 1.

Also, per Steve, bump the minimum column count in grid mode to 2.

BUG=27150284

Change-Id: I8aa87beaaf4907ef5248999d0c590deef732589f

8 years agoMerge "Adjust graphics dataspace references to new standard" into nyc-dev
Eino-Ville Talvala [Wed, 16 Mar 2016 22:49:35 +0000 (22:49 +0000)]
Merge "Adjust graphics dataspace references to new standard" into nyc-dev

8 years agoupdate "dont kill" api
Todd Kennedy [Wed, 16 Mar 2016 22:42:01 +0000 (15:42 -0700)]
update "dont kill" api

* update the name to be more consumer friendly
* expose it as a system api [so zapp can use it]

Change-Id: I11062e360bfd709dd5568409934fec539f64b863

8 years agoAdd "pm set-home-activity"
Makoto Onuki [Wed, 16 Mar 2016 01:06:57 +0000 (18:06 -0700)]
Add "pm set-home-activity"

This is needed to change the default launcher on CTS for
ShortcutManager.

- When the default set with DPM.addPersistentPreferredActivity() is
still stronger.

- Ideally we should unify the code with HomeSettings, but I couldn't
find a good way to do this.

- I didn't make it to work to set the default for any intents
because building an intent filter from a command line would be
painful.

Bug 27548047

Change-Id: I66b153c20c7796147f77214b483112629f9d80c5

8 years agoAdd new key in CarrierConfigManager for ICCID display.
Meng Wang [Mon, 14 Mar 2016 17:08:41 +0000 (10:08 -0700)]
Add new key in CarrierConfigManager for ICCID display.

Bug: 27574058
Change-Id: I74445c68f58e64a5baa87cd05fea9e91e59b0201

8 years ago[NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT...
Etan Cohen [Wed, 16 Mar 2016 21:56:24 +0000 (21:56 +0000)]
[NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT MERGE]
am: 2a73c7f  -s ours

* commit '2a73c7fb2a4aba4dd75341414f1583e5fb1f4613':
  [NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT MERGE]

8 years agoMerge "Update ContextHubManager's System APIs." into nyc-dev
Daniel Estrada Alva [Wed, 16 Mar 2016 21:49:10 +0000 (21:49 +0000)]
Merge "Update ContextHubManager's System APIs." into nyc-dev

8 years agoClean up BoringLayout#isBoring() a little
Roozbeh Pournader [Wed, 16 Mar 2016 21:33:51 +0000 (14:33 -0700)]
Clean up BoringLayout#isBoring() a little

No functional change. Just some renames and clarifications.

Bug: 23641693
Bug: 27702584
Change-Id: I14efe290a27c695ab79bbb18f9f069c8a2d3ffd6

8 years agoMerge "Dynamic audio policies: device type and address" into nyc-dev
Jean-Michel Trivi [Wed, 16 Mar 2016 21:31:08 +0000 (21:31 +0000)]
Merge "Dynamic audio policies: device type and address" into nyc-dev

8 years agoMerge "Add fillType support to VectorDrawable" into nyc-dev
Tenghui Zhu [Wed, 16 Mar 2016 21:13:23 +0000 (21:13 +0000)]
Merge "Add fillType support to VectorDrawable" into nyc-dev

8 years agoMerge "AudioService: do not persist mic mute and master mute" into nyc-dev
Eric Laurent [Wed, 16 Mar 2016 21:09:29 +0000 (21:09 +0000)]
Merge "AudioService: do not persist mic mute and master mute" into nyc-dev

8 years agoUpdate ContextHubManager's System APIs.
destradaa [Tue, 15 Mar 2016 19:33:40 +0000 (12:33 -0700)]
Update ContextHubManager's System APIs.

- Consolidates the use of handles in context hub, and nano apps.
- Quick fixes to typos.
- Update the signature to find nano apps to use primitive types

Change-Id: Icffa6fa86e0e33a536516d98bc4674c0a39b2163

8 years agoAdd emoji-related tests for the font chain
Roozbeh Pournader [Wed, 16 Mar 2016 20:53:47 +0000 (13:53 -0700)]
Add emoji-related tests for the font chain

1. Check that all emoji characters are supported in emoji fonts.

2. Check that no default-emoji characters are included in any font
that can get a higher score then the color emoji font, either by
being before it or by having a language/script assigned.

Bug: 26187231

Change-Id: Ic76bf59f1c6f9d2d290b1b64128d725ae08dcb5c

8 years agoMerge "Remove references to Google packages." into nyc-dev
Jeff Sharkey [Wed, 16 Mar 2016 20:55:46 +0000 (20:55 +0000)]
Merge "Remove references to Google packages." into nyc-dev

8 years agoMerge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%...
Aga Wronska [Wed, 16 Mar 2016 20:54:40 +0000 (20:54 +0000)]
Merge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." It ia causing tests failures and exception at the app start." into nyc-dev

8 years agoRemove references to Google packages.
Jeff Sharkey [Thu, 10 Mar 2016 20:24:18 +0000 (13:24 -0700)]
Remove references to Google packages.

Bug: 26441633
Change-Id: Iba6566215e2b6d224fd3b9c11d086f5c2db87dca

8 years agoAdd delete key support.
Ben Kwa [Mon, 14 Mar 2016 22:12:12 +0000 (15:12 -0700)]
Add delete key support.

- Pull the action mode up from the ActionMode listener into the
  DirectoryFragment.  There is no way to globally check on action mode,
  so fragment-level coordination on the action mode requires a
  fragment-level variable.

- Add a key handling clause for the delete key.  Unfortunately this
  can't be set up as a shortcut key, because shortcuts all have to be
  modified with the "Ctrl" key.

BUG=27409328

Change-Id: I48d1c87613ee7434728828e3b745fadb3bc915c1

8 years agoMerge "Defuse Bundles parsed by the system process." into nyc-dev
Jeff Sharkey [Wed, 16 Mar 2016 20:52:03 +0000 (20:52 +0000)]
Merge "Defuse Bundles parsed by the system process." into nyc-dev

8 years agoRevert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
Aga Wronska [Wed, 16 Mar 2016 20:44:27 +0000 (13:44 -0700)]
Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
It ia causing tests failures and exception at the app start.

This reverts commit d35a974b76cb0b3387aff7780d101e3f7de2ebd3.

Change-Id: I2577f723a7e25d4dcc12050791c65a900ac41f7d

8 years agoDefuse Bundles parsed by the system process.
Jeff Sharkey [Thu, 10 Mar 2016 05:30:56 +0000 (22:30 -0700)]
Defuse Bundles parsed by the system process.

It's easy for apps to throw custom Parcelables into Bundles, but
if the system tries peeking inside one of these Bundles, it triggers
a BadParcelableException.  If that Bundle was passed away from the
Binder thread that delivered it into the system, we end up with a
nasty runtime restart.

This change mitigates this trouble by "defusing" any Bundles parsed by
the system server.  That is, if it encounters BadParcelableException
while unpacking a Bundle, it logs and delivers an empty Bundle as
the result.

Simultaneously, to help catch the system process sticking its
fingers into Bundles that are destined for other processes, a Bundle
now tracks if it's "defusable."  For example, any Intents delivered
through ActivityThread are marked as being defusable, since they've
arrived at their final destination.  Any other Bundles are considered
to be "in transit" and we log if the system tries unparceling them.

Merges several Parcel boolean fields into a flags int.  Add better
docs to several classes.

Bug: 27581063
Change-Id: I28cf3e7439503b5dc9a429bafae5eb48f21f0d93

8 years agoMerge "Converting empty graphic to vector drawable." into nyc-dev
Winson Chung [Wed, 16 Mar 2016 20:35:20 +0000 (20:35 +0000)]
Merge "Converting empty graphic to vector drawable." into nyc-dev

8 years agoRefinement for onVisibilityAggregated
Adam Powell [Wed, 16 Mar 2016 00:35:00 +0000 (17:35 -0700)]
Refinement for onVisibilityAggregated

Change the args for onVisibilityAggregated to a single boolean for
visibility to the user. Also fix an ordering bug that could trigger a
view background drawable call to setVisible before the view would
respond true to verifyDrawable, which caused issues with some apps.

Bug 27461617
Bug 27689884

Change-Id: I58bdc7c4364264f7fa0863689ba2b76df904ef81

8 years agoMerge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev
Yigit Boyar [Wed, 16 Mar 2016 20:27:20 +0000 (20:27 +0000)]
Merge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev

8 years agoMerge "Add support for dpads." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 20:24:07 +0000 (20:24 +0000)]
Merge "Add support for dpads." into nyc-dev

8 years agoMerge "Remove unused include" into nyc-dev
Chris Craik [Wed, 16 Mar 2016 20:19:38 +0000 (20:19 +0000)]
Merge "Remove unused include" into nyc-dev

8 years agoClose overflow when hiding QS editor
Jason Monk [Wed, 16 Mar 2016 20:10:56 +0000 (16:10 -0400)]
Close overflow when hiding QS editor

Bug: 27625965
Change-Id: Iab29a7ab879ce879f772b759a645e598f3b70328

8 years agoMerge "Fix band selection problems." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 20:06:12 +0000 (20:06 +0000)]
Merge "Fix band selection problems." into nyc-dev

8 years agoMerge "Don't allow selection in copy dest picker." into nyc-dev
Steve McKay [Wed, 16 Mar 2016 20:05:47 +0000 (20:05 +0000)]
Merge "Don't allow selection in copy dest picker." into nyc-dev

8 years agoRemove unused include
Chris Craik [Wed, 16 Mar 2016 20:04:02 +0000 (13:04 -0700)]
Remove unused include

This include breaks compilation when HWUI_NEW_OPS=false

Change-Id: Ia3167f1550167f96de83af4b2f25abd6903c4723

8 years agodon't call other services in dump
Chris Wren [Tue, 15 Mar 2016 16:48:55 +0000 (12:48 -0400)]
don't call other services in dump

Currently the ranker config file is synced to app opps.
Also sync App Opps to the config file.
Then use that data to inform the dump, instead of polling.

Bug: 25424580
Change-Id: I6089532aa8618a31bfc3a36bee630c04c3ef3798

8 years agoMerge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev
Peng Xu [Wed, 16 Mar 2016 19:30:54 +0000 (19:30 +0000)]
Merge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev

8 years agoAdd some synchronization to hotspot callbacks
Jason Monk [Wed, 16 Mar 2016 19:22:15 +0000 (15:22 -0400)]
Add some synchronization to hotspot callbacks

Bug: 27497199
Change-Id: I792a246c0e2387e8db1fd528a7c2f20844cdd1a0

8 years agoDynamic audio policies: device type and address
Jean-Michel Trivi [Tue, 15 Mar 2016 01:46:41 +0000 (18:46 -0700)]
Dynamic audio policies: device type and address

Store device type and address in audio mixes regardless of the
  mix route type, no "registration" field.
For LOOP_BACK mixes, assign the REMOTE_SUBMIX device type.

Bug 25448664

Change-Id: I8d59b2fd3e05b1dcf1081ad826f985f5e3e74769

8 years agoDocsUI: Don't animate selection changes on all bind events.
Ben Kwa [Wed, 16 Mar 2016 19:13:21 +0000 (12:13 -0700)]
DocsUI: Don't animate selection changes on all bind events.

When directory contents update, this causes all items to be bound, which
can cause flickering even though item selection state hasn't changed.

Add a boolean var to trigger UI animations only when selection changes
are triggered by the selection manager.

BUG=27680153

Change-Id: I892d8111cf3ba7e1610d94af4a1a646f1cdb5546

8 years agoDon't clear effects when the panel is fully collapsed.
Dan Sandler [Tue, 1 Mar 2016 05:45:06 +0000 (00:45 -0500)]
Don't clear effects when the panel is fully collapsed.

Otherwise, a FLAG_SHOW_WHEN_LOCKED activity would be unable
to make noise (particularly in conjunction with a long
sound, or FLAG_INSISTENT) because the mere presence of the
status bar on screen would generate an updateVisibleToUser()
call, which would in turn use onPanelRevealed() to call
clearEffects().

Instead, we have to clear effects from deep in the stack
scroller; that's apparently the only place right now where
we know with 100% certainty that notifications are actually
visible to the user.

We also no longer clear effects just because the keyguard is
shown. That's silly.

Bug: 26863782
Change-Id: I9ec53024f4be060da203b835d31da81104e8c8e6