Commit Graph

10355 Commits

Author SHA1 Message Date
Felipe Leme
072d18b6f7 Documented use of AutofillManager.notifyViewVisibilityChanged()
Test: mmm -j108 frameworks/base/:doc-comment-check-docs
Bug: 38509603

Change-Id: I83c7089b071a82b7d887cb48c18683b671b0c4d6
2017-08-31 14:05:22 -07:00
Abodunrinwa Toki
8a9866298d Merge "Introduce SmartSelectionEventTracker." into oc-mr1-dev am: 16da1f545c
am: f44588afb1

Change-Id: I3fcbd9d99c844068ec793c4f80319b85a9f90043
2017-08-30 23:18:13 +00:00
Jorim Jaggi
11b58a917c Add theme attribute for light navigation bar
Such that apps can set this in the theme and get a splash screen
that has a light navigation bar if requested.

Test: LightBarThemeTest
Change-Id: Iee93c49743f66ecad76e0a056ba16a1785f22784
Fixes: 62429332
2017-08-30 15:37:19 +02:00
Abodunrinwa Toki
692b196cc1 Introduce SmartSelectionEventTracker.
This will be used for logging text selection interaction.

Bug: 64914512
Test: No test. Everything builds fine.
Change-Id: Idb28864e0fc969be05d81855b2e7cd8389bd835e
2017-08-30 13:38:51 +01:00
Evan Rosky
3b322865f6 Merge "Merge "Clear focused-in-cluster on focusability changes" into oc-mr1-dev am: 102520f88e" into oc-mr1-dev-plus-aosp
am: 2af6037836

Change-Id: Ie1622654c6e295daed8ad0a08d04d1f554c33354
2017-08-30 00:23:53 +00:00
TreeHugger Robot
102520f88e Merge "Clear focused-in-cluster on focusability changes" into oc-mr1-dev 2017-08-29 21:01:05 +00:00
Felipe Leme
f3ee0b4c84 Merge "Hides the Save UI while handling a pending intent from CustomDescription." into oc-mr1-dev am: 55309e79cf
am: 1f9f8597e9

Change-Id: Ie57ae681b0068f4b060aa1a8c87c92cb511ca9ed
2017-08-29 03:38:45 +00:00
Felipe Leme
c24a56ae06 Hides the Save UI while handling a pending intent from CustomDescription.
When the AutofillService sets a PendingIntent to launch an activity when
clicking a chield view (for example, to lauch a web page displayign the terms
and conditions of saving something), the system must hide the Save UI and
restore it after the new activity is dismissed.

That sounds simple in the surface, but it requires a huge refactoring behind
the scenes, such as injecting a token in the activity intent and using that
token to hide / cancel the UI during some activity lifecycle events.

Test: lotta of brand-new shinning tests on CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Change-Id: Ie8ec7aeb2c63cab68467046c1a9dcf85dbcc24ec
Fixes: 64309238
2017-08-28 18:04:15 -07:00
TreeHugger Robot
2e41218797 Merge "Adding group divider support in Android Menus" 2017-08-25 23:33:17 +00:00
Felipe Leme
eefedbaf5b Merge "Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df am: da31220015 am: d29128d699" into oc-mr1-dev-plus-aosp
am: 08a6dde180

Change-Id: If13789fd96dde6ded9c32eabfcb62e29facd3673
2017-08-25 22:35:00 +00:00
Felipe Leme
8c9167565b Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df am: da31220015
am: d29128d699

Change-Id: If8eae5bc9f2985c913179b2fc881d7bf03510276
2017-08-25 22:05:01 +00:00
Felipe Leme
ca03b3fbe6 Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev am: 7d29b6f2df
am: da31220015

Change-Id: I1ccd7b54c27ce65edcf9b1aceba7097bd8fc32e2
2017-08-25 21:54:45 +00:00
Felipe Leme
da31220015 Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev
am: 7d29b6f2df

Change-Id: Ibfabc9d32aa0da80e636a27eebf1b50bdd9692b3
2017-08-25 21:36:04 +00:00
Tarun Lohani
0b842b465e Adding group divider support in Android Menus
Added a divider view in popup_menu_item_layout.
Hiding divider where they are not required in MenuAdapter.

Bug: 32172964
Test: Added test method testGroupDividerEnabledAPI to PopupMenuTest.java
Change-Id: I9cf0e9a72f085336e9f136a7ed17aead0e30760c
2017-08-25 20:18:11 +00:00
Chavi Weingarten
dad6dea2dd Merge "Added jni and SurfaceControl methods for native reparentChild" 2017-08-25 15:14:35 +00:00
John Reck
1d4be040e0 Merge "Avoid setting high contrast in every view draw" 2017-08-25 04:33:31 +00:00
John Reck
938e884a1f Avoid setting high contrast in every view draw
Test: high contrast text still works
Change-Id: I6674d1aca8dddf7eb9725a5346aed12ef1dbc195
2017-08-24 16:15:58 -07:00
Yohei Yukawa
c6f9b06164 Merge "New haptic feedback constants" into oc-mr1-dev am: f3b78305ff
am: b737076a4e

