Commit Graph

10701 Commits

Author SHA1 Message Date
Richard Ledley
9cfa60673a Add flag to control smart linkify.
Test: manual

Change-Id: If72f031b37ed313828d97d500af587bed6e8383b
2018-01-15 13:14:06 +00:00
TreeHugger Robot
1f31d9a8dd Merge "Making TextClassifier helper objects parcelable" 2018-01-15 11:26:06 +00:00
Yohei Yukawa
623e94b857 Use lambda when appropriate
This is a safe refactoring that should have no behavior change in
terms of semantics and performance characteristics.

Test: make -j checkbuild
Change-Id: I30b40c483e490ff42c1c707233ca5cc7b67da28f
2018-01-14 16:30:59 -08:00
Yohei Yukawa
b2a0e0509a Fix JavaDoc errors
Test: make -j checkbuild
Change-Id: Id68ebd3588cd286c821da49e3bda4299d311e8b9
2018-01-14 16:06:16 -08:00
Lucas Dupin
e1daf52b92 Merge "Allow custom keyguard "prompt reason"" 2018-01-13 01:13:26 +00:00
TreeHugger Robot
2d0a8c0248 Merge "Remove @hide for KEYCODE_ALL_APPS" 2018-01-13 00:41:56 +00:00
Jan Althaus
0d9fbb9bd1 Making TextClassifier helper objects parcelable
- EntityConfidence is no longer generic because it doesn't mix well with
  being Parcelable.
- Deprecated OnClick listeners in TextClassification as they can't be
  parceled. (Outright removed the secondary listeners that were not part
  of any release)
- Classes that were present in previous releases have their parceling
  factored out into ParcelableWrapper helper classes for backwards
  compatibility.

Bug: 67609167
Test: Added
Change-Id: I820ca4abc6b80f90007ab4424bc5df2a14f797b0
2018-01-12 17:53:07 +01:00
Eugene Susla
c9f5091a2c Fix for bad merge between ag/2455811 and ag/3424187
Test: presubmit
Change-Id: Ib0b5d54cf94e2998eeb661fc57e9d0bfb2e1afdc
2018-01-11 16:03:34 -08:00
TreeHugger Robot
0b2249786f Merge "Move A11y events throttling away from View(RootImpl)" 2018-01-11 22:57:35 +00:00
Sujith Ramakrishnan
d2c9bc8304 Remove @hide for KEYCODE_ALL_APPS
- KEYCODE_ALL_APPS which was introduced late in O is now a
      proper & valid keycode in P

Bug: 64935695
Test: Manual: ALL_APPS: adb shell input keyevent 284
Test: also tested with --longpress for these keys

Change-Id: If56c5b87f88e927c52468485b790581fa19ad48b
2018-01-11 13:45:48 -08:00
Phil Weaver
ce35097eb6 Merge "A11y support for titles of "panes"" 2018-01-11 21:36:44 +00:00
Lucas Dupin
c80c67e7bc Allow custom keyguard "prompt reason"
Adds the possibility of presenting a custom message on
the keyboard if you're trying to dismiss the keyguard.

This is particularly useful when you're showing the
bouncer because custom authentication (SmarLock)
failed.

Test: launch FLAG_SHOW_WHEN_LOCKED activity and
      call KeyguardManager#requestDismissKeyguard
Fixes: 63940122
Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
2018-01-11 13:15:31 -08:00
TreeHugger Robot
32308613b5 Merge "Concise toString for A11yEvent" 2018-01-11 20:38:49 +00:00
Phil Weaver
9f26b3de4c A11y support for titles of "panes"
Panes are a distinct portion of a window. Adding APIs to
support this concept.

Bug: 62231686
Test: Adding a new CTS test to verify that this value is
communicated properly to accessibility services.

Change-Id: I6edd08ec90e40640e71f5a3df292e8f15d5bcda4
2018-01-11 09:50:31 -08:00
TreeHugger Robot
d396b28c20 Merge "Dispatch DisplayCutout from DisplayAdapter" 2018-01-11 16:36:31 +00:00
TreeHugger Robot
a28ed766c4 Merge "Add WindowContainer proto definitions" 2018-01-11 15:30:00 +00:00
Adrian Roos
1cf585059c Dispatch DisplayCutout from DisplayAdapter
Adds a config resource to configure the main display's cutout and
dispatches it from the LocalDisplayAdapter.

WindowManager's DisplayContent then transforms it to match the current
rotation.

Also fixes an issue in EmulatedDisplayCutout where the Path was never
reset and changes the color to black. Also fixes the RoundedCorners
overlay such that it can layout within the cutout area.

