Commit Graph

387000 Commits

Author SHA1 Message Date
Yohei Yukawa
bf25f9ed4e Use DisplayContext to obtain InputMethodManager in ViewRootImpl
Historically ViewRootImpl#mContext has been just pointing to the
Context instance associated with whatever first View instance that is
being added to a Window.  In other words, ViewRootImpl#mContext is not
owned by ViewRootImpl.

This can become a problem if ViewRootImpl is moved from a display to
another display with ViewRootImpl#updateInternalDisplay(), which was
added last year to support multiple displays [1], because there is no
guarantee that the target Contaxt that is pointed from
ViewRootImpl#mContext is also updated to have the new display ID.

In order to support multi-display we need to use the right Context at
least when interacting with InputMethodManager. Hence as a short term
solution this CL introduces ViewRootImpl#mDisplayContext so that the
right instance of InputMethodManager can receive callback from
ViewRootImpl. In this way, we can make sure that the behavior change
in ViewRootImple is limited to how InputMethodManager instance is
obtained.

Longer term solution will be discussed in Bug 116349163.

 [1]: I9a9501cab788623ada15a31efb53e4b2378639fe
      b047b8bd7e

Bug: 115893206
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: Ifa0ca24e9cf764caf492ee065606680b6a06751a
2018-09-25 15:19:38 -07:00
Nicole Borrelli
2bfca321cc Merge "Fix malformed Javadoc." into pi-dev am: 3ae3f252b4
am: 3d54533e52

Change-Id: I8940755ed359d4fcf6683c59c0e501c11faa4559
2018-09-25 14:24:28 -07:00
Nicole Borrelli
3d54533e52 Merge "Fix malformed Javadoc." into pi-dev
am: 3ae3f252b4

Change-Id: Iea60c213e70a8878baeb59b9247ae4bf0eaf5a8d
2018-09-25 14:06:49 -07:00
TreeHugger Robot
e8931110a0 Merge "Look for apps in the proper user" 2018-09-25 20:54:14 +00:00
TreeHugger Robot
3ae3f252b4 Merge "Fix malformed Javadoc." into pi-dev 2018-09-25 20:42:50 +00:00
TreeHugger Robot
14de37e614 Merge "Add notification atom to atoms.proto" 2018-09-25 20:38:18 +00:00
Calin Juravle
eff1e1efe5 Merge "Update the reference profile from .dm files only during installs" 2018-09-25 20:22:28 +00:00
TreeHugger Robot
d6fb462d1e Merge "Remove a special optimization for a quite rare scenario" 2018-09-25 20:09:05 +00:00
Fan Zhang
39b3b24a2b Merge "Move AppPreference to SettingsLib so other apps can use it." 2018-09-25 19:15:19 +00:00
Julia Reynolds
b663487d28 Look for apps in the proper user
System server can post notifications that appear to
be coming from apps in other users (like when apps in
a work profile start a foreground service). Thus,
when resolving the uid of the notification, it's not safe
to use the calling user; instead the userid as resolved
by ActivityManager.handleIncomingUser() must be used.

Test: runtest systemui-notification
Test: start a foreground service in a managed profile for
an app that doesn't exist in the primary user.
Fixes: 116283798
Bug: 116019760

