Commit Graph

10517 Commits

Author SHA1 Message Date
TreeHugger Robot
0fbd9d163b Merge "Support insets on secondary displays" 2017-11-14 02:59:12 +00:00
Wale Ogunwale
828ff7e3ef Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Change-Id: I19f166920eba0a4f933a223a77e096bcc8dab0c1
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
2017-11-14 01:03:50 +00:00
TreeHugger Robot
542bdb1410 Merge "Fix for incorrect model version info" 2017-11-14 00:56:25 +00:00
TreeHugger Robot
059004e27b Merge "Revert "Support insets on secondary displays"" 2017-11-13 21:43:56 +00:00
Wale Ogunwale
7bb06e012a Revert "Support insets on secondary displays"
This reverts commit 9bc2692939.

Change-Id: Ia065372e9e220e653b4729a290663c3536d99307
Fixes: 69241956
Bug: 64148922
2017-11-13 16:49:19 +00:00
Jan Althaus
e750c6c457 Fix for incorrect model version info
In a number of cases, the model version info was not set correctly,
resulting in incorrect model version information (always 0) being
logged.

Bug: 69240688
Test: Manually tested that the logs are correct. (Both with only factory and only update model)
Change-Id: I89e88635eecd4e4a3f299b2cf5cdd09d6ff53bdf
2017-11-13 13:07:38 +01:00
Jan Althaus
ae5eb83a32 Update smart select metrics for new system event fields
We are now adding new system UI event fields specifically for smart select.
This CL adds corresponding new metric field values and changes the log
event building accordingly.

Bug: 67674199
Test: Manually tested that the logs are correct.
Change-Id: I5b90c8b194de2d46d7d6be1f1c314be9a2239298
2017-11-13 09:07:02 +01:00
Evan Rosky
4772301e67 Merge "Revert "Enable new initial-focus behavior for P"" 2017-11-10 18:20:06 +00:00
Evan Rosky
b34cad00d3 Revert "Enable new initial-focus behavior for P"
This reverts commit 4dc3289c94.

Reason for revert: Pushback from bundled apps.

Bug: 68841055
Bug: 34520588
Change-Id: Id771a11c9b44baf5810240cca164bae9f468b5ad
2017-11-10 18:11:30 +00:00
Tetsutoki Shiozawa
84806dc355 Merge "Fix: WindowManagerGlobal#setStoppedState failed by IOOBE" am: 4741faa258 am: 949ea9bb2a
am: aab6b51c11

Change-Id: If4be33e18a761a5ad2fb522fad046a2811818f90
2017-11-10 17:19:52 +00:00
Tetsutoki Shiozawa
aab6b51c11 Merge "Fix: WindowManagerGlobal#setStoppedState failed by IOOBE" am: 4741faa258
am: 949ea9bb2a

Change-Id: I8bc04464519557a7af8e4792f30bad901d206052
2017-11-10 17:06:04 +00:00
Wale Ogunwale
9bc2692939 Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
Change-Id: I4a668d6c2dd0bfa666cb6acecf663cf83545ea87
2017-11-10 04:57:30 -08:00
John Reck
cbfc6373e3 Merge "Throw exception on non-finite floats" 2017-11-09 21:14:24 +00:00
Richard Ledley
a020374b17 Merge "Remove old getLinks method" 2017-11-09 10:19:47 +00:00
Daichi Hirono
3c6c95ed1a Add callback to DragDropController.
The callback allows vendor code to hook drag and drop operations.

Bug: 63914027
Test: Manually drag and drop files between apps, CTS
      CrossAppDragAndDropTests
Change-Id: I33bf907b7c024a485c51bd87d7c4839718ebeb13
2017-11-09 09:50:25 +09:00
TreeHugger Robot
8bbf27d2f2 Merge "Don't let keyguard to influence orientation when dismissing" 2017-11-08 22:37:11 +00:00
Andrii Kulian
92c9a948df Don't let keyguard to influence orientation when dismissing
When keyguard is being dismissed it still was overriding orientation
for the display, which caused report of wrong configuration to
activity that was becoming visible.

Bug: 66979760
Bug: 36897968
Fixes: 68131425
Test: Launch Unity 4 based game, lock and unlock screen, check UI
Test: com.android.server.wm.DisplayContentTests#testOrientationDefinedByKeyguard
Change-Id: I0a180b8e941a85ba4174a40cdec2ff0b8f3e00eb
2017-11-08 12:08:13 -08:00
Stan Iliev
d495f43992 Implement SkSL cache
Implement SkSL cache by reusing code and logic from egl_cache_t.

