Commit Graph

389422 Commits

Author SHA1 Message Date
Winson Chung
db111ee2ee Allow recents animation controller to control input consumer lifecycle
- Removing race between the system cleaning up the input consumer and the
  controller who is also managing the input consumer lifecycle (it's
  preferable for the controller to keep the input consumer registered,
  and only to toggle the enabled state).  Instead, we only ensure that we
  clean up if the runner is unexpected destroyed.
- Also ensure that we don't add the input consumer on top of the runner's
  app window

Bug: 117224991
Test: atest FrameworksServicesTests:RecentsAnimationTest
Test: atest FrameworksServicesTests:com.android.server.wm.RecentsAnimationControllerTest

Change-Id: I258f655417220b95112ba784e2ab2f30a9ee2a4a
2018-10-18 11:31:54 -07:00
TreeHugger Robot
e5bc538a9f Merge "Removing douple lookup when calling startActivityAsUser" 2018-10-17 22:50:27 +00:00
Chen Xu
535b74527d Merge "Revert "Revert "refactor radioPowerstate""" 2018-10-17 22:45:38 +00:00
Chen Xu
7395c630b0 Revert "Revert "refactor radioPowerstate""
This reverts commit 05188f3555.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id170063bfdb1e3325f67e8680231ab4deda7d65d

Bug: 117349311
2018-10-17 22:45:21 +00:00
Matt Pape
ba266c7b7f Merge "Add a new config table to the settings provider for remotely configured parameters. This includes the minimum number of changes necessary to make the table work, but no API surface yet." 2018-10-17 22:02:14 +00:00
Sunny Goyal
06ef5afb1c Removing douple lookup when calling startActivityAsUser
Test: atest \
      com.android.cts.devicepolicy.LauncherAppsMultiUserTest \
      com.android.cts.devicepolicy.LauncherAppsProfileTest \
      com.android.cts.devicepolicy.LauncherAppsSingleUserTest
Bug: 117888136

Change-Id: Ia25058b3bb2fb6cf57eedc5eecae4cb99275b4e7
2018-10-17 13:16:09 -07:00
TreeHugger Robot
1abd4feabb Merge "Removed AMS.mStackSuperivor (22/n)" 2018-10-17 20:08:41 +00:00
Selim Cinek
b10e4373c9 Merge changes I3070e95f,Ia500dea6
* changes:
  Fixed groups with min priority children
  Added logging to debug the notification view hierarchy
2018-10-17 19:38:03 +00:00
Yu-Han Yang
90412b0d09 Merge "Apply requirements when enabling provider" 2018-10-17 18:38:08 +00:00
Dongwon Kang
edf4d2275d Merge "Add RingtoneManager.openDefaultRingtoneUri()" 2018-10-17 17:40:33 +00:00
Fabian Kozynski
a618cebc8c Merge "Guarded against ArrayOutOfBounds" 2018-10-17 17:20:43 +00:00
Sudheer Shanka
a78a8350fc Merge "Update CoreSettingsObserver internal state correctly." 2018-10-17 17:03:21 +00:00
Eran Messeri
5cb1e8e636 Merge "Enterprise Policy for Private DNS Setting" 2018-10-17 16:59:57 +00:00
Matt Pape
1b31a331b0 Add a new config table to the settings provider for remotely configured parameters. This includes the minimum number of changes necessary to make the table work, but no API surface yet.
Test: local tests

bug: 113100523

Change-Id: I47f89f5e6657a2a347e62cb40924bba4547f7dd9
2018-10-17 09:58:32 -07:00
Fabian Kozynski
f8e0c6ebca [automerger skipped] DO NOT MERGE resolve merge conflicts of c6a1cfda93 to pi-dev-plus-aosp
am: bae081d202  -s ours

Change-Id: I604ad31279cb133446327890f516becb3774714d
2018-10-17 09:51:11 -07:00
Wale Ogunwale
31913b50d1 Removed AMS.mStackSuperivor (22/n)
The stack supervisor object should only be accessed through ATMS.

Test: Existing test pass
Bug: 80414790
Change-Id: I0648a95161a6a5c4ad714264d217c7f5e55852d7
2018-10-17 09:47:08 -07:00
TreeHugger Robot
7c5c113f53 Merge "Snapshot memory state for some native processes" 2018-10-17 16:30:55 +00:00
Mihai Popa
03cc437b08 Merge "Move ViewGroup#mChildren[Count] to dark-grey list" 2018-10-17 15:21:31 +00:00
Fabian Kozynski
bae081d202 DO NOT MERGE resolve merge conflicts of c6a1cfda93 to pi-dev-plus-aosp
Change-Id: I1a18690e85f66ff2a25329f9a050cb038fc0bcfb
Bug: None
Test: I solemnly swear I tested this conflict resolution.
2018-10-17 10:30:00 -04:00
Fabian Kozynski
1fda7cba7e Guarded against ArrayOutOfBounds
In some monkey tests, getAdapterPosition returns -1 (for example, if the
ViewHolder is not bound). In this case, we shouldn't proceed with the
moving operation.

Test: manual
Change-Id: I1eccc2c60136ddf5cc0175d88a3fddbe1d2a5a97
Fixes: 117769352
Fixes: 116871219
2018-10-17 09:28:20 -04:00
Fabian Kozynski
c6a1cfda93 Merge "DO NOT MERGE Fixes clipping on PagedTileLayout" into pi-dev 2018-10-17 13:21:15 +00:00
Louis Chang
47bf6668dc Merge "Do not move home task if Recent is not the previous top" 2018-10-17 12:14:30 +00:00
Przemyslaw Szczepaniak
7072da44cc Merge "Revert "refactor radioPowerstate"" 2018-10-17 11:04:14 +00:00
Przemyslaw Szczepaniak
05188f3555 Revert "refactor radioPowerstate"
This reverts commit 700c8a0389.

Reason for revert: Broken master build

Change-Id: Ia0171ff9250228cc03685e7f03da8dd9e374826f
2018-10-17 11:00:01 +00:00
Rafal Slawik
0862158f13 Snapshot memory state for some native processes
Which processes to snapshot is controlled by a whitelist.

Benchmark for taking the snapshot:
https://docs.google.com/spreadsheets/d/1vG9ku8Uu8104CmKbO4cNeEKVeeByvHY--p0_dK1GAdA/edit?usp=sharing
(The difference between the first two sheets.)
~20ms constant cost plus ~4ms per process.

Bug: 115968899
Test: manually verified that statsd is included in the report
Change-Id: Iba680531c563ba28fae849e44044313866b2103f
2018-10-17 10:34:27 +01:00
TreeHugger Robot
11f07dec94 Merge "Private DNS: Add user restriction" 2018-10-17 08:36:56 +00:00
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
Louis Chang
c8b6411ed9 Do not move home task if Recent is not the previous top
We shouldn't move the home task to front if Recents was
not the previous top activity on the display where the
task lands.

Bug: 111363427
Test: atest ActivityStackSupervisorTests

Change-Id: I39b51d5eec897bf83b2380dd8b7947c13cc7dd57
2018-10-17 10:45:28 +08: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
Selim Cinek
3bf2d20379 Fixed groups with min priority children
Previously  min priority  notifications would be
empty on the lockscreen. We're now showing them
if they are part of a group.

Bug: 117349034
Test: add group with min priority children on lockscreen
Change-Id: I3070e95f63c3b2cf227fbefdb53e3a3d09927ae9
2018-10-16 17:30:05 -07:00