Change-Id: I568f1ed6fabe64a6c32ef0901f76b2baadc63f6c
2018-09-25 15:04:20 -04:00
TreeHugger Robot
ad789a54c7 Merge "Clean up CachedBluetoothDevice" 2018-09-25 19:00:24 +00:00
TreeHugger Robot
d142f36457 Merge "Set KV MORE_DEBUG to false and add tests" 2018-09-25 18:52:18 +00:00
Seigo Nonaka
47e79a1626 Merge "Move hasEqualAttribute from Paint with adding some accessors" 2018-09-25 18:34:26 +00:00
TreeHugger Robot
7a96ec0e0a Merge "Added logs to investigate missing home button" 2018-09-25 17:51:43 +00:00
Howard Ro
688ae18578 Add notification atom to atoms.proto
Bug: 114235428
Test: Adding an atom doesn't break Android!
Change-Id: Ia1423a635d979d52cfd6eaf728283d881c40a30a
2018-09-25 10:36:55 -07:00
Lucas Dupin
b16030f305 Merge "Clear pattern message when showing it again" 2018-09-25 16:19:27 +00:00
Lucas Dupin
828478dac0 Merge "Revert onSurfaceRedrawNeeded behavior" 2018-09-25 16:11:42 +00:00
Lucas Dupin
7dfd6cee39 Merge "Do not pulse when there's not text to show" 2018-09-25 16:11:22 +00:00
Mihai Popa
8b3002e769 Merge "[Magnifier-62] Deprecate constructor" 2018-09-25 16:05:17 +00:00
Zhi An Ng
0bfb00fc93 Merge "Enable checkstyle repo upload hook for tests" 2018-09-25 16:05:01 +00:00
TreeHugger Robot
deaeae425d Merge "Checks keyguard earlier when blocking notifications." 2018-09-25 15:40:26 +00:00
Makoto Onuki
8a12650f10 [automerger skipped] Merge "Truncate(*1) it if WAL file is too big when opening DB" into pi-dev am: 0f88f865bd
am: dd5e4bac40  -s ours

Change-Id: I2539ea29663ef1f4344fa7bd1f6d8d689390ffdf
2018-09-25 08:39:46 -07:00
Makoto Onuki
dd5e4bac40 Merge "Truncate(*1) it if WAL file is too big when opening DB" into pi-dev
am: 0f88f865bd

Change-Id: Ie14cea16f9cf89793a499a1b7c491ebc2f8a8829
2018-09-25 08:27:48 -07:00
Julia Reynolds
38f1ac1aeb Merge "Fix NullPointerException in ZenModeHelper" 2018-09-25 15:27:03 +00:00
TreeHugger Robot
48f2fad424 Merge "Recycle PooledLambda in CameraDeviceImpl.CameraDeviceCallbacks" 2018-09-25 15:17:40 +00:00
Makoto Onuki
0f88f865bd Merge "Truncate(*1) it if WAL file is too big when opening DB" into pi-dev 2018-09-25 15:12:15 +00:00
TreeHugger Robot
d79170be26 Merge "Remove updatePublicMode from StatusBar.java" 2018-09-25 14:48:29 +00:00
Greg Daniel
e36375ecf1 Merge "Implemenet fenceWait and createReleaseFence in VulkanManager." 2018-09-25 13:16:08 +00:00
Alan Stokes
e3be8c5647 Merge "Reduce visibility on PackageDexUsage methods." am: d7fe73d3b3 am: 7d86fc293b
am: ed5362ac73

Change-Id: I2296118d830391fd9d9af5cdad99afae4f7aa43f
2018-09-25 05:40:50 -07:00
Alan Stokes
00f4471a3c Merge "Fix minSdkVersion for test." am: 08b2412696 am: a463709641
am: 6321b4014a

Change-Id: I82b8d2e5d5246cf41806e0530db67cd779ed9b37
2018-09-25 05:34:23 -07:00
Alan Stokes
ed5362ac73 Merge "Reduce visibility on PackageDexUsage methods." am: d7fe73d3b3
am: 7d86fc293b

Change-Id: I88b61c01bc584a69dd248595e27e872cc9480fd3
2018-09-25 05:26:03 -07:00
Alan Stokes
6321b4014a Merge "Fix minSdkVersion for test." am: 08b2412696
am: a463709641

Change-Id: I759bd2508e52906284e4ad8b7d49796975bcece5
2018-09-25 05:21:02 -07:00
Alan Stokes
7d86fc293b Merge "Reduce visibility on PackageDexUsage methods."
am: d7fe73d3b3

Change-Id: If0eb85a1f78eb8aa0117eb1a9573069b60ae0e9a
2018-09-25 05:14:26 -07:00
Alan Stokes
a463709641 Merge "Fix minSdkVersion for test."
am: 08b2412696

