Commit Graph

94668 Commits

Author SHA1 Message Date
Yuzhou Jia
35339498ef Merge "Make Changes to VoiceInteraction API for supporting System checking an assistant voice action availability on AAE." 2018-09-20 01:02:44 +00:00
TreeHugger Robot
b6ffc07e06 Merge "Remove the dependency on IInputMethodClient from IME focus check" 2018-09-20 00:19:35 +00:00
Makoto Onuki
04f7af70f3 Merge "AMS.removeContentProviderExternal() should take a user-id" 2018-09-19 23:11:31 +00:00
TreeHugger Robot
87a97a47eb Merge "Update Context documentation to indicate that KEYGUARD_SERVICE is unavailable for Instant Apps." 2018-09-19 23:06:33 +00:00
Haoyu Zhang
6367c2e62e Merge "Fixed lineBackgroundSpan not called for first line" 2018-09-19 22:21:24 +00:00
Donald Chai
ee4c91c6a6 Update Context documentation to indicate that KEYGUARD_SERVICE is
unavailable for Instant Apps.

Bug: 116021320
Bug: 67614964
Test: N/A
Change-Id: I94275ad51aec13acfe15ede3a5fb9a80aa57d977
2018-09-19 14:47:09 -07:00
TreeHugger Robot
f9d779d51d Merge "Allow apps to write to the clipboard without input focus" 2018-09-19 21:35:17 +00:00
Yohei Yukawa
41f89c3bcc Remove the dependency on IInputMethodClient from IME focus check
This is a preparation to remove the dependency on IInputMethodClient
from WindowManagerService.

What inputMethodClientHasFocus(IInputMethodClient) is currently doing
is basically equivalent to comparing PID (and UID), because
InputMethodManager is a per-process instance and comparing two
IInputMethodClient Binder proxies is no more or less than comparing
PID (and UID pair).  We can just change its method signature to
achieve the same behavior by taking a PID/UID pair instead of taking
IInputMethodClient.

Note that we can later add display ID to this method to support
multi-display scenario.

This CL also renames inputMethodClientHasFocus() to
isInputMethodClientFocus() for better consistency with other methods.

There should be no observable behavior difference in this CL anyway.

Bug: 115993358
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I444077b1e4af4033f67ab72c181fac85b601e08a
2018-09-19 14:30:04 -07:00
Seigo Nonaka
16cd61459c Merge "Unhide getTextRunCursor APIs" 2018-09-19 20:18:32 +00:00
Philip P. Moltmann
e854a65a78 Merge changes I74745f89,Ia70f966c
* changes:
  Grant permissions to updated system packages
  Revert "Revert "Reduce coupling between DefaultPermissionGrantPolicy and PM""
2018-09-19 20:16:40 +00:00
Philip P. Moltmann
1a771ca6ce Merge "Add documentation to recently added system API" 2018-09-19 19:56:59 +00:00
Makoto Onuki
679760ae66 AMS.removeContentProviderExternal() should take a user-id
Change-Id: Id0868d5dc5d20c0ad63323100acbd13f450a28fc
Fixed: 116114675
Test: boot
2018-09-19 12:49:17 -07:00
Felipe Leme
c8c4fea61f Merge "Log when the autofill service fails a callback." 2018-09-19 17:49:09 +00:00
Felipe Leme
3ebb359229 Log when the autofill service fails a callback.
Bug: 112417431
Bug: 116103297

Test: manual verification
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything

Change-Id: I2af70a3e4685693d32bab2814f60fdeb9c8b5159
2018-09-19 17:48:53 +00:00
TreeHugger Robot
f22e05e5e5 Merge "use custom Parcel format to pull data" 2018-09-19 17:45:11 +00:00
jiayuzhou
21a353b701 Make Changes to VoiceInteraction API for supporting System checking
an assistant voice action availability on AAE.

Test: build and test on AAE.
Bug: 110587280

Change-Id: If37036e0dbe021fee9c95caf7e450330ca24ae32
2018-09-19 10:21:59 -07:00
TreeHugger Robot
bd5fed399f Merge "Let InputMethodPrivilegedOperationsRegistry deal with its singleton-ness" 2018-09-19 16:48:54 +00:00
Philip P. Moltmann
6af221c01b Add documentation to recently added system API
Test: Built
Change-Id: I014cc1e1088e409abb33d61c8d69d51e6a1e7045
2018-09-19 15:42:59 +00:00
Julia Reynolds
63048fd8c5 Merge "Reduce errors for managed services" 2018-09-19 14:13:50 +00:00
Tony Huang
b3e5edd5ea Merge "Fix ExternalStorageProvider always throw exception when rename" 2018-09-19 02:56:00 +00:00
Philip P. Moltmann
b0be05c5cb Revert "Revert "Reduce coupling between DefaultPermissionGrantPolicy and PM""
This reverts commit fa894222e6.

