Commit Graph

389386 Commits

Author SHA1 Message Date
TreeHugger Robot
a1b9c31cbc Merge "Move displayId into MotionEvent" 2018-10-17 07:34:36 +00:00
TreeHugger Robot
c4b7e853c1 Merge "Change the feature flag for Hearing Aid behavior" 2018-10-17 04:57:55 +00:00
TreeHugger Robot
6ea57e1b38 Merge "Polish InputMethodManagerService#startInputUncheckedLocked()" 2018-10-17 04:24:25 +00:00
Igor Murashkin
013d97ca09 Merge "iorap: Remove blank newline in TEST_MAPPING" am: 22fe21df93 am: cbe655e781
am: d40cb164d5

Change-Id: I6637b6233ce90ec19437465050394232731540bb
2018-10-16 21:12:30 -07:00
Igor Murashkin
d40cb164d5 Merge "iorap: Remove blank newline in TEST_MAPPING" am: 22fe21df93
am: cbe655e781

Change-Id: If091c4a00b32263691f4f0f28be6c58e53917715
2018-10-16 20:54:27 -07:00
Igor Murashkin
cbe655e781 Merge "iorap: Remove blank newline in TEST_MAPPING"
am: 22fe21df93

Change-Id: Id1b72f79c242f827ff04acd0deff2c4c9d4fe65d
2018-10-16 20:45:53 -07:00
TreeHugger Robot
952eb9bcbf Merge "Unextract InputMethodManagerService#startInputInnerLocked()" 2018-10-17 02:37:14 +00:00
Yohei Yukawa
0deaef032b Polish InputMethodManagerService#startInputUncheckedLocked()
This CL aims to simplify logic recently added to IMMS to support
multiple displays (Bug 111364446).

With my previous CLs [1][2], now we can simply review what
InputMethodManagerService#startInputUncheckedLocked() is actually
doing.  Things we found and this CL does address are:

 1. Redundant if conditions against null IMMS#mCurMethodId.
 2. Timing to check IMMS#mSystemReady.
 3. Timing to check display id access
 4. Timing to update IMMS#mCurTokenDisplayId.
 5. Unnecessary complexity due to IMMS#mCurFocusedWindowClient, which
    is now guaranteed to equal to |cs| in that method.

Although this CL is not a mechanical safe refactroing, the new
behavior should be more efficient, solid and easier to maintain.

 [1]: I52f6c4cd1e02be3a59e9a87e33b0a44f4ba8d80b
      f91a2b102b
 [2]: I71e259fa447dd06ff02b9ef8c958dc70bbce86ea
      caaa1d3d2d

Bug: 117730713
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: Ic9232d9c3ec9802101df5f0bc511c55465b5bbe6
2018-10-17 10:33:48 +08:00
Yohei Yukawa
caaa1d3d2d Unextract InputMethodManagerService#startInputInnerLocked()
With my previous CL [1], IMMS#startInputInnerLocked() is called only
from IMMS#startInputUncheckedLocked().  By unextracting
IMMS#startInputInnerLocked() again, it would be much easier for us to
understand what IMMS#startInputUncheckedLocked() is actually doing.

To decouple actual behavior change from cosmetic code refactorings,
this CL does nothing except for merging IMMS#startInputInnerLocked()
into IMMS#startInputUncheckedLocked().

There should be no behavior change.  Non trivial behavior
simplifications will be done in subsequent CLs.

 [1]: I52f6c4cd1e02be3a59e9a87e33b0a44f4ba8d80b
      f91a2b102b

Bug: 117730713
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: I71e259fa447dd06ff02b9ef8c958dc70bbce86ea
2018-10-17 10:33:13 +08:00
Dongwon Kang
bfe89a9927 Merge "MediaPlayer2: remove hidden api, setMetadataFilter and getMetadata" 2018-10-17 02:28:15 +00:00
Treehugger Robot
22fe21df93 Merge "iorap: Remove blank newline in TEST_MAPPING" 2018-10-17 01:50:35 +00:00
Eric Laurent
5541547edd Merge "audio: apply volume upon hearing aid device connection" into pi-dev am: 9872b257cd
am: cf7cca0a43

Change-Id: I16d10f8ad3b10c934028cc35ed0fba57de0df3fa
2018-10-16 18:31:56 -07:00
Shuo Qian
abeafe3dbd [automerger skipped] Merge "Make SubscriptionManager.getSlotIndex public" am: 719310cd2c am: a781751b32
am: 59c8b87ad4  -s ours

