Commit Graph

86616 Commits

Author SHA1 Message Date
Yohei Yukawa
f682b1a5c4 Factor out InputMethodManager#forContext()
This CL aims to factor out InputMethodManager#forContext() and its
related methods.  This is still a mechanical refactoring hence there
should be no behavior change.

Bug: 115893206
Bug: 117594679
Bug: 118335706
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: I457745e18bfbd3e2787c5b438eee962a1928326e
2018-10-24 16:05:02 -07:00
Eugene Susla
c63d1cc434 Merge "Temporary fix for sms cts regression" 2018-10-24 17:06:29 +00:00
Olivier Gaillard
35ab42f7a4 Merge "Add WorkSource support to Binder.java." 2018-10-24 07:37:57 +00:00
Rhed Jao
1585cd7d00 Merge "Fixed NPE in TouchDelegateInfo." 2018-10-24 06:36:40 +00:00
Michael Dooley
0bf1666c51 Merge changes from topic "getmodelstate-redo"
* changes:
  Rolling forward with indentation fix.
  Revert "Revert "Adding getModelState API to sound trigger""
2018-10-24 06:04:42 +00:00
TreeHugger Robot
f6f95875b6 Merge "Fixes typo in Intent extra names" 2018-10-24 01:31:23 +00:00
Arthur Ishiguro
bdce57c880 Fixes typo in Intent extra names
Bug: 117612105
Test: None
Change-Id: I9b31d7d504635cc3eb3f880c925ad1aaf30becf7
2018-10-23 15:51:19 -07:00
John Reck
8884cfc13e Merge "Rename & package shuffle" 2018-10-23 20:02:00 +00:00
Kweku Adams
9b882d88ee Merge "Ability to enter deep Doze immediately in Battery saver." 2018-10-23 17:35:26 +00:00
Kweku Adams
b396ccf969 Ability to enter deep Doze immediately in Battery saver.
This is disabled by default and leaves time (1 min) for processes to
finish running only if there are processes currently running, otherwise,
it goes into deep doze immediately.

Bug: 79955941
Bug: 109934270
Test: Turn on Battery Saver, enable quick doze feature, turn off screen
also run `atest BatterySaverPolicyTest`
also run `atest com.android.server.DeviceIdleControllerTest`
Change-Id: Iec0c8436134e18debfa4c71a8322a6c9cdb10846
2018-10-23 10:32:54 -07:00
Joel Galenson
095513c4d9 Merge "Add a new Intent for seeing permission usages" 2018-10-23 16:35:47 +00:00
TreeHugger Robot
2bce95a385 Merge "Remove IInputMethodSession#finishInput(), which is called nowhere" 2018-10-23 16:34:12 +00:00
Olivier Gaillard
e4ff397f08 Add WorkSource support to Binder.java.
Test: unit test
Change-Id: I6f3507b51a89c35943cc34299d7e364aab337e98
2018-10-23 14:27:34 +01:00
Michael Dooley
291751e510 Revert "Revert "Adding getModelState API to sound trigger""
This reverts commit 81f71f1c27.

Reason for revert: rolling forward with fix

Change-Id: Ifc0c53581ac567cb968d91993f453220f8253aec
2018-10-23 07:44:51 +02:00
Rhed Jao
3a0a6ee1ff Fixed NPE in TouchDelegateInfo.
TouchDelegate allows nullable bounds of delegated view. We provide
a default bounds to create TouchDelegateInfo if it's null.

Bug: 117951101
Test: atest atest AccessibilityEndToEndTest
Change-Id: I914a44520edf159bba37af0b0eb00ab97c00b177
2018-10-23 11:05:03 +08:00
Weien Wang
0b8b0ef691 Merge "Add new WallpaperInfo attr settingsSliceUri." 2018-10-23 03:02:21 +00:00
Eugene Susla
eded0cc3a9 Temporary fix for sms cts regression
This partially reverts the change that is suspected to be the cause of
b/117885969

This is to be reverted once the real cause is established.
Posting a temporary fix to unbreak the CTS test while figuring it out.