Test: atest CoordinateTransformsTest DisplayContentTests
Bug: 65689439
Change-Id: If39c8ea3cb55c761517f270dcca292682c0918ad
2018-01-11 15:43:05 +01:00
TreeHugger Robot
e6050a4a0f Merge changes from topic "messaging_people"
* changes:
  Clipping to the top roundness when scrolling
  Made the notification side paddings consistent
  Changing messaging style and overall visual adoption
  Improved the MessagingStyle API with Person
  Added People to the Notification API
2018-01-11 03:07:09 +00:00
Eugene Susla
1abf48e8c0 Concise toString for A11yEvent
I found A11yEvents hard to parse in logs as they take ~3 lines on my
30" monitor, most of which denoting fields that rarely differ from default.

This CL adds an opt-in debug flag to not print default-valued fields, which
dramatically cuts down the noise when trying to parse logs.

Test: enable DEBUG in A11yManager, and observe logcat
Change-Id: I979200194ee3597c1a8501195437b4d4b8e21514
2018-01-10 17:35:37 -08:00
Selim Cinek
afeed29bdc Changing messaging style and overall visual adoption
The messaging style is changed to a bubble-less design.
In addition are we also updating a few spacings in
order for it to look nicer / more balanced.

Test: manual
Change-Id: I43326bd8a23cd1f1d5964d2d6740fde99d29c7e4
2018-01-10 20:14:03 +00:00
Vishnu Nair
04ab439865 Add WindowContainer proto definitions
Bug: 64831661
Test: verified proto dump from winscope
Change-Id: Id4d595a58f4ce0ce1891b3731ecbb5ce9b938006
2018-01-10 11:00:06 -08:00
Vishnu Nair
91e028dc9d Merge "Add window tracing functions to WindowMangerService" 2018-01-10 17:50:48 +00:00
TreeHugger Robot
381752d1c1 Merge "Lower FSP on window animation too" 2018-01-09 22:37:32 +00:00
Eugene Susla
e4d31b3c10 Move A11y events throttling away from View(RootImpl)
..and also extract common code into a common superclass

This also preserves the order of the throttled events
(TYPE_VIEW_SCROLLED & TYPE_WINDOW_CONTENT_CHANGED) with regards to the rest
of events by flushing any pending throttled events immediately if another
event is requested to be sent.

Test: ensure no new a11y CTS failures
Change-Id: I948a16716521974393aaa1cf822d0a0324e9ce3a
2018-01-09 13:28:59 -08:00
Eino-Ville Talvala
190e388ffe Merge "Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference" 2018-01-09 21:08:00 +00:00
Makoto Onuki
b708cbe2b6 Lower FSP on window animation too
Test: manual test with setprop debug.hwui.fps_divisor 4
Bug: 66945974
Change-Id: I4b637ed30003a9eae008b093f9e3d8b2a2f09319
2018-01-09 12:40:35 -08:00
Vishnu Nair
c961504b92 Add window tracing functions to WindowMangerService
Bug: 64831661
Test: Toggle window trace from new QS Tile
Change-Id: I34f9604e9af8f1d901245c9bb7a733c01ad86ecc
2018-01-09 07:29:49 -08:00
TreeHugger Robot
26db21ba9c Merge "Remove @SystemApi annotation from private or package-private members" 2018-01-06 00:54:32 +00:00
Eino-Ville Talvala
ec99efa03b Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference
- MOTION_TRACKING capability defines a camera with accurate lens calibration
  values, accurate timestamps relative to the inertial sensors, and ability
  to limit exposure time to 20ms max.
- Add android.lens.poseReference for supporting gyroscope-centered lens calibration
  data for MOTION_TRACKING.
- Minor changes to some docs formatting.

Test: Builds
Bug: 63629224
Change-Id: Ic303240890c709725f60e69dfff76beea4a0ef91
2018-01-05 12:00:53 -08:00
TreeHugger Robot
e0e69f8704 Merge "Using RenderNode for creating snapshot of a View, so that hardware bitmaps are drawn properly" 2018-01-04 22:05:37 +00:00
TreeHugger Robot
6d7e05dc3f Merge "Validate hotspot when loading PointerIcon from resource" 2018-01-04 21:54:40 +00:00
TreeHugger Robot
def6d70aee Merge "Clarify accessibility event documentation" 2018-01-04 21:30:13 +00:00
Evan Rosky
d2f4186914 Merge "Don't allow 0-sized views to be focused." 2018-01-04 20:19:43 +00:00
TreeHugger Robot
f7b59447cf Merge "Add WindowState and LayoutParams proto" 2018-01-04 19:17:51 +00:00
TreeHugger Robot
1e8a6d36bc Merge "Refactored Field Classification score logic so it can be moved to ExtServices." 2018-01-04 19:00:40 +00:00
TreeHugger Robot
f84ec9687a Merge "Added new Autofill APIs to get name of id used on android:text." 2018-01-04 18:40:24 +00:00
Phil Weaver
9042643c1f Clarify accessibility event documentation
Removing suggestions to get information from events that
can instead be extracted from the node hierarchy.

