OSDN Git Service

android-x86/frameworks-base.git
7 years agoFollow-up to I61640146 Remove duplicate check.
Makoto Onuki [Mon, 13 Feb 2017 22:32:41 +0000 (14:32 -0800)]
Follow-up to I61640146  Remove duplicate check.

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Change-Id: I0af448186c90e548542160d1902bc462545bb03e

7 years agoMerge "Don't hide summary text in RestrictedPreference."
TreeHugger Robot [Mon, 13 Feb 2017 21:51:07 +0000 (21:51 +0000)]
Merge "Don't hide summary text in RestrictedPreference."

7 years agoMerge "Do not allow work profile to see main other profiles"
Makoto Onuki [Mon, 13 Feb 2017 21:33:19 +0000 (21:33 +0000)]
Merge "Do not allow work profile to see main other profiles"

7 years agoMerge "Adding a little more verbose logging."
TreeHugger Robot [Mon, 13 Feb 2017 21:12:05 +0000 (21:12 +0000)]
Merge "Adding a little more verbose logging."

7 years agoMerge "Fix issue #35309312: Background start not allowed: service..."
Dianne Hackborn [Mon, 13 Feb 2017 21:09:51 +0000 (21:09 +0000)]
Merge "Fix issue #35309312: Background start not allowed: service..."

7 years agoMerge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2...
Bryan Mawhinney [Mon, 13 Feb 2017 20:59:36 +0000 (20:59 +0000)]
Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev am: 5de3e5ab36
am: 8542554d93

Change-Id: I1c3fa7d3a3e6118bc869b7046b6469ec09ce0058

7 years agoMerge "Created shell cmd to vibrate."
TreeHugger Robot [Mon, 13 Feb 2017 20:54:34 +0000 (20:54 +0000)]
Merge "Created shell cmd to vibrate."

7 years agoMerge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev
Bryan Mawhinney [Mon, 13 Feb 2017 20:54:11 +0000 (20:54 +0000)]
Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev
am: 5de3e5ab36

Change-Id: Icb15885a9ffb763dac1acf4db4685b3c8dcb5ac5

7 years agoMerge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev
TreeHugger Robot [Mon, 13 Feb 2017 20:49:50 +0000 (20:49 +0000)]
Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev

7 years agoMerge "Introduce a minimum scrollbar touch target size"
TreeHugger Robot [Mon, 13 Feb 2017 20:48:11 +0000 (20:48 +0000)]
Merge "Introduce a minimum scrollbar touch target size"

7 years agoMerge "Do not enter touch mode on non-touchscreen events"
TreeHugger Robot [Mon, 13 Feb 2017 20:44:36 +0000 (20:44 +0000)]
Merge "Do not enter touch mode on non-touchscreen events"

7 years agoMerge "Adding PipManager dumps."
Winson Chung [Mon, 13 Feb 2017 20:40:32 +0000 (20:40 +0000)]
Merge "Adding PipManager dumps."

7 years agoMerge "Create a new stack for the assistant activity."
Winson Chung [Mon, 13 Feb 2017 20:39:49 +0000 (20:39 +0000)]
Merge "Create a new stack for the assistant activity."

7 years agoMerge changes Ie3736d80,I52444f4e
Selim Cinek [Mon, 13 Feb 2017 20:37:45 +0000 (20:37 +0000)]
Merge changes Ie3736d80,I52444f4e

* changes:
  Improved collapsed messaging notifications
  Fixed a bug where the heads-up couldn't time out

7 years agoMerge "Moved the scrolling logic away from the onDraw"
Selim Cinek [Mon, 13 Feb 2017 20:36:43 +0000 (20:36 +0000)]
Merge "Moved the scrolling logic away from the onDraw"

7 years agoMerge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0...
Peter Qiu [Mon, 13 Feb 2017 20:19:42 +0000 (20:19 +0000)]
Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0 am: 1b510ecff7
am: bfceb41f5d  -s ours

Change-Id: Ief303163dea66f6e113bc82c6e262e6d25c65162

7 years agoMerge "Deprecate Canvas clipping for arbitrary Region.Ops."
Derek Sollenberger [Mon, 13 Feb 2017 20:16:23 +0000 (20:16 +0000)]
Merge "Deprecate Canvas clipping for arbitrary Region.Ops."