Change-Id: I8db95a7b701c71caffc78f03ca618036c84cdf5f
2018-10-16 18:22:43 -07:00
Eric Laurent
cf7cca0a43 Merge "audio: apply volume upon hearing aid device connection" into pi-dev
am: 9872b257cd

Change-Id: Ibb0a31b7e4750e904568d328384983979cf774a0
2018-10-16 18:17:20 -07:00
Shuo Qian
59c8b87ad4 Merge "Make SubscriptionManager.getSlotIndex public" am: 719310cd2c
am: a781751b32

Change-Id: Ib7d3dd0f7ce06edf736c493cde6778365c366ae2
2018-10-16 18:06:09 -07:00
Dan Willemsen
9ad6ab595d Merge "Stop using DIST_DIR directly, use dist-for-goals instead" am: a8f2601d28 am: 9b767e275e
am: fa5b204029

Change-Id: Ic052f5d1de317c2f271f5a2df83c733c79978679
2018-10-16 18:01:26 -07:00
TreeHugger Robot
9872b257cd Merge "audio: apply volume upon hearing aid device connection" into pi-dev 2018-10-17 00:56:19 +00:00
Shuo Qian
a781751b32 Merge "Make SubscriptionManager.getSlotIndex public"
am: 719310cd2c

Change-Id: Ia942ecfefef8f26ff0b1f140c0692c81aebd11fa
2018-10-16 17:54:52 -07:00
Dan Willemsen
fa5b204029 Merge "Stop using DIST_DIR directly, use dist-for-goals instead" am: a8f2601d28
am: 9b767e275e

Change-Id: I64a04f0c7b9220a8de872526ba37590b71fba458
2018-10-16 17:50:55 -07:00
Dan Willemsen
9b767e275e Merge "Stop using DIST_DIR directly, use dist-for-goals instead"
am: a8f2601d28

Change-Id: Iabb2ddb086dda71887c3d50152db50f813c9556a
2018-10-16 17:43:35 -07:00
Eric Laurent
cd75edb817 [automerger skipped] Merge "audioservice: fix a2dp connection race condition" am: e568805209 -s ours am: 6466847321 -s ours
am: d32dca9663  -s ours

Change-Id: I257b73130b71e0223a1c81d217c758a2a7bc1c96
2018-10-16 17:38:18 -07:00
Shuo Qian
719310cd2c Merge "Make SubscriptionManager.getSlotIndex public" 2018-10-17 00:37:35 +00:00
TreeHugger Robot
38d0bd0634 Merge "Set EXTRA_USER instead of EXTRA_USER_ID for ACTION_SHOW_ADMIN_SUPPORT_DETAILS" 2018-10-17 00:26:37 +00:00
TreeHugger Robot
0569538675 Merge "Clean-up removed RecoveryController API" 2018-10-17 00:22:02 +00:00
Eric Laurent
d32dca9663 [automerger skipped] Merge "audioservice: fix a2dp connection race condition" am: e568805209 -s ours
am: 6466847321  -s ours

Change-Id: I583507cfc59c088fab3efa6f71998eb96169c903
2018-10-16 17:21:43 -07:00
Yiwei Zhang
e5e555dbb4 Merge "[GraphicsEnvironment] Add whitelist support." 2018-10-17 00:18:52 +00:00
Treehugger Robot
a8f2601d28 Merge "Stop using DIST_DIR directly, use dist-for-goals instead" 2018-10-17 00:18:07 +00:00
Chen Xu
a7274eb9b2 Merge "refactor radioPowerstate" 2018-10-17 00:14:45 +00:00
Eric Laurent
6466847321 [automerger skipped] Merge "audioservice: fix a2dp connection race condition"
am: e568805209  -s ours

Change-Id: Ifbb5cc5a8422f73e2f2eb2236d3f2865e4553986
2018-10-16 17:11:33 -07:00
Treehugger Robot
e568805209 Merge "audioservice: fix a2dp connection race condition" 2018-10-16 23:49:35 +00:00
TreeHugger Robot
4e1ab9e119 Merge "Do not bind IME until an IME client is recognized" 2018-10-16 23:45:07 +00:00
TreeHugger Robot
5f50b7e7bc Merge "Minor Autofill improvements:" 2018-10-16 23:42:13 +00:00
Igor Murashkin
3f12e8cc20 Merge "iorap: Add presubmit/postsubmit support" am: 7cbabff3f0 am: ff3a8bf0f7
am: eaef91f7aa

Change-Id: Ifa811049b34a90ea607e8d18d423890217dd4b0c
2018-10-16 16:22:28 -07:00
TreeHugger Robot
ce5c43379f Merge "Make SubscriptionManager.getSlotIndex public" 2018-10-16 23:07:29 +00:00
Igor Murashkin
eaef91f7aa Merge "iorap: Add presubmit/postsubmit support" am: 7cbabff3f0
am: ff3a8bf0f7

