Commit Graph

10726 Commits

Author SHA1 Message Date
Philip P. Moltmann
2b0e121c9c Merge "Restore session on new window after app kill" into oc-dev am: 51785edbe9
am: a839e15a65

Change-Id: Ieba9858a808080aba74a3fd45021dac69ad83453
2017-04-08 02:48:05 +00:00
TreeHugger Robot
51785edbe9 Merge "Restore session on new window after app kill" into oc-dev 2017-04-08 02:35:35 +00:00
Andrii Kulian
4cab4b3a6a Merge "Use feature instead of hidden config for multi-display" into oc-dev am: 72790bade5
am: 2d27f1c538

Change-Id: I2f8c876f53c021e4eca8fb50b4de8f7d5390e673
2017-04-08 02:07:08 +00:00
Andrii Kulian
72790bade5 Merge "Use feature instead of hidden config for multi-display" into oc-dev 2017-04-08 01:51:29 +00:00
Philip P. Moltmann
eab62baabf Restore session on new window after app kill
Also:
- Give the session an integer ID as the activityToken is not stable over
  restarts of the activity
- Verify that session is only accessed by one UID
- stabilize AccessibilityViewIds over activity lifecycle at least for
  the IDs we can do that. This required to split the ID namespace in
  "per-app" and "per-activity" views. Only the later ones can be
  restored.
- Do not end session when app is killed (as it can be restarted)

Bug: 35484143
Fixes: 36392498
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases --test=android.autofillservice.cts.SessionLifecycleTest
      cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
Change-Id: I229acc1b3ce35fb57262da7d7466b5d4328b49d4
2017-04-08 00:48:55 +00:00
Bryce Lee
19aa040685 Merge "Do not make strong reference to Resources." into oc-dev am: 6f36255adc
am: 43b1a5f433

Change-Id: I68a836fcb17b727140c22a6e886122114626362d
2017-04-08 00:10:55 +00:00
TreeHugger Robot
6f36255adc Merge "Do not make strong reference to Resources." into oc-dev 2017-04-07 23:57:29 +00:00
Andrii Kulian
1981f5fd17 Use feature instead of hidden config for multi-display
Using a feature will allow app developers to find out if a
particular device supports running activities on secondary
screens before using the APIs.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I7121bdb782cac9df70121e9df5cbf3fcb76f4a93
2017-04-07 16:23:12 -07:00
Bryce Lee
fea79005bd Do not make strong reference to Resources.
This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: If91368171212b28c40e03c15fb39c72412a44811
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation
2017-04-07 22:06:52 +00:00
Andrii Kulian
56e84d0118 Merge "Add hidden API to check support of Multi-Display" into oc-dev am: 4eab3cb11a
am: b7c802094b

Change-Id: Icb5882f5e6e5b1a8054a8bd9889d46fc403bee98
2017-04-07 20:35:50 +00:00
Andrii Kulian
4eab3cb11a Merge "Add hidden API to check support of Multi-Display" into oc-dev 2017-04-07 20:22:58 +00:00
Wale Ogunwale
23e8f273da Merge "Revert "Do not make strong reference to Resources."" into oc-dev am: 2f2e3f8ad5
am: d8351abc88

Change-Id: I7e5a4d46a4a524f2a7196adc9f39e27aced5bbdd
2017-04-07 19:23:57 +00:00
Wale Ogunwale
2f2e3f8ad5 Merge "Revert "Do not make strong reference to Resources."" into oc-dev 2017-04-07 19:06:55 +00:00
Bryce Lee
4eb4f05ea9 Revert "Do not make strong reference to Resources."
This reverts commit 2d2315a66d.

Reason for revert: possible cause for b/37156733

Change-Id: I02d468449f0632d1281ab5ad2a381e7e36a5b0ea
2017-04-07 18:44:26 +00:00
Andrii Kulian
597f390681 Add hidden API to check support of Multi-Display
Added ActivityManager#supportsMultiDisplay() to check if system
supports running activities on secondary displays.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMultiDisplayDisabled
Change-Id: I18f98f2f6a9e865ad8dc63a470210190536d3271
2017-04-07 11:08:55 -07:00
Selim Cinek
810d99e265 Merge changes If96c0146,I0d68ad60 into oc-dev am: 5393a0e2d9
am: e1fcf8edd6

