Commit Graph

7535 Commits

Author SHA1 Message Date
TreeHugger Robot
ae30c68489 Merge "VideoView2: Remove APIs supported by MediaSession" 2018-01-25 21:53:12 +00:00
Sungsoo Lim
82af545ca6 VideoView2: Remove APIs supported by MediaSession
Developers can use a MediaController instance from
getMediaController() instead.

Test: build
Change-Id: If58a040155a2a6894227aa89c20e7dbed6643c4e
2018-01-25 17:14:43 +09:00
TreeHugger Robot
c4a79e03ad Merge "Introduce InputConnection#reportLanguageHint()" 2018-01-25 04:23:38 +00:00
Evan Rosky
c41adfac71 Merge "Expose selector draw condition for test" 2018-01-25 00:08:03 +00:00
Jin Seok Park
482173e03c Change MediaControlView2 APIs
Test: build
Change-Id: Ida307fa16f76e680aa12b92cbce4a8635cac17b2
2018-01-24 16:13:42 +00:00
Jin Seok Park
421e7ec3df Merge "Put latest MediaControlView2/VideoView2 code" 2018-01-24 11:24:17 +00:00
Sungsoo Lim
c9af5b3076 Merge "VideoView2: Add API for MediaRouter intergration" 2018-01-24 10:15:29 +00:00
Hyundo Moon
efeb45eabd Put latest MediaControlView2/VideoView2 code
This CL brings latest MediaControlView2/VideoView2 code from
experimental, and it does the following:
 - Fullscreen button support (ag/3490251)
 - Set prev/next listener and controlling button visibility (ag/3498244)

Test: Ran VideoViewTest app
Change-Id: I1a64a9c98dcc625b504785728673edbee7b6935d
2018-01-24 19:07:38 +09:00
Jin Seok Park
8b314b2b5d Merge "Add API documentation for MediaControlView2" 2018-01-24 06:35:28 +00:00
Sungsoo Lim
af2a1ad069 VideoView2: Add API for MediaRouter intergration
Test: build
Change-Id: I3d52d332f587ea8c5b1fa97de512805001e9a130
2018-01-24 15:12:26 +09:00
Jin Seok Park
d9ce1bce82 Add API documentation for MediaControlView2
Test: ran 'make doc-comment-check-docs' after removing @hide tag.
Change-Id: I0eb45ed92e853ec1683c54863f0fdecccd2aa6e9
2018-01-24 14:36:28 +09:00
Yohei Yukawa
e77386e8fb Introduce InputConnection#reportLanguageHint()
The goal of this CL is to introduce a way for IMEs to tell
applications about what languages are likely to be used in the text to
be committed, for IMEs that support dynamic language switching
(especially without relying on InputMethodSubtype).

It is already obvious that InputMethodSubtype is not working well for
this use case.  We need is a simple, easy, and back-portable way that
can be widely accepted by the ecosystem.

Bug: 7031513
Test: atest CtsInputMethodTestCases
Change-Id: Ie86edafd1ed68b58f702116f561fc448fdbb57a8
2018-01-23 10:39:32 -08:00
Insun Kang
0945bb7418 Merge "Release MediaSession when VideoView2 is detached from window." 2018-01-23 09:40:24 +00:00
Insun Kang
eb78d511cb Add API docs for VideoView2
Test: ran 'make doc-comment-check-docs' after removing @hide tag.
Change-Id: I1c3492e8c302b9a6222b5400e71ccbabaaa372a3
2018-01-23 08:11:47 +00:00
Insun Kang
fd3fdfdfed Release MediaSession when VideoView2 is detached from window.
Test: build
Change-Id: I36baae35cc8196e3fa2fc9f9bdda4219ffaf863d
2018-01-23 15:01:37 +09:00
Evan Rosky
8e5bd81c56 Expose selector draw condition for test
There is no other way for a test to inspect whether the
selector drawable will be drawn or not. This adds a hidden
test api to expose it

Bug: 67881712
Test: AbsListViewTest#testSelectorOnScreen
Change-Id: I3b6d25a0c8cb0c5f6c8bfc45eaa2660caa133b7d
2018-01-22 09:36:41 -08:00
TreeHugger Robot
24de6a45aa Merge "Initial commit for VideoView2Impl" 2018-01-19 09:57:15 +00:00
Insun Kang
de16c4d357 Initial commit for VideoView2Impl
Test: build
Change-Id: I12b93da01b9c37115cba29b8b50b36cf3d74ddb6
2018-01-19 14:41:39 +09:00
TreeHugger Robot
f5e25a3052 Merge "Add semantics for accessibility headings" 2018-01-19 00:53:49 +00:00
Phil Weaver
6290fb599a Add semantics for accessibility headings
Adding the ability to mark TextView as a heading, and
to provide a heading depth. Plumbing that through to
accessibility services.

Bug: 34687453
Test: Adding CTS tests for new APIs.
Change-Id: I5262e32a2a11b2577802c68e701d2856e28abc21
2018-01-18 14:13:06 -08:00
TreeHugger Robot
b6e7e7531d Merge "Fix crash in EditText#getText" 2018-01-18 21:30:13 +00:00
Clara Bayarri
b102cc2435 Fix crash in EditText#getText
The fact that View's constructor may call other methods before the
TextView constructor has a chance to initialize values means that
getText() may return null in the rare case where it is called
before the constructor.

Protect getText() from running into errors when the text is null,
as it just means the value is not ready yet.