Change-Id: I94a90ce699c420f6f761f55c31967ea407e1e8c5
2017-08-24 21:57:08 +00:00
TreeHugger Robot
f3b78305ff Merge "New haptic feedback constants" into oc-mr1-dev 2017-08-24 21:02:57 +00:00
Andrii Kulian
d48474969e Merge "Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD" into oc-mr1-dev am: 7ee92d5291
am: a64529a989

Change-Id: I52a93678621d3d28e88cd7cdbfbfca3c2a96f0b2
2017-08-24 20:39:54 +00:00
Andrii Kulian
7ee92d5291 Merge "Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD" into oc-mr1-dev 2017-08-24 19:59:08 +00:00
Yohei Yukawa
262dadf870 New haptic feedback constants
This CL introduces several haptic feedback constants that are ready
to be exposed to developers.

Test: checkbuild
Fixes: 64537070
Change-Id: If54d5bc6cab4e2c405615b7a40648c74a1097ea3
2017-08-24 10:51:00 -07:00
Wale Ogunwale
3382ab1fc7 Migrated some windowing methods from StackId to WindowConfiguration
First pass at transitioning away from using stack ids for windowing mode
to WindowConfiguration. Added some TODO that will require the introduction
of applicationType in WindowConfiguration before additional conversation
can be done.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
Test: adb shell am instrument -w -e package com.android.server.wm com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: go/wm-smoke
Change-Id: I2b315623faa16445a9f942e082089123842cb5a1
2017-08-24 08:57:10 -07:00
Jorim Jaggi
7559e6683c Merge "Sleep activities with AOD" into oc-mr1-dev am: f1ef6ef742
am: 2b99571564

Change-Id: Iae4b6dd49ba82cff1ba17b0d1265a085e1ad459e
2017-08-24 13:38:45 +00:00
Jorim Jaggi
f1ef6ef742 Merge "Sleep activities with AOD" into oc-mr1-dev 2017-08-24 13:19:42 +00:00
Andrii Kulian
732a90a794 Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD
Applied review comments but keeping the flag hidden for now.

Bug: 36555156
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testExternalDisplayActivityTurnPrimaryOff
Test: #testLaunchExternalDisplayActivityWhilePrimaryOff
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I1aa1289424d0d778bc0668c9ec69bc56f47891e3
2017-08-23 15:42:16 -07:00
Andrii Kulian
2955daca27 Merge "Track app visibility updates on the client" into oc-mr1-dev am: 0d008e3204
am: 0111667c9a

Change-Id: Icd38d427cb6b3339c99af8b56dcdb87c6aaabb76
2017-08-23 18:47:03 +00:00
Andrii Kulian
0d008e3204 Merge "Track app visibility updates on the client" into oc-mr1-dev 2017-08-23 18:06:50 +00:00
Jorim Jaggi
f12ec0fb64 Sleep activities with AOD
Previously in the last release we started sleeping as soon as
the device was not interactive anymore. However, this caused
issues with ambiactive activites on Android Wear.

Instead, we introduce a new private flag on a window that signals
that all activities should be put to sleep. We use this flag in
SystemUI as soon as SystemUI is "dozing", which means its ambient
display is showing. This flag gets set before we request PWM to
wake-up, so it's ensured that this will not cause any spurious
lifecycle events.

Test: go/wm-smoke
Test: android.server.cts.KeyguardTests
Change-Id: I20f6dd4bfde220f945ef94d2ac1b89dd3694de32
Fixes: 64940094
2017-08-23 16:24:07 +02:00
Phil Weaver
5add014517 Merge "Place focus on window when a11y performs an action" into oc-mr1-dev am: c6c9e089db
am: df79ca699d

Change-Id: I2089f32e0f370378eaf472cfeca5cc829e780e04
2017-08-22 17:07:26 +00:00
Phil Weaver
c6c9e089db Merge "Place focus on window when a11y performs an action" into oc-mr1-dev 2017-08-22 16:42:13 +00:00
Andrii Kulian
74b561a1fc Track app visibility updates on the client
When client receives two consecutive app visibility updates
sometimes it might handle them in single traversal pass and
in ViewRootImpl#performTraversals it will not detect a
visibility change.
Server side in this case will be stuck waiting for relayout
call from the client and will not draw the app window. This
can also cause focus not being switched properly and WM
remain with no focused window.

Bug: 64517357
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipFromTaskWithMultipleActivities
Test: Run the test and check if there are no focused window logs
Change-Id: I714da72a881e2dee5cf8dafd62113fbb9f2f3f4d
2017-08-21 13:43:44 -07:00
Phil Weaver
cc797d596d Double-check a11y node sealing during refresh
I believe this line can detect when a node is
recycled during a refresh. This change is much
more targeted than preventing all interactions
with recycled nodes.

