Commit Graph

85863 Commits

Author SHA1 Message Date
Jeff Sharkey
70eb34a23c Provide paths of interest to vendors.
Also update docs on path translation APIs, which are now no-ops.

Bug: 112159421
Test: none
Change-Id: I0912a6adb233b39f61728642fcefb83a74fa6662
2018-09-13 12:04:38 -06:00
Jeff Sharkey
8068dfe6be Merge "Utilities for content:// Uris and file modes." 2018-09-13 15:20:59 +00:00
kopriva
2c23a6b58d docs: fixed typo am: 9b5c03973e
am: 05f984a1a8

Change-Id: I8b70d412c1d422be5cbc8e041acc3fe340617181
2018-09-13 02:41:16 -07:00
kopriva
05f984a1a8 docs: fixed typo
am: 9b5c03973e

Change-Id: I8873ab4139dd3c073584a0ffaf67611c11dea084
2018-09-13 02:31:56 -07:00
TreeHugger Robot
071f28ded1 Merge "Revert the mandatory backups feature." 2018-09-13 08:45:35 +00:00
TreeHugger Robot
7a21a3128d Merge "Support IME Window to show in secondary display." 2018-09-13 07:54:47 +00:00
Jackal Guo
f6493516eb Merge "Accessibility actions should trigger ACTION_OUTSIDE" 2018-09-13 05:09:49 +00:00
lumark
90120a8b5b Support IME Window to show in secondary display.
1) Moving WMS.setInputMethodWindowLocked to DisplayContent,
   each display can have its own IME window.
2) Add getDisplayIdFromWindow in WindowManagerInternal,
   used for InputMethodManagerService to know which display
   for given IME window token.
3) Support add / remove IME window according displayId.
4) Modify WMS.inputMethodClientHasFocus to traverse all active display
   if inputMethodClient focused.
5) Add displayId parameter for IInputMethod.initializeInternal to
   update context display then client can addView to right display.

Note: 1) There should be zero behavior difference as long as the target
         app is running on the default display.
      2) The current implementation is not final and there are still
         chances that the current IME may not work well or even crash
	 depending on how the IME is implemented.

Bug: 111364446
Test: manual, use ActivityView & launch Messages in VirtualDisplay,
      tap search icon to see if soft input keyboard shown &
      app window size is adjusted by soft input.
Change-Id: I8da315936caebdc8b2c16cff4e24192c06743251
2018-09-13 12:52:40 +08:00
Ian Lake
02c6e8692f Merge "Annotate ComponentCallbacks with nullability annotations" 2018-09-13 04:48:51 +00:00
TreeHugger Robot
6910e14072 Merge "Check Bundle length is aligned by 4 when readFromParcel." 2018-09-13 02:19:39 +00:00
Michael Wachenschwanz
3f6039393e Merge "Intial ProtoInputStream checkin" 2018-09-13 02:02:19 +00:00
TreeHugger Robot
41a58b5c30 Merge "Annotate LayoutInflater.Factory2 with nullability annotations" 2018-09-13 01:57:56 +00:00
Michael Wachenschwanz
8d38b29ba7 Intial ProtoInputStream checkin
Enable proto reading on the Android Framework with a memory efficient
pull parser.

Fixes: 112269636
Test: atest CtsProtoTestCases
Change-Id: If8331edb1ec393acd724ffb5d27d6efad1a42a80
2018-09-12 18:54:19 -07:00
Rhed Jao
f78014e7be Merge "Adding a11y ui minimum timeout api." 2018-09-13 01:44:13 +00:00
TreeHugger Robot
a6e13104ac Merge "Remove battery app list feature flag" 2018-09-12 23:26:20 +00:00
Yohei Yukawa
0561f2c570 Merge "Restrict IMM.notifyUserAction() with targetSdkVersion <= P" am: ec52757ecb
am: 81be3fdc66

Change-Id: Ied8670c7902c047ba523094e8374f9f8ad750621
2018-09-12 15:28:06 -07:00
Ian Lake
666a965fd5 Annotate ComponentCallbacks with nullability annotations
BUG: 78245676
Test: make
Change-Id: Idd88ecbfc97672f3a234641c8892c245b4fe130a
2018-09-12 15:13:19 -07:00
Yohei Yukawa
81be3fdc66 Merge "Restrict IMM.notifyUserAction() with targetSdkVersion <= P"
am: ec52757ecb