Bug: 71638589
Test: CTS in topic
Change-Id: Ie11233416385353f78e3ee27fb0d3ec9b671512f
2018-01-18 12:36:00 +00:00
TreeHugger Robot
20f29fdaca Merge "Fix extra space in Suggestions Popup" 2018-01-18 12:20:37 +00:00
Abodunrinwa Toki
f317e583e4 Merge "Implement text baseline attributes for TextView." 2018-01-18 01:11:05 +00:00
Clara Bayarri
e0f35eea46 Fix API review javadoc issues in TextView/ExtractedText
Bug: 71555183, 71555182
Test: none, javadoc
Change-Id: I98d5d53f0cd4873d637b454bbc313b50fe2ca811
2018-01-17 12:17:53 +00:00
TreeHugger Robot
2aa64c06d0 Merge "Skeleton for updatable VideoView2" 2018-01-17 02:08:29 +00:00
TreeHugger Robot
b0538e6dac Merge "[Magnifier - 14] Follow finger instead of cursor" 2018-01-16 19:22:36 +00:00
Mihai Popa
1d1ed0cd6e [Magnifier - 14] Follow finger instead of cursor
This CL makes the magnifier follow the finger rather than the cursor in
text editing. Hence, the magnifier's movement becomes horizontally
smooth, rather than only jumping at the same time with the cursor.
Vertically it remains stable relative to the current line.

Bug: 70508649
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I7e06a7064f0a413379b30c5e2d11ee85d2ad3720
2018-01-16 17:28:11 +00:00
Sungsoo Lim
e325904987 Skeleton for updatable VideoView2
Test: manual
Change-Id: I77a960269e19ddf3659ffb9e60a69c4ca86f101b
2018-01-16 17:01:56 +09:00
Abodunrinwa Toki
e94a75a1a0 Implement text baseline attributes for TextView.
Bug: 71816223
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I0a9121ded88f954c5180ea35df0e666801cd8978
2018-01-16 03:37:40 +00:00
Seigo Nonaka
b01e18c3ee Merge "Rename PremeasuredText to MeasuredText" 2018-01-16 00:47:52 +00:00
TreeHugger Robot
1f31d9a8dd Merge "Making TextClassifier helper objects parcelable" 2018-01-15 11:26:06 +00:00
Richard Ledley
b033685533 Merge "Set selection bounds when we try to copy, so it will work with nonselectable text." 2018-01-13 00:15:19 +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
Richard Ledley
b30669861f Merge "Make Linkify links clickable in nonselectable text." 2018-01-12 10:40:20 +00:00
Richard Ledley
4b823b9406 Set selection bounds when we try to copy, so it will work with nonselectable text.
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Bug: b/67629726
Change-Id: I685ae3527685665eb3b50aaea90a570ebec47fd7
2018-01-12 10:13:26 +00:00
TreeHugger Robot
0b2249786f Merge "Move A11y events throttling away from View(RootImpl)" 2018-01-11 22:57:35 +00:00
Seigo Nonaka
9d3bd08eba Rename PremeasuredText to MeasuredText
There is already MeasuredText, so renamed existing MeasuredText to
MeasuredParagraph, then renamed PremeasuredText to MeasuredText.

Bug: 67504091
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit CtsTextTestCases:*
Change-Id: Ie20bea9501b18fabb36f64d388a7851c4643d4c3
2018-01-11 11:33:32 -08:00
Richard Ledley
724eff9a3d Make Linkify links clickable in nonselectable text.
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest\#testToolbarAppearsAfterLinkClickedNonselectable
Bug: b/67629726

Change-Id: I94452116453fff1a36f5d567b3a686e92e97a34f
2018-01-11 14:16:14 +00:00
TreeHugger Robot
3101268dd8 Merge "Avoid unnecessary division in TextView.Marquee.tick." 2018-01-10 21:31:19 +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
TreeHugger Robot
fe3cc4b996 Merge "Initial commit of updatable media API" 2018-01-09 19:05:15 +00:00
TreeHugger Robot
0f4c4232d7 Merge "Renaming leftover from previous CL..." 2018-01-08 23:09:32 +00:00
TreeHugger Robot
2ef95c9d1d Merge "Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry()." 2018-01-08 21:17:30 +00:00
Felipe Leme
0ca18071b2 Renaming leftover from previous CL...
Test: echo 'In TreeHugger we trust!'

Bug: 71552872

Change-Id: I2b317c28cb7ec0e74b2cfa98338f9d64ff7dce3b
2018-01-08 13:00:25 -08:00
Felipe Leme
01f4f03188 Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry().
Test: manual verification using com.facebook.katana
Fixes: 71695541

Change-Id: Idefc7d3799f2ef5525a5050d63ca29a19cab730a
2018-01-08 11:28:20 -08:00
Siyamed Sinir
8038267b98 Enable/disable fallback line spacing in TextView
Add API to enable/disable fallback line spacing in TextView.

Test: bit FrameworksCoreTests:android.widget.TextViewFallbackLineSpacingTest

Bug: 65161512

Change-Id: I76ba7bdb7d25c7a94653144536295c50d8b0e495
2018-01-04 19:48:35 -08:00
Christofer Åkersten
cfa037065e Initial commit of updatable media API
Test: Created instance & called method
Change-Id: I85f6ea946ef7886abe496b7a851d5b6d50e235b5
2018-01-04 20:50:24 +09: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
TreeHugger Robot
6ea80ae06c Merge "Fix crash in EditText#getText" 2018-01-03 03:37:55 +00:00