7 years agoMerge "Workaround wallpaper restore race" into nyc-mr2-dev am: 29e3920c4e
Bryan Mawhinney [Mon, 13 Feb 2017 20:14:55 +0000 (20:14 +0000)]
Merge "Workaround wallpaper restore race" into nyc-mr2-dev am: 29e3920c4e
am: b70bd94b6b

Change-Id: Ie520ca898db16a8208a6bba0e20229cac02c8eeb

7 years agoMerge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0
Peter Qiu [Mon, 13 Feb 2017 20:12:20 +0000 (20:12 +0000)]
Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0
am: 1b510ecff7

Change-Id: I56f99259149adb6a5e2fda7e2bbf8093a528a675

7 years agoMerge "Workaround wallpaper restore race" into nyc-mr2-dev
Bryan Mawhinney [Mon, 13 Feb 2017 20:09:34 +0000 (20:09 +0000)]
Merge "Workaround wallpaper restore race" into nyc-mr2-dev
am: 29e3920c4e

Change-Id: Ida5a953e75c326a1b5f555c820d807e7cb91b797

7 years agoMerge "hotspot2: fix typo in the getter functions" am: d3146f3c3c
Peter Qiu [Mon, 13 Feb 2017 20:07:16 +0000 (20:07 +0000)]
Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c
am: 5644c190a0

Change-Id: Idac3a70dc9c8a10e82076014078d7b5af3acac72

7 years agoMerge "Workaround wallpaper restore race" into nyc-mr2-dev
TreeHugger Robot [Mon, 13 Feb 2017 20:04:08 +0000 (20:04 +0000)]
Merge "Workaround wallpaper restore race" into nyc-mr2-dev

7 years agoFix issue #35309312: Background start not allowed: service...
Dianne Hackborn [Mon, 13 Feb 2017 19:42:18 +0000 (11:42 -0800)]
Fix issue #35309312: Background start not allowed: service...

...Intent { flg=0x100 cmp=com.android.systemui/.SystemUIService }
to com.android.systemui/.SystemUIService from pid=28245 uid=1000 pkg=android

Rework the persistent app check to just directly look at the package
manager (but as efficiently as possible).  My idea for trying to keep
this in the UidRecord was stupid. :p

Test: manually tested it boots
Change-Id: I5a88717a27fa3529048d37a853518a3ec04055db

7 years agoMerge "hotspot2: fix typo in the getter functions"
Peter Qiu [Mon, 13 Feb 2017 20:02:06 +0000 (20:02 +0000)]
Merge "hotspot2: fix typo in the getter functions"
am: d3146f3c3c

Change-Id: I8fc4042c26f896d899c090dd7afbe16a44d431eb

7 years agoMerge "Do not move PopupWindow when its anchor is detached"
TreeHugger Robot [Mon, 13 Feb 2017 19:59:46 +0000 (19:59 +0000)]
Merge "Do not move PopupWindow when its anchor is detached"

7 years agoMerge "hotspot2: fix typo in the getter functions"
Treehugger Robot [Mon, 13 Feb 2017 19:49:50 +0000 (19:49 +0000)]
Merge "hotspot2: fix typo in the getter functions"

7 years agoMerge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae"...
Michael Kwan [Mon, 13 Feb 2017 19:45:04 +0000 (19:45 +0000)]
Merge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae" into nyc-mr2-dev-plus-aosp
am: 6982f2df37

Change-Id: I80bd6833f616199717bbc069d9394d8442558cf0

7 years agoAdd tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: 2155f773db
Michael Kwan [Mon, 13 Feb 2017 19:43:40 +0000 (19:43 +0000)]
Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: 2155f773db
am: 6853de9729

Change-Id: I0dc640d4de46362986aa333668d809c4fb1a068b

7 years agoMerge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae"...
Android Build Merger (Role) [Mon, 13 Feb 2017 19:39:27 +0000 (19:39 +0000)]
Merge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae" into nyc-mr2-dev-plus-aosp

7 years agoAdd tweaks to smooth out swipe to dismiss. am: 5758a9a94c
Michael Kwan [Mon, 13 Feb 2017 19:38:34 +0000 (19:38 +0000)]
Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c
am: ddc6e0b7ae

Change-Id: I5423d0aae6666e0b6d3b51e986e969cf108c332c

7 years agoAdd tweaks to smooth out swipe to dismiss. am: 5758a9a94c
Michael Kwan [Mon, 13 Feb 2017 19:38:32 +0000 (19:38 +0000)]
Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c
am: 2155f773db

