Commit Graph

309172 Commits

Author SHA1 Message Date
Sundeep Ghuman
ff0f108681 Move the lock item for the QS WifiPicker.
This matches the new Wifi Picker style used in WifiSettings.

Bug: 35164592
Test: See screenshot in comments
Change-Id: I6b1203adf4b217071510b3411aadc3f38f2650d6
2017-02-13 12:58:18 -08:00
TreeHugger Robot
31a7d1b03d Merge "Created shell cmd to vibrate." 2017-02-13 20:54:36 +00:00
Bryan Mawhinney
8542554d93 Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev
am: 5de3e5ab36

Change-Id: Icb15885a9ffb763dac1acf4db4685b3c8dcb5ac5
2017-02-13 20:54:11 +00:00
Colin Cross
80e86bae0e Use asm-5.2 prebuilt
Test: m -j checkbuild tests cts
Change-Id: I37d40cc2e0406679394012aacd49f7ca9e51e3f6
2017-02-13 12:54:10 -08:00
TreeHugger Robot
5de3e5ab36 Merge "Fix live wallpaper not showing on lock screen after restore" into nyc-mr2-dev 2017-02-13 20:49:53 +00:00
TreeHugger Robot
9f5ce93549 Merge "Introduce a minimum scrollbar touch target size" 2017-02-13 20:48:14 +00:00
TreeHugger Robot
a21f3e782a Merge "Do not enter touch mode on non-touchscreen events" 2017-02-13 20:44:39 +00:00
Winson Chung
4de191dc1b Merge "Adding PipManager dumps." 2017-02-13 20:40:35 +00:00
Winson Chung
12cb6628db Merge "Create a new stack for the assistant activity." 2017-02-13 20:39:52 +00:00
Selim Cinek
2698d1d1e8 Merge changes Ie3736d80,I52444f4e
* changes:
  Improved collapsed messaging notifications
  Fixed a bug where the heads-up couldn't time out
2017-02-13 20:37:48 +00:00
Selim Cinek
b7d23750f7 Merge "Moved the scrolling logic away from the onDraw" 2017-02-13 20:36:46 +00:00
Peter Qiu
ac855bab33 Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0 am: 1b510ecff7
am: bfceb41f5d  -s ours

Change-Id: Ief303163dea66f6e113bc82c6e262e6d25c65162
2017-02-13 20:19:42 +00:00
Derek Sollenberger
427acd7c77 Merge "Deprecate Canvas clipping for arbitrary Region.Ops." 2017-02-13 20:16:26 +00:00
Bryan Mawhinney
df475d8c57 Merge "Workaround wallpaper restore race" into nyc-mr2-dev am: 29e3920c4e
am: b70bd94b6b

Change-Id: Ie520ca898db16a8208a6bba0e20229cac02c8eeb
2017-02-13 20:14:55 +00:00
Peter Qiu
bfceb41f5d Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c am: 5644c190a0
am: 1b510ecff7

Change-Id: I56f99259149adb6a5e2fda7e2bbf8093a528a675
2017-02-13 20:12:20 +00:00
Bryan Mawhinney
b70bd94b6b Merge "Workaround wallpaper restore race" into nyc-mr2-dev
am: 29e3920c4e

Change-Id: Ida5a953e75c326a1b5f555c820d807e7cb91b797
2017-02-13 20:09:34 +00:00
Peter Qiu
1b510ecff7 Merge "hotspot2: fix typo in the getter functions" am: d3146f3c3c
am: 5644c190a0

Change-Id: Idac3a70dc9c8a10e82076014078d7b5af3acac72
2017-02-13 20:07:16 +00:00
Yohei Yukawa
69e6802422 Propagate setImeWindowStatus() to WMS
setImeWindowStatus() introduced in the previous CL [1] can help
WindowManagerService (WMS) address Bug 34628091.  As a preparation
this CL has InputMethodManagerService propagate relevant information
to WMS WMS for later use.

 [1]: I9921b381e02106dbffff5e0b3d13f0a1245ce807
      db2afde0e584904ee4ce115ce176a4dfe1773990