Change-Id: I59b73215058df60ad93e59a76f01143c6a935d30
2017-04-07 16:17:44 +00:00
TreeHugger Robot
5393a0e2d9 Merge changes If96c0146,I0d68ad60 into oc-dev
* changes:
  Improved accessibility behavior of the notification shelf
  Fixed a bug where the indeterminate progressbar janky
2017-04-07 15:59:17 +00:00
Bryce Lee
149fd497e8 Merge "Check component before notifying activity is visible." into oc-dev am: 13acf25cfd
am: 6b8907d8ed

Change-Id: Ife37bdfb4bee6479688defad0446efaecfb7838b
2017-04-07 15:11:51 +00:00
Bryce Lee
13acf25cfd Merge "Check component before notifying activity is visible." into oc-dev 2017-04-07 14:58:18 +00:00
Esteban Talavera
89d1d31955 Merge "Add managed profile whitelist to control NotificationListenerServices" 2017-04-07 13:26:30 +00:00
Bryce Lee
7843f6e6b6 Merge "Do not make strong reference to Resources." into oc-dev am: 327c0b9f88
am: c1ed86ab10

Change-Id: Idd0c2d7be02d4de7318e805d639ad0d5cc016e44
2017-04-07 06:37:32 +00:00
TreeHugger Robot
327c0b9f88 Merge "Do not make strong reference to Resources." into oc-dev 2017-04-07 06:21:00 +00:00
Bryce Lee
2d2315a66d Do not make strong reference to Resources.
This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: I60d767b52de7bbf769f6761f5a3301dd7aff6ddf
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation
2017-04-06 21:32:31 -07:00
Jason Monk
043578f69d Merge "Revert "Handle case when snapshot dimensions don't match"" into oc-dev am: e7ac324c71
am: 79f56babd7

Change-Id: Ib7bba216d53f911993a4afd01e0c77761dd45f89
2017-04-06 22:35:27 +00:00
Jason Monk
e7ac324c71 Merge "Revert "Handle case when snapshot dimensions don't match"" into oc-dev 2017-04-06 19:51:12 +00:00
Jason Monk
ba53d8ae41 Revert "Handle case when snapshot dimensions don't match"
This reverts commit aea6b74e17.
Bug: 36991071
Bug: 36703868
Change-Id: Ie71992144e78a6580bfce17dfdf20396af80eacd
2017-04-06 18:30:11 +00:00
Bryce Lee
4a19438955 Check component before notifying activity is visible.
ActivityStackSupervisor tracks WaitResults which are waiting for an
Activity to become visible. This is used exclusively by
ActivityStarter to wait for an Activity to be brought to the
foreground before returning. However, there are some cases where
other Activities will report a visible state in between. Without a
qualifier, these would cause the ActivityStarter's WaitResult to be
fulfilled and the wrong information would be returned.

This changelist specifies a component the WaitResult should be
triggered on.

Change-Id: I7c356a8d153ddc24603acc55749e9992f9000c3f
Fixes: 36860122
Test: cts-tradefed run cts -m CtsServicesHostTestCases -t  android.server.cts.ActivityManagerAmStartOptionsTests#testDashW_Direct
2017-04-06 10:11:58 -07:00
Esteban Talavera
7e4cbadc6a Add managed profile whitelist to control NotificationListenerServices
Only let notification listeners installed in the primary profile
see work profile notification if allowed by policy

Bug: 36657192
Test: runtest systemui-notification
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest    frameworks-services
Change-Id: If719151644380e9162180a24d12f798e42867c0a
2017-04-06 17:53:31 +01:00
Todd Kennedy
91d6a8a0e9 Merge "Bind with the correct action" into oc-dev am: e7ec7ec634
am: f97938f9d0

Change-Id: I22c9be81cd3dc580fc3b5edc82f0d0f28cc38952
2017-04-06 16:52:50 +00:00
TreeHugger Robot
e7ec7ec634 Merge "Bind with the correct action" into oc-dev 2017-04-06 16:35:37 +00:00
Julia Reynolds
bb23c9b80b Merge "Show a link to app settings in notification guts." into oc-dev am: 0ff1b458ac
am: fafcda882b

