OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Revert "Fix roaming getting stuck after changing sims""
Jason Monk [Thu, 23 Feb 2017 20:32:59 +0000 (20:32 +0000)]
Merge "Revert "Fix roaming getting stuck after changing sims""

7 years agoRevert "Fix roaming getting stuck after changing sims"
Jason Monk [Thu, 23 Feb 2017 20:32:24 +0000 (20:32 +0000)]
Revert "Fix roaming getting stuck after changing sims"

This reverts commit 9d3dcdfe1c15ffa1c8d3694a4f2bf5e2280aa5ba.

Change-Id: I21739f73548be383221b1bec81a05e196fe0a690

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb...
Makoto Onuki [Thu, 23 Feb 2017 20:25:58 +0000 (20:25 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb am: 7c6b2f4d8b am: f171c39e53 am: 89bb32fb0d am: 3fe290622f
am: 9bda68ffb7  -s ours

Change-Id: I49a1e8fc8d12b2d8a69f26e2cf280e127119a4fe

7 years agoMerge "AAPT2: Few tweaks to get shared-libraries working"
TreeHugger Robot [Thu, 23 Feb 2017 20:24:22 +0000 (20:24 +0000)]
Merge "AAPT2: Few tweaks to get shared-libraries working"

7 years agoMerge "Fix failing WifiConfigManagerTest test."
TreeHugger Robot [Thu, 23 Feb 2017 20:22:36 +0000 (20:22 +0000)]
Merge "Fix failing WifiConfigManagerTest test."

7 years agoMerge "reates base implementation of ImsService AIDLs" am: b60869db12 am: fe8d588dad
Brad Ebinger [Thu, 23 Feb 2017 20:19:50 +0000 (20:19 +0000)]
Merge "reates base implementation of ImsService AIDLs" am: b60869db12 am: fe8d588dad
am: fe2a74bfee

Change-Id: I9b7885ead16666b57e3b77b2bb868f81fb68de3b

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb...
Makoto Onuki [Thu, 23 Feb 2017 20:18:04 +0000 (20:18 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb am: 7c6b2f4d8b am: f171c39e53 am: 89bb32fb0d
am: 3fe290622f

Change-Id: Ia96b9c9c7997c726da5ae0221bb4d2d41869deb2

7 years agoMerge "Update clipboard icon for the tuner"
Jason Monk [Thu, 23 Feb 2017 20:17:48 +0000 (20:17 +0000)]
Merge "Update clipboard icon for the tuner"

7 years agoMerge "reates base implementation of ImsService AIDLs" am: b60869db12
Brad Ebinger [Thu, 23 Feb 2017 20:14:58 +0000 (20:14 +0000)]
Merge "reates base implementation of ImsService AIDLs" am: b60869db12
am: fe8d588dad

Change-Id: I3425819c9ca83577ea4946dae072d9816626d5e5

7 years agoMerge "Fix roaming getting stuck after changing sims"
Jason Monk [Thu, 23 Feb 2017 20:14:39 +0000 (20:14 +0000)]
Merge "Fix roaming getting stuck after changing sims"

7 years agoMerge "Fix qs_signal icon clipping"
Evan Laird [Thu, 23 Feb 2017 20:14:12 +0000 (20:14 +0000)]
Merge "Fix qs_signal icon clipping"

7 years agoMerge "Fix data disabled icon from not showing in status bar"
Jason Monk [Thu, 23 Feb 2017 20:13:57 +0000 (20:13 +0000)]
Merge "Fix data disabled icon from not showing in status bar"

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb...
Makoto Onuki [Thu, 23 Feb 2017 20:12:53 +0000 (20:12 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb am: 7c6b2f4d8b am: f171c39e53
am: 89bb32fb0d

Change-Id: I264cdae7f5db5e9b9ecb7ef93d60f977157e1512

7 years agoMerge "reates base implementation of ImsService AIDLs"
Brad Ebinger [Thu, 23 Feb 2017 20:10:34 +0000 (20:10 +0000)]
Merge "reates base implementation of ImsService AIDLs"
am: b60869db12

Change-Id: I6edf280213bee0756aad65148daafe3300849baa

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb...
Makoto Onuki [Thu, 23 Feb 2017 20:07:27 +0000 (20:07 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb am: 7c6b2f4d8b
am: f171c39e53

Change-Id: I69a9ece7da697e2a2fb979febad1af352713ccbe

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb
Makoto Onuki [Thu, 23 Feb 2017 20:03:59 +0000 (20:03 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls am: a08c6a1cfb
am: 7c6b2f4d8b

Change-Id: I18c2b795270260a02a117351fe5ca3ce5a5c0467

7 years agoMerge "reates base implementation of ImsService AIDLs"
Treehugger Robot [Thu, 23 Feb 2017 20:03:43 +0000 (20:03 +0000)]
Merge "reates base implementation of ImsService AIDLs"

7 years agoMerge "Update fill UI"
TreeHugger Robot [Thu, 23 Feb 2017 20:01:01 +0000 (20:01 +0000)]
Merge "Update fill UI"

7 years agoFix qs_signal icon clipping
Evan Laird [Thu, 23 Feb 2017 20:00:46 +0000 (15:00 -0500)]
Fix qs_signal icon clipping

Test: visual
Change-Id: If212eefc9303590b7168432120c46bf07ac184d1
Fixes: 34799892

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls
Makoto Onuki [Thu, 23 Feb 2017 20:00:01 +0000 (20:00 +0000)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls
am: a08c6a1cfb

Change-Id: I07ce253853c1b3066c81af4f52a4ff6968437ef4

7 years agoFix data disabled icon from not showing in status bar
Jason Monk [Thu, 23 Feb 2017 19:48:05 +0000 (14:48 -0500)]
Fix data disabled icon from not showing in status bar

The NetworkController seemed to think the user wasn't set up since
the DeviceProvisionedController didn't send an initial callback
on add.

Also add some extra listening to data disabled state to avoid race
conditions there.

Change-Id: I17f759894a283da08eb0da7ceb5181355c8f4d55
Fixes: 35708363
Fixes: 35632846
Test: runtest systemui

7 years agoMerge "Revert "Don't trigger auto-fill request if mode is manual""
TreeHugger Robot [Thu, 23 Feb 2017 18:58:22 +0000 (18:58 +0000)]
Merge "Revert "Don't trigger auto-fill request if mode is manual""

7 years agoMerge "Fix an unintentional switch-case fall-through"
TreeHugger Robot [Thu, 23 Feb 2017 18:42:49 +0000 (18:42 +0000)]
Merge "Fix an unintentional switch-case fall-through"

7 years agoMerge "Add metric for new storage screen."
Daniel Nishi [Thu, 23 Feb 2017 18:39:30 +0000 (18:39 +0000)]
Merge "Add metric for new storage screen."

7 years agoMerge "Ensure we use the fullscreen stack bounds when expanding PiP."
TreeHugger Robot [Thu, 23 Feb 2017 18:36:46 +0000 (18:36 +0000)]
Merge "Ensure we use the fullscreen stack bounds when expanding PiP."

7 years agoMerge "Have VirtualDisplayDevice handle Binder death directly."
Bryce Lee [Thu, 23 Feb 2017 18:35:31 +0000 (18:35 +0000)]
Merge "Have VirtualDisplayDevice handle Binder death directly."

7 years agoMerge "Temporarily whitelist apps known to hit the wtf case"
TreeHugger Robot [Thu, 23 Feb 2017 18:33:13 +0000 (18:33 +0000)]
Merge "Temporarily whitelist apps known to hit the wtf case"

7 years agoFix roaming getting stuck after changing sims
Jason Monk [Thu, 23 Feb 2017 16:33:54 +0000 (11:33 -0500)]
Fix roaming getting stuck after changing sims

The header was keeping a map of roaming states which could have
stray old subids in it when it shouldn't. It just needs to be
cleared when the sims change.

Test: runtest systemui
Change-Id: I62c5acab5739b9c4acf69a8c7e00b2f75de903dc

7 years agoMerge "Disallow parallel backups"
Shreyas Basarge [Thu, 23 Feb 2017 18:27:21 +0000 (18:27 +0000)]
Merge "Disallow parallel backups"

7 years agoMerge "Serialize restore operations"
Shreyas Basarge [Thu, 23 Feb 2017 18:26:54 +0000 (18:26 +0000)]
Merge "Serialize restore operations"

7 years agoMerge "Correct SurfaceControl matrix parameter names."
Rob Carr [Thu, 23 Feb 2017 18:26:24 +0000 (18:26 +0000)]
Merge "Correct SurfaceControl matrix parameter names."

7 years agoUpdate fill UI
Svet Ganov [Tue, 21 Feb 2017 18:16:16 +0000 (10:16 -0800)]
Update fill UI

1. Abstracted the fill/save view and window management
   in dedicated classs

2. Avoided the need of a second window to detect outside
   touches

3. Simplified the fill-ui window management

4. Moved the UI in its own package to ease mmigration to
   sys UI.

5. Removed hard-coded colors from the layout

6. Make sure the save UI cannot grow as wide as the screen
   as this would not look good on tablets

7. Update the save UI to look closer to mocks

Test: CTS tests pass
Bug: 35708258

Change-Id: Ia74a5aad6f16bba0047a9e8e61958c77af0d358d

7 years agoFix failing WifiConfigManagerTest test.
Amin Shaikh [Thu, 23 Feb 2017 18:08:10 +0000 (10:08 -0800)]
Fix failing WifiConfigManagerTest test.

Bug: 35671673
Test: runtest frameworks-core frameworks-wifi
Change-Id: I55ff41464cabfb97d03a0758d73145df808ec2c8

7 years agoMerge "Add isBundled argument to LoadedApk.makePaths call"
TreeHugger Robot [Thu, 23 Feb 2017 18:05:00 +0000 (18:05 +0000)]
Merge "Add isBundled argument to LoadedApk.makePaths call"

7 years agoUpdate clipboard icon for the tuner
Jason Monk [Thu, 23 Feb 2017 17:52:32 +0000 (12:52 -0500)]
Update clipboard icon for the tuner

Change-Id: Ie8ff3e6d87afbbd09efe8f529756710f6a61da6e
Fixes: 35707044
Test: visual

7 years agoMerge "Add autofill service to BridgeContext"
Jerome Gaillard [Thu, 23 Feb 2017 17:23:26 +0000 (17:23 +0000)]
Merge "Add autofill service to BridgeContext"

7 years agoMerge changes from topic 'skia_merge_1933880'
TreeHugger Robot [Thu, 23 Feb 2017 17:18:13 +0000 (17:18 +0000)]
Merge changes from topic 'skia_merge_1933880'

* changes:
  Fix HWUI tests to use android-only SkPaint flags
  Update framework to use new method for disabling DF path rendering.

7 years agoRevert "Don't trigger auto-fill request if mode is manual"
Philip P. Moltmann [Thu, 23 Feb 2017 17:05:06 +0000 (17:05 +0000)]
Revert "Don't trigger auto-fill request if mode is manual"

This reverts commit 576a847e03f213693f4e7f2f0361f52217f9e1cf.

Fixes: 35701500
Change-Id: I972c2d0e56d365d1fad76a66e74bfad227bf26c4

7 years agoMerge "Expose isStateSaved() in FragmentManager."
TreeHugger Robot [Thu, 23 Feb 2017 16:35:58 +0000 (16:35 +0000)]
Merge "Expose isStateSaved() in FragmentManager."

7 years agoMerge "Added VSYNC and INTENDED_VSYNC timestamps to FrameMetrics API."
Bryan Cassell [Thu, 23 Feb 2017 16:08:32 +0000 (16:08 +0000)]
Merge "Added VSYNC and INTENDED_VSYNC timestamps to FrameMetrics API."

7 years agoMerge "BitmapFactory: Remove legacy premultiply hacks"
Matt Sarett [Thu, 23 Feb 2017 15:24:18 +0000 (15:24 +0000)]
Merge "BitmapFactory: Remove legacy premultiply hacks"

7 years agoMerge "Added sanitization for CompoundButton and RadioGroup."
TreeHugger Robot [Thu, 23 Feb 2017 15:24:02 +0000 (15:24 +0000)]
Merge "Added sanitization for CompoundButton and RadioGroup."

7 years agoMerge "Display longer date string in certificate information"
TreeHugger Robot [Thu, 23 Feb 2017 15:23:34 +0000 (15:23 +0000)]
Merge "Display longer date string in certificate information"

7 years agoHave VirtualDisplayDevice handle Binder death directly.
Bryce Lee [Thu, 16 Feb 2017 01:47:25 +0000 (17:47 -0800)]
Have VirtualDisplayDevice handle Binder death directly.

Previously, the VirtualDisplayDevice delegated its cleanup to the
parent VirtualDisplayAdapter. The adapter looked up the device
from an AppToken mapping. It is possible for this mapping to not
include the token, leading to the device not being destroyed.

This changelist has the VirtualDisplayDevice take care of calling
destroy on itself. It still informs the adapter of this event for
bookkeeping/cleanup purposes.

Fixes: 26221019
Test: Verified through adb shell dumpsys activity activities that the
      virtual displays were removed upon app kill after the
      MediaProjection for these displays ended.

Change-Id: I500fdc87618632184f5d3c9821ccf1979f460595

7 years agoAdd autofill service to BridgeContext
Jerome Gaillard [Thu, 23 Feb 2017 15:15:49 +0000 (15:15 +0000)]
Add autofill service to BridgeContext

Test: layoutlib tests
Change-Id: I52b360a64518165eefee4250b1c32e9f5f87845d

7 years agoMerge "Update DisplayAdjustments in Display from Resources."
Bryce Lee [Thu, 23 Feb 2017 15:15:05 +0000 (15:15 +0000)]
Merge "Update DisplayAdjustments in Display from Resources."

7 years agoFix HWUI tests to use android-only SkPaint flags
Derek Sollenberger [Thu, 23 Feb 2017 14:33:53 +0000 (09:33 -0500)]
Fix HWUI tests to use android-only SkPaint flags

Test: compile only
Change-Id: Ia3a5710d4ae13d68e5b2655a8b135dae8ffeb513

7 years agoMerge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5 am: fd61eb1e39
Paul Duffin [Thu, 23 Feb 2017 13:56:23 +0000 (13:56 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5 am: fd61eb1e39
am: 9dcdc8f187

Change-Id: Icbc80cc054244f2660814bde4a9dc681b501024f

7 years agoMerge "Fix build failure when using javac toolchain" am: c098bea921 am: 5da6f4fbd1
Paul Duffin [Thu, 23 Feb 2017 13:55:14 +0000 (13:55 +0000)]
Merge "Fix build failure when using javac toolchain" am: c098bea921 am: 5da6f4fbd1
am: df8bb0ec52

Change-Id: If59986dd60ca90836adecdf0cb52f3570bf81f9d

7 years agoMerge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5
Paul Duffin [Thu, 23 Feb 2017 13:50:05 +0000 (13:50 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5
am: fd61eb1e39

Change-Id: I23f137865997ca9ce4aa229c9329d8ea9fbcb6ee

7 years agoMerge "Fix build failure when using javac toolchain" am: c098bea921
Paul Duffin [Thu, 23 Feb 2017 13:49:07 +0000 (13:49 +0000)]
Merge "Fix build failure when using javac toolchain" am: c098bea921
am: 5da6f4fbd1

Change-Id: I65623ab75b0cc7b828fe67544074549fc21206ca

7 years agoMerge "Deprecate TestSuiteBuilder and related classes."
Paul Duffin [Thu, 23 Feb 2017 13:44:24 +0000 (13:44 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes."
am: a26000b8f5

Change-Id: Ia9d491bd72f2a9f08838e298aaf4de5de28c7d4f

7 years agoMerge "Fix build failure when using javac toolchain"
Paul Duffin [Thu, 23 Feb 2017 13:43:07 +0000 (13:43 +0000)]
Merge "Fix build failure when using javac toolchain"
am: c098bea921

Change-Id: I56e965336c537295efc4c0c778f5c236f955bf10

7 years agoMerge "Deprecate TestSuiteBuilder and related classes."
Paul Duffin [Thu, 23 Feb 2017 13:36:30 +0000 (13:36 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes."

7 years agoMerge "Fix build failure when using javac toolchain"
Paul Duffin [Thu, 23 Feb 2017 13:34:38 +0000 (13:34 +0000)]
Merge "Fix build failure when using javac toolchain"

7 years agoUpdate framework to use new method for disabling DF path rendering.
Derek Sollenberger [Thu, 23 Feb 2017 12:48:11 +0000 (07:48 -0500)]
Update framework to use new method for disabling DF path rendering.

Test: compile only
Change-Id: Ifa690a0af01cb6b07c4fd303302cb6a557e8dfde

7 years agoDO NOT MERGE Relax isUserRunning check and allow in-profile calls
Makoto Onuki [Thu, 28 Jul 2016 20:10:42 +0000 (13:10 -0700)]
DO NOT MERGE Relax isUserRunning check and allow in-profile calls

Bug 30475753
Bug 35667752

Change-Id: I739ee7e259f041f5e133edf048b6b54cb7a770db
(cherry picked from commit 8198deacb52eb082ae9f0a5658d594dc9b689882)

7 years agoAdd isBundled argument to LoadedApk.makePaths call
Dimitry Ivanov [Wed, 22 Feb 2017 23:39:42 +0000 (15:39 -0800)]
Add isBundled argument to LoadedApk.makePaths call

There is a disconnect between the way webview created
classloader and the way makePaths decides if paths are
intended for bundled app.

This change moves decision making out of makePaths method
which allows WebViewZygote to pass correct argument and
have makePath omit java.library.path for libPaths

Bug: http://b/35426785
Test: manual
Change-Id: Iab5a18c0091d0193dafa750498eb00f378411ba0

7 years agoMerge "Revert "OMS: integrate OverlayManagerService into framework""
Guang Zhu [Thu, 23 Feb 2017 07:36:12 +0000 (07:36 +0000)]
Merge "Revert "OMS: integrate OverlayManagerService into framework""

7 years agoRevert "OMS: integrate OverlayManagerService into framework"
Guang Zhu [Thu, 23 Feb 2017 07:35:39 +0000 (07:35 +0000)]
Revert "OMS: integrate OverlayManagerService into framework"

Bug: 31052947
Bug: 35697944

This reverts commit 21a3d1ad686dee97b9cf0ed80389ee2ab0d48013.

Change-Id: I2d86931020301524c26cf8c8e80d557c97fdd6c3

7 years agoMerge "IP connectivity metrics: cleanup obsolete code"
Hugo Benichi [Thu, 23 Feb 2017 07:02:27 +0000 (07:02 +0000)]
Merge "IP connectivity metrics: cleanup obsolete code"

7 years agoMerge "Added auto-fill support for Spinner."
Felipe Leme [Thu, 23 Feb 2017 06:45:12 +0000 (06:45 +0000)]
Merge "Added auto-fill support for Spinner."

7 years agoMerge "Don't trigger auto-fill request if mode is manual"
TreeHugger Robot [Thu, 23 Feb 2017 05:57:17 +0000 (05:57 +0000)]
Merge "Don't trigger auto-fill request if mode is manual"

7 years agoMerge "Fix toggling of AM/PM of TimePicker using hardware keyboard."
Aurimas Liutikas [Thu, 23 Feb 2017 04:52:02 +0000 (04:52 +0000)]
Merge "Fix toggling of AM/PM of TimePicker using hardware keyboard."

7 years agoFix an unintentional switch-case fall-through
Yohei Yukawa [Thu, 23 Feb 2017 04:49:10 +0000 (20:49 -0800)]
Fix an unintentional switch-case fall-through

This is a follow up CL to my previous CL [1], which introduced a
classical fall through bug due to a missing return statement.

 [1]: Ic614f112f960382280acd8891b3af56d47679f08
      ce82eb2d865e5ee1b69705ca7a0aedd0e92d0d4e

Test: Manually made sure that calling
      InputConnection#performPrivateCommand() no longer causes
      IllegalStateException("Already recycled.").
Bug: 35079353
Fixes: 35681994
Change-Id: I9aa3c0497385e053718d829aad49495771b22b59

7 years agoMerge "Optimize IMMS.MyPackageMonitor more"
Yohei Yukawa [Thu, 23 Feb 2017 04:46:10 +0000 (04:46 +0000)]
Merge "Optimize IMMS.MyPackageMonitor more"

7 years agoMerge "Remove abstract from AccessibilityService methods"
Phil Weaver [Thu, 23 Feb 2017 04:40:14 +0000 (04:40 +0000)]
Merge "Remove abstract from AccessibilityService methods"

7 years agoMerge "VideoView: option for audio focus, support for AudioAttributes"
TreeHugger Robot [Thu, 23 Feb 2017 04:37:50 +0000 (04:37 +0000)]
Merge "VideoView: option for audio focus, support for AudioAttributes"

7 years agoMerge "Don't copy ringtones when profile sync goes off"
TreeHugger Robot [Thu, 23 Feb 2017 04:21:34 +0000 (04:21 +0000)]
Merge "Don't copy ringtones when profile sync goes off"

7 years agoMerge "renaming telephony internal hidden intents" am: 09c663a84c am: 979e4690ec
Chen Xu [Thu, 23 Feb 2017 04:15:28 +0000 (04:15 +0000)]
Merge "renaming telephony internal hidden intents" am: 09c663a84c am: 979e4690ec
am: 201320492c

Change-Id: I4e37359a98fb8ecdff63b45a54f08b61e7be25ad

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master am: 4fb8988854
Brad Ebinger [Thu, 23 Feb 2017 04:11:20 +0000 (04:11 +0000)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master am: 4fb8988854
am: 609cfc916b  -s ours

Change-Id: Ib912a18c3bea70d268cc6fa8e3de8bbb9fd414b0

7 years agoMerge "OMS: integrate OverlayManagerService into framework"
TreeHugger Robot [Thu, 23 Feb 2017 03:58:57 +0000 (03:58 +0000)]
Merge "OMS: integrate OverlayManagerService into framework"

7 years agoAAPT2: Few tweaks to get shared-libraries working
Adam Lesinski [Thu, 23 Feb 2017 03:29:29 +0000 (19:29 -0800)]
AAPT2: Few tweaks to get shared-libraries working

Test: manual (building shared support library demo)
Change-Id: I4730645aa92ba1893baf67ffe35fbd4aac0f8e46

7 years agoMerge "resolve merge conflicts of f17c1d488840 to master"
TreeHugger Robot [Thu, 23 Feb 2017 03:43:55 +0000 (03:43 +0000)]
Merge "resolve merge conflicts of f17c1d488840 to master"

7 years agoMerge "Reconcile apps in 2 phases"
TreeHugger Robot [Thu, 23 Feb 2017 03:42:20 +0000 (03:42 +0000)]
Merge "Reconcile apps in 2 phases"

7 years agoMerge "Add queryStatsForPackage() API."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:42 +0000 (03:21 +0000)]
Merge "Add queryStatsForPackage() API."

7 years agoMerge "Start locking down /data/media access."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:18 +0000 (03:21 +0000)]
Merge "Start locking down /data/media access."

7 years agoMerge "Slowly deprecate hidden getPackageSizeInfo() API."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:03 +0000 (03:21 +0000)]
Merge "Slowly deprecate hidden getPackageSizeInfo() API."

7 years agoMerge "Fix concurrent modification crash in onAlarm"
TreeHugger Robot [Thu, 23 Feb 2017 03:19:32 +0000 (03:19 +0000)]
Merge "Fix concurrent modification crash in onAlarm"

7 years agoAdded sanitization for CompoundButton and RadioGroup.
Felipe Leme [Thu, 23 Feb 2017 01:26:06 +0000 (17:26 -0800)]
Added sanitization for CompoundButton and RadioGroup.

Bug: 33269702
Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: Ie2c8d2784227371588aa02973b8ef3ac1a6950aa

7 years agoMerge "Add missing sound to important channels."
TreeHugger Robot [Thu, 23 Feb 2017 02:54:58 +0000 (02:54 +0000)]
Merge "Add missing sound to important channels."

7 years agoDon't copy ringtones when profile sync goes off
Robin Lee [Mon, 20 Feb 2017 14:47:30 +0000 (14:47 +0000)]
Don't copy ringtones when profile sync goes off

Experimentally, it makes more sense to more people to have the parent
setting as an overlay not a concrete thing.

Test: make cts -j30 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Bug: 34730524
Change-Id: I5f804713def9e54921b90e4f5cea742ba8aaa685

7 years agoMerge "Add "Use open Wi-Fi automatically" setting."
TreeHugger Robot [Thu, 23 Feb 2017 02:37:22 +0000 (02:37 +0000)]
Merge "Add "Use open Wi-Fi automatically" setting."

7 years agoMerge "context_hub HAL uses "default" service name"
Yifan Hong [Thu, 23 Feb 2017 02:34:32 +0000 (02:34 +0000)]
Merge "context_hub HAL uses "default" service name"

7 years agoMerge "renaming telephony internal hidden intents" am: 09c663a84c
Chen Xu [Thu, 23 Feb 2017 02:08:33 +0000 (02:08 +0000)]
Merge "renaming telephony internal hidden intents" am: 09c663a84c
am: 979e4690ec

Change-Id: I8cce065cc9ce6a87fa0ce9753a5e9170da77da59

7 years agoMerge "renaming telephony internal hidden intents"
Chen Xu [Thu, 23 Feb 2017 02:03:00 +0000 (02:03 +0000)]
Merge "renaming telephony internal hidden intents"
am: 09c663a84c

Change-Id: Ic20ae9e6816d629c979859a7d18f1827bafcc034

7 years agoOptimize IMMS.MyPackageMonitor more
Yohei Yukawa [Wed, 15 Feb 2017 04:05:17 +0000 (20:05 -0800)]
Optimize IMMS.MyPackageMonitor more

This CL is a follow up CL to my previous CL [1] that aimed to reduce
false positives in InputMethodManagerService.MyPackageMonitor when
deciding if InputMethodManagerService (IMMS) needs to rebuild the list
of enabled IMEs or not.

Currently IMMS.MyPackageMonitor#onSomePackagesChanged() gets called
back to trigger IMMS#buildInputMethodListLocked() when either the
following rule A or B is fulfiled.

 A. Intent with one of the following actions for any package name:
    - ACTION_PACKAGE_ADDED
    - ACTION_PACKAGE_REMOVED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
    - ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
    - ACTION_PACKAGES_SUSPENDED
    - ACTION_PACKAGES_UNSUSPENDED
 B. ACTION_PACKAGE_CHANGED with a package that is included in the
    known IME package list, which can be obtained from PackageManager.

The previous CL [1] addressed Bug 28181208 by introducing the rule B,
but we can actually apply the same optimization for A, except for one
false negative case where an appearing package that is not in the
known IME package list actually contains one or more
InputMethodService.

In short, we can reduce false positives by replacing the above two
rules with the following two rules.

 A. Intent with one of the following actions for any package name that
    is in the known IME package list:
    - ACTION_PACKAGE_ADDED
    - ACTION_PACKAGE_CHANGED
    - ACTION_PACKAGE_REMOVED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
    - ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
    - ACTION_PACKAGES_SUSPENDED
    - ACTION_PACKAGES_UNSUSPENDED
 B. Intent with one of the following actions for any package that
    implements at least one InputMethodServivce.
    - ACTION_PACKAGE_ADDED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE

Basically in the rule A PackageManager gives us the list of relevant
package names that might contain IMEs regardless enabled/disabled
state, and such a list works well to filter out irrelevant
notifications except for one case where a new package is adding one
or new IMEs that we did not know. This is why we also need the rule B.

Even though the rule B requires a secondary query to PackageManager,
it can be done outside of the state lock of IMMS.

 [1]: I7b69c349318ce06a48d03a4468cf2c45bfb73dc2
      c4e4491735ad5614ec4592fae98f05c455f5944d

Test: Manually verified as follows.
       1. tapas ShortcutDemo && make -j
       2. Copy ShortcutDemo.apk to the current directory.
       3. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to check the "mMethodMapUpdateCount".
       4. adb install -r ShortcutDemo.apk
       5. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
       6. adb install -r ShortcutDemo.apk
       7. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
       8. adb uninstall com.example.android.pm.shortcutdemo
       9. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
Test: Manually verified as follows.
       1. tapas SoftKeyboard && make -j
       2. Copy SoftKeyboard.apk to the current directory.
       3. adb root
       4. adb install -r SoftKeyboard.apk
       5. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is recognized by IMMS.
       6. adb shell pm disable com.example.android.softkeyboard/.SoftKeyboard
       7. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is no longer recognized by IMMS.
       8. adb shell pm enable com.example.android.softkeyboard/.SoftKeyboard
       9. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is recognized by IMMS again.
Fixes: 35361128
Change-Id: I063688297156188f68fe0b55a46d72f2e811dc88

7 years agoMerge "renaming telephony internal hidden intents"
Chen Xu [Thu, 23 Feb 2017 01:55:24 +0000 (01:55 +0000)]
Merge "renaming telephony internal hidden intents"

7 years agoFix concurrent modification crash in onAlarm
John Reck [Thu, 23 Feb 2017 01:01:30 +0000 (17:01 -0800)]
Fix concurrent modification crash in onAlarm

Change-Id: Idfd094f3c9ea59356440d6851ccd5abda36ca6ba
Fixes: 35640585
Test: manual; after boot, opened the power menu to force
system_server to spin up a ThreadedRenderer instance
(and thus register itself as a callback on GraphicsStatsService).
Then manually set the date forward by a day to trigger onAlarm
and verified the system didn't reboot/crash. A systrace capture
verified that the alarm fired and package:android (system_server)
had a log rotation event.

7 years agoFix toggling of AM/PM of TimePicker using hardware keyboard.
Aurimas Liutikas [Thu, 23 Feb 2017 00:56:43 +0000 (16:56 -0800)]
Fix toggling of AM/PM of TimePicker using hardware keyboard.

Set AM/PM mode before setting hour in TextInputTimePickerView. This is
needed so we know exactly which it is when we are using 12 hour clock.
Not setting it early was causing TextInputTimePickerView to update TimePicker
with the hour that was not offset correctly based on AM/PM state.

Test: existing tests caught this - TimePickerTest#testKeyboardInputModeClockAmPm
      verified locally that this test now passes.
Bug: 35262830

Change-Id: I7e912320cb5a72c5d9d4e80dc0b42deb651f2636

7 years agoreates base implementation of ImsService AIDLs
Brad Ebinger [Fri, 3 Feb 2017 00:21:22 +0000 (16:21 -0800)]
reates base implementation of ImsService AIDLs

This change introduces "base classes" of the AIDL interfaces that are
implemented in vendor provided ImsServices. This allows for new APIs
to be added to the AIDL files, along with stub implementation of those
AIDLs in the base classes. By extending from the base class, older
implementations of the AIDL interfaces will not need to be updated
when the interface changes.

This change also moves some of the com.android.ims classes from
frameworks/opt/net/ims to frameworks/base. Any class that will be
used in the new unbundled ImsService system will need to be in
the framework, as opposed to the optional library that they are
in now.

Bug: 30290416
Test: Manual
Change-Id: I4a186d8e910d6d4f711e983ec8d717fc5cbdefab

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
Brad Ebinger [Thu, 23 Feb 2017 00:57:23 +0000 (00:57 +0000)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
am: 4fb8988854

Change-Id: Ic679f452ad245cbe58ea8069c34c15e50ee9e5c2

7 years agoAdd metric for new storage screen.
Daniel Nishi [Wed, 22 Feb 2017 01:11:35 +0000 (17:11 -0800)]
Add metric for new storage screen.

Bug: 34715777
Test: None here -- used in topic.

Change-Id: Icffecd5abba197d544a1f9bd382d5c09b0bbb388

7 years agoMerge "Fix build."
Sudheer Shanka [Thu, 23 Feb 2017 00:11:34 +0000 (00:11 +0000)]
Merge "Fix build."

7 years agoAdded auto-fill support for Spinner.
Felipe Leme [Wed, 22 Feb 2017 23:02:03 +0000 (15:02 -0800)]
Added auto-fill support for Spinner.

Spinner is a special kind of list-value field because its auto-fillable
values are not currently present in the assist structure: this change
adds a getAutoFillOptions() to fill that void, and implements the
auto-fill APIs on Spinner.

It also fixes RadioGroup.getAutoFillValue() - it should return the index
of the child, not its resource id.

Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass
Change-Id: I625e7dd705fade56fda490fcd3c4446c0c245ee1

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
Brad Ebinger [Thu, 23 Feb 2017 00:03:47 +0000 (16:03 -0800)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master

Change-Id: I4a6094c41ab267f89a15c5e8caa25e6b683419d0

7 years agoMerge "Fix a memory leak in AutoFillManager"
Svetoslav Ganov [Thu, 23 Feb 2017 00:02:51 +0000 (00:02 +0000)]
Merge "Fix a memory leak in AutoFillManager"

7 years agoMerge "TelephonyManager#setAllowedCarriers: comment update"
TreeHugger Robot [Wed, 22 Feb 2017 23:58:19 +0000 (23:58 +0000)]
Merge "TelephonyManager#setAllowedCarriers: comment update"

7 years agoMerge "Fixed missing auto-fill save callbacks on TextView."
Felipe Leme [Wed, 22 Feb 2017 23:56:42 +0000 (23:56 +0000)]
Merge "Fixed missing auto-fill save callbacks on TextView."

7 years agoReconcile apps in 2 phases
Fyodor Kupolov [Tue, 7 Feb 2017 19:25:14 +0000 (11:25 -0800)]
Reconcile apps in 2 phases

During boot app data folders are reconciled in 2 phases:
 - in the constructor only core apps are reconciled. prepareAppData
   for remaining apps is deferred and run on a separate thread (phase 2)
 - Phase 2 must finish before third-party apps can start

Also moved GC to final stages of system server init. GC alone takes ~200 ms.

Overall boot time improvement: ~1 second

Before:
02-17 18:33:33 D/BaseBootTest: successive-boot :
28835.0,29638.0,30205.0,29793.0,29752.0,28228.0,30125.0,28983.0,28487.0,28865.0,
02-17 18:33:33 D/BaseBootTest: successive-boot_avg : 29291.1
02-17 18:33:33 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService :
3150.0,3615.0,3515.0,3495.0,3814.0,3158.0,3746.0,3274.0,3222.0,3607.0,
02-17 18:33:33 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService_avg : 3459.6
02-17 18:33:33 D/BaseBootTest: SystemServerTiming_StartServices :
8244.0,8863.0,9035.0,9832.0,8998.0,8096.0,8719.0,8209.0,8279.0,8754.0,
02-17 18:33:33 D/BaseBootTest: SystemServerTiming_StartServices_avg :
8702.9

After:
02-17 17:59:51 D/BaseBootTest: successive-boot :
27711.0,27607.0,28408.0,28968.0,28397.0,28063.0,27885.0,28483.0,27917.0,29317.0,
02-17 17:59:51 D/BaseBootTest: successive-boot_avg : 28275.6
02-17 17:59:51 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService :
2467.0,2489.0,2369.0,2548.0,2647.0,2523.0,2497.0,2553.0,2482.0,2657.0,
02-17 17:59:51 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService_avg : 2523.2
02-17 17:59:51 D/BaseBootTest: SystemServerTiming_StartServices :
7686.0,7538.0,7598.0,7869.0,7884.0,7950.0,7971.0,8370.0,7696.0,7885.0,
02-17 17:59:51 D/BaseBootTest: SystemServerTiming_StartServices_avg :
7844.7

Test: manual
Bug: 28750609
Change-Id: I3543ef577af1365394775318e40907584ddbe950