Clarifying window change and announcement.

Comment changes only. I'm trying to steer developers to
use the APIs as we currently thing about them, but I'm
not changing any behavior.

Test: make
Change-Id: Ieecedbb98bdf11cf0cf4a29856db497986faaca6
2018-01-04 10:25:55 -08:00
Sunny Goyal
d1b287e56f Using RenderNode for creating snapshot of a View, so that hardware
bitmaps are drawn properly

Test: atest FrameworksCoreTests:ViewCaptureTest
Change-Id: Ie137e8a73fb84665df7a55facd02b10d78764c80
2018-01-04 09:41:17 -08:00
Vishnu Nair
1d0fa0736d Add WindowState and LayoutParams proto
Bug: 64831661
Test: verify data using winscope
Change-Id: I91c9abcdbc45b53ed5f354e173e6fd03396e2744
2018-01-04 07:53:00 -08:00
Felipe Leme
5dc45ca349 Added new Autofill APIs to get name of id used on android:text.
Such resource id is useful to help the autofill service heuristics to figure out
the meaning of the labels without relying on their localized text. For example,
the id could be "username", while the text could be "Nome do usuario".

Test: atest CtsAutoFillServiceTestCases:LoginWithStringsActivityTest

Fixes: 71552872

Change-Id: I13f7080fb3c67f91492a113115ffa43d185d192a
2018-01-03 16:09:55 -08:00
Felipe Leme
27f4573d13 Refactored Field Classification score logic so it can be moved to ExtServices.
Bug: 70939974
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest \
            CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: If584ab3a55744a62f427065bfd44c8c219df83e9
2018-01-03 09:27:51 -08:00
Phil Weaver
bb2f28a776 Make accessibility window events more granular
TYPE_WINDOWS_CHANGED events have meant that "something"
changes with the system windows, so a single event would be
fired for a single small window change or a bunch of window
changes. Services were required to cache the windows and
compare the old ones to the new ones to find out what
changed.

Since AccessibilityEvents are intended to communicate
changes to the UI, this CL sends one TYPE_WINDOWS_CHANGED
for each window that has changed, and provides a way to
get the source of the changing window. It also adds a
windowChangeType field, which contains flags to indicate
what exactly has changed for the window.

Bug: 62231686
Test: Run all a11y unit and cts tests
Change-Id: I6c48e74da26be5ea485ac114a37f3c404a74940e
2018-01-03 08:51:18 -08:00
Jiyong Park
8505e098bd Remove @SystemApi annotation from private or package-private members
Some private or package-private members have been marked as @SystemApi,
which do not make sense as they aren't accessible to apps due to the
access modifier. Having annotation on such members hasn't been harmful,
but will soon trigger CTS failures when we do the exact match for
SystemAPIs; a runtime entity annotated as @SystemApi have to exist in
the documented API (e.g. system-current.txt). So, removing the bogus
annotations.

Bug: 67891551
Test: m -j does not require m update-system-api
Change-Id: I0083475ef5435cf9a582c2ce1be469c92328fe69
2018-01-03 10:03:38 +09:00
TreeHugger Robot
17f3d1abb5 Merge "New Autofill API:AutofillManager.getAutofillServiceComponentName()" 2017-12-21 04:48:35 +00:00
TreeHugger Robot
bd55ffc0f6 Merge "Support new Autofill session after service returns a null FillResponse." 2017-12-21 02:00:56 +00:00
TreeHugger Robot
247791f9ce Merge "Allow hover tooltips for disabled views." 2017-12-20 23:15:51 +00:00
Felipe Leme
23c75ffdae New Autofill API:AutofillManager.getAutofillServiceComponentName()
Also minor fixes on isFieldClassificationEnabled() to make sure it's ignored
when not called by the service app and its calls are properly synchronized.

Test: atest CtsAutoFillServiceTestCases:LoginActivityTest#testGetAutofillServiceComponentName

Fixes: 70678279

Change-Id: I58ccb313d22c30af907f3da62f727f067240fa66
2017-12-20 14:02:17 -08:00
Vladislav Kaznacheev
44e7de3a2a Validate hotspot when loading PointerIcon from resource
Currently PointerIcon.load and PointerIcon.getSystemIcon do not
check if the hotspot position is within the bounds of the underlying
bitmap. The check is performed only in PointerIcon.createFromParcel
which is called in the system server process and the resulting
exception might be hard to trace to the root cause.

Bug: 70862454
Test: android.widget.cts.PointerIconTest
Change-Id: I7f19cc9fc60b7bf72ad53403c203087201a5810c
2017-12-20 12:18:03 -08:00
Phil Weaver
348bd7191f Merge "Make accessibility anchor id a long" 2017-12-20 19:02:40 +00:00
Adrian Roos
4e937c0557 Merge "Display Cutout: Make API public" 2017-12-20 16:33:20 +00:00