OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Fixed bugs in serialization and object cloning" into nyc-dev
Lifu Tang [Thu, 17 Mar 2016 19:19:21 +0000 (19:19 +0000)]
Merge "Fixed bugs in serialization and object cloning" into nyc-dev

8 years agoMerge "Add additional logging for incorrect activity stop" into nyc-dev
Andrii Kulian [Thu, 17 Mar 2016 19:19:19 +0000 (19:19 +0000)]
Merge "Add additional logging for incorrect activity stop" into nyc-dev

8 years agoMerge "Relax policy access restriction for adjust volume changes." into nyc-dev
Julia Reynolds [Thu, 17 Mar 2016 19:08:13 +0000 (19:08 +0000)]
Merge "Relax policy access restriction for adjust volume changes." into nyc-dev

8 years agoMerge "Fix action container visibility" into nyc-dev
Adrian Roos [Thu, 17 Mar 2016 19:06:59 +0000 (19:06 +0000)]
Merge "Fix action container visibility" into nyc-dev

8 years agoFix action container visibility
Adrian Roos [Thu, 3 Mar 2016 23:53:34 +0000 (15:53 -0800)]
Fix action container visibility

Bug: 27720398
Fixes: 27720398
Change-Id: I8ca4430c182ffdef81f5752d5d1bea0a4975e63f

8 years agoAdd a meteredHint to ScoredNetwork.
Jeremy Joslin [Thu, 17 Mar 2016 18:48:59 +0000 (18:48 +0000)]
Add a meteredHint to ScoredNetwork.
am: 85870d6

* commit '85870d63749b34aed7ad47ae288aebe6d11d8724':
  Add a meteredHint to ScoredNetwork.

8 years agoMerge "Prevent NPE via use of uninitialized mUserManager" into nyc-dev
Erik Wolsheimer [Thu, 17 Mar 2016 18:29:11 +0000 (18:29 +0000)]
Merge "Prevent NPE via use of uninitialized mUserManager" into nyc-dev

8 years agoMerge "Revert "Revert "Add some View methods overrides and WebViewDelegate interfaces...
Selim Gurun [Thu, 17 Mar 2016 18:27:53 +0000 (18:27 +0000)]
Merge "Revert "Revert "Add some View methods overrides and WebViewDelegate interfaces.""" into nyc-dev

8 years agoMerge "stagefright: Document that encoders are free to use available tools associated...
Hangyu Kuang [Thu, 17 Mar 2016 18:22:09 +0000 (18:22 +0000)]
Merge "stagefright: Document that encoders are free to use available tools associated with the speficifed profile." into nyc-dev

8 years agoMerge "Add Transition for App -> Recents on TV." into nyc-dev
Sid Soundararajan [Thu, 17 Mar 2016 18:16:05 +0000 (18:16 +0000)]
Merge "Add Transition for App -> Recents on TV." into nyc-dev

8 years agoMerge "Remove an unused constructor of InputMethodSettings." into nyc-dev
Yohei Yukawa [Thu, 17 Mar 2016 18:13:01 +0000 (18:13 +0000)]
Merge "Remove an unused constructor of InputMethodSettings." into nyc-dev

8 years agoMerge "Fix NPE in clearTexture()" into nyc-dev
John Reck [Thu, 17 Mar 2016 18:08:47 +0000 (18:08 +0000)]
Merge "Fix NPE in clearTexture()" into nyc-dev

8 years agoFix NPE in clearTexture()
John Reck [Thu, 17 Mar 2016 18:02:07 +0000 (11:02 -0700)]
Fix NPE in clearTexture()

Change-Id: I38d261968506ab8b312584c7e688e2b148fadd1f
Fixes: 25928378

8 years agoMerge "Fix some color issues with Inline Reply" into nyc-dev
Adrian Roos [Thu, 17 Mar 2016 18:01:35 +0000 (18:01 +0000)]
Merge "Fix some color issues with Inline Reply" into nyc-dev

8 years agoMerge "Sensor: Add batch support for native applications" into nyc-dev
Peng Xu [Thu, 17 Mar 2016 17:59:29 +0000 (17:59 +0000)]
Merge "Sensor: Add batch support for native applications" into nyc-dev

8 years agoMerge "Fix prep_volantis.sh freq printing" into nyc-dev
Chris Craik [Thu, 17 Mar 2016 17:59:13 +0000 (17:59 +0000)]
Merge "Fix prep_volantis.sh freq printing" into nyc-dev

8 years agoFix prep_volantis.sh freq printing
Chris Craik [Thu, 17 Mar 2016 17:57:52 +0000 (10:57 -0700)]
Fix prep_volantis.sh freq printing

Change-Id: I05e7e73423ae6ae7baf6f96924ed0f8cb9ad5488

8 years agoPrevent NPE via use of uninitialized mUserManager
Erik Wolsheimer [Thu, 17 Mar 2016 17:39:51 +0000 (10:39 -0700)]
Prevent NPE via use of uninitialized mUserManager