Change-Id: Iee75da6b590be3d04c591acce53389ed420190b1
2018-10-16 16:03:48 -07:00
Matt Pape
7f6aace73a Merge "Stop waiting when elapsed time is equal to or greater than the timeout, rather than strictly greater than. This avoids a rare problem where the loop manages to complete at exactly the timeout time and then makes a call to wait(0), which waits indefinitely until another thread notifies it instead of timing out after 0 ms." 2018-10-16 23:01:22 +00:00
Igor Murashkin
ff3a8bf0f7 Merge "iorap: Add presubmit/postsubmit support"
am: 7cbabff3f0

Change-Id: I5f5afb05cde2894fb62728e67943a3dc38f26594
2018-10-16 15:51:19 -07:00
Eric Laurent
07f582189a audioservice: fix a2dp connection race condition
In case of fast (< 1 second) A2DP disconnect/connect sequence, there
is a potential race condition where the delayed disconnection message
(due to becoming noisy intent) is received after the not delayed
connection message.

- Make sure all messages related to device connection/disconnection
(including MSG_A2DP_DEVICE_CONFIG_CHANGE and MSG_BTA2DP_DOCK_TIMEOUT)
are handled by queueMsgUnderWakeLock().
- Make sure messages are processed in the same order as API calls.
- Add check for null address in makeA2dpDeviceUnavailableNow().

Bug: 109903807
Bug: 78837311
Test: repro steps in bugs. A2DP connection and playback

Change-Id: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
(cherry picked from commit 3c4636c712)
Merged-In: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
2018-10-16 15:29:25 -07:00
Treehugger Robot
7cbabff3f0 Merge "iorap: Add presubmit/postsubmit support" 2018-10-16 22:21:33 +00:00
Igor Murashkin
e53713c514 iorap: Remove blank newline in TEST_MAPPING
Change-Id: I378e86327951daa05512efd2ac491d27f9995ddd
2018-10-16 15:15:21 -07:00
Fan Zhang
4a772fc4d2 Merge "Refactor the nativePtr validation code to a method." 2018-10-16 22:04:51 +00:00
TreeHugger Robot
dfa4c24aaf Merge "Add pulled atom subscription for shell." 2018-10-16 21:46:49 +00:00
TreeHugger Robot
4eb4f745f8 Merge "Adjusted tracing of reportFullyDrawn() API call." 2018-10-16 21:28:15 +00:00
Steve Elliott
5269abcf95 Merge "Add configurable default setting for assistant componentname" 2018-10-16 21:05:23 +00:00
Chenjie Yu
cfc152af9c Merge "Pull process cpu stats into statsd" 2018-10-16 20:48:57 +00:00
chen xu
700c8a0389 refactor radioPowerstate
1. new System API for getRadioPowerState with permision check
2. new System API for onRadioPowerStateChanged in PhoneStateListener
3. replace radioState enum in CommandsInterface to telephonyMgr defined
int.

Bug: 117349311
Test: telephony unit test
Change-Id: I502568280fbf9213ca6bf1f7fb204d0d4ce86580
2018-10-16 20:33:28 +00:00
Fan Zhang
9fe7cdf3a5 Refactor the nativePtr validation code to a method.
This will make testing much easier.

Bug: 117828816
Test: robotests
Change-Id: I1ca81e2005e559c0ec1e5f468cdd4bc0c21edbea
2018-10-16 13:30:03 -07:00
TreeHugger Robot
ecb82d9f35 Merge "Pass in window layout when setting initial state." 2018-10-16 20:24:49 +00:00
TreeHugger Robot
6c47c99a00 Merge "Only skip stacks behind home when not in multi-window mode." 2018-10-16 20:23:46 +00:00
Garfield Tan
f2e0a9e3f2 Only skip stacks behind home when not in multi-window mode.
Split screen primary stack is behind home (though visible to user), and
needs to respond to user tapping when out of touch region.

This doesn't cover the case where split screen stacks and freeform
stacks both exist in the display, but that's not a very common case on
any form factor.

Bug: 117777954
Bug: 117824834
Test: IME is brought up when Gmail is in split screen primary stack.
Tapping on home won't focus on home stack.
atest android.autofillservice.cts.MultiWindowLoginActivityTest#testSplitWindow

Change-Id: I44e17d9a0eba3ab6669ef75223c982ae0e811fc6
2018-10-16 13:01:37 -07:00