Change-Id: I70c1071b9cae6c4c3f9ac7b76ef488e38155836f
2018-09-25 05:07:48 -07:00
Treehugger Robot
d7fe73d3b3 Merge "Reduce visibility on PackageDexUsage methods." 2018-09-25 11:55:51 +00:00
TreeHugger Robot
3bea414ae6 Merge "Cleanup: make ProcessMemoryState fields final, reformat imports of ActivityMetricsLogger" 2018-09-25 11:41:39 +00:00
Treehugger Robot
08b2412696 Merge "Fix minSdkVersion for test." 2018-09-25 11:37:23 +00:00
Mihai Popa
b6ca909ed7 [Magnifier-62] Deprecate constructor
The CL deprecates the old constructor for Magnifier instances in favor
of the usage of builder Magnifier#Builder.

Bug: 116116502
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I3daa9f066c77144e9d5c62bc666ecd37041f4bbb
2018-09-25 11:35:52 +01:00
Adam Vartanian
86b381be69 Merge "Inline two short methods from Conscrypt" am: 9da9b33cc2 am: 91d61ea0ed
am: 8879ee4a78

Change-Id: Iffbb91414c16b055fc3358e83fb5c23ef4998816
2018-09-25 02:33:46 -07:00
Alan Stokes
eb1b41f8e1 Fix minSdkVersion for test.
P is 28 not 27, and the test requires P.

Test: atest DexLoggerIntegrationTests
Change-Id: Ib83ec92bf5d7e791bac90331b5dcc3c4b826a4fd
2018-09-25 10:28:52 +01:00
Adam Vartanian
8879ee4a78 Merge "Inline two short methods from Conscrypt" am: 9da9b33cc2
am: 91d61ea0ed

Change-Id: I541ff04bd67780e8920d802a7935c97e0adb535b
2018-09-25 02:20:26 -07:00
Rafal Slawik
5c1263e1b3 Cleanup: make ProcessMemoryState fields final, reformat imports of ActivityMetricsLogger
Test: cleanup CL, existing tests pass
Change-Id: I6307ddf6d18530c908a5f92f9bc497f6f8b00e19
2018-09-25 09:09:54 +00:00
Adam Vartanian
91d61ea0ed Merge "Inline two short methods from Conscrypt"
am: 9da9b33cc2

Change-Id: I4c66064ec1a0569f7766282d6dbee5202906ae00
2018-09-25 02:04:57 -07:00
Alan Stokes
58aea515af Reduce visibility on PackageDexUsage methods.
Not a big win, but it makes it clearer that the data is never directly
changed by PackageManager etc.  (We could extract the two nested
classes and then PackageDexUsage wouldn't need to be public at all.)

Test: Still builds.
Test: atest services/tests/servicestests/src/com/android/server/pm/dex

Change-Id: I0a5c0bff473a03178f730e354a2f60694729ba10
2018-09-25 10:04:07 +01:00
Adam Vartanian
9da9b33cc2 Merge "Inline two short methods from Conscrypt" 2018-09-25 08:43:59 +00:00
Nan Zhang
c070f7588b Merge "Add comments for offline-sdk-referenceonly docs" am: 2be3da34e7 am: a9fec7e73b
am: 2abeaddf26

Change-Id: I16e1ff435686b419d611ffeda8e3125eef567a3f
2018-09-24 21:58:27 -07:00
Nan Zhang
2abeaddf26 Merge "Add comments for offline-sdk-referenceonly docs" am: 2be3da34e7
am: a9fec7e73b

Change-Id: Iaffef1c043350533a81d44e99b63565c0c51e7a2
2018-09-24 21:43:56 -07:00
Nan Zhang
a9fec7e73b Merge "Add comments for offline-sdk-referenceonly docs"
am: 2be3da34e7

Change-Id: I0ea5c7d3e1dcba1a1d94eb74130dd2a785a161a3
2018-09-24 21:14:50 -07:00
Yuzhou Jia
5d41bd2973 Merge "Add SHOW_SOURCE_NOTIFICATION to indicate that the interaction service was invoked by a notification." 2018-09-25 03:30:04 +00:00
Nan Zhang
2be3da34e7 Merge "Add comments for offline-sdk-referenceonly docs" 2018-09-25 03:03:52 +00:00