Change-Id: Iab07b13f24b7ca32b6bbb6faf788a71fccb969ec

7 years agoAdding a little more verbose logging.
Jeremy Joslin [Mon, 13 Feb 2017 19:35:03 +0000 (11:35 -0800)]
Adding a little more verbose logging.

Log statements to help track the request call path.

Test: manual
Change-Id: I68cfdf68cf8adcece45de2a60bec94e6f06be761

7 years agoAdd tweaks to smooth out swipe to dismiss.
Michael Kwan [Mon, 13 Feb 2017 19:32:35 +0000 (19:32 +0000)]
Add tweaks to smooth out swipe to dismiss.
am: 5758a9a94c

Change-Id: I64b9e88a7efb164b0e0160f8b25f770fb986efd6

7 years agoAdd tweaks to smooth out swipe to dismiss.
Michael Kwan [Mon, 13 Feb 2017 19:32:29 +0000 (19:32 +0000)]
Add tweaks to smooth out swipe to dismiss.
am: 5758a9a94c

Change-Id: Id10a31504aa5a579e8670e7a23d2d99a990ed6e5

7 years agoMerge "Handle focused tasks on multiple displays"
David Stevens [Mon, 13 Feb 2017 18:52:39 +0000 (18:52 +0000)]
Merge "Handle focused tasks on multiple displays"

7 years agoMerge "Fix typo on DISALLOW_UNMUTE_DEVICE"
TreeHugger Robot [Mon, 13 Feb 2017 18:48:24 +0000 (18:48 +0000)]
Merge "Fix typo on DISALLOW_UNMUTE_DEVICE"

7 years agoDo not enter touch mode on non-touchscreen events
Vladislav Kaznacheev [Mon, 13 Feb 2017 18:46:05 +0000 (10:46 -0800)]
Do not enter touch mode on non-touchscreen events

Currently ACTION_DOWN and ACTION_SCROLL cause
entering touch mode regardless of the event source.
This is especially awkward for mouse.

This should only happen when the event source is
SOURCE_TOUCHSCREEN.

Bug: 35314124
Test: android.cts.view.ViewTest#testTouchMode
Change-Id: I2205d4240be4afcbd9a3ac5558e701f7cac51926

7 years agoMerge "Internationalize subclasses of NumberKeyListener"
TreeHugger Robot [Mon, 13 Feb 2017 18:41:51 +0000 (18:41 +0000)]
Merge "Internationalize subclasses of NumberKeyListener"

7 years agoWorkaround wallpaper restore race
Bryan Mawhinney [Tue, 7 Feb 2017 15:18:07 +0000 (15:18 +0000)]
Workaround wallpaper restore race

If WallpaperManager is asked to read a wallpaper between when we
call mWm.clear and mWm.setStream, it is possible for us to end
up losing restored state such as cropHint and allowBackup

By not calling mWm.clear, we make this much less likely to happen.
It isn't necessary to call clear, as will explicitly overwrite
all the interesting state anyway.

Test: by repeated adb restore
Bug: 34760753
Change-Id: I2750695d5dd16077b47b5b8fca3a667b98cc4f6c
(cherry picked from commit 5c14853296172fe9885eee26d86351bd935e8430)

7 years agoFix live wallpaper not showing on lock screen after restore
Bryan Mawhinney [Tue, 7 Feb 2017 15:27:19 +0000 (15:27 +0000)]
Fix live wallpaper not showing on lock screen after restore

A recent change in nyc-mr2 means that setWallpaperComponent will
promote any static system wallpaper to the lock screen.  If we don't
actually have a static lock wallpaper to restore, we need to explicitly
clear the lock wallpaper to have the live one show through

Test: manually using adb backup / restore
Bug: 35090402
Change-Id: I8a2c5ffbaefe172c9d78a9f746ab87d9bc6b7448
(cherry picked from commit 96eb5b724bab31125e15eef2c926f6648567c3a1)

7 years agoMerge changes Ic3affb60,If09a6623
Diego Perez [Mon, 13 Feb 2017 18:25:27 +0000 (18:25 +0000)]
Merge changes Ic3affb60,If09a6623

* changes:
  Fix NopCanvas initialization
  NopCanvas is only hw accelerated during construction