Test: Verified the callback in WindowManagerService as follows:
       1. Rebuild the system with DEBUG_INPUT_METHOD=true
       2. adb logcat -s WindowManager:*
            to make sure the visibility passed to
            WindowManagerService#updateInputMethodWindowStatus matches
            to the actual IME window visibility
Bug: 34628091
Bug: 35079353
Change-Id: I54fb1faf513883a54293a756e4c9d2ae9453d778
2017-02-13 12:04:50 -08:00
Yohei Yukawa
6db3bfe33d Track event flow to IMMS#setImeWindowStatus
This is part of work to introduce historical debugging infrastructure
for Android IME.

In this CL, we will focus on the following two event flows.

 A1. IMMS#attachNewInputLocked() queues MSG_(RE)START_INPUT to deliver
     new InputConnection/EditorInfo to the current IME
 A2. The IME triggers IMS#onStartInput()/IMS#onRestartInput() and
     updates the following fields:
      - InputMethodService#mStartedInputConnection
      - InputMethodService#mInputEditorInfo

 B1. IME is expected to call back IMM#setImeWindowStatus() to notify
     its window visibility change to IMMS.
 B2. IMMS updates the following field if the caller is still the
     current IME.
      - InputMethodManagerService#mImeWindowVis

What this CL aims to do is to enable IMMS to access A1 state when it
was in B2 state, by considering that for given a B1 the last A2
happened before B1 is the cause of B1 and B2.

To do this, IMMS issues a binder token in A1 and each IME keeps it
so that it can be passed in B1. By using this Binder token as a key,
IMMS can keep tracking state snapshot taken from each A1. Note that
those state snapshots keep alive until the Binder token's proxy in the
IME process loses strong reference from its GC root.

Test: Make sure `adb shell dumpsys input_method | grep mImeWindowVis`
      matches to the IME window visibility.
Test: Make sure the current IME is not receiving any
      InvalidParameterException from IMMS.
Bug: 35079353
Change-Id: I9921b381e02106dbffff5e0b3d13f0a1245ce807
2017-02-13 12:04:41 -08:00
TreeHugger Robot
29e3920c4e Merge "Workaround wallpaper restore race" into nyc-mr2-dev 2017-02-13 20:04:11 +00:00
Dianne Hackborn
b1e7776e2c 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
2017-02-13 12:02:42 -08:00
Peter Qiu
5644c190a0 Merge "hotspot2: fix typo in the getter functions"
am: d3146f3c3c

Change-Id: I8fc4042c26f896d899c090dd7afbe16a44d431eb
2017-02-13 20:02:06 +00:00
TreeHugger Robot
fb30f7ca28 Merge "Do not move PopupWindow when its anchor is detached" 2017-02-13 19:59:49 +00:00
Treehugger Robot
d3146f3c3c Merge "hotspot2: fix typo in the getter functions" 2017-02-13 19:49:51 +00:00
Michael Kwan
7aa55b5c44 Merge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae" into nyc-mr2-dev-plus-aosp
am: 6982f2df37

Change-Id: I80bd6833f616199717bbc069d9394d8442558cf0
2017-02-13 19:45:04 +00:00
Michael Kwan
4a5b13b795 Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: 2155f773db
am: 6853de9729

Change-Id: I0dc640d4de46362986aa333668d809c4fb1a068b
2017-02-13 19:43:40 +00:00
Conrad Chen
e87a7d9e95 TIF: Add browsable field to programs
Test: build
Bug: 34720053
Change-Id: I8cf43bda833fdb93c898b07d9fdec9ebefa4227b
2017-02-13 11:42:38 -08:00
Android Build Merger (Role)
6982f2df37 Merge "Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c am: ddc6e0b7ae" into nyc-mr2-dev-plus-aosp 2017-02-13 19:39:31 +00:00
Michael Kwan
7e8fab35cd Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c
am: ddc6e0b7ae