Fixes: 117885969
Test: atest CtsProviderTestCases:android.provider.cts.SmsBackupRestoreTest#testSmsBackupRestore
Change-Id: I7fd0b954d334501b050e9930643de4f6e41e229e
2018-10-22 18:48:46 -07:00
Garfield Tan
73013990cb Merge "Persist user rotations of external displays." 2018-10-22 23:46:56 +00:00
Yohei Yukawa
530dd76fde Remove IInputMethodSession#finishInput(), which is called nowhere
Currently IInputMethodSession#finishInput() is called nowhere.

Let's remove this IPC method exposed from InputMethodService to IME
client for now until we fully understand what is the right approach on
how and when InputMethodService#finishInput() should be called.

Note that we cannot simply remove InputMethodSession#finishInput()
because it is already published as a public API.  In Bug 9216494
hopefully we can also discuss whether InputMethodSession#finishInput()
should be deprecated or can be reused for some actual use cases.

Bug: 9216494
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I9e378111c9df40cb6821583d1e6ae8f9fe38f2b1
2018-10-22 15:05:47 -07:00
Sudheer Shanka
23bab6c766 Merge "Add instrumentation flag to get access to full exteranl storage." 2018-10-22 21:43:29 +00:00
Qingqing Deng
b3e9481f78 Merge "Disable double cursor for BiDi in Layout." 2018-10-22 20:24:52 +00:00
Seigo Nonaka
04aad28f16 Merge "Introduce FontStyle for future extensibility" 2018-10-22 19:29:45 +00:00
Julia Reynolds
48a6ed99f8 Additional functionality for the noti asst
- Allow apps to learn if users chose the importance of a given
channel
- Allow the asst to query channels and channel groups of installed
apps

Change-Id: Ic65dfdc79d5135940c1debb101b849b5837d78b5
Fixes: 118140597
Test: runtest systemui-notification
2018-10-22 12:52:03 -04:00
Andrey Kulikov
23253f72da Merge "Remove transition listener in MultiListener and FragmentTransition" 2018-10-22 11:24:30 +00:00
TreeHugger Robot
f7517f153d Merge changes Iafce68b6,I3b96a351,Ic2476c3d,I0cc2588c,I83f4795e, ...
* changes:
  Remove redundant prefix from UnbindReason
  Extract UnbindReason from InputMethodClient
  Remove redundant prefix from StartInputReason
  Extract StartInputReason from InputMethodClient
  Move some methods from InputMethodClient to InputMethodDebug
  Enable @UnbindReason annotation in IMMS
  Enable @StartInputReason annotation in IMMS
  Enable @SoftInputModeFlags annotation in IMMS
  Enable @MissingMethodFlags annotation in IMMS
2018-10-22 10:50:10 +00:00
Andrey Kulikov
b80db0b799 Remove transition listener in MultiListener and FragmentTransition
Found two places where we forgot to remove TransitionListener in onTransitionEnd. I think it is important to clear it as if you reuse a transition object it will be leaked together with some views

Test: n/a
Bug: 64643817
Fixes in AndroidX: aosp/793641, aosp/795753

Change-Id: Iae0a9945a4158776f1a75c806c1f29efc049f96b
2018-10-22 10:11:28 +00:00
TreeHugger Robot
b3b140770e Merge "Update unknown sources restriction API documentation to clarify device-widedness." 2018-10-22 08:58:46 +00:00
Weien Wang
4710c04e1f Add new WallpaperInfo attr settingsSliceUri.
Add settingsSliceUri attribute for supporting live wallpaper inline-
control, public for AOSP live wallpaper to use.

Bug: 117200693
Test: atest tests/Internal/src/android/app/WallpaperInfoTest.java

Change-Id: Iffe9fbd9f49daf8a63d5745f91532de13b7288e3
2018-10-22 14:16:55 +08:00
Yohei Yukawa
499e3f764e Extract UnbindReason from InputMethodClient
This is another step to split InputMethodClient into multiple classes.

With this CL, InputMethodClient is completely removed.

This is a mechanical refactoring. There should be no user-visible
behavior change.