BUG: 27718356
BUG: 27336841
Change-Id: Id603835b0463ca32f6a27ec255df7077f2427b06

8 years agoAdd a meteredHint to ScoredNetwork.
Jeremy Joslin [Thu, 17 Mar 2016 03:07:30 +0000 (20:07 -0700)]
Add a meteredHint to ScoredNetwork.

API changes to allow a meteredHint to be passed
from a network scorer through to the wifi subsystem.

BUG:27702356
Change-Id: Ic466852d855af54c1754c4663388f24f54ed0691

8 years agoMerge "Renamed the function initialing nativeloader" into nyc-dev
Dimitry Ivanov [Thu, 17 Mar 2016 17:47:07 +0000 (17:47 +0000)]
Merge "Renamed the function initialing nativeloader" into nyc-dev

8 years agoMerge "Move updating window position off RT" into nyc-dev
John Reck [Thu, 17 Mar 2016 17:43:48 +0000 (17:43 +0000)]
Merge "Move updating window position off RT" into nyc-dev

8 years agoFixed bugs in serialization and object cloning
Lifu Tang [Thu, 17 Mar 2016 01:28:33 +0000 (18:28 -0700)]
Fixed bugs in serialization and object cloning

Bug: 27621461
Change-Id: I52cbf874d506cc5f6dee73d1a14b5dc07f87bd39

8 years agoMerge "Decorated custom views now behave better if no custom view is set" into nyc-dev
Selim Cinek [Thu, 17 Mar 2016 17:35:47 +0000 (17:35 +0000)]
Merge "Decorated custom views now behave better if no custom view is set" into nyc-dev

8 years agoMove updating window position off RT
John Reck [Thu, 17 Mar 2016 17:23:49 +0000 (10:23 -0700)]
Move updating window position off RT

Bug: 27385141
Change-Id: I6c75b5f1d9ef55ef64dde050f71d0e28fb8714bf

8 years agoRelax policy access restriction for adjust volume changes.
Julia Reynolds [Thu, 17 Mar 2016 17:26:21 +0000 (13:26 -0400)]
Relax policy access restriction for adjust volume changes.

Otherwise users can't enter DND while using volume buttons in most
apps.

Bug: 27711587
Change-Id: Idb4976680d9bb88206928a7b623f17d07183ea28

8 years agoMerge "Fixed the motion when expanding notification groups" into nyc-dev
Selim Cinek [Thu, 17 Mar 2016 17:27:42 +0000 (17:27 +0000)]
Merge "Fixed the motion when expanding notification groups" into nyc-dev

8 years agoMerge "Support multi-launcher" into nyc-dev
Makoto Onuki [Thu, 17 Mar 2016 17:27:09 +0000 (17:27 +0000)]
Merge "Support multi-launcher" into nyc-dev

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 agoAdd additional logging for incorrect activity stop
Andrii Kulian [Wed, 16 Mar 2016 20:44:56 +0000 (13:44 -0700)]
Add additional logging for incorrect activity stop

Print ActivityClientRecord state when ActivityThread#performStopActivityInner
is called for already stopped activity.

Bug: 25267624
Change-Id: I2b044e42d0188ef9eaf15422b6a05617ade802e2

8 years agoRemove an unused constructor of InputMethodSettings.
Yohei Yukawa [Thu, 17 Mar 2016 05:41:25 +0000 (22:41 -0700)]
Remove an unused constructor of InputMethodSettings.

The last caller of the deprecated constructor of InputMethodSettings was
just removed [1].  Since it is not a public API, we can now safely
remove it.

  [1]: I09cba4066b95c4a9e89a3e4f83d75b97882502dc
       143a6869476a4be5962d4bba3b222d078f46b9a0

Bug: 26279466
Change-Id: I9035c417d6a8166c0ef4e4c7a00c151ffdd5fb49

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 agoRevert "Revert "Add some View methods overrides and WebViewDelegate interfaces.""
Selim Gurun [Thu, 17 Mar 2016 01:40:40 +0000 (01:40 +0000)]
Revert "Revert "Add some View methods overrides and WebViewDelegate interfaces.""

This reverts commit 7ef5429637e641808f6f6acdbfd2513b7f2effcf.

Change-Id: I03a27148a1df5baf12fb89bca77dcb55a47b6be2

8 years agoFix some color issues with Inline Reply
Adrian Roos [Thu, 17 Mar 2016 01:37:27 +0000 (18:37 -0700)]
Fix some color issues with Inline Reply

Bug: 27706728
Change-Id: I2401297d38379ed6a4128b26f71f1a051f18bc8f
Fixes: 27706728

8 years agoSensor: Add batch support for native applications
Aniroop Mathur [Mon, 2 Nov 2015 20:32:09 +0000 (02:02 +0530)]
Sensor: Add batch support for native applications

Currently, it is not possible for native applications to use the
sensor in batch mode. As it is a 'C' header file so function
overloading is not possible. Therefore, lets add a new function to
enable the sensor, set the delay and batch timeout, all together.

Change-Id: I565ec2d945d57f31ae11ed43bf9ba351aebd67a0
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
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