Reason for revert: Resubmitting in a topic with the fix for the bug that required the revert

Change-Id: Ia70f966c8757f340ceb14f187e9726c12457403a
2018-09-18 19:48:53 -07:00
Philip P. Moltmann
fa894222e6 Revert "Reduce coupling between DefaultPermissionGrantPolicy and PM"
This reverts commit 47e8820816.

Reason for revert: 115854330

Bug: 115854330
Change-Id: I44edb7863daa12352935ffdbed701d4772e93132
2018-09-19 02:30:28 +00:00
Yohei Yukawa
d746a7e893 Let InputMethodPrivilegedOperationsRegistry deal with its singleton-ness
This is a preparation to allow InputMethodManager to have per-display
instances rather than the current per-process singleton instance.

When I introduced InputMethodPrivilegedOperationsRegistry [1], there
was an assumption that InputMethodManager was a per-process global
singleton object.

Now that we are going to break up that global per-process instance
into multiple per-display instances, having multiple
InputMethodPrivilegedOperationsRegistry instances probably does not
make much sense, because it would likely to increases the risk of
compability issues in existing IMEs.  Although IME developers soon
really need to use the right Context to obtain the right instance of
InputMethodManager anyway, unnecessarily introducing compatibility
pitfalls that can be avoided in the Framework side is not my
intention.

With this CL, following 9 methods can continue to work no matter
whether InputMethodManager is a per-process singleton or not.
This is fine because those APIs had been mistakenly exposed in
InputMethodManager and already deprecated in favor of newly added ones
in InputMethodService.

 * InputMethodManager.hideSoftInputFromInputMethod
 * InputMethodManager.hideStatusIcon
 * InputMethodManager.setInputMethod
 * InputMethodManager.setInputMethodAndSubtype
 * InputMethodManager.shouldOfferSwitchingToNextInputMethod
 * InputMethodManager.showSoftInputFromInputMethod
 * InputMethodManager.showStatusIcon
 * InputMethodManager.switchToLastInputMethod
 * InputMethodManager.switchToNextInputMethod

 [1]: If762714b2003fa6477e1318110f63e13968c1d7e
      eec552e9e9

Bug: 115893206
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I4a61470f06ffac5f7a512536f8431489db0108f4
2018-09-18 18:55:02 -07:00
Felipe Leme
afcabc35f4 Merge "Minor improvement on new Q API javadocs." 2018-09-19 01:00:53 +00:00
TreeHugger Robot
3427156b2c Merge "More robust read mechanism in KernelCpuProcReader" 2018-09-18 23:54:14 +00:00
TreeHugger Robot
a52c7fc776 Merge "Log when autofill is disabled in a view." 2018-09-18 23:51:49 +00:00
Chenjie Yu
12e5e6755f use custom Parcel format to pull data
When statsd pulls data from StatsCompanionService, the data is put into
log_msg format on java side and expanded into LogEvent on cpp side.
There is a lot of dependency on log_msg and liblog to add new types.
There is pending bug to rewrite thta part of the code in statsd to
completely rid the legacy of logd and liblog. But that may not happen
soon.

Now we can support new storage type.
Also no need to specify number of fields in StatsLogEventWrapper cstr,
which is a source of bug in P.

Bug: 115775035
Test: manual test and cts test
Change-Id: Id1f0b033885da6f3bcebe043968061821db48f35
2018-09-18 16:29:52 -07:00
TreeHugger Robot
e1c0511176 Merge "Remove manager dependency from biometric services" 2018-09-18 23:15:00 +00:00
TreeHugger Robot
173222142f Merge "Always use Context.getSystemService() to get IMM" 2018-09-18 22:25:52 +00:00
Mike Ma
9dcf7e342f More robust read mechanism in KernelCpuProcReader
KernelCpuProcReader used FileChannel to dump bytes into a large enough
ByteBuffer. However, FileChannel#read stops as soon as there is nothing
left to read. Since the kernel may not deliver all parts of a proc file
simultaneously, previous read mechanism would possibly read only a
portion of the proc file. The impact is that KernelUidCpuFreqTimeReader
gets an incomplete UID list.
New mechanism uses a loop to turn non-blocking FileChannel#read into a
blocking operation. It does not return until hitting EOF. The reason
not to use Files#readAllBytes is that we want to reuse the byte[].

Bug: 111805985
Test: atest KernelCpuProcReaderTest
Test: compared KernelCpuProcReader#readBytes against Files#readAllBytes
      locally
Change-Id: If0d2b6742489632e22c8fec34c627851cda875f2
2018-09-18 22:14:26 +00:00
Seigo Nonaka
fa95b83df7 Unhide getTextRunCursor APIs
This API is necessary for identifying the cursor locations.