7 years agoMerge "Remove custom service Class -> name mapping"
Diego Perez [Mon, 13 Feb 2017 18:24:55 +0000 (18:24 +0000)]
Merge "Remove custom service Class -> name mapping"

7 years agoAdding PipManager dumps.
Winson Chung [Fri, 10 Feb 2017 02:35:26 +0000 (18:35 -0800)]
Adding PipManager dumps.

Test: adb shell dumpsys activity service com.android.systemui
Change-Id: Id647833f1b4dcb6226517c058d17d1812f022671

7 years agoMerge "PendingIntent: Use rethrowFromSystemServer"
TreeHugger Robot [Mon, 13 Feb 2017 18:16:24 +0000 (18:16 +0000)]
Merge "PendingIntent: Use rethrowFromSystemServer"

7 years agoDo not allow work profile to see main other profiles
Makoto Onuki [Thu, 26 Jan 2017 19:39:31 +0000 (11:39 -0800)]
Do not allow work profile to see main other profiles

It won't throw SecurityException, but it'll pretend there's
no apps on the other profile.

- Also log an error about it, in the client side process.

- Also still send WTF() about the reverse access.

Bug: 34650921
Bug: 34340531

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'
Change-Id: I6164014685009db3f34a176a3f12c517766b2b49

7 years agoImport translations. DO NOT MERGE am: c342666ac8 -s ours
Bill Yi [Mon, 13 Feb 2017 18:02:52 +0000 (18:02 +0000)]
Import translations. DO NOT MERGE am: c342666ac8  -s ours
am: 46cff11000  -s ours

Change-Id: I09a6d85d1664b8842507fd550303775159520088

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 13 Feb 2017 17:56:48 +0000 (17:56 +0000)]
Import translations. DO NOT MERGE
am: c342666ac8  -s ours

Change-Id: I039290ce49b857b35f9c83177a32e0195c267d36