Change-Id: I5423d0aae6666e0b6d3b51e986e969cf108c332c
2017-02-13 19:38:34 +00:00
Michael Kwan
6853de9729 Add tweaks to smooth out swipe to dismiss. am: 5758a9a94c
am: 2155f773db

Change-Id: Iab07b13f24b7ca32b6bbb6faf788a71fccb969ec
2017-02-13 19:38:32 +00:00
Jeremy Joslin
4ad7ca056f Adding a little more verbose logging.
Log statements to help track the request call path.

Test: manual
Change-Id: I68cfdf68cf8adcece45de2a60bec94e6f06be761
2017-02-13 11:35:03 -08:00
Michael Kwan
2155f773db Add tweaks to smooth out swipe to dismiss.
am: 5758a9a94c

Change-Id: I64b9e88a7efb164b0e0160f8b25f770fb986efd6
2017-02-13 19:32:35 +00:00
Michael Kwan
ddc6e0b7ae Add tweaks to smooth out swipe to dismiss.
am: 5758a9a94c

Change-Id: Id10a31504aa5a579e8670e7a23d2d99a990ed6e5
2017-02-13 19:32:29 +00:00
David Stevens
dfabcb1ca0 Merge "Handle focused tasks on multiple displays" 2017-02-13 18:52:42 +00:00
TreeHugger Robot
33a119c94f Merge "Fix typo on DISALLOW_UNMUTE_DEVICE" 2017-02-13 18:48:28 +00:00
Vladislav Kaznacheev
75e5029e46 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
2017-02-13 10:46:05 -08:00
TreeHugger Robot
60bcd2485d Merge "Internationalize subclasses of NumberKeyListener" 2017-02-13 18:41:58 +00:00
Bryan Mawhinney
e7aadaaa3a 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 5c14853296)
2017-02-13 18:29:57 +00:00
Bryan Mawhinney
cd757d4979 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 96eb5b724b)
2017-02-13 18:26:31 +00:00
Diego Perez
d432860074 Merge changes Ic3affb60,If09a6623
* changes:
  Fix NopCanvas initialization
  NopCanvas is only hw accelerated during construction
2017-02-13 18:25:31 +00:00
Diego Perez
cc28e74728 Merge "Remove custom service Class -> name mapping" 2017-02-13 18:24:59 +00:00
Winson Chung
29a786590f Adding PipManager dumps.
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: Id647833f1b4dcb6226517c058d17d1812f022671
2017-02-13 10:23:04 -08:00
TreeHugger Robot
860d17d154 Merge "PendingIntent: Use rethrowFromSystemServer" 2017-02-13 18:16:29 +00:00
Makoto Onuki
de3c16c805 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
2017-02-13 10:07:46 -08:00
Bill Yi
b289ee1e93 Import translations. DO NOT MERGE am: c342666ac8 -s ours
am: 46cff11000  -s ours

Change-Id: I09a6d85d1664b8842507fd550303775159520088
2017-02-13 18:02:52 +00:00
Bill Yi
46cff11000 Import translations. DO NOT MERGE
am: c342666ac8  -s ours

Change-Id: I039290ce49b857b35f9c83177a32e0195c267d36
2017-02-13 17:56:48 +00:00
Hyunyoung Song
9ee90a42dc Icon class should support Maskable bitmap type
Test: Unit test on IconTest
$ runtest --path=frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java

b/34196580

Change-Id: I321c4b02f17ad9426c053216c4c88616a605aacf
2017-02-13 09:56:05 -08:00
Wale Ogunwale
61fecaff67 Merge "Removed TaskSnapshotCacheTest from presumbit" 2017-02-13 17:55:02 +00:00
TreeHugger Robot
e8adb45b91 Merge "Import translations. DO NOT MERGE" 2017-02-13 17:54:36 +00:00
Geoffrey Pitsch
7c4f39b856 Merge "Updated Inline Notification Controls" 2017-02-13 17:47:33 +00:00