Bug: 112327179
Test: atest android.graphics.cts.PaintTest
Change-Id: Ief6770bd622a296ae356094fe3ce58e9c4371088
2018-09-18 15:06:19 -07:00
TreeHugger Robot
5ad8521008 Merge "Deprecates WearableExtender methods not supported by Wear SysUI v3." 2018-09-18 21:40:30 +00:00
Stanley Tng
ef31c4a72a Merge "Unhide the LE CoC APIs" am: 0677766615 am: ac723d7d62
am: af4189b8fa

Change-Id: I56f67e9e381c2ebe009405cf32bb78ed0ee50acd
2018-09-18 13:42:51 -07:00
Stanley Tng
af4189b8fa Merge "Unhide the LE CoC APIs" am: 0677766615
am: ac723d7d62

Change-Id: If4fa3a8e6121391dbca78193d79169bc69ab77a7
2018-09-18 13:20:37 -07:00
Stanley Tng
ac723d7d62 Merge "Unhide the LE CoC APIs"
am: 0677766615

Change-Id: I36e4a18570f5a75700814446d0a84063bfcfbc10
2018-09-18 12:52:10 -07:00
Gus Prevas
d73637506d Deprecates WearableExtender methods not supported by Wear SysUI v3.
Test: doc/annotation changes only.
Bug: 116013034
Change-Id: Ida3f05d02c940bac42bbb01aece924524fd33d4b
2018-09-18 15:46:26 -04:00
kopriva
64c4523ed4 Merge "docs: fixed five typos" into pi-dev am: 82b413428e
am: d366837e05

Change-Id: I0cf5630bc936c872ca936f2d3de9e8aaa509f083
2018-09-18 12:10:35 -07:00
kopriva
d366837e05 Merge "docs: fixed five typos" into pi-dev
am: 82b413428e

Change-Id: I4af571d6bcfa151235223b51cb8135fbacb62c82
2018-09-18 12:00:24 -07:00
TreeHugger Robot
82b413428e Merge "docs: fixed five typos" into pi-dev 2018-09-18 18:38:16 +00:00
Treehugger Robot
0677766615 Merge "Unhide the LE CoC APIs" 2018-09-18 18:31:26 +00:00
Julia Reynolds
ca8e535c93 Reduce errors for managed services
Seen in on devices with work profiles.

- Only bind the the current started user(s)
- Wrap applyEnqueuedAdjustmentFromAssistant with a try/catch
since assistant services cannot recover from it on their own.

Additionally, while debugging this rebindServices hurt my brain,
so I've split it up a bit and added comments and tests.

Test: runtest systemui-notification, device restart and log queries
Bug: 113296846
Change-Id: I19b9044ff87712f9ef5401457217156ea9fb9f1f
2018-09-18 13:47:37 -04:00
Haoyu Zhang
60b0983ae8 Fixed lineBackgroundSpan not called for first line
Bug: 1526775
Test: atest StaticLayoutTest LayoutTest

Change-Id: I71e4e5a14e385df6a79cca7cb7c5e2da15ac5cec
2018-09-18 10:46:29 -07:00
Felipe Leme
b9467a1155 Log when autofill is disabled in a view.
Such log helps diagnosing when app developers explicitly disabled autofill.

Bug: none

Test: manual verification

Change-Id: I829b2c583db4b6513ec877dd868b3e8181a0f266
2018-09-18 10:44:26 -07:00
Philip P. Moltmann
08b171d0ff Merge "Allow mainline modules to set private window flags" 2018-09-18 16:46:13 +00:00
Philip P. Moltmann
192e1c6476 Merge changes from topic "SettingsLibRestrictedLockUtils"
* changes:
  Make methods used by PermissionController @SystemApi
  Make restricted lock icon system-api
2018-09-18 15:27:36 +00:00
Rhed Jao
7102a0dfcc Merge "Add text entry key property to a11y info node" 2018-09-18 06:06:31 +00:00
Josh Gao
7b9617dcf2 Merge "Fix typo in IntentFilter documentation." am: ada39fe63d am: 5c775ffdc8
am: 39510ef3d2

Change-Id: I32f695532dbf0549f418e61345818635e9508e5a
2018-09-17 20:20:23 -07:00
Josh Gao
39510ef3d2 Merge "Fix typo in IntentFilter documentation." am: ada39fe63d
am: 5c775ffdc8

Change-Id: Iae760087190441702f01e91115da0c9e52061ff7
2018-09-17 20:11:58 -07:00
Josh Gao
5c775ffdc8 Merge "Fix typo in IntentFilter documentation."
am: ada39fe63d

Change-Id: I9da782211b8a6766ceb6b17fdec3b31e2e884676
2018-09-17 19:59:26 -07:00
Treehugger Robot
ada39fe63d Merge "Fix typo in IntentFilter documentation." 2018-09-18 01:44:46 +00:00