Change-Id: I397e37d0cbff42be9bc41e42eef094a8237e9c9a
2017-04-06 16:18:01 +00:00
Julia Reynolds
0ff1b458ac Merge "Show a link to app settings in notification guts." into oc-dev 2017-04-06 15:55:36 +00:00
Julia Reynolds
712decf92f Merge "Remove unneeded methods" into oc-dev am: 9a8f641801
am: 4c6d2c76a4

Change-Id: I976bb62b349a5de4655d44245a06d8898ed96461
2017-04-06 15:27:21 +00:00
Julia Reynolds
9a8f641801 Merge "Remove unneeded methods" into oc-dev 2017-04-06 15:13:13 +00:00
Philip P. Moltmann
2390cc3407 Merge "Overlay a highlight over autofilled views" into oc-dev am: 4ebafa8000
am: 7e3af23cc3

Change-Id: I41e65cf34549589c17cea9cc71632925e0402019
2017-04-06 06:41:41 +00:00
Philip P. Moltmann
b42d133c8b Overlay a highlight over autofilled views
Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8
2017-04-06 03:57:54 +00:00
Felipe Leme
94b0c17369 Merge "Improvements on ViewNodes received on partitioned requests:" into oc-dev am: 05b8b4135a
am: 5f73ae55ee

Change-Id: Ic2252fe76d20c99d5b0d4776509bc5d9d415659a
2017-04-06 02:59:24 +00:00
George Mount
436c56bbe5 Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev am: fade53591b
am: b9dbd76866

Change-Id: I4d942dc6842bdb22e21d5759748311f748bbbb61
2017-04-06 02:46:56 +00:00
George Mount
a6ea4e6473 Merge "Change getFragments() to return a List." into oc-dev am: 1b2bedcd76
am: b71472d28e

Change-Id: Ie1c06cacfae24614b0e40cb83117f5b25673c29a
2017-04-06 02:35:44 +00:00
TreeHugger Robot
05b8b4135a Merge "Improvements on ViewNodes received on partitioned requests:" into oc-dev 2017-04-06 02:26:37 +00:00
George Mount
1a3d4cb67b Merge "Call noteStateNotSaved on child fragment managers." into oc-dev am: a62a3d8ec1
am: 4f5654cc8c

Change-Id: Ica919f836951c0c4aa970e6686f09c0f46dfa811
2017-04-06 02:20:01 +00:00
Nathan Harold
b077f6abd3 Merge changes from topic 'ipsec-svc-pick' into oc-dev
* changes:
  Fix Log Traces for IpSecService
  SystemServer: fix StartIpSecService trace and log
  Add Initial IPsec APIs to IpSecService
  IpSecManager and IpSecTransform API Cleanup
  Change reserveSecurityParameterIndex() to take a remoteAddress
  Add a Skeleton IpSecService
2017-04-06 01:34:37 +00:00
George Mount
b9dbd76866 Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev
am: fade53591b

Change-Id: Iab983407193984f72f5ecbc485082f4ca1ec70f7
2017-04-06 01:21:01 +00:00
TreeHugger Robot
fade53591b Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev 2017-04-06 01:13:13 +00:00
Felipe Leme
cde040ae95 Improvements on ViewNodes received on partitioned requests:
- Fixed focus
- Added autofillValue for nodes previously autofilled

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: If4390d002d44c82e3de0339a634041f3998e804e
2017-04-05 17:49:13 -07:00
George Mount
b71472d28e Merge "Change getFragments() to return a List." into oc-dev
am: 1b2bedcd76

Change-Id: I59407dbe9e307e30bb721e33423130615ff00a7c
2017-04-06 00:22:01 +00:00
TreeHugger Robot
1b2bedcd76 Merge "Change getFragments() to return a List." into oc-dev 2017-04-06 00:13:26 +00:00
George Mount
4f5654cc8c Merge "Call noteStateNotSaved on child fragment managers." into oc-dev
am: a62a3d8ec1

Change-Id: I2a7a54b69c69efaf27a2edd18e2adbb179e660b2
2017-04-05 23:34:30 +00:00
TreeHugger Robot
a62a3d8ec1 Merge "Call noteStateNotSaved on child fragment managers." into oc-dev 2017-04-05 23:23:54 +00:00
Julia Reynolds
3aeddedc17 Show a link to app settings in notification guts.
Test: runtest systemui, cts
Change-Id: I7204102d5c83d589af5d3da57f72068491c12daa
2017-04-05 22:40:37 +00:00