Bug: 118040692
Test: prebuilts/checkstyle/checkstyle.py -f \
      frameworks/base/core/java/com/android/internal/inputmethod/UnbindReason.java
Change-Id: I3b96a351413025338776f6c87cbaa8cf28c3a44f
2018-10-21 20:15:11 -07:00
Yohei Yukawa
4219422bb3 Remove redundant prefix from StartInputReason
This is another step to split InputMethodClient into multiple classes.

Now that all the integer constants for StartInputReason are defined
inside StartInputReason, "START_INPUT_REASON_" prefix is just
redundant.

This is a mechanical refactoring. There should be no user-visible
behavior change.

Bug: 118040692
Test: prebuilts/checkstyle/checkstyle.py -f \
      frameworks/base/core/java/com/android/internal/inputmethod/StartInputReason.java
Change-Id: Ic2476c3d588211e6c61180cde7df4c6b79039ede
2018-10-21 20:14:40 -07:00
Sudheer Shanka
8f99bff2e4 Add instrumentation flag to get access to full exteranl storage.
When starting a process under instrumentation using this new
"--no-isolated-storage" flag, the process would be able to see the
full external storage.

Bug: 117229024
Test: adb shell am instrument --no-isolated-storage \
      -e class android.media.cts.EncodeDecodeTest#testEncodeDecodeVideoFromBufferToBuffer720p \
      -w android.media.cts/android.test.InstrumentationTestRunner
Change-Id: I7973b123cf4fc08e8ce2b05bd4c23fa41b1cdcdf
2018-10-21 16:30:52 -07:00
Yohei Yukawa
c6632df9e7 Extract StartInputReason from InputMethodClient
This is another step to split InputMethodClient into multiple classes.

With this CL, StartInputReason will be extracted from
InputMethodClient.java into a dedicated file.

This is a mechanical refactoring. There should be no user-visible
behavior change.

Bug: 118040692
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Test: prebuilts/checkstyle/checkstyle.py -f \
      frameworks/base/core/java/com/android/internal/inputmethod/StartInputReason.java
Change-Id: I0cc2588c97239a004720f74cbf356bda4c735d53
2018-10-21 11:47:16 -07:00
Yohei Yukawa
a468d70e5f Move some methods from InputMethodClient to InputMethodDebug
This is the first step to split InputMethodClient into multiple
classes.

With this CL, utility methods to convert integer constants to String
messages will be moved from InputMethodClient to InputMethodDebug,
which I believe is a bit more descriptive class name than
InputMethodClient.

This is a mechanical refactoring. There should be no user-visible
behavior change.

Bug: 118040692
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Test: prebuilts/checkstyle/checkstyle.py -f \
      frameworks/base/core/java/com/android/internal/inputmethod/InputMethodDebug.java
Change-Id: I83f4795e95bc2e8ae325ad6e28d3a42317414e8d
2018-10-21 11:42:34 -07:00
Jeff Sharkey
d2b64d7018 Add ContentProvider.clearCallingIdentity().
ContentProvider has a getCallingPackage() method, which verifies
the remote package name against the current Binder identity.  When a
provider wants to clear that IPC identity, they need to clear both
the Binder state and the ContentProvider.getCallingPackage() state
together, so add methods to facilitate that.

Also fix subtle bug so we don't try translating relative paths.

Bug: 117627072
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ifa3e1f745334abf625fdcc314b308a047c49ce73
2018-10-20 15:14:22 -06:00
qqd
19799c44c4 Disable double cursor for BiDi in Layout.
-- Disabled double cursor for BiDi in Layout.getCursorPath.
-- Add tests in LayoutTest.