Test: Improves startup times for gmail by 15ms and 10ms for calc app.
Bug: 66740665
Change-Id: I9ba479c649ba97a2c29a48d40579ba001264c957
2017-11-08 18:55:41 +00:00
John Reck
3e5aa7ccba Throw exception on non-finite floats
Bug: 62780151
Test: CTS tests added
Change-Id: Ia1f7cbb8cf44ba7bac6d93ea4d11b73c7973a69a
2017-11-08 10:50:25 -08:00
Richard Ledley
6c37c45e28 Remove old getLinks method
Test: N/A
Change-Id: I324887ec45823d8ec9199a203631c4572b7f3142
2017-11-08 14:41:12 +00:00
Richard Ledley
7c0abe1920 Merge "Initial implementation of generateLinks" 2017-11-08 13:35:21 +00:00
Richard Ledley
68d9452346 Initial implementation of generateLinks
Test: Included, and ag/3141575

Change-Id: Ia91aa130e95ff347c55981b68b8d975bc8131a73
2017-11-08 10:54:09 +00:00
Tetsutoki Shiozawa
978e7f87cc Fix: WindowManagerGlobal#setStoppedState failed by IOOBE
Symptom:
An application crashed due to IndexOutOfBoundsException.
The exception was thrown at WindowManagerGlobal#setStoppedState.

Root cause:
setStoppedState invokes setWindowStopped for each ViewRoot by
ascending order. If an application removes its view within the
loop, loop index exceeds the number of items.

Solution:
Loop in descending order.

Bug: 69018607
Change-Id: I7e20282dc99b767912be4e00d81ffb49fe6c7ac0
2017-11-08 16:46:09 +09:00
TreeHugger Robot
7fe465a9e7 Merge "SidekickService (base)" 2017-11-07 02:29:16 +00:00
TreeHugger Robot
993ebff17e Merge "Optional parameters for TextClassifier APIs." 2017-11-06 13:44:48 +00:00
Wale Ogunwale
c0b0f93e96 Support for WM.LayoutParams.PRIVATE_FLAG_IS_SCREEN_DECOR.
Allow any process with the STATUS_BAR_SERVICE permission to add a
window that would be considered a screen decoration by the system
similar to the nav bar or status bar.

Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Bug: 68002203
Bug: 64148922
Change-Id: I8c78b82c10c638b54a528a77b96f5bf8dd18bf6f
2017-11-05 12:01:10 -08:00
Abodunrinwa Toki
2b6020fc80 Optional parameters for TextClassifier APIs.
TextClassifier methods now take a @Nullable Options parameter which
is a container for optional parameters to its methods.
This way, if we need to pass an optional parameter to one of
TextClassifier's methods, we won't have to overload the method.
Instead, we'll introduce a new Options field.

This CL also adds a hidden optional field for suggestSelection.
This is used to make sure that "dark launched" models do not return
new selection indices to clients. Clients e.g. TextView that are
dark-launch aware may use the field to explicitly request for
dark-launch results.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: Also see I843eadff8a2b674388055364c1f25c8d4ccea771
Change-Id: I58e44451ac8a8e3a5bc3959198447f5549870902
2017-11-03 14:02:38 +00:00
Jorim Jaggi
426dd380a9 Merge "Check not released to avoid native crash" 2017-11-03 13:17:02 +00:00
Felipe Leme
d46f87a9e2 Added missing AutofillEventType so lint doesn't complain. am: 3dec72b601
am: 3d2f9d1467

Change-Id: I608b1e3ec3c887e50b4daa57cbfdeed0f30d23a0
2017-11-03 01:25:43 +00:00
TreeHugger Robot
46fabf34ea Merge "Center align AoD2 notifications" 2017-11-02 20:54:16 +00:00
Felipe Leme
3dec72b601 Added missing AutofillEventType so lint doesn't complain.
Test: In TreeHugger we trust!
Fixes: 68806712

Change-Id: I2f392161e71e0eca25a4a104b67e7d2982c90341
2017-11-02 13:42:58 -07:00
Peter Visontay
2a962f6343 Merge "In Accessibility code, wrap Binder.restoreCallingIdentity() in finally{}." 2017-11-02 20:42:19 +00:00
Jorim Jaggi
dfc2737e11 Check not released to avoid native crash
If we modify some property of a SurfaceControl in a transaction
and that SurfaceControl is already released, it will generate
a native crash. Check on the Java side already to avoid native
crash (and loose the stack trace).