7 years agoMerge "Removed TaskSnapshotCacheTest from presumbit"
Wale Ogunwale [Mon, 13 Feb 2017 17:54:59 +0000 (17:54 +0000)]
Merge "Removed TaskSnapshotCacheTest from presumbit"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 13 Feb 2017 17:54:33 +0000 (17:54 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Updated Inline Notification Controls"
Geoffrey Pitsch [Mon, 13 Feb 2017 17:47:30 +0000 (17:47 +0000)]
Merge "Updated Inline Notification Controls"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 13 Feb 2017 17:42:41 +0000 (17:42 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "TextClassifierImpl: Handle urls."
Abodunrinwa Toki [Mon, 13 Feb 2017 17:35:14 +0000 (17:35 +0000)]
Merge "TextClassifierImpl: Handle urls."

7 years agoMerge "Partial revert of "Disable StatusBarTests due to flakes.""
TreeHugger Robot [Mon, 13 Feb 2017 16:34:48 +0000 (16:34 +0000)]
Merge "Partial revert of "Disable StatusBarTests due to flakes.""

7 years agoPartial revert of "Disable StatusBarTests due to flakes."
Adrian Roos [Sat, 11 Feb 2017 08:35:54 +0000 (09:35 +0100)]
Partial revert of "Disable StatusBarTests due to flakes."

Only disable the flakey metrics tests. The other tests in
this class are fine. Also use @Ignore instead of commenting
out @Test.

This reverts commit 63b55435e8406f3235876da2e672fc8d890fc7c2.

Change-Id: I023e63be18dba3659cabe4db9ae1245ccafe835c

7 years agoMerge "Set oom adj for processes displaying app-overlays to PERCEPTIBLE_APP_ADJ"
TreeHugger Robot [Mon, 13 Feb 2017 16:19:38 +0000 (16:19 +0000)]
Merge "Set oom adj for processes displaying app-overlays to PERCEPTIBLE_APP_ADJ"

7 years agoFix NopCanvas initialization
Diego Perez [Thu, 2 Feb 2017 17:32:35 +0000 (17:32 +0000)]
Fix NopCanvas initialization

Reverse the logic since the field wouldn't be initialized to true before
super is called.

Test: Layoutlib tests
Change-Id: Ic3affb608bdf3306ada25e2dd986a48f6caae202

7 years agoNopCanvas is only hw accelerated during construction
Diego Perez [Thu, 2 Feb 2017 10:32:03 +0000 (10:32 +0000)]
NopCanvas is only hw accelerated during construction

During construction, we want to make NopCanvas as light as possible so
we just say that we are hw accelerated.
This caused some crashes further down the line for some views that
thought that NopCanvas was hw accelerated. From now on, NopCanvas is
only hw accelerated during construction.

Test: Covered by the existing tests
Change-Id: If09a662312e5c90d011e7ab2cbb524ef7b420d12

7 years agoRemove custom service Class -> name mapping
Diego Perez [Mon, 16 Jan 2017 11:39:17 +0000 (11:39 +0000)]
Remove custom service Class -> name mapping

Keeping the mapping manually is very error prone and the
SystemServiceRegistry already does it for us.

Bug: http://b.android.com/231975
Test: Added new test
Change-Id: I507c4a9d5f0821a5a237ee27f5e97c5cd9040223

7 years agoMerge "Specify limitations of DISALLOW_UNINSTALL_APPS in documentation"
TreeHugger Robot [Mon, 13 Feb 2017 15:15:05 +0000 (15:15 +0000)]
Merge "Specify limitations of DISALLOW_UNINSTALL_APPS in documentation"

7 years agoRemoved TaskSnapshotCacheTest from presumbit
Wale Ogunwale [Mon, 13 Feb 2017 15:14:20 +0000 (07:14 -0800)]
Removed TaskSnapshotCacheTest from presumbit

Until b/35196891 is fixed.

Bug: 35196891
Test: TaskSnapshotCacheTest
Change-Id: I636b1da5149e45f24ef740d0d7619743856d6df4

7 years agoMerge "SysUiLeaks: Add GarbageMonitor"
Adrian Roos [Mon, 13 Feb 2017 15:06:11 +0000 (15:06 +0000)]
Merge "SysUiLeaks: Add GarbageMonitor"

7 years agoTextClassifierImpl: Handle urls.
Abodunrinwa Toki [Mon, 6 Feb 2017 20:29:36 +0000 (20:29 +0000)]
TextClassifierImpl: Handle urls.

This cl also updates label strings, renames an internal method,
and fixes some bugs in TextClassifierImpl caught by tests.

Test: See: I31ee94177e58c986e61e9b24c6c5816fa4b022e1
Bug: 34778263
Bug: 34922928
Change-Id: Ibf60d345d462dfc8a13dead6f01053f1ae50f35a

7 years agoFix typo on DISALLOW_UNMUTE_DEVICE
Esteban Talavera [Mon, 13 Feb 2017 14:59:45 +0000 (14:59 +0000)]
Fix typo on DISALLOW_UNMUTE_DEVICE

Test: Builds sucessfully. Cannot find other usages in code search
Change-Id: I83f85b4715b11630b0ce0b471be536aef46a2936

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 13 Feb 2017 14:10:54 +0000 (06:10 -0800)]
Import translations. DO NOT MERGE

Change-Id: I3355bb35c1500306ddaf5102f82beb010b67c208
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 13 Feb 2017 13:55:21 +0000 (05:55 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ia81f744e2074cd855a72e54a81250676dcb64300
Auto-generated-cl: translation import

7 years agoPendingIntent: Use rethrowFromSystemServer
Adrian Roos [Mon, 13 Feb 2017 13:48:57 +0000 (14:48 +0100)]
PendingIntent: Use rethrowFromSystemServer

Fixes an issue where during a crash or shutdown of system_server apps
would start getting unexpected nulls as results of PendingIntent.get...(),
causing them to crash and getting flagged by AUPT.

Change-Id: Ieec289921f125da469f83813ca3f5920b5794a31
Fixes: 34932613
Test: adb shell stop; verify that there are no crashes in logcat.

7 years agoMerge "BackupAgent#getBackupQuota() API"
Shreyas Basarge [Mon, 13 Feb 2017 13:45:55 +0000 (13:45 +0000)]
Merge "BackupAgent#getBackupQuota() API"

7 years agoSpecify limitations of DISALLOW_UNINSTALL_APPS in documentation
Esteban Talavera [Mon, 13 Feb 2017 12:35:04 +0000 (12:35 +0000)]
Specify limitations of DISALLOW_UNINSTALL_APPS in documentation

Bug: 24928722
Fix: 29871221
Bug: 31344846

Test: Builds successfully

Change-Id: I870c71d537da79b9dd50f81ba5394eb8afc8d839

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 13 Feb 2017 12:43:07 +0000 (04:43 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id5389309517ac0561cf869814c8936dcf9069702
Auto-generated-cl: translation import

7 years agoMerge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532 am: 0cca15ff88...
Erik Kline [Mon, 13 Feb 2017 12:14:13 +0000 (12:14 +0000)]
Merge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532 am: 0cca15ff88 am: 3de5971b40
am: 60d14c429b

Change-Id: Ia4a084be38e6f4dce14da012afb6760a3cbd32d0

7 years agoMerge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532 am: 0cca15ff88
Erik Kline [Mon, 13 Feb 2017 12:08:11 +0000 (12:08 +0000)]
Merge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532 am: 0cca15ff88
am: 3de5971b40

Change-Id: I470c481a0eebc9cadf134c73ece08803927f4ca2

7 years agoMerge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532
Erik Kline [Mon, 13 Feb 2017 12:02:48 +0000 (12:02 +0000)]
Merge "Add test coverage for cleanup bug to be fixed." am: 89e6bf0532
am: 0cca15ff88

Change-Id: Ib5d1a6d6616b99a9e4f7cf0286ebc0a11d62bff8

7 years agoMerge "Add test coverage for cleanup bug to be fixed."
Erik Kline [Mon, 13 Feb 2017 11:57:37 +0000 (11:57 +0000)]
Merge "Add test coverage for cleanup bug to be fixed."
am: 89e6bf0532

Change-Id: I33347c8fc2bec5660b8e9c14a316f6d14a6cf8b1

7 years agoMerge "Add test coverage for cleanup bug to be fixed."
Treehugger Robot [Mon, 13 Feb 2017 11:51:20 +0000 (11:51 +0000)]
Merge "Add test coverage for cleanup bug to be fixed."

7 years agoMerge "Rely on com.android.internal.os.SomeArgs"
TreeHugger Robot [Mon, 13 Feb 2017 09:32:30 +0000 (09:32 +0000)]
Merge "Rely on com.android.internal.os.SomeArgs"

7 years agoMerge changes I8a2c5ffb,I2750695d
TreeHugger Robot [Mon, 13 Feb 2017 09:06:12 +0000 (09:06 +0000)]
Merge changes I8a2c5ffb,I2750695d

* changes:
  Fix live wallpaper not showing on lock screen after restore
  Workaround wallpaper restore race

7 years agoAdd test coverage for cleanup bug to be fixed.
Erik Kline [Mon, 13 Feb 2017 08:12:02 +0000 (17:12 +0900)]
Add test coverage for cleanup bug to be fixed.

The test calls that need to pass but do not currently are commented out.

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32031803
Bug: 32163131

Change-Id: I68ed476920bef882f353d8e8a54c72120bc27002

7 years agoRely on com.android.internal.os.SomeArgs
Yohei Yukawa [Mon, 13 Feb 2017 07:16:47 +0000 (23:16 -0800)]
Rely on com.android.internal.os.SomeArgs

Before introducing new state tracking IDs to IInputConnectionWrapper,
this CL cleans up IInputConnectionWrapper to use
com.android.internal.os.SomeArgs instead of local-defined one in favor
of possible performance improvement thanks to the process grobal
object pool that com.android.internal.os.SomeArgs has.

This is a mechanical refactoring CL. No behavior change is intended.
Test: No new warnings in `adb logcat` from the following TAGs
      - IInputConnectionWrapper
      - InputMethodManager
      - InputMethodManagerService
      - InputMethodService
Bug: 35079353
Change-Id: Ic614f112f960382280acd8891b3af56d47679f08

7 years agoMerge "Hide logspam due to redundant finishComposingText"
TreeHugger Robot [Mon, 13 Feb 2017 06:49:49 +0000 (06:49 +0000)]
Merge "Hide logspam due to redundant finishComposingText"

7 years agoAdd tweaks to smooth out swipe to dismiss.
Michael Kwan [Sun, 12 Feb 2017 21:43:45 +0000 (13:43 -0800)]
Add tweaks to smooth out swipe to dismiss.

Bug: 34673753
Change-Id: I5a9d420c70d124fc764803d505291e66818b1aa2
(cherry picked from commit 2e11adaac3ec959044e8154c67b6ab9cde82fdab)

7 years agoHide logspam due to redundant finishComposingText
Yohei Yukawa [Mon, 13 Feb 2017 04:08:13 +0000 (20:08 -0800)]
Hide logspam due to redundant finishComposingText

Currently we see two warning messages
  "finishComposingText on inactive InputConnection"
  "finishComposingText on inactive InputConnection"
every time every time the View focus is switched from one EditText
to another EditText on the same window, which is really spammy.

This is actually not critical if IInputConnectionWrapper was already
finished, because with my previous CL [1] it is guaranteed that
InputConnection#finishComposingText() was already called followed by
InputConnection#closeConnection(), which means that the connection
is closed and should not accept any further requests. Thus ignoring
further #finishComposingText() only means that the system and/or IME
is calling #finishComposingText() unnecessarily, which is worth
showing spammy warnings in production builds.

To reduce logspam this CL hides warnings from the above case behind
DEBUG flag.

 [1]: If2a03bc84d318775fd4a197fa43acde086eda442
      aaa38c9f1ae019f0fe8c3ba80630f26e582cc89c

Test: Make sure `adb logcat -s IInputConnectionWrapper:*` does not
      show "finishComposingText on inactive InputConnection" warnings
      while switching focus across different EditText on the same
      window.
Bug: 35079353
Bug: 35301295
Change-Id: I17f3a4f500bc19ebf8bae771bf658a93627b3ba3

7 years agoMerge "Introduce @SoftInputModeFlags annotation"
TreeHugger Robot [Mon, 13 Feb 2017 03:36:04 +0000 (03:36 +0000)]
Merge "Introduce @SoftInputModeFlags annotation"

7 years agoMerge "Track the last softInputMode in IMMS"
TreeHugger Robot [Mon, 13 Feb 2017 03:31:42 +0000 (03:31 +0000)]
Merge "Track the last softInputMode in IMMS"

7 years agoMerge "Merge restartInput into startInput in internal IPC"
TreeHugger Robot [Mon, 13 Feb 2017 03:28:53 +0000 (03:28 +0000)]
Merge "Merge restartInput into startInput in internal IPC"

7 years agoSet oom adj for processes displaying app-overlays to PERCEPTIBLE_APP_ADJ
Wale Ogunwale [Sun, 5 Feb 2017 21:52:09 +0000 (13:52 -0800)]
Set oom adj for processes displaying app-overlays to PERCEPTIBLE_APP_ADJ

For processes with a window of type TYPE_APPLICATION_OVERLAY adjust their
oom importance to PERCEPTIBLE_APP_ADJ to reduce the chance of them getting
killed by the low-memory-killer since they are displaying something that
is perceptible to the user.

Also z-order TYPE_DREAM windows above alerts windows.

Bug: 33256752
Test: cts/.../run-test CtsAppTestCases android.app.cts.AlertWindowsTests
Change-Id: I4c05a9fee6fad61399bf4d10c8647467cc596ca6

7 years agoIntroduce @SoftInputModeFlags annotation
Yohei Yukawa [Mon, 13 Feb 2017 00:54:16 +0000 (16:54 -0800)]
Introduce @SoftInputModeFlags annotation

Doing this allows us to annotate integer values that should corresponds
to WindowManager.LayoutParams#softInputMode.

Test: There should be no behavior change.  RetentionPolicy.SOURCE
      annotation should change nothing in production code.
Test: checkbuild
Bug: 32784563
Bug: 35079353
Change-Id: I96300b090edce327d0515c740183abe91ded6bac

7 years agoTrack the last softInputMode in IMMS
Yohei Yukawa [Mon, 13 Feb 2017 00:38:59 +0000 (16:38 -0800)]
Track the last softInputMode in IMMS

A field in WindowManager.LayoutParams softInputMode is something that
definitely needs to be kept tracking in historical debugging
infrastructure across IME-related processes (Bug 35079353) [1].  As a
preparation, this CL enables InputMethodManagerService (IMMS) to
include the last softInputMode specified in IMMS#windowGainedFocus()
in the dumpsys in human readable format.

 [1]: As explained in b.android.com/224318, softInputMode misspecified
      by app developers is a typical root cause of unexpected behavior
      in keyboard visibility.  Bugs such as Bug 23168250, Bug 27275709,
      and Bug 31770400 fall into this category.

Test: `adb shell dumpsys input_method | grep softInputMode=`
Bug: 35079353
Change-Id: I485ced030def179dad78b4b811c6eb52b5e5c951

7 years agoMerge "Add tweaks to smooth out swipe to dismiss."
TreeHugger Robot [Sun, 12 Feb 2017 23:57:27 +0000 (23:57 +0000)]
Merge "Add tweaks to smooth out swipe to dismiss."

7 years agoCreate a new stack for the assistant activity.
Winson Chung [Tue, 13 Dec 2016 19:02:12 +0000 (11:02 -0800)]
Create a new stack for the assistant activity.

- Add a new stack that is not resized with multiwindow, and
  appears above the fullscreen and docked stacks, but below
  the pinned stack
- Add a method on VoiceInteractionSession to allow the assistant
  to launch activities into this new fullscreen stack.
- Also prevent any activities in the assist stack from the
  fetching of the on screen assist data.

Bug: 30999386
Test: android.server.cts.ActivityManagerAssistantStackTests

Change-Id: I22ab7629b5f758cf1e66d7d1c26648af6bc887c9

7 years agoAdd tweaks to smooth out swipe to dismiss.
Michael Kwan [Sun, 12 Feb 2017 21:43:45 +0000 (13:43 -0800)]
Add tweaks to smooth out swipe to dismiss.

Bug: 34673753
Change-Id: I5a9d420c70d124fc764803d505291e66818b1aa2

7 years agoMerge "Allow for multiple preferred densities in the strip command."
Pierre Lecesne [Sun, 12 Feb 2017 18:43:57 +0000 (18:43 +0000)]
Merge "Allow for multiple preferred densities in the strip command."

7 years agoAllow for multiple preferred densities in the strip command.
Pierre Lecesne [Mon, 6 Feb 2017 10:29:02 +0000 (10:29 +0000)]
Allow for multiple preferred densities in the strip command.

Test: Unit tests pass.

Change-Id: I1f27ac8c36ff3489e4c8e4fce7f3d9cb31df6906

7 years agoMerge "Explicit API for allocating disk space."
TreeHugger Robot [Sun, 12 Feb 2017 13:17:29 +0000 (13:17 +0000)]
Merge "Explicit API for allocating disk space."

7 years agoMerge "Switch RecoverableSE over to using RemoteAction."
TreeHugger Robot [Sun, 12 Feb 2017 12:52:05 +0000 (12:52 +0000)]
Merge "Switch RecoverableSE over to using RemoteAction."

7 years agoExplicit API for allocating disk space.
Jeff Sharkey [Sun, 12 Feb 2017 09:39:24 +0000 (02:39 -0700)]
Explicit API for allocating disk space.

Now that we're giving apps better guidance around how much cached
disk space they can use, we also need to provide a way to help clear
some of those cached files.  The final logic is coming in a future
CL, but it will be designed to prevent abuse.

Test: newly added CTS tests
Bug: 34690590
Change-Id: I1e46ade0cdabbc33162fc7bfa76abec711992f92

7 years agoMerge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9...
Jeff Sharkey [Sun, 12 Feb 2017 10:35:43 +0000 (10:35 +0000)]
Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70  -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f  -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 41c9029be0" into nyc-mr2-dev-plus-aosp
am: 912a5f054c  -s ours

Change-Id: I1f1206f8d3bfb815e2effbc072522ece02a25ce9

7 years agoDO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b119...
Jeff Sharkey [Sun, 12 Feb 2017 10:34:50 +0000 (10:34 +0000)]
DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70  -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f  -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 8100f549bf
am: ed3841df86  -s ours

Change-Id: Ie77c38a65afeae8c2fbd55eb2f4edc32ea342a70

7 years agoMerge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9...
Android Build Merger (Role) [Sun, 12 Feb 2017 10:31:41 +0000 (10:31 +0000)]
Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70  -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f  -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 41c9029be0" into nyc-mr2-dev-plus-aosp

7 years agoDO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b119...
Jeff Sharkey [Sun, 12 Feb 2017 10:30:58 +0000 (10:30 +0000)]
DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70  -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f  -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3
am: 41c9029be0

Change-Id: I491c4ae2b64e2a15a626bc20a8e2083e0bb6a91d

7 years agoDO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b119...
Jeff Sharkey [Sun, 12 Feb 2017 10:30:50 +0000 (10:30 +0000)]
DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70  -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f  -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3
am: 8100f549bf

Change-Id: Icb69b7af8a1e7c9c2fb8c2ea47e41932006128d8