Bug: 112875662
Test: Manual (no more double cursors, bidi editing feels OK)
Test: bit FrameworksCoreTests:android.text.LayoutTest
Change-Id: I3d201734d12f59724fa627b06ba9ca8c307c27fb
2018-10-19 19:09:22 -07:00
TreeHugger Robot
f4cdeaa057 Merge "Have some shell start activity commands go thorugh AMS instead of ATMS (28/n)" 2018-10-20 01:20:08 +00:00
Arthur Ishiguro
b71f25e52e Merge "Clarifies requirements of registerIntent API" 2018-10-20 01:03:05 +00:00
Irina Dumitrescu
0501eeec33 Update unknown sources restriction API documentation to clarify device-widedness.
Test: none.
Bug: 117831202
Change-Id: I2106bb25ce32ade89abb909e0332f1b6d7f1eb58
2018-10-19 23:52:42 +01:00
Wale Ogunwale
6805a5a511 Merge changes Ia435aa81,If36c7d9c,I09311d30
* changes:
  Stopped starting and killing processes directly from ATMS (27/n)
  Removed direct calls to AMS.broadcastIntentLocked from ATMS (26/n)
  Removed references to ProcessRecord in ActivityStackSupervisor (25/n)
2018-10-19 22:45:59 +00:00
Seigo Nonaka
9958c4ab21 Introduce FontStyle for future extensibility
This is a ground work for b/114479228
FontStyle is an argument of the font itemization. Currently Android
system uses weight and italic info for itemizing but maybe we will
use width and oblique style in future.
To be extensible in future, introduce FontStyle.

This CL includes:
- new class FontStyle which holds width and italic at this moment. In
  future, we may add width and oblique. (or grdual italic slant)
- Font class still returns weight/slant since they need to be immutable.
- Moved font weight constants from Font to FontStyle

Bug: 114479228
Test: atest CtsGraphicsTestCases
Change-Id: I0ba717fbf9f90ee6f760c1a0f6eda17b4bef6f43
2018-10-19 14:51:59 -07:00
TreeHugger Robot
112392d9d3 Merge "WebView: fix mistaken wording in API doc" 2018-10-19 21:24:07 +00:00
Arthur Ishiguro
d2dc0fef0c Clarifies requirements of registerIntent API
- Clarifies that only one PendingIntent can be registered to a client
  at a time, since otherwise it can't be regenerated meaningfully.
- Also adds that a ContextHubInfo object is provided in Intent events
  to regenerate the client.

Bug: 117612105
Test: None
Change-Id: Ia2b1cc9bc01d10b092598374c0d82e4fa1b45079
2018-10-19 13:53:57 -07:00
Haoyu Zhang
0a04650e51 Merge "Add textLocale attributes to TextView and TextAppearanceSpan" 2018-10-19 20:30:02 +00:00
Jovana Knezevic
6194930dae Merge "Makes bluetooth profile services bind to current (foreground) user." 2018-10-19 19:47:15 +00:00
Michael Groover
3ce26d00f7 Merge "Require READ_PHONE_STATE for DO/PO dev ID access" 2018-10-19 19:15:01 +00:00
Rakesh Iyer
320deb7982 Merge "Remove extra call to dispatchStart()." 2018-10-19 18:50:04 +00:00
Joel Galenson
13096ea738 Add a new Intent for seeing permission usages
This intent is used by the Permissions Hub.

We also give PermissionController the GET_APP_OPS_STATS permission.

Bug: 63532550
Test: Used the Permissions Hub.
Change-Id: If1254f67c12fc5052d6ad5ff8260778a7c59dccc
2018-10-19 10:56:21 -07:00
Junyu Lai
555917c3b0 Merge "Add new callback to inform blocking of network on specific uid." am: f709e754ab am: 745952eac8
am: 70626e3b94

Change-Id: I2bec503c5ffac156b679a48c09591458ab716789
2018-10-19 09:47:40 -07:00
Junyu Lai
70626e3b94 Merge "Add new callback to inform blocking of network on specific uid." am: f709e754ab
am: 745952eac8

Change-Id: I24b45f860992626968a6adfb0ff6b6389c85cf45
2018-10-19 09:26:39 -07:00
Junyu Lai
745952eac8 Merge "Add new callback to inform blocking of network on specific uid."
am: f709e754ab

Change-Id: Ia99ee2fbefa67a7ee00d6fecce430ba6431945cd
2018-10-19 09:14:23 -07:00