Change-Id: Ia35a97362a467b452abf8649d3ac30b61a410560
2018-09-12 14:39:44 -07:00
TreeHugger Robot
94da778113 Merge "Simplify WebView RELRO creation and handle more cases." 2018-09-12 21:36:36 +00:00
Ian Lake
0c807f4a03 Annotate LayoutInflater.Factory2 with nullability annotations
Also add the annotations to the most common implementation
of Factory2 - Activity.

BUG: 78245676
Test: make
Change-Id: I49f1cf57be240525916a624f215fdff4701f32a5
2018-09-12 14:18:36 -07:00
Hui Yu
fc451f44dc Check Bundle length is aligned by 4 when readFromParcel.
Otherwise throw an IllegalStateException.
Fix: 26885514
Test: Make the bundle length not aligned by 4 and observe the IllegalStateException.

Change-Id: I57f0d5babdf1b8f1074eb2f4f76b71926db8b93c
2018-09-12 14:16:54 -07:00
Tobias Thierer
a34c67eb09 Merge "Fix typo in android.net.Uri documentation." am: 8dc7e43bad am: 47fb98e8a4
am: 1943c462cf

Change-Id: I17d9bd0dc0ab2b4129aefc21f649da5990831067
2018-09-12 14:04:15 -07:00
TreeHugger Robot
3f2333b050 Merge "Revert "Prepare to make InputMethodUtils package-private"" 2018-09-12 20:42:45 +00:00
Tobias Thierer
1943c462cf Merge "Fix typo in android.net.Uri documentation." am: 8dc7e43bad
am: 47fb98e8a4

Change-Id: Ia63097f8ea8c66b0451e69469768b1e04e6d5eee
2018-09-12 13:14:21 -07:00
jackqdyulei
5caf811f99 Remove battery app list feature flag
It is not used anymore

Bug: 115542275
Test: Build
Change-Id: I91be9c4179e6ddf9f6613ec05d9eeb1fc458b536
2018-09-12 12:59:17 -07:00
Treehugger Robot
ec52757ecb Merge "Restrict IMM.notifyUserAction() with targetSdkVersion <= P" 2018-09-12 19:04:40 +00:00
Jeff Sharkey
63280e06fc Utilities for content:// Uris and file modes.
Bug: 111268862, 111960973
Test: atest cts/tests/tests/content/src/android/content/cts/ContentUrisTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileUtilsTest.java
Change-Id: I94373055468d279e6553d4a038267732b9b53745
2018-09-12 12:35:52 -06:00
Tobias Thierer
47fb98e8a4 Merge "Fix typo in android.net.Uri documentation."
am: 8dc7e43bad

Change-Id: Ibd56f995c4692db449ca3210da7cb5d6bcb5c5d3
2018-09-12 11:34:31 -07:00
Yohei Yukawa
24d8f6d0ff Revert "Prepare to make InputMethodUtils package-private"
This reverts commit 16703c4b47.

Reason for revert:
Just realized that this was not the best approach.

We could already make LocaleUtils package-private too before this CL.
So the right approach was moving these methods to new Java class(es)
instead of moving these methods to LocaleUtils.

Bug: 77730201
Bug: 114660660
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:com.android.internal.inputmethod
Change-Id: I29c87b9692f0f5e8255835579e2fb5270bc6c9c3
2018-09-12 17:26:55 +00:00
Treehugger Robot
8dc7e43bad Merge "Fix typo in android.net.Uri documentation." 2018-09-12 15:33:36 +00:00
TreeHugger Robot
fce28b5110 Merge "Camera: Fix documentation typo" 2018-09-12 14:15:12 +00:00
Kenny Guy
fb59cfa0ca Merge "Remove 0 param BrightnessConfiguration.Builder constructor" 2018-09-12 13:25:37 +00:00
Haoyu Zhang
0ed64376e4 Merge "Add Missing fontVariationSetting attr Javadoc" 2018-09-12 12:13:17 +00:00
Haoyu Zhang
aff7bd76ec Add Missing fontVariationSetting attr Javadoc
Bug: 79477441
Test: m offline-sdk-docs
Change-Id: I6d40f6f176674e0b08434e997c4c4a0b66fe6f78
2018-09-12 12:13:04 +00:00
Lenka Trochtova
3b6e08772e Revert the mandatory backups feature.
Bug: 79736299
Test: make RunFrameworksServicesRoboTests
Test: cts-tradefed run cts -m CtsBackupHostTestCase