Bug: 37858096
Test: A11y CTS and unit tests
Change-Id: I07dd6c2eccd2ba26347f42d4ecd2cefb684e2c8e
2017-08-21 12:45:11 -07:00
Phil Weaver
cf190ce1d2 Merge "Revert "Prohibit using recycled AccessibilityNodeInfos."" 2017-08-21 15:13:16 +00:00
TreeHugger Robot
a55e5640ed Merge "Fix typo in Window.onDetachedFromWindow()" 2017-08-19 00:32:48 +00:00
Chet Haase
e7bf2191c9 Fix typo in Window.onDetachedFromWindow()
Bug: 64788487 Wrong description of the Window.Callback.onDetachedFromWindow()
Test: N/A (doc-only fix)
Change-Id: I33ee34e10fed64c593f74942e28e187358b6b212
2017-08-18 15:27:18 -07:00
Phil Weaver
e195129019 Revert "Prohibit using recycled AccessibilityNodeInfos."
This reverts commit 11e5e3f875.

Change-Id: I389ab13ce63282f9e556ca63b61e392567de9bab
2017-08-18 17:56:04 +00:00
Wale Ogunwale
822e512127 Introducing WindowConfiguration
Used to house configurations that don't affect resources and that
we don't want to communicate to apps, but need to be propagated
along side Configuration.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
Test: adb shell am instrument -w -e package com.android.server.wm com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I97de3efbe6d5e1d3b07156a8cfbce9be5eae5cb5
2017-08-18 07:57:06 -07:00
Casey Burkhardt
4262286fda Merge "Make isAccessibilityButtonSupported public" into oc-mr1-dev am: 8e74686fb4
am: 58770c5759

Change-Id: I65262bf2903b72d60bb4d9cef5be145d8f1f0acd
2017-08-18 01:11:03 +00:00
chaviw
63542383d8 Added jni and SurfaceControl methods for native reparentChild
Added the Java methods to invoke the reparentChild method that
was added in the native code.

Test: Builds and runs

Change-Id: I25a783bbc820340a5346521a5783e50ada8c6828
2017-08-17 17:52:21 -07:00
Doris Liu
f374446100 Merge "Expose necessary methods/fields to CTS using testApi" 2017-08-18 00:30:14 +00:00
Phil Weaver
5dc3ebcec6 Place focus on window when a11y performs an action
Bug: 62344706
Test: Now able to bring up keyboard in split-screen mode.
Also a11y CTS and unit tests pass.

Change-Id: Ic4340425680c89e8fc5e586aa1d363b01fd69763
2017-08-17 16:48:48 -07:00
Felipe Leme
a96f7af211 Clarified that getAutofillValue() must return same value passed to autofill().
Test: m doc-comment-check-docs
Bug: 64114048

Change-Id: I618cc3703db64315a848cc483f460f1b27fec98b
2017-08-17 16:18:44 -07:00
Casey Burkhardt
02f3b807db Make isAccessibilityButtonSupported public
Bug: 62342696
Test: Builds
Change-Id: I02082f2db349181473b2a7fd367fc8892d495fc1
2017-08-17 02:50:45 -07:00
Felipe Leme
e48324fecd Merge "Revert "Dismiss Autofill Save UI when a new Activity is launched."" into oc-mr1-dev am: 10d176009d
am: d946caaaef

Change-Id: Icff915376a79348074c2b84ef9e52cc15e27d35c
2017-08-17 06:05:30 +00:00
Philip P. Moltmann
e066ae3661 Merge "Don't get struct of children of !laidout viewGroup" into oc-mr1-dev am: 4c0e55d0fc
am: a6338b9dae

Change-Id: Ia1b71dbcfd9bc5560aaa810faf26ad9c3244f783
2017-08-17 04:17:47 +00:00
Romain Guy
11159d15ed Merge "Merge "Hide shared buffer mode/auto refresh on Surface" into oc-mr1-dev am: ee3602595a" into oc-mr1-dev-plus-aosp
am: 9446e27025

Change-Id: Ib0068aee9bc2c4c7b605c5ba024c1fa7c0b59cf4
2017-08-17 03:17:39 +00:00
TreeHugger Robot
10d176009d Merge "Revert "Dismiss Autofill Save UI when a new Activity is launched."" into oc-mr1-dev 2017-08-17 03:07:02 +00:00
Doris Liu
197a67435d Expose necessary methods/fields to CTS using testApi
BUG: 62066083
Test: CtsViewTestCases

Change-Id: Iea7d752e38d046e3547c41cb987115472a7630f6
2017-08-17 01:04:45 +00:00
Philip P. Moltmann
4c0e55d0fc Merge "Don't get struct of children of !laidout viewGroup" into oc-mr1-dev 2017-08-16 23:49:21 +00:00