Test: Boots
Change-Id: I19b1394daba46e37f8f0c4cfecc0ff99b9859837
2017-11-01 22:15:47 +01:00
Eugene Susla
0344756d19 Merge "Reduce a11y shortcut timeout from 1.5sec to 1sec" 2017-11-01 18:33:11 +00:00
Peter Visontay
c05dde0537 In Accessibility code, wrap Binder.restoreCallingIdentity() in finally{}.
Test: none.
Change-Id: I64b20b09bb84e98025b104108bcb05cf3abe4b5e
Bug: 68755611
2017-11-01 17:49:28 +00:00
Eugene Susla
c884158de1 Reduce a11y shortcut timeout from 1.5sec to 1sec
Fixes: 63914635
Test: ensure shortcut delay is still 3sec before dialog confirmation and
1sec afterwards
Change-Id: I1b9d8eeb93358d036f2f6d048f85a379d996d758
2017-10-31 17:11:45 -07:00
Chris Phoenix
10a4a64bcc SidekickService (base)
Test: builds; Sidekick watch face animates in Ambient
Change-Id: I5946dbf7194653ac4707b6c186b0a9197d125d5f
2017-10-31 16:02:41 +00:00
Winson Chung
378f389b75 Merge "Cleaning up InputConsumers" 2017-10-31 15:50:29 +00:00
Winson Chung
6463c3625f Cleaning up InputConsumers
- Log the pid and user handle for the client input consumer
- Pass token to WMS to ensure that it is notified when the client input
  consumer process is killed

Bug: 37309537
Test: android.server.am.ActivityManagerPinnedStackTests
Change-Id: I432d96b1f524ab34dbbad3eeb67d996abdd5f4ca
Signed-off-by: Winson Chung <winsonc@google.com>
2017-10-30 14:07:04 -07:00
Winson Chung
941dcba6e3 Merge "1/ Refactor out logic to fetch assist data asynchronously" 2017-10-30 16:22:26 +00:00
Felipe Leme
51e29da65e Improvements on autofill debugging.
- Sets the client-side sDebug and sVerbose in the application being autofilled
  before it was only set in the service's application
- Logs client class on AutofillManager - useful to detect cases where it's not
  an Activity.

Bug: 67742064
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: manual verification of logs

Change-Id: I1f04b90bae89fd942e5849b4a382f1f54df20e38
2017-10-27 17:32:20 -07:00
Evan Rosky
9e1c6328d2 Merge "Fixed several core and CTS tests" 2017-10-27 21:33:52 +00:00
Winson Chung
da2818fe89 1/ Refactor out logic to fetch assist data asynchronously
- This logic will also be used when the recents component is started to
  fetch assist data associated with the current activity.

Bug: 67864419
Test: com.android.server.am.AssistDataRequesterTest
Test: CtsVoiceInteractionTestCases

Change-Id: I4cb3c2536a104d7071bc0a1fd6e31dfc2c0ce8d0
2017-10-27 13:49:26 -07:00
TreeHugger Robot
599ef4698b Merge "New Autofill API: FillResponse.disableAutofill(duration)" 2017-10-27 19:38:32 +00:00
Felipe Leme
17292d1a25 New Autofill API: FillResponse.disableAutofill(duration)
This API is useful to improve the autofill performance for the scenarios where
the service knows it cannot autofill an app or activity.

Bug: 67867469

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testFillResponseAuthWhenAppCallsCancel

Change-Id: I58e3eb5714db840104e699d614e750c03e26e8ca
2017-10-27 09:40:59 -07:00
TreeHugger Robot
1b3cf5a44b Merge "Have setRelativeLayer take SurfaceControl instead of IBinder" 2017-10-27 04:48:43 +00:00
TreeHugger Robot
9bc398826a Merge "Added JNI and Java code to capture a layer" 2017-10-27 03:24:16 +00:00
Robert Carr
77e3494226 Have setRelativeLayer take SurfaceControl instead of IBinder
Avoid making the caller have a pointless call to getHandle()
ill convert the rest of the methods later, but this one is needed
for some testing requirements in the hierarchy branch.

Test: Builds
Change-Id: Ie501690c48c46872cc4641f456b3f2ba601281d0
2017-10-27 02:44:47 +00:00
Robert Carr
e625fcf325 Introduce SurfaceControl Builder API
Overloaded constructors are messy. Want builder anyway for public API
eventually.

Test: Boots. go/wm-smoke
Change-Id: I2ebc5305c608a0d626609639a4d80aebb9b5653a
2017-10-26 15:53:30 -07:00
Lucas Dupin
bd9798f617 Center align AoD2 notifications
Hides app name, and centralizes all notification data.

Bug: 64155983
Test: send aod notification, observe
Change-Id: Ifbf35570ad3177422c7dd5db053b7708016841b2
2017-10-26 15:37:25 -07:00