Change-Id: I1209174c9f6aa794c7ca67f4a8737c0589d5fd69
2018-09-12 13:39:05 +02:00
Emilian Peev
2b85bca571 Camera: Fix documentation typo
Bug: 115299127
Test: make docs
Change-Id: I493f96f94df04c141f1118fdd851574ad2f3b419
2018-09-12 09:37:46 +01:00
Rhed Jao
e972881f59 Adding a11y ui minimum timeout api.
Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I706d05f9b4a9e2daec06243493989b442be107db
2018-09-12 09:56:58 +08:00
Mike Ma
43908f112b Merge "Avoiding potential NPE when dumping to proto." am: a52b601ef3
am: 8964390dd3

Change-Id: Ie9dc401990b4267b9bcf0469a3526db93dc438d2
2018-09-11 18:47:58 -07:00
Mike Ma
8964390dd3 Merge "Avoiding potential NPE when dumping to proto."
am: a52b601ef3

Change-Id: I9d5e520654877e6a46ea19ad3eddd3a901e58699
2018-09-11 18:26:45 -07:00
TreeHugger Robot
b526650985 Merge "Move InputMethodManagerService to com.android.server.inputmethod" 2018-09-12 01:19:44 +00:00
Xin Wei Chow
fb86f86e7e Merge "Fix typo - 'singed' to 'signed'" 2018-09-12 01:16:15 +00:00
TreeHugger Robot
4dc4c3ae6f Merge "Improved logging on CharSequenceTransformation." 2018-09-11 22:58:08 +00:00
Yohei Yukawa
603f4d00c6 Move InputMethodManagerService to com.android.server.inputmethod
This CL moves InputMethodManagerService (IMMS)
  from com.android.server
    to com.android.server.inputmethod
so that we can mechanically factor out inner classes from IMMS to
separate package private classes.

This is purely a mechanical refactoring of an implementation detail.
There should be no observable behavior difference.

Fix: 114660660
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:com.android.internal.inputmethod
Change-Id: I023d8f2863601ee54f304988117d8ea750770f70
2018-09-11 15:04:58 -07:00
Felipe Leme
e3427ee4c7 Merge "Revert "Use session id to uniquely identidy autofill ids for multi-session."" 2018-09-11 21:20:12 +00:00
TreeHugger Robot
5789fa6b73 Merge "Prepare to make InputMethodUtils package-private" 2018-09-11 21:19:48 +00:00
TreeHugger Robot
48c882b485 Merge "Move notifyUserAction() to IInputMethodPrivilegedOperations" 2018-09-11 21:11:41 +00:00
TreeHugger Robot
47c69efe8b Merge "Obfuscate account name in account manager logs and dumpsys." 2018-09-11 21:02:28 +00:00
Yohei Yukawa
5b83a80aab Restrict IMM.notifyUserAction() with targetSdkVersion <= P
With my change [1] in Android N, applications no longer need to
manually call this hidden API even when directly implementing
InputConnection interface without extending BaseInputConnection [2].

So far applications that we have confirmed to be using this hidden API
is Chromium and browsers that are supposed to be built on top of
Chromium source code [3].  Actually my change [1] was per request from
Chromium team and Chromium does not use this hidden API on Android N
and later devices [4].

Moving forward, with this CL applications that target API 29 and later
are no longer allowed to use this hidden API since we see no actual
use case of this hidden API on Android N and later devices so far.

If you have any reason to continue relying on this hidden API, please
leave a comment in Bug 114740982.

 [1]: I571d6cc9c6e461d8994aa7496e7e18be13766411
      159dd47db3
 [2]: This scenario had not been suppored until Android N.
      See also other CLs that are tagged with Bug 24688781.
 [3]: https://cs.chromium.org/chromium/src/content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapperImpl.java?rcl=525c72b0f4694d6b3f93bcc7797d0411c2fa683c&l=113-128
 [4]: crbug.com/551193

Bug: 114159783
Bug: 114740982
Test: compile
Merged-In: I41d6419438cef92cce81cc33d9db00dd2ee89d33
Change-Id: Iac81f49413605271fccc0b8aec3e6ed95925f061
2018-09-11 13:34:36 -07:00
TreeHugger Robot
7718258448 Merge "Restrict IMM.notifyUserAction() with targetSdkVersion <= P" 2018-09-11 20:26:39 +00:00
Sudheer Shanka
61585a8094 Merge "Add javadoc for package-name arg passed during the process start." 2018-09-11 19:53:06 +00:00