f299fc03973503b81ca1cb99695d0066c3c6605a |
|
17-May-2018 |
Abodunrinwa Toki <toki@google.com> |
End the TC session on terminal selection event actions This regressed when introducing TC sessions in I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521 When the user triggers a terminal selection event such as "Copy", we should immediately end the session instead of waiting for the "Abandon" event (i.e. selection dismissed) to be included in the logs. Terminal selection events implicitly dismiss a selection and we'd rather distiguish between an actual "selection dismiss" from one that happened because of a "terminal" selection event. This cl also removes the "*" marker used to distinguish the new logging from the old ones. The code for the old logging has already been deleted so no more need for a marker. Bug: 78541105 Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: Iac7d45dbc63e7076683742bd045766a1d927cfc9
/frameworks/base/core/java/android/widget/TextView.java
|
3128ebd880b2284ee6459e8b0e137d44807a3346 |
|
09-May-2018 |
Yohei Yukawa <yukawa@google.com> |
Fix a typo in the API doc of TextView#setKeyListener() Fix: 79436805 Test: make -j docs Then check out/target/common/docs/offline-sdk/reference/android/widget/TextView.html#setKeyListener(android.text.method.KeyListener) Change-Id: I6c0d2a3af9434240c4e6e931185bc4f21b2e2b52
/frameworks/base/core/java/android/widget/TextView.java
|
11fa71845bead86b27600ef8712365065defece2 |
|
11-Apr-2018 |
Phil Weaver <pweaver@google.com> |
Move accessibilityHeader from TextView to View I put it on TextView to try to scope it as narrowly as possible, but an ImageView could be a heading, as could a LinearLayout that holds a TextView (like a preference). Bug: 77726494 Test: atest CtsAccessibilityServiceTestCases Change-Id: I9313ce6de25b5893db450f23499b151a4f08afda
/frameworks/base/core/java/android/widget/TextView.java
|
4e51877f5cbdb4a92568dce50c2bdc381cfbe861 |
|
27-Mar-2018 |
Clara Bayarri <clarabayarri@google.com> |
Fix crash when modifying Selection The root of this bug was in the fact that Selection.removeSelection removes two spans, the start index and end index of the selection. Each span removal triggers Editor#onSpanRemoved, which in turn tries to set a selection. This meant that if we started with selection (100, 120), then removeSpan(start) was called, so we had (-1, 120), then the onSpanRemoved code tried to set a selection so set it to (120, 120), then removeSpan(end) was called, ending up in (120, -1). There are two stages to this fix 1. A lot of our code assumes that when either start or end selection are larger than -1, both are valid. Therefore when we have one of them out of sync, we crash. Fixed this assumption in all the places I found 2. We didn't have a mechanism to use FLAG_INTERMEDIATE when removing spans, only when adding them, so this CL adds a remove with flags. This allows us to not trigger onSpanRemoved when only one of the selection indexes is removed. Because this is an added method to an interface, the default just calls the existing method. The new method is implemented in SpannableStringInternal and SpannableStringBuilder to read FLAG_INTERMEDIATE and avoid sending a spans changed event. Selection.removeSelection then uses FLAG_INTERMEDIATE when removing the first of the two selection spans. Note that 2. would be enough to fix the current bug, but we want to avoid other implementations of Spannable from crashing in the wild. In general, it seems like a good idea to verify both selection indexes are valid whenever they are used. Bug: 72101848 Test: atest FrameworksCoreTests:SpannableStringBuilderTest Test: atest FrameworksCoreTests:SpannableStringTest Test: atest CtsWidgetTestCases:TextViewTest Test: atest CtsWidgetTestCases:EditTextTest Test: atest android.text.cts.SelectionTest (note new test as well) Test: atest android.view.inputmethod.cts.BaseInputConnectionTest Test: atest android.text.DynamicLayoutTest Change-Id: I0d647fad152d0bef0f2115a46c3d17ebd8642281
/frameworks/base/core/java/android/widget/TextView.java
|
080c8542b68cf17a0441862c404cb49ce0e86cfe |
|
27-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
TextClassifier API updates. 1. Wraps TC queries in Request objects 2. Adds create/destroyTextClassificationSession system APIs 3. Adds the session Ids to system API calls 4. Change setSignature() to setId() on result objects 5. Plumbing to make the API updates work as things currently work 6. Hide Linkify.addLinksAsync APIs Bug: 74461129 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTest Change-Id: I933ada8b37ef9893331a265e3b4fc08e043f1029
/frameworks/base/core/java/android/widget/TextView.java
|
119d10deb9605502df829becc14d2a0d57a2a50a |
|
28-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Merge "Implement Stateful TextClassifier APIs." into pi-dev
|
ebd87bf39564067080a868063876091c723e2f79 |
|
28-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Use on-screen text in a11y text changed event" into pi-dev
|
88be5a6cee59868eaee6f7b52fd8b2e6f6f28429 |
|
23-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Implement Stateful TextClassifier APIs. Outstanding work tbd in other CLs - Introduce request objects with session Ids - Implement character based indexing for Selection events. This CL hides the old Logger API but still keeps running so that we can check that the modifications to the new API does not break anything. We will remove the old Logger once we're convinced this is stable. Please refer to I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521 for previous reviews related to this CL. Bug: 74461129 Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: Iea744f1fa5964b4399290c31863ebeffa99af8d3
/frameworks/base/core/java/android/widget/TextView.java
|
092f75439788ba2e7fa21b4f4d614f7d6b7d0851 |
|
21-Mar-2018 |
Phil Weaver <pweaver@google.com> |
Use on-screen text in a11y text changed event The beforeText in a text changed event was coming from the underlying CharSequence, not what was on the screen. As a result, it was not sent for password fields. Now we just provide whatever is on the screen, which is obfuscated to the same degree it is for a user looking at the screen. Bug: 75324441 Test: Verified with password field in TalkBack sample app. Also atest CtsAccessibilityServiceTestCases Change-Id: Ib7a10313d2f9d0e44d2052e81e47f19967a67bc4
/frameworks/base/core/java/android/widget/TextView.java
|
a1ff74c68dad21694403d6aa8abb42337cbca658 |
|
27-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Stop using DynamicLayout in case of non selectable PrecomputedText" into pi-dev
|
d982f561ccd404e1ece80748cc2912fef03bfb3f |
|
27-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix random SmartLinkify-related TextView bugs." into pi-dev
|
0c5daa19e374c628027e1dafd5f94e7dccc1c3b8 |
|
23-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Stop using DynamicLayout in case of non selectable PrecomputedText DynamicLayout is required when - The text is Editable. - The selection is enabled on TextView. This CL stops using DynamicLayout when the TextView is not selectable TextView and the input text is PrecomputedText. Bug: 72998298 Test: atest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest CtsTextTestCases FrameworksCoreTests:android.text CtsWidgetTestCases:TextViewPrecomputedTextTest Change-Id: Ic4a66ad3ed8868570735e3199879b74132a8c4aa
/frameworks/base/core/java/android/widget/TextView.java
|
520969191b37ddfca441b8065543fd0dee7dd74e |
|
22-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Fix random SmartLinkify-related TextView bugs. 1. Preserve selection when the TC times out. (See: SelectionActionModeHelper) 2. Fix highlight/toolbar flicker when tapping on a smart link. - Highlight flicker happening because we reset the selection while in the process of starting a link action mode. i.e. onLinkDown: show highlight onLinkUp: start the link action mode asynchronously onLinkUp: reset the selection to an insertion cursor* onLinkActionModeStarted: reset the highlight *Fix: Don't reset selection while starting a link action mode. - Toolbar flicker happening because the toolbar positions itself over the current selection. The way link highlights have traditionally been done is to set the selection to the links bounds* *Fix: Hide the toolbar for a few milliseconds when changing selection for smoother transition. 3. Fix Paste menu overriding link action mode toolbar after a recent "Copy" action. The Paste menu appearing is a feature. Whenever the user inserts a cursor after just copying some text, we show the Paste menu as a way to make it easy for the user to select the text. Because of the problem described in (2) above, changing the selection to an insertion triggers the Paste menu feature. Fixing (2) fixes this. 4. Fix IME popping up on non-selectable + focusable TextViews. See: imm.showSoftInput(...) in Editor. And see comment in the code around that. We should only pop up the IME for editable text. Fixes: 73872461 Fixes: 75985239 Fixes: 76011461 Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Change-Id: If9ddb7f4e6d4db480ba4a495a22f7f2924ab937e
/frameworks/base/core/java/android/widget/TextView.java
|
02c8d1b07fc5841029173ef9396ead24ef96ac2c |
|
23-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Make PrecomputedText Spannable for supporting selection" into pi-dev
|
e9a7cb8158387d34214b55cf3333e964dd2afe51 |
|
22-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix smart_linkify_enabled flag." into pi-dev
|
6563833cf3c79e8cd211e32357422ae899674437 |
|
16-Mar-2018 |
Abodunrinwa Toki <toki@google.com> |
Fix smart_linkify_enabled flag. The flag should only ensure that smart linkify calls behave in the legacy way instead of totally disabling linkify. Also, to keep the flag consistent with smart_selection_enabled and smart_text_share_enabled flags, the flag should only disable the SmartLinkify (i.e. Linkify.addLinksAsync) feature not TextClassifier APIs (i.e. TextClassifier.generateLinks). Also fixes issue with non-focusable TextViews by firing the primary action instead of showing the floating toolbar. (b/73156794) Bug: 75967597 Bug: 73156794 Test: bit FrameworksCoreTests:android.text.util.LinkifyTest Test: bit CtsTextTestCases:android.text.util.cts.LinkifyTest Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: manual - checked behaviour turning flag on/off Test: manual - checked behaviour with TextView.setFocusableInTouchMode(true/false) Change-Id: I541f60161b9cd63ce7e57235607500f2fb0841e7
/frameworks/base/core/java/android/widget/TextView.java
|
a553477ddf55d170a66410ed325ae5e5d3005965 |
|
15-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Make PrecomputedText Spannable for supporting selection This is 2nd attempt of I072dfd70b9a687d9c47e310d8cdb34f988fbb32e The root cause of crashing is unexpected copying of NoCopySpan by SpannableString constructor. To prevent crashing, stop copying NoCopySpan by passing ignoreNoCopySpan=true to SpannableString copy constructor. The original commit message is following: To support selectable TextView, make PrecomputedText spannable. By this change, TextView start using DynamicLayout instead of StaticLayout. DynamicLayout requires boundary rectangle of the text, so this CL also adds getBounds method to PrecomputedText which retrieves measured boundary box from native. By this change, the selectable TextView performance for the precomputed text 10x faster. On the other hand, the performacne for the non-selectable text gets 2.5x slower. However, we concluded that we accept this performance regression since it still 10 times faster than non precomputed text. Here is a precomputed text performance result of TextView. android.widget.TextViewPrecomputedTextPerfTest: newLayout_PrecomputedText : 736,130 -> 1,648,694: (+124.0%) newLayout_PrecomputedText_Selectable: 17,379,765 -> 1,700,146: (-90.2%) onDraw_PrecomputedText : 1,274,921 -> 1,848,076: (+45.0%) onDraw_PrecomputedText_Selectable : 17,367,238 -> 1,399,169: (-91.9%) onMeasure_PrecomputedText : 752,875 -> 1,766,606: (+134.6%) onMeasure_PrecomputedText_Selectable: 17,647,842 -> 1,810,704: (-89.7%) setText_PrecomputedText : 92,894 -> 135,471: (+45.8%) setText_PrecomputedText_Selectable : 145,134 -> 215,757: (+48.7%) Bug: 72998298 Test: atest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest CtsTextTestCases FrameworksCoreTests:android.text CtsWidgetTestCases:TextViewPrecomputedTextTest Change-Id: Ie98c75d8b4ba962eaf0a544357b2ff1ade891118
/frameworks/base/core/java/android/widget/TextView.java
|
46c84bf237f0e1e4a60fbe763d0b699ad253ca85 |
|
19-Mar-2018 |
Siyamed Sinir <siyamed@google.com> |
Merge "Fix rounding error related to autoSize" into pi-dev
|
e887f4d2c18040276ee230fdd3dadaa6610a188e |
|
19-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Revert "Make PrecomputedText Spannable for supporting selection" Crash on Sheets APp This reverts commit 80ed5a35a90b62b8070d861b9755e230bd679951. Bug: 75652829 Change-Id: I40ddd1b9754e74fbd90d7a029cce9c6a7ede0777 Test: Manual
/frameworks/base/core/java/android/widget/TextView.java
|
948693ea28e72a42cd36a014e91016bc967a71a4 |
|
16-Mar-2018 |
Siyamed Sinir <siyamed@google.com> |
Fix rounding error related to autoSize setupAutoSize fills in the possible text sizes that can be generated between a min and max value. In order to do that, it counts the number of steps starting from minSize until maxSize. However, while counting it rounds the initial value, which causes rounding error at the final step. Test: Change system font scale to 1.1 via adb shell settings put system font_scale 1.1 Test: atest android.widget.cts.TextViewTest Bug: 73917559 Bug: 75266270 Change-Id: I61811db28ef01262bd48f5042d783d75c71c3614 (cherry picked from commit db86a6b047dda704a1b8a6ff2d5b28b00febd444)
/frameworks/base/core/java/android/widget/TextView.java
|
80ed5a35a90b62b8070d861b9755e230bd679951 |
|
15-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Make PrecomputedText Spannable for supporting selection To support selectable TextView, make PrecomputedText spannable. By this change, TextView start using DynamicLayout instead of StaticLayout. DynamicLayout requires boundary rectangle of the text, so this CL also adds getBounds method to PrecomputedText which retrieves measured boundary box from native. By this change, the selectable TextView performance for the precomputed text 10x faster. On the other hand, the performacne for the non-selectable text gets 2.5x slower. However, we concluded that we accept this performance regression since it still 10 times faster than non precomputed text. Here is a precomputed text performance result of TextView. android.widget.TextViewPrecomputedTextPerfTest: newLayout_PrecomputedText : 736,130 -> 1,648,694: (+124.0%) newLayout_PrecomputedText_Selectable : 17,379,765 -> 1,700,146: (-90.2%) onDraw_PrecomputedText : 1,274,921 -> 1,848,076: (+45.0%) onDraw_PrecomputedText_Selectable : 17,367,238 -> 1,399,169: (-91.9%) onMeasure_PrecomputedText : 752,875 -> 1,766,606: (+134.6%) onMeasure_PrecomputedText_Selectable : 17,647,842 -> 1,810,704: (-89.7%) setText_PrecomputedText : 92,894 -> 135,471: (+45.8%) setText_PrecomputedText_Selectable : 145,134 -> 215,757: (+48.7%) Verified no effects for other performance metrics: android.widget.TextViewPrecomputedTextPerfTest: newLayout_RandomText : 16,495,200 -> 16,450,483: (-0.3%) newLayout_RandomText_Selectable : 17,482,439 -> 17,534,207: (+0.3%) onDraw_RandomText : 17,224,949 -> 17,228,072: (+0.0%) onDraw_RandomText_Selectable : 18,067,397 -> 17,958,235: (-0.6%) onMeasure_RandomText : 16,435,649 -> 16,516,352: (+0.5%) onMeasure_RandomText_Selectable : 17,724,819 -> 17,879,508: (+0.9%) setText_RandomText : 11,130 -> 11,259: (+1.2%) setText_RandomText_Selectable : 48,900 -> 48,607: (-0.6%) android.text.PrecomputedTextPerfTest: create_NoStyled_Hyphenation : 17,695,377 -> 17,660,233: (-0.2%) create_NoStyled_Hyphenation_WidthOnly : 17,677,423 -> 17,541,823: (-0.8%) create_NoStyled_NoHyphenation : 7,021,486 -> 7,030,069: (+0.1%) create_NoStyled_NoHyphenation_WidthOnly : 7,045,453 -> 7,067,021: (+0.3%) create_Styled_Hyphenation : 12,090,933 -> 12,267,730: (+1.5%) create_Styled_Hyphenation_WidthOnly : 12,105,491 -> 12,277,272: (+1.4%) create_Styled_NoHyphenation : 11,835,249 -> 11,960,278: (+1.1%) create_Styled_NoHyphenation_WidthOnly : 11,871,765 -> 11,912,444: (+0.3%) android.text.StaticLayoutPerfTest: create_PrecomputedText_NoStyled_Balanced_Hyphenation : 709,839 -> 697,134: (-1.8%) create_PrecomputedText_NoStyled_Balanced_NoHyphenation: 527,671 -> 528,928: (+0.2%) create_PrecomputedText_NoStyled_Greedy_Hyphenation : 477,259 -> 481,966: (+1.0%) create_PrecomputedText_NoStyled_Greedy_NoHyphenation : 479,772 -> 482,278: (+0.5%) create_PrecomputedText_Styled_Greedy_NoHyphenation : 639,322 -> 637,790: (-0.2%) create_RandomText_NoStyled_Balanced_Hyphenation : 17,123,681 -> 16,989,227: (-0.8%) create_RandomText_NoStyled_Balanced_NoHyphenation : 7,040,572 -> 7,064,175: (+0.3%) create_RandomText_NoStyled_Greedy_Hyphenation : 7,000,681 -> 7,002,322: (+0.0%) create_RandomText_NoStyled_Greedy_NoHyphenation : 6,997,115 -> 6,996,953: (-0.0%) create_RandomText_Styled_Greedy_NoHyphenation : 11,948,744 -> 12,052,791: (+0.9%) draw_PrecomputedText_NoStyled : 543,623 -> 513,741: (-5.5%) draw_PrecomputedText_NoStyled_WithoutCache : 564,742 -> 541,795: (-4.1%) draw_PrecomputedText_Styled : 838,581 -> 837,438: (-0.1%) draw_PrecomputedText_Styled_WithoutCache : 826,775 -> 850,586: (+2.9%) draw_RandomText_NoStyled : 538,162 -> 533,603: (-0.8%) draw_RandomText_NoStyled_WithoutCache : 6,401,486 -> 6,424,604: (+0.4%) draw_RandomText_Styled : 1,024,683 -> 1,011,575: (-1.3%) draw_RandomText_Styled_WithoutCache : 2,733,204 -> 2,722,828: (-0.4%) Bug: 72998298 Test: atest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest CtsTextTestCases FrameworksCoreTests:android.text CtsWidgetTestCases:TextViewPrecomputedTextTest Change-Id: I072dfd70b9a687d9c47e310d8cdb34f988fbb32e
/frameworks/base/core/java/android/widget/TextView.java
|
687bf8fe58405298a0af68e89dd4997272ea9aff |
|
13-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Add @attr for justificationMode Bug: 74510862 Test: "m docs" then see TextView API docs. Change-Id: I65b75232402d7ad52aba194e6e9def80c5486a18
/frameworks/base/core/java/android/widget/TextView.java
|
0efaf2088d8e3ba8ec560aa5eb597ef456b5213e |
|
07-Mar-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Introduce new perf test for TextView with precomputed text" into pi-dev
|
d15f04ef69a61722ea35de2e91923e44118e503b |
|
07-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Introduce new perf test for TextView with precomputed text Here is an example of perf test result: TextView new layout creation time: PrecomputedText : 740,173 PrecomputedText_Selectable: 17,727,649 RandomText : 17,130,685 TextView onDraw time: PrecomputedText : 1,471,075 PrecomputedText_Selectable: 31,971,393 RandomText : 17,667,572 TextView onMeasure time: PrecomputedText : 177,669 PrecomputedText_Selectable: 17,773,204 RandomText : 6,296,358 TextView setText (w/o layout creation) time: PrecomputedText : 91,858 PrecomputedText_Selectable: 152,665 RandomText : 11,130 Bug: 72998298 Test: ran perf test Change-Id: I69af74ba743499bc444c441c1472fb19878c2eec
/frameworks/base/core/java/android/widget/TextView.java
|
e1ffb54167c8ff78855352a324ff8332a33fc805 |
|
01-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Throw an exception in case of parameter mismatch of precomputed text If the given precomputed text is not compatible with the TextView, reject the text by throwing IllegalArgumentException. Bug: 73091756 Test: atest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest CtsTextTestCases FrameworksCoreTests:android.text CtsWidgetTestCases:TextViewPrecomputedTextTest Change-Id: I4fbf89a5f1409e8eefdeb9f208f9a3758220fe1a (cherry picked from commit 3a0787af5e1bb1f615c1dd2192a08464ea3776e3)
/frameworks/base/core/java/android/widget/TextView.java
|
27db81baf8f87a03635d85a9077a1c081d8bce57 |
|
01-Mar-2018 |
Richard Ledley <rledley@google.com> |
Don't use highlighting in non-selectable text. Also fixes potential discrepancy in indexes for Linkified entities. Test: atest CtsWidgetTestCases:TextViewTest FrameworksCoreTests:android.widget.TextViewActivityTest CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest FrameworksCoreTests:android.view.textclassifier.TextLinksTest Change-Id: Ib479afa9af2b921e6a217a34322a766561867b79 (cherry picked from commit bda1d9e740f2a1db186baedc41524cd2d56d145a)
/frameworks/base/core/java/android/widget/TextView.java
|
904fcdad411817fcd12c3e8b9e708b0c27bd6007 |
|
01-Mar-2018 |
Seigo Nonaka <nona@google.com> |
Fix CTS TextViewTest Id65a7e36487375f0e3a2c2da44ad8d7c5ea49734 changes the typeface associated with the TextView. It used be null if no attribute was set, but after above change, it is now Typeface.DEFAULT. The typeface is null means Typeface.DEFAULT but there is an expectations in CTS that getTypeface must return null if no attribute was set. To keep this behavior, call setTypeface with null if no font weight value was set. Bug: 74080879 Test: atest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest CtsTextTestCases FrameworksCoreTests:android.text Change-Id: Ic91827bbeed8a3a4b148dd8d305c78e384407ab0
/frameworks/base/core/java/android/widget/TextView.java
|
e245116af39f58288b3003f221fc0f151b0fea05 |
|
22-Feb-2018 |
Seigo Nonaka <nona@google.com> |
New attribute textFontWeight for selecting weight in the font family Note that AppCompatTextView doesn't work well with this attribute since it overwrites the selected Typeface. Bug: 63135308 Test: atest android.widget.cts.TextViewFontWeightTest Change-Id: I76ee5e3007ea5f96249d2a0bfb66ff5975c62522
/frameworks/base/core/java/android/widget/TextView.java
|
78cab5a5961b37d984069697dd0ba684184de6bd |
|
21-Feb-2018 |
Mihai Popa <popam@google.com> |
Merge "[Magnifier-23] Fix invisible cursor in magnifier"
|
e68ba070bbc68b6a336c1f7b02bbfdc02375defc |
|
20-Feb-2018 |
Seigo Nonaka <nona@google.com> |
Merge "Reorganize MeasuredText API (2nd)"
|
6ef5bbc9b194c014d3a8a9868ee9f50aee45e924 |
|
20-Feb-2018 |
Phil Weaver <pweaver@google.com> |
Merge "Get text positions from transformed text"
|
a4e39c4f596ebcc3769afdc358d78386c9f6f63b |
|
20-Feb-2018 |
Mihai Popa <popam@google.com> |
[Magnifier-23] Fix invisible cursor in magnifier Previously, if the magnifier was triggered when the cursor was invisible between blinks, the cursor would remain invisible until its position first changed as a result of user dragging. This CL fixes this, by forcing the cursor to become visible when the magnifier is triggered. Test: manual testing Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest Bug: 72314929 Bug: 63531115 Change-Id: I95dd0c2474f1cd1695ff3083e062ee38867b8a0c
/frameworks/base/core/java/android/widget/TextView.java
|
beafa1f9d2845ee9b5ca352087de03ed0afe7db7 |
|
02-Feb-2018 |
Seigo Nonaka <nona@google.com> |
Reorganize MeasuredText API (2nd) This is 2nd attempt of I7db9e2ca4db68a16648cfb8fcf63555f501304c2 This CL changes the MeasuredText API: - Rename MeasuredText to PrecomputedText. - Introduce PrecomputedText.Param which holds all text layout parameters. - Add API to get PrecomputedText.Param from TextView. - Remove MeasuredText.Builder and add PrecomputedText.create method instead. - Remove setRange from MeasuredText since it is not for normal use case. (It can not be used for TextView) Bug: 67504091 Bug: 72861572 Test: bit FrameworksCoreTests:android.text. Test: atest CtsWidgetTestCases:EditTextTest \ CtsWidgetTestCases:TextViewFadingEdgeTest \ FrameworksCoreTests:TextViewFallbackLineSpacingTest \ FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \ CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest \ CtsTextTestCases Change-Id: Ie73bce52c6c673cda58973ddad04627a7cf2e5e9
/frameworks/base/core/java/android/widget/TextView.java
|
cc595bb4a78cd9087a60a1e70124bebde6933a60 |
|
17-Feb-2018 |
Phil Weaver <pweaver@google.com> |
Get text positions from transformed text Using the non-transformed text is bad because the transformed text is what's actually on the screen, so it is the thing whose position is relevant. Bug: 69044691 Test: Updating a11y cts test to use an all-caps german strong s, which causes the transformed text to be longer than the original text. That changed test fails without this fix. Change-Id: Ia7aac3b4322ffb48f10771f4d1b33c80ca28b120
/frameworks/base/core/java/android/widget/TextView.java
|
27d0446d088df09493e279c61966cc93474ddbdb |
|
15-Feb-2018 |
Felipe Leme <felipeal@google.com> |
Optimization: don't call AFM.notifyValueChanged() when value didn't change. Test: manual verification Test: atest CtsAutoFillServiceTestCases Bug: 73078981 Change-Id: Ib0a40d4ab0e6f4a1300622fa4d7a2f6026aa98a1
/frameworks/base/core/java/android/widget/TextView.java
|
4e90fa262d57c1c1ee72166e2ddfce391696ca24 |
|
13-Feb-2018 |
Seigo Nonaka <nona@google.com> |
Revert "Reorganize MeasuredText API" The last change needs more discussion and found some edge cases. Revert and make small step-by-step changes. Bug: 73091756 This reverts commit 7fd36d19e309ea515b4048cfaabb8035ceab7baf. Change-Id: I89ff52a70cf6a5d6c553afa20f83719e1f9eb726
/frameworks/base/core/java/android/widget/TextView.java
|
7fd36d19e309ea515b4048cfaabb8035ceab7baf |
|
02-Feb-2018 |
Seigo Nonaka <nona@google.com> |
Reorganize MeasuredText API This CL changes the MeasuredText API: - Rename MeasuredText to PrecomputedText. - PrecomputedText is no longer a Spanned. - Introduce PrecomputedText.Param which holds all text layout parameters. - Add API to get PrecomputedText.Param from TextView. - Remove MeasuredText.Builder and add PrecomputedText.create method instead. - Remove setRange from MeasuredText since it is not for normal use case. (It can not be used for TextView) Here is a performance scores: (median, walleye-userdebug, N=20) StaticLayout creation time (w/o patch -> w/ patch) PrecomputedText Balanced Hyphenation : 743,615 -> 737,145: (-0.9%) PrecomputedText Balanced NoHyphenation: 551,544 -> 542,715: (-1.6%) PrecomputedText Greedy Hyphenation : 500,343 -> 499,601: (-0.1%) PrecomputedText Greedy NoHyphenation : 497,987 -> 492,587: (-1.1%) RandomText Balanced Hyphenation : 19,100,592 -> 19,135,289: (+0.2%) RandomText Balanced NoHyphenation : 8,015,088 -> 7,954,260: (-0.8%) RandomText Greedy Hyphenation : 7,950,915 -> 7,877,424: (-0.9%) RandomText Greedy NoHyphenation : 7,939,337 -> 7,863,471: (-1.0%) PrecomputedText creation time (w/o patch -> w/ patch) NoStyled Hyphenation : 18,935,638 -> 18,925,422: (-0.1%) NoStyled Hyphenation WidthOnly : 18,469,726 -> 18,978,413: (+2.8%) NoStyled NoHyphenation : 7,940,792 -> 7,919,127: (-0.3%) NoStyled NoHyphenation WidthOnly : 7,463,230 -> 7,922,643: (+6.2%) Styled Hyphenation : 14,822,501 -> 14,809,017: (-0.1%) Styled Hyphenation WidthOnly : 13,891,770 -> 14,656,617: (+5.5%) Styled NoHyphenation : 14,511,134 -> 14,301,503: (-1.4%) Styled NoHyphenation WidthOnly : 13,495,345 -> 14,264,314: (+5.7%) StaticLayout draw time (w/o patch -> w/ patch) PrecomputedText NoStyled : 663,974 -> 661,610: (-0.4%) PrecomputedText NoStyled WithoutCache : 648,294 -> 648,766: (+0.1%) PrecomputedText Styled : 879,322 -> 852,770: (-3.0%) PrecomputedText Styled WithoutCache : 1,084,570 -> 1,110,147: (+2.4%) RandomText NoStyled : 565,682 -> 555,435: (-1.8%) RandomText NoStyled WithoutCache : 9,070,533 -> 9,064,825: (-0.1%) RandomText Styled : 2,955,202 -> 2,962,008: (+0.2%) RandomText Styled WithoutCache : 12,242,325 -> 12,228,573: (-0.1%) Bug: 67504091 Bug: 73091756 Test: bit FrameworksCoreTests:android.text. Test: atest CtsWidgetTestCases:EditTextTest \ CtsWidgetTestCases:TextViewFadingEdgeTest \ FrameworksCoreTests:TextViewFallbackLineSpacingTest \ FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest \ CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest \ CtsTextTestCases Change-Id: I7db9e2ca4db68a16648cfb8fcf63555f501304c2
/frameworks/base/core/java/android/widget/TextView.java
|
72c510f1c4d5cff42a3925a784027e258ac0bcdc |
|
23-Jan-2018 |
Eugene Susla <eugenesusla@google.com> |
Revert "Move A11y events throttling away from View(RootImpl)" This reverts commit e4d31b3c103045d5b2b141a05084dced595cc64f. Fixes: 71904218 Test: presubmit Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
/frameworks/base/core/java/android/widget/TextView.java
|
6290fb599aab2ec12f065155c3d0c634c7a3fb84 |
|
09-Jan-2018 |
Phil Weaver <pweaver@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
f317e583e49a31312cef05928a708c2df97a44e8 |
|
18-Jan-2018 |
Abodunrinwa Toki <toki@google.com> |
Merge "Implement text baseline attributes for TextView."
|
e0f35eea46b37b3e8a4a44aa919db6b15792cecc |
|
04-Jan-2018 |
Clara Bayarri <clarabayarri@google.com> |
Fix API review javadoc issues in TextView/ExtractedText Bug: 71555183, 71555182 Test: none, javadoc Change-Id: I98d5d53f0cd4873d637b454bbc313b50fe2ca811
/frameworks/base/core/java/android/widget/TextView.java
|
e94a75a1a0896e583725f45b97affb0e310ee6ec |
|
05-Jan-2018 |
Abodunrinwa Toki <toki@google.com> |
Implement text baseline attributes for TextView. Bug: 71816223 Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I0a9121ded88f954c5180ea35df0e666801cd8978
/frameworks/base/core/java/android/widget/TextView.java
|
b01e18c3eec608f737ab4dcc280224a389750ec1 |
|
16-Jan-2018 |
Seigo Nonaka <nona@google.com> |
Merge "Rename PremeasuredText to MeasuredText"
|
b03368553357d5d06bab3ce9a159d16bc915c369 |
|
13-Jan-2018 |
Richard Ledley <rledley@google.com> |
Merge "Set selection bounds when we try to copy, so it will work with nonselectable text."
|
b30669861fc3fecee42d0d868d504094df957caa |
|
12-Jan-2018 |
Richard Ledley <rledley@google.com> |
Merge "Make Linkify links clickable in nonselectable text."
|
4b823b9406148a7d2f068c9f333c221b02fffc31 |
|
04-Jan-2018 |
Richard Ledley <rledley@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
0b2249786f438b3c3f16dfff5bcf6fb50e10ece2 |
|
11-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Move A11y events throttling away from View(RootImpl)"
|
9d3bd08ebab564ed9231c8ee112e8085cda74ce8 |
|
11-Jan-2018 |
Seigo Nonaka <nona@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
724eff9a3da8cea2d0356186982caa8dd8da33fd |
|
21-Dec-2017 |
Richard Ledley <rledley@google.com> |
Make Linkify links clickable in nonselectable text. Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest\#testToolbarAppearsAfterLinkClickedNonselectable Bug: b/67629726 Change-Id: I94452116453fff1a36f5d567b3a686e92e97a34f
/frameworks/base/core/java/android/widget/TextView.java
|
3101268dd8d7597e5df61093fce87fa914b2e717 |
|
10-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Avoid unnecessary division in TextView.Marquee.tick."
|
e4d31b3c103045d5b2b141a05084dced595cc64f |
|
01-Jun-2017 |
Eugene Susla <eugenesusla@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
0f4c4232d753885d6beb164b2d9288cc06efae3a |
|
09-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Renaming leftover from previous CL..."
|
2ef95c9d1dad6273fae93bd50789adbf967c0119 |
|
08-Jan-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry()."
|
0ca18071b25c3dea033abc955d559cb1e0dace61 |
|
08-Jan-2018 |
Felipe Leme <felipeal@google.com> |
Renaming leftover from previous CL... Test: echo 'In TreeHugger we trust!' Bug: 71552872 Change-Id: I2b317c28cb7ec0e74b2cfa98338f9d64ff7dce3b
/frameworks/base/core/java/android/widget/TextView.java
|
01f4f03188588d917f59d1c2737ee7bd27891dda |
|
08-Jan-2018 |
Felipe Leme <felipeal@google.com> |
Ignores Resources.NotFoundException when setting ViewStructure.setTestIdEntry(). Test: manual verification using com.facebook.katana Fixes: 71695541 Change-Id: Idefc7d3799f2ef5525a5050d63ca29a19cab730a
/frameworks/base/core/java/android/widget/TextView.java
|
8038267b9805b69659ae7e74ad9595dbd309a81d |
|
04-Jan-2018 |
Siyamed Sinir <siyamed@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
5dc45ca3496e9ff0340adeb83bc875d9282deef9 |
|
03-Jan-2018 |
Felipe Leme <felipeal@google.com> |
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
/frameworks/base/core/java/android/widget/TextView.java
|
e536e574fe9dd7dbeeb40b08f4965e712ce2721a |
|
19-Dec-2017 |
Clara Bayarri <clarabayarri@google.com> |
Update setLineSpacing docs to mention units Bug: 64896499 Test: none, docs update Change-Id: I1b94005643764f6484dca2b02845adde7135a37e
/frameworks/base/core/java/android/widget/TextView.java
|
fa83834a44052fb9bbdaa81e0faea6870e71268d |
|
19-Dec-2017 |
Tim Murray <timmurray@google.com> |
Avoid unnecessary division in TextView.Marquee.tick. Test: Marquee.tick works Change-Id: Idb2c1cadb6b49009f8bec45ad44a34f5636c0e79
/frameworks/base/core/java/android/widget/TextView.java
|
26b8722de6fcab8a3b127450bae1534a61918178 |
|
30-Nov-2017 |
Richard Ledley <rledley@google.com> |
Show Floating Toolbar when tapping a selectable TextLink in TextView. Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest\#testToolbarAppearsAfterLinkClicked Bug: b/67629726 Change-Id: Ied7a1903a308db37d0eb288c8e611da8229f381a
/frameworks/base/core/java/android/widget/TextView.java
|
ce8db9911494225fcd99711d7df85a130de5a6ce |
|
14-Dec-2017 |
Jeff Sharkey <jsharkey@android.com> |
Add more IntDef prefixes for auto-documenting. Test: builds, boots Bug: 70177949 Exempt-From-Owner-Approval: annotation-only changes Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
/frameworks/base/core/java/android/widget/TextView.java
|
fbe63bddd6ea751cb1b82f6dfb5e896f4b7a7ef4 |
|
03-Dec-2017 |
Seigo Nonaka <nona@google.com> |
Introduce PremeasuredText By measuring the character widths beforehand, we can save at least 40% of the StaticLayout construction time which typically happens on UI thread. Also verified this doesn't cause performance regression for not premeasured text. Raw performance score (Not premeasured -> premeasured, median, N=100) No Style, Greedy, Hyphenation OFF: 7,812,975 -> 503,245 (-93.6%) No Style, Balanced, Hyphenation OFF: 7,843,254 -> 396,892 (-95.0%) No Style, Greedy, Hyphenation ON : 19,134,214 -> 11,658,928 (-39.1%) No Style, Balanced, Hyphenation ON : 19,348,062 -> 11,634,942 (-39.9%) Styled, Greedy, Hyphenation OFF: 14,353,673 -> 572,840 (-96.0%) Raw performance score (w/o patch -> w/ patch, median, N=100): No Style, Greedy, Hyphenation OFF: 7,732,894 -> 7,812,975 (+1.04%) No Style, Balanced, Hyphenation OFF: 7,884,510 -> 7,843,254 (-0.52%) No Style, Greedy, Hyphenation ON : 18,986,958 -> 19,134,214 (+0.78%) No Style, Balanced, Hyphenation ON : 19,232,791 -> 19,348,062 (+0.60%) Styled, Greedy, Hyphenation OFF: 14,319,690 -> 14,353,673 (+0.24%) Bug: 67504091 Test: bit CtsTextTestCases:* Test: bit CtsGraphicsTestCases:* Test: bit CtsWidgetTestCases:* Test: FrameworksCoreTests:android.text.MeasuredTextTest Change-Id: I0b46f04b42cc012606a9c722eca0d51147a0dcc7
/frameworks/base/core/java/android/widget/TextView.java
|
d4128ec0df2d40d46b4fa0ff6edae393f3bf67b9 |
|
04-Dec-2017 |
Eugene Susla <eugenesusla@google.com> |
Revert "Don't generate irrelevant a11y events - framework" This reverts commit 8ddfb4794f128ad6ac10fed72c73fdec61ea7bcb. Test: presubmit Bug: 69975306 Change-Id: I05cb545eb0adc77298dddf2dea2997ef36b58a5f
/frameworks/base/core/java/android/widget/TextView.java
|
8ddfb4794f128ad6ac10fed72c73fdec61ea7bcb |
|
16-Nov-2017 |
Svet Ganov <svetoslavganov@google.com> |
Don't generate irrelevant a11y events - framework Now before we fire an a11y event we check if this event has an observer. As a bonus we don't push the state to clients if the dynamic service config did not change. Test: cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases bug:69427760 Change-Id: Ie208e13b8557bb7a120198a43efcb79c2752f5db
/frameworks/base/core/java/android/widget/TextView.java
|
ca189fe0fa28a3304bc49de7acc2115ff2b93973 |
|
19-Oct-2017 |
Andrei Stingaceanu <stg@google.com> |
[Magnifier - 5] Auto invalidate and misc * due to having to make the API public, drop the invalidate_by_client strategy in favor of self invalidation by polling * in Magnifier#show(...) stop sending screen coordinates in favor of view coordinates * UI/UX: ** width from 200dp to 164dp ** fixed the shadow depth (elevation) ** fixed the rounded corners (2dp) Bug: 63531115 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: manual test that shows the magnifier working Change-Id: I6451767b0a618c0c4ea396ba3ee3144523dadc57
/frameworks/base/core/java/android/widget/TextView.java
|
15af561efd47a2948a65894d6a916d9656b13f7b |
|
13-Oct-2017 |
Andrei Stingaceanu <stg@google.com> |
[Magnifier - 3] Reduce number of calls to PixelCopy * Magnifier#show() takes snapshots of the content and displays them in the Magnifier bitmap * calling show(...) consecutive times with the same arguments is a no-op if already showing (to cater with the miriad of motion events produced by touch which end up calling show(...)) * introduced Magnifier#invalidate(...) which, if currently showing, forces updating the content using the last configuration * clamped the start horizontal value of the Rect which delimits the content to show in order to avoid distorting the rendering of the magnifier content * fixed invalidating the magnifier (invalidate() does not automatically call invalidate(RectF) !) Bug: 63531115 Bug: 67296158 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: manual test that shows the magnifier working Change-Id: I8e53dfb6582d541922fe05b60311658fb07ca880
/frameworks/base/core/java/android/widget/TextView.java
|
02a20b702528de46bca290f5b2cae76078fe9a73 |
|
13-Oct-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Added new ViewNode properties for Autofill (minEms, maxEms, maxLength)."
|
aa7e2294bebe9d83399c297f9bc1d0be837f002d |
|
06-Oct-2017 |
Felipe Leme <felipeal@google.com> |
Added new ViewNode properties for Autofill (minEms, maxEms, maxLength). Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testNewTextAttributes Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Fixes: 38323227 Change-Id: I6d8606f2d0668644ae1bd33e982edef0ec1e8e63
/frameworks/base/core/java/android/widget/TextView.java
|
e06eebf48096838bf3143042950ea191db8d7c06 |
|
03-Oct-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Rename mCursorDrawble to mDrawableForCursor To go around app bugs caused by assuming that mCursorDrawable is an array. The apps try to manipulate mCursorDrawable by using reflection, but crash since they access it incorrectly after it changed from an array to a single Drawable in I249befaf70630bef435c8db9039e8aacf233bf7c. Bug: 66988832 Test: mmm -j frameworks/base Change-Id: I04fc930d786dd4c74b560d7a25d17353f49ea25b
/frameworks/base/core/java/android/widget/TextView.java
|
e3c34ce40094a3687f90b8173e1abc5f46855bc0 |
|
22-Sep-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Switch version gate for fallback linespacing to P"
|
60f555cca8e8eef088bcf4aff066e93f0f8eb4f9 |
|
21-Sep-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Switch version gate for fallback linespacing to P Previously, no version was defined for Android P. Now that I0a90033239081c583b10021cbc06d032e206beb4 defines it, we can switch the version gate on the new fallback-based linespacing behavior of TextView and Switch to it. Test: bit CtsWidgetTestCases:android.widget.cts.CheckedTextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Test: bit CtsWidgetTestCases:android.widget.cts.SwitchTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewTest Change-Id: Id68ea4b26baa8a632d9f516083a73a0b8879513f Fixes: 64648475
/frameworks/base/core/java/android/widget/TextView.java
|
a26be3c97c76817f358e8605ad18f20ce8ab373f |
|
18-Sep-2017 |
Clara Bayarri <clarabayarri@google.com> |
Fix crash in TextView#setHint Bug: 65821360 Test: bit CtsWidgetTestCases:TimePickerTest Change-Id: I1ee279691d73f173064d98f6e7d5d5fbd483f682
/frameworks/base/core/java/android/widget/TextView.java
|
d8c5e7fc414f63b555f4f8ed7aec7b2f3220a388 |
|
24-Jul-2017 |
Clara Bayarri <clarabayarri@google.com> |
Fix hint text updates in Extracted text mode Updates to the hint on a TextView were not notified to the ExtractEditText, so there was no way it could know to update. This change pipes through the hint value when the extracted mode becomes visible and informs it of changes. The Editor#reportExtractedText method has been refactored to be more readable. Note that checks on whether the content changed are done in the two places in the code that already called this method, and we explicitely don't want to check contents when there is a hint change. Bug: 63980155 Bug: 65691495 Test: bit CtsWidgetTestCases:.TextViewTest Change-Id: I357dd5c74b61d149cf8612d1f52c7118ec70c696
/frameworks/base/core/java/android/widget/TextView.java
|
390a4d6cd5360c6a37609573fe3192229de5465e |
|
15-Sep-2017 |
Siyamed Sinir <siyamed@google.com> |
Merge "Fix maxLines/lines properties for BoringLayout" into oc-mr1-dev am: ae90cfccee am: 273dcbf053 Change-Id: Ic03051c0a9d491337d9606e082ad83ecb61bd1c7
|
dcb33f1618a663a6aad2cce4c7faec1cc79d04a0 |
|
13-Sep-2017 |
Siyamed Sinir <siyamed@google.com> |
Fix maxLines/lines properties for BoringLayout Line height calculation with maxLines set to zero displayed a single line when BoringLayout was used. This CL fixes it to show zero lines. Test: Added related CTS tests to TextViewTest and EditTextText Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Bug: 65435738 Change-Id: Ic21eb50b31666b2dcc2398278010fa072ea1ff67
/frameworks/base/core/java/android/widget/TextView.java
|
89bda32771d896a6c19c98d4aa41271cb9b0da43 |
|
06-Sep-2017 |
Abodunrinwa Toki <toki@google.com> |
Log the "change selected text" gesture. This logs when the selected text is changed e.g. by typing on the hard or soft keyboard. Bug: 64914512 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Merged-In: I82b3b2157856c607d08a82c0a3d9fb938af4c06a Change-Id: I82b3b2157856c607d08a82c0a3d9fb938af4c06a
/frameworks/base/core/java/android/widget/TextView.java
|
78940eb8591a77c4d9b1872cd760aac87e681ece |
|
12-Sep-2017 |
Abodunrinwa Toki <toki@google.com> |
Log the "change selected text" gesture. This logs when the selected text is changed e.g. by typing on the hard or soft keyboard. Bug: 64914512 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I82b3b2157856c607d08a82c0a3d9fb938af4c06a
/frameworks/base/core/java/android/widget/TextView.java
|
160d23ece3cbdaf917e861bbb01cab4d52e4ed48 |
|
11-Sep-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "TextView longpress 2 haptic feedback fix" into oc-mr1-dev am: 04b6095082 am: ddb8ced959 Change-Id: Id1ebf69c0f3c94f5c505c2bbe2f2dc52cb342fbf
|
4303f22535080267200a3d2b03a4dd0bc061bf38 |
|
07-Sep-2017 |
Andrei Stingaceanu <stg@google.com> |
TextView longpress 2 haptic feedback fix TextView#performLongClick() calls View#performLongClick which calls View#performLongClickInternal() which, if handled, performs the longpress haptic feedback and returns handled. TextView looks at this return value and if it is true then makes another call to perform longpress haptic feedback. Remove the duplicate call in TextView as the one in the parent (View) is sufficient. Bug: 65397911 Test: manual Change-Id: Ic73a86637486d5382b63f1c1b37783e238452841
/frameworks/base/core/java/android/widget/TextView.java
|
5caf5a690f7db72912120c310d4002b69f7ead50 |
|
23-Aug-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Use fallback-based line spacing in TextView etc In TextView and Switch, version-gate the use of setUseLineSpacingFromFallbacks() to apps targeting Android P and later for backward compatibility. In internal widgets, ImageFloatingTextView and SubtitleView, always turn it on, since there is no backward compatibility concerns. Bug: 28963299 Test: bit CtsWidgetTestCases:android.widget.cts.CheckedTextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Test: bit CtsWidgetTestCases:android.widget.cts.SwitchTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewTest Change-Id: Icfe4e71ba26bbc6755ba12ddab72e6bf20b3ce25
/frameworks/base/core/java/android/widget/TextView.java
|
22a167cac8f585ffd3ca73e40b82a26c1e09df11 |
|
21-Aug-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Add a builder for DynamicLayout and switch TextView to it The builder mostly copies the structure and the logic of StaticLayout. We also improve various parts of code and documentation in StaticLayout's builder. Bug: 28963299 Test: bit FrameworksCoreTests:android.text. Test: bit FrameworksCoreTests:android.widget.TextViewTest Test: bit CtsTextTestCases:* Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Change-Id: I5c4a6e031bd0f41f765a3d85e0b9b7e9be42ad4b
/frameworks/base/core/java/android/widget/TextView.java
|
abe61c2a472e421d020008e78cb207243dbba432 |
|
17-Aug-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Add deltaX/Y to a11y scroll events"
|
b18682331458682915bb0e9d46c33e2883d1bcee |
|
04-Aug-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Improve TextView.onMeasure() for multiline text."
|
917748ef5016c1f54875c35f999ba9bcda12557d |
|
04-Aug-2017 |
Seigo Nonaka <nona@google.com> |
Improve TextView.onMeasure() for multiline text. Previously, measures all paragraph for deciding view width. However, in case AT_MOST measurment, we can stop calculating measure if the measured paragraph already exceeds the upper limit. Bug: 64389125 Test: bit CtsWidgetTestCases:* Test: CorePerfTest. Here is a result before and after this patch. Before: INSTRUMENTATION_STATUS: measure_AtMost_median=50332114 INSTRUMENTATION_STATUS: measure_Exactly_median=28276317 INSTRUMENTATION_STATUS: measure_Unspecified_median=50193036 After: INSTRUMENTATION_STATUS: measure_AtMost_median=28475187 INSTRUMENTATION_STATUS: measure_Exactly_median=26944710 INSTRUMENTATION_STATUS: measure_Unspecified_median=50880088 Change-Id: I2a39eb39817a8f845c4fa2e174a905a2d057096e
/frameworks/base/core/java/android/widget/TextView.java
|
b969b3eb980c7e30e850f0a2f5026c1e0ea75f1d |
|
04-Aug-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView - fix transformation method" into oc-mr1-dev am: 8719c2a8e6 am: 45d18e2834 Change-Id: Ie161f8b1065791c1523f981a955561d810417097
|
cb45ddfec595cbe389c94ddb538276d4b6fbc302 |
|
31-May-2017 |
Eugene Susla <eugenesusla@google.com> |
Add deltaX/Y to a11y scroll events Test: cts-tradefed run singleCommand cts -d --module CtsAccessibilityServiceTestCases cts-tradefed run singleCommand cts -d --module CtsAccessibilityTestCases cts-tradefed run singleCommand cts -d --module CtsUiAutomationTestCases Bug: 18359705 Change-Id: Ia07af93ef93a6fd327e3c14de6e25a7022d2f358
/frameworks/base/core/java/android/widget/TextView.java
|
d2781160f1c5900565a29043da1e5848c6b98bda |
|
26-Jul-2017 |
Clara Bayarri <clarabayarri@google.com> |
Refactor TextView TextAppearance attributes reading Attributes that can appear in a TextAppearance are read in 3 different places inside TextView: - Within the TextAppearance in the constructor - Within the Style in the constructor - Within setTextAppearance This change simplifies the attribute reading code so it only happens in one place. Note the way TextView reads these attributes is first populating them from the TextAppearance and then allowing them to be overriden by the style. The same is accomplished here. For testing purposes and for API consistency, this change also adds the missing APIs - isAllCaps - isElegantTextHeight Bug: 64053645 Test: bit CtsWidgetTestCases:.TextViewTest Change-Id: Iad6c1c6515992a51020c656edabea4e2927572f3
/frameworks/base/core/java/android/widget/TextView.java
|
4ecf2de06bea77bfca81de27f73dfabeef9613b7 |
|
28-Jul-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Remove secondary bidi cursor"
|
9c13307c386a05ae288c965843c6edf47cbaa14f |
|
27-Jul-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Remove secondary bidi cursor The double bidi cursor is not user friendly. Almost no native speaker of bidi languages likes the double cursor. Now we always show one cursor. Change-Id: I249befaf70630bef435c8db9039e8aacf233bf7c Fixes: 63542996 Test: Manual (no more double cursors, bidi editing feels OK) Test: bit CtsTextTestCases:* Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit FrameworksCoreTests:android.text. Test: bit FrameworksCoreTests:android.widget.EditorCursorTest Test: bit FrameworksCoreTests:android.widget.TextViewTest
/frameworks/base/core/java/android/widget/TextView.java
|
6e82029a0fe348645e1a32ac5863eb8da3c0b497 |
|
25-Jul-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - fix transformation method AutoSize now takes the text transformation method into account when measuring the view. Bug: 63889588 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testAutoSizeCallers_setTransformationMethod Change-Id: I52f4bf6ea2f45342efa04b742a9debdac69f9c4c
/frameworks/base/core/java/android/widget/TextView.java
|
83a8429dd74bc4b07244be418dcb15ad2d88c1b9 |
|
27-Jul-2017 |
Felipe Leme <felipeal@google.com> |
Merge "Move cursor to end of text when autofilling." into oc-mr1-dev am: de499f469f am: 453f2a60fa Change-Id: If94c356c3a814c800285057bff95dac0ebe3e13b
|
2e58b1672efa32fde6bdfe13ef1c0650ba670166 |
|
25-Jul-2017 |
Felipe Leme <felipeal@google.com> |
Move cursor to end of text when autofilling. Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testAutofillMovesCursorToTheEnd Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Fixes: 62669787 Change-Id: I70a583c71057804334e86ed3f7dd2aca8da20922
/frameworks/base/core/java/android/widget/TextView.java
|
1e2df08ade567f8be2db2f64b27c4d7670b8712f |
|
24-Jul-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Define constants for ellipsize values"
|
3f9cfa77d83a7a77a4d630478e7529a3283d8c7d |
|
24-Jul-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Define constants for ellipsize values Also remove an already-done TODO item. Test: bit CtsTextTestCases:* Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest Test: bit CtsWidgetTestCases:android.widget.cts.CheckedTextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.AutoCompleteTextViewTest Test: bit CtsWidgetTestCases:android.widget.cts.MultiAutoCompleteTextViewTest Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0c91ac3ad4ab5794c1e36f1f5e576d52acad66b2
/frameworks/base/core/java/android/widget/TextView.java
|
967805ca47081331b04e92412db5cd7b4e94f845 |
|
21-Jul-2017 |
Siyamed Sinir <siyamed@google.com> |
Merge "Handle long text for share/cut/copy operations."
|
ce3b05abc0291015d31c76ec57cb5b5a163acb7a |
|
19-Jul-2017 |
Siyamed Sinir <siyamed@google.com> |
Handle long text for share/cut/copy operations. When TextView or EditText contains text that is larger than the total parcelable limit, some of the FloatingToolbar operations would crash. This CL changes the behavior as follows: - Show a toast message if cut or copy operation fails because it cannot set the primary clip. - Trim the text for share and process_text actions - A simple app with an EditText and a long text in it, would not open since Autofill value was being sent over IPC. Trimmed the text that is sent for Autofill feature. - Trim the value send to accessibility services Test: bit CtsWidgetTestCases:.TextViewTest Test: bit FrameworksCoreTests:android.widget.TextViewTest Test: bit FrameworksCoreTests:android.text.TextUtilsTest Test: Manual sample app test Bug: 8013261 Change-Id: Ia0df6b4eb4c13071a1bf75cedac7241c7239663c
/frameworks/base/core/java/android/widget/TextView.java
|
7f9b0909f9851b79bc90de342c8c59418b1e967d |
|
20-Jul-2017 |
Siyamed Sinir <siyamed@google.com> |
Update TextView ApiDoc for lineSpacing attributes lineSpacing attributes are not applied for last lines of a text. Update ApiDocs accordingly. Test: none Bug: 30508784 Change-Id: I83593d0b57f717deb90ac8d589673b61358bc914
/frameworks/base/core/java/android/widget/TextView.java
|
41db50cd25652b183fa120d282a54625a344ff9c |
|
14-Jul-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Disable smart sharing for password fields."
|
76b51dc450255bd1774f0309745ceb404b4cc5cf |
|
14-Jul-2017 |
Abodunrinwa Toki <toki@google.com> |
Disable smart sharing for password fields. Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest bit CtsWidgetTestCases:android.widget.cts.TextViewTest Bug: 62340817 Change-Id: Ifbf2c39d9f304251adc8c4acdf1b4fd6914011d8
/frameworks/base/core/java/android/widget/TextView.java
|
4a7aeb3cb007fc2ebde028e4e6f6b75d273bf07e |
|
13-Jul-2017 |
Abodunrinwa Toki <toki@google.com> |
Avoid FloatingToolbar flickers by: 1. Restricting 'moving hide' -- where we hide the toolbar if the toolbar is moving. 2. Hide the toolbar when transitioning to 'select all' -- where the toolbar is refreshed. Bug: 32910217 Bug: 30418276 Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I1f44ee765d74bbcf08e6e7cd635f76d1e8f6305b
/frameworks/base/core/java/android/widget/TextView.java
|
6d6cd68660635d670b0cb17f348b7c1da13704b3 |
|
22-Jun-2017 |
Seigo Nonaka <nona@google.com> |
Stop loading other package's font by default. Since CONTEXT_RESTRICTED is not a default flag of createPackageContext, we can't rely on it for preventing unexpected font injections. To protect developers and existing apps from a risk of font injection, stop loading font from other package's resouce unless the developer explicitly set CONTEXT_IGNORE_SECURITY. Bug: 62813533 Bug: 62879353 Test: Manually done Change-Id: I4442ddc48dadb5c968b444be86038b602074d301
/frameworks/base/core/java/android/widget/TextView.java
|
b6eaf5b8ef6cef04699a8e27f23892587f1071a0 |
|
26-May-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - major fixes * splits the auto-size setup part from the execution function: ** in TextView CTOR we only setup and we leave the actual auto-sizing execution to happen in the view||text layout phase ** encapsulated the conditions needed to start applying auto-size in the execution function * introduces a private way to set the text size without requesting a new layout pass; auto-size always uses this practically setting the text size on the paint object and creating a new layout * calls execution autoSizeText() from within TextView#checkForRelayout() if not requestLayout() is needed => this makes sure that auto-size will be performed even if a view layout is not requested, but only a text layout * fixes the calculation of the sizes available for auto-size when configured via granularity Bug: 62050646 Bug: 38409622 Bug: 38440435 Bug: 62109627 Test: run cts --test android.widget.cts.TextViewTest -m \ CtsWidgetTestCases Test: manually tested the new behaviors in demo apps Test: new test attached in topic Change-Id: I4ccaa0a0afa3b5aa47213442d0029da2c74e7eb4
/frameworks/base/core/java/android/widget/TextView.java
|
cfc79a9e5f5773f5d8d5246f734b62459c79bf92 |
|
26-May-2017 |
Siyamed Sinir <siyamed@google.com> |
Don’t try to autoSize if TextView is not measured This CL early returns from auto sizing text if the view is not measured yet. Test: run cts --test android.widget.cts.TextViewTest -m CtsWidgetTestCases Test: Added cts.TextViewTest#testAutosizeWithMaxLines_shouldNotThrowException Test: Manual test with sample app for the failing case. Bug: 38440435 Change-Id: Ic03c991f33a2b7701623f00f44cba7fb6cdfce46
/frameworks/base/core/java/android/widget/TextView.java
|
98891dbb70128d0c0d2613e1dea3421a6ebb8e95 |
|
24-May-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView - correct pixel transformations" into oc-dev
|
a2ee78aeb958536766f0973a83d7c4731ff01ea8 |
|
19-May-2017 |
Evan Rosky <erosky@google.com> |
Merge "Missed a break statement. very sorry" into oc-dev
|
0892401a8624c4b7a8cc1ea10db032cef23b8db0 |
|
18-May-2017 |
Evan Rosky <erosky@google.com> |
Missed a break statement. very sorry Change-Id: Ifbc6c60a3fa2cf296a34836c890a10d50c0f14c1
/frameworks/base/core/java/android/widget/TextView.java
|
74e7b26a1099b5531096512adf190157c563fd48 |
|
18-May-2017 |
Roozbeh Pournader <roozbeh@google.com> |
In onDragEvent(), don't assume text is Spannable Previously, onDragEvent() tried to set the anchor even if the text was not Spannable. Now we check to make sure it is Spannable before trying to set the selection. Test: cts-tradefed run cts-dev --module CtsTextTestCases Change-Id: I835bf3d6024bf3c85e1d248458829eef496ad93d Fixes: 37261326
/frameworks/base/core/java/android/widget/TextView.java
|
05d41a718398239b1e9a2e28ef11c14b66f79adc |
|
13-May-2017 |
Abodunrinwa Toki <toki@google.com> |
Merge "TextView: Invalidate selection action mode on "select all"." into oc-dev
|
4ce651e92d8f0a1ec0c5a6ba30c2a8b2b0a90f55 |
|
12-May-2017 |
Abodunrinwa Toki <toki@google.com> |
TextView: Invalidate selection action mode on "select all". Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest bit CtsWidgetTestCases:android.widget.cts.TextViewTest Change-Id: I0b5ebb8d6f1af1a9938151f758a2feedb14fcb9f Fixes: 38244876
/frameworks/base/core/java/android/widget/TextView.java
|
23114d68bea7157bf302b9124b2daad90b6b1577 |
|
11-May-2017 |
Evan Rosky <erosky@google.com> |
Added redundant focusable attribute read in TextView Some apps were relying on TextView favoring focusable over focusableInTouchMode when they were explicitly set to opposite values in XML (usually because they start with an EditText and only set focusable=false). This behavior is undefined (and is, in-fact opposite to every other View). In order to keep backwards-compatibility, this restores the old behavior. Bug: 36497135 Bug: 37916052 Test: Tested those apps and they behave like they used to. TextView CTS still passes. Change-Id: I65bd1b343a6dfb087f41c9fc8af4b5c1e4c71493
/frameworks/base/core/java/android/widget/TextView.java
|
d4082bb9ad0ee58af5ae2c9b274730158747ba1d |
|
11-May-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - correct pixel transformations When configuring a TextView to auto-size via min/max/granularity do the calculations in float pixels and only convert to int (via rounding, see TypedArray#getDimensionPixelSize) to produce the final text size values to be used by the auto-size algorithm. This is because the previous version where the values were initially directly converted to pixels and only after used in calculations was losing precision and was not consistent with how we deal with preset configuration (and the developer expectations). Practically textView1.setAutoSizeTextTypeUniformWithConfiguration(10, 20, 2, TypedValue.COMPLEX_UNIT_SP) and textView2.setAutoSizeTextTypeUniformWithPresetSizes( new int[] {10, 12, 14, 16, 18, 20}, TypedValue.COMPLEX_UNIT_SP); produce exactly the same values in pixels to choose from when auto-sizing (on any device) => (TextView#getAutoSizeTextAvailableSizes()) Bug: 38185233 Bug: 37265610 Test: attached in the same topic Change-Id: I95cbbf4674e98f080d7752ae350df26b4adf31b4
/frameworks/base/core/java/android/widget/TextView.java
|
52b9dbc67760307cf3a63bb2cde2f89233bc14ad |
|
09-May-2017 |
Phil Weaver <pweaver@google.com> |
Hiding text from obscured text fields. My change to remove "speak passwords" set things up as if the user had permanently enabled speaking of passwords. That mode seems to go too far, though. It would speak the password content even if it wasn't shown on the screen. This change reverts a small part of ag/1900438 to avoid populating text changed accessibility events with the plain text of a view that is concealing that text from users who are looking at the screen. I'm tempted to populate the event instead with the transformed text, but I'm concerned that corner cases may exist where the transformed text is not valid in the beforeTextChanged callback. This change seems safer, as it is just going part way back to the pre-O behavior. Bug: 38172502 Test: Verified that letters in the WiFi password are no longer read out when they are deleted. Change-Id: I1a000ee7f87c334a0d38248ce9ad120f43d12256
/frameworks/base/core/java/android/widget/TextView.java
|
2a86bad94c0192e67f17022d686ef7b78a152b6c |
|
06-May-2017 |
Phil Weaver <pweaver@google.com> |
Merge "Properly translate text locations to screen coords" into oc-dev
|
c368a240c9a7b03c5fa3071b97ddf56e76dbd068 |
|
04-May-2017 |
Philip P. Moltmann <moltmann@google.com> |
Report less data in structure to autofill provider Fixes: 35899963 Test: CtsAutoFillServiceTestCases, CtsAccessibilityTestCases, CtsAccessibilityServiceTestCases Change-Id: Ia7dba3e252e7678c033d67bcf653e592f3134304
/frameworks/base/core/java/android/widget/TextView.java
|
6c617f0a939436b4fc6c50e79d50ae38c5c88512 |
|
05-May-2017 |
Phil Weaver <pweaver@google.com> |
Properly translate text locations to screen coords Using the same method as getBoundsInScreen. Bug: 35095925 Test: Manually verified location with test app, ran a11y cts Change-Id: I1eee2a4eb23912698be61c9030d92bbade1d743a
/frameworks/base/core/java/android/widget/TextView.java
|
66c162730190db1079987ff456c7f1c0d522a20e |
|
03-May-2017 |
Abodunrinwa Toki <toki@google.com> |
Only classify text when the toolbar is shown. classifyText() is used to generate a menu item in the selection toolbar to handle the selected text. In this cl we avoid calling classifyText() when the selection is changing but instead call it when we are about to show the toolbar. Previously, we depended on invalidateActionModeAsync() to classify text after a call to startActionMode(). Now that we've introduced invalidateActionMode() we need to be able to tell startSelectionActionMode() that we also want the text to be classified, hence the introduction of an input parameter, "adjustSelection", to startSelectionActionModeAysnc(). Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Bug: 34966796 Change-Id: I5b9fc9e8ab443f024f8ca461df5a4bcc6485d26b
/frameworks/base/core/java/android/widget/TextView.java
|
ea6cb1215e97232bf96da02e35b6b8e938572eaa |
|
28-Apr-2017 |
Abodunrinwa Toki <toki@google.com> |
Add "Paste as plain text" in TextView's toolbar. Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest Bug: 36179795 Change-Id: Iee0502678adcfb9de58c107b9247a528718b2c40
/frameworks/base/core/java/android/widget/TextView.java
|
7f90a9fdb0e655a3c804442c045a0589df0ba80e |
|
30-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Restricted Context layout font loading in TextView" into oc-dev
|
0f07dd5b14e76695bbae758e948e00b86935232c |
|
28-Apr-2017 |
Seigo Nonaka <nona@google.com> |
Remove FontVariationAxis.InvalidFormatException. Use IllegalArgumentException instead. Bug: 37769084 Bug: 37765945 Test: am instrument -w -e class android.widget.cts.TextViewTest android.widget.cts/android.support.test.runner.AndroidJUnitRunner Test: am instrument -w -e class android.graphics.cts.TypefaceTest android.graphics.cts/android.support.test.runner.AndroidJUnitRunner Test: am instrument -w -e class android.graphics.cts.PaintTest android.graphics.cts/android.support.test.runner.AndroidJUnitRunner Test: am instrument -w -e class android.graphics.cts.FontVariationAxisTest android.graphics.cts/android.support.test.runner.AndroidJUnitRunner Test: am instrument -w -e class android.text.VariationParserTest com.android.frameworks.coretests/\ android.support.test.runner.AndroidJUnitRunner Change-Id: I50b70e3e7e37585c937dcce2416a83353de62a5d
/frameworks/base/core/java/android/widget/TextView.java
|
b7df9d0d6bd490c5db0085bc37ceafb9fd5b5e42 |
|
07-Apr-2017 |
Clara Bayarri <clarabayarri@google.com> |
Restricted Context layout font loading in TextView When the context is restricted, avoid loading custom fonts in layouts. This is currently only done by TextView. Loading system fonts via their string name is still OK, just not by resource id. Test: cts attached in topic Bug: 35763094, 31218679 Change-Id: I0dc3a3eade0439c503c58a582b083d7ba1dd4aa3
/frameworks/base/core/java/android/widget/TextView.java
|
70c0221813d515c3496eb1ea1037198e9ad8ad44 |
|
28-Apr-2017 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Implement the rest of autofill importance modes" into oc-dev
|
fd31f85d0c6f19138d06d565d2b30b59e241a960 |
|
27-Apr-2017 |
Svet Ganov <svetoslavganov@google.com> |
Implement the rest of autofill importance modes Test: CTS tests pass; augmented tests to verify new behavior bug:36171235 Change-Id: Ieff2b8d7e1c3a3eba456deca7bed70c8e29c415e
/frameworks/base/core/java/android/widget/TextView.java
|
d0c6cf9bc0de41afd04d729d961a6f7e7615d731 |
|
27-Apr-2017 |
Evan Rosky <erosky@google.com> |
Merge "Only restrict arrows out of text fields from keyboard" into oc-dev
|
e6746726bc256601ade37fc4b3a48603e69110ad |
|
27-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Revise method comment on setFontVariationSettings" into oc-dev
|
48f10a2ab53e415f34d86ac717b4f6412dfc824f |
|
27-Apr-2017 |
Svet Ganov <svetoslavganov@google.com> |
Handle package changes in autofill manager service Autofill manager service was not observing package changes thus we did not properly handle the cases of the service being updated, added, and removed. Handling, additions is needed to properly support restore from a backup. Fixed a few missing locks. Test: all autofill CTS tests pass and manually tested update, add, and remove of autofill services. bug:36638606 bug:36978445 Change-Id: Idd47891774ba2a4e562a1952cbb5a048211fd4e3
/frameworks/base/core/java/android/widget/TextView.java
|
85d1c2d2905362b984563d9b5e8332010c272fc5 |
|
21-Apr-2017 |
Felipe Leme <felipeal@google.com> |
Minor fixes on Autofill Framework: - Removed default implementation of onProvideAutofillVirtualStructure() that was using accessibility API (it's useless because without the View calling AutofillManager.notifyViewEntered(), it would never be triggered). - Fixed obsolete TODOs. - Removed obsolete service class name constant. - Removed unused debug constant. Fixes: 37078783 Fixes: 33197203 Bug: 33802548 Bug: 35956626 Test: CtsAutoFillServiceTestCases pass Merged-In: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183 Change-Id: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
/frameworks/base/core/java/android/widget/TextView.java
|
31eeb08bdbe8f6ababe6414db729ac9449b01fc9 |
|
21-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Introduce TextView attribute for control justification." into oc-dev
|
4cbb4414252326795b2956f20f974ace3314f917 |
|
21-Apr-2017 |
Seigo Nonaka <nona@google.com> |
Introduce TextView attribute for control justification. Bug: 37447278 Test: am instrument -w -e class android.widget.cts.TextViewTest android.widget.cts/android.support.test.runner.AndroidJUnitRunner Change-Id: I7946f460ad8a6c2423b464c27225411d155d4d8d
/frameworks/base/core/java/android/widget/TextView.java
|
28973b38170b8bca1d2b73139e5837ff80bc93e2 |
|
21-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "docs: Update TextView JavaDoc comments" into oc-dev
|
6a603221571ab853566ec8053caf06610ab56097 |
|
21-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix a11y text location in clipped views" into oc-dev
|
53cfed57c9ec1aec67d14901dab21a357ed23c4b |
|
20-Apr-2017 |
Evan Rosky <erosky@google.com> |
Only restrict arrows out of text fields from keyboard Otherwise, TV remotes and gamepads will get stuck in text fields since they lack TAB key. Started with revert of commit d4cef42ba1f96bd9dbe1f9ee9ba9141c25886bab. Bug: 37502292 Test: Added a CTS. Manually tested with BT keyboard (Pixel C) and BT gamepad. Change-Id: Iff7e0bf714605555d4fb49d3e5e2680117b3af5b
/frameworks/base/core/java/android/widget/TextView.java
|
cdc74590c395d78ebe590481b8d096b6d6c2b6ee |
|
20-Apr-2017 |
Phil Weaver <pweaver@google.com> |
Fix a11y text location in clipped views Bug: 37482849 Test: Run Select to Speak, open apps, scroll so top row is partially visible, have it read the screen. Change-Id: Ibbd51221f8e93372ccff6d5fb57cdc2a09f2c19f
/frameworks/base/core/java/android/widget/TextView.java
|
1b59a21c5cf90a5bcf9aa24810debc5b68df764b |
|
20-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - API polish - no RuntimeException in signature Do not mention RuntimeException subclasses in throws clauses in method signatures. Bug: 37514926 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t \ android.widget.cts.TextViewTest Change-Id: Ia5bf4cd64e12c53dd7c409b6e44efec4983ae62e
/frameworks/base/core/java/android/widget/TextView.java
|
23fd17681372468edc875528bf04c29f6fd8362f |
|
18-Apr-2017 |
Joe Fernandez <joefernandez@google.com> |
docs: Update TextView JavaDoc comments - fix typographic errors (misspellings) - Simplified the overview to essential info - included a code example for common TextView usecase - adds missing javadoc description and param for setScroller method From BNR vendor, Project 01, android-developer-documentation/pull/1 Test: docs-only change. Tested with a check build Change-Id: Id853c5587722c7125a33e25002e2bde73e397c0d
/frameworks/base/core/java/android/widget/TextView.java
|
f730651a22c8d057dd5a39e3a846b699e2f4d73f |
|
12-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - take horizontalScrolling into account When passing the characteristics of the current TextView to the StaticLayout for auto-size measurements also take the horizontallyScrolling into account similarly with how the actual measurements are done (@ TextView#onMeasure). Bug: 37254477 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\ android.widget.cts.TextViewTest Change-Id: I44b85e77d9b1770f188a0f59f103e3fda284e97a
/frameworks/base/core/java/android/widget/TextView.java
|
92009445e06a83ef6bd87277b14e69ec26cdba39 |
|
14-Apr-2017 |
Seigo Nonaka <nona@google.com> |
Revise method comment on setFontVariationSettings - Update Paint's description to be the same description as TextView. - Update example code to use more standard axes. - Check generated reference page and fix some errors. Bug: 37324923 Test: Checked generated reference page. Change-Id: Ib6504df3bd149fd47f037f8d03701b2167d10e5a
/frameworks/base/core/java/android/widget/TextView.java
|
da97b66f41d11a701f534c34979940cf03f41ab4 |
|
13-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Switch i18n listeners to use IME hint locales" into oc-dev
|
e740fd8d7b624d7bcd99961ae515b8d0dd9090cb |
|
12-Apr-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Switch i18n listeners to use IME hint locales Previously, the i18n listeners were keyed off the text locales of the TextView. This could create some unanticipated backward compatibility headaches. The IME hint locales seems to be a better match, since they are supposed to be used for input. Fixes: 37249649 Fixes: 37133729 Fixes: 37222714 Bug: https://code.google.com/p/android/issues/detail?id=2626 Bug: 8319249 Bug: 33276673 Bug: 34394455 Bug: 37160895 Test: Updated and added CTS tests pass Change-Id: If8a115f3e30ff1601dee426a504984e2ce24a776
/frameworks/base/core/java/android/widget/TextView.java
|
7557a5a090204dccfd32096af4a6ded1f9bb5b17 |
|
12-Apr-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Revert "Make selection end handle stick to selection at line end." This reverts commit 7c263ddd582abacbbe9c71341a6ef4c704d12100. Fixes: 35944608 Bug: 21305922 Test: Manual Test: Updated CTS and core tests pass. Change-Id: Ic840f8771c3d5850f4f6f44ea199b144cac740c0
/frameworks/base/core/java/android/widget/TextView.java
|
549482bfcb00186d3f49e61eca4b60283e3b401b |
|
05-Apr-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView - fix measurements The BoringLayout measurements for auto-size are incorrect. Removed those and kept the StaticLayout measurements. Bug: 36940118 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\ android.widget.cts.TextViewTest Change-Id: I772ade08ed26efac05ca56cb7df8cfec0327633b
/frameworks/base/core/java/android/widget/TextView.java
|
380154724b513ff7649d93f03d67b0e481f0db02 |
|
05-Apr-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Force direction of phone number fields to (practically) LTR Previously, phone number fields defaulted to locale direction, which created problems for apps that were not aware of LTR requirements for phone numbers. Now, we look at the direction of the digits for the locale, and use that to determine the direction of the edit field. (For practically all major RTL locales, that direction is LTR.) Test: Manual Bug: 33643035 Change-Id: I17c70d8462bd403ea6866057971105f1f5772ba3
/frameworks/base/core/java/android/widget/TextView.java
|
94b6b532c09aa2dc9f31c0158c04a75072106c32 |
|
06-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Use text input for various internationalized listeners" into oc-dev
|
889c6503a1764d6dbc1f7f4e23e3b392daab330b |
|
16-Feb-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Use text input for various internationalized listeners Since the characters that need to be entered for an internationalized input type may not be available on the old non-internationalized layouts, switch to the full text layout if there are any such characters. TextView is also modified to call the locale-aware listeners if the target SDK is set to O or later. Test: Manual Bug: https://code.google.com/p/android/issues/detail?id=2626 Bug: https://code.google.com/p/android/issues/detail?id=82993 Bug: 8319249 Bug: 33276673 Bug: 34394455 Change-Id: I544bf0cc893a475ab5bf88cbad01cb981c6fef91
/frameworks/base/core/java/android/widget/TextView.java
|
04fc05cd6688b33e4041da65e63c00d9bd177494 |
|
04-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Change justification parameter from boolean to int." into oc-dev
|
4b4730d90eef9dd4140cf750e2feba61acae9044 |
|
31-Mar-2017 |
Seigo Nonaka <nona@google.com> |
Change justification parameter from boolean to int. Bug: 35766005 Bug: 35764323 Test: Manually done Change-Id: Ic6d78bb9a3213160cd013f1ca8294307872bf0d0
/frameworks/base/core/java/android/widget/TextView.java
|
ff55115121a7a2753ba2265cb3201a3a14c0874d |
|
29-Mar-2017 |
Seigo Nonaka <nona@google.com> |
Reorganize font enumeration API. This CL cleans up APIs around font variation settings. - Remove FontConfig and FontManager public API. - Remove FontManagerService from system service. - Extract inner class FontConfig.Axis as top-level class FontVariationAxis. This is used by Typeface.Builder public API to create new Typeface. - Introduce and expose FontVariationAxis utility functions from/to string. - Throws if the invalid font variation settings is passed. Test: android.text.cts.FontVariationAxisTest passes Test: android.graphics.cts.TypefaceTest passes Test: android.graphics.cts.PaintTest passes Change-Id: I9ccafe7a53935960566243e2856e166878ca59ae
/frameworks/base/core/java/android/widget/TextView.java
|
d4cef42ba1f96bd9dbe1f9ee9ba9141c25886bab |
|
17-Mar-2017 |
Evan Rosky <erosky@google.com> |
Prevent arrow keys from leaving editable TextViews Bug: 24342334 Bug: 31662248 Test: Tested in a test-app and verified that arrow presses/holding do not send focus out of an EditText. Relevant TextViewTest and EditTextTest s still pass Change-Id: I288d9397d61844b8b650ed54cfbb6769226074b8 (cherry picked from commit I6abfe75352f09a49ea473fb0e2dec84c6c5270c4)
/frameworks/base/core/java/android/widget/TextView.java
|
dada7c0e7130763f95e18aa3118b3d91f7ab1bbf |
|
30-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "TextClassificationManager API updates." into oc-dev
|
df61b0328e21dd03ce6e0ef735e0fb32054659c9 |
|
29-Mar-2017 |
Abodunrinwa Toki <toki@google.com> |
TextClassificationManager API updates. - Changes getDefaultTextClassifier to getTextClassifier - Adds a setTextClassifier API Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t android.widget.cts.TextViewTest Bug: 35763797 Change-Id: I24e86272cf58bf6864505bee3b06978c1c0d46e5
/frameworks/base/core/java/android/widget/TextView.java
|
955e252a95785192902da7c9f5610f8e40f97803 |
|
30-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Simplified autofill() methods by returning void instead of boolean. Test: CtsAutoFillServiceTestCases pass Change-Id: Ic94e6686e291fed60ef6715bd160f9b568bf0ea6
/frameworks/base/core/java/android/widget/TextView.java
|
7c9e897c7db00114bdd2d1ddafa3badfe7e26e5e |
|
24-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Fix textStyle being ignored for Font resources in TextView"
|
3e2936413d45a1c496a9c7d847a83f32b8b40dcd |
|
23-Mar-2017 |
Seigo Nonaka <nona@google.com> |
Update setJustify API reference. Bug: 35766005 Bug: 35764323 Test: N/A Change-Id: I2d4b398479cdb3ac87257de95eb6a02f03c639bf
/frameworks/base/core/java/android/widget/TextView.java
|
576ee7de7d169e637439e992a5e9d92ea5829989 |
|
22-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Fix textStyle being ignored for Font resources in TextView When a font resource is set via fontFamily, the textStyle attribute was being ignored. Bug: 36505747 Test: cts attached in topic Change-Id: I6418297d9a289460a3b36c6883441ac48ea33b22
/frameworks/base/core/java/android/widget/TextView.java
|
7d50ff11db4911788722f24646d1a8ce2e8b0a87 |
|
20-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Notify caller if none of settings are effective."
|
40c3ab0f8965550d77163aa3a1198dc12929485f |
|
20-Mar-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView (part 12) - ellipsize & more fixes"
|
4e9c10afa6fa87f7a31183048c48c0fe85bb4ac2 |
|
03-Mar-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 12) - ellipsize & more fixes * ellipsize is being taken into account when auto- sizing text; the ellipsis is applied once the minimum text size for auto-size has been chosen as the best fit * isolated the preset sizes configuration and used it both in the setter and ctor => consistency * stuffed all possible TextView attributes to the StaticLayout we use for measurements for a more precise result * fixed a bug where the default granularity was not properly applied resulting in an error in ctor * fixed all auto-size error messages Bug: 33574040 Bug: 32221168 Test: attached in the same topic Change-Id: I36fa7c242d588bf597110bb02a26c90ae1f1943a
/frameworks/base/core/java/android/widget/TextView.java
|
7b7711680244108923f0dbb4ca6e35db7e659e6a |
|
04-Mar-2017 |
Philip P. Moltmann <moltmann@google.com> |
TRON log important auto-fill events Example log from android.autofillservice.cts.LoginActivityTest#testAutoFill#testAutoFillOneDatasetAndSave (translated from numbers of human readable string): AUTOFILL_SESSION_STARTED package=android.autofillservice.cts AUTOFILL_REQUEST type=TYPE_SUCCESS package=android.autofillservice.cts FIELD_AUTOFILL_SERVICE=android.autofillservice.cts FIELD_AUTOFILL_NUM_DATASETS=1 AUTOFILL_FILL_UI type=TYPE_ACTION package=android.autofillservice.cts FIELD_AUTOFILL_NUM_DATASETS=1 FIELD_AUTOFILL_FILTERTEXT_LEN=0 AUTOFILL_DATASET_APPLIED package=android.autofillservice.cts FIELD_AUTOFILL_NUM_VALUES=2 FIELD_AUTOFILL_NUM_VIEWS_FILLED=2 AUTOFILL_SAVE_UI package=android.autofillservice.cts FIELD_AUTOFILL_NUM_IDS=2 AUTOFILL_DATA_SAVE_REQUEST type=TYPE_SUCCESS package=android.autofillservice.cts FIELD_AUTOFILL_SERVICE=android.autofillservice.cts AUTOFILL_SESSION_FINISHED package=android.autofillservice.cts Test: Ran auto-fill tests and looked at event log. Change-Id: I58aaa58e4435e7d04c8cd91878411943d3eb13de
/frameworks/base/core/java/android/widget/TextView.java
|
0763650a13dd1968f45e8e64950a32c6b508ce28 |
|
10-Mar-2017 |
Seigo Nonaka <nona@google.com> |
Notify caller if none of settings are effective. Now setFontVariationSettings returns false if the given settings is not effective. Bug:35764323 Test: ran TextViewTest and PaintTest in cts Change-Id: Ic31d9e47ec006c8e7bb2c907ff0ea2936bd71d01
/frameworks/base/core/java/android/widget/TextView.java
|
2ac463e3f5c3b757ecbc7e30e0fc1e8e0d878272 |
|
13-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Allow users to manually request Autofill. - Added a requestAutofill(view,flags) method, that when passed with FLAG_MANUAL_AUTOFILL triggers a manual request. - Added same method for virtual views - Overloaded existing AutofillService request methods to take a flag. - Added an AUTOFILL context menu option on TextViews. - Added a canRequestAutofill() that is used to enable the context menu. BUG: 35708229 Test: manual verification Test: existing CtsAutoFillServiceTestCases pass Test: android.autofillservice.cts.LoginActivityTest#testManualAutofill pass Change-Id: I1a64d40da3373774451d178b1cabf20f11120e9d
/frameworks/base/core/java/android/widget/TextView.java
|
9b31b4eac838238ef3013cbfb1379cddbafa0f12 |
|
14-Mar-2017 |
Philip P. Moltmann <moltmann@google.com> |
Merge "Make it clear which type of AutoFillValue is set"
|
123a34f1936983f1b59da9b5609485e1f64347ff |
|
14-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Renamed ViewStructure.setSanitized() to setDataIsSensitive()."
|
c9a19b1b274af1fdd8b811c9ce2df994f7db47a4 |
|
14-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Renamed ViewStructure.setSanitized() to setDataIsSensitive(). Bug: 36126001 Test: CtsAutoFillServiceTestCases pass Test: m update-api Change-Id: I182355b63d8743cd8cd8612f29a9269e258283c2
/frameworks/base/core/java/android/widget/TextView.java
|
9668903731c272e51ce610598c052ef411c9d89f |
|
09-Mar-2017 |
Philip P. Moltmann <moltmann@google.com> |
Make it clear which type of AutoFillValue is set throw and handle errors if the wrong value is set for a view Test: android.autofillservice.cts.AutofillValueTest Change-Id: Ida80da7913a210bede6c47d6b7a6f215a012a84c
/frameworks/base/core/java/android/widget/TextView.java
|
2f8fb1f62f2840701e3e16497eb8191f38b72e0b |
|
13-Mar-2017 |
Svet Ganov <svetoslavganov@google.com> |
Fix a few auto fill ussues 1. Ensure clicking on a focused view brings up autofill if needed 2. Notify the autofill manager in a couple of cases we missed 3. Renamed the AutofillManager app facing APIs to better reflect what they do and added a API for the app to cancel the autofill interaction 4. Fix view structure dispatch where the ordering of children for autofill was mixed with ordering of direct view children - the autofill children may be indirect as views can be marked not important for autofill 5. Show scrollbars only if there are more fill options than want is shown 6. Show only three fill options and the rest can be accessed with a scroll 7. Remove the list divider to allow fill items to control all fill window content 8. Renamed the autofill manager internal service classes to xxAutofillxx 9. Fixed a comment that was not addressed in a previous CL 10. Showing max three fill options - rest needs a scroll 11. Make sure fill UI shown when filter with no matches is changed to filter with some matches 12. Make sure the fill window has a shadow Test: Autofill CTS tests pass and manual bug:36038929 bug:36040101 bug:36149166 bug:36034681 bug:36126001 bug:36035654 Change-Id: Ic8726146fc3c0a19d3e536becdd63fb65622136e
/frameworks/base/core/java/android/widget/TextView.java
|
640f30a7763b0a4b80c767acb84c740aac04768b |
|
07-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Replaced auto-fill by autofill to keep it consistent with API style. This change will affects 2 types of apps: autofill service implementations and apps that use autofill APIs. Since just the former is known to be used at the moment, we're not trying to keep backward compatibility with the latter. Bug: 35956626 Test: CtsAutoFillServiceTestCases pass Test: android.provider.SettingsBackupTest pass Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
/frameworks/base/core/java/android/widget/TextView.java
|
d04a697ede5a372f96f87b80cf99a74dd12dbac4 |
|
02-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Optimize ViewStructure for autofill by removing irrelevant nodes. Test: CtsAutoFillServiceTestCases (with new tests) pass Fixes: 35840787 Change-Id: Iaa2c1907c8383b4a820fd7204e67fa2d276ad2b8
/frameworks/base/core/java/android/widget/TextView.java
|
8931e303700a5adb6e013c2b5a6cec621eede968 |
|
06-Mar-2017 |
Felipe Leme <felipeal@google.com> |
Replace AutoFillType by view constants. Now that AutoFillType does have any logic (since the "subType" logic was moved to AutoFillHint), it makes more sense to get rid of the type and use constants directly. This change creates the contants and "pseudo-deprecate" the old stuff: it's still available because some clients are using it, but it will be removed once they migrate. Bug: 35956626 Test: CtsAutoFillServiceTestCases pass Change-Id: I0efe7f0cc101c86164a18c85903bb871e1f13ba2
/frameworks/base/core/java/android/widget/TextView.java
|
e1be1dfbc3a7889e4c9d4ae13b4c3dfe43baa6ca |
|
06-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Ignore non-font resource references in TextView constructor"
|
d134b8927652aab23ff311fe85594b9e1507a0b7 |
|
03-Mar-2017 |
Clara Bayarri <clarabayarri@google.com> |
Ignore non-font resource references in TextView constructor TextView was blowing up in its constructor when fontFamily was set in xml to a reference that was not a font, e.g. @style/mystyle. These values should be ignored as they are not valid, but we don't want to crash the app for it either. Bug: 35863153 Test: See topic run cts -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testFontResources_setInXmlStyle Change-Id: I5d9443e70a36122d312c3a9f2c0dcffb530dbca8
/frameworks/base/core/java/android/widget/TextView.java
|
ba6f46260232c04b7e5d75b1c38187e581dabdeb |
|
22-Feb-2017 |
Philip P. Moltmann <moltmann@google.com> |
Add autoFillHint property to view Bug: 35364993 Test: Ran amended ViewAttributesTest Change-Id: Ib7d2c3dfd5b4a6b638b56c4583af4c9bdf37e346
/frameworks/base/core/java/android/widget/TextView.java
|
1bef83f613d6a5a92dc34cf363ff5c083195d62a |
|
02-Mar-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Added inputType to Assist API."
|
90ebaa8d2d720d30d453bac8995519fac459d840 |
|
28-Feb-2017 |
Abodunrinwa Toki <toki@google.com> |
Merge "Don't trigger textclassifier in a11y action."
|
117240cc0e877a6343c520946df25ce2febbc84d |
|
28-Feb-2017 |
Abodunrinwa Toki <toki@google.com> |
Don't trigger textclassifier in a11y action. Support for smart text share in a11y mode needs to be done differently. See: b/34779222 Test: Manually tested Bug: 35252502 Change-Id: Ia268065c21fc5ac716ca06a0ec9d3866fbd13aa4
/frameworks/base/core/java/android/widget/TextView.java
|
16aafc36ded4a118f86890261f8f87a6927dc547 |
|
27-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Added inputType to Assist API. It will be used mostly for auto-fill purposes.. Bug: 35364993 Test: CtsAutoFillServiceTestCase (with new tests) pass Test: manual verification Change-Id: Ia5b6ff94e66a7da385cfb6f42ad994fe5e1e976b
/frameworks/base/core/java/android/widget/TextView.java
|
ab18567419d8bd8b2c1bcbad771ebcbfbdab2ae8 |
|
27-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 11) - fix final APIs * public attr "autoSizeText" becomes "autoSizeTextType" (inlined with all other methods and naming) * documentation for autoSizetextType "uniform" re-worked: "The TextView scales text size both horizontally and vertically to fit within the container" * converted comments into Javadoc for TextView#AUTO_SIZE_TEXT_TYPE_NONE and TextView#AUTO_SIZE_TEXT_TYPE_UNIFORM * better documented attr "autoSizePresetSizes" to specify it is a resource array of dimensions * various small fixes in comments Bug: 35755149 Bug: 35763485 Bug: 35764658 Bug: 32221168 Test: run cts-dev -m CtsWidgetTestCases -t \ android.widget.cts.TextViewTest Change-Id: I36afd399e005521b6e85922aa9e1e4418bb960e1
/frameworks/base/core/java/android/widget/TextView.java
|
a2ba2a3923f4b247ad516c28a7f3449f9abfd21c |
|
24-Feb-2017 |
Siyamed Sinir <siyamed@google.com> |
Merge "Revert "Request re-layout after setText if layout width is 0""
|
6f29b7aa9e0b16f85dc8800270825b323412ea8e |
|
24-Feb-2017 |
Siyamed Sinir <siyamed@google.com> |
Revert "Request re-layout after setText if layout width is 0" This reverts commit b4b8740aed4753152729f1630b4241dedcadc98d. Reverts fix for bug 27995311. Test: cts-tradefed run cts --test android.widget.cts.TextViewTest -m CtsWidgetTestCases --skip-device-info --skip-preconditions --skip-connectivity-check Fixes: 34843459 Change-Id: I2cea04cd12953b110c59a5a84e9eea5060fc038d
/frameworks/base/core/java/android/widget/TextView.java
|
c01a873c4f68518be4698077c7eb593a6a3b9f4c |
|
23-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Added sanitization for CompoundButton and RadioGroup. Bug: 33269702 Bug: 33550221 Test: CtsAutoFillServiceTestCases (with new tests) pass Change-Id: Ie2c8d2784227371588aa02973b8ef3ac1a6950aa
/frameworks/base/core/java/android/widget/TextView.java
|
7be469ad9d58843947284d9a5c1d342f85c6339e |
|
23-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Merge "Fixed missing auto-fill save callbacks on TextView."
|
0257c8a5d21cab6a0208347e2b9f4e320902acd5 |
|
22-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Fixed missing auto-fill save callbacks on TextView. It was accidentally broken during a previous commit where the CTS test failure was ignored by a known issue being fixed in another change - this change fixes both problems. Bug: 33550221 Bug: 3380254 Test: CtsAutoFillServiceTestCases pass (for real now :-) Change-Id: I5b2aa6060995ca255e51d85aa6ec93a886fa522f
/frameworks/base/core/java/android/widget/TextView.java
|
7843f0a799690bea661c3ff859b11c547601d45c |
|
22-Feb-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Added auto-fill listeners for RadioGroup and CompoundButton."
|
5882c4f5d2ff552a233ba88d2445f6810dd7599b |
|
17-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Added auto-fill listeners for RadioGroup and CompoundButton. Bug: 33550221 Bug: 3380254 Test: CtsAutoFillServiceTestCases pass Change-Id: Ia9293d16b6fe092552e19563328697c298451f8a
/frameworks/base/core/java/android/widget/TextView.java
|
385912ee2d78e0e557704cfd5f8c7dbe2b7fd280 |
|
10-Feb-2017 |
Phil Weaver <pweaver@google.com> |
Deprecate "speak passwords" setting. This will now be controlled by individual accessibility services. We'll provide the password information to them, and they can present or hide the information as it makes sense for their users. Password information was anyway provided when a headset was connected. Bug: 28139568 Test: Manually verified that TalkBack now speaks passwords on the lock screen and in text views. Since I'm removing functionality that didn't have tests, it's tricky to have specific tests. Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
/frameworks/base/core/java/android/widget/TextView.java
|
33791fd54b0e2acd6e7c06517cf2f994fa3d4213 |
|
16-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Add API to mark sanitized fields and implement it on TextView. When sending a ViewNode to the auto-fill service, it's necessary to sanitize it so it does not contain PII (Personally Identifiable Information). A good rule of thumb is to mark as sanitized nodes whose value were statically set from resources. Ideally, that logic should belong to View, but View does not know how its contexts are set, so the decision must be made by the subclasses, and this CL implements that logic on TextView (which is the main auto-fill type - others will come soon...) Bug: 33269702 Test: CtsAutoFillServiceTestCases pass Test: manual verification Change-Id: I4dcdd8419a35812bd2f15a63a5be85f8cd97bb4e
/frameworks/base/core/java/android/widget/TextView.java
|
2c2c3eea8ecf0e8ceed2aa8f442e77118d834eaa |
|
20-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView (part 10) - final APIs"
|
a42ba85b0efdb905b831675fb421e08511a7c4a2 |
|
17-Feb-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Clarify extra data argument nullness."
|
d666953f5767825f0951324a96ea31f7f161f5a8 |
|
17-Feb-2017 |
Phil Weaver <pweaver@google.com> |
Clarify extra data argument nullness. Bug: 35098706 Test: Trivial change, so I just verified that it builds. Change-Id: I234afe4f1e52ef1c4c64e44b486a539f0d46854c
/frameworks/base/core/java/android/widget/TextView.java
|
30574766efaffb41262917904f99a331f5294f1d |
|
10-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 10) - final APIs Gets rid of setting auto-size configuration items one by one and instead provides setter constructs that take all the params needed to auto-size. This version is much closer to how this feature can be set up from XML attributes and also provides no doubt about validation failures. Bug: 32221168 Bug: 34494052 Test: in attached topic CL Change-Id: Ic70ad43d5c6739ee312ea24984534a35c49c17dc
/frameworks/base/core/java/android/widget/TextView.java
|
302fe9098b26c95ba3c5e98b88ffc56158d4a677 |
|
15-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "TextView/LinkMovementMethod/ClickableSpan - touch up revert"
|
d834c58252dda7d92890dfd491d0cfe4d2504113 |
|
10-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
TextView/LinkMovementMethod/ClickableSpan - touch up revert Reverts the change which adds a gesture detector in TextView for detecting clicks on ClickableSpans. A click is considered MotionEvent.ACTION_UP. Revert needed because the singleTapUp refactoring has a potential to break existing apps. Bug: 23692690 Test: attached in the same topic Change-Id: Ife47fd0608480130123091bc60a7e9dd1efe8785
/frameworks/base/core/java/android/widget/TextView.java
|
fbfead24c2474bffde98c2c6acc5c42691dbb106 |
|
09-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 9) - sanitize APIs naming This CL is no-op (cosmetics only) * renames autoSizeText type "xy" to "uniform" * renames attribute "autoSizeStepSizeSet" to "autoSizePresetSizes" * renames "AUTO_SIZE_TEXT_TYPE_XY" to "AUTO_SIZE_TEXT_TYPE_UNIFORM" * renames public TextView#getAutoSizeTextPresetSizes() to public TextView#getAutoSizeTextAvailableSizes() because this method can return either preset sizes or computed sizes (via min/max/step) Bug: 34923754 Bug: 32221168 Test: associated test renames in the same topic Change-Id: Ifacccf21ca014b6c0a07322fa02b7859ee53e387
/frameworks/base/core/java/android/widget/TextView.java
|
f9a55d42d2e2adbf5895d04e4790debb145508ed |
|
08-Feb-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "AutoSize TextView (part 8) - APIs for predefined sizes"
|
9fe208fe6b0c0aef797a2d3757f50b88ecd86a0c |
|
27-Jan-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 8) - APIs for predefined sizes * getter/setter for predefined sizes * reads and configures from XML at construction time * fix for an ugly bug where the sizes were missing an entry in certain cases, e.g: min = 10; max = 20; step = 2 would have produced [10, 12, 14, 16, 18] instead of [10, 12, 14, 16, 18, 20] * fix using getHeight()/getWidth() instead of untrusted getMeasuredHeight()/getMeasuredWidth() and move the auto-sizing triggering to onLayout() instead of onMeasure() (while manually testing discovered missing or extra pixels and sometimes resizing being skipped - it's all fixed now) * fix using deceiving getTotalPaddingBottom()/...Top() and replaced with getExtendedPaddingBottom()/..Top() (getTotal... was removing the whitespace height but auto-size needs to know about it so it can fill the space) Bug: 32221168 Test: attached in the same topic run cts-dev -m CtsWidgetTestCases -t \ android.widget.cts.TextViewTest Change-Id: Id5a31d0d32b2b4082af45b4bd65af8cb85bdc92e
/frameworks/base/core/java/android/widget/TextView.java
|
bf1a0e23ae988a449aeb2d7216ead676cfe617bc |
|
08-Feb-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "start/invalidate selection actionMode asynchronously"
|
1e2758256a391be23c537725f0a7785e4fb5b7d0 |
|
07-Feb-2017 |
Phil Weaver <pweaver@google.com> |
Merge "Provide text locations to accessibility services."
|
fb0f360222289eea4c27ff7ac39bce5578b7f648 |
|
07-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Merge "Refined session management so Save can be automatically called."
|
8710ea13c13aa22f82cdcb0fc461ed4cd8b2aa63 |
|
24-Jan-2017 |
Abodunrinwa Toki <toki@google.com> |
start/invalidate selection actionMode asynchronously Text selection is now started/updated using AsyncTasks that first get a result from the TextClassifier before actually starting/invalidating the actionMode on the UI thread with the result. Bug: 34778899 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testSmartSelection Change-Id: Ie7eda04bb64335744d88b8874363d46af4f94742
/frameworks/base/core/java/android/widget/TextView.java
|
bab851c7c9dfe6f3d063a1009c4d57cfa2ff005c |
|
04-Feb-2017 |
Felipe Leme <felipeal@google.com> |
Refined session management so Save can be automatically called. This is yet another big refactoring: - AutoFillManager keeps track of its current AutoFillSession. - Views call AFM.startSession(View) when they can trigger autofill. (virtual views can call it as well). At this point, the manager sets an AutoFillSession, gets the activity token, and passes it to the service. - Subsequent calls to AFM.start() will be ignored since the session is set. - When the Activity is gone, it calls AFM.finishSession(). - Simlilarly, virtual views could call it as well. - Added getAutoFillValue() to View. - Removed AFM.updateAutoFillInput(childId): virtual views should now call startSession(childId) to start a session, and use the VirtualViewListener callbacks for updates. - Change AutoFillValue to use String (which is immutable) instead of CharSequence for text values. - Check if view is enabled before auto-filling. - Removed 'cmd autofill fill' since it would require the appCallback - Automatically dismiss the snack bar after 30s - Moved the "don't change autofill value when autofilling" Inception logic into the service side. - Etc... BUG: 34819567 BUG: 33269702 BUG: 31001899 Test: manual verification Test: CtsAutoFillServiceTestCases passes Change-Id: I5fad928d4d666701302049d142026a1efa7291cd
/frameworks/base/core/java/android/widget/TextView.java
|
c2e28932d22faece6e7179c78d4e7656dc63052c |
|
08-Dec-2016 |
Phil Weaver <pweaver@google.com> |
Provide text locations to accessibility services. Bug: 30170631 Test: New CTS tests on linked CL. Change-Id: I723e3777189c8df71c59dada00abdf339ebc983d
/frameworks/base/core/java/android/widget/TextView.java
|
f0ebee91f86eafc1fb7b4c377f3cd1d6ce3fe38e |
|
06-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
Clickable spans - trigger onClick onSingleTapUp Previously (post Android N) we decided to introduce a gesture detector in textView and trigger the onClick() over a clickable span when onSingleTapConfirmed was called. The problem is that onSingleTapConfirmed also waits for double tap timeout to make sure (to confirm). This has a chance to break some apps so relax the rule to only look for onSingleTapUp. * the bug for which the initial change was made is still fixed * slightly amended the ClickableSpan JavaDoc to specify that the onClick gets triggered if the span is selected when clicked (note that this behavior is unchanged since ClickableSpan exists, added just an extra hint to devs) Bug: 23692690 Test: in the attached CL (same topic) Change-Id: Iead434aa558301d61879c27edc48dc4148ca187f
/frameworks/base/core/java/android/widget/TextView.java
|
0200d9ea1509089c0c03b7071aa271e3a9b35c11 |
|
25-Jan-2017 |
Felipe Leme <felipeal@google.com> |
Improved AutoFill Save workflow. Currently, the onProvideAutoFillStructure() methods can be called twice: to auto-fill an activity and to save the activity's data in the service. The problem with this approach is that when the save workflow is called, the activity might have been gone. Hence, a proper approach is to keep the initial AssistStructure data in the system_service memory, watch for view changes, and then passed the new structure back to the AutoFillService. A side effect of this change is that we need another way to determine if the view is sanitized or not. For "standard" views, that will be defined based on whether the view content come from a resource or not, but that logic is not implemented yet (for now, all views will be considered sanitized, except for TextView passwords). For "custom" views (such as WebView), this logic is responsibility of the view implementation, through the newChild() method, which now takes a flag (whose value could be AUTO_FILL_FLAG_SANITIZED for sanitized views). The SaveCallback.onSuccess() method was simplified: it does not need a list of saved ids anymore the auto-fill UI will not use it anymore. Another side effect is that the Save notification is gone - until it's attached again, it can be test by using: adb shell cmd autofill save Finally, hook AutoFillUI on ACTION_CLOSE_SYSTEM_DIALOGS events. BUG: 33269702 BUG: 31001899 Test: manual verification Test: CtsAutoFillServiceTestCases passes Change-Id: I907a7e21d1b3cd1ab6dec3a08d144a52655da46f
/frameworks/base/core/java/android/widget/TextView.java
|
a06155011e52d4d57eff15361866c3313f242722 |
|
31-Jan-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fix crash in TextView getFont"
|
060332400d5a1dbf3ea4223a8cb8323b96c9167d |
|
31-Jan-2017 |
Clara Bayarri <clarabayarri@google.com> |
Fix crash in TextView getFont The wrong TypedArray was being used to retrieve the value. Bug: 34818260 Test: run cts -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testFontResources_setInXmlStyle Change-Id: I09334710b9b21f1397bc02d92d14b41fbc96178f
/frameworks/base/core/java/android/widget/TextView.java
|
cf45c852977e5f68a0d67fca01f03b11c09e32ba |
|
31-Jan-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Introduce set/getFontVariationSettings."
|
9ff994d98846d24bc488939af6e7dc440149a4bc |
|
30-Nov-2016 |
Seigo Nonaka <nona@google.com> |
Introduce set/getFontVariationSettings. This is 2nd attempt of I249d464f8cdaa56017a987588b94ed685aadeb58. The original CL was reverted due to conflicting with another CL submitted before. Nothing has changed except for following class name changes. Here is the original commit message of reverted change. This CL enables developers to specify axis values to the underlying font collection. The specification of the font variation settings is the same as the CSS font-variation-settings attribute in CSS working draft as of 2016-11-30. Code example: Here is an example to set width 100 and weight 1.5. TextView tv = (TextView) findViewById(R.id.textView); tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5"); Bug: 33062398 Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases and CtsWidgetTestCases Change-Id: I9cdfbdecc87c995d805096883ef2652768c6c21e
/frameworks/base/core/java/android/widget/TextView.java
|
fe98ad919bebaf41191b7fdf0a1d841198d4f46a |
|
30-Jan-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Implement .xml font resource support"
|
2b004b3abaa8b4eb4b51c6e78840ff793d1ea9e8 |
|
27-Jan-2017 |
Jason Long <jasonlong@google.com> |
Move autofill focus triggers from TextView to View. Bug: 31001899 Change-Id: I6fd01b86936b3140edf87ac63292c77015bb019d Test: Manual
/frameworks/base/core/java/android/widget/TextView.java
|
ed00bfdfae5d5cbc9e13f4e8affdece48f4c5b7f |
|
20-Jan-2017 |
Clara Bayarri <clarabayarri@google.com> |
Implement .xml font resource support This change implements the loading and parsing of xml type font resources, and makes sure it is used properly by TextView styles. Test: run cts -m CtsContentTestCases -t android.content.res.cts.ResourcesTest run cts -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testFontResources* Change-Id: I5a2930b3ba7dad67d9607e9036a5dde6bab0c5a4
/frameworks/base/core/java/android/widget/TextView.java
|
31e8939491a4c1c21a70d8c9b46cbdce8cb0481d |
|
27-Jan-2017 |
Jason Long <jasonlong@google.com> |
Move autofill-specific logic from EditText to TextView. Change-Id: I92725144d737ed182e6ece7018a9f8d075fb5ba7 Test: Manual
/frameworks/base/core/java/android/widget/TextView.java
|
bd00fef41ce38d2c711bd4151997c1cd8964b712 |
|
25-Jan-2017 |
Felipe Leme <felipeal@google.com> |
Moar AutoFill Framework refactoring... * Encapsulated application-level auto-fill logic on AutoFillSession. Currently, Activity.java directly manages the IAutoFillCallback binder object used to auto-fill its views, but this logic need to be extended so Views can use it to draw the auto-fill bar. * Pass auto-fill id and boundaries to requests So AutoFillUI can display its affordance in the right places. * Uses a new auto-fill id on View (instead of reusing accessibility's). That allows moving the logic on whether a new request should be made or the existing UI moved to the service side. * Split service methods in 2, for shell cmd and app And applied the right permission check on both. * Removed CancelationSignal from onSaveRequest() Since it's not really needed. * Etc... ¯\_(ツ)_/¯ BUG: 34637800 BUG: 31001899 Test: CtsAutoFillServiceTestCases passes Test: manual verification Change-Id: Ibd0cb2cfff6d0f6bb6b697a423ed5e89df687b82
/frameworks/base/core/java/android/widget/TextView.java
|
000f7cd646f016febb4d90ae19a697ae548025e2 |
|
25-Jan-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Initial IME integration."
|
3461d3c069468e176fab6bc8b8e78c8e6bc81e8b |
|
19-Jan-2017 |
Felipe Leme <felipeal@google.com> |
Initial IME integration. - Created an AutoFillManager class, which provides methods to show the auto-fill bar for views and virtual nodes. - Automatically launches an auto-fill request when the IME is shown (and an AutoFillService is set for the given user) on TextViews. - Updated VirtualNodeListener to use this new API. BUG: 31001899 BUG: 34171325 Test: CtsAutoFillServiceTestCases passes Test: manual verification Change-Id: Id72ce97da70217081b5823cfc7b138412634fcf3
/frameworks/base/core/java/android/widget/TextView.java
|
975911cda83433ef21d93a0c7a194417dd1c0fc7 |
|
24-Jan-2017 |
Evan Rosky <erosky@google.com> |
Merge "Add support for automatic focusability determination"
|
f001fefff3745c29e2ff6903d69ad921df1ea277 |
|
05-Jan-2017 |
Abodunrinwa Toki <toki@google.com> |
Update TextAssistant interface. Rename to TextClassifier Move to android.view.textclassifier package Adds getTextClassifierInfo(...) Changes addLinks(...) to getLinks(...) This CL also integrates this interface with framework components and passes a context to TextClassificationManager. Test: Tests will be added with implementation. Bug: 34661057 Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f
/frameworks/base/core/java/android/widget/TextView.java
|
2317b64f02500377c10ade0bda68cfeb69fda32a |
|
23-Jan-2017 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView (part 7) - APIs for configuring auto-size"
|
5d04239b3bf713283c77e6d43d5cabf5ced1cbc0 |
|
17-Jan-2017 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 7) - APIs for configuring auto-size Contains: * getters/setters for all auto-size config attributes * verbose JavaDocs * isolated and reused the setup part of auto-size * some variables had to become instance fields * clarified some variable names In a few words, whenever a configuration setter is called, the value is assigned and setupAutoSizeTextXY() gets called. The latter tries to build all the intermediary values that it needs, attaches default values, etc. If it is successful then it makes a call to autoSizeText(), else it throws a runtime exception with an appropriate message. Bug: 32221168 Test: attached in the same topic Change-Id: I448454ef4490102c8cc2b19e0e16e998aeb45cd0
/frameworks/base/core/java/android/widget/TextView.java
|
24fac986ecad9a4c8b7ccdf545abebbfc0532678 |
|
20-Jan-2017 |
Siyamed Sinir <siyamed@google.com> |
Merge "Revert "Introduce set/getFontVariationSettings.""
|
a3b9f2e3c66ec485f3b712560d52e31632a9cbe8 |
|
20-Jan-2017 |
Siyamed Sinir <siyamed@google.com> |
Revert "Introduce set/getFontVariationSettings." This reverts commit ba3028c1fc9fca2d45acc841557da2c9a83923bf. Bug: 34378805 Change-Id: I8250c87af5d65fb45789632580be4ae1b8711372
/frameworks/base/core/java/android/widget/TextView.java
|
4c8c963eced8e145ecf314a41c8396c7df8e0a39 |
|
17-Dec-2016 |
Evan Rosky <erosky@google.com> |
Add support for automatic focusability determination New android:focusable attribute value "auto" and corresponding constant FOCUSABLE_AUTO specifies that the framework can determine a view's focusability. For now, the only "auto" logic is that focusable = clickable. This has the effect of making clickable views focusable by default unless the developer has explicitly set them focusable=false. Bug: 31963283 Change-Id: Icce768fa701966970ea6b3469b33a4ef97ebc3ea Test: Added CTS test, related CTS passes, made a test-app which enumerates all clickable/focusable combinations to verify
/frameworks/base/core/java/android/widget/TextView.java
|
a4371bc564f7ae307a9b901ea739e615ab235d6a |
|
18-Jan-2017 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Fix: Wrong TextView height when DynamicLayout is used."
|
0a78adea728c8c5ef78c87d7faf71df3e25bd86d |
|
17-Jan-2017 |
Phil Weaver <pweaver@google.com> |
Merge "Provide hint text to accessibility."
|
c2e38ce28171b7c58d5b4694996fb7dcbfa90429 |
|
16-Jan-2017 |
Keisuke Kuroyanagi <ksk@google.com> |
Fix: Wrong TextView height when DynamicLayout is used. When DynamicLayout is used, max line is not set for computing layout even if TextView has the limit. So, we still need to use getLineTop in getDesiredHeight. This bug was introduced by I1e1cae31cf33d503a8cf. Bug: 34279529 Test: manually tested Test: android.widget.cts.TextViewTest Change-Id: I9b7a3c46e7671a84e6a830eb962a49d2b0856eab
/frameworks/base/core/java/android/widget/TextView.java
|
564328b21e739ad6455e5ee392adf455cc035b49 |
|
14-Dec-2016 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 6) - introduce autoSizeMaxTextSize Using textSize as maxTextSize for autosizing is buggy and unclean. Introduce and use new autoSizeMaxTextSize attribute for TextView. Also while doing this optimized the auto-size process by removing unnecessary computations: 1. If auto-size is enabled than setTextSize(...) is no-op. 2. After setting the text size internally and from the auto-size context onMeasure() will stop doing another round of redundant measurements.. Bug: 33449596 Bug: 32221168 Test: atttached in the same topic Change-Id: Ieecaea6df0aebb4c182bdd1114e3c6fc5066bed1
/frameworks/base/core/java/android/widget/TextView.java
|
846946ec06e4f7b31d5a414f026ef03e13793df7 |
|
13-Jan-2017 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Make selection end handle stick to selection at line end."
|
7c263ddd582abacbbe9c71341a6ef4c704d12100 |
|
12-Jan-2017 |
Keisuke Kuroyanagi <ksk@google.com> |
Make selection end handle stick to selection at line end. At line break, one offset can be mapped to two phisical position: previous line end and next line start. Previously, all cursor handles are placed at next line start. With this CL, selection end handle is placed at the previous line end in such cases. Test: FrameworksCoreTests Bug: 21305922 Change-Id: I00d9f9a0cd417ca92534e93b3d3f655cd62f25d3
/frameworks/base/core/java/android/widget/TextView.java
|
ba3028c1fc9fca2d45acc841557da2c9a83923bf |
|
30-Nov-2016 |
Seigo Nonaka <nona@google.com> |
Introduce set/getFontVariationSettings. This CL enables developers to specify axis values to the underlying font collection. The specification of the font variation settings is the same as the CSS font-variation-settings attribute in CSS working draft as of 2016-11-30. Code example: Here is an example to set width 100 and weight 1.5. TextView tv = (TextView) findViewById(R.id.textView); tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5"); Bug: 33062398 Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases and CtsWidgetTestCases Change-Id: I249d464f8cdaa56017a987588b94ed685aadeb58
/frameworks/base/core/java/android/widget/TextView.java
|
88296d221b2cfb58912298803ea6c9286f40316e |
|
11-Jan-2017 |
Seigo Nonaka <nona@google.com> |
Merge "Introduce full justification."
|
6d553874bed06280766ae24ea605f9bbde3f5a4a |
|
09-Dec-2016 |
Felipe Leme <felipeal@google.com> |
YAMAFFR - Yet Another Major AutoFill Framework Refactoring - Explicitly split View methods into Assist and AutoFill methods, rather than use an overloaded method that takes flags. - Simarly, renamed ASSIST_FLAG_SANITIZED_TEXT and ASSIST_FLAG_NON_SANITIZED_TEXT flags to AUTO_FILL_FLAG_TYPE_FILL and AUTO_FILL_FLAG_TYPE_SAVE respectively. - Created a AutoFillUI class to host the auto-fill bar and other UI affordances. - Moved the temporary notifications to AutoFillUI (eventually that class will host the real UI). - Moved FillData to android.app.view.autofill package. - Split IAutoFillCallback in 2 (IAutoFillAppCallback and IAutoFillServerCallback, residing at the app and system_server respectively), so service cannot fill the app directly (which lets the framework control the UI). - Moved assist's IResultReceiver to AutoFillServiceImpl so system_server can act as a mediator between the AutoFillService implementation and the app being auto-filled. - Replaced FillData and FillableInputFields by a bunch of new objects: - FillResponse contains a group of Datasets, each representing different values that can be used to auto-fill an activity (for example, different user accounts), optional id of fields the service is interested to save, and an optional bundle for service-side extras. - Dataset contains a name, Fields, and an optional bundle for service-side extras. - Fields contain an AutoFillId (parcelable) and a value (Bundle) - Changed the temporary notifications to emulate the new workflow: - Initial notification requests the auto-fill data but do not auto-fill. - Once service calls back, a new notification is shown with the results. - Then if the user selects a dataset, the activity is auto-filled with it. - It also shows a notification to emulate what can be saved. - Created an VirtualViewDelegate for views that uses a virtual hierarchy for assist data. - Added new methods on ViewStructure to add children with virtual ids. - Added 2 methods on View to support auto-fill: - autoFill(Bundle) to auto-fill the view. - getAutoFillType() to return how the view can be auto-filled. - AutoFillType defines the input fields that support auto-fill: - Text fields (like EditText) - Toggle fields (like CheckBox) - Lists (like RadioGroup) - AutoFillType can also have a sub-type representing its semantic (for now only text fields have it, and it's the same as getInputType()). - etc :-) Bug: 31001899 Test: manual verification Change-Id: I2dd2fdedcb3ecd1e4403f9c32fa644cb914e186f
/frameworks/base/core/java/android/widget/TextView.java
|
09da71a6dcfe07e0efdc35933322fba16091f555 |
|
28-Nov-2016 |
Seigo Nonaka <nona@google.com> |
Introduce full justification. Adds a new get/setJustify API to TextView and StaticLayout.Builder for justification, and fully justifies text when it's enabled. This is based on a patch by Raph Levien (raph@google.com). Bug: 31707212 Test: Manually done and CTS will introduced with I0f3bbf39d60a66b71b30e1351f7c741208f05dce passes. Change-Id: Icbfab2faa11a6a0b52e6f0a77a9c9b5ef6e191da
/frameworks/base/core/java/android/widget/TextView.java
|
776afc212e61922ced5cb7659ed1d9441d2ace8b |
|
21-Dec-2016 |
Phil Weaver <pweaver@google.com> |
Provide hint text to accessibility. Bug: 30025621 Test: Adding CTS tests in linked CL. Change-Id: Ib873352704a23c733a5eac36030a88fc55dc9b04
/frameworks/base/core/java/android/widget/TextView.java
|
79ada3015b20d0beb6e4c0ce3597cb694e4e948b |
|
14-Dec-2016 |
Andrei Stingaceanu <stg@google.com> |
Merge "AutoSize TextView (part 4) - autosize when layout changes"
|
7c8ba07ed463a38dffdd039174e0d021aec51792 |
|
06-Dec-2016 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 4) - autosize when layout changes Whenever TextView#onMeasure(...) gets called make sure to also autosize is enabled. Also fixes the available space calculation by taking the drawables padding into consideration too. Bug: 32221168 Bug: 33573642 Test: attached in topic Change-Id: I1a01454f3863e51afd7e16cfa27f544db6ca0783
/frameworks/base/core/java/android/widget/TextView.java
|
d4f08a007d7b640c0bd046c7a8168fb93491b7e3 |
|
13-Dec-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "AutoFill Framework refactoring."
|
1ca634a544a47193dd9e57f9b3eb3e42ab0dbbf1 |
|
29-Nov-2016 |
Felipe Leme <felipeal@google.com> |
AutoFill Framework refactoring. The AutoFill Framework uses the same AssitStructure provided by the Assist API and so far it was using the same methods as well, both internally and externally (public API). Sharing that internal code internally is fine, but the public APIs must distinguish between the 2 cases so they can fill the assist structures accordingly (although the initial implementation still shares the same logic). This CL also splits the original 'auto-fill' request in 2 types of requests, which are set by View flags: - ASSIST_FLAG_SANITIZED_TEXT - ASSIST_FLAG_NON_SANITIZED_TEXT It also added new methods and callbacks to handle save requests. Bug: 31001899 Test: manual verification Change-Id: I4eb09099dc19a43cb7e053e64d939aed3704b410
/frameworks/base/core/java/android/widget/TextView.java
|
8158af53e81d8dc062872a682e4d415f7929a28b |
|
23-Nov-2016 |
Abodunrinwa Toki <toki@google.com> |
Introduce TextClassificationManager. This handles smart selection and language detection features. This CL only contains code to integrate the TextClassificationManager. Implementation will be added in a follow up CL. Test: Test will be added when TextClassificationManager is added. Bug:32503402 Change-Id: I5f22150ff998156fbc91b51c733d93478efaa51f
/frameworks/base/core/java/android/widget/TextView.java
|
5038d58c8340baa020578f879a6ca51e899e5fd0 |
|
28-Nov-2016 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 3) - define who supports autosize Introduces a new protected hidden method that specifies if the TextView (or descendant) widget supports the autosize feature. All direct children of TextView (besides EditText) support it. Bug: 33098425 Bug: 32221168 Test: attached in the topic Change-Id: I6f0092b4c9948afb427fe597b0515a39b1f258f6
/frameworks/base/core/java/android/widget/TextView.java
|
5cd7efb267a809d53150fbded2750f13f99449c4 |
|
02-Nov-2016 |
Andrei Stingaceanu <stg@google.com> |
AutoSize TextView (part 1) - minimal end-to-end Introduced the minimal number of attributes needed to do autosizing and the autosize functions bundled in TextView (for now). Note that in this first version the autosizing can only be controlled via construction. Next: introduce getters/setters for the new attributes. Bug: 32221168 Test: added a minimal smoke-ish CTS which exercises the new attributes. Change-Id: Idf2195f6a600bfb7908b703ea046209b5868c521
/frameworks/base/core/java/android/widget/TextView.java
|
d0d9ceb30c1f6fa674de98274c0684c3418d66d3 |
|
21-Nov-2016 |
Abodunrinwa Toki <toki@google.com> |
Introduce TextAssistant for Smart Text Share feature. Bug: 30982298 Test: CTS tests to be added in a follow up CL. Future CLs will add implementation detail. Change-Id: Iad550447a4b3552340c0ada75fda60f97f0913aa
/frameworks/base/core/java/android/widget/TextView.java
|
1b304e40737ac7df8034dc4e0433e768635b5e7c |
|
04-Nov-2016 |
Abodunrinwa Toki <toki@google.com> |
TRON logging for TextView gesture - Long press. Bug: 32572232 Test: Manually confirmed that stats were sent for logging by checking adb logs according to go/tron-howto. Change-Id: I1ea09174190247c219ce42f70c7db75148033685
/frameworks/base/core/java/android/widget/TextView.java
|
302d57c6494e1b6b5bf0029deaefece3743cadf3 |
|
12-Nov-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Update TextView ApiDocs."
|
9aba698bd11b01a3c85884c425a5a16c2ef6e83c |
|
08-Nov-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "StaticLayout visual fix for maxLines"
|
e2179925df2ce174d81dd6f7abae626cc859ce00 |
|
27-Oct-2016 |
Seigo Nonaka <nona@google.com> |
Make sure the Typeface is loaded before calling measureText. This is a clean up CL by resolving TODO in hwui/Typeface.cpp Usually Typeface is listed in preloaded-classes and loaded during Zygote initialization. However, on some devices, class preloading is disabled. Paint.measureText can not be called before Typeface static initializer and it may not load Typeface class. To ensure that the font preloading happens in ZygoteInit even on such devices, refer Typeface.DEFAULT static field in TextView.preloadFontCache in TextView which also happens during zygote initialization. Bug: 32374752 Test: Manually done Change-Id: I773c154671c170bebad3aa0f9c04eee5a664b849
/frameworks/base/core/java/android/widget/TextView.java
|
7984eb58bec58e881b800939cf76a5d355d41bee |
|
21-Oct-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Update TextView (set|get)(min|max)(width|height) ApiDoc"
|
caa08ff5e9ee004634a95776fc72bb769f1286de |
|
07-Oct-2016 |
John Reck <jreck@google.com> |
The bigger update to Canvas All draw* calls in Canvas are regular JNI All draw* calls in DisplayListCanvas are FastNative Unifies Canvas JNI on nMethodName naming CanvasPerf results before: INSTRUMENTATION_STATUS: basicViewGroupDraw_min=12492 INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13912 and after: INSTRUMENTATION_STATUS: basicViewGroupDraw_min=11945 INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13318 Test: refactor, makes & boots Change-Id: I06000df1d125e17d60c6498865be7a7638a4a13e
/frameworks/base/core/java/android/widget/TextView.java
|
d9576c794544998240663070b6302badfca69e3b |
|
26-Sep-2016 |
Mark Lu <marklu@google.com> |
docs: Add param info to TextView.setTextColor am: 193879a8b6 am: 5080a2c5e1 am: 7bfb1e7f46 Change-Id: I434c524c07559b848f2ffe1e9d56237a5e5a686b
|
7bfb1e7f46d2ed3df6cc467bccec95b5999d9cc4 |
|
24-Sep-2016 |
Mark Lu <marklu@google.com> |
docs: Add param info to TextView.setTextColor am: 193879a8b6 am: 5080a2c5e1 Change-Id: Ifd7511c801047b96edb389ac4455ddb877236aef
|
193879a8b6ecd3d4d5679493a742a9648f27aa4c |
|
31-Aug-2016 |
Mark Lu <marklu@google.com> |
docs: Add param info to TextView.setTextColor Bug: 6617101
/frameworks/base/core/java/android/widget/TextView.java
|
306bcc3dd443b750411086cba1a5f663b9760e43 |
|
30-Aug-2016 |
Abodunrinwa Toki <toki@google.com> |
Merge "EditText: Proper support for "textIsSelectable"."
|
5623d31365ec44a5682dcab786ea19ba4007f86b |
|
06-Aug-2016 |
Siyamed Sinir <siyamed@google.com> |
Update TextView (set|get)(min|max)(width|height) ApiDoc Bug: 30697813 Change-Id: Ic55e81a9b254f6e6e6f4826571c1f73567751ab9
/frameworks/base/core/java/android/widget/TextView.java
|
28caf6a8da7b2f2513ae74bb19a9d849e52895d2 |
|
06-Aug-2016 |
Siyamed Sinir <siyamed@google.com> |
Update TextView ApiDocs. Update/add ApiDocs for setText, BufferType, Editable.Factory and Scannable.Factory. Bug: 30670270 Bug: 30290798 Change-Id: I2ff1f79cfb4c0c3c955ce42326670cf266e1e404
/frameworks/base/core/java/android/widget/TextView.java
|
1fd8ea75a7f2da3579a18b5f9738c94b31ddc591 |
|
22-Aug-2016 |
Andrei Stingaceanu <stg@google.com> |
TextView - lazy GestureDetector creation for ClickableSpans Moves the ClickableSpan GestureDetector creation into TextView#onTouchEvent only on ACTION_DOWN if a ClickableSpan was targeted. This allows constructing TextViews outside the UI Thread. Bug: 30929474 Change-Id: I7f4442f0faee51d3c395fbde1ce32bdf909a18fb
/frameworks/base/core/java/android/widget/TextView.java
|
2d321c7c23349cca313130a7f22931bfa5325047 |
|
16-Aug-2016 |
Abodunrinwa Toki <toki@google.com> |
EditText: Proper support for "textIsSelectable". All I've done is change the order in which the textview's attributes are being checked. Not sure if this breaks anything but nothing jumps out as something that can break from a brief inspection of the code. I'll revert this changelist if something breaks as a result of this. Bug: 30874589 Change-Id: I0e2411eab6e952a0d10eedd8c2d3d073ea436f56
/frameworks/base/core/java/android/widget/TextView.java
|
3df24c31bbc41eabb661d642f1859b6fd5eb9660 |
|
01-Aug-2016 |
Andrei Stingaceanu <stg@google.com> |
TextView - fix ClickableSpans always triggering on touch up * introduce GestureDetector to TextView * completely remove link click functionality from LinkMovementMethod (the interface does not state it provides click functionality) * intercept onSingleTapConfirmed and trigger onClick on the link if it exists (simplified duplicated functionality) * renamed a bunch of LinkMovementMethod variables because eyes hurt Bug: 23692690 Change-Id: Idaf3f3391328207f42521235fb5deb1a11c66aaa
/frameworks/base/core/java/android/widget/TextView.java
|
05af162ab591294c11fe01e2db449c6990599b68 |
|
06-Aug-2016 |
Siyamed Sinir <siyamed@google.com> |
Use SpannableFactory for TextView.removeSuggestionSpans TextView.removeSuggestionSpans function was creating an instance of Spannable using the constructor. This CL changes it to use Spannable.Factory to create the instance. Bug: 30709627 Change-Id: I190b68c5937e7194622d2a01de78143c1ce469ac
/frameworks/base/core/java/android/widget/TextView.java
|
317029aecc50a53aa1b9cc88422d316f7b893526 |
|
25-Jul-2016 |
Siyamed Sinir <siyamed@google.com> |
Update font feature settings w3 URL in api doc Bug: 29545624 Change-Id: I4611f53055f3a52bc607ac0cc8311f8a633217bf
/frameworks/base/core/java/android/widget/TextView.java
|
324b8d352fda7ca3399bd1fee7d0d3adbd7db35d |
|
23-Jul-2016 |
Aurimas Liutikas <aurimas@google.com> |
Merge "Cleanup TextView and Editor style issues."
|
ee62c29b8f6a7345ac858d32c00c6f416cf40da2 |
|
22-Jul-2016 |
Aurimas Liutikas <aurimas@google.com> |
Cleanup TextView and Editor style issues. Change-Id: Ibcf0c2f3166e1a2baa16f4328ce328e5de213c66
/frameworks/base/core/java/android/widget/TextView.java
|
8d717fa1cbd746d94e9017eb7750a7452753a437 |
|
22-Jul-2016 |
Selim Cinek <cinek@google.com> |
Changed the appearance of fullscreen intent notifications again am: 981962e6ad am: 3f769aba2a Change-Id: I40a477fc28fb0205d40aa352c5b720835d4bf4f8
|
981962e6ad04725ebbf1b728afde2bdc7706290f |
|
21-Jul-2016 |
Selim Cinek <cinek@google.com> |
Changed the appearance of fullscreen intent notifications again Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca Fixes: 28269355
/frameworks/base/core/java/android/widget/TextView.java
|
eddcf432896defa0c0cb857263f55af7dd4ff6d8 |
|
14-Jul-2016 |
Siyamed Sinir <siyamed@google.com> |
Fix TextView.onCommitCorrection ApiDoc Bug: 30126785 Change-Id: I0addd70a783188ac21702f7cdbfe96328b8dcb7e
/frameworks/base/core/java/android/widget/TextView.java
|
79bf9d19f2f76cbfbd6659c9323e519deaa887c7 |
|
19-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Fix bidi desired width calculation Layout.getDesiredWidth measured text with TextDirectionHeuristics.LTR, whereas the real calculations used the active direction heuristic set in the TextView instance. This CL uses the same heuristics for both of them by passing the value to Layout.getDesiredWidth function. Bug: 28845953 Change-Id: I68d23f55fe5a86255d62e83bc62df38a047e4bca
/frameworks/base/core/java/android/widget/TextView.java
|
0745c729653eeeeb6468d4ec9f3ec81b18ff9b64 |
|
01-Jun-2016 |
Siyamed Sinir <siyamed@google.com> |
StaticLayout visual fix for maxLines When maxLines is set on StaticLayout, the height calculation includes the lineSpacing for the lastLine, which causes the ellipsized version and non-ellipsized version to have different heights. With this CL: * maxLines is always set on StaticLayout * the correct line count for a given text is preserved, in other words a text that would be n lines will not be cut at maxLines. * The visual height for StaticLayout for ellipsized and non-ellipsized cases are the same when maxLines is set. Bug: 28988744 Bug: 18864800 Change-Id: I1e1cae31cf33d503a8cf1c942f422893efc480bb
/frameworks/base/core/java/android/widget/TextView.java
|
b115719dd4ff2f60c44a84bad3f04d5eea247feb |
|
20-Jun-2016 |
Seigo Nonaka <nona@google.com> |
Remove unnecessary log message. This message was introduced locally for debugging but unexpectedly upstreamed to master branch. Change-Id: I6a6da19f6e41b22ed6f7da85ffcc23861852c248
/frameworks/base/core/java/android/widget/TextView.java
|
ae1aa85d0c7305bb621f1f8003bd674285aa3b63 |
|
09-Jun-2016 |
Seigo Nonaka <nona@google.com> |
Follow the minikin namespace changes Bug: 29233740 Change-Id: I0ec7c5c88e64daa626751d3a03e24b9c36521c17
/frameworks/base/core/java/android/widget/TextView.java
|
e051f6f1fdb5e21cbed394d29dfcab5c642e4129 |
|
13-May-2016 |
Michael Wright <michaelwr@google.com> |
Rename PointerIcon and Pointer Capture APIs This is a response to API council feedback. Bug: 26830970 Change-Id: I1be541a53e3943d06640169671824f7daea15462
/frameworks/base/core/java/android/widget/TextView.java
|
06ce394edc2c845ef495dd048a9d5627e3af0a8a |
|
28-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Revert "Fix TextView layout reuse when maxLines is set"" into nyc-dev am: 990e26118d am: 6fe1ab7f21 am: af57bd751f * commit 'af57bd751f9402a54db3cb60dd7c93a8106ae2b0': Revert "Fix TextView layout reuse when maxLines is set" Change-Id: I6c4865dceff4debb17e679a67ffbb3d7eb33f817
|
686e0545c7e167f7535395cb770de76836702bb1 |
|
28-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Set StaticLayout.maxLines only when ellipsize is set" into nyc-dev am: 92d0316d28 am: 361f03c4e2 am: 3e7177f91f * commit '3e7177f91f7e7097dcc4f6613c8baf7fff5a333e': Set StaticLayout.maxLines only when ellipsize is set Change-Id: Ic21d60a789a0361ffca8362621fa03ded8d96ae5
|
990e26118d5b6cad2d34483b1908ba6f8334a764 |
|
27-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Revert "Fix TextView layout reuse when maxLines is set"" into nyc-dev
|
92d0316d2837baceffb22e1a7eb0e5da50f0a025 |
|
27-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Set StaticLayout.maxLines only when ellipsize is set" into nyc-dev
|
108b013a517e43c352208cb359b595e4e44819d8 |
|
27-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Revert "Fix TextView layout reuse when maxLines is set" This reverts commit f75775ea7ff25fc9039ce7994312b29419294902. Bug: 28885989 Bug: 28468120 Change-Id: I6fa5401c8a76db1bacc2d8201eece91a3c52b758
/frameworks/base/core/java/android/widget/TextView.java
|
24aba4b9e92d2abb3963974b9506681fda08e313 |
|
27-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Set StaticLayout.maxLines only when ellipsize is set A partial revert for the CL I5dbc48a6c7f0f4ac4c693d5c95f0a99b989e07f4. The mentioned CL tried to always set the maxLines attribute of StaticLayout. However this caused regressions at certain points. Bug: 28885989 Bug: 28468120 Change-Id: Ic09cb194c8811a06b5d53de50bfb77938b91b88d
/frameworks/base/core/java/android/widget/TextView.java
|
4001c1181622c52e29f374ebcd20dacc8d306577 |
|
26-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Fix TextView layout reuse when maxLines is set" into nyc-dev am: e747160509 am: baf8284c62 am: 1f4c99f7d8 * commit '1f4c99f7d88d7ccf1414c56fb38bbce08b8f30ea': Fix TextView layout reuse when maxLines is set Change-Id: I52420052fbc85c346e861d66841d2b7aee4ac1ca
|
f75775ea7ff25fc9039ce7994312b29419294902 |
|
25-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Fix TextView layout reuse when maxLines is set When maxLines is set on StaticLayout and the text is wrapped, during onMeasure TextView couldn’t recognize the wrap in the layout and tried to reuse the layout which in turn caused width calculation problems. This CL checks if maxLines is set, and if there is a text cut-off in order to reuse existing layout. Bug: 28468120 Change-Id: Ide43df8512a09112715067cbadf29cc64fd53247
/frameworks/base/core/java/android/widget/TextView.java
|
0923b063c41d559cc906ba40022ccb6cd4c3e5b1 |
|
20-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "setTransformationMethod should reset mTextDir" into nyc-dev am: df9dee869c am: 8ae06f6f3a am: 68d3077e9a * commit '68d3077e9a11c96d118834563fa283b3ead4f1a7': setTransformationMethod should reset mTextDir Change-Id: I46a1f5e356992bd08ba440fce0e15b952541d547
|
df9dee869c9efa18619b28691c88415b4f115df7 |
|
20-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "setTransformationMethod should reset mTextDir" into nyc-dev
|
d55be2b9d5870c87a3719e6f6fab8a605c3f16e9 |
|
20-May-2016 |
Siyamed Sinir <siyamed@google.com> |
setTransformationMethod should reset mTextDir When transformation method is set via API, text direction heuristics has to be reset since for PasswordTransformationMethod it is set to LTR. Not resetting it causes inconsistencies with the remaining of the TextView. Bug: 28562779 Change-Id: I225e35e39bde60d4296852ff17b107d5b7b99f8a
/frameworks/base/core/java/android/widget/TextView.java
|
a1e0cebf3a18ac097d370e21d698e079f974bfff |
|
19-May-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
|
af15c8bcaec3f301b9e646d9702d90b43ceb23a0 |
|
18-May-2016 |
Yohei Yukawa <yukawa@google.com> |
Merge "Move LocaleList to avoid layering violation." into nyc-dev am: 31884efd13 am: ddaf3f4681 am: bf4c8f730b * commit 'bf4c8f730b167e5ee65ed7c59dfa1d7867b63fcc': Move LocaleList to avoid layering violation. Change-Id: I78fee5269f7428e34b196573575784fc15cb1372
|
23cbe85610f780134cc77dd4a54732a22ed6e86e |
|
18-May-2016 |
Yohei Yukawa <yukawa@google.com> |
Move LocaleList to avoid layering violation. Since LocaleList needs to depend on android.os.Parcelable, we cannot let that class belong to "android.util" package, which causes layering violation. Bug: 28819696 Change-Id: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18
/frameworks/base/core/java/android/widget/TextView.java
|
f9d9ce7705475874c82af04eb9b208a7fb556792 |
|
13-May-2016 |
Michael Wright <michaelwr@google.com> |
DO NOT MERGE Rename PointerIcon and Pointer Capture APIs This is a response to API council feedback. Bug: 26830970 Change-Id: Ia2d284b5c1ab8365bedfdc37d129be4b8146036b
/frameworks/base/core/java/android/widget/TextView.java
|
b4b8740aed4753152729f1630b4241dedcadc98d |
|
06-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Request re-layout after setText if layout width is 0 When TextView is in a layout with weight params (i.e. LinearLayout) and the width is set to 0, do not try to prevent requestLayout. Bug: 27995311 Change-Id: I6f98f0ac8260bfa98147157f5b73e87308c7efab
/frameworks/base/core/java/android/widget/TextView.java
|
c18009e6dd32f04fdad7f1b27a0a6b52ee5c875c |
|
03-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Revert "Request re-layout after setText if layout width is 0"" into nyc-dev
|
1f575b890e5ec82e93acc98a86eb21bf7a062977 |
|
03-May-2016 |
Siyamed Sinir <siyamed@google.com> |
Revert "Request re-layout after setText if layout width is 0" This reverts commit 375366cb2d6b8be3d81e59ea0ce27332c3eada66. Bug: 28523980 Change-Id: Ib4dd00eabaf7b5630b18373cc1d7bec61c0e155d
/frameworks/base/core/java/android/widget/TextView.java
|
7a61d6031b0ce9de00bfc77caa196396ad1781d5 |
|
27-Apr-2016 |
Phil Weaver <pweaver@google.com> |
Merge "Fix crash with a11y set text with text filters." into nyc-dev
|
6dde7e75e88420a89c09b303417593590e6ad6d5 |
|
27-Apr-2016 |
Phil Weaver <pweaver@google.com> |
Fix crash with a11y set text with text filters. A text filter may shorten the text, so we need to use the text that's actually in the View, not the text we requested, to move the selection. Also removing the override of performAccessibilityActionInternal, which should have been done as part of adding text actions initially. Bug: 28253708 Change-Id: I184f49dcba0238f4ccc222597cefca258393b263
/frameworks/base/core/java/android/widget/TextView.java
|
3a93f0ff37b4b30ed4e3e512a3d0e32085589bd6 |
|
21-Apr-2016 |
Hyunyoung Song <hyunyoungs@google.com> |
Fix broken build due to @RemotableViewMethod Change-Id: I63c6cb4fa68df114220efb2f263115e773e25f5d
/frameworks/base/core/java/android/widget/TextView.java
|
7b77e0c765816f6fa8c1d02ee3b5169e5458c78e |
|
21-Apr-2016 |
Hyunyoung Song <hyunyoungs@google.com> |
add @RemotableViewMethod to TextView#setEnabled b/28304068 Change-Id: Ia5464030a65c87dacdd75e5be331da017d7ef593
/frameworks/base/core/java/android/widget/TextView.java
|
375366cb2d6b8be3d81e59ea0ce27332c3eada66 |
|
18-Apr-2016 |
Siyamed Sinir <siyamed@google.com> |
Request re-layout after setText if layout width is 0 When TextView is in a layout with weight params (i.e. LinearLayout) and the width is set to 0, do not try to prevent requestLayout. Bug: 27995311 Change-Id: Idfe9d8d0b595a6db95beb1afd83ca96a2bd46546
/frameworks/base/core/java/android/widget/TextView.java
|
03f1e026996a7665aefcda947ed97faae009735e |
|
07-Apr-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Invalidate HandleView when handle position may have to be changed." into nyc-dev
|
f13f14ef30a147681854223871c1352d154d9d7a |
|
06-Apr-2016 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Remove unusable a11y APIs for ClickableSpans." into nyc-dev
|
c14e1270cff7f12614af49b7f3a94299f4064438 |
|
05-Apr-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Invalidate HandleView when handle position may have to be changed. Bug: 26499944 Change-Id: Iba539eb50df1495be7d64174de38b1e88cff9348
/frameworks/base/core/java/android/widget/TextView.java
|
72fde85f7fb227f48f7c0a6e69d9ac174a8e3abc |
|
05-Apr-2016 |
Phil Weaver <pweaver@google.com> |
Remove unusable a11y APIs for ClickableSpans. This change essentially backs out ag/683646, which added an API to click on ClickableSpans within a TextView. This API has the flaw, however, that ClickableSpans are not parcelable, so they are not in general reported to AccessibilityServices. That means that services will have no idea what they are activating. Since the API is not usable end-to-end, I'm backing it out before the API is final. Bug: 17726921 Change-Id: I541c6218f2899ff67a6b32a13fd9ae6f3b53b3c4
/frameworks/base/core/java/android/widget/TextView.java
|
807c3a828b97e6d619f2dfdfde2f97efc873f6fe |
|
05-Apr-2016 |
Yohei Yukawa <yukawa@google.com> |
Merge "Unhide View#dispatch{Start,Finish}TemporaryDetach()" into nyc-dev
|
2bf5f20a2b9aeed688a9b0ffbf82f0368aae8023 |
|
04-Apr-2016 |
Phil Weaver <pweaver@google.com> |
Merge "Support SET_TEXT for editable text views." into nyc-dev
|
fc1d11ed9dc4d25a939e5187f32fe9eb107e942c |
|
04-Apr-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Make hasTransientState be true only if user created selection is active." into nyc-dev
|
183fd5071ea84aab82209c827fa0e4ff84a6b590 |
|
01-Apr-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Make hasTransientState be true only if user created selection is active. Previously, hasTransientState returned true even when TextView has a selection that hasn't been created by the user. This unnecessarily prevents the TextView from being recycled. This issue was introduced by Ib454b0fbbc2c2f8d198, which fixes that setHasTransientState(true) is not always coupled with setHasTransientState(false). With this CL: hasTransientState will get true when selection action mode is started. hasTransientState will get false when selection is removed. Note that hasTransientState intentionally continues to be true when selection action mode is terminated with preserving selection. Bug: 27913323 Change-Id: I960ddfd7221caeb676c23926af06a8a415dec288
/frameworks/base/core/java/android/widget/TextView.java
|
24df931e9e8c708fc605cd8e76a3ffd9ce5f6c77 |
|
01-Apr-2016 |
Yohei Yukawa <yukawa@google.com> |
Unhide View#dispatch{Start,Finish}TemporaryDetach() In order to fix Bug 18920212, we have to track when a View enters temporarily detached state and when it exits from that state. To do that, ListView needs to use View#dispatchStartTemporaryDetach() instead of directly calling View#onStartTemporaryDetach() because there is no guarantee that existing applications have internally followed Call-Super pattern. With this CL, we are going to expose temporary detach state and its dispatching methods as public APIs. Major changes are: 1. ListView's indirect children will start receiving temporary dispatch callbacks. Previously only direct children have received View#on{Start, Finish}TemporaryDetach() callbacks. 2. TextView can no longer assume that ListView never calls View#View#dispatchStartTemporaryDetach() but directly call View#onStartTemporaryDetach() instead. See the commit message of [1] for details. This also enables us to do the following fixes, which will be handled in subsequent CLs. A. ViewCompat support lib is finally able to rely on temporary dispatch mechanism without reflection. B. InputMethodManager is now able to ignore focus-in events from temporarily detached Views. This will be done in the next CL [2]. [1]: a440b002aa59e1455bdfa2c5a1ca51c74bbc19ac [2]: Ia79bbd8468f768d546354382b47b39dd31ef7bb5 Bug: 18920212 Bug: 27905921 Change-Id: If8f780f8b71754f7533a65097304113ae1f5cf12
/frameworks/base/core/java/android/widget/TextView.java
|
fafb7575c7f3265aa4330e23f3ad17f4a09a2d3a |
|
31-Mar-2016 |
Roozbeh Pournader <roozbeh@google.com> |
Invalidate TextView after locale change Bug: 19294390 Change-Id: Ie0f08ab84b386ef6daa2570ea4d5203a04763b06
/frameworks/base/core/java/android/widget/TextView.java
|
6ffb0a68189d782496730140242134f0bae371f0 |
|
29-Mar-2016 |
Siyamed Sinir <siyamed@google.com> |
Revert "TextView setText/append methods set movement method" This reverts commit 4ba0aa598ea86b7cffab8cd6ccd007e4e29cf883. Change-Id: I7d6eb2584a1348014ce9c3fc3e53b4cf96e30db1
/frameworks/base/core/java/android/widget/TextView.java
|
0925f40372cb140fd9e2a55ec0b5c645e90f3b84 |
|
26-Mar-2016 |
Siyamed Sinir <siyamed@google.com> |
Update get/setFontFeatureSettings JavaDoc Add CSS font-feature-settings URL to get/setFontFeatureSettings method JavaDoc in both TextView and Paint. Bug: 27857640 Change-Id: I8c20068801032407d493e4f4a15b89dcf35949d2
/frameworks/base/core/java/android/widget/TextView.java
|
e7a414e16d5130a5fd066182750944d9861f2e7a |
|
17-Mar-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Do not use hint text for Editor cursor positioning" into nyc-dev
|
237be37fadda27be2bbb66aafb3e39ad0eefdc3b |
|
17-Mar-2016 |
Adrian Roos <roosa@google.com> |
Merge "Copy/Paste on RemoteInputView" into nyc-dev
|
0bd8a4b29bf92a901855d889c53186383dd2c5e7 |
|
15-Mar-2016 |
Adrian Roos <roosa@google.com> |
Copy/Paste on RemoteInputView Also fixes a bug where the remote input view stays focused when the inline settings open. Also prevents sharing from contexts that are not activities, and prevents text processing when the device is not provisioned. Bug: 27633360 Change-Id: I8b6e7f661bd873d88e7e2460d043c2aa5f849516
/frameworks/base/core/java/android/widget/TextView.java
|
cb03689feff8f2bd31c9db6a3d5d39a2930e42b6 |
|
17-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Fix: setExtractedText partial span change handling." into nyc-dev
|
44b3b91bf087f040678af756b60ea1e00ee4926f |
|
17-Mar-2016 |
Phil Weaver <pweaver@google.com> |
Support SET_TEXT for editable text views. Bug: 25486055 Change-Id: I38e5a65e216b7ea7da42a01040126b2c2cc8c661
/frameworks/base/core/java/android/widget/TextView.java
|
987ec6588b2279891179c9eff09fc25ec14430c4 |
|
18-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Do not use hint text for Editor cursor positioning When hint text is used for cursor positioning, the cursor may end up in opposite direction when the locale and the hint text directions are different. This CL uses the main text layout and discards the hint layout while deciding on the position of those three views. The change also includes fix for cursor and floating popup not displaying for some cases after the change. Bug: 22358087 Change-Id: I083d17b06273bc1d9b67656c5e12d4ff1231219c
/frameworks/base/core/java/android/widget/TextView.java
|
c477b5830af5f9e87069fae4ff87a2a6b3e275fb |
|
15-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Stop automatically creating selection action mode. With Ic025c109539c3b5963, selection action mode is created always when selection is made. It causes distraction in some cases. This CL fixes this issue. This CL stops starting selection action mode when action mode is currently not active and not intended to restart. Bug: 27536744 Bug: 27551819 Change-Id: I94ee66864000934a21ef0d18c1d71429c67114fa
/frameworks/base/core/java/android/widget/TextView.java
|
70ab0eec2beb9e85a8f2496d51a4817471a82b01 |
|
14-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Fix: setExtractedText partial span change handling. ExtractedText represents a partial text change when partialStartOffset and partialEndOffset are set. TextView#setExtractedText handles partial updates correctly when text is changed, but it didn't handle them for span updates when text is not changed. Bug: 27635763 Change-Id: I7dc2ad0c0b7f1867738be3d6d40ea36d0d9a3e7e
/frameworks/base/core/java/android/widget/TextView.java
|
f6d87ec193f17e8dad82c9994ba7a58e975d364b |
|
11-Mar-2016 |
Alan Viverette <alanv@google.com> |
Add consistent @NonNull annotations for drawable callbacks Bug: 27599515 Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
/frameworks/base/core/java/android/widget/TextView.java
|
01ef02d7853fd2996eae3d139f02d190f3c174a2 |
|
11-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Reset mWordIteratorWithText when SpellChecker locale is changed." into nyc-dev
|
25ff8a53a3a52497d81493a6d0954fedc7fd5bc7 |
|
09-Mar-2016 |
Raph Levien <raph@google.com> |
Invalidate TextView on change of elegantTextHeight Previously we were setting the paint but not invalidating, so it could show stale content. Bug: 27572149 Change-Id: I668667ec5b95a96e31a58cff0f8bbbb9958e470c
/frameworks/base/core/java/android/widget/TextView.java
|
e0ac5ac6f0bcf58362af1ed723fa2a7d68ddd25d |
|
09-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Reset mWordIteratorWithText when SpellChecker locale is changed. Bug: 27537808 Change-Id: Ic55b543456cc859673b4c17cc5bf6e4b6da21e13
/frameworks/base/core/java/android/widget/TextView.java
|
40fd5fac48836aa85d45f8b6c729baed3b625b13 |
|
08-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Call View#setHasTransientState in TextView#spanChange." into nyc-dev
|
af4caa60064d95aeffc7ab81095a269893f5f2a1 |
|
29-Feb-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Call View#setHasTransientState in TextView#spanChange. setHasTransientState(true) and setHasTransientState(false) have to be coupled, but they were not always coupled in TextView. e.g. when we fire PROCESS_TEXT intent. With this CL, TextView calls setHasTransientState() always when selection is created or cleared to make sure 2 setHasTransientState calls are always coupled. Bug: 27409041 Change-Id: Ib454b0fbbc2c2f8d19818f154f415c4a5d7e2d7e
/frameworks/base/core/java/android/widget/TextView.java
|
bd4b217a289edca382b63f2bf5d1dd2017e9cf2e |
|
04-Mar-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Refresh action mode always when selection is modified." into nyc-dev
|
1ca7c808447737fb38330a013dae5ab21deea9b9 |
|
03-Mar-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "TextView should fade edges according to text." into nyc-dev
|
192d3bdaaf94fd919db0f2d1f7cb0083b9bc2a04 |
|
02-Mar-2016 |
Siyamed Sinir <siyamed@google.com> |
Update EditText.setEllipsize JavaDoc Update EditText.setEllipsize JavaDoc to describe that MARQUEE is not supported by EditText. Bug: 26219977 Change-Id: Ibe709f3470a749c0fbb672c8ec33f0835c5d90ec
/frameworks/base/core/java/android/widget/TextView.java
|
bec9715905c9666db2f0081fcc71abaea5b82cb0 |
|
25-Feb-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Refresh action mode always when selection is modified. Text action mode was not correctly updated when the selection is modified by keyboard, app or IME. With this CL, Editor#refreshTextActionMode is called always when selection is updated. This method properly starts, stops or invalidates text action mode if selection was modified outside of cursor controllers. Bug: 10527362 Bug: 22937774 Change-Id: Ic025c109539c3b59638226be4c4c9adf5ea0c38c
/frameworks/base/core/java/android/widget/TextView.java
|
ddc1397eba25e17591e3491dddb192b3fa38100f |
|
27-Feb-2016 |
Andreas Gampe <agampe@google.com> |
Frameworks/base: Refactor TextView initialization To allow static initialization of a number of View classes based on TextView, refactor the initialization of the font cache to be explicit from the zygote. Bug: 27265238 Change-Id: I1b71086d3f49d8b3e72eea2bf8359351d25fc0fd
/frameworks/base/core/java/android/widget/TextView.java
|
c066127526d381c87ab1f2723e7e8fcab8630484 |
|
23-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
TextView should fade edges according to text. TextView should decide which edge to fade by checking if and where the text is cut. This CL updates fading edge strength related functions accordingly. Bug: 10918591 Change-Id: I57aa964cfbbb44289c52eea99c05c77750dce1cd
/frameworks/base/core/java/android/widget/TextView.java
|
715589fb46967ce8aff4406ca7bfc58ad3e3b6ed |
|
13-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Ellipsized and Non-ellipsized baselines should be same. This CL make sure that ellipsized and non-ellipsized text have the same baseline. - TextView did not set the maxLines for StaticLayout when ellipsized is false. This resulted in height and baseline calculation discrepancies between ellipsized and non-ellipsized TextViews using StaticLayout. - For single line TextViews when a text is not ellipsized BoringLayout is used, and when text is ellipsized StaticLayout is used. Because of the bottom padding added to the last line of StaticLayout, those two did not have the same baseline. Bug: 18864800 Change-Id: I5dbc48a6c7f0f4ac4c693d5c95f0a99b989e07f4
/frameworks/base/core/java/android/widget/TextView.java
|
f4aa7d2e8a21a3b567af3fc7c38d1e85ff904ed9 |
|
09-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Merge "Clamp EditText cursor in the drawable boundaries." into nyc-dev
|
217c0f71df8c8de5bafe6ec5ad007b4a37326682 |
|
02-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Clamp EditText cursor in the drawable boundaries. EditText tried to draw outside of the padding boundaries because of a cursor positioning issue in RTL. This CL removes that fix and instead clamps the cursor position if cursor is outside of the clipped view boundary. Bug: 23397961 Change-Id: Id5f1fbe2a0f571100c89b21758fbb81b14d5da57
/frameworks/base/core/java/android/widget/TextView.java
|
027711904ba478bc89a66a749d4d00db067223ec |
|
06-Feb-2016 |
Siyamed Sinir <siyamed@google.com> |
Do not save TextView text when freezesText is false Currently TextView state is saved whenever selection is set even if freezesText is false. This causes inconsistencies with the described behavior for the attribute. This CL updates the behavior as: - Always save the text for EditText - Always save the selection if there are any. - Do not save the text for TextView if freezesText is false. - During onRestoreInstanceState if selection is out of the text boundaries, do not restore the selection. Bug: 22076905 Change-Id: I5e05d343e752a7d106c8881993e4d95ae21a38ce (cherry picked from commit 8535836673c801effce097c54f55814ef88448e7)
/frameworks/base/core/java/android/widget/TextView.java
|
1c9d20b535a900f53553e4e9bbc60ff9212b42d9 |
|
03-Feb-2016 |
Alan Viverette <alanv@google.com> |
Preserve TextView mDrawables if it has metadata (ex. tint or padding) Bug: 26939206 Change-Id: Iccc8b3d50e93e50685d050ca6ea191708a0e6171
/frameworks/base/core/java/android/widget/TextView.java
|
094e64b7cf943a5f489d299e7ed3fa7104db929a |
|
22-Jan-2016 |
Yohei Yukawa <yukawa@google.com> |
Merge "Clarify the purpose of EditorInfo#hintLocales."
|
d469f2122edf7662dbe8c9c39269064c0265b520 |
|
21-Jan-2016 |
Yohei Yukawa <yukawa@google.com> |
Clarify the purpose of EditorInfo#hintLocales. During the initial attempt to support automatic language switching in LatinIME, it turns out that the current EditorInfo#locales is difficult to use and even confusing in some situations. Based on that experience, this CL changes as follows: * Rename EditorInfo#locales to EditorInfo#hintLocales: This is mainly to avoid possible confusion when to set this. We want to make it clear that having non-empty LocaleList there is a clear signal that the user would switch to certain languages regardless of the currently selected input method subtype. * Make EditorInfo#hintLocales nullable: Previously marshaling EditorInfor causes NPE when EditorInfo#hintLocales is null. This CL relaxes such a restriction. * Introduce TextView#{set, get}ImeHintLocales(): In the previous implementation [1], we just copied TextView#getTextLocales() into EditorInfo. This is, however, does not work well because it is no more or less than the default value. If LatinIME supports automatic language switching, having the default value in EditorInfo actually means that whenever you focus in a new text field, the keyboard language is reset to the default locale. In order to make this "hint" useful for IME developers, this "hint" should be specified only when the application developers are confident to do so. [1]: I738ffaaf07091d8b980f8bfc6e16227fcb85a96a 0445fdf321e74044dc9f3719922fc8ff4923fdf4 Bug: 22859862 Change-Id: I0a730011874ea8d01e50624ed3f1ecd197d05f94
/frameworks/base/core/java/android/widget/TextView.java
|
bd918aad632f92ed33f0a1cd0de0e2a09e61edcb |
|
21-Jan-2016 |
Adam Powell <adamp@google.com> |
Don't show TextView "share" option for an unprovisioned device Bug 26600141 Change-Id: Ifc59752c146c2203a66cdd463b648a891ebf12c8
/frameworks/base/core/java/android/widget/TextView.java
|
0445fdf321e74044dc9f3719922fc8ff4923fdf4 |
|
21-Jan-2016 |
Yohei Yukawa <yukawa@google.com> |
Ensure EditorInfo#locales is set before return. This is a follow up CL for the previous CL [1], which mistakenly put the initialization code of EditorInfo#locales after return statement. [1]: I77db5b99a7cf745d800db75baf135bb60ad04820 8d6eeb01df72891acd3aa75e64aa1595a41cc96e With this CL, the IME starts receiving correctly initialized LocaleList as expected. Bug: 22859862 Change-Id: I738ffaaf07091d8b980f8bfc6e16227fcb85a96a
/frameworks/base/core/java/android/widget/TextView.java
|
0cc6b5a496ddc56a203fff9b9be10e00d350d4b8 |
|
17-Dec-2015 |
Alan Viverette <alanv@google.com> |
Merge "Propagate TextView drawable state after resolving RTL drawables"
|
d056081e502debdafe7e91d12400d19de2899a9a |
|
17-Dec-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
TextView: Open context menu on right click. - Construct context menu in #onCreateContextMenu. - Ignore non-primary buttons for selection. - Don't open context menu on long click. Bug: 19544351 Bug: 19397276 Bug: 24872170 Change-Id: I4690e1485682be4f9b504b8fb6af936b979f13b8
/frameworks/base/core/java/android/widget/TextView.java
|
189d4f5b770eb45ea23e8c529cabc1ccdff6e83a |
|
16-Dec-2015 |
Alan Viverette <alanv@google.com> |
Propagate TextView drawable state after resolving RTL drawables Bug: 24502082 Change-Id: Iec9c44041622d19401fc074947e15b4843f79d86
/frameworks/base/core/java/android/widget/TextView.java
|
366a88603e10b2b6d9a00b37608fda38b0610b2a |
|
15-Dec-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Change cursor shape to STYLE_HAND on ClickableSpans Bug: 19544351 Change-Id: Ibbee410bf22db6962b2ba2b89111c9e34fce4747
/frameworks/base/core/java/android/widget/TextView.java
|
d4eaef7f4c5a5d281de4fff272cd33e892e26264 |
|
30-Oct-2015 |
Jun Mukai <mukai@google.com> |
Make public pointer icon API with custom icons. BUG: 25778347, 23804184 Change-Id: If138b97c750c912e9848412c27b65004899961eb
/frameworks/base/core/java/android/widget/TextView.java
|
155aecb18be803122977a3fe00259924818d2983 |
|
05-Nov-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Move double tap/triple click detection to Editor. The logic was in TextView, but it's only for Editor. Move it to Editor and have constants for the state. Bug: 19544351 Change-Id: I391f66753aa5cbb26fbefcba5b4e7e3d917454e2
/frameworks/base/core/java/android/widget/TextView.java
|
4368d05af7ba8112c5b10ee0b97cbe88ddead32d |
|
05-Nov-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Triple click to start paragraph based selection. - Detect triple click in TextView#onTouchEvent. - Select paragraph on triple click. - Extend drag accelerator to support paragraph based selection. Bug: 19544351 Change-Id: I0a6752a0642a2c569b69a1fc2c0f49169a72844a
/frameworks/base/core/java/android/widget/TextView.java
|
4610eeff9c6c4789705b6550a57333150d39e970 |
|
03-Dec-2015 |
Chet Haase <chet@google.com> |
Revert "Add support for partial view layouts" This reverts commit c55d5072ac52cee1811b52406419228fa81119ce. There were several bugs related to incorrect handling of various layout issues (layout not being run on containers/views that needed it), reverting to take another run at it outside of master. Issue #25980198 requestLayout() sometimes doesn't result in measure/layout for view Change-Id: Ic0e159cbcf6171652d8fd1bee9ae44a3977cea04
/frameworks/base/core/java/android/widget/TextView.java
|
658c29e86ef7c2d4c3a3fa8ebad5726d692e7c68 |
|
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
retry: Add @hide SpellCheckerSubtype#getLocaleObject(). This is the 2nd try of I39dc0c310158ad23ba6c987efce07deaf30ce693. This is a mechanical refactoring with no behavior change. With this CL, InputMethodSubtype and SpellCheckerSubtype have the same getLocaleObject() hidden API, which makes it easy to share the logic in subsequent CLs. No behavior change is intended. Bug: 11736916 Bug: 20696126 Bug: 22858221 Change-Id: I51be014c752b736a808e2b0d56e664941a218a2f
/frameworks/base/core/java/android/widget/TextView.java
|
80a918c3bd2de754027b7e7dffdd38ed138b69ce |
|
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Revert "Add @hide SpellCheckerSubtype#getLocaleObject()." This reverts commit e3c761c87efdee7c28461559015fa76602d4605a. Previous CL unintentionaly contained behavior change. Change-Id: I1e350f224df815e991d9f42ac4145ecfc5c1c8b0
/frameworks/base/core/java/android/widget/TextView.java
|
e3c761c87efdee7c28461559015fa76602d4605a |
|
04-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Add @hide SpellCheckerSubtype#getLocaleObject(). This is a mechanical refactoring with no behavior change. With this CL, InputMethodSubtype and SpellCheckerSubtype have the same getLocaleObject() hidden API, which makes it easy to share the logic in subsequent CLs. Bug: 11736916 Bug: 20696126 Bug: 22858221 Change-Id: I39dc0c310158ad23ba6c987efce07deaf30ce693
/frameworks/base/core/java/android/widget/TextView.java
|
8d6eeb01df72891acd3aa75e64aa1595a41cc96e |
|
03-Dec-2015 |
Yohei Yukawa <yukawa@google.com> |
Introduce EditorInfo#locales. The primary goal of this CL is to enable application developers to provide more context-based language (locale) information for IME developers so that users can be benefited by more natural text input experience. As of API Level 23, there are several APIs that allow IMEs to retrieve locale/country related information. - Locale#getDefault() - Configuration#locale - LocaleSpan#getLocale() - SubscriptionInfo#getCountryIso() However, only LocaleSpan#getLocale() can be used to pass application specific languge (locale) context from applications to IMEs. Also LocaleSpan is not designed to be used per input-context. We want to have something in EditorInfo and LocaleList would be the right thing. Although default implementation of TextView#onCreateInputConnection() starts filling EditorInfo#localeList with TextView#getTextLocales() by this CL, application developers are encouraged to provide its own LocaleList when they are confident that the user want to use a certain (set) of language(s). For instance, a chat application may be able to guess what language will be used in the conversation before the user start typing. At least it should be able to remember the last used language for each conversation. Another instance would be "From" and "To" EditText fields in a translation app. Those fields should have different LocaleList based on the languages that the user want to translate from and to. Bug: 22859862 Change-Id: I77db5b99a7cf745d800db75baf135bb60ad04820
/frameworks/base/core/java/android/widget/TextView.java
|
4fb12d3f8ebf20f2d6db519f7f91cfa625edf566 |
|
20-Nov-2015 |
Selim Cinek <cinek@google.com> |
Made the bigtext now nicely float around the image If there is an image instead of applying the same margin everywhere, the text now floats around the image. Change-Id: I87f9ca9f51fb270b0732a99374544381bd1fc4e0
/frameworks/base/core/java/android/widget/TextView.java
|
5ac42c92fa7241a260fde486f7535e2e0a1e38e9 |
|
25-Nov-2015 |
Alan Viverette <alanv@google.com> |
Always invalidate TextView on checkForRelayout Previously we would check whether relayout was required and optionally invalidate; however, with partial layout we leave this work for the makeNewLayout() method. We still need to manually invalidate, though, since makeNewLayout() does not handle invalidation. Bug: 25857300 Change-Id: I81ef9062c9fb4964d5e42a3562e6c782492ad65f
/frameworks/base/core/java/android/widget/TextView.java
|
a71a244ec6c83e8627f10d3d04228ff8e7915c09 |
|
19-Jun-2015 |
Seigo Nonaka <nona@google.com> |
Make suggestion window style material. To make suggestion window style Material, this CL does following things: 1. Introduce LinearLayout to be able to split suggestion item and menu. Currently suggestion menus, "Add to Dictionary" and "Delete" buttons are children of ListView. It is necessary to introduce LinearLayout and move these two menus from ListView to this LinearLayout to have a divider between suggestion items and menus. 2. Extract suggestion window layout definition from Java. Currently almost all layout of suggestion popup window is done by Editor.java. By extracting this logic from Java and move it to XML files, it becomes easy to support both Holo and Material theme. 3. Introduce Material Design. Suggestion window should respect the running application's theme since suggestion window is shown as the part of the application. This patch introduces Material themed suggestion window, and at the same time, the old window is also kept as the Holo themed suggestion window. Bug: 15347319 Change-Id: Ieccea12db95c0a040b38680ae794b1cf6971736f
/frameworks/base/core/java/android/widget/TextView.java
|
c55d5072ac52cee1811b52406419228fa81119ce |
|
19-Dec-2014 |
Adam Powell <adamp@google.com> |
Add support for partial view layouts Traditionally, when a view called requestLayout it would force recursive requestLayout calls for all parent views up the hierarchy. This meant that there was no way to determine at traversal time whether a parent view itself needed layout, or if just one of its descendants did. Add a ViewParent method requestPartialLayoutForChild(View). This lets a caller state that a particular child of a given parent needs a remeasure and relayout at its current measured size and position within that parent. This can help prevent the full-tree relayout often caused by otherwise trivial changes. Partial layouts are processed after any pending "full" relayout during ViewRoot traversals, but before drawing. Add a ViewGroup method requestLayoutForChild(View). This lets a ViewGroup decide whether it is more appropriate to request a traditional relayout or a partial layout for itself or just the child that changed. Add a ViewParent method findDependentLayoutAxes. This allows a caller to check if the ViewParent's layout is dependent on a specific direct child view along one or both axes. Called recursively, this can be used to determine if a change in a child view can be isolated to a partial layout, even if its direct parent's own layout is tied to its other ancestors. (e.g. MATCH_PARENT, LinearLayout weights) Implement ViewGroup#requestPartialLayoutForChild to call new ViewParent method findDependentLayoutAxes and based on the result, either request a full layout for itself or a partial layout for the child in question. Implement findDependentLayoutAxes for common framework ViewGroups. A private implementation in ViewGroup is available for use by framework classes that will deal with basic LayoutParams. These implementations specifically check for derived LayoutParams classes and abort the optimization if they find something beyond their expected parameter types. Change-Id: I0a1a9b79293d17d4fae8d9892b96d3586f9401ae
/frameworks/base/core/java/android/widget/TextView.java
|
4ba0aa598ea86b7cffab8cd6ccd007e4e29cf883 |
|
17-Nov-2015 |
Siyamed Sinir <siyamed@google.com> |
TextView setText/append methods set movement method Previously, TextView setText and append methods set the movement method to LinkMovementMethod only when autoLink was enabled and Linkify was able to find links in the input text. This CL adds the case where autoLink is false, linksClickable is true, and the input text contains ClickableSpans. Fixes https://code.google.com/p/android/issues/detail?id=2219 Bug: 1712837 Change-Id: Ife4e35bac7f6cb48ad0dac6ecb4b90aec126fc73
/frameworks/base/core/java/android/widget/TextView.java
|
a0db63f6efaac538a371d1390f27e07f209651a9 |
|
11-Nov-2015 |
Siyamed Sinir <siyamed@google.com> |
TextView.append() honors autoLink attribute The append() method now checks if autoLink is set and adds the URLSpans to given text before appending to the existing text. Fixes https://code.google.com/p/android/issues/detail?id=1244 Fixes https://code.google.com/p/android/issues/detail?id=191353 Bug: 1404366 Bug: 25222125 Change-Id: I47a8beec9799e4f92ce266ceed41a634b7f7cc96
/frameworks/base/core/java/android/widget/TextView.java
|
2b46e657f9d4190374d401bc7daed1b610721fe6 |
|
30-Oct-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Use constants for return value of TextView#doKeyDown -1, 0, 1, and 2 were directly used for the return value of TextView@doKeyDown. It's very hard to understand what each value means. Change-Id: I88dad15e2b68f652c8479a01f9f241c6638b5284
/frameworks/base/core/java/android/widget/TextView.java
|
b3163ed1188f312d754b9d34a617c31dfeceabbb |
|
28-Oct-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Support KEYCODE_{CUT, COPY, PASTE} in TextView. Bug: 25292652 Change-Id: I8e2c1986e45d9bfd09ab54dea6d2e3701f76df18
/frameworks/base/core/java/android/widget/TextView.java
|
fa7834379fe174729411165d5678dc9bca8dc9ca |
|
21-Oct-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "Fix toolbar flickering in ExtractedMode when longpressing." into mnc-dr-dev am: ee4ab0a55b am: 24fc647e70 am: 509a74972a am: fe622345b0 * commit 'fe622345b02656b9e049dde9936987f38984e97d': Fix toolbar flickering in ExtractedMode when longpressing.
|
ee4ab0a55b355b21168de0eb5615f2e321c2982f |
|
21-Oct-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "Fix toolbar flickering in ExtractedMode when longpressing." into mnc-dr-dev
|
2aaeefec92ad70d9797b98caed4b554b982421c8 |
|
20-Oct-2015 |
Andrei Stingaceanu <stg@google.com> |
Fix toolbar flickering in ExtractedMode when longpressing. onPreDraw starts an action mode in extract mode only which does not consider the type of motion event and since extracted mode never gets the focus event it never hides so it does not need to show again. Stop starting an action mode onPreDraw in extracted mode and let the onTouchEvent handle starting the mode. Also re-enabled dragging and dropping for ExtractedMode (most of the issues were caused by starting the action mode onPreDraw). Bug: 25102276 Change-Id: I90d8e9f42f395b6b529e4d023ba6939e0dfb147f
/frameworks/base/core/java/android/widget/TextView.java
|
c8d82888328818988cd2f413e757403c90664108 |
|
21-Oct-2015 |
Abodunrinwa Toki <toki@google.com> |
Merge "Re-set PROCESS_TEXT selection if nothing was returned." into mnc-dr-dev am: 3bd3655fd0 am: 9e97c20ed9 am: 0eef4ab567 am: 4d14e65cdf * commit '4d14e65cdf968ba43e47fe79e7b6d7e62d8b2ed1': Re-set PROCESS_TEXT selection if nothing was returned.
|
3b8a5ea036670421ef962d6ed8b22d214e933711 |
|
20-Oct-2015 |
Abodunrinwa Toki <toki@google.com> |
Re-set PROCESS_TEXT selection if nothing was returned. Bug: 25043887 Change-Id: If069a5e23f1adf6a2c3aac8fe7e3f19cff2e28ad
/frameworks/base/core/java/android/widget/TextView.java
|
1db5397d88e722b1ab82ccb2b429ceec1179ccd8 |
|
12-Sep-2015 |
Jun Mukai <mukai@google.com> |
Allow changing mouse pointer icon for the current context. Right now, it only supports I-beam on EditText, but further rules will come in the future. The png files for the icons are from chromium. Bug: 24180385 Change-Id: I8de4ec8a5412b4830c08aa232c5083841c5c751c
/frameworks/base/core/java/android/widget/TextView.java
|
ad0020f8075ecf768cb610d60dbb167d41f0fbe5 |
|
04-Sep-2015 |
Alan Viverette <alanv@google.com> |
Invalidate when Drawable.setState() returns true Ensures views that manage drawables follow the contract set forth in the Drawable.setState() documentation. Bug: 23792020 Change-Id: I4e5a449cd6535487873fd8443da50555c38e8ed9
/frameworks/base/core/java/android/widget/TextView.java
|
a23748a9ff9ddc8b490fc31752afa9b955d5e156 |
|
31-Aug-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Add LocaleList support to Paint and TextView. This keeps the existing single-locale APIs working (and adds parameter annotations to them), while adding an API for setting and getting the whole locale list. At the moment, the implementation ignores the actual data in the locale list except for its primary locale. Also add a method to LocaleList to return the system's default locale list. (Currently a one-member list just containing the system default locale.) Change-Id: Icea9d164ddae51f50dd71e18b5d91c96f233b8b8
/frameworks/base/core/java/android/widget/TextView.java
|
798253e190e473edc7074f5e20eadf5fbce6e3ed |
|
27-Aug-2015 |
Alan Viverette <alanv@google.com> |
Expose password text to accessibility services, if requested Otherwise, exposes the hint or the result of whatever transformation method is set. This is consistent with what is displayed visually. Bug: 23568127 Change-Id: Ib5c7fe78fb3b58feb36f0314638345bd40e401ab
/frameworks/base/core/java/android/widget/TextView.java
|
a60160b30bf1b6aa27cdaf03cf9b6c245f338d84 |
|
19-Aug-2015 |
Seigo Nonaka <nona@google.com> |
Introduce simple SuggestionsPopupWindowTest. This CL introduces very simple test case for SuggestionPopupWindow. I'm going to introduce more test cases for complex scenario once this approach is accepted, e.g. multiple suggestion span and misspelled flag. This CL is a part of groundwork for Bug 15347319 and no user visible change is intended with this CL. Bug: 15347319 Change-Id: Idf166cbecb3e33be213e4104cf1afd827906f2ad
/frameworks/base/core/java/android/widget/TextView.java
|
8515917246eb09e8d6d43278c362920807a16948 |
|
30-Jul-2015 |
Daniel Sandler <dsandler@android.com> |
am 202dd44a: am 5ea22216: am 82935916: am 033fe243: am bbe1682b: Merge changes from topic \'fix-media-notifications\' into mnc-dev * commit '202dd44a90439eb823566b718c5a8fb159d73a73': Fully support Icons in Notification actions. Fix media notification action icons.
|
912282e7319370cb74727895a49c0598fb0a7b02 |
|
29-Jul-2015 |
Dan Sandler <dsandler@android.com> |
Fully support Icons in Notification actions. RemoteViews now allows Icons as TextView compound drawables in RemoteViews, but not yet as public API. Bug: 22600607 Change-Id: I986a0ce3bede09746f0b121884184679f39a79f5
/frameworks/base/core/java/android/widget/TextView.java
|
a2c1d7841ad5c47a865763335f7d29344924edaa |
|
14-Jul-2015 |
Andrei Stingaceanu <stg@google.com> |
am 464f4006: am dfa116e2: am 2e59771e: am 0e6360f4: am a9b9907f: Merge "Fix insertion handle disappearing in extract mode" into mnc-dev * commit '464f40065f0ccd41214733d2a158a035a8b644b6': Fix insertion handle disappearing in extract mode
|
cfa13a77ed8f7fb479fd3556c93586654200f7ea |
|
08-Jul-2015 |
Andrei Stingaceanu <stg@google.com> |
Fix insertion handle disappearing in extract mode In extract mode, on every screen touch TextView#setExtractedText gets called which calls SpannableStringBuilder#sendTextChanged which in turn stops the action mode. As a fix, if the text is the same only copy the spans without replacing everything. Bug: 22315095 Change-Id: I28da760b3dc11e1cfbaf720e547bd817c5b89d7e
/frameworks/base/core/java/android/widget/TextView.java
|
1699ba48ceaddbab0585f25c0fe5b477964f71de |
|
08-Jul-2015 |
Dianne Hackborn <hackbod@google.com> |
am 88936b7f: am a719be69: am 15e35270: am 5e449276: am f2474d33: Merge "Implement better handling of text in assist." into mnc-dev * commit '88936b7f82a6ec4023078e62304425147da4b56e': Implement better handling of text in assist.
|
f2474d336a7df696f3897e2cd255d138eb3fac02 |
|
08-Jul-2015 |
Dianne Hackborn <hackbod@google.com> |
Merge "Implement better handling of text in assist." into mnc-dev
|
6f0fdc4167ad906fc7409856e86cd0cc601c3b53 |
|
07-Jul-2015 |
Dianne Hackborn <hackbod@google.com> |
Implement better handling of text in assist. TextView is now much smarter about the text it reports, limiting it to what is visible (plus a bit more). Also add a facility for it to report where the lines of text are, both as offsets in the text string and their baselines on screen. Part of fixing issue #22328792: Fix scalability issues in AssistStructure Change-Id: Idddb8c3a3331355f381e2d4af06d520fe7c7ce8e
/frameworks/base/core/java/android/widget/TextView.java
|
734d61c2c253681aec73222a8aa34d3615ad1a68 |
|
07-Jul-2015 |
Andrei Stingaceanu <stg@google.com> |
am 4a981c3a: am 8f40a25d: am 5fcfa576: am bb09a7cd: am bc687f96: Merge "Drag handles persist after lost focus in extracted mode" into mnc-dev * commit '4a981c3a25cdce5d3a5c95beb7c2215476309d45': Drag handles persist after lost focus in extracted mode
|
bc687f96c74bd164f5d030cebe80d38274ca336c |
|
07-Jul-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "Drag handles persist after lost focus in extracted mode" into mnc-dev
|
1156b48d5bce4f0aacabfa76db88cdbb5589d383 |
|
04-Jul-2015 |
Abodunrinwa Toki <toki@google.com> |
am e91d7908: am 7099e39f: am 8fbe1a0c: Merge "Add accessibility actions for the PROCESS_TEXT feature." into mnc-dev * commit 'e91d790814144c7f9fda350aaa96132008020044': Add accessibility actions for the PROCESS_TEXT feature.
|
8fbe1a0cfc0354067c10e5e788519c19f4b39349 |
|
02-Jul-2015 |
Abodunrinwa Toki <toki@google.com> |
Merge "Add accessibility actions for the PROCESS_TEXT feature." into mnc-dev
|
99d3bbdcbff6a37ef21f4d42845ccff0cbdf1e4c |
|
30-Jun-2015 |
Andrei Stingaceanu <stg@google.com> |
Drag handles persist after lost focus in extracted mode If extracted mode is to be started and we already had a selection made do not start the action mode but only the selection. Non-extracted mode keeps the current behavior. Bug: 22100966 Change-Id: Iad9a95c28474a68dc4fbc7032cbab1dc6e234d45
/frameworks/base/core/java/android/widget/TextView.java
|
16f3e55df81dadf3ffb297ac7866c00e1f6a84ac |
|
30-Jun-2015 |
Maxim Bogatov <maximbogatov@google.com> |
am b0c1485d: am 24815124: am 7a2e4b8f: Merge "Let TextView clear accessibility selection index" into mnc-dev * commit 'b0c1485d4119e87507093892e0b1d96f777f5c55': Let TextView clear accessibility selection index
|
7a2e4b8f80de85d11d8bd49e559acd56801ea541 |
|
30-Jun-2015 |
Maxim Bogatov <maximbogatov@google.com> |
Merge "Let TextView clear accessibility selection index" into mnc-dev
|
deaf0dbe49fefc20bd0ce55a958205667bd88d3f |
|
27-Jun-2015 |
Abodunrinwa Toki <toki@google.com> |
Add accessibility actions for the PROCESS_TEXT feature. Also refactored the code so that PROCESS_TEXT-related code is shared by menu item actions and accessibility actions. Bug: 21890235 Change-Id: Ie932fa9bb5cd3d8bd29f8c82695f3c7490693cbd
/frameworks/base/core/java/android/widget/TextView.java
|
b1efe967ba4509a07d4e677a485f18e8abc16460 |
|
29-Jun-2015 |
Seigo Nonaka <nona@google.com> |
am 45034326: am a7c725f2: am e96b1c6f: Merge "Fix crash due to reverse selection." into mnc-dev * commit '450343261eaed2c5f5c83ed7ea31d570cf73569b': Fix crash due to reverse selection.
|
e96b1c6f82c9d52fd3d3e9e674c2f77f6e300eef |
|
29-Jun-2015 |
Seigo Nonaka <nona@google.com> |
Merge "Fix crash due to reverse selection." into mnc-dev
|
1fa819b337c539f62da8648beec17ca2b630484f |
|
26-Jun-2015 |
Maxim Bogatov <maximbogatov@google.com> |
Let TextView clear accessibility selection index b/22101633 Change-Id: I861cb705d78b2ed1cf0fab0dab36df3fac7d8256
/frameworks/base/core/java/android/widget/TextView.java
|
e1f75778706595e2fa65de63a9c3a8a10cf9510a |
|
27-Jun-2015 |
Abodunrinwa Toki <toki@google.com> |
am 9508d873: am e02ee117: am 1223a75a: Merge "TextView: add the "Share" accessibility action." into mnc-dev * commit '9508d8738e2f7b16b8f6fdc8ce49d9708374840f': TextView: add the "Share" accessibility action.
|
1223a75a672ab249fb966055a98ea2ab807206cf |
|
27-Jun-2015 |
Abodunrinwa Toki <toki@google.com> |
Merge "TextView: add the "Share" accessibility action." into mnc-dev
|
2d509bc4228ce45a8a41acb52629d95afba85e86 |
|
26-Jun-2015 |
Mady Mellor <madym@google.com> |
am 06121b67: am eb0918f1: am 450176c5: Merge "Fix: Text selection handles shouldn\'t be shown in accessibility mode" into mnc-dev * commit '06121b67333b764f6a9f2d2902ae7babed2ae6c2': Fix: Text selection handles shouldn't be shown in accessibility mode
|
0e5c60319246685b76d0edb8dc0eabe1e777e4c9 |
|
26-Jun-2015 |
Abodunrinwa Toki <toki@google.com> |
TextView: add the "Share" accessibility action. Bug: 21891817 Change-Id: I99b7489845b2103c18fd74d15d0050c34f37ca67
/frameworks/base/core/java/android/widget/TextView.java
|
011a42dee7c31ce781b9393e7dcdea4bd5e90384 |
|
25-Jun-2015 |
Mady Mellor <madym@google.com> |
Fix: Text selection handles shouldn't be shown in accessibility mode If you select some text normally while in accessibility mode, it should be cleared and handles should not show if you initiate text selection using the accessibility context menu. Bug: 22071639 Change-Id: I32b966e771ba5715a0ab370e6aa602398e5ec534
/frameworks/base/core/java/android/widget/TextView.java
|
5c0d4d0a86417f164710b67a81cf6fd3eb38c3fe |
|
26-Jun-2015 |
Seigo Nonaka <nona@google.com> |
am 4ce47333: am 3178da6b: am 084b7a15: Merge "Do not show selection action mode when the TextView is not shown." into mnc-dev * commit '4ce47333d035728f7ab416e79dcfe3f7f3f6b1dd': Do not show selection action mode when the TextView is not shown.
|
084b7a15c9a1bdbbb64d9921eaeb12235bc5fc17 |
|
26-Jun-2015 |
Seigo Nonaka <nona@google.com> |
Merge "Do not show selection action mode when the TextView is not shown." into mnc-dev
|
e9311579da9fcbc1f32deb0ca29848a46b218d1a |
|
25-Jun-2015 |
Yohei Yukawa <yukawa@google.com> |
am 6a402ca6: am d408d293: am ab142f7f: Merge "Handle back key to cancel text action mode in full-screen IME." into mnc-dev * commit '6a402ca629185576cf774587da8079977833d25e': Handle back key to cancel text action mode in full-screen IME.
|
ab142f7f57c8fd805e6cf65fccf2c8d3eba285b5 |
|
25-Jun-2015 |
Yohei Yukawa <yukawa@google.com> |
Merge "Handle back key to cancel text action mode in full-screen IME." into mnc-dev
|
86d60cde91eb4216580fe9d1250dc27c17e86c70 |
|
25-Jun-2015 |
Seigo Nonaka <nona@google.com> |
Fix crash due to reverse selection. Selection start can be bigger than selection end and this kind of selection is generated by mouse selection at least from L MR1. To fix and support SHARE button for this kind of selection, getSelectedText need to invert selection start and selection end when the selection start is bigger than selection end. Bug: 22065979 Change-Id: Ide4ac41e3f59d256033aca004450712ca0bb0f03
/frameworks/base/core/java/android/widget/TextView.java
|
145252f84027babc196a44ae6ff3debbf763ca30 |
|
25-Jun-2015 |
Seigo Nonaka <nona@google.com> |
Do not show selection action mode when the TextView is not shown. OnPreDraw is called even if the View is not visible. So need to check isShown() and hasWindowFocus() before calling starting selection action mode. This hack is originally introduced for keeping selection on device rotation. I manually verified this issue does not revive with this CL. Bug: 22036870 Change-Id: I814db6165e2345fcacedcbd399c1a3985501c8fd
/frameworks/base/core/java/android/widget/TextView.java
|
0449ac457cea475ae991114dd3ccaa7d7a31e70e |
|
25-Jun-2015 |
Mady Mellor <madym@google.com> |
am e72764f8: am 9fc12583: am d4d802be: Merge "Fix: Don\'t display the drag handles when focus is lost" into mnc-dev * commit 'e72764f8bb1db22fee9f955a8a0bf20dbc3e3919': Fix: Don't display the drag handles when focus is lost
|
a48b90e12ee5c47f6cd1ce88d8d0d9421757109d |
|
25-Jun-2015 |
Andrei Stingaceanu <stg@google.com> |
am ede6cfa5: am 705a9abc: am 3d7109a1: Merge "EditText - can not drag handles in extracted mode" into mnc-dev * commit 'ede6cfa5edd90c77c2f7bbe78022b31392eac63c': EditText - can not drag handles in extracted mode
|
d4d802be39c67bf207bbb693d32c6a59c78ed3bb |
|
25-Jun-2015 |
Mady Mellor <madym@google.com> |
Merge "Fix: Don't display the drag handles when focus is lost" into mnc-dev
|
a2861454aa287e4986e0241f5158324a4c8ef15c |
|
25-Jun-2015 |
Mady Mellor <madym@google.com> |
Fix: Don't display the drag handles when focus is lost The text selection handles should be hidden / shown when the window loses / regains focus. Additionally renames method to make more sense. Bug: 22062480 Change-Id: I6e160234cf112ee285367637e2f1c14defd82e89
/frameworks/base/core/java/android/widget/TextView.java
|
1cb1f1523a927bba670f36adea57106a0f61c07c |
|
24-Jun-2015 |
Andrei Stingaceanu <stg@google.com> |
EditText - can not drag handles in extracted mode In TextView's onPreDraw method, startSelectionActionMode() is called, but the selection has already been started so in startSelectionActionMode() it shows the insertionController which hides the selectionController. Fix this by adding a check to start the action mode only if it is not already started. Bug: 22028858 Change-Id: I2999423155b7a63a7d879bc8ea5032e17dff459f
/frameworks/base/core/java/android/widget/TextView.java
|
38940aab693be587d5901f4ef110cbf95da0e22f |
|
24-Jun-2015 |
Yohei Yukawa <yukawa@google.com> |
Handle back key to cancel text action mode in full-screen IME. This CL is a follow up to I7998c8ee2162a0e01525a0cd66ec14fa505, which completely removed ExtractActionMode including back key handling in InputMethodService when full-screen mode is enabled. It turns out that back key events still need to be handled in InputMethodService when full-screen mode is enabled so that users can still cancel floating text action mode with back key. Bug: 22034992 Change-Id: I5f8db34f7425eef343d40d9820925ea6aaf9fccc
/frameworks/base/core/java/android/widget/TextView.java
|
2d021f8abfb096eda6e5f921c4a8820a1b58bcca |
|
23-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
am 3eb5480b: am 4401943e: am a6fb1e70: Merge "Fix issue #20654534: API Review: android.app.assist" into mnc-dev * commit '3eb5480b3464e7a29c0940a07cb094d24bc923f7': Fix issue #20654534: API Review: android.app.assist
|
a3422ee07054c6e13cb2f60bcf92c4e0056f06cf |
|
23-Jun-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
am da0b7033: am 30e7f79b: am 1384d1d9: Merge "Fix: TextView makes new layouts too frequently." into mnc-dev * commit 'da0b7033e6e51045a14bb81772dca6dc1dae710f': Fix: TextView makes new layouts too frequently.
|
a6fb1e70ffa4faeba725b06610f4daa1ee60ead8 |
|
23-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
Merge "Fix issue #20654534: API Review: android.app.assist" into mnc-dev
|
1384d1d90030d568e1f1b8e7e95ae424ba40bcb5 |
|
23-Jun-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Merge "Fix: TextView makes new layouts too frequently." into mnc-dev
|
16036f26847f3f1a88a093fb776bf081008ff8d8 |
|
22-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #20654534: API Review: android.app.assist Remove the old classes. Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
/frameworks/base/core/java/android/widget/TextView.java
|
ec9e10b74d041a6b39c50f33677e571efe081614 |
|
22-Jun-2015 |
Andrei Stingaceanu <stg@google.com> |
am 4ca5725f: am 76d2204d: am b1891b3f: Fix selection by double tap in Extracted mode * commit '4ca5725f95e613a9550f77e4ec155432141a8095': Fix selection by double tap in Extracted mode
|
b1891b3fc9d07ef766978f0a39c382b217a529e0 |
|
19-Jun-2015 |
Andrei Stingaceanu <stg@google.com> |
Fix selection by double tap in Extracted mode Select with double tap in extracted mode has suffered a regression recently: flickers and it does not correctly select. Found this fix after a lot of trials. Bug: 20128047 Change-Id: I1bbe8c11982d37e5409bac2b648a31b0ca1f0bbc
/frameworks/base/core/java/android/widget/TextView.java
|
17b0bda4db04d0918df807786a2cd7addbdd4f25 |
|
19-Jun-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Fix: TextView makes new layouts too frequently. TextView#checkForRelayout was almost always called in TextView#onRtlPropertiesChanged. However, #onRtlPropertiesChanged just checks if re-layout can be skipped for when the text has changed. As a result, TextView makes new layouts too frequently in that method. With this patch, TextView#checkForRelayout is called only when mTextDir has actually changed. Bug: 17971103 Change-Id: I449d8c8fd7370495cd5af9e38cada942744ca801
/frameworks/base/core/java/android/widget/TextView.java
|
d5a0e5c84b348545597aa5fb5e83a773fab8e6a2 |
|
18-Jun-2015 |
Raph Levien <raph@google.com> |
am fc40d939: am efe1f4bb: am 8872ca4d: Merge "Remove indents from TextView" into mnc-dev * commit 'fc40d939819dca79cd02b7be93531cf2268bb9fa': Remove indents from TextView
|
8edac58e55808042af4365aa5a28dfdd1ebf65fc |
|
18-Jun-2015 |
Raph Levien <raph@google.com> |
Remove indents from TextView On more careful reflection, the "indents" feature was not ready for inclusion in the public API. It is still available at a lower level in StaticLayout. Also fix a minor typo in the doc for breakStrategy. Bug: 20641996 Change-Id: I5cd976a536c48615980860396b1564b51b19e14a
/frameworks/base/core/java/android/widget/TextView.java
|
f8b32531801d87699b28e9454e81ebf96367a9bd |
|
12-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
am ccd6d0c1: am d55860d9: am 8a435ced: Merge "Fix APIs." into mnc-dev * commit 'ccd6d0c14decd111e7e12bf9844fa5ff75aa912e': Fix APIs.
|
ece0f4f5198e9e9cb60e96f036baf22c73411bec |
|
11-Jun-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix APIs. Issue #21039494: API Review: android.os.PowerManager.isDeviceIdleMode() Issue #21347000: API Review: android.content.IntentFilter Issue #20654534: API Review: android.app.assist Also allow use of ActivityManager.setWatchHeapLimit on any platform build as long as the calling app is debuggable. Change-Id: Ic597e596fa772fcdf2553b64f444b3d9269e8b92
/frameworks/base/core/java/android/widget/TextView.java
|
3108240a9e44cf23c36aa6773134abd7d861536d |
|
10-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
am 0dd41507: am dc904377: am 89124000: Merge "Fix Floating tool bar flickers after long pressing on empty region." into mnc-dev * commit '0dd41507d57c0533755653bb94de40a89eb5c734': Fix Floating tool bar flickers after long pressing on empty region.
|
b71ddddfd3d950a723fc8a3e996e6c32f214fad7 |
|
05-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Fix Floating tool bar flickers after long pressing on empty region. Bug: 21452427 Change-Id: Icc70b85279fde1aa9d5c10bd89bb886797a49235
/frameworks/base/core/java/android/widget/TextView.java
|
866d3c7bfb27506bd626e0733b02902b7ec5f7fc |
|
05-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
am 5d9d3281: am e3aba488: am 3e85c1ed: Merge "Fix Select All should not be shown when everything is already selected" into mnc-dev * commit '5d9d32816afca2976634dff0e4cdfd16f30e65b1': Fix Select All should not be shown when everything is already selected
|
3e85c1ed0cce70164dfe6f8ffa4bf3695c4ce0ba |
|
05-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Fix Select All should not be shown when everything is already selected" into mnc-dev
|
3d5a78aa40c09854578d5ab2f7d581c3a7ae07a0 |
|
05-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
am acc6fc50: am fee163c5: am de5cdeba: Merge "Fix Toolbar is not refreshed after Select All" into mnc-dev * commit 'acc6fc509e2f45bfbb2a9d148a7e61a378f18b3e': Fix Toolbar is not refreshed after Select All
|
01243ac57e7be3c409c1238eff352c0e8acbe9ef |
|
03-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Fix Toolbar is not refreshed after Select All Bug: 21361248 Change-Id: Iab913bd610c208e5881d3d0eb5574efdf9eb5d92
/frameworks/base/core/java/android/widget/TextView.java
|
3b69fd81df89896cdd6c2903c79da744bd1eabfd |
|
03-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Fix Select All should not be shown when everything is already selected Condition Select All on whether the full text is already selected, and add/remove this item when needed on ActionMode invalidation. Bug: 21608943 Change-Id: Iad5f8a77a03b98024f7dcf355b2f7f0d1338b94a
/frameworks/base/core/java/android/widget/TextView.java
|
b1d4d77d6a1ab5e2c8d84f02014a08da66e414d1 |
|
05-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
am 612e1da8: am f407aa30: am c1f28bc9: Merge "Separate the SelectionActionMode into Insertion and Selection." into mnc-dev * commit '612e1da808b327aba06be883a54dc08f9afd6dd2': Separate the SelectionActionMode into Insertion and Selection.
|
7938cdbf985f88017f994e69cfe517970cb65b4d |
|
02-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Separate the SelectionActionMode into Insertion and Selection. When we got rid of the paste popup, we merged it into the Selection ActionMode and moved all its invocations to the ActionMode. Some apps actually want the paste popup without the Selection ActionMode, hence separating them again allows them to cancel the one they want. Bug: 21571422 Change-Id: I91bcd0d9c3e68d9c736698fe0bec010b4c9f5cf3
/frameworks/base/core/java/android/widget/TextView.java
|
8746623e3cb7e5c8fc0f775b6b7ffb09a7add3ca |
|
04-Jun-2015 |
Raph Levien <raph@google.com> |
am 7f374287: am 85e9092d: am 88ac4e04: Merge "Rename setTextDir to setTextDirection" into mnc-dev * commit '7f374287c418fd66299be4db36db21e5ab04740a': Rename setTextDir to setTextDirection
|
a6a082862b9e2ea4c9e9a1a945927c4040993f6e |
|
03-Jun-2015 |
Raph Levien <raph@google.com> |
Rename setTextDir to setTextDirection StaticLayout.Builder used "setTextDir" as a shorthand, but it's not as clear as spelling it out. So, setTextDirection. Bug: 21572282 Change-Id: Ia94476562d70678f963196b87bb63511d30836b6
/frameworks/base/core/java/android/widget/TextView.java
|
be850e83622ba2341a007e470272461a679084b7 |
|
02-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
am 9ebf7522: am 8ed46d3f: am a0b77dd5: Merge "Fix TextView ActionMode overflow finishes the ActionMode" into mnc-dev * commit '9ebf7522895589d7bc9d6508c100ef8a26d42c9f': Fix TextView ActionMode overflow finishes the ActionMode
|
a0b77dd5e2a6011291810db392be0981ed73aa97 |
|
02-Jun-2015 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Fix TextView ActionMode overflow finishes the ActionMode" into mnc-dev
|
fe114c68bb35ebdd25224c2c343b2e0626324bfb |
|
01-Jun-2015 |
James Cook <jamescook@google.com> |
am fcce03b6: am 3c668bac: am 63b6320a: Merge "assist: Fix reported colors/styles for TextView/Switch" into mnc-dev * commit 'fcce03b6085b3faaaa2c95a6c32343be07cce2a3': assist: Fix reported colors/styles for TextView/Switch
|
63b6320af4302c0d190bbfaba739049b59c2418b |
|
29-May-2015 |
James Cook <jamescook@google.com> |
Merge "assist: Fix reported colors/styles for TextView/Switch" into mnc-dev
|
a447937dd38003f09a27c578ec2899777348ca7f |
|
21-May-2015 |
Clara Bayarri <clarabayarri@google.com> |
Fix TextView ActionMode overflow finishes the ActionMode stopSelectionActionMode() was called within hideCursors, and this gets called in many scenarios. One of them is onWindowFocusChanged, which is triggered when the user clicks the overflow icon in the action bar. Removed the action mode call from this use case. Bug: 21267270 Change-Id: I1cd359e87de67141627e25d2ec520fc91303a48d
/frameworks/base/core/java/android/widget/TextView.java
|
5cfaae4aae744574f0fcc0876cdc5473bc1a344d |
|
29-May-2015 |
James Cook <jamescook@google.com> |
assist: Fix reported colors/styles for TextView/Switch Changes to the data provided to AssistStructure: * Text foreground color is correct even if the view has not yet been painted. * Text background color is now always 1 (TEXT_COLOR_UNDEFINED) for a TextView, as it has no separate concept of background color. * Switch now reports the text size/color/style of the label text (usually user visible) rather than the on/off text on the button itself (usually hidden in Material, and not usually revelant when visible). Bug: 21080375 Change-Id: I7e15f68d89510a76cab76031c2c8ca6ca3f32435
/frameworks/base/core/java/android/widget/TextView.java
|
a38d8ca16a6defd9cc37e64076f700362410cf4a |
|
28-May-2015 |
Andrei Stingaceanu <stg@google.com> |
am cf21bf53: am bbfacb4e: am 373816ef: Stop showing both the floating toolbar and suggestions * commit 'cf21bf53c615c1e522c76b86f16115ffb484f688': Stop showing both the floating toolbar and suggestions
|
373816ef1f7ab9954889ed02a6b2b39fe4aa4f44 |
|
28-May-2015 |
Andrei Stingaceanu <stg@google.com> |
Stop showing both the floating toolbar and suggestions The selection mode without selection (PASTE|SELECT_ALL) pops up along the suggestion popup if we tap on a word within 15sec of the most recent cut/copy/textChanged operation. Fix this by making suggestion popup take precedence. Also moved the invalidation of the text changed time into the handleTextChanged() which fixes the selection mode starting once after the text has changed. NOTE: Subsequent clicks on non-suggestion spans will still trigger the selection mode without selection if within the defined timeframe. Bug: 20443325 Change-Id: If2726e2c965e77e82ef7b847cf352d4426205bdc
/frameworks/base/core/java/android/widget/TextView.java
|
d58ab0a4744dd099814f3b285123173ab5dc9ca5 |
|
19-May-2015 |
Clara Bayarri <clarabayarri@google.com> |
am f11210a3: am 9053af6f: am e94561ec: Merge "Fix Cancelling a text action activity deletes the selected text" into mnc-dev * commit 'f11210a36cc2550c65dd891c2ddb749f412df816': Fix Cancelling a text action activity deletes the selected text
|
e94561ecbcb7f6df2446b811de9ad5cfaff29d99 |
|
19-May-2015 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Fix Cancelling a text action activity deletes the selected text" into mnc-dev
|
5b7665a1f2403a03c1f9baf73a4aa8f5a66b1352 |
|
15-May-2015 |
Clara Bayarri <clarabayarri@google.com> |
Fix Cancelling a text action activity deletes the selected text The implementation of onActivityResult in TextView did not check the result code, hence treating the cancelled activity result as a replacement by empty text. Also added tests to catch this case and basic usage. Bug: 21183019 Change-Id: Ibdafe89474dd69c5b70c67ec98fed46656f9fdcf
/frameworks/base/core/java/android/widget/TextView.java
|
ad91a1d7801cc7968f9135381c9cb92080c24b48 |
|
14-May-2015 |
Andrei Stingaceanu <stg@google.com> |
am ed146a96: am c2bdee59: am d674f230: Merge "Editor: enable double tap for selection after cut/copy." into mnc-dev * commit 'ed146a96073ce2bbed2850c37fab46985358f259': Editor: enable double tap for selection after cut/copy.
|
6d9d9d1cb34148372073b4bcd720f4d4bf3e2be4 |
|
14-May-2015 |
Andrei Stingaceanu <stg@google.com> |
am c84dfea8: am dee1479c: am c398adf8: Merge "Fix floating toolbar popping frequently after Replace/Copy" into mnc-dev * commit 'c84dfea8f9c204edf3d2e5469a2538da88e159b2': Fix floating toolbar popping frequently after Replace/Copy
|
ecb7de8ee991c00be8cf68353696e09e9aebba55 |
|
14-May-2015 |
Andrei Stingaceanu <stg@google.com> |
am 1496cdd0: am 46044e85: am 78e2f07e: Merge "Fix: replace terminates extract mode (floating toolbar)" into mnc-dev * commit '1496cdd09d210d3f9533ee5857f44f719fe9c2e3': Fix: replace terminates extract mode (floating toolbar)
|
fae270c108f774d48f5b8f122d46c533ad4ef2f5 |
|
29-Apr-2015 |
Andrei Stingaceanu <stg@google.com> |
Editor: enable double tap for selection after cut/copy. * detect double tap in the TextView and pass it to Editor. * add a timer (with getDoubleTapTimeout) for executing the single tap job in Editor. * if double tap is detected then cancel the single tap job. This way one tap shows the toolbar if within the timeframe and two taps select the word and show the toolbar. Bug: 20442587 Change-Id: I0a117939c896fcb13669346e30c9c48d319576dd
/frameworks/base/core/java/android/widget/TextView.java
|
c398adf81c5167fc4b9b9cefd1550bc8fd4a54e6 |
|
14-May-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "Fix floating toolbar popping frequently after Replace/Copy" into mnc-dev
|
78e2f07e81ee9040a4ecca331411123ef35d81c2 |
|
14-May-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "Fix: replace terminates extract mode (floating toolbar)" into mnc-dev
|
35a85ab057ae81c01665567e97bba2ae5cc2afec |
|
13-May-2015 |
Roozbeh Pournader <roozbeh@google.com> |
am e652d17b: am 703b5078: am 0ca0f580: Merge "Add hyphenationFrequency attribute to TextView and StaticLayout." into mnc-dev * commit 'e652d17b3e8af3c4e8e3355cca864e61aad0dc35': Add hyphenationFrequency attribute to TextView and StaticLayout.
|
0ca0f5800034f5fbd041d31617efa75f9d727885 |
|
13-May-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Merge "Add hyphenationFrequency attribute to TextView and StaticLayout." into mnc-dev
|
95c7a13f2ac4f31ed3aaec9b47b9a29a3dbca978 |
|
12-May-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Add hyphenationFrequency attribute to TextView and StaticLayout. This patch adds plumbing to TextView and StaticLayout to control the frequency of automatic hyphenation used in laying out paragraphs. Bug: 21038249 Change-Id: Ib45de190eb0a1ed738e69fd61f2b39561b11aec7
/frameworks/base/core/java/android/widget/TextView.java
|
c6f9023ab192b4f0343a994ab86cf4fdf462d0ae |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
am e9724679: am ca0790cd: am 6af2857a: Merge "Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""" into mnc-dev * commit 'e9724679302ddb0d83fa24d782601db7de30c050': Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""
|
8420acd26879456ac79b244997d448e1ca909d42 |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
am 1d0b13b7: am db05ea90: am d2c05188: Merge "Fix build - Revert "Revert "Use default constructor to get anti-aliasing""" into mnc-dev * commit '1d0b13b74797b27bd431d68f25fdd5e7c5ec751a': Fix build - Revert "Revert "Use default constructor to get anti-aliasing""
|
4538cdbbb0174ffd2c9357f0864528c07f05cc0c |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
am 99aac0fc: am f3aad322: am fd41cf0c: Merge "Revert "Use default constructor to get anti-aliasing"" into mnc-dev * commit '99aac0fc62a0b6f28bc732cd2153f8883ec7f09f': Revert "Use default constructor to get anti-aliasing"
|
6a49ddef62865c1b245ad60a13c334f0ffaf1a5f |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing""" Fix import This reverts commit 7ed1431c83286abc83b9e5afc45fbd21ecb777b1. Change-Id: Id93eba3ed1d47a90384ba20dea6f74d78755792b
/frameworks/base/core/java/android/widget/TextView.java
|
7ed1431c83286abc83b9e5afc45fbd21ecb777b1 |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
Fix build - Revert "Revert "Use default constructor to get anti-aliasing"" This reverts commit dfe0a66ceca530e0777ebfab20f81103baa18f14. Change-Id: I58a1bae649a284f3d3b6213064d903ea7fcf185a
/frameworks/base/core/java/android/widget/TextView.java
|
dfe0a66ceca530e0777ebfab20f81103baa18f14 |
|
12-May-2015 |
Chris Craik <ccraik@google.com> |
Revert "Use default constructor to get anti-aliasing" bug:20948129 This reverts commit 58fc522a69e8ddf9ac8530ce88e9c2c92da1dd14. Change-Id: Iddeccb4ad15b843bb3e610bd3673a0c7abc1bf46
/frameworks/base/core/java/android/widget/TextView.java
|
eeb9afc78f5f0770b5a311f97d7b0702fdf81e28 |
|
12-May-2015 |
Andrei Stingaceanu <stg@google.com> |
Fix: replace terminates extract mode (floating toolbar) Moved the replace action to be triggered from the TextView rather than the Editor. Previously the ExtractedEditText was calling the TextView.onTextContextMenuItem which did not hold an entry for replace and thus was returning false. Note: this CL does not fix the extracted mode being (randomly) terminated when edit actions are pressed. This is still under investigation. Bug: 20930071 Change-Id: I71f87418f040f6860fe7723e4cd731c298cf3c5f
/frameworks/base/core/java/android/widget/TextView.java
|
cc1b7d06dcbb70d3c7f26be9b68c3d3b175706b1 |
|
08-May-2015 |
Dianne Hackborn <hackbod@google.com> |
am a0f5356f: am 396345ca: am ed9af066: Merge "Fix issue #20655182: API Review: ViewAssistStructure" into mnc-dev * commit 'a0f5356fdc84f5bf05677ae773bf168dc5349b7c': Fix issue #20655182: API Review: ViewAssistStructure
|
ed9af066b2407a36699fae2e475c4d1b53d2ca1d |
|
08-May-2015 |
Dianne Hackborn <hackbod@google.com> |
Merge "Fix issue #20655182: API Review: ViewAssistStructure" into mnc-dev
|
eb1a7e9b4e625c94695581d3cbc1a1190507b3ff |
|
08-May-2015 |
Siva Velusamy <vsiva@google.com> |
am aa439dc3: am eb5d77e9: am 1f861997: Merge "Use new hierarchy viewer protocol in all View subclasses" into mnc-dev * commit 'aa439dc38c6e276f763ba3127ad020938ba620f8': Use new hierarchy viewer protocol in all View subclasses
|
94a6d15ede149189bba9e5f474ed853c98230e75 |
|
06-May-2015 |
Siva Velusamy <vsiva@google.com> |
Use new hierarchy viewer protocol in all View subclasses A previous CL introduced a new way of encoding view properties for use by heirarchy viewer. This CL updates all views using the old @ExportedProperty annotation to use this new method. The older mechanism will be removed in a subsequent CL. Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
/frameworks/base/core/java/android/widget/TextView.java
|
219b41dd507ecdacaa78c2f7a19654282df4897e |
|
01-May-2015 |
Maxim Bogatov <maximbogatov@google.com> |
Add support of performing clicks on ClickableSpans from AccessibilityService Two optional parameters were added for ACTION_CLICK. ACTION_ARGUMENT_CLICK_SPAN_INDEX_INT represents index of ClickableSpan to click on ACTION_ARGUMENT_CLICK_CHARACTER_INDEX_INT represents index of character. The first span that added for that character will be triggered. If none of above parameters are passed with action the view will be clicked b/17726921 Change-Id: Ia4d3994c1bca950319557ec7cdb2df84314d7519
/frameworks/base/core/java/android/widget/TextView.java
|
49b043f37d7231b1544cb72e1bfb616e5a00688d |
|
07-May-2015 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #20655182: API Review: ViewAssistStructure Fix the various view assist related APIs. Also remove the blockAssist view attribute, and instead use the window's FLAG_SECURE to drive blocking of the entire hierarchy (which is semantically correct, and will protect existing apps that have already indicated they need it). Change-Id: I6beebc86b202809cba0a356cae9607d8d0fb5e78
/frameworks/base/core/java/android/widget/TextView.java
|
77b9c388c9e1d34fedcd08c5c227fb072bd06786 |
|
06-May-2015 |
Andrei Stingaceanu <stg@google.com> |
Fix floating toolbar popping frequently after Replace/Copy Invalidate the LAST_CUT_OR_COPY_TIME when text changes. Reflect this in the variable names. Fixes the selection mode without selection (PASTE|SELECT_ALL) toggling when changing text in the 15 sec window this mode has to show. Bug: 20440790 Change-Id: Ie7ea55916e1633ed4981654c6d80168b1247bc35
/frameworks/base/core/java/android/widget/TextView.java
|
531c30c62b14881aab31a5133920a971b1fbb50e |
|
01-May-2015 |
Raph Levien <raph@google.com> |
Expose StaticLayout.Builder publicly Expose the new Builder pattern for creating StaticLayout. This allows access to a number of features that have been available to TextView through a hidden constructor. Some of these features have existed for a while (mostly maxLines), while others are new (breakStrategy, indents). The builder is cleaner and has a better upgrade path than the old pattern of lots of constructors with varying numbers of arguments. Bug: 20190561 Change-Id: Ia3cd124825ab0cb469d22d1fc576ad26454545b8
/frameworks/base/core/java/android/widget/TextView.java
|
ebd66ca600dc2c43edb0830bcf1a92fafec30a5a |
|
01-May-2015 |
Raph Levien <raph@google.com> |
Make Paint a required field of StaticLayout Builder This patch moves the Paint parameter from being an option set from setPaint to being a required field passed into the obtain() method of StaticLayout.Builder. Thus, it is now possible to get a valid StaticLayout object just doing .build() on the Builder; all other fields are optional. This is in preparation for exposing the builder publicly, but that is to be a separate CL. Bug: 20190561 Change-Id: Iefd7800203004e565d068b0c76502cf7cf52d91f
/frameworks/base/core/java/android/widget/TextView.java
|
eea5a9e0de5825bf3629ad52a51a0dcf5f064fe5 |
|
29-Apr-2015 |
Andrei Stingaceanu <stg@google.com> |
Merge "DO NOT MERGE - Minor clean up: redundant functionality in Editor and TextView." into mnc-dev
|
58fc522a69e8ddf9ac8530ce88e9c2c92da1dd14 |
|
28-Apr-2015 |
Chris Craik <ccraik@google.com> |
Use default constructor to get anti-aliasing Change-Id: I3e078a3bc91a2fd703984ba18b5e7e98069b32f1
/frameworks/base/core/java/android/widget/TextView.java
|
47f82ae811e0036c005837c649dee5f1bb6d2595 |
|
28-Apr-2015 |
Andrei Stingaceanu <stg@google.com> |
DO NOT MERGE - Minor clean up: redundant functionality in Editor and TextView. This is a no-op. Change-Id: I28ec363a256d3d1a94e378d428897cc67c77d578
/frameworks/base/core/java/android/widget/TextView.java
|
7f0c5bd543df4a699118d43e3db883efa4d463c5 |
|
14-Apr-2015 |
Andrei Stingaceanu <stg@google.com> |
Introduce "Share" option to the floating text selection toolbar. Change-Id: I04b564224847eeb4e5f2a61f6a41f6046a1969a1
/frameworks/base/core/java/android/widget/TextView.java
|
6154b0909cdc36496009a966e52cad56d29f2cc6 |
|
20-Apr-2015 |
Andrei Stingaceanu <stg@google.com> |
Text processing - stop showing an empty toast. If the text processing app returns empty or null text don't show the toast. Bug: 20326103 Change-Id: Ib8534b851d2046fe7c17f674f170f9630e4a364d
/frameworks/base/core/java/android/widget/TextView.java
|
180942764740696527b1d3f549d4c4299bf209e5 |
|
16-Apr-2015 |
Clara Bayarri <clarabayarri@google.com> |
Merge "Editor: keep text selection when starting a process text intent."
|
e319d5a3627aa3cd73c6ec0c76f8593ddefbab9d |
|
15-Apr-2015 |
Raph Levien <raph@google.com> |
Add left and right indent arrays to TextView In support of layout of paragraphs to non-rectangular regions, add arrays for left and right indents to TextView, along with supporting StaticLayout builder setters. Bug: 20182243 Change-Id: I015bcef8f258c89001fcf8a54c179d2dfc0d7943
/frameworks/base/core/java/android/widget/TextView.java
|
578286fb321243e72a999b3e5fd4ef5f2e4b8682 |
|
10-Apr-2015 |
Clara Bayarri <clarabayarri@google.com> |
Editor: keep text selection when starting a process text intent. This CL makes sure the selection is not cleared when a text processing intent starts, so that we can properly replace the selection when it comes back. It also fixes a related issue with the selection handles. The previous code assumed a text selection mode starts from touch and enters drag mode by default. This CL makes the code conscious of whether it should show the selection cursors or enter drag mode. BUG: 20148456 Change-Id: Ie8632e4a96f431dc6b2e4d0b4d3978eb55149172
/frameworks/base/core/java/android/widget/TextView.java
|
b51222a3010abdf3236cb00fd401b7062c28831e |
|
13-Apr-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Add more firstStrong alternatives for textDirection. The current firstStrong value of textDirection is locale-dependent, and can create problems when consistent display of text across locales of potentially different direction is desired. This adds two new values for textDirection, firstStrongLtr and firstStrongRtl, which don't use the locale or the view's direction as fallback, but explicit values of LTR or RTL. Using firstStrongLtr also guarantees the exact algorithm defined in the Unicode Bidirectional Algorithm to be used for determining direction. Bug: 13428339 Change-Id: I450d4f6b5197763ace7f9506c72cf87a90da4218
/frameworks/base/core/java/android/widget/TextView.java
|
147931e3f95ba407621eae39e65ee2efe05b2ecb |
|
13-Apr-2015 |
Alan Viverette <alanv@google.com> |
Merge "Fix date picker dialog size"
|
816aa142023c75cf427401c21831193998bdf233 |
|
11-Apr-2015 |
Alan Viverette <alanv@google.com> |
Fix date picker dialog size Also fixes date picker instance state restore and cleans up the fade animations. Bug: 20110268 Change-Id: I503e2f81253077f22f1619834dc2f2634138ae4e
/frameworks/base/core/java/android/widget/TextView.java
|
d5bf3ed9b0138e9fd305da91386d1df03f9a75cc |
|
27-Mar-2015 |
Clara Bayarri <clarabayarri@google.com> |
Show and trigger activities that implement Text Processing actions This CL adds the Activities that support Intent.ACTION_PROCESS_TEXT to the Text Selection Action Mode in Editor, and triggers an intent with the currently selected text when they are selected. It also adds the required mechanism to allow a View to request an intent to be started, and return the activity result back to it. Change-Id: I62ec618010edf01da41338c8c1a7dd4292a15227
/frameworks/base/core/java/android/widget/TextView.java
|
7bfcad34274e7d78a85cc7f54bb64d3e5ffa7da6 |
|
10-Apr-2015 |
Seigo Nonaka <nona@google.com> |
Merge "Fix unexpected selection cancellation"
|
bb6a62c2be16bf99b2e8b9a4aa15b8dc267ad3fc |
|
31-Mar-2015 |
Seigo Nonaka <nona@google.com> |
Fix unexpected selection cancellation It turned out that text selection is unexpectedly cancelled by InsertionPointController if it is visible. The InsertPointController is not necessary if there is a selection, so just hiding before performing set selection fixes this issue. Bug: 19946192 Change-Id: I2afce1789d772a8d2ea368643cc7533561ee2bf0
/frameworks/base/core/java/android/widget/TextView.java
|
9e57a254953bedf24ba8b9eb6b6e24d10ff328f7 |
|
02-Apr-2015 |
Dianne Hackborn <hackbod@google.com> |
Merge "Rework assist to walk down the view hierarchy."
|
6251f0d42be7da54d7f1bc8f570a44883b7d9052 |
|
02-Apr-2015 |
Dianne Hackborn <hackbod@google.com> |
Rework assist to walk down the view hierarchy. Instead of collecting all of the data directly in AssistStructure, we now have a dispatch mechanism down the hierarchy to do so. While doing this, also added the ability to automatically collect assist data from AccessibilityNodeProviders attached to views (so now we see all of the data in for example Calendar). This is a first step needed towards being able to asynchronously populate assist data. Change-Id: I59ee1ea104ca8207bad8df7a38195d93da1adea7
/frameworks/base/core/java/android/widget/TextView.java
|
39b4db73c3340ff955f67e4e5318159d19d1ab3a |
|
25-Mar-2015 |
Raph Levien <raph@google.com> |
Add breakStrategy attribute to TextView This patch adds plumbing to TextView to control the strategy used for breaking paragraphs into lines. The default for TextView is "quality", while the default for EditText is "simple", largely to avoid too much re-layout when editing. StaticLayout now has a builder which provides access to more functionality and is also cleaner than the old mechanism of having lots of constructors with varying numbers of arguments. This patch changes TextView to use that builder, and also contains cleanups of the Builder within StaticLayout. Change-Id: Iee3cf3a05a3e51ba0834554e4a3ec606e9cabca5
/frameworks/base/core/java/android/widget/TextView.java
|
f2560e62cf26cae64f5751b0479743e09cb7bd7f |
|
18-Mar-2015 |
James Cook <jamescook@google.com> |
Merge "Improve undo support for text entered with IME"
|
d2026686702f6c893e871c078dc5176347b3b27e |
|
03-Mar-2015 |
James Cook <jamescook@google.com> |
Improve undo support for text entered with IME Use span properties to detect: * Composing text - don't record undo operations * Completing a composition - record an insert undo operation * Canceling a composition - don't record Save the composition state on parcel/unparcel. Stop using begin/end batch edit to try to detect when a TextWatcher is modifying the text. IMEs trigger multiple InputFilter passes in a single batch edit. Use SpannableStringBuilder to determine when we're in a TextWatcher callback because it is the authority on that state. Fix a bug in undo manager where it doesn't forget undos correctly if there are more than one in the stack. Bug: 19332904 Change-Id: Iaa9b0b2a7bf6683302cc85e7616e5d5fcc9fa202
/frameworks/base/core/java/android/widget/TextView.java
|
29d2b5aa484f4b1e06aa9ad07d9f32d1e45e2032 |
|
13-Mar-2015 |
Clara Bayarri <clarabayarri@google.com> |
Editor: Fire the selection Action Mode when long pressing on an empty space This used to fire the "paste" popup instead. It is a tiny step towards unifying the cut/copy/paste action mode and paste popup. Change-Id: I03dfcc294d4453e92464fc4f714468f58c692f24
/frameworks/base/core/java/android/widget/TextView.java
|
38082276153a0d2a1c19cac31348174fe427b743 |
|
16-Mar-2015 |
Alan Viverette <alanv@google.com> |
Add single-arg TextView.setTextAppearance, deprecate two-arg method The text appearance should always be inflated against the TextView's original inflation context. Change-Id: Id9fd219d83bbe76e19b4d200a37ef4240665bfcd
/frameworks/base/core/java/android/widget/TextView.java
|
a83ce1dd2ad3a6b71e90ff4845afc1299fe17b9d |
|
11-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
More work on collecting assist data. Optimize parceling of AssistData (which is now renamed to AssistStructure) by pooling duplicated class name strings. Change text associated with a view node to a CharSequence, so styling information comes along. Include global text attributes -- size, colors, etc. Introduce a new AssistContent structure, which allows us to propagate information about the intent and data the activity is looking at. This further allows us to propagate permission grants, so the assistant can dig in to that data. The default implementation propagates the base intent of an activity, so if for example you bring up the assistant while doing a share the assistant itself has the same information and access that was given to the share activity (so it could for example share it in another way if it wanted to). Did some optimization of loading PersistableBundle from xml, to avoid duplicating hash maps and such. Changed how we dispatch ACTION_ASSIST to no longer include the more detailed AssistStructure (and new AssistContent) data when launching; now the example code that intercepts that needs to be sure to ask for assist data when it starts its session. This is more like it will finally be, and allows us to get to the UI more quickly. Change-Id: I88420a55761bf48d34ce3013e81bd96a0e087637
/frameworks/base/core/java/android/widget/TextView.java
|
f84a9724f1a915c782ac9d9c6465e13f8e9a42c9 |
|
02-Mar-2015 |
Clara Bayarri <clarabayarri@google.com> |
Move the "Replace" popup option to the Text Selection ActionMode. As a first step in unifying the cut/copy/paste ActionMode in Editor with the paste/replace popup, I'm moving the replace option to the CAB ActionMode. Paste is already there, so for now all options are together. Missing things to address in upcoming CLs: - Invoke the ActionMode in all cases where the popup shows up now, ensuring only the options that are currently available show up. - Get rid of the current popup - Make the ActionMode a floating toolbar (pending feature completion) - Define a keyboard shortcut for replace? Note that since the ActionMode still shows up in the ActionBar and replace has no icon it now appears as text and takes up lots of space. This will improve when we can switch to using a floating toolbar. Change-Id: Ib6b60bae9b58e4db96b9c4cee556e19d3f1bb466
/frameworks/base/core/java/android/widget/TextView.java
|
c0a1b7f9a6a496deb68b095d122ca85f22daad98 |
|
07-Mar-2015 |
Tor Norbye <tnorbye@google.com> |
Merge "Annotate ARGB integer parameters with @ColorInt"
|
1592f98973ffffe828d34d90ddb944947d510eba |
|
06-Mar-2015 |
Scott Kennedy <skennedy@google.com> |
Merge "Allow attrs to be @Nullable in TextView and LinearLayout"
|
f7e503de70ab5424f42861b2fe305ca6fd5dd66c |
|
06-Mar-2015 |
James Cook <jamescook@google.com> |
Merge "Support undo of some programmatic TextView changes"
|
3a1fa10e13f72396eb0d218ee4d7aad2a77134e3 |
|
06-Mar-2015 |
Scott Kennedy <skennedy@google.com> |
Allow attrs to be @Nullable in TextView and LinearLayout Change-Id: I46ac6cddf010e7ce59de6272c30e824104e28acb
/frameworks/base/core/java/android/widget/TextView.java
|
80756e38882720860db52f1fcc21fa1505a02abf |
|
02-Mar-2015 |
Tor Norbye <tnorbye@google.com> |
Annotate ARGB integer parameters with @ColorInt Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
/frameworks/base/core/java/android/widget/TextView.java
|
138bc2f37b007cdaaa1dc8d7aa71148bf6d2e7ea |
|
05-Mar-2015 |
Mady Mellor <madym@google.com> |
Merge "Text selection changes - smart handles & drag accelerator"
|
48e0fac6c268c9e19e608bcb43aaacbd3eba5328 |
|
26-Feb-2015 |
James Cook <jamescook@google.com> |
Support undo of some programmatic TextView changes Applications can use TextWatcher.afterTextChanged() to implement post-edit formatting of text, such as inserting spaces in a credit card number. From the user's perspective, the insertion of the spaces is not a separate action, so that change should be merged with the previous undo operation. * Force merge undo states for edits that are triggered by callbacks after the InputFilter, such as TextWatchers. * Reset the undo state when the whole field is reset with setText(). * Create separate undo operations for direct programmatic changes to the Editable (e.g. directly calling insert). * Remove part of the non-forced replacement edit merging code. An improved version will land in the next CL. Bug: 19332904 Change-Id: Iba5366a5aadbe3534554b668f8d417250deff505
/frameworks/base/core/java/android/widget/TextView.java
|
2ff2cd873cc2a3f6a17cdaeb3e64b83ae2c6fda9 |
|
02-Mar-2015 |
Mady Mellor <madym@google.com> |
Text selection changes - smart handles & drag accelerator Drag accelerator: After entering text selection mode, immediately dragging your finger along the screen will select text. Once you have dragged past the initial word the selection an offset is added so that the end of the selection is not below your finger. Smart handles: When expanding the selection the handles snap to words, when shrinking the selection the handles go by character, once you're in by-character mode you can expand by character until you hit a word boundary where you will then expand by word again. Your finger must past the first ~2 characters in a word before the handle will jump to the word boundary. Bug: 19356160 Bug: 19355947 Change-Id: I79b8ec5ae3159148cd2f15d2e63dd5045c2069e4
/frameworks/base/core/java/android/widget/TextView.java
|
f1dad1ea82c5d9ca920af39b81ac6894ff692b99 |
|
27-Feb-2015 |
James Cook <jamescook@google.com> |
Add TextView XML attribute for undo support * Defaults to true, but can easily be changed if we decide that undo should be off by default. Bug: 19332904 Change-Id: Ic4f3814a1b0a5e25171a910f2fe628606e16104e
/frameworks/base/core/java/android/widget/TextView.java
|
f59152cf00520d1bd36949b44faca2e1fcf6d28f |
|
27-Feb-2015 |
James Cook <jamescook@google.com> |
Reland: Add basic support for Ctrl-Z to editable TextViews Reland 9201e797833f35b9afb219f88c10d3b6fda02a4e which was reverted in c8f08e07a47cc259a25caed3f731ee7044328635. Original description: * Add an UndoManager to the Editor for each editable TextView * Record operations as being owned by that Editor * Parcel the undo state * Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z for redo into TextView shortcut handling. * Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste. Additional fix: * Ensure each UndoOwner always has a valid mManager, even after the UndoManager is parceled and restored. Bug: 19332904 Bug: 19505388 Change-Id: Iad4476e6e9ca952281e69bf22c07cca915dfa7bd
/frameworks/base/core/java/android/widget/TextView.java
|
c8f08e07a47cc259a25caed3f731ee7044328635 |
|
26-Feb-2015 |
James Cook <jamescook@google.com> |
Revert "Add basic support for Ctrl-Z to editable TextViews" This reverts commit 9201e797833f35b9afb219f88c10d3b6fda02a4e. It causes crashes on typing after device orientation change. Bug: 19332904 Bug: 19505388 Change-Id: I0d9fb728eb6f8d591beb35fab333c0a182e24542
/frameworks/base/core/java/android/widget/TextView.java
|
b103709d02365e791070223e43508557c249492e |
|
23-Feb-2015 |
Keisuke Kuroyanagi <ksk@google.com> |
Paste as plain text by Ctrl-Shift-V Detect Ctrl-Shft-V in onKeyShortcut() and perform paste as plain text. Bug: 19287899 Change-Id: I0b27bf6155222a042eeb61dfbd4544c8312904ce
/frameworks/base/core/java/android/widget/TextView.java
|
9201e797833f35b9afb219f88c10d3b6fda02a4e |
|
11-Feb-2015 |
James Cook <jamescook@google.com> |
Add basic support for Ctrl-Z to editable TextViews * Add an UndoManager to the Editor for each editable TextView * Record operations as being owned by that Editor * Parcel the undo state * Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z for redo into TextView shortcut handling. * Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste. Tests in CTS TextViewTest will land separately in ag/635321 Bug: 19332904 Change-Id: Ibd23843f86b4cd556751faa0b3ad1f35d6d49785
/frameworks/base/core/java/android/widget/TextView.java
|
7b9c912f536925ac6ec43935d6e97506851b33d6 |
|
31-May-2013 |
Tor Norbye <tnorbye@google.com> |
Add @ResourceInt annotations on APIs Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
/frameworks/base/core/java/android/widget/TextView.java
|
a7bb6fbeab933326d58aa806d8194b7b13239d34 |
|
04-Feb-2015 |
Dianne Hackborn <hackbod@google.com> |
First quick implementation of auto assist data. Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
/frameworks/base/core/java/android/widget/TextView.java
|
98cb80d65929687dc553f53766f40b2fe7f82b5b |
|
29-Jan-2015 |
Raph Levien <raph@google.com> |
am 2ed9a7e5: am af461e12: Merge "Refine resolution order for typeface and fontFamily" into lmp-mr1-dev automerge: 35b5780 * commit '35b5780ec52f3492ae41c36ae30e289bcf78cb11': Refine resolution order for typeface and fontFamily
|
35b5780ec52f3492ae41c36ae30e289bcf78cb11 |
|
29-Jan-2015 |
Raph Levien <raph@google.com> |
am 2ed9a7e5: am af461e12: Merge "Refine resolution order for typeface and fontFamily" into lmp-mr1-dev * commit '2ed9a7e5ac3923b9459dc02b3a04e075ae4ea627': Refine resolution order for typeface and fontFamily
|
42b3024efdec647266c1ae54a2a7c2c46915b380 |
|
29-Jan-2015 |
Raph Levien <raph@google.com> |
Refine resolution order for typeface and fontFamily Previously any fontFamily value on a TextView would override a typeface value, even if the fontFamily is from a TextAppearance (for example, from the theme) and the typeface is explicitly set. This patch changes the resolution order to fontFamily set directly on the TextView, typeface set directly on the TextView, fontFamily from TextAppearance, typeface from TextAppearance. Bug: 16154223 Change-Id: I45c1e511fba8f64eb236200e3fa2e885c02b59dc
/frameworks/base/core/java/android/widget/TextView.java
|
60f8df93397dbd7bd765b91e2fba113eaefb1de1 |
|
15-Jan-2015 |
Roozbeh Pournader <roozbeh@google.com> |
am a601d44b: am a4d1e250: am 9787039d: Merge "Fudge getRightPaddingOffset in TextView to match clipRect." into lmp-mr1-dev * commit 'a601d44baa4ff21d3888dd624c016dc07c5ff937': Fudge getRightPaddingOffset in TextView to match clipRect.
|
a601d44baa4ff21d3888dd624c016dc07c5ff937 |
|
15-Jan-2015 |
Roozbeh Pournader <roozbeh@google.com> |
am a4d1e250: am 9787039d: Merge "Fudge getRightPaddingOffset in TextView to match clipRect." into lmp-mr1-dev * commit 'a4d1e25000195b2349cb29e389d1ded4b23dc7a6': Fudge getRightPaddingOffset in TextView to match clipRect.
|
a239ef91e502c17fae8514fa6314f9d86f0c40f7 |
|
15-Jan-2015 |
Raph Levien <raph@google.com> |
Merge "Track TextView locale changes if not explicitly set"
|
7c0e7db67efda303a9964746dfcc7db243fb5fb4 |
|
15-Jan-2015 |
Roozbeh Pournader <roozbeh@google.com> |
Fudge getRightPaddingOffset in TextView to match clipRect. A previous change (df68999dc7de3893ca80e4c736704dcc9ed94e35) adjusted the clipRect slightly on the right side, but didn't adjust the padding offset used in fading. Bug: 18820846 Change-Id: I68c0918f914742d1e7b91f9ea8d5acbd41938233
/frameworks/base/core/java/android/widget/TextView.java
|
2e3aa445b418e63f8c1bf7272fa2d75e021d7164 |
|
15-Jan-2015 |
Raph Levien <raph@google.com> |
Track TextView locale changes if not explicitly set The locale in the Paint used by TextView is set at the time the view is created. If the locale changes and the locale hasn't been explicitly set, better behavior is "whatever the current locale is." This patch updates the locale in that particular case. Bug: 16274782 Change-Id: I3b1b8e77c9508c757543ea50de3590d254404c1e
/frameworks/base/core/java/android/widget/TextView.java
|
b97d69856d1f87468b78e7fa355f15fecf888c7d |
|
08-Jan-2015 |
Alan Viverette <alanv@google.com> |
API for tinting TextView compound drawables BUG: 18762354 Change-Id: Iba6fab4f63a5d26cb27606d25a1fd0a1f47afa57
/frameworks/base/core/java/android/widget/TextView.java
|
a54956a0bc611b1e9b3914edc7a604b59688f6b7 |
|
08-Jan-2015 |
Alan Viverette <alanv@google.com> |
Fix accessibility delegation Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/widget/TextView.java
|
878a5a6cd7109183928b9b8b533f11347fd0591a |
|
15-Dec-2014 |
Alan Viverette <alanv@google.com> |
am 2f11125a: am 9973643b: Merge "Give accessibility delegate the first pass at handling ACTION_CLICK" into lmp-mr1-dev * commit '2f11125a7186cc65713804c939a0e538538d9f35': Give accessibility delegate the first pass at handling ACTION_CLICK
|
cd305ae3ceef14dd5de807d75aa6167dfcd69c86 |
|
12-Dec-2014 |
Alan Viverette <alanv@google.com> |
Give accessibility delegate the first pass at handling ACTION_CLICK Delegation is broken for widgets, but this fixes the most egregious issue where TextViews that are top-level list items weren't handling CLICK actions correctly. This will still need work, since now the focus action won't run, but it's an improvement. BUG: 18736135 Change-Id: I808ef628198946cc87f13c53d6245cd162a1e517
/frameworks/base/core/java/android/widget/TextView.java
|
4483f4611ee002b57f851aa3268ff610023c72c5 |
|
03-Dec-2014 |
Alan Viverette <alanv@google.com> |
am bb241c3c: am 4eb2e04f: Merge "Use CURRENT_OR_SELF when checking SPEAK_PASSWORD setting" into lmp-mr1-dev * commit 'bb241c3cdedb96d2a3a61e913102d6186f12103a': Use CURRENT_OR_SELF when checking SPEAK_PASSWORD setting
|
9752428dc1829450e90417ca3e46d077e915ae90 |
|
03-Dec-2014 |
Alan Viverette <alanv@google.com> |
Use CURRENT_OR_SELF when checking SPEAK_PASSWORD setting Using CURRENT isn't always safe. BUG: 18557273 Change-Id: I12e197ab25b8ffdc04c5e74836945177870698a2
/frameworks/base/core/java/android/widget/TextView.java
|
ed79856db292044a15fe7d3c3227fb9ec808f070 |
|
26-Nov-2014 |
Alan Viverette <alanv@google.com> |
am 30c0d5b5: am 8a45126a: Merge "Load SPEAK_PASSWORD from currently active user rather than self" into lmp-mr1-dev * commit '30c0d5b5eadecf5ba3c9ee536f153adc4c8c8723': Load SPEAK_PASSWORD from currently active user rather than self
|
b6e0cb97b7d8e4acf345efc8066f1587408b83e0 |
|
25-Nov-2014 |
Alan Viverette <alanv@google.com> |
Load SPEAK_PASSWORD from currently active user rather than self Also fixes a typo in UserHandle's docs. BUG: 18295054 Change-Id: I1f5384f84062b9ea7dcbebe1e5f64af331028d41
/frameworks/base/core/java/android/widget/TextView.java
|
d7c5acdf1c98bb92ab05a524375e602296a24422 |
|
21-Nov-2014 |
Alan Viverette <alanv@google.com> |
am e606a788: am 0218970a: Merge "Fix error overwriting when restoring error" * commit 'e606a7884dff4acc926cb82bf6492e83e9a1d3af': Fix error overwriting when restoring error
|
c047ca454012d49820e9bf14f4501156e4479881 |
|
14-Nov-2014 |
Raph Levien <raph@google.com> |
am 25f7c4b9: Merge "Update hint text color even when text present" into lmp-mr1-dev automerge: fbe0e8f * commit 'fbe0e8f4183f3a42fde9aeeed024bee2fbf182b6': Update hint text color even when text present
|
2d2085052550ad0fa1b032d6cc3123b5524c5fe8 |
|
14-Nov-2014 |
Raph Levien <raph@google.com> |
am cda81f2d: Merge "Fudge clipRect in TextView for extra cursor width" into lmp-mr1-dev automerge: be1ad50 * commit 'be1ad50b34e160c5d490d1165a590eb4c633d996': Fudge clipRect in TextView for extra cursor width
|
25f7c4b99284cd1e118f50bd585e6534acfad7c4 |
|
14-Nov-2014 |
Raph Levien <raph@google.com> |
Merge "Update hint text color even when text present" into lmp-mr1-dev
|
cda81f2ded39b53dd813071760ad235363292d52 |
|
14-Nov-2014 |
Raph Levien <raph@google.com> |
Merge "Fudge clipRect in TextView for extra cursor width" into lmp-mr1-dev
|
8f5de8c6c0d5da3c81670b72d5b412acea502d22 |
|
14-Nov-2014 |
Alan Viverette <alanv@google.com> |
am 96dacf36: am 24859ba0: Merge "Don\'t dismiss AutoCompleteTextView on focus change while temp detached" into lmp-mr1-dev * commit '96dacf3659c6fe9a1ac509ec242eb446307c6833': Don't dismiss AutoCompleteTextView on focus change while temp detached
|
df68999dc7de3893ca80e4c736704dcc9ed94e35 |
|
13-Nov-2014 |
Alan Viverette <alanv@google.com> |
Don't dismiss AutoCompleteTextView on focus change while temp detached This is consistent with how TextView handles focus changes while temporarily detached and prevents the suggestion popup from being dismissed during layout when the AutoCompleteTextView is used within a ListView. BUG: 18364277 Change-Id: I8ca6fb9dba63b49a84a60a606bc441446c083cee
/frameworks/base/core/java/android/widget/TextView.java
|
44cb2432e90c7a9e0ee59b959d781ba8834c1736 |
|
13-Nov-2014 |
Raph Levien <raph@google.com> |
Fudge clipRect in TextView for extra cursor width There are a number of cases (most commonly cursor at start of line in RTL direction) where the cursor extends past the right edge of the clipRect. This patch adds approximately 1dp on the right side of the clip, so that the cursor doesn't get clipped. Bug: 18035274 Change-Id: I489825a91750742c28e445f54f9d27000accbcfb
/frameworks/base/core/java/android/widget/TextView.java
|
c1bf285966f95a52cfa7843efb2b8e37b5b752c9 |
|
12-Nov-2014 |
Raph Levien <raph@google.com> |
Update hint text color even when text present When text is present (so the hint doesn't show), updating the hint color was suppressed. This patch updates the hint color in all cases, but still skips the invalidate when the hint text is not showing. Bug: 17454233 Change-Id: I3887908fb184a10f7a1d7e64f1d92b4955323227
/frameworks/base/core/java/android/widget/TextView.java
|
545a8bbe709ac9646b1c1ad0bbd845d4aef031de |
|
14-Oct-2013 |
Alexander Toresson <alexander.toresson@sonymobile.com> |
Fix error overwriting when restoring error onRestoreInstanceState restores the old error, after layout has been done. A new error may have been set before this is done, which thus overwrites the new error. This patch prevents the new error from being overwritten. Change-Id: I8e7c91b5da27310fb6698e671d1f7d78ee268061
/frameworks/base/core/java/android/widget/TextView.java
|
ae23078b2312d66c4063637cd371dcd7d26bde08 |
|
23-Oct-2014 |
Svet Ganov <svetoslavganov@google.com> |
am 012b4eae: am d8bc6677: Merge "Optimize text rendering in accessibility mode." into lmp-mr1-dev * commit '012b4eae10216648b2cff082e2c7809a1b0489a7': Optimize text rendering in accessibility mode.
|
9e1c67e861302f0df55859c422000b437cef2027 |
|
14-Oct-2014 |
Svet Ganov <svetoslavganov@google.com> |
Optimize text rendering in accessibility mode. In accessibility mode when iterating over the text of a TextView we use the selection to keep track of the current position. Consequentally, if the text of a TextView does not support selection we change the text to Spannable. Doing that has performance cost. While we need selection support before we used to convert the text to Spannable even if we do not need to. Now this transformation happens only when the user decides to traverse the text which is very rare as opposed to doing this for every TextView. bug:17491082 Change-Id: Id7e82e01034e439b5d34133b9350a4efc4d19d4a
/frameworks/base/core/java/android/widget/TextView.java
|
df2b8a1cb98f55dfa3ecd3c73a58a4e2ce7a325c |
|
02-Oct-2014 |
Newton Allen <newt@google.com> |
am 58f75627: am 94f5155d: am c68aad9f: am d84ce32b: Merge "Fix some documentation typos." into lmp-dev * commit '58f75627d195082e263f6d6d8e3c46c6d0970e63': Fix some documentation typos.
|
408f7534ef49fc87a4e10d751a0bbf2540a40bf7 |
|
02-Oct-2014 |
Newton Allen <newt@google.com> |
am d84ce32b: Merge "Fix some documentation typos." into lmp-dev * commit 'd84ce32bd2d7c3cebac15545504f4fec464a6956': Fix some documentation typos.
|
c2a0b4482d7144e8382346ea4c22c7b89368fec0 |
|
02-Oct-2014 |
Neil Fuller <nfuller@google.com> |
resolved conflicts for merge of ee665151 to lmp-mr1-dev-plus-aosp Change-Id: I2588c65b7a9fa43f968151a206924a804f0595a7
|
f7cf5d43aa13405f9d0dd54f6038f710a0423323 |
|
02-Oct-2014 |
Neil Fuller <nfuller@google.com> |
resolved conflicts for merge of ee665151 to lmp-dev-plus-aosp Change-Id: I97671e62de26919e391dbb2686511584c59ab990
|
33253a4baa6279f81a73425b49dfb6abe5f5416e |
|
01-Oct-2014 |
Neil Fuller <nfuller@google.com> |
Switch from FloatMath -> Math and Math.hypot where possible The motivation is an API change: FloatMath is going to be deprecated and/or removed. Performance is not the goal of this change. That said... Math is faster than FloatMath with AOT compilation. While making the change, occurances of: {Float}Math.sqrt(x * x + y * y) and {Float}Math.sqrt({Float}Math.pow(x, 2) + {Float}Math.pow(y, 2)) have been replaced with: {(float)} Math.hypot(x, y) Right now there is no runtime intrinsic for hypot so is not faster in all cases for AOT compilation: Math.sqrt(x * x + y * y) is faster than Math.hypot(x, y) with AOT, but all other combinations of FloatMath, use of pow() etc. are slower than hypot(). hypot() has the advantage of being self documenting and could be optimized in future. None of the behavior differences around NaN and rounding appear to be important for the cases looked at: they all assume results and arguments are in range and usually the results are cast to float. Different implementations measured on hammerhead / L: AOT compiled: [FloatMath.hypot(x, y)] benchmark=Hypot_FloatMathHypot} 633.85 ns; σ=0.32 ns @ 3 trials [FloatMath.sqrt(x*x + y*y)] benchmark=Hypot_FloatMathSqrtMult} 684.17 ns; σ=4.83 ns @ 3 trials [FloatMath.sqrt(FloatMath.pow(x, 2) + FloatMath.pow(y, 2))] benchmark=Hypot_FloatMathSqrtPow} 1270.65 ns; σ=12.20 ns @ 6 trials [(float) Math.hypot(x, y)] benchmark=Hypot_MathHypot} 96.80 ns; σ=0.05 ns @ 3 trials [(float) Math.sqrt(x*x + y*y)] benchmark=Hypot_MathSqrtMult} 23.97 ns; σ=0.01 ns @ 3 trials [(float) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))] benchmark=Hypot_MathSqrtPow} 156.19 ns; σ=0.12 ns @ 3 trials Interpreter: benchmark=Hypot_FloatMathHypot} 1180.54 ns; σ=5.13 ns @ 3 trials benchmark=Hypot_FloatMathSqrtMult} 1121.05 ns; σ=3.80 ns @ 3 trials benchmark=Hypot_FloatMathSqrtPow} 3327.14 ns; σ=7.33 ns @ 3 trials benchmark=Hypot_MathHypot} 856.57 ns; σ=1.41 ns @ 3 trials benchmark=Hypot_MathSqrtMult} 1028.92 ns; σ=9.11 ns @ 3 trials benchmark=Hypot_MathSqrtPow} 2539.47 ns; σ=24.44 ns @ 3 trials Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I06c91f682095e627cb547d60d936ef87941be692
/frameworks/base/core/java/android/widget/TextView.java
|
8f8a11b7fa26e603519131001ab46596aa30ba1a |
|
26-Nov-2013 |
Newton Allen <newt@google.com> |
Fix some documentation typos. Change-Id: I747a0ade5c7b9c45d4465bf327952338bbc1cfaa (cherry picked from commit 4465d1a03ee5fddc5987c19fc36b0bb79e19572f)
/frameworks/base/core/java/android/widget/TextView.java
|
fe16787bd4887627937480bb1ead8e4e93110160 |
|
17-Sep-2014 |
Alan Viverette <alanv@google.com> |
Preserve NPE behavior of removed TextView.getTextColors() API BUG: 17511449 Change-Id: Iea7e9aed69c21b230e3c474d4c1378a8663cfcb1
/frameworks/base/core/java/android/widget/TextView.java
|
5171dee2152758f307c9a1d70396fa79a921aef5 |
|
12-Sep-2014 |
Alan Viverette <alanv@google.com> |
Remove unsafe methods that take TypedArray BUG: 15782973 Change-Id: Ief4ff69c90c16b0e8c93316af9d46ae9639648fa
/frameworks/base/core/java/android/widget/TextView.java
|
593f2d33bb1741123263e0179edda21315ea590c |
|
11-Sep-2014 |
Alan Viverette <alanv@google.com> |
Merge "Fix docs and nulling behavior for TextView.setCompoundDrawables" into lmp-dev
|
20dbc370e3b61882400b93174ecfc3a2167a5f22 |
|
10-Sep-2014 |
Raph Levien <raph@google.com> |
Merge "Remove auto spaceifying behavior on paste" into lmp-dev
|
5a689ce78ed85cb5df1f2c7c680dcc6525dfe9eb |
|
10-Sep-2014 |
Raph Levien <raph@google.com> |
Remove auto spaceifying behavior on paste The paste action contained some logic to automatically insert or remove spaces, basically to emulate the semantics of the text being a sequence of space-separated words. This was never universally loved, and gives particularly unexpected behavior with a hardware keyboard. This patch simply removes the logic to automatically adjust spaces on paste, so what gets pasted is simply the literal buffer contents. Bug: 16900326 Bug: 3304489 Change-Id: I5cdf9c43d98a17aa708883b47245aa7929a124d2
/frameworks/base/core/java/android/widget/TextView.java
|
97f84eeb0a123700b6d57cb288b57547a5fcb735 |
|
10-Sep-2014 |
Alan Viverette <alanv@google.com> |
Fix docs and nulling behavior for TextView.setCompoundDrawables BUG: 17444686 Change-Id: I879f32722dda4c976b00fcd003ed18b9488654ab
/frameworks/base/core/java/android/widget/TextView.java
|
b687788f52e8367a32efbfdbc4738c2cae5804c1 |
|
08-Sep-2014 |
Alan Viverette <alanv@google.com> |
Bring up the IME when TextView receives ACTION_CLICK Simulates the relevant portions of a DOWN/UP event pair to request focus and bring up the IME. BUG: 8213791 Change-Id: Idb32d81552ecbbdefc64686c914eba6d8e28b0b8
/frameworks/base/core/java/android/widget/TextView.java
|
692356b7c392130b7f38f46a60570617c978ba75 |
|
04-Sep-2014 |
Kenny Guy <kennyguy@google.com> |
Revert "Ensure all RemoteViews use myUserId rather than context." This reverts commit 5287e37687f117ac0b690100ad90842eff58d15a. Reverting because only worked if settings cache had been populated already. Bug: 17302505 Change-Id: I4360606e9d9c6409951f0a02bd0b78c55085e0c6
/frameworks/base/core/java/android/widget/TextView.java
|
879ebec4e2a12a802339549cb4fefa32b5368379 |
|
02-Sep-2014 |
Kenny Guy <kennyguy@google.com> |
Ensure all RemoteViews use myUserId rather than context. Remote views may be inflated in another user so explicitly use processes user id rather than the user id of the context. Bug: 17302505 Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
/frameworks/base/core/java/android/widget/TextView.java
|
463cf1aea84c6f27155b45f3df70ec2550afb6ab |
|
02-Sep-2014 |
Raph Levien <raph@google.com> |
Ensure layout in getExtendedPadding calls There are cases in which getExtendedPaddingTop() and Bottom can get called even without a valid layout. This patch just makes sure there is some reasonable layout available. Fix for bug 14819392 "java.lang.NullPointerException in android.widget.TextView" Change-Id: I203899402ddfe857a688b16b7855a8991eee82b7
/frameworks/base/core/java/android/widget/TextView.java
|
3edb23bc8e7ebc7c8b8daa6afae3d8df6324d8db |
|
23-Aug-2014 |
Yigit Boyar <yboyar@google.com> |
Merge "Clear TextView error when text changes" into lmp-dev
|
412bb5ca634eb981774ae23768d7e8c713f7faa5 |
|
23-Aug-2014 |
Yigit Boyar <yboyar@google.com> |
Clear TextView error when text changes This change also fixes another bug where error popup is cleared when cursor moves using dpad, even though the text is not changed. Bug: 15538489 Bug: 3370191 Change-Id: I2804b90178e77ced46477a594331ae1f7306717a
/frameworks/base/core/java/android/widget/TextView.java
|
5faf85b6ddb233220f994e34bd218777dd40460c |
|
21-Aug-2014 |
Chris Craik <ccraik@google.com> |
Clarify text shadow attribute/method comments bug:17157162 Change-Id: I7abe7c0eb1973ddf7d7a17d9dd85c08833c4bf88
/frameworks/base/core/java/android/widget/TextView.java
|
f32efebf9b9659ac7f4e70978034cb9804defc18 |
|
14-Aug-2014 |
Alan Viverette <alanv@google.com> |
Fix TextView clickable state when using onClick attribute Change-Id: I67347f3c80958e47abc124f1a8c0ffec01175378
/frameworks/base/core/java/android/widget/TextView.java
|
029942f77d05ed3d20256403652b220c83dad6e1 |
|
12-Aug-2014 |
Alan Viverette <alanv@google.com> |
Add API for obtaining max text length for accessibility BUG: 16736956 Change-Id: I15ffb9bf68e074adf3e0dbcd230367e115c03e3c
/frameworks/base/core/java/android/widget/TextView.java
|
e272a26de16b7eebb6f9e1303254f11544a5d3b8 |
|
08-Aug-2014 |
Raph Levien <raph@google.com> |
Make letterSpacing and fontFeatureSettings public We added APIs and TextView xml attributes to give access to letter spacing and OpenType features. This patch makes these changes part of the public API. Bug: 15246510 Bug: 15594400 Change-Id: I7a54cb0da2746304a5c72a687612a279cac652e0
/frameworks/base/core/java/android/widget/TextView.java
|
e9ad3931fae71c8a8cd000fd52d5df4be79b0895 |
|
31-Jul-2014 |
Behdad Esfahbod <behdad@google.com> |
Add fontFeatureSettings to TextView and attrs New API is hidden. Bug: 15246510 Change-Id: I8cdbbd3a36fc280e07569dbb130f8c237062fff5
/frameworks/base/core/java/android/widget/TextView.java
|
40d83df87e3e972a1009b8f934f3c6c59d1e2fe6 |
|
25-Jul-2014 |
Raph Levien <raph@google.com> |
Fix docs build breakage in #TextView_letterSpacing This patch removes the @hide annotations and public reference from the new letterSpacing attribute, so the docs will build. It's still not an ideal state because a test app can't find the attribute, but at least it unbreaks the build. Change-Id: I5425fbe3d63f7a759fabe43bd2136196c7112eed
/frameworks/base/core/java/android/widget/TextView.java
|
fa80f7491df82d71b7084500519a2195afbea706 |
|
18-Jul-2014 |
Behdad Esfahbod <behdad@google.com> |
Add letter-spacing to Paint and TextView New API is hidden. Bug: 15594400 Change-Id: I5cbe7aebef0b7280eb13924f2a706c0cb4a4688e
/frameworks/base/core/java/android/widget/TextView.java
|
a25dc428db3ec951933b619b2e0cbad8e2244b52 |
|
01-Jul-2014 |
Jon Miranda <jonmiranda@google.com> |
Exposes more properties to assist in evaluating contrast ratios. Change-Id: I43468df4d842e03001ab33e139095afadaeacd20
/frameworks/base/core/java/android/widget/TextView.java
|
fccbff5f021a6f95fe1c18f55866545c767ef8eb |
|
08-Jul-2014 |
Alan Viverette <alanv@google.com> |
Add API on AccessibilityNodeInfo for retrieving TextView error BUG: 11155198 Change-Id: Ie01b92e1071ff584b360cfa3ece4320ad05e4aae
/frameworks/base/core/java/android/widget/TextView.java
|
f209ef9c3a80f9fcc4b8467626d50746ef2ab52b |
|
03-Jul-2014 |
Craig Stout <cstout@google.com> |
Fix TextView drawing issue. The predraw listener was lost because the view was detached and reattached after layout but before the first draw. b/15376022 Change-Id: Idf38f7373df3c457f54b6e3f995b00256914f775
/frameworks/base/core/java/android/widget/TextView.java
|
3aa422033abad9d97d278913c6f63d8700a55b50 |
|
01-Jul-2014 |
Jorim Jaggi <jjaggi@google.com> |
Fix jank in TextView.Marquee Use Choreographer animation callbacks to update the scrolling and make the delta dependent on the time passed since the last update. Change-Id: If6ce365014e8d32dadfc93bba0d4733050f673f7
/frameworks/base/core/java/android/widget/TextView.java
|
abda54808800512891c2d8e2f6048b0fee568c83 |
|
28-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fix unsafe public methods that take TypedArray BUG: 15782973 Change-Id: Ifeb032976cd20cf25fe7ecea83eab9d71a16ebc3
/frameworks/base/core/java/android/widget/TextView.java
|
8de1494557cf1d00c1c3fce439138a28de7fbd61 |
|
19-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fix switch & slider anim, make View drawable hotspot API public BUG: 15287810 Change-Id: Ic7a9549dc1ba8afd07e9a196371ed349a54aaf2f
/frameworks/base/core/java/android/widget/TextView.java
|
466cd7a2a65b1204c07ff5eaeebb7decc86a1fff |
|
17-Jun-2014 |
Raph Levien <raph@google.com> |
Merge "Clean up dirFlags / bidiFlags confusion"
|
051910b9f998030dacb8a0722588cc715813fde1 |
|
16-Jun-2014 |
Raph Levien <raph@google.com> |
Clean up dirFlags / bidiFlags confusion The dirFlags and bidiFlags enums are distinct, and have different meanings. The former is a determined direction for a run of text, while the latter is a request for the bidi algorithm. They have been used interchangeably, and this has caused some problems, notably running the bidi algorithm needlessly when the direction for a run is already determined. This patch cleans up the confusion, by always naming each occurrence explicitly "boolean isRtl" or "int bidiFlags" (the previous code often just used "int flags", which added to the confusion), and converts between the meanings when a function takes an isRtl argument but passes it to another function expecting bidiFlags. Fixes b/15089607 Clean up bidi flag mess Change-Id: I410b6604376e853dd12c255e7f5a9d2b9a310dd9
/frameworks/base/core/java/android/widget/TextView.java
|
206c6e85ab0bc08aa5feeef207969aac59d2d938 |
|
16-Jun-2014 |
Adam Powell <adamp@google.com> |
Add TextView#set/getShowSoftInputOnFocus These APIs allow an application to suppress the default editable TextView focus gain behavior of displaying the IME. Useful in cases where an app provides an alternate way of entering content, such as a dialpad or calculator pad. Bug 11540727 Change-Id: I1abd98db6e1522a9655a42b6ee712f50a962ea00
/frameworks/base/core/java/android/widget/TextView.java
|
cebc6bab51d9c77db8f346c1390169eabac4f27d |
|
14-Jun-2014 |
Alan Viverette <alanv@google.com> |
Support hotspots in View drawables BUG: 15285217 Change-Id: Iad44454fe16ac27ed20b9c17ae2df69649339eed
/frameworks/base/core/java/android/widget/TextView.java
|
0a993100f98e0cacaf6281214e6b54be9cd1f9fc |
|
11-Jun-2014 |
Jean Chalard <jchalard@google.com> |
Fix a CTS test SpannableStringBuilder should throw an exception when the parameters to #insert and related methods are in the wrong order. We'll have to reopen b/9570771 and deal with it separately. Bug: 14965397 Change-Id: I01847e0010d23f98ad3def8ba030d36570528900
/frameworks/base/core/java/android/widget/TextView.java
|
e1c4a0d2999b5e05aa1113b9d74bd56f95ab7b1b |
|
06-Jun-2014 |
Raph Levien <raph@google.com> |
Make elegantTextHeight xml attribute public The elegantTextHeight attribute of TextView was made public through Java code, but the corresponding attribute wasn't public. This patch makes it so. This is a fix for bug 15428791 "elegantTextHeight is hidden (not in android.R.attr)" Change-Id: I7011f10ae58fd2e212da9cbaca4a484f011d8fed
/frameworks/base/core/java/android/widget/TextView.java
|
3a499e013ce1dfa6b90e222e030fab03333fb016 |
|
20-May-2014 |
Alan Viverette <alanv@google.com> |
Fix password obscuring in TextView accessibility node BUG: 14998638 Change-Id: I215ea7b11bef5242e6adb1e595df36555548c165
/frameworks/base/core/java/android/widget/TextView.java
|
c29a0a4664a4b9871fadd668b632469a0db240b9 |
|
31-Mar-2014 |
Derek Sollenberger <djsollen@google.com> |
Avoid caching shadow properties in Java & HWUI. bug: 10650594 Change-Id: I6f57df002710bb0567ed7e53fc0bfe96cfd504b8
/frameworks/base/core/java/android/widget/TextView.java
|
293513a59d36cd96a3e474dde5981380d372d8c9 |
|
30-Apr-2014 |
Bill Yi <byi@google.com> |
Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEAD
|
53c0077256afebb0312f01ef4f60a7445da1f5d9 |
|
14-Apr-2014 |
Raph Levien <raph@google.com> |
Add elegantTextHeight text appearance attribute This patch adds an elegantTextHeight text appearance attribute and plumbs it through to the paint. This attribute selects the elegant variant of fonts (when appropriate, which is typically Arabic and indic scripts), and also specifies larger vertical metrics, to avoid clipping. The intent is for this to be the default for quantum themes, but this patch doesn't change any default behavior, just adds the attribute. The larger vertical metrics are applied to top and bottom, but should not affect line spacing in the common case. Also, with the setting, metrics are no longer dependent on the font, so setting a custom font will preserve layout and spacing. Change-Id: If3b7d41f141deff50ca078f479ca90c2aa07829a
/frameworks/base/core/java/android/widget/TextView.java
|
7bc016e88a854d8de870ddb6e235fab3c902c0c7 |
|
14-Apr-2014 |
Raph Levien <raph@google.com> |
am f6ee7e3f: am 202d1ec7: Fix text shadow attributes in textAppearance * commit 'f6ee7e3f47ee443078d803b03c0507ea1bf5cd54': Fix text shadow attributes in textAppearance
|
f6ee7e3f47ee443078d803b03c0507ea1bf5cd54 |
|
14-Apr-2014 |
Raph Levien <raph@google.com> |
am 202d1ec7: Fix text shadow attributes in textAppearance * commit '202d1ec753ff9401f3a1ea93a09a7419e76b7f91': Fix text shadow attributes in textAppearance
|
202d1ec753ff9401f3a1ea93a09a7419e76b7f91 |
|
14-Apr-2014 |
Raph Levien <raph@google.com> |
Fix text shadow attributes in textAppearance The various text shadow attributes were not being properly applied because they were being retrieved from the wrong TypedArray. This is the proper fix for bug 13525033 Shadow* attributes in a style not being applied in textAppearance. Change-Id: I57a8f498bf6059c5c5c74c1072edb277a24ea053
/frameworks/base/core/java/android/widget/TextView.java
|
537be409f281d4a872cbcebb6ac3a4d767ded4da |
|
03-Apr-2014 |
Raph Levien <raph@google.com> |
am c333381b: am 24a2f20f: am c420ce34: Merge "Marquee text RTL improvements" * commit 'c333381b4c1b46f13f75388099cafb740844c497': Marquee text RTL improvements
|
c333381b4c1b46f13f75388099cafb740844c497 |
|
03-Apr-2014 |
Raph Levien <raph@google.com> |
am 24a2f20f: am c420ce34: Merge "Marquee text RTL improvements" * commit '24a2f20fe64e893e28dc70b288e12567ff71019f': Marquee text RTL improvements
|
89bc413b8f04a85dffd9c80fe497208357009c7b |
|
11-Jan-2012 |
Michael Lekman <michael.lekman.x@sonyericsson.com> |
Marquee text RTL improvements Changed marquee text to scroll according to the reading direction. Arabic text will show the right edge and scroll towards the left edge and vice versa for Latin. Corrected marquee flicker when scroll animation finished. The ghost scroll's x position was cast to int and it made the text flicker when marquee stops. Ghost part didn't display for RTL languages. Added multiplication with getParagraphDirection to negate the ghost offset. Change-Id: I689039118df01a62f73ef0079c857fea1bfcc5a0
/frameworks/base/core/java/android/widget/TextView.java
|
b14dfe20ef300c47cc5cdfbd844c21f7fd302f0c |
|
06-Mar-2014 |
John Reck <jreck@google.com> |
Revert "Revert "Workaround apps not calling super.onDetachedFromWindow()"" This reverts commit bac16fae7e6fceb1e516252ede673844b772e7c3. Change-Id: I61e997b23fac1aa984129fdc0328426ff8891bdd
/frameworks/base/core/java/android/widget/TextView.java
|
bac16fae7e6fceb1e516252ede673844b772e7c3 |
|
06-Mar-2014 |
Bart Sears <bsears@google.com> |
Revert "Workaround apps not calling super.onDetachedFromWindow()" Requested by jreck to fix the build. This reverts commit 198d20842a537f3df3584ea084e74220e172b086. Change-Id: I733065cc124b59bf914034f5bac5e2e951a5b604
/frameworks/base/core/java/android/widget/TextView.java
|
198d20842a537f3df3584ea084e74220e172b086 |
|
06-Mar-2014 |
John Reck <jreck@google.com> |
Workaround apps not calling super.onDetachedFromWindow() Bug: 13338698 Move the releasing of hardware resources to a new @hide onDetachedFromWindowInternal Change-Id: I52b4e6ba4d5b3ce20b89cabffa248d1d780e3e81
/frameworks/base/core/java/android/widget/TextView.java
|
b3670c54e60387fde633fb91c649c5b896f8b962 |
|
07-Jan-2014 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #12422326 Unable to change text direction programmatically using setTextDirection Android SDK API - DO NOT MERGE - force TextView internal layout recreation when its TextDirection is changed Change-Id: I7d6b088a9235362e03cb6694392df71bbf5a323a (cherry picked from commit 22228fec05129af9684f95d7a13aeff92144bd90)
/frameworks/base/core/java/android/widget/TextView.java
|
84a3320507aa2948098c4964cea68b818f76ff88 |
|
13-Feb-2014 |
Jean Chalard <jchalard@google.com> |
Fix a crash where user data was not validated. ExtractedText#partialStartOffset and #partialEndOffset are from the app, that sets it as it sees fit. We need to validate them so that we don't crash. Still emit a warning if this is the case, as this is not expected. Bug: 9570771 Change-Id: Id9d6babd1620da39bf0e454b14d7ce716bd9d9d3
/frameworks/base/core/java/android/widget/TextView.java
|
e6875f1575a71402cd86f75e4d031c95ccd43cc4 |
|
05-Feb-2014 |
Alan Viverette <alanv@google.com> |
Temporary fix for background invalidation Not a complete solution, since we could be more efficient, but enough to have both background display lists and proper invalidation. Change-Id: I0216a104948c0930760275bb2b98318b0a4487e7
/frameworks/base/core/java/android/widget/TextView.java
|
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 |
|
04-Feb-2014 |
Alan Viverette <alanv@google.com> |
Add APIs for obtaining themed Drawable from Theme, Context BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
/frameworks/base/core/java/android/widget/TextView.java
|
ef4aad220fbd2e79cd44e11a09657d3aab58a673 |
|
29-Jan-2014 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #12422326 Unable to change text direction programmatically using setTextDirection Android SDK API"
|
d849f546db7a95d4fa0c4c2ed2323c5e64ff7ead |
|
16-Jan-2014 |
Victoria Lease <violets@google.com> |
check for null mEditor in TextView.canCopy() canSelectText(), canCut(), and canPaste() do it, too! canCopy() wants to be cool like them! Bug: 11388122 Change-Id: I8595effbff269c05ac3f763419298970045ba054
/frameworks/base/core/java/android/widget/TextView.java
|
22228fec05129af9684f95d7a13aeff92144bd90 |
|
07-Jan-2014 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #12422326 Unable to change text direction programmatically using setTextDirection Android SDK API - force TextView internal layout recreation when its TextDirection is changed Change-Id: I7d6b088a9235362e03cb6694392df71bbf5a323a
/frameworks/base/core/java/android/widget/TextView.java
|
6090995951c6e2e4dcf38102f01793f8a94166e1 |
|
19-Nov-2013 |
John Spurlock <jspurlock@google.com> |
Remove unused imports from frameworks/base. Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/android/widget/TextView.java
|
8f86d3d28e21f7fd77bded1493ff23ff74303c42 |
|
05-Nov-2013 |
Victoria Lease <violets@google.com> |
am c403afb6: am 79007026: am 3dbea35f: Merge "use SpannedStringBuilder to build a SpannedString" into klp-dev * commit 'c403afb6421f0ab840303ac7f5a207067e976e77': use SpannedStringBuilder to build a SpannedString
|
af7dcdf35a37d7a7dbaad7d9869c1c91bce2272b |
|
24-Oct-2013 |
Victoria Lease <violets@google.com> |
use SpannedStringBuilder to build a SpannedString It turns out that copy constructors do not respect NoCopySpan. Using SpannedStringBuilder addresses this oversight. Bug: 11326070 Change-Id: I949ef4f477d65cf645f3b1b2651f8ce423995237
/frameworks/base/core/java/android/widget/TextView.java
|
e6931c14baee7902ca3dd3082cf486a6f97cdc0a |
|
11-Oct-2013 |
Chris Craik <ccraik@google.com> |
am 87e127d5: am 1ae78c07: am c2245e1a: Merge "Workaround fading edge incompatibility with alpha modulation" into klp-dev * commit '87e127d5a8d095b58c0d433be31ba04ce31aae98': Workaround fading edge incompatibility with alpha modulation
|
7bcde5009d4478d6f1af22687e2fa43be400fcfa |
|
11-Oct-2013 |
Chris Craik <ccraik@google.com> |
Workaround fading edge incompatibility with alpha modulation bug:11121809 Fading edges, such as drawn by a scrolling marquee TextView, don't behave correctly when their view is modulated, as done by the view system when alpha is set on a view that returns false from hasOverlappingRendering. To work around this, always return true from hasOverlappingRendering if a TextView has horizontal fading edges enabled. Change-Id: I64c9b8c653aa1d9ca320292306fd24333e3ee225
/frameworks/base/core/java/android/widget/TextView.java
|
ea8b77ae00817069115fd60fe62937fbd92d51eb |
|
30-Sep-2013 |
Raph Levien <raph@google.com> |
am e048f84a: Fix for jank when fast-scrolling DeskClock\'s world cities list in RTL * commit 'e048f84a762d5f85829ceb2b45de52b73727de74': Fix for jank when fast-scrolling DeskClock's world cities list in RTL
|
8ba675293542050e74375981a009b72513ceec88 |
|
30-Sep-2013 |
Raph Levien <raph@google.com> |
am adf14902: Merge "Fix for Text fading on RTL app names is done at the beginning..." into klp-dev * commit 'adf149029f701464c66cc5cacbbbc649c1319bcd': Fix for Text fading on RTL app names is done at the beginning...
|
e048f84a762d5f85829ceb2b45de52b73727de74 |
|
27-Sep-2013 |
Raph Levien <raph@google.com> |
Fix for jank when fast-scrolling DeskClock's world cities list in RTL This is a fix for bug 10863979. The onPreDraw() method in TextView was canceling the draw every time a the horizontal scroll changed. These dropped frames were visible as jank. The fix is to never cancel the draw. It seems likely that the previous rationale for canceling draw is no longer valid, due to other fixes, because the scroll state will have been fully updated. Change-Id: I8c2da5450723f993055a49b1cb57320c08f2a11e
/frameworks/base/core/java/android/widget/TextView.java
|
8079ae1a2da32b2720bb14ab9957cc80d77bc139 |
|
27-Sep-2013 |
Raph Levien <raph@google.com> |
Fix for Text fading on RTL app names is done at the beginning... This is a fix for bug 10918591 [Android][bidid][HH] "Text fading on RTL app names is done at the beginning of the text, not at the end." The old logic for getting the fade edge was not symmetric with respect to the text direction - when the text was centered, it basically always placed the fade edge at the left, which of course is appropriate for LTR text but not RTL. This patch makes the two paths symmetric and sensitive to text direction. Change-Id: Ief7604aeb659d474864468d2f102a53f5b43d09e
/frameworks/base/core/java/android/widget/TextView.java
|
bd51158d61ef10cea65a31d5795887444d2d9cbf |
|
13-Sep-2013 |
Kenny Root <kroot@google.com> |
resolved conflicts for merge of aca95ca0 to master Change-Id: I91adf923288ca724a8040ecf887e28e42ad7e259
|
77e9a28e2faa36f127231b842476d47f9823a83a |
|
13-Sep-2013 |
Alan Viverette <alanv@google.com> |
Add live region politeness to View, AccessibilityNodeInfo Alters the content change API to contain a bit mask of types of changes represented by the event. Live regions send CONTENT_CHANGED events immediately. Removes unused APIs for EXPANDABLE/EXPANDED. BUG: 10527284 Change-Id: I21523e85e47df23706976dc0a8bf615f83072c04
/frameworks/base/core/java/android/widget/TextView.java
|
617feb99a06e7ffb3894e86a286bf30e085f321a |
|
10-Sep-2013 |
Alan Viverette <alanv@google.com> |
Add View constructor that supplies a default style resource Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/widget/TextView.java
|
b811e64cb325c8b9c46a2e8e97ef1aa86ac8664b |
|
05-Sep-2013 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #10461600: KLP API Review: UndoManager Hide, hide, hide! Change-Id: Ie04825723d9392a4258e2d738828201ee387f7c6
/frameworks/base/core/java/android/widget/TextView.java
|
5b2081dc41cccd76780a2cb4e9a973505c13446c |
|
28-Aug-2013 |
Alan Viverette <alanv@google.com> |
Implement new accessibility APIs in lists, text view Sets contentInvalid for TextViews with errors, sets collection and item properties in AbsListView, GridView, and ListView. BUG: 10391326 Change-Id: I91191c8ce1e10a1112f74215e30b26349396344b
/frameworks/base/core/java/android/widget/TextView.java
|
058ac7cfe5bb7b9ecc411b94622ac3f31a7fa25e |
|
20-Aug-2013 |
Alan Viverette <alanv@google.com> |
Use MULTI_LINE and OPENS_POPUP accessibility properties BUG: 10391326 Change-Id: Ib2deeeef401802b6dde646e14ee5367141469a58
/frameworks/base/core/java/android/widget/TextView.java
|
63113994034e2e71bac40d2de076fa9b1b406960 |
|
13-Aug-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Code cleaning for Drawables" into klp-dev
|
404db929c4c2c35d9e6ba7e25152ff357bcd11f9 |
|
10-Aug-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Code cleaning for Drawables - fold if statements (probably due to a previous refactoring - that was a bit crazy isnt it ?) Change-Id: Ie893bb50aa6f81e4d7a6b1438e8271ee487b51d6
/frameworks/base/core/java/android/widget/TextView.java
|
4155e2e175d73bb98b13ecb2fbbe6a6dffe28fe5 |
|
09-Aug-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #10210182 CTS: android.widget.cts.TextViewTest#testDrawableResolution is failing on KLP This issue has been actually revealed by a fix for bug #7034321 (Need Drawable RTL support) where I identified an issue with Drawables resolution in TextView (was missing a call to resetResolvedDrawables() and resolveDrawables()). - add missing resetResolvedDrawables() and resolveDrawables() in TextView.setRelativeDrawablesIfNeeded() - fix View.resolveDrawables(): this was a bit trycky as View.resolveDrawables() was wrongly supposing that the layout direction was resolved and it could access View.getLayoutDirection() and could position the PFLAG2_DRAWABLE_RESOLVED bit. Dont forget that resolution of RTL properties (layoutDirection, Drawables ...) is happening in View.measure() but in our case (TexView constructor) we still need to resolve the Drawables. So now, be sure that we cannot resolve the Drawable if layout direction has not being resolved and the raw layout direction is LAYOUT_DIRECTION_INHERIT. But we can also "cheat" if the raw layout direction is LAYOUT_DIRECTION_LTR or LAYOUT_DIRECTION_RTL or LAYOUT_DIRECTION_LOCALE as its resolution will give the same value :-) Change-Id: I7a242d918697e1e1c2febf229e8edf1866b855be
/frameworks/base/core/java/android/widget/TextView.java
|
3f5a90b2fbba2a83a8a2c5babd5d466a5e0ad2aa |
|
25-Jun-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add automatic Drawable mirroring capability when in RTL layout direction - default value is "no mirroring" - introduce android:autoMirrored as a new attribute for Drawable, BitmapDrawable, LayerDrawable, StateListDrawable and NinePatchDrawable - setting android:autoMirrored="true" means that the drawable will be mirrored when the layout direction is RTL (right-to-left) - also fix an issue with ImageView drawable layout direction not updated correctly when RTL properties were changed See bug #7034321 Need Drawable RTL support Change-Id: If595ee5106c786f38e786d3a032e182f784a9d97
/frameworks/base/core/java/android/widget/TextView.java
|
65ea41541bcf9768679b596646fa66e81ace66b3 |
|
07-Jun-2013 |
Satoshi Kataoka <satok@google.com> |
Merge "Fix an issue where "SuggestionSpan"s are not removed properly"
|
494cb689d09a82025b9d892241e62aa149ce3239 |
|
07-Jun-2013 |
Svetoslav <svetoslavganov@google.com> |
Merge "Optimizing AccessibilityNodeInfo caching."
|
6254f4806dd3db53b7380e77fbb183065685573e |
|
05-Jun-2013 |
Svetoslav <svetoslavganov@google.com> |
Optimizing AccessibilityNodeInfo caching. 1. Before we were firing an accessibility event from the common predecessor of views with accessibility related state changes every X amount of time. These events designate that the tree rooted at the source is invalid and should not be cached. However, some of the state changes do not affect the view tree structure and we can just refresh the node instead of evicting and recaching nodes infos for views that did not change. Hence, we need a way to distinguish between a subtree changed over a node changed. Adding a new event type will not work since if say two siblings have local changes and their predecessor fires a window state change event, the client will drop the subtree rooted at the parent including the two views with changes. Subsequent, more specialized events emitted from the two changed siblings will be useless since the parent which did not changed is already evicted from the cache. Conversely, if the specialized events are fired from the two siblings with local changes and they are refreshed in the cache the subsequent window state change event from the common predecessor will force the refreshed nodes to be evicted. Hence, to enable distinction between node being changed and a subtree baing changed while not changing existing behavior, we will fire only window content change event with an additional argument specifying what changed - node or a subtree for now. Also if the changes are local to a view we fire the window content changed event from the view. So, the two siblings will fire such an event independently and the client will know that these are local changes and can just refresh the node. If the changes are structural, then we fire the window state change event from the common predecessor. 2. Added the input type of a text view as one of the properties reported by an AccessibilityNodeInfo. It is nice to prompt the user what input is expected. 3. Added a bundle for optional information to AccessiiblityNodeInfo. For example, it will be used for putting web specific properties that do not map cleanly to Android specific ones in WebView. 4. AccessibilityInteractionController was not taking into account whether the current accessibility focused node is shown before returing it. Hence, a disconnected node would be returned and caching it puts our cahche in an inconsistent state. Change-Id: I8ed19cfb4a70bdd7597c3f105487f1651cffd9e0
/frameworks/base/core/java/android/widget/TextView.java
|
d7429c15e6f4dd9a43b81d94a1bbf65b17d46a16 |
|
05-Jun-2013 |
Satoshi Kataoka <satok@google.com> |
Fix an issue where "SuggestionSpan"s are not removed properly Basically, the root cause of this issue is a lack of an expected implementation. This change completes the spec of the architecture to remove modified "SuggestionSpan"s. Bug: 9190860 Change-Id: I63f2ccf3407ae7c1bc28813e044b8703e2112f34
/frameworks/base/core/java/android/widget/TextView.java
|
e3b8d7fdb1eaaf54005318f3fc6d04c3cac9b467 |
|
04-Jun-2013 |
Joe Malin <jmalin@google.com> |
am 36d0f946: am e9dff008: am 305cf97b: am 60776093: am 029099ff: am f4b21585: am 10d96950: DOC CHANGE: Clarify textIsSelectable in TextView * commit '36d0f946adc83a9ffa5483556d263b719977da5d': DOC CHANGE: Clarify textIsSelectable in TextView
|
e9dff008adc7b6e565402ec61cd89fb3265a28bd |
|
04-Jun-2013 |
Joe Malin <jmalin@google.com> |
am 305cf97b: am 60776093: am 029099ff: am f4b21585: am 10d96950: DOC CHANGE: Clarify textIsSelectable in TextView * commit '305cf97ba7b927f49d3f52952c36cb5102699cc5': DOC CHANGE: Clarify textIsSelectable in TextView
|
10d96950c14ae647c2e8435178533cafc78e1afa |
|
30-May-2013 |
Joe Malin <jmalin@google.com> |
DOC CHANGE: Clarify textIsSelectable in TextView Change-Id: Iddfdf7ed82ea3fa2a0160bda4a1e29ec8f815a2b
/frameworks/base/core/java/android/widget/TextView.java
|
31f0544293fdfc134452c630b4813adc97d05ee7 |
|
03-Jun-2013 |
Romain Guy <romainguy@google.com> |
Remove unnecessary lock to save 1 allocation per TextView Change-Id: I4fb885c61b44e57b8abaf3beedf61aaab3ef5d71
/frameworks/base/core/java/android/widget/TextView.java
|
ea0735ff12a444ae7e498132ffd7096bfa2f3925 |
|
21-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 5d19f506: am 28df6d3d: Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev * commit '5d19f506b43e9e7e4c27ca70da1d44a58da71d75': Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL.
|
28df6d3d4f719d4dbdf82751db46e10ff3d044bb |
|
21-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev
|
a423f5033a423bee01c043d48f9d27e8cacb97a0 |
|
14-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL. - add missing assignment for text direction (mTextDir) - when layout direction change, update text direction (mTextDir again) Change-Id: Id600fb0c5897a0d2ee5f9fe18a63437dc3e528d9
/frameworks/base/core/java/android/widget/TextView.java
|
06ccc77f4849f9f9fc6ef33cd5ef6cfd00898d00 |
|
14-May-2013 |
Svetoslav <svetoslavganov@google.com> |
am 80127981: am c0a979ce: Merge "Fixing the accessibility text traversal in extend mode." into jb-mr2-dev * commit '80127981f85a0be842007596830c1675a9a3665e': Fixing the accessibility text traversal in extend mode.
|
abad55d860be793b8b9b3e288a74214da89fb368 |
|
08-May-2013 |
Svetoslav <svetoslavganov@google.com> |
Fixing the accessibility text traversal in extend mode. We added APIs to allow an accessibility service to extend the selection while moving the cursor at a given granularity such as word, character, etc. The problem is that the traversal was extending only the end of the selection while moving forward and the start of the selection while moving backward. This leads to a case in which the user cannot shrink/extend the selection because for example instead of shrinking the end of the selection the implementation was extending the start. Now extending the selection moves only the selection end. This is the same behavior as text view using a keyboard. Tests: https://googleplex-android-review.googlesource.com/#/c/307062 bug:8839844 Change-Id: Id6965b102647df909f61301fcc8ec05458dd5881
/frameworks/base/core/java/android/widget/TextView.java
|
3aa49b6fece334ace7525d42c1f6d0b7cdc1fbfb |
|
27-Apr-2013 |
Dianne Hackborn <hackbod@google.com> |
New UndoManager. Basic implementation of an undo manager. Supports multi-level undo/redo, building on the top undo state as edits occur, managing multiple distinct entities in the undo state (such as embedded objects in a document), and saving/restoring the full undo state. Still some work remaining on correctly dealing with dependencies between undo states that hold multiple owners. Also do a simple implementation of undo state in TextView to see how things actually work. The implementation here is very primitive: it needs a lot more work to correctly identify when to merge undo ops, is not trying to do anything smart with style spans, etc. Change-Id: Ie30f4e133351e2f569ffb48c6c44a2b19cadee27
/frameworks/base/core/java/android/widget/TextView.java
|
fb2563103b4f377867c5fa556217987903f73052 |
|
24-Apr-2013 |
Svetoslav <svetoslavganov@google.com> |
am 939ff0ac: am 4c783066: Merge "Fixing bugs exposed when moving accessibility CTS tests to UiAutomation." into jb-mr2-dev * commit '939ff0acff8a21a023d79214130680a66214840f': Fixing bugs exposed when moving accessibility CTS tests to UiAutomation.
|
db7da0eb8b7d515c168d5b410764e24c9a0f9431 |
|
23-Apr-2013 |
Svetoslav <svetoslavganov@google.com> |
Fixing bugs exposed when moving accessibility CTS tests to UiAutomation. 1. UiAutomation#executeAndWaitForEvent method was invoking the passed runnable while holding the lock which may lead to a deadlock. For example: a runnable that calls getActivity() gets us into a state like this. 2. UI automation services did not get all capabilities such a service can have. Now a UI test service gets all of them. 3. When UiAutomation was exiting for event fired as a result of a performed action, it was checking whether the received evnet time is strictly before the time of executing the command that should fire the event. However, if the execution is fast enough, i.e. less than one millisecond, then the event time and the execution time are the same. This was leading to a missed signal in rare cases. 4. AccessibilityNodeInfoCache was not clearing the relevant state for accessibility focus clearing event. 5. Accessibility text traversal in TextView was partially using text and partially content description - broken. Now we are using the text since for text view and content desc for other views. In other words, we are using the most precise text we have. 6. AccessibilityManagerService was not granting capabilities of a UiAutomation service - plainly wrong. CTS change:https://googleplex-android-review.googlesource.com/#/c/300693/ bug:8695422 bug:8657560 Change-Id: I9afc5c3c69eb51f1c01930959232f44681b15e86
/frameworks/base/core/java/android/widget/TextView.java
|
c1f5756c2399a62649ceed647a75732260e3110a |
|
12-Apr-2013 |
Raph Levien <raph@google.com> |
am 1aa52487: am 6c072401: Merge "Fix for bug 8500202: Right-to-left text not showing in list view" into jb-mr2-dev * commit '1aa524878591dce809000e7263378138ccd6a25a': Fix for bug 8500202: Right-to-left text not showing in list view
|
f5cf6c9d4472e99caf4c9a3525d7b10cdf1e1c9f |
|
12-Apr-2013 |
Raph Levien <raph@google.com> |
Fix for bug 8500202: Right-to-left text not showing in list view In single line mode, changing the text from LTR to RTL (or vice versa) affects the alignment, which in turn means that bringTextIntoView is needed to update the scrolling. A registerForPredraw should be done to make this happen, but it was missing. This patch tests explicitly for direction changes in this case, and schedules a predraw if so. Change-Id: I16e0e23141c244dc8adc00ea8306dfe4c9bf487d
/frameworks/base/core/java/android/widget/TextView.java
|
a383eba1cc94f365b15a087ca381da3525f3fb5c |
|
21-Mar-2013 |
Michael Jurka <mikejurka@google.com> |
am 953a9466: am 6812efd2: Merge "Make hasOverlappingRendering() method more accurate" into jb-mr2-dev * commit '953a94662114933ee81ad197e6a70ffc3f45a289': Make hasOverlappingRendering() method more accurate
|
0931a8516af8284981bb9d584e57cbc3925db4bc |
|
21-Mar-2013 |
Michael Jurka <mikejurka@google.com> |
Make hasOverlappingRendering() method more accurate Bug: 8439502 Change-Id: I80075eddf6abc7999b70e665e692d88b81d5f087
/frameworks/base/core/java/android/widget/TextView.java
|
3807312e9b4a8022f370ad7c09604c6379f567a0 |
|
20-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 0bcec06b: am 19eceaad: Merge "Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies" into jb-mr2-dev * commit '0bcec06b24e7bc67ab4922f6bb18e6bc7737ba69': Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies
|
19eceaadd764ca84f386300aafd9a31c270886e9 |
|
20-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies" into jb-mr2-dev
|
665f02c66702b77db25e950ff433230186bc3243 |
|
20-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies - remove the ICU related methods and update the methods using the "reserved" argument - update to CTS in another CL too Change-Id: I5509736568c342d9d17bfeafc17951117ab5d3cc
/frameworks/base/core/java/android/widget/TextView.java
|
0d84e725667315fc9ccb70b93b26ba40b7653285 |
|
19-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 430058f2: am 2d18e52b: Merge "Fix bug #8335710 TextView can\'t clear CompoundDrawables" into jb-mr2-dev * commit '430058f2699041e86d7c0e50cad1fa6989d08cab': Fix bug #8335710 TextView can't clear CompoundDrawables
|
2d18e52b00da92ca415b9da0aaac920a5e733f8b |
|
19-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #8335710 TextView can't clear CompoundDrawables" into jb-mr2-dev
|
f7a5cdfac62cf2335f192581ca299d241d83e195 |
|
15-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #8335710 TextView can't clear CompoundDrawables - fix start/override mechanism - take care of RTL compatibility mode (pre JB-MR1) - fix where reset of drawables resolution needs to happen Change-Id: I55a69487a0eedee14c4be7006ee0abad085200ad
/frameworks/base/core/java/android/widget/TextView.java
|
f72b5c920aa47d94310a8cdd658e5255712b7293 |
|
15-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am cf60cc9a: am 261f82ca: Merge "Revert "Clean Paint.mBidiFlags as it is no longer used"" into jb-mr2-dev * commit 'cf60cc9adedf032c6c97cd2cbb9ff211deaaf3ae': Revert "Clean Paint.mBidiFlags as it is no longer used"
|
da12f389eb4be0c08ca3fa9ca7663f4977858df5 |
|
15-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Revert "Clean Paint.mBidiFlags as it is no longer used" This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
/frameworks/base/core/java/android/widget/TextView.java
|
844efa911f037366809101b3527aa5c6250d75b4 |
|
05-Mar-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 80273c6b: am 5f51fd69: Merge "Make Spinner widget RTL-aware (part 2)" into jb-mr2-dev * commit '80273c6b5973d7d4d100a35f6646af45a3179740': Make Spinner widget RTL-aware (part 2)
|
f80ceed4507292756332d649978ef1b3511430a7 |
|
20-Feb-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make Spinner widget RTL-aware (part 2) See bug #8159072 Spinner widget should be RTL'ized Change-Id: I3f9368f242a027852bf13a7ce4b760de1e1c2fb2
/frameworks/base/core/java/android/widget/TextView.java
|
3a7e483d255dd6a5ded805184be9bbe872d11d4a |
|
12-Feb-2013 |
Michael Wright <michaelwr@google.com> |
Prevent repeated cursor movements from escaping a TextView Bug: 4156002 Change-Id: If66a69c404509c75016039156389b6a7b2852154
/frameworks/base/core/java/android/widget/TextView.java
|
ac91df87fce48afe1b5585551f24b0c21b7ab091 |
|
14-Feb-2013 |
Adam Powell <adamp@google.com> |
Add support for shadows in TextAppearance styles Allow developers to specify shadow properties for text in a TextAppearance, not just in direct TextView attributes. Change-Id: I873fbaf2c26683895e1eea2d02b5d9b17ca333d0
/frameworks/base/core/java/android/widget/TextView.java
|
6d9fe5bd22b531bfce69b146254a4791c76acddc |
|
12-Feb-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Clean Paint.mBidiFlags as it is no longer used See bug #7623824 Change-Id: Ie2f9422821f6dcc73c99e8695f448e966b587b1d
/frameworks/base/core/java/android/widget/TextView.java
|
bcc46a0d037e62fcb5e5f0f5e1acef5a8c1314b0 |
|
06-Feb-2013 |
Svetoslav <svetoslavganov@google.com> |
Set accessibility cursor in non-text views with content description. We support text traversal at a granularity over non-next views with content description, hence we should support setting the cursor position in such views. bug:8134469 Change-Id: I4dba225b0ade795b7a20c201fb906ae7146c065d
/frameworks/base/core/java/android/widget/TextView.java
|
d0c83cccca9955da92d076dfdfbc3e349fbbc415 |
|
05-Feb-2013 |
Svetoslav <svetoslavganov@google.com> |
Set accessibility cursor position in non-editable views with content description. While an accessibility service can set the cursor position in an editable text field, it was not possible to set it for non-editable views with content description. This patch enables that. bug:8134469 Change-Id: I28b0ef1666b9e3ed5c0642718fbe63d4c9616569
/frameworks/base/core/java/android/widget/TextView.java
|
7c51284d8019ed04ab296be84839d8a90ac042fa |
|
31-Jan-2013 |
Svetoslav <svetoslavganov@google.com> |
Add accessibility actions for text editing. Currently text editing is pretty hard (certain operations even impossible) for a blind person. To address the issue this change adds APIs that enable an accessibility service to perform basic text editing operations such as copy, paste, cut, set selection, extend selection while moving at a given granularity. The new APIs enable an accessibility service to expose a gesture driven efficient text editing facility. bug:8098384 Change-Id: I82b200138a3fdf4c0c316b774fc08a096ced29d0
/frameworks/base/core/java/android/widget/TextView.java
|
955beb2b96a78cf6ee990d0f20bcaf2d22ce608b |
|
10-Dec-2012 |
Sangkyu Lee <sk82.lee@lge.com> |
Optimize drawHardwareAccelerated method in Editor class When inserting a new line or breaking a line, every display list was invalidated and rebuilt before. However, we can reuse the display lists above intactly and also reuse the display lists below with only updating drawing locations. This patch reuses the display lists if possible. The display lists above the inserted line are just reused and the display lists below are reused with only updating drawing locations not fullly rebuilt. mIndexOfFirstChangedBlock is the index of the first block which is moved by inserting or breaking a line. So the display list whose index is >= mIndexOfFirstChangedBlock only needs to update its drawing location. Change-Id: Ica20deb0ebb5750de21356ed31fa9f86e657ff92 Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
/frameworks/base/core/java/android/widget/TextView.java
|
afe8e9b6d033cb854afa3024d8198a32896a804a |
|
20-Dec-2012 |
Raph Levien <raph@google.com> |
Suppress horizontal scrolling with trailing blanks The existing behavior of EditText is that trailing blanks can cause a line to exceed the layout width, causing the cursor to extend past the line, which in turn causes horizontal scrolling. This patch clamps the cursor to the layout width in the non-scrolling case, which makes the spaces effectively invisible when they're at the end of the line, but at least suppresses the scrolling. The clamping only works reliably in left-to-right alignments, so this patch checks for than and only enables the clamping in those cases. Fix for bug 7699295. Change-Id: I22bc4e6c9ded3d7716edfcf10dd2b5c31a5da9de
/frameworks/base/core/java/android/widget/TextView.java
|
330dd534848562515c6c67cb3de13067e86866a1 |
|
18-Dec-2012 |
John Spurlock <jspurlock@google.com> |
Remove remaining doc references to StyledAttributes. It appears StyledAttributes was renamed to TypedArray prior to fw 1.0. Leaving references to the old name around in the public docs is confusing. Deliberating leaving... tests/coretests/src/android/widget/LabelView.java ... as is - it's clearly unused. Change-Id: I3f66e5f9cbe945d9d86530d37b88369b401f054d
/frameworks/base/core/java/android/widget/TextView.java
|
5bb4ee6d38bec37c84086d52a2293b5396ee33df |
|
05-Dec-2012 |
Satoshi Kataoka <satok@google.com> |
Fix an issue on changing the keyboard locale between spellchecking supported language to non-supported language Bug: 7658675 Change-Id: Ia2353f299506b5871e0104594e4486b6ab1ffa82
/frameworks/base/core/java/android/widget/TextView.java
|
b75fb5daf68b6df642616b9101a904cc9cc4feca |
|
29-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 52c3833e: am 07581745: am 71175f72: Merge "Fix bug #7621927 Radio button/TextView drawable regression in 4.2" into jb-mr1.1-dev * commit '52c3833e20d0e78fcb367c1e81cd2c83f9165a0a': Fix bug #7621927 Radio button/TextView drawable regression in 4.2
|
71175f727bc1e094e72a410aca62392badffbf11 |
|
29-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #7621927 Radio button/TextView drawable regression in 4.2" into jb-mr1.1-dev
|
b878ddb56ec4e755706890110d76735176ff2295 |
|
28-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #7621927 Radio button/TextView drawable regression in 4.2 - as we remove the 9 patch padding trick, we need also to do the correct positioning of the radio / checkbox / star during draw Change-Id: I02b67bef9c0f2dc1c0c65361de14ab20ce9b881d
/frameworks/base/core/java/android/widget/TextView.java
|
742524b2169b5b5726e7b27fcd1673dabca62099 |
|
20-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 3ee47400: am 95263ef3: am 4d931acd: Merge "Fix for bug #7417949 TextView / EditText error Drawable is not put on the left in RTL mode" into jb-mr1.1-dev * commit '3ee4740009b0e217ee0f6de0f86f2f557b175dea': Fix for bug #7417949 TextView / EditText error Drawable is not put on the left in RTL mode
|
4d931acdb85df1f9d1577cf05686601a6c2fb4cc |
|
20-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix for bug #7417949 TextView / EditText error Drawable is not put on the left in RTL mode" into jb-mr1.1-dev
|
cf0a5865f43747828c2372dea009aad0d4c4f4c1 |
|
16-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am e054ab85: am 348cf60d: am 674a131c: Merge "Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR" into jb-mr1.1-dev * commit 'e054ab85388d71c8b1d46fa4e67018ff2aaa97ae': Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR
|
8701bb90db889c4731ed15c6588854870f34cdd4 |
|
15-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6638582 Password fields appears RTL in Arabic locale , it should be LTR - change heuristic to LTR. Change-Id: I3c5f413e48ceddbd931d713eb8c168431fcd09a2
/frameworks/base/core/java/android/widget/TextView.java
|
bb0cbae441f04c052dd1a73448ae58fbffaca65d |
|
14-Nov-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix for bug #7417949 TextView / EditText error Drawable is not put on the left in RTL mode - keep the Error Drawable infos into the Drawables cache - reset left/right Drawable state before resolving where to put the Error Drawable - get the mirrored Drawable for the Error popup background - set the Error popup position depending on the layout direction (so that the "triangle" of the background is pointing to the middle of the Error icon) One restriction: we load the Error popup background Drawable corresponding to the layout direction of the System Locale. So if you set the Layout direction on a TextView (or an EditText) to RTL and set an error to it when you are in a RTL System Locale, then you see that the background "triangle" is not pointing to the Error icon. This is working as intended as the AssetManager load the Drawable resource depending on the configuration which is in that case the RTL one thus loading the RTL version of the background (and not the LTR one). Thus there can be a discrepancy between the "layout direction" of the TextView and the one from the Error popup background. This would happen only thru using the SDK and not in a normal case when running an App. Change-Id: I91bbfbe46ac20efe0e585c5d4c766db23b5c709d
/frameworks/base/core/java/android/widget/TextView.java
|
6ea875ea367743f667f9518f05413ff4e52fd615 |
|
06-Nov-2012 |
Mike Cleron <mcleron@google.com> |
am 21c25254: am a0362c7b: am c87f198b: Merge "TextView not respecting "speak passwords" setting when adding before text to events." into jb-mr1-dev * commit '21c25254416a47c667d427052d4510ae027e81be': TextView not respecting "speak passwords" setting when adding before text to events.
|
72bba588079e17eb425c4926d22ffcf301693bab |
|
05-Nov-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
TextView not respecting "speak passwords" setting when adding before text to events. 1. If the speak passwords settings is on, the accessibility events emitted from a TextView should contain the text and before text of the source. The settings shows the users consent to put the source's text in the event. While the code that populates the current text in the accessibility event respects the setting, the one that populates the before text does not. As a result the fact that the user has typed a letter cannot be echoed by an accessibility service. bug:7468768 Change-Id: I7580c37936d742f42653315b2591e268a634d22b
/frameworks/base/core/java/android/widget/TextView.java
|
46e62fe39874abf2a9bdfab7635df98011c03cd1 |
|
30-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 024e70c8: am dd80335e: am 07ce0ca2: Merge "Fix bug #7419054 TextView Drawables resolution is broken in RTL mode" into jb-mr1-dev * commit '024e70c8156a0fa2d702ff2fba4a38c1f6b68f98': Fix bug #7419054 TextView Drawables resolution is broken in RTL mode
|
1957d281ea123e4925e51fa5ad22ce239ef2a07d |
|
26-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #7419054 TextView Drawables resolution is broken in RTL mode - check layout direction previous value in the onResolveDrawables(int) callback - dont do any Drawables resolution if we cannot resolve the layout direction - also remove unnecessary call to resolveRtlPropertiesIfNeeded() in ViewGroup when adding a child as the call to resolveRtlPropertiesIfNeeded() will be done into the measure() call itself later Change-Id: I62237af3d307dfea203f7f2865551d1c61a0e0b8
/frameworks/base/core/java/android/widget/TextView.java
|
886d159aa847232a534ac07d01328d65813e31a8 |
|
16-Oct-2012 |
Raph Levien <raph@google.com> |
am 17732ff1: am 142155b5: am 3377b404: Merge "Fix for bug 7358703 Gmail ANR when trying to compose a message" into jb-mr1-dev * commit '17732ff107706d1e816d45307594e8b73f8bb01b': Fix for bug 7358703 Gmail ANR when trying to compose a message
|
8b17969c64b5d8749b901784b61dc7c165ee98be |
|
16-Oct-2012 |
Raph Levien <raph@google.com> |
Fix for bug 7358703 Gmail ANR when trying to compose a message When deferring scroll to a point, it's possible the text changed between the time the scroll was requested to the time layout happens. In this case, it attempts to scroll to a point past the end of the text buffer, which created an infinite loop. This patch clamps the scroll offset to the length of the text, so it just scrolls to the end in that case, rather than crashing. Change-Id: I53740d119d588560f5a4d9fb80e38f7057faab89
/frameworks/base/core/java/android/widget/TextView.java
|
f95dfbbcfe2dda56876ede4d3a6d88ee506a1bea |
|
16-Oct-2012 |
Raph Levien <raph@google.com> |
am 244f5125: am b9e224cc: am 6f8c1bad: Merge "Fix for bug 7344916 text view flickers when you hit enter" into jb-mr1-dev * commit '244f5125abd62e60f6bf91675f3be6d540b818d2': Fix for bug 7344916 text view flickers when you hit enter
|
f5c1a8798f3a2e4196473fb1328159bd8297f178 |
|
16-Oct-2012 |
Raph Levien <raph@google.com> |
Fix for bug 7344916 text view flickers when you hit enter The flickering was caused by trying to scroll to the cursor position while the view was in an inconsistent state (text updated to change the number of lines, but layout not done yet). This patch defers the actual setting of the cursor until layout is done, when layout is pending. Change-Id: I8ed3a402beb8058ac7a7f3935afeb946a23308ab
/frameworks/base/core/java/android/widget/TextView.java
|
58072b573d4840199e3d19f3d6f6a873281c2e40 |
|
13-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am df4bcd6a: am b65b5133: am f9307c5c: Merge "Fix bug #7334966 Padding is still broken in RTL languages" into jb-mr1-dev * commit 'df4bcd6a36ae2e0248791f35c10f6f100543b2c6': Fix bug #7334966 Padding is still broken in RTL languages
|
84ebb35f392478600ddf8f08107fb345f13ef91c |
|
12-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #7334966 Padding is still broken in RTL languages - do correct resolution and reset propagation for all RTL properties (padding and drawables included) - fix CheckedTextView padding too Change-Id: Ie603683a2324b2a6ef2c03633d01d5726c883b90
/frameworks/base/core/java/android/widget/TextView.java
|
bc58774037aa799f8cb9eb6e3b8c8adcd2633bd3 |
|
12-Oct-2012 |
Satoshi Kataoka <satok@google.com> |
am 95189b92: am 6a1d4b99: am 8e767115: Merge "Don\'t update the text services locale in the main thread" into jb-mr1-dev * commit '95189b92259529997cfa4d15b5ffd060d9f99a51': Don't update the text services locale in the main thread
|
1eac6b7b0554eb126d113e49009208a1da5f23d9 |
|
09-Oct-2012 |
Satoshi Kataoka <satok@google.com> |
Don't update the text services locale in the main thread This is a revised version of I9f8a81d3c9261a6cfc00292b9f5cb06053b9112d Bug: 6761326 Change-Id: I43a0a65df6e4b6941bd0dca548c4af20b7e5bf58
/frameworks/base/core/java/android/widget/TextView.java
|
6637d1040a61385f48c42f623188494b07c7f159 |
|
10-Oct-2012 |
Ken Wakasa <kwakasa@google.com> |
am 72da683c: am b8e6a972: am 1a5f387b: Merge "Revert "Don\'t update the text services locale in the main thread"" into jb-mr1-dev * commit '72da683c6edf23678fdd3f53d777811bb5bbe1f2': Revert "Don't update the text services locale in the main thread"
|
72fa0b35c522e833f4d9fb4282e334d103819c73 |
|
10-Oct-2012 |
Ken Wakasa <kwakasa@google.com> |
Revert "Don't update the text services locale in the main thread" This reverts commit 8fa0838bf82f43acfabc0e7fe9471e488a97796b Change-Id: Ie790ae6dcb33d05d1fbf86c8ef28aec6fe60793a
/frameworks/base/core/java/android/widget/TextView.java
|
ad9d695eccc911c356d5306ff51decaeede8a0d6 |
|
10-Oct-2012 |
Satoshi Kataoka <satok@google.com> |
am 78bd3854: am 27e2b6c2: am 0aaffb14: Merge "Don\'t update the text services locale in the main thread" into jb-mr1-dev * commit '78bd3854c63261cc01321ebb41a29d9302ae1b8f': Don't update the text services locale in the main thread
|
8fa0838bf82f43acfabc0e7fe9471e488a97796b |
|
09-Oct-2012 |
Satoshi Kataoka <satok@google.com> |
Don't update the text services locale in the main thread Bug: 6761326 Change-Id: I9f8a81d3c9261a6cfc00292b9f5cb06053b9112d
/frameworks/base/core/java/android/widget/TextView.java
|
639d09b4663b5bf44d2fd8dc00d6ef81dbc603cf |
|
01-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 840ea01f: am 93cea34a: am f2e5cf48: Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev * commit '840ea01fcbafe5d6b3fc8d90dcb5d99a65fa0113': Fix bug #6427629 Clean up layout direction APIs
|
343e11345ed496003f605e1b3bba5850d3e6cf0e |
|
29-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6427629 Clean up layout direction APIs - remove onPaddingChanged(int) and fold it into onRtlPropertiesChanged(int) Change-Id: I1d7f02d2b4538c6c991bd4285501bbc73e6aa5c3
/frameworks/base/core/java/android/widget/TextView.java
|
8c549d6ffec427ed3f8f99eb25ffefaf55003893 |
|
25-Sep-2012 |
Philip Milne <pmilne@google.com> |
Merge "Bug #6110465. Optical bounds support for all ViewGroup subclasses."
|
1a7d487380460b4aea37140baf6bf4bf7f92f8a5 |
|
24-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6427629 Clean up layout direction APIs - rename getResolvedTextAlignment() to getTextAlignment() Change-Id: I6a2b6c9ec4f5cea1adde46e35d5f3c49880791ee
/frameworks/base/core/java/android/widget/TextView.java
|
97e146cf02f87b91f81c37d53644e5415efddb72 |
|
24-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6427629 Clean up layout direction APIs - rename getResolvedTextDirection() to getTextDirection() Change-Id: Id2a6025daf5521dcd676e454fc6bb9955fdccf2d
/frameworks/base/core/java/android/widget/TextView.java
|
e56ffdc7b31b0937628609cc3bbaa15879023569 |
|
23-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6427629 Clean up layout direction APIs - rename getResolvedLayoutDirection() to getLayoutDirection() Change-Id: I3afe56c0db0751952f5056c23893cb7455531d29
/frameworks/base/core/java/android/widget/TextView.java
|
4457e85a7090ad51726d50a4daf981d917cceedd |
|
19-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6427629 Clean up layout direction APIs - canResolveXxx() should be hidden - resetResolvedXxx() should be hidden - resolveDrawables(), resolveLayoutDirection(), resolvePadding(), resolveTextAlignment(), resolveTextDirection() should be hidden - onResolvedXxx() should be merged into one callback - fix also an issue with setting the layout direction of the drawable in ImageView - fix also an issue with checking if TextAlignment can be resolved Change-Id: I1402269ddf8632525f5550f80e5610e1a7b4034d
/frameworks/base/core/java/android/widget/TextView.java
|
7b7578184567f4e4f0740ce935cc192765410cca |
|
20-Sep-2012 |
Philip Milne <pmilne@google.com> |
Bug #6110465. Optical bounds support for all ViewGroup subclasses. This CL generalizes the optical bounds support previously contained in the GridLayout implementation and then incorporates the new form directly into the base View and ViewGroup implementations. After this change, GridLayout is returned to an 'optical bounds' unaware state, and all layouts (including non-platform ones) inherit the ability to perform their layout operation by optical (rather than clip) bounds using their existing implementations. The "layoutMode" property of ViewGroup and its associated constants are made public in this CL. Change-Id: Ic1bba0e1c6fc14da4aeab0b28c975d562b5f82dd
/frameworks/base/core/java/android/widget/TextView.java
|
f6aa537c2dddfa9c68af161c082b5d4f316bd068 |
|
07-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Make ProgressBar / SeekBar / RatingBar widgets aware of layout direction" into jb-mr1-dev
|
2f4bf52d2ca1500c77b42e76f30f81f806fb6189 |
|
07-Sep-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Granular navigation not possible in edit text if the view has content description. 1. We were giving precedence of content description over text and this is what content description is supposed to do - override the text. However, putting content description on an EditText by mistake would render the text view not navigable which is pretty much unusable. Now we are giving precedence to the text and use the content description as a fall back if text is empty. bug:7078382 Change-Id: I00882ace149344478b127124bd5e641903e1b756
/frameworks/base/core/java/android/widget/TextView.java
|
0af4b8b0c8b038bca9b4f60eb81f71e186f471ce |
|
12-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make ProgressBar / SeekBar / RatingBar widgets aware of layout direction - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I8d76299090abf6b2b187696b1a83e71d7a44b1ce
/frameworks/base/core/java/android/widget/TextView.java
|
fa1babd22105416e8f3d0988d46982d0313da63c |
|
05-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #7023040 android.widget.cts.TextViewTest#testResetTextAlignment failures - cache the text aligment as we cannot resolve the text alignment during reset of the text direction Change-Id: I79de625e517bf8bad6313fd5e349f1181b1eaa30
/frameworks/base/core/java/android/widget/TextView.java
|
df8ef4b139a8918895f8a5c62536123da06e81fe |
|
18-Aug-2012 |
Victoria Lease <violets@google.com> |
DO NOT MERGE LocaleSpan makes Han disambiguation easy! Cherry-pick of I7f1b0d49a2ece957a7b9b5d65d48385bf2c2a668 from master. I've also provided TextView.setTextLocale() for use in single-language TextViews. Change-Id: I5692859bfd2aafc284172454d943afc250b22535
/frameworks/base/core/java/android/widget/TextView.java
|
7d6f6c938cd99b42ce3355c291d32216ae83ae8f |
|
26-Jul-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make TextView Marquee RTL-aware - fix bug #6870530 Change-Id: Icd8aae19136cfd49ee475d26749978463e7f7f77
/frameworks/base/core/java/android/widget/TextView.java
|
49ccb116e9f2f3cf1233738c931f3e620287afc4 |
|
12-Jun-2012 |
Victoria Lease <violets@google.com> |
am 1b15102f: am 72b8fc7e: Merge "Revert "Fix fake bold for fallback fonts in frameworks."" into jb-dev * commit '1b15102fc040f59c72c6453dee15b791f54c9f06': Revert "Fix fake bold for fallback fonts in frameworks."
|
aa0980afab57a6aebb06e70f60e92511708fa5af |
|
11-Jun-2012 |
Victoria Lease <violets@google.com> |
Revert "Fix fake bold for fallback fonts in frameworks." This reverts commit b26fa0ce68d3311b2fdffb930b27d897e481dd5a
/frameworks/base/core/java/android/widget/TextView.java
|
c3672a4e19d3a0063c6d467453e9d7e03b2c1d2f |
|
09-Jun-2012 |
Victoria Lease <violets@google.com> |
am 2203fab2: am 2e6f9be5: Merge "Fix fake bold for fallback fonts in frameworks." into jb-dev * commit '2203fab24966c80af5c37f0a58263218dbbcd610': Fix fake bold for fallback fonts in frameworks.
|
b26fa0ce68d3311b2fdffb930b27d897e481dd5a |
|
08-Jun-2012 |
Victoria Lease <violets@google.com> |
Fix fake bold for fallback fonts in frameworks. This change is analogous to Ic0e9f1bbd8cae9fdd3a6d1d015bb9224c8be545c in WebView, and depends upon the same Skia change that that CL makes use of. This flips the "fake bold" flag on for bold fonts in TextView.setTypeface(), with the expectation that Skia will ignore the flag if the final typeface used to render the glyphs is already bold. It also does the same for StyleSpans, TextAppearanceSpans, TypefaceSpans, and the Switch widget. With this, fake bold should work uniformly across all scripts - if fake bold works for a primary typeface, it should also work for all fallback typefaces. Bug: 6629786 Change-Id: Id3b8639ab0df83052ffd82809cb12adaacc1d46b
/frameworks/base/core/java/android/widget/TextView.java
|
3eaf181f964590be06fa99af5d41ffb2d0a18654 |
|
07-Jun-2012 |
Gilles Debunne <debunne@google.com> |
am 11c15cfb: am 78c6aeef: Merge "Fixed cast exception with selectable text." into jb-dev * commit '11c15cfb4e48c53bcaf648c82de12707d6e479ba': Fixed cast exception with selectable text.
|
857c341dfe36324fb32d7debc06d536cd8a9add1 |
|
07-Jun-2012 |
Gilles Debunne <debunne@google.com> |
Fixed cast exception with selectable text. Bug 6550358 The EditText constructor now calls setTextIsSelectable, which uses getText where the cast exception happens because the EditText is not yet fully built and its text does not have the right type. Fixed by using mText directly instead of getText(). Change-Id: I52a2720ae99475881f210ac74464728cab92147e
/frameworks/base/core/java/android/widget/TextView.java
|
b03b434089cf2106c467b2827a65e5c589c91d01 |
|
04-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Revert "Revert "Clean up layout direction APIs for Drawable"" This reverts commit c96132ff53e5c26f5b0170edd85072006fb2bc70
/frameworks/base/core/java/android/widget/TextView.java
|
c96132ff53e5c26f5b0170edd85072006fb2bc70 |
|
02-Jun-2012 |
Jean-Baptiste Queru <jbq@google.com> |
Revert "Clean up layout direction APIs for Drawable" This reverts commit c1da65187a4b9de8f72bd617ef937030187c0a92.
/frameworks/base/core/java/android/widget/TextView.java
|
78068825416a4a0f3b2fdf57491ba4932c2bb6c4 |
|
01-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Clean up layout direction APIs for Drawable"
|
c1da65187a4b9de8f72bd617ef937030187c0a92 |
|
01-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Clean up layout direction APIs for Drawable - see bug #6427629 Change-Id: I3119db3022bba0ee325b6d0d4471bfebd850ec10
/frameworks/base/core/java/android/widget/TextView.java
|
3b6a3f004f7edf88949ed916f01b77573cd33da0 |
|
31-May-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 875713c6: am f053e236: Merge "Fix bug #6567507 [Bidi] - Cursor is sometimes not visible on EditText" into jb-dev * commit '875713c6886a5b24fff3a2ce36eb95bc9446e749': Fix bug #6567507 [Bidi] - Cursor is sometimes not visible on EditText
|
f053e2367d4859adf9488bd1712bdbe8f647eeb8 |
|
31-May-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #6567507 [Bidi] - Cursor is sometimes not visible on EditText" into jb-dev
|
0ed59fae6fc85c2c4a223d3be88b79cf797908ab |
|
30-May-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #6567507 [Bidi] - Cursor is sometimes not visible on EditText - take the hint layout primary horizontal offset if needed Change-Id: Ib5c4dd990278e1fd8bb9ba4f4b6940a62dba91e3
/frameworks/base/core/java/android/widget/TextView.java
|
b616547cd5915793ebb5f7b85e815895c54b1d93 |
|
30-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
am 378aa011: am a5c896af: Merge "Updating the behaviour of accessibility text iterators." into jb-dev * commit '378aa011d5f989166b62e9db6328a5881a1a73a0': Updating the behaviour of accessibility text iterators.
|
a5c896afe89aaf40166343232d85980b94974032 |
|
30-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Updating the behaviour of accessibility text iterators." into jb-dev
|
39f2aee640eea62b43fa79f28dec3a962e5cb065 |
|
29-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Updating the behaviour of accessibility text iterators. 1. Iterators were skipping content on reversing direction. 2. The cursor was positioned at the beginning of the next text segment when moving forward and at end of the previous text segment when moving backwards. This is incorrect and now the cursor is positioned at the end of the segment when moving forward and at the beginning when moving backward. 3. The cursor position was not properly set when reaching the end/start of the text. 4. The iterators were reporting strictly the next/previous segment even if the cursor is within such a segment. Thus, when traversing some content may be skipped. Now moving forward moves the selection to the next segment end and the start position is either the old index if it was within a segment or the start of the segment. Same in reverse. bug:6575099 Change-Id: Ib48a649cec53910339baf831a75e26440be6e576
/frameworks/base/core/java/android/widget/TextView.java
|
5284148f28d25f69bae3f34037f65275edaa0186 |
|
24-May-2012 |
satok <satok@google.com> |
am 77f79a39: am f927e17a: Use correct spell check locale * commit '77f79a39c0e6aa540f8204adb39ec6671ee053e7': Use correct spell check locale
|
f927e17ae543b6edeae8200cc86c59c3ee740670 |
|
24-May-2012 |
satok <satok@google.com> |
Use correct spell check locale Bug: 6542210 Change-Id: I414aa2321f30e396996d90fb8e90c1dbb3bb7b9e
/frameworks/base/core/java/android/widget/TextView.java
|
ce725cc1e209658132f7d269f13a9fa1eb7dbe74 |
|
22-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
am f7b8bbad: am de83e7aa: Merge "Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference." into jb-dev * commit 'f7b8bbadf50f313733dd89c5680f0ffc60f364bc': Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference.
|
7d62419c85dbf4fff1895e91d38edccf5d1f46ec |
|
21-May-2012 |
alanv <alanv@google.com> |
Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference. Bug: 6523447 Change-Id: I2610b558395dc53a74b5c8c36c09673898da44f2
/frameworks/base/core/java/android/widget/TextView.java
|
39af624f3135328ec0550888e99f4350572634b5 |
|
19-May-2012 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE: Remove a few left-over layout direction things. Change-Id: Id66b171594af939df4716aa0e0baa25fe47eecee
/frameworks/base/core/java/android/widget/TextView.java
|
72e15ceb85ecbe066c2ba33ca7e086dc511a8d23 |
|
18-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
am cefd97c8: am e54c5f13: Merge "Exposing some accessiblity actions only for enabled views." into jb-dev * commit 'cefd97c8546d6dca184e8ac9589ab2ff1b795c06': Exposing some accessiblity actions only for enabled views.
|
fb1e80a247221ee7e8f5c5deba04812021d9d07e |
|
17-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Exposing some accessiblity actions only for enabled views. 1. Some accessibility actions should not be performed on disabled views. For example, scrolling should not be permitted while accessibility focus should be. Made a quick pass over the actions we expose now. Change-Id: I36626dfbc0d2f480309a910f58f1de64e9e05675
/frameworks/base/core/java/android/widget/TextView.java
|
83492861b61ecd3fa7fdc4cec4db6e786638d4f6 |
|
15-May-2012 |
Gilles Debunne <debunne@google.com> |
am 8573c204: am 855f5407: Merge "Minor changes in SpellCheckSpan pool management in SpellChecker" into jb-dev * commit '8573c204049d81d616616c6ed2ffd4629b051d59': Minor changes in SpellCheckSpan pool management in SpellChecker
|
855f5407c74694ebd924b36738ecc79241c4becf |
|
15-May-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Minor changes in SpellCheckSpan pool management in SpellChecker" into jb-dev
|
24ef21aeebb247f5dd6de13aea878f3d7194143a |
|
15-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
am e436812e: am 844047ac: Merge "Fix inconsitency in aAccessibilityNodeInfo cache." into jb-dev * commit 'e436812e85f4a8da724f4fe36c1547a1b806f1f9': Fix inconsitency in aAccessibilityNodeInfo cache.
|
844047acb7133c0b6b7128f19b76f93eaca9371e |
|
14-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Fix inconsitency in aAccessibilityNodeInfo cache." into jb-dev
|
e60a635919ce8f1f5d868d51a87d7fc5da4ddda0 |
|
14-May-2012 |
Adam Powell <adamp@google.com> |
am e48c70e4: am 7fc4fbcc: Merge "Automatic persistent text selection for ListViews" into jb-dev * commit 'e48c70e4d9302795d5f02d352c7907302ca5c8b6': Automatic persistent text selection for ListViews
|
c406be9036643ebe41bafcd94fe4aa861b4e4f4f |
|
12-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Fix inconsitency in aAccessibilityNodeInfo cache. 1. Fixed errors in the accessibility node cache. A. The cache was not catching the case when the current window changes as a result the user touch exploring it. As a result the cache had nodes from more that one window but the node ids are not unique thus causing a mess. B. The node info tree was prefetched regardless if a prefetched node is root name space (i.e. view ids - not accessibility ids - are namespaced) while the prefetched nodes were taking this into account. As a result there can get disconnected subtrees in the cache. C. When an event for a property change such as focus was received the cache we were removing the source node. As a result there may be disconnected nodes. D. When a node was added to the cache and an older version exists there was no check if it will point to the same children and parent. As a result if the state of the node has fewer children the subtrees rooted at the no longer present children will stay disconnected in the cache. E. When a node got accessibility or input focus the old one in the cache was not removed. As a result you may have a state with more than one access or input focus. 2. Added integrity check enabled only on user builds when a specific flag is set for the cache which checks whether: A. All nodes are from the same window. B. All nodes are connected. C. There are no duplicates. D. There is only one input focus. E. There is only one accessibility focus. 3. The reported accessibility node info tree was stopping at the root namespace boundary which is not correct. The reported tree has to reflect everything on the screen that the user can see such a workspace with widgets. The root namespace is added to avoid clash of view id but the accessibility ids are unique no matter if the view is inflated from a remote view. 4. Added calls to notify the accessibility layer when a preoprty that is interesting for accessibiliy has changed. bug:6471710 Change-Id: I069470d91f209ba16313fa6539787a55efa3512e
/frameworks/base/core/java/android/widget/TextView.java
|
057a585fba01d92c38f27a8c080622dfd0c6f556 |
|
11-May-2012 |
Adam Powell <adamp@google.com> |
Automatic persistent text selection for ListViews Use View transient state tracking to allow selection to persist across ListView-style item view recycling. Fix some bugs with transient state tracking. Bug 6110122 Change-Id: Ic084b8fc2289bff718b19478a37ce64459b3ed4c
/frameworks/base/core/java/android/widget/TextView.java
|
2ab65680466e2dc9018020f99c2681f30ef2e42d |
|
11-May-2012 |
Raph Levien <raph@google.com> |
resolved conflicts for merge of a9cc30ce to master Change-Id: I507bd7a4650f9a7bfe6a0ad7bb8dd4067adb6a8b
|
d570e8987ae50ee101c3d4cfa973e1a6b6ecc8f5 |
|
09-May-2012 |
Raph Levien <raph@google.com> |
Add fontFamily XML attribute to select font family by string Change-Id: I0b649528d3d9888e3561a1a3907a6b6ee2e30238
/frameworks/base/core/java/android/widget/TextView.java
|
69865bd6860a97793a06523a48dfe6472e9b7562 |
|
09-May-2012 |
Gilles Debunne <debunne@google.com> |
Minor changes in SpellCheckSpan pool management in SpellChecker Bug 6464190 The 'inProgress' flag is set to false when the SpellCheckSpan starts to get used (instead of a less intuitive when it is removed). Pool recycling in handled by onSpellCheckSpanRemoved, called from the TextView's SpanWatcher, when a SpellCheckSpan is removed for any reason (from the SC code or due to text editing). The other change is that Sentence SC now correctly removes the span from the text (and hence recycles it in the pool). Change-Id: If8b433fd5e41d4dc0304a127ebcc088ea1eecaa7
/frameworks/base/core/java/android/widget/TextView.java
|
e92c4e029bc169e114b06ec494734992cb310ee3 |
|
09-May-2012 |
Gilles Debunne <debunne@google.com> |
am 4fcc9b49: am 2e999d12: Merge "Removed debug code in TextView" into jb-dev * commit '4fcc9b49242e850008ea4966f741cdcecca0ae3f': Removed debug code in TextView
|
4833ca2903e89eab93b353f00a1e4904a73d79bb |
|
09-May-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
am 755b2146: am b2ee0d57: Merge "Text traversal at various granularities." into jb-dev * commit '755b2146735c15deb0eb611430a7da1e363d82a1': Text traversal at various granularities.
|
5fae996751f61fdddce0b11fa30b39fb6c5cb762 |
|
08-May-2012 |
Gilles Debunne <debunne@google.com> |
Removed debug code in TextView Bug 6462527 The String parameter was used to debug code during the refactoring process. Change-Id: I49a78bbfa3b45c185311d0dbebddddc52515c099
/frameworks/base/core/java/android/widget/TextView.java
|
6d17a936f73976971135aa1e6248662533343292 |
|
28-Apr-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Text traversal at various granularities. 1. Implementing text content navigation at various granularities. For views that have content description but no text the content description is the traversed at character and word granularities. For views that inherit from TextView the supported granularities are character, word, line, and page. bug:5932640 Conflicts: core/java/android/view/View.java Conflicts: core/java/android/view/View.java Change-Id: I66d1e16ce9ac5d6b49f036b17c087b2a7075e4c0
/frameworks/base/core/java/android/widget/TextView.java
|
66388dcb09018933ccd1d38eae563f0890ba4f06 |
|
04-May-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Hide RTL related APIs - DO NOT MERGE - fix bug #6441155 API review: @hide RTL layout APIs Change-Id: I13c5ea5f579cecffed9d517f06180ab0576cd26a
/frameworks/base/core/java/android/widget/TextView.java
|
f03acef0ab614fbd69eee606bb60434f9659259f |
|
01-May-2012 |
Gilles Debunne <debunne@google.com> |
API fix in TextView Bug 6104140 Change-Id: I44af54ac7c194335a649e5878ff47dc894fa46fe
/frameworks/base/core/java/android/widget/TextView.java
|
c54da1cef96454886967dfe72ed9873f23084b96 |
|
28-Apr-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add TextView textSize as a ViewDebug for hierarchyviewer Change-Id: I6459d0d9cdb9fe6a81b3e30c56b64159fc729d52
/frameworks/base/core/java/android/widget/TextView.java
|
2d373a18345a5d0a5f8272833b6fdc8bfc4a91cd |
|
21-Apr-2012 |
Gilles Debunne <debunne@google.com> |
TextView refactoring part 3: the easy Removed safety net getEditor() method. Cleaned-up trailing spaces. Enforced the 100 characters limit on all lines. Change-Id: I0e0d704f8b795cd2e2d040f31c20e63c60fa31a8
/frameworks/base/core/java/android/widget/TextView.java
|
0b7d747e900dd9e6e6f62f10772c2dded9b9d0c6 |
|
24-Apr-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Editor uses a SpanWatcher to track EasyEditSpans"
|
c62589cbecef6e748bcc6c6f4ea6a8ff7656923f |
|
12-Apr-2012 |
Gilles Debunne <debunne@google.com> |
Editor uses a SpanWatcher to track EasyEditSpans Will also fix Bug 6344997 The previous TextWatcher mechanism was inneficient. It require an expensive getSpans() call to retrieve all the spans and then search for the one we're interested in in case it has been changed. The SpanWatcher is faster, it will broadcast the add/changed/removed events we're interested in. Now that we can rely on SpanWatcher, use it to directly track addition and removals of EasyEditSpans. No unit test for this feature which require an integration with the voice IME. Easy to test manually though. Change-Id: Idabcacc48c479bf9868d5204c0b0ca709207ede2
/frameworks/base/core/java/android/widget/TextView.java
|
b983e27af47b6a3a6b13af0d3dd64b163f540efd |
|
24-Apr-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Re-added a flag to prevent the IME from showing"
|
1271e2cc80b01d577e9db339459ef0222bb9320d |
|
20-Apr-2012 |
Chet Haase <chet@google.com> |
Remove USE_DISPLAY_LIST_PROPERTIES flag This flag was still hanging around pending any need to disable DisplayList properties. But things seem stable, so it's time to clean up and simplify the code. At the same time, I reduced redundance in DisplayList dimensions. We used to call drawDisplayList() with width/height parameters that were used to do a clip reject. This is redundant with the DisplayList properties that set the bounds of the DisplayList; the left/right and top/bottom properties represent the same width/height properties formerly used in drawDisplayList(). The new approach is to not pass dimensions to drawDisplayList(), but to instead pull those dimensions directly from the DisplayList when needed. Change-Id: I8871beff03b1d4be95f7c6e079c31a71d31e0c56
/frameworks/base/core/java/android/widget/TextView.java
|
3473b2b1f495f0f5a31e7ed687557c423c63abff |
|
21-Apr-2012 |
Gilles Debunne <debunne@google.com> |
Re-added a flag to prevent the IME from showing Revert of CL 161404 This flag will be used by the dialer. It prevents any IME from showing as a result of a focus given to a TextView through a tap or a D-Pad click. Change-Id: Ifa5bfcbff124b300780f76dea443d26cf172f5e3
/frameworks/base/core/java/android/widget/TextView.java
|
ebc86af1dc186c77f723c8970951e8ff00b4866b |
|
21-Apr-2012 |
Gilles Debunne <debunne@google.com> |
Visible spans changes only invalidate the affected text sub display lists When a span with a visible influence on the text is modified, we only need to invalidate the text sub display lists that overlap this span. This is especially useful when typing and the composing span (an underline span) gets updated after each key stroke. Change-Id: Ib2af3219c41eb79ec5d0a2eee317aca8c4efdef9
/frameworks/base/core/java/android/widget/TextView.java
|
4213804541a8b05cd0587b138a2fd9a3b7fd9350 |
|
20-Mar-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Accessibility focus - framework Usefulness: Keep track of the current user location in the screen when traversing the it. Enabling structural and directional navigation over all elements on the screen. This enables blind users that know the application layout to efficiently locate desired elements as opposed to try touch exploring the region where the the element should be - very tedious. Rationale: There are two ways to implement accessibility focus One is to let accessibility services keep track of it since they have access to the screen content, and another to let the view hierarchy keep track of it. While the first approach would require almost no work on our part it poses several challenges which make it a sub-optimal choice. Having the accessibility focus in the accessibility service would require that service to scrape the window content every time it changes to sync the view tree state and the accessibility focus location. Pretty much the service will have to keep an off screen model of the screen content. This could be quite challenging to get right and would incur performance cost for the multiple IPCs to repeatedly fetch the screen content. Further, keeping virtual accessibility focus (i.e. in the service) would require sync of the input and accessibility focus. This could be challenging to implement right as well. Also, having an unlimited number of accessibility services we cannot guarantee that they will have a proper implementation, if any, to allow users to perform structural navigation of the screen content. Assuming two accessibility services implement structural navigation via accessibility focus, there is not guarantee that they will behave similarly by default, i.e. provide some standard way to navigate the screen content. Also feedback from experienced accessibility researchers, specifically T.V Raman, provides evidence that having virtual accessibility focus creates many issues and it is very hard to get right. Therefore, keeping accessibility focus in the system will avoid keeping an off-screen model in accessibility services, it will always be in sync with the state of the view hierarchy and the input focus. Also this will allow having a default behavior for traversing the screen via this accessibility focus that is consistent in all accessibility services. We provide accessibility services with APIs to override this behavior but all of them will perform screen traversal in a consistent way by default. Behavior: If accessibility is enabled the accessibility focus is the leading one and the input follows it. Putting accessibility focus on a view moves the input focus there. Clearing the accessibility focus of a view, clears the input focus of this view. If accessibility focus is on a view that cannot take input focus, then no other view should have input focus. In accessibility mode we initially give accessibility focus to the topmost view and no view has input focus. This ensures consistent behavior accross all apps. Note that accessibility focus can move hierarchically in the view tree and having it at the root is better than putting it where the input focus would be - at the first input focusable which could be at an arbitrary depth in the view tree. By default not all views are reported for accessibility, only the important ones. A view may be explicitly labeled as important or not for accessibility, or the system determines which one is such - default. Important views for accessibility are all views that are not dumb layout managers used only to arrange their chidren. Since the same content arrangement can be obtained via different combintation of layout managers, such managers cannot be used to reliably determine the application structure. For example, a user should see a list as a list view with several list items and each list item as a text view and a button as opposed to seeing all the layout managers used to arrange the list item's content. By default only important for accessibility views are regared for accessibility purposes. View not regarded for accessibility neither fire accessibility events, nor are reported being on the screen. An accessibility service may request the system to regard all views. If the target SDK of an accessibility services is less than JellyBean, then all views are regarded for accessibility. Note that an accessibility service that requires all view to be ragarded for accessibility may put accessibility focus on any view. Hence, it may implement any navigational paradigm if desired. Especially considering the fact that the system is detecting some standard gestures and delegates their processing to an accessibility service. The default implementation of an accessibility services performs the defualt navigation. bug:5932640 bug:5605641 Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
/frameworks/base/core/java/android/widget/TextView.java
|
acb69bb909d098cea284df47d794c17171d84c91 |
|
14-Apr-2012 |
Dianne Hackborn <hackbod@google.com> |
Add direct support for HTML formatted text in ClipData etc. When using the clipboard, ACTION_SEND, etc., you can now supply HTML formatted text as one of the representations. This is exposed as a set of methods on ClipData for building items with HTML formatted text, and retrieving and coercing to HTML (and styled) text. In addtion, there is a new EXTRA_HTML_TEXT for interoperating with the old ACTION_SEND protocol. Change-Id: I8846520a480c8a5f829ec1e693aeebd425ac170d
/frameworks/base/core/java/android/widget/TextView.java
|
9da0f8a5c4bccf8e722ae2ebf43873457aec3271 |
|
14-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add View textAlignment - fix bug #6163772 - use bits field and pack them as much as possible - take care of "supportsRtl" flag from Manifest - add visual unit tests CTS unit tests in another CL Change-Id: Ib77c4eb423854209af130688c5ef9977401a9c1c
/frameworks/base/core/java/android/widget/TextView.java
|
db8c9a6a4d9bf8c39f834b25611926caf21380f6 |
|
22-Mar-2012 |
Chet Haase <chet@google.com> |
Optimization of alpha with DisplayList properties Some views (such as ImageView and TextView) handle non-opaque alpha values directly. This was originally an optimization, but we can handle it faster in many cases without this optimization when DisplayList properties are enabled. Basically, if a view has non-overlapping rendering, we set the alpha value directly on the renderer (the equivalent of setting it on the Paint object) and draw each primitive with that alpha value. Doing it this way avoids re-creating DisplayLists while getting the same speedup that onSetAlpha() used to get pre-DisplayList properties. Change-Id: I0f7827f075d3b35093a882d4adbb300a1063c288
/frameworks/base/core/java/android/widget/TextView.java
|
d88876a72f9ceebd2c93eb9ba1be4bcff971e754 |
|
17-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Extracted text editing logic in a separate class Editor specific method and fields are extracted to a dedicated Editor class. Some private fields and methods had to be made package private so that the Editor can see them. No change in the public API. Other changes in this CL: - The Blink class no longer has a WeakReference to the TextView - EasyEditSpanController is no longer a field of ChangeWatcher. Future work: remove the getEditor() method in TextView and clean whitespaces and indentation. remove the EasyEditSpanController as a change watcher, fix spanWatcher Change-Id: I1fbe0176b6bd27d90f556dc3a90469367f77437c
/frameworks/base/core/java/android/widget/TextView.java
|
59075643acedd38e324746083e2c59f69c0b9e56 |
|
28-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Handle non DynamicLayout in Editable draw method."
|
0711047af71a31568f7a49f078e9f46ef5af84aa |
|
28-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Handle non DynamicLayout in Editable draw method. An Editable text will use a BoringLayout when the text is empty. Fallback on the regular layout draw text method when the layout does not support the block optimisation. Change-Id: Ie4bdb4381f2f58b71d7c35b2f5734e544e3115ea
/frameworks/base/core/java/android/widget/TextView.java
|
4cb85f6ad6f6ff4428aa2c5179b6d62741be7aa9 |
|
28-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Moving focus on text should not create an Editor Bug 6241159. onCreateInputConnection should not create an Editor but instead should return an input connection iff the text is editable. Change-Id: Ie9ea55b2467f5a40e6243b36f9b44fa6dfab586f
/frameworks/base/core/java/android/widget/TextView.java
|
b85967b9af76e1e60f7a96603e2567a6449d2e04 |
|
26-Mar-2012 |
Chet Haase <chet@google.com> |
Re-enabling DisplayList properties Several issues came up after DisplayList properties were enabled, so they were disabled pending fixes. Those issues have been fixed, so DisplayList properties are once again being enabled by default. This CL both re-enables these properties (in View.java and DisplayListRenderer.h) and fixes the various issues that enabling them caused the first time around. Related issues (all currently marked as Fixed, though that was simply because DL properties were disabled - this CL provides the real fixes now that DL properties are enabled by default): Issue #6198276 Text input broken Issue #6198472 Native crash at pc 00076428 in many different apps in JRM80 Issue #6204173 Date/time picker isn't rendering all parts of UI Issue #6203941 All Apps overscroll effect is rendered weirdly/has flickering Issue #6200058 CAB rendering issue - not drawing items? Issue #6198578 Front camera shows black screen after taking picture. Issue #6232010 Layers not recreated when children change (DisplayList properties) Change-Id: I8b5f9ec342208ecb20d3e6a60d26cf7c6112ec8b
/frameworks/base/core/java/android/widget/TextView.java
|
91889e2c86d863f74feee6de3cda739646483938 |
|
27-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Update to TextView#didTouchFocusSelect documentation"
|
820ba323f9919d33aac5e999bd8daa7842d3969c |
|
23-Mar-2012 |
Daniel Sandler <dsandler@android.com> |
Add remotable methods for TextView's compound drawables. Change-Id: I67445e5b1d4a571020dfcd551ab00bd83a8eb536
/frameworks/base/core/java/android/widget/TextView.java
|
a4a26053ea91a90c824ef98f17552c34bd89207e |
|
20-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Disabled display lists in TextView Bug 6198276, bug 6193544, bug 6199959 The activation of display list properties on Monday 19th broke the editable text behovior. Disabling display lists to fix the blocking rendering issues. Change-Id: I5bd0584d1a34c6bb0af79ef45499154e9004eac1
/frameworks/base/core/java/android/widget/TextView.java
|
053c439824fcf95d613aaca8d9b60aa77c9e8132 |
|
15-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Update to TextView#didTouchFocusSelect documentation Bug 6171333 Related to https://android-git.corp.google.com/g/#/c/173335/ Change-Id: Ib4a83b6b0a03579b28d7319c9eb92a4bca09d209
/frameworks/base/core/java/android/widget/TextView.java
|
33b7de85b6918b7714641f12f1ba2ff03a344740 |
|
12-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Multiple display lists for editable text Bug 5763685 Long text in a ScrollView (not when the View's internal scroll is used) is cached as a unique display list when hardware rendering is on. As a result, each time the text is edited, the entire display list has to be updated, which takes a significant amount of time (up to 500ms for a few thousand lines), proportional to the size of the text. This CL splits the text into multiple display lists as the text is edited. The boundaries of the display list are aligned with paragraphs. There is still an issue when the number of lines changes: onLayout() is called which invalidates all the display list. When the source of that change is line wrapping and not a change in the view's dimensions, we should be able to simply shift down the previous DL instead of re-creating everything. Change-Id: I7de49a1e5637cdfc9ef06b64b1ec4b61d9ea2415
/frameworks/base/core/java/android/widget/TextView.java
|
a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3 |
|
21-Feb-2012 |
Chet Haase <chet@google.com> |
Handle view properties at the native level Basic functionality of handling View properties (transforms, left/right/top/bottom, and alpha) at the native DisplayList level. This logic is disabled for now (via compile-time flags in View.java and DisplayListRenderer.h) as we continue work on it (there is no advantage to the new approach until we optimize invalidation and rendering paths to use the new code path). Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3
/frameworks/base/core/java/android/widget/TextView.java
|
d122d8eb3e92b47eb18aea1fc619cfd04e07b14b |
|
10-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Re-use the display list valid flag, save a boolean"
|
73ba0df14fedefe144808a2a43308811567875be |
|
10-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Make Drawable RTL APIs public"
|
06e1ec6462763a2f12ba5fb1c1c826bf393bfacd |
|
10-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make Drawable RTL APIs public - also optimize imports Change-Id: I2649a539a5784293d09179981a5d57e900219246
/frameworks/base/core/java/android/widget/TextView.java
|
583fcb9175cd0c614f096db633d9e784ab7e1f54 |
|
09-Mar-2012 |
Romain Guy <romainguy@google.com> |
Merge "Dispatch screen state change events to Views Bug #6120957"
|
bb9908b828a8cfd5965553be66faa6af89973697 |
|
08-Mar-2012 |
Romain Guy <romainguy@google.com> |
Dispatch screen state change events to Views Bug #6120957 Using this new callback, views can interrupt and resume their animations or other periodic tasks based on the current state of the display. Change-Id: I398f4abd421e9c5f207107bf1009a7b92cf45daa
/frameworks/base/core/java/android/widget/TextView.java
|
bf923ebb250a112266bd9bcae106cb84f42b6f15 |
|
08-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
More fixes about padding - take care of overridig setPaddingRelative() too in TextView subclasses Change-Id: If2057247cfcac919d777846def4adfeb5a682d51
/frameworks/base/core/java/android/widget/TextView.java
|
0c245fb201aa28776586dc1ce4fc4fc281f894a7 |
|
08-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Make more TextView RTL APIs public"
|
d159109bd88e290ffacce30aaff42b0a0c790709 |
|
08-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make more TextView RTL APIs public - padding related APIs - drawable related APIs Change-Id: If926ba1658431f826153128553f1ff429275f948
/frameworks/base/core/java/android/widget/TextView.java
|
28ab0b5d0a15f9257fc08f9062b2b3884d1d125b |
|
07-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Re-use the display list valid flag, save a boolean Change-Id: I991e7fb224b0725a0f2ae02f04456bd192582ca6
/frameworks/base/core/java/android/widget/TextView.java
|
faeac2737de098269a69011f4980a412559b55a9 |
|
06-Mar-2012 |
Jeff Brown <jeffbrown@google.com> |
Merge "Change widgets to post invalidate to the animation timer."
|
6cb7b46c56449e84434b11eb12f9b8977fcd0398 |
|
05-Mar-2012 |
Jeff Brown <jeffbrown@google.com> |
Change widgets to post invalidate to the animation timer. Change-Id: I8377e924529fb9d8afd8a834003a17de616e8e87
/frameworks/base/core/java/android/widget/TextView.java
|
6c488de023a4797069673dc619c1a4096079ea9e |
|
02-Mar-2012 |
Gilles Debunne <debunne@google.com> |
EditText caches only text in its internal display list. Decorelate background and text in layout display. This allows to only store the text in the editable TextView's display list. Selection and cursor changes no longer need to invalidate the display list, leading to faster rendering. Change-Id: I3af3a98846e1bfe2d9ec6c42590e71bf3704595e
/frameworks/base/core/java/android/widget/TextView.java
|
dd3ef2c573396271c7c3b71e30fbd10cf66d3bc0 |
|
02-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Improve RTL APIs - follow changed / reset pattern Change-Id: I1c5e9b39196029bd78add2ab13b984da124822ca
/frameworks/base/core/java/android/widget/TextView.java
|
161d9cf9547757e543783bc8d1cc173e1cb0215b |
|
01-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Invalidate text display list on scroll"
|
fe35a46f56b8d512f2af8d84e381dda52dbaea20 |
|
01-Mar-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5616520 When the device is set to Arabic, and the email application is launched, the guided text is not displayed"
|
b863419b751e994d78f466374d1eb3d60eba1ef6 |
|
29-Nov-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5616520 When the device is set to Arabic, and the email application is launched, the guided text is not displayed - do correct scrolling when hint is shown Change-Id: If17a1ffbd4d83bfa601e5ee97d3e73932eb4143c
/frameworks/base/core/java/android/widget/TextView.java
|
6382ade0c7e26c88c4a17f7ee7124ed92b0b8bcc |
|
01-Mar-2012 |
Gilles Debunne <debunne@google.com> |
Invalidate text display list on scroll This is a problem only when using TextView's internal scroll. Since there was no bug report about this obvious problem, it looks like most EditText are single ine or located inside of a ScrollView. Change-Id: I699ad0078c9df64c70d10c64f0293b404485e05f
/frameworks/base/core/java/android/widget/TextView.java
|
f17981b33b0359136c0b88a92311a3140be2ba71 |
|
29-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Vibrate on long press, even out of text"
|
3e804a615dda96cc9f79474b01e301d4f3f63c0b |
|
29-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Removed TextAlign in TextView"
|
9f102ca592e5bca91140c72e0962277d8731f977 |
|
28-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Vibrate on long press, even out of text Bug 6073057 Change-Id: I53441f365419aa1ae4d51e03efff46697059d38a
/frameworks/base/core/java/android/widget/TextView.java
|
528e6dda428f388b7fca4c76696046c0f202f929 |
|
28-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Selection highlight made possible with no editor"
|
0ca95700b170997abd03645e751f9679139fec24 |
|
28-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Fix for NPE on long press to start a selection on text."
|
e7769bc76d01e9b031f65a58129b3e358ebabd3f |
|
28-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Fix for NPE when dragging on TextView Bug 6076166 Change-Id: I52b1e2edc451f0601b71af50e6056dcbe69add43
/frameworks/base/core/java/android/widget/TextView.java
|
7e07adbcd3bc7e7bb4b32b620a8f96ee97fd4aae |
|
28-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Fix for NPE on long press to start a selection on text. Bug 6075849 Change-Id: Ie07bd2adfecc0820995b9c8a75cd4de6dd9891e1
/frameworks/base/core/java/android/widget/TextView.java
|
83051b8c75a145a12eca1a021ff1a4fbcc77ba4b |
|
25-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Selection highlight made possible with no editor Bug 6065081 Selecting text programatically is possible (like when a link is highlighted by LinkMovementMethod) even when the text is not editable. Also removed the textCanBeSelected text is highlight computation which prevented links from being highlighted (legacy problem, not reported). Now that they work, we can see that the highlight is not removed when the text loses focus. Will be addressed in a different CL. Change-Id: I673f435966686234b4c0b0a97bcc65abd01169ff
/frameworks/base/core/java/android/widget/TextView.java
|
5cd164c5cf58047cda39b05a2c4f3cbab2d10078 |
|
25-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Fix NPE on Activity start in TextView"
|
c1e79b45a2fa49cd31eed7437942ba9796495164 |
|
25-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Fix NPE on Activity start in TextView Bug 6065279 The selection can be created programatically, and mEditor may be null when it happens. Make sure mEditor is created to display the selection highlight. Change-Id: Idd66a5fd4ad327f9b390b539574e6878c794ba4a
/frameworks/base/core/java/android/widget/TextView.java
|
9f809c2fd186c7cdb5ed52af4240189298c80ef7 |
|
25-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Fix crash on long press in TextView"
|
f14634e4917dc86a9dfd05cd0d76b530a2d4f392 |
|
25-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Fix crash on long press in TextView Bug 6058792 Glitch in mEditor handling Change-Id: I9b68796d5038c20d190ba5fbdaff1608b36aaee6
/frameworks/base/core/java/android/widget/TextView.java
|
b98a81f86ab87f1d718f329f03256111fdabd8d1 |
|
24-Feb-2012 |
Adam Powell <adamp@google.com> |
Add support for optional titles in action modes Optional titles will only be displayed in the CAB if they entirely fit instead of ellipsizing. Fixes bug 5821883 Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
/frameworks/base/core/java/android/widget/TextView.java
|
5ca6f9e56fa7256f355f1881e19e7ec5c805a693 |
|
22-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "EditText-specific data extracted from TextView"
|
978a8ff842d400249b1e0de4217913fb972cb2db |
|
22-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Removed TextAlign in TextView This value is not assigned anymore. Change-Id: Ic86a38acb870994ebe77a817b61aa618813e3788
/frameworks/base/core/java/android/widget/TextView.java
|
60e2186c354c30b2f75ed0ef1ba75181bd32afda |
|
31-Jan-2012 |
Gilles Debunne <debunne@google.com> |
EditText-specific data extracted from TextView All edit-specific data has been moved to an EditData inner class in TextView. The instance of this class is created as soon as one of its fields is set to a non-default value. Regular TextViews (buttons, checkboxes...) should never have to instantiate the Editor, thus reducing their memory footprint. Note: this is a debug version. The getEditor() method is here to track possible problems and should be removed in the final version. Indentation will be fixed then. Next step is to extract more methods and classes into Editor and create a dedicated class for it. mMovement may also be Editor specific. Change-Id: Ic241953a2fb73213180f300c3609a9e6799aa884
/frameworks/base/core/java/android/widget/TextView.java
|
36a5822484860d8a66639f1d01387c7b545ffad9 |
|
22-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Added bottom padding in textview's focused rectangle"
|
322044abe4affc29999398663007c57f664bc4fa |
|
22-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Added bottom padding in textview's focused rectangle Bug 6017386 Focused rect in used in ViewRoot when a new view takes focus. TextView bringPointIntoView defines an other rectangle as text is typed. Make sure the latter is included in the former to avoid the jump when one starts typing text. Change-Id: I0177adc046c77a5fd9c1423c0069d5b9798dc0b9
/frameworks/base/core/java/android/widget/TextView.java
|
6917e6550d2dc11ad3b794be08cc9caa53970d32 |
|
18-Feb-2012 |
Romain Guy <romainguy@google.com> |
Merge "Record possible clip rejects when recording display lists"
|
33f6beb10f98e8ba96250e284876d607055d278d |
|
17-Feb-2012 |
Romain Guy <romainguy@google.com> |
Record possible clip rejects when recording display lists This optimization allows us to quickly skip operations that lie entirely outside of the known bounds of a display list. Because of ViewGroup.setClipChildren, we must keep the operations recorded in the display list. setClipChildren(false) is however a very uncommon operation and we will therefore often benefit from this new optimization. Change-Id: I0942c864e55298e6dccd9977d15adefbce3ba3ad
/frameworks/base/core/java/android/widget/TextView.java
|
50eb3b9bf9bf0b014ad19066951b6c1dffd4e3f3 |
|
17-Feb-2012 |
Jeff Brown <jeffbrown@google.com> |
Merge "Encapsulate the ViewRootImpl's handler."
|
6d3d5057b445069e73fd06adbc11fa412e7c48c3 |
|
16-Feb-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Improve textDirection APIs Change-Id: I8bff30f5adb0ab4077145d83ac4a716e04f289ac
/frameworks/base/core/java/android/widget/TextView.java
|
a175a5b7ea3682cb58cca7f9726d0b8171cd549d |
|
16-Feb-2012 |
Jeff Brown <jeffbrown@google.com> |
Encapsulate the ViewRootImpl's handler. This change makes it much easier to make sense of the messages that get posted to the ViewRootImpl's handler by encapsulating their point of dispatch within the ViewRootImpl itself. As part of this change, the View.AttachInfo now carries a reference to the ViewRootImpl itself, which simplifies some code that used to try to find the ViewRootImpl by getting the root view's parent. In principle, it might have been nice to hide the ViewRootImpl from the View hierarchy but in practice the two were coupled in many ways. Change-Id: I51ebccdf5f8c8c505cd6f17cdf594174d041dc54
/frameworks/base/core/java/android/widget/TextView.java
|
5e78d9bea5bddbf200b4349d445c7d6cc4383e20 |
|
15-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Invalidate display list on alpha change Bug 5945886 Change-Id: Ibab3ad2c9e526c038672699b571de154dfc8d17c
/frameworks/base/core/java/android/widget/TextView.java
|
626c3169755bdc51bf544b5625ea7704386ff7e3 |
|
15-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Display list invalidated on hint text change Bug 5993119 Change-Id: I750e73cb5c26e2aaa2a88a80cf35c4d471c30403
/frameworks/base/core/java/android/widget/TextView.java
|
c067717c1e4e25c511c3712e213c6f0ce2451d57 |
|
08-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Invalidate text display list when text properties change."
|
132bda1cffcb28aab9b84f58dab9955257733ffc |
|
08-Feb-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5979311 Change TextView to not clip top/bottom text Change-Id: I40a2ef40e540f20a9f626ab2e4e6e39fd062c9fe
/frameworks/base/core/java/android/widget/TextView.java
|
2e85274d26c52f8df517e7e327eb78340c8c552f |
|
08-Feb-2012 |
Gilles Debunne <debunne@google.com> |
Invalidate text display list when text properties change. Bug 5887530, Bug 5945886, Bug 5904371 Added more invalidation when other properties of the text are changed. Change-Id: I618dbaae9da64bf72dd29e444215b7de1c644573
/frameworks/base/core/java/android/widget/TextView.java
|
1e56fff3b90946b342ddabf68648dc3551ce47db |
|
31-Jan-2012 |
Romain Guy <romainguy@google.com> |
Merge "Add debug markers to OpenGLRenderer"
|
13631f3da855f200a151e7837ed9f6b079622b58 |
|
31-Jan-2012 |
Romain Guy <romainguy@google.com> |
Add debug markers to OpenGLRenderer These markers will be used to group the GL commands by View in the OpenGL ES debugging tool. This will help correlate individual GL calls to higher level components like Views. Change-Id: I73607ba2e7224a80ac32527968261ee008f049c6
/frameworks/base/core/java/android/widget/TextView.java
|
e62beb5c20c18beec5bee5ff0a9d84067949c36d |
|
31-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Removed SoftInputShownOnFocus methods in TextView Not used by Phone, for which it was initially created. Change-Id: I0cad668f894e88cda0a410005aaf6b6c0b89dc3e
/frameworks/base/core/java/android/widget/TextView.java
|
2e37d6292658e5f481e7173f98e95fee28986c49 |
|
27-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Remove onPreDrawListeners earlier in TextView Bug 5556478 Launcher pre-populates its all apps and widget pages with their content, which includes text. The layout calls some onMeasure methods that trigger TextView's registerForPreDraw(), which in turns adds a listener in the ViewTreeObserver. However, some of these pages may never be actually displayed, leaving the listeners in the list since onDraw() is never called. As a result, every frame displayed by launcher is slowned down by this array copy of 6-18 listeners. The problem is not Launcher specific since other applications may use a similar caching mechanism. The solution is to unsubscribe the listener in onPreDraw. The drawback is that several successive calls to registerForPreDraw() will add/remove the some listener object. However, these calls are rare and are relatively cheap since we're just adding the object in and out of an ArrayList which should not need to change its size. Change-Id: Ifb65655a27e302d31a2ad622d18f839aec99689e
/frameworks/base/core/java/android/widget/TextView.java
|
566e8baf43a08b1000b8c4c24fb14fe94e46394d |
|
27-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Fix for IOOB when suggestions have disappeared"
|
ea1181220deaf1820fb5cc13247d5e976b5543d4 |
|
27-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Handle tap and move cursor before showing suggestions"
|
e93c51713c440d572913292926c6e606edd6c64d |
|
26-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Modified algorithm to remove duplicated suggestions"
|
7af1f9669b98020f83aa5278bb173550053b53d3 |
|
26-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Fix for IOOB when suggestions have disappeared This new test is required since the suggestion popup is now triggered by a Runnable. We have to make sure there is still at least one SuggestionSpan at that position. Change-Id: I5c84ba0ca412f51a0201bee5c2e63b5bd3717338
/frameworks/base/core/java/android/widget/TextView.java
|
868121f29601657baeecff541ef6096257fa082c |
|
26-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Handle tap and move cursor before showing suggestions Otherwise the suggestions do not correspond to the tapped location. Change-Id: Id0bd87931e73513ca7e50c6212a17b0fc7d6179d
/frameworks/base/core/java/android/widget/TextView.java
|
6e0b22bea91398403ea500360b02ff2fc7a03d00 |
|
25-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Modified algorithm to remove duplicated suggestions Bug 5916225 Duplicates were removed when received from SpellChecker, in a way that could move the top candidates lower in the list. Moved that code to the part that creates the actual suggestion list, to make it more generic. The order of the first SuggestionSpan is guaranteed to be respected. Also mentionned non null suggestions and fixed a problem in SuggestionSpan constructor. Change-Id: Iaa3b1b84ae512451e439e5c5e63448c2a19145b5
/frameworks/base/core/java/android/widget/TextView.java
|
954325ed26e3d04fcff45e971d12c8657565b6b2 |
|
25-Jan-2012 |
Gilles Debunne <debunne@google.com> |
TextView's display list updated on layout Bug 5903021 We need to invalidate the DL at anytime the layout is changed. Change-Id: Ief06c988b88cdf1b35fe8ce9bac1243326ea44c4
/frameworks/base/core/java/android/widget/TextView.java
|
a54b9641cd832a4bbe6a3e8d0e4cb77449c92a76 |
|
24-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Restored selectAllOnFocus"
|
4bb2833fa62d57d62a78d662bf937b19dde31ba7 |
|
24-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Restored selectAllOnFocus Bug introduced in recent refactoring https://android-git.corp.google.com/g/#/c/158896/ Do not move cursor when selectAllOnFocus and focus just happened. The didTouchFocusSelect() condition was not copied over from ArrowKeyMM. Change-Id: Id01d225c436ae3dd97c5d77d5dac5d0690d7de76
/frameworks/base/core/java/android/widget/TextView.java
|
822b8f0cfae35958ee8d7e6e7cdd021f86c22879 |
|
18-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Double tap to select enabled on suggestions Using a runnable to schedule the action, interrupted by any other touch event, enabling a catch of a double tap to trigger text selection instead. Change-Id: I21f8b9fdfad0036d6970f5dbfe6d72dd3eff35a1
/frameworks/base/core/java/android/widget/TextView.java
|
2f9510ca50b0fd2925bc7e349f76136ed403a386 |
|
20-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Touch moves cursor in text refactored"
|
92db51938f6dac6227ab362e851858bc848efd9e |
|
20-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Make sure text selection always starts When text can indeed be selected, we should always initiate a text selection on long press. When the WordIterator fails (for instance if the text is entirely made of punctuation characters, maybe also with foreign languages), we select one character. Change-Id: I842507f7cbaed9a924d3176ea8ed6586f3548366
/frameworks/base/core/java/android/widget/TextView.java
|
004b02d62605c172c3c9a332a22356cd4edf3598 |
|
18-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Touch moves cursor in text refactored Code was moved back from the movement method to the touch event code in TextView. Change-Id: I7dc0d957554ddce08e810d20e0385f98802ef1a4
/frameworks/base/core/java/android/widget/TextView.java
|
b3ca0fe66c1def11a04b18e6872318deb0340b9b |
|
19-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Touch slop added to double tap detection"
|
bdf7f9658044d4c55c4826a88a41822045557ee5 |
|
19-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Merge "Fixes around extract mode"
|
c171402318c1d71df961221f4ed1660fbedd08cc |
|
17-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Touch slop added to double tap detection Similar to what is done in GestureDetector Removed all gesture constants. Only one one them is used on MOVE (added an early exit test), the 2 others on UP or DOWN where performance is not such an issue. Change-Id: Icd58ead5078f94f86786f934ddf81aa5ec9bf549
/frameworks/base/core/java/android/widget/TextView.java
|
0764dee89cc82dd53196cce2865d3cabafed208f |
|
18-Jan-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes."
|
8a78fd4d9572dff95432fcc4ba0e87563415b728 |
|
17-Jan-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes. AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source Java class. This is problematic since leads to leaking private classes which would allow an accessibility service to load classes from other packages. This is strongly undesirable since not trusted code can be loaded, and hence executed, in the accessibility service. To address that the class name is set to the most concrete framework class extended by the info/event source. bug:5878943 Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
/frameworks/base/core/java/android/widget/TextView.java
|
14568c3f76cc4d3ad75dfd0206a3dc2130135c58 |
|
14-Jan-2012 |
Gilles Debunne <debunne@google.com> |
Fixes around extract mode Stop selection mode after Edit/Copy while in extracted mode. The selection mode was started by a long press in the ExtractedEditText. Selection Copy in the menu simply sends the id to the context menu. SelectionMode is not stopped in the underlying text since it was not started there. Stop it directly in the ExtractedEditText. Cut and paste do stop the mode because the text is modified. Change-Id: Id7dbfa99de404c4eb85ced9627c99af4895ac628
/frameworks/base/core/java/android/widget/TextView.java
|
b35ab7b72967adcfd01cec483a705dafe8b951d1 |
|
06-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Sub display list in TextView TextView uses a sub-display list to 'cache' the rendering of its text. This saves time when drawing an editable text, where the blinking cursor forces a re-draw twice per second, which creates pauses during scrolling. Added a sub-display list invalidation when an appearance span is modified/added/removed. Also added an invalidation of the display list when selection range is changed. Change-Id: I41e8068a12902b8a745c5bb77de8c77def76a270
/frameworks/base/core/java/android/widget/TextView.java
|
4c1e00a8c29e532a5b0fce755bead691797eff94 |
|
06-Jan-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add textDirection="locale" - also fix and update unit tests - see bug #5242821 Change-Id: I29e029bab8ade336a430f9a2a5073caaf11b8dda
/frameworks/base/core/java/android/widget/TextView.java
|
cd76a4da3e95ae213b6a25418f43ff57d905ce2e |
|
20-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Rationalize blinking cursor test."
|
545c4d44389f189f7dda68f8e0f54d3b90ad98a6 |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Rationalize blinking cursor test. Moved full test into shouldBlink() to make the condition consistent. Change-Id: Id8abf38e180e1a00eb132476f102361f0feb56da
/frameworks/base/core/java/android/widget/TextView.java
|
6e87ecbb1db883aa60aeb37b059f066974220d2b |
|
14-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am 2450b36a: am 19636dc4: Merge "Do not spell check the foreground ExtractEditText." into ics-mr1 * commit '2450b36a3696bc5afdf2a0f2af8b2008efb8a7b0': Do not spell check the foreground ExtractEditText.
|
770f0fa92e0745c523be466e3520d22f51e28bb1 |
|
13-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Do not spell check the foreground ExtractEditText. Bug 5755099 In extracted text mode, we spell check the background and the foreground edit text. All changes in the background are already propagated to the foreground, and updates on the foreground may trigger a spell check of the entire text since we use setText. Change-Id: Ie44c3d9113258082ac6df5890851d0e21c702ea2
/frameworks/base/core/java/android/widget/TextView.java
|
249d1e827a7ffe2a034130d05e18c7b521b0de9b |
|
13-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Re-synced MR1 and master for SpellChecker Some auto-merges got lost, re-syncing master with the latest and greatest from MR1. Change-Id: Ifc0b5d1fd2e11e68d219c3f491f37d4c047579a0
/frameworks/base/core/java/android/widget/TextView.java
|
a4b1b8ab3c240efe82d1018a54277f16dc03a8fa |
|
13-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am 7ffadba5: am 1fb90497: Merge "Text blinking cursor hard to see." into ics-mr1 * commit '7ffadba5dfbeeaa93a9559ca3eaf1a7719426a5f': Text blinking cursor hard to see.
|
961ebb9ab0a6d45b06a74aa90894f7fda3d528c6 |
|
12-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Text blinking cursor hard to see. Bug 5738416 This problem was introduced in https://android-git.corp.google.com/g/#/c/152599 The invalidated cursor region is no longer expanded to include the cursor drawable (different from the handles' drawables). Added that code back. Added a flag, since invalidateRegion is also used to invalidate text span regions in spell check (assumes the decorated span bounds are not bigger that text boundaries), which is fine in case of underline. When the cursor is moved on a single line, invalidate the whole line (same as what was done before). This is sub-optimal, will file a bug to fix this. The core problem is that we should invalidate the previous and the new cursor's positions. We only have one of these. Change-Id: I9ada9340fb52aad3d80c39efd021fd3f9ec0cc4d
/frameworks/base/core/java/android/widget/TextView.java
|
481c0a260420a921cdca55130d8d9685d17cf527 |
|
12-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am afa0a714: am df372289: Merge "Fixed SpellCheckerSessions leak in TextView" into ics-mr1 * commit 'afa0a714acb45e90bdda3fd72b529a817a25f2d1': Fixed SpellCheckerSessions leak in TextView
|
70511ade47f75160bdfbf0693145a4b827294136 |
|
10-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am b25d417f: am aa4a5713: Merge "Make the Next key navigate between TextViews" into ics-mr1 * commit 'b25d417fce0e0467187ac187a4dabae75d5dc83d': Make the Next key navigate between TextViews
|
683a485fbcf72caad42f9fd030255f1083ce5637 |
|
09-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am aee940df: am a5a98a03: Merge "IOOB is Suggestions" into ics-mr1 * commit 'aee940df55b5d1f769f56ff8a6dd645253b7f8e5': IOOB is Suggestions
|
17994a1d04e3e5e986f3758f996381ab759c3832 |
|
09-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Blinking cursor in Talk I verified that this fixes the unblinking cursor problem in Talk. Change-Id: I5e3e5c8ad5cf3d8479462495107bf93e5e4fb956
/frameworks/base/core/java/android/widget/TextView.java
|
df3722895172e03c81787f62d922daabaad3e20b |
|
09-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fixed SpellCheckerSessions leak in TextView" into ics-mr1
|
06a8e9b1ce63f1e0842c877133b2562a6b638123 |
|
08-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Make the Next key navigate between TextViews Bug 5718127 Fixes from changes introduced in https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=commit;h=0500b3cfda5192efc09d6d4344b0c6c785c0a815 Change-Id: I4f6d213cd744b913b053275c4a26194cd030de84
/frameworks/base/core/java/android/widget/TextView.java
|
a5a98a034b4d52c6bbc75e72f74f1a6ea1c61ed5 |
|
08-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "IOOB is Suggestions" into ics-mr1
|
b69c8cab56cffb4799e6701e3a52da9242b0569d |
|
08-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am 0235016a: am 2df13452: Merge "Insert into user dict with the correct locale" into ics-mr1 * commit '0235016acb241556f24689e3d818db6973b5ad4f': Insert into user dict with the correct locale
|
c115fa041c02f68d1987e2c9cae263c9a31f370b |
|
07-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Fixed SpellCheckerSessions leak in TextView Bug 5709546 Change 1a22db29 created a potential leak: setText calls sendOnTextChange that now calls updateSpellCheckSpans. The original call to updateSpellCheckSpans made sure the View had been attached to a window, through the existence of the SpellChecker object. The mSpellChecker object will now only be created when the View is attached, all other spell related method will do nothing if it has not been initialized. Change-Id: I8885c12be6395e2346c0ed057bb6a275256f012b
/frameworks/base/core/java/android/widget/TextView.java
|
5fa6737cac2bf246becb802982980372a4d6160b |
|
07-Dec-2011 |
Jean Chalard <jchalard@google.com> |
Insert into user dict with the correct locale This fixes a bug where a word would be entered in the user dictionary with the wrong locale. Bug: 5667272 Change-Id: I219d5461f8f8c74b6ab34f9bb157a4b977f00e68
/frameworks/base/core/java/android/widget/TextView.java
|
f9bb1cd1fcff7079445dae494ce5d56276092c11 |
|
07-Dec-2011 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of fb729202 to master Change-Id: Ic571594b14f2822094d5c1aa4c4b1e9da4a2eae0
|
e300be9c29b7915450ddb62f2957d312b52cfa32 |
|
06-Dec-2011 |
Gilles Debunne <debunne@google.com> |
IOOB is Suggestions Bug 5555929 This problem only happens when in landscape extracted text mode. A suggestion pick from the popup window replaces the text in the ExtractedText, when it should do it in the underlying source EditText instead. When the replacement text is longer than the replaced text and is at the end of the text, an IOOB occurs because the ExtractedText was not modified (we now correctly change the source text using replaceText_internal). This is basically an implementation of the TODO comment next to setSpan in TextView. Change-Id: I6575137530e0bb5c9ac7e40cc2bba9c66dc254d2
/frameworks/base/core/java/android/widget/TextView.java
|
98a85c2de6b3f27ba1ccb2cfd44a775b4f490f72 |
|
06-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Invalidated bounds tightened in TextView" into ics-mr1
|
0715f12605933f1587012705d0cd0c1a34fe11da |
|
02-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am b4812f8a: am 335c4e6c: Broken build. New methods made private. * commit 'b4812f8a815a4c4a9896e73412f4011d7a30f03f': Broken build. New methods made private.
|
335c4e6cb2094c7cbd6039e0c7915702b69e7657 |
|
02-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Broken build. New methods made private. Change-Id: Ia123ab4ddb1fe93bcd053c3ea5bf6b87c7204640
/frameworks/base/core/java/android/widget/TextView.java
|
2101c57552ad5e184e718683a7774d82f1ce01d4 |
|
02-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am a8205d24: am 09cbff02: Merge "Better handles\' visibility test" into ics-mr1 * commit 'a8205d24703fc353076cf30795b3a06a87208cfa': Better handles' visibility test
|
58d8953958ce452c5080eaa582d7e5d2b5017398 |
|
02-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Scroll performance improved in multiline TextEdit" into ics-mr1
|
09cbff0294a27d33c93de50e0b4471ad86154a84 |
|
02-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Better handles' visibility test" into ics-mr1
|
6bb5fc577d326cfef5b7b15457ef145118e2e904 |
|
01-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am 4fec974c: am 0433c157: Merge "TextViews keep focus after Done" into ics-mr1 * commit '4fec974c2f75886516509699ccfc0100b029fe4d': TextViews keep focus after Done
|
ad79297a4118e73e7828f08545963e9795407df1 |
|
01-Dec-2011 |
Gilles Debunne <debunne@google.com> |
am d732efa2: am b2aa672f: Merge "Revert "IME action (done, next...) correctly handled"" into ics-mr1 * commit 'd732efa2972eaaa22ff921c39744ec969598bcd0': Revert "IME action (done, next...) correctly handled"
|
64901d4eb0f13b794d9c22ae58f16104b556f9b7 |
|
25-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Better handles' visibility test Checking if the hotspot position is visible instead of checking if it is part of the clipped visible rectangle. Bug 5638710 Patch set 2: synchronize static variables you will. Patch set 3: renaming and refactored the while loop. Patch set 4: synchronize you will (again) Patch set 5: parent Change-Id: I330510f491c85f910fc61598936113ad07d304e4
/frameworks/base/core/java/android/widget/TextView.java
|
647944897fecf2d14bf8140638be9141f4dc1432 |
|
01-Dec-2011 |
Gilles Debunne <debunne@google.com> |
TextViews keep focus after Done Otherwise the ViewRoot tries to focus something else and as a result it will scroll back to the top of a form with many fields, which is annoying. Change-Id: I1de10f76fe4b82bc4097fc13c629450d6f999fd0
/frameworks/base/core/java/android/widget/TextView.java
|
8bfcd133a2a326d3fddb87834fedb1cf18edc59f |
|
01-Dec-2011 |
Gilles Debunne <debunne@google.com> |
Revert "IME action (done, next...) correctly handled" This reverts commit efbad5fb90fe990d42bf30c63e42558bd9bdb5d8.
/frameworks/base/core/java/android/widget/TextView.java
|
8615ac9e049cdf4ab77b0897aca9bceec142c9fa |
|
30-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Invalidated bounds tightened in TextView New invalidateRegion method, with better horizontal invalidate bounds in case the region is on one line. Use by SpellChecker when a new SuggestionSpan is added. Change-Id: Ide11f1d3d2b1350032b475db0641018a49c08d13
/frameworks/base/core/java/android/widget/TextView.java
|
70b34a1e0525c8e13f431c2e6c9d37d1954de1b2 |
|
27-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Scroll performance improved in multiline TextEdit Measuring line widths, glyph by glyph slows down the scrolling process for long text (for some reason, width measure efficiency is affectedi by text length, maybe because the whole text has to be passed to JNI layers). This optimization avoids this computation in the case where there is no possible horizontal scroll. This is a cherry pick of 145957 into ICS-MR1 Change-Id: I2082e3d0eedace1a86122a03e4b21f90f3bc8522
/frameworks/base/core/java/android/widget/TextView.java
|
c273cd318d8bb45c22a914ba88d4cb4dd94a768e |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Restoring mLayout has private in TextView"
|
e29e4d2adef21aa54b2ae4bf225e3492bc3735c3 |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am 9d8d5297: am 10232fe6: Merge "Extracted text problems" into ics-mr1 * commit '9d8d529739b1b9790599364f57cffbe022d15ee2': Extracted text problems
|
6c9d4f3cd3c5185cda06f3bf83049dba81007bd1 |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am 0dca407e: am 7be31bd9: Merge "IOOB in text selection." into ics-mr1 * commit '0dca407eede3d85a0185718f4993c2b09d1cc658': IOOB in text selection.
|
10232fe63916d03d147d0a07f8bf4d70cb60941c |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Extracted text problems" into ics-mr1
|
7be31bd96a4cc71ebc2539573f062fa53cc7cb05 |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "IOOB in text selection." into ics-mr1
|
cdfab19bf761eb6faaae119ab13b5a9de855770c |
|
29-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Restoring mLayout has private in TextView Change-Id: If8c4385ec0b64fb2055f4561aeeb1c145294d679
/frameworks/base/core/java/android/widget/TextView.java
|
1a22db2927abf6860498ed4194947ba2d40d5ec7 |
|
20-Nov-2011 |
Gilles Debunne <debunne@google.com> |
IOOB in text selection. Several issues here: 1. when selection has been set to size 0 (should not be possible, but see 2.), moving any of the selection handles will create an IOOB because we add/substract 1 with no test. Added min/max. 2. the text change detection, which stop selection mode, was done in handleTextChanged. We need to go deeper. Some methods (such as setText()) directly call the more atomic sendOnTextChange(). Moved the test down to this method. As a result, pressing the 'x' button in the QuickSearchBox correctly stops selection mode (it used to leave an empty selection). This change may also solve some weird similar issues in extracted mode where it is sometimes possible to end up with a 0-length selection. It may also impact Bug 5555929 since spellCheckSpans will now be correctly updated on ANY text change. 3. the before != after test is flawed. When this method is called, the text has been changed and selection mode should be stopped even when the new text happens to have the same size. Change-Id: I869ef728662f4350f22ed6149dd42db193c333ed
/frameworks/base/core/java/android/widget/TextView.java
|
664d87ef01f7b4dbd7c96f23db73aba6cbc57481 |
|
17-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am b3272d29: am de8c5ec8: Merge "IME action (done, next...) correctly handled" into ics-mr1 * commit 'b3272d297bb45e5cd3201766baef4fef7921ce05': IME action (done, next...) correctly handled
|
de8c5ec88982b836b2c50d4f685f4e05b29bdd0d |
|
16-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "IME action (done, next...) correctly handled" into ics-mr1
|
efbad5fb90fe990d42bf30c63e42558bd9bdb5d8 |
|
16-Nov-2011 |
Gilles Debunne <debunne@google.com> |
IME action (done, next...) correctly handled Bugs 5599728 and 5319237. mInputContentType should be set for a "modern" cupcake environment says a comment in TextView. However, it is possible to call onEditorAction on a TextView that didn't use any of the method that lazily create that field. This is for instance achieved using the extracted mode in landscape (Done, Next actions) or in Contacts, that feature a Next/Done button in the IME. As a result, the action is ignored. The patch is to force the creation of the mInputContentType when the EditText is associated to the IME. Change-Id: I5beec5a52e9eec0c209af37d68791bb6ff83d6f6
/frameworks/base/core/java/android/widget/TextView.java
|
6ec455211b9959ed7ef37bd3e6655722d33d9fd9 |
|
15-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am 7bc6600e: am 8a440477: Merge "Clean-up in TextView" into ics-mr1 * commit '7bc6600e60688ea37ee7f18b82cb16677c0f5e74': Clean-up in TextView
|
8a440477fd203d74b73b32dc2b357f07dfc36067 |
|
15-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Clean-up in TextView" into ics-mr1
|
0f6ba9267ff4ef8f87aecdfc2bb8fb7e2ba2e42e |
|
12-Nov-2011 |
Jeff Brown <jeffbrown@google.com> |
Merge "Seems to break text views all over. Particularly noticeable is that the labels in launcher icons appear left-justified. Multi-line text fields also wrap after every character."
|
033a001a612c7349c35198561e095350182deb34 |
|
12-Nov-2011 |
Jeff Brown <jeffbrown@google.com> |
Seems to break text views all over. Particularly noticeable is that the labels in launcher icons appear left-justified. Multi-line text fields also wrap after every character. Revert "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)" This reverts commit caa8c06de5f94db69faca35d666c04b82d3f420b
/frameworks/base/core/java/android/widget/TextView.java
|
951aa9d8ea71082f4ae4c46c41616e79619401fd |
|
11-Nov-2011 |
Christopher Tate <ctate@google.com> |
am 9acae658: am 847fbbea: Merge "Localized optimizations in views and bitmaps" into ics-mr1 * commit '9acae658e179796beee91d673f9f70af49ae3c9b': Localized optimizations in views and bitmaps
|
1373a8eb581fe3c8e9a036e69042015f98a7e346 |
|
11-Nov-2011 |
Christopher Tate <ctate@google.com> |
Localized optimizations in views and bitmaps * Don't call context.getResources() redundantly when unnecessary; similarly for Resources.getCompatibilityInfo() * During bitmap creation, don't bother clearing to 0: it's unnecessary because now that the raw bits are stored in a VM-side byte array, it was cleared at initialization time. Also, don't use the sanity- checking public entry point to erase to a color, because we know that we're by definition in a "legal" path to erase to the initial contents and don't need to incur the overhead of the (inappropriate) sanity checking. Change-Id: Idaca4d64fdecefd5d51337646ead32e1db510e02
/frameworks/base/core/java/android/widget/TextView.java
|
9704a14eebda065c70f95e918b55ac0c302fc359 |
|
10-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am 2e97db49: am e5504ba1: Merge "Visual glitches when starting extracted text" into ics-mr1 * commit '2e97db4981e7773e84deee37c394748076b1aafd': Visual glitches when starting extracted text
|
c95b7412c2d4b6dca0fdee631bd777b6148ddf81 |
|
10-Nov-2011 |
satok <satok@google.com> |
am 3628dafe: am 34bd5969: Merge "Respect user settings for spell checking language if explicitly set" into ics-mr1 * commit '3628dafe22aeeb2fca09b49d82c8d7289baf68ad': Respect user settings for spell checking language if explicitly set
|
771d64b1e0bd92a78f07ab725091c5946984c890 |
|
10-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Clean-up in TextView Removed some variables that are no longer needed after the removal of context menu in TextView. Change-Id: I6d98bb356bd7b409a5230756849aef0f2896d4c5
/frameworks/base/core/java/android/widget/TextView.java
|
39ba6d9c4cf5a88d71edb800f3f48f85f61187c4 |
|
09-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Extracted text problems Bug 5557258: recent text editing changed in ExtractedText mode is broken. The modifications of the text performed by: - drag and drop - text suggestions, deletion - voice IME's delete button all change the ExtractEditText itself, while they should affect the underlying EditText (and the change will be forwarded to the ExtractEditText). As a results, changes are not actually modifying the underlying text. Created new protected methods in TextView, overloaded in ExtractTextView to affect the underlying text instead. Changes to spans should also be forwarded to the original TV (see the 2 TODOs), this is tracked in bug 5589158. Change-Id: Ibfec272469e8db191b3875e7576e32481a9dc1bd
/frameworks/base/core/java/android/widget/TextView.java
|
e5504ba1a279fc58eac74bda8d9c5c29cae235a9 |
|
10-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Visual glitches when starting extracted text" into ics-mr1
|
d4c3b8e106a7dd86a6c701c6e4475647c15acce5 |
|
10-Nov-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5544127 TextView regression in ICS when setting TextSize dynamically - nullify cached font metrics when we are nullifying the layouts as a result of changing text size Change-Id: I372e4fad336de4aac89e1344c3e8d34c4e914f2f
/frameworks/base/core/java/android/widget/TextView.java
|
05f24700613fb4dce95fb6d5f8fe460d7a30c128 |
|
02-Nov-2011 |
satok <satok@google.com> |
Respect user settings for spell checking language if explicitly set Bug: 5554116 Change-Id: I8c16d732af1fe713d30d97dfe829ff16653c7f34
/frameworks/base/core/java/android/widget/TextView.java
|
61ddbbae71f4a3be2e03cd6c040c5f722dbe2b51 |
|
09-Nov-2011 |
Gilles Debunne <debunne@google.com> |
Visual glitches when starting extracted text Partially addresses Bug 5547923 In landscape, tapping on the text 1. starts extracted text mode 2. displays the cursor handle or the selection popup window. As a result, some ghost effects and race conditions create an unpleasing visual experience. Fixed this by not doing 2. in case extracted mode will start. The drawback of this quicl fix is that the user will have to tap again to get the handle/suggestion. That can be fixed later if needed. Change-Id: I10e1d8399bb35e5b2cd5cba1295f7d29d051cae0
/frameworks/base/core/java/android/widget/TextView.java
|
5af447366d6dc5794cdcdd064bae72b66b9bc5c0 |
|
09-Nov-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)"
|
c4c13f970468286a19906a67a0dc81dbe4b81262 |
|
08-Nov-2011 |
Gilles Debunne <debunne@google.com> |
am 39896f52: Merge "No more context menu in TextView" into ics-mr1 * commit '39896f52a84947ffc2062a2584033ff749d90534': No more context menu in TextView
|
07194e57547bed05469b299b75ce948ab8edca40 |
|
02-Nov-2011 |
Gilles Debunne <debunne@google.com> |
No more context menu in TextView No longer needed now that all devices use the CAB for text selection. MR1 port of https://android-git.corp.google.com/g/#/c/147391/ Change-Id: Ibb4c93e37f6df43ad676265247a734634f886d8c
/frameworks/base/core/java/android/widget/TextView.java
|
cf3b31704ae7743ca85219bca9698adcf6fbc67a |
|
02-Nov-2011 |
Dianne Hackborn <hackbod@google.com> |
am ad41a94b: Merge "Some optimizations." into ics-mr1 * commit 'ad41a94b298f834e13632ee29b27cefd75f10012': Some optimizations.
|
0500b3cfda5192efc09d6d4344b0c6c785c0a815 |
|
01-Nov-2011 |
Dianne Hackborn <hackbod@google.com> |
Some optimizations. - Don't try to create a thumbnail bitmap on the client side. This wastes 64k, and isn't needed since we are doing screenshots. - Optimize View to put all of the callback pointers out of line. Added a couple new APIs so these don't need to be protected/public. - Lazily create ViewGroup's cache paint. - Change FrameworkPerf app to not use HW accel drawing, to give better comparison with GB. Change-Id: Iec56d02459820d74a4cc9c7ec9c1856563c82c7b
/frameworks/base/core/java/android/widget/TextView.java
|
e9b82808d412fa1b87954dd88579b92d0b4ab0e2 |
|
27-Oct-2011 |
Gilles Debunne <debunne@google.com> |
No threading issues in SpellChecker. SpellChecker is exclusively called from the main UI thread and there are no concurrency issues. As a result, the TextView's wordIterator can safely be re-used in the parse() method. Also reset the pool of SpellParsers on language change. Change-Id: I1cc8a2750f21233754f006e40a81622730030ec8
/frameworks/base/core/java/android/widget/TextView.java
|
4e13ebed6b900ab7e977ec7bfd385b35b300a67c |
|
29-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge changes I2082e3d0,Ibf8e9827 * changes: Scroll performance improved in multiline TextEdit Performance improvements for long text edition.
|
f818511ddad0a212ede089e5aaa7e27794a369d8 |
|
26-Oct-2011 |
Mark Wagner <mxw@google.com> |
bugfix 5513340 Insertion pointer (vertical beam) behaves oddly in Talk's message composition field Seems like we should be calling makeBlink from setEnabled Change-Id: I5b0433ba438a693f53d29e8ff7d4d853acc96bba
/frameworks/base/core/java/android/widget/TextView.java
|
a068e2f1d9532e6f005a162adfa295c553873ca5 |
|
28-Oct-2011 |
Gilles Debunne <debunne@google.com> |
am 4eec98ed: Merge "Text handles do not handle scroll correctly" into ics-mr0 * commit '4eec98edee3d6eb516e30a7151da13fd726f93a9': Text handles do not handle scroll correctly
|
93347c24a77489d614332b8dfa98a3a50092590c |
|
21-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Text handles do not handle scroll correctly A recent patch taking scroll into account was applied at the wrong level. isVisible() expects positions that already take scroll into account. isOffsetVisible() is where the initial bug was. Cherry pick of 144415 from master. Change-Id: I06ceebfb3d7b24aa4adba886c24fcf9d8dd39d2e
/frameworks/base/core/java/android/widget/TextView.java
|
f2a02018e2fa3089f6d39fc838a04818ae6cf26b |
|
27-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Scroll performance improved in multiline TextEdit Measuring line widths, glyph by glyph slows down the scrolling process for long text (for some reason, width measure efficiency is affectedi by text length, maybe because the whole text has to be passed to JNI layers). This optimization avoids this computation in the case where there is no possible horizontal scroll. Change-Id: I2082e3d0eedace1a86122a03e4b21f90f3bc8522
/frameworks/base/core/java/android/widget/TextView.java
|
caa8c06de5f94db69faca35d666c04b82d3f420b |
|
07-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown) - finally get ride of VERY_WIDE constant ... - compute the text width on the fly (we cannot cache it as the paint properties can be changed) Change-Id: I07a0df15202ad3f61eabf62da9658fc301422be7
/frameworks/base/core/java/android/widget/TextView.java
|
fec22c6be6ce4988cda358cd405899566c07f032 |
|
21-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Text handles do not handle scroll correctly A recent patch taking scroll into account was applied at the wrong level. isVisible() expects positions that already take scroll into account. isOffsetVisible() is where the initial bug was. Change-Id: If2a5349555ec9e86e4295e819d5d9086f0adcdbd
/frameworks/base/core/java/android/widget/TextView.java
|
592ddaa34f5a6799e4bb707996a3b8308448282e |
|
12-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5428541: Check that span is still in text before deleting This is a cherry-pick in MR0 of CL 141388 from master. Bug 5488537 In case the span has been removed from the text since the popup was showed, the delete action is a no-op. Change-Id: Iec2aeaf03becd82ad44715d5c08bfaa8f62aa3fe
/frameworks/base/core/java/android/widget/TextView.java
|
0f4109e4ef7bca3bf879335007803e6b5392ca6e |
|
19-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Renaming of a hidden API: ShowSoftInputOnFocus Change-Id: Ib0384815f5ed677547a42d456ee190d5ac2ef7bd
/frameworks/base/core/java/android/widget/TextView.java
|
69db986cf01c74094747f82758e229da9f007a74 |
|
14-Oct-2011 |
satok <satok@google.com> |
am e6fee18d: Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it\'s removed." into ics-mr0 * commit 'e6fee18d16a86c266afef48f7705268435a99111': Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed.
|
e6fee18d16a86c266afef48f7705268435a99111 |
|
14-Oct-2011 |
satok <satok@google.com> |
Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed." into ics-mr0
|
ae245d59b384fb4e649d32a3475e4519fafa43ff |
|
14-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5420741: exception when rotating device while suggestion popup is visible"
|
b9e78d96b745341c6cd8be950480c0cb0a20974f |
|
14-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Spell checher's language synced with keyboard."
|
75e126f2df40365ca987d192d81188127518b384 |
|
14-Oct-2011 |
satok <satok@google.com> |
Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed. Bug: 5460262 Change-Id: I4ca71020a6d4b7057f60ca99944c479775cca8b7
/frameworks/base/core/java/android/widget/TextView.java
|
19f4b66ddc924e1828ddc4082dd381616f57ec06 |
|
14-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5228934: added a flag to disable the display of the soft input on focus"
|
9d8d3f1539ce5bdf512bd47ec1648609d6cde5b1 |
|
13-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Spell checher's language synced with keyboard. Bug 5379440. The spell check is now using the IME's language to do the spell checking. Changing the input language triggers a new spell check of the entire text. Optimizations: ArrowKeyMovementMethod re-uses the TextView's wordIterator, already set to the correct language. One wordIterator shared by all SpellParsers in SpellChecker. Cannot re-use TextView's because of concurrency issues. With the current implementation, one has to type a new character to see the new spell checking take place. Change-Id: I0e460c0a6777548f89d03d6b68f3deea6606c17f
/frameworks/base/core/java/android/widget/TextView.java
|
cbdd245793fe5dc42d4573c20d0a43ad95d06d53 |
|
13-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5428541: Check that span is still in text before deleting"
|
26c8b3ae7f01e8a28658e23e2a0d525dd7b9bdf9 |
|
12-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5420741: exception when rotating device while suggestion popup is visible The suggestion popup window was not dismissed on orientation change. This is triggered by onDetachedFromWindow. However, this method is also called when the suggestion popup window pops up. A new flag detects that case to dismiss the popup unless it has expressly been asked to show up. Still errors in the log after that change, I assume related to the window manager. Change-Id: Ia515fc576ddf2127b2f9863cc2652aeb619fff6e
/frameworks/base/core/java/android/widget/TextView.java
|
cee057ed2d5443d901484238a5212c2d3cc5c994 |
|
12-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 87228cd7: Merge "Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned" into ics-mr0 * commit '87228cd7bb9a39e2bb33a767d214c8d834f840df': Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned
|
550efbfbf7cad81f2cc96da68e52324c6231f9ab |
|
11-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5228934: added a flag to disable the display of the soft input on focus This will be used by the contact app for the dial screen text input. https://android-git.corp.google.com/g/#/c/141088/ New upload to trigger a new android-build-police build. Error 137 on buld server, builds fine locally even after a make clean. Change-Id: I9288f3cab5c3330d693e08f88611acdd03526a41
/frameworks/base/core/java/android/widget/TextView.java
|
9f51384720715b58616a7281e2a073f736eff859 |
|
12-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5446966 Changing Gravity on a TextView does not change how the text is aligned - this was a regression introduced when dealing with getLayoutAlignment() Change-Id: I9571a7976789b768c7cb41560d88b35d67ae3895
/frameworks/base/core/java/android/widget/TextView.java
|
28ef904077b8acdeebb6b80cd05c4f4447d3c155 |
|
12-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5428541: Check that span is still in text before deleting In case the span has been removed from the text since the popup was showed, the delete action is a no-op. Change-Id: I6478e0953cab132a984174b596d1f813909cdc2d
/frameworks/base/core/java/android/widget/TextView.java
|
5915c885deaf40231c29bc720503dcf03acab188 |
|
11-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5237623: word no longer underlined after replacement When replacing a word, we need to remove *all* misspelled suggestion spans, not just the one which triggered that popup. Change-Id: I7be17ac626b26123b029f5e10c1e2eaa5f94d67c
/frameworks/base/core/java/android/widget/TextView.java
|
287d6c6e12a38864d019fa7b9184206bc8a31ea1 |
|
06-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5250788: LatinIME slows down as amount of Text increases Removed unnecessary CharSequenceIterator and made the WordIterator work on String instead of CharSequence Submit words to the spell checker by batches. Refactored WordIterator to make it intrinsically local. Change-Id: Ie9e30691985a130fa55cd052005ddb22a21761cb
/frameworks/base/core/java/android/widget/TextView.java
|
764041d21360b4865f905194e08eb8ea2f3ead9f |
|
06-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fixbug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown) - make VERY_WIDE bigger ... 64 times actually Change-Id: I1a177ef5821d9341abb77ea69a50e05a5bfc97b5
/frameworks/base/core/java/android/widget/TextView.java
|
e921572bda621b75a217bce115c2b605caf9b26a |
|
05-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Revert "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)""
|
ad0b051b133baf92f199c96a8ac1e81b3393190c |
|
05-Oct-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Revert "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)" This reverts commit a130e5f59dc6b2117e4c1a8ffef54828e9ea44c7
/frameworks/base/core/java/android/widget/TextView.java
|
8c60235b550ecbd5cba594584f78ef6630953e56 |
|
04-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "5402566: Copy/cut icons do not appear if the text is Japanese only"
|
a13a322e090c50549ce5a42c382e1ef668cf0481 |
|
04-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Optimisations and bugs in SpellChecker"
|
8f3105ff9bc331a3d664cf06793d47f4763db3c5 |
|
04-Oct-2011 |
Gilles Debunne <debunne@google.com> |
5402566: Copy/cut icons do not appear if the text is Japanese only When the word iterator return an empty range, select an arbitrary character so that cut/copy icons are available. Change-Id: I16e5a3c7f10886db967d870706da7f2d690af013
/frameworks/base/core/java/android/widget/TextView.java
|
e1fc4f6c3c7d573f013b707ee962d58f9fb636dd |
|
04-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Optimisations and bugs in SpellChecker A bug was introduced in a recent refactoring: correct words didn't have their SpellCheckSpan removed, leaving a lot of useless spans. SPAN_EXCLUSIVE_EXCLUSIVE should never have a 0-length. With Japanese characters wordStart could be equal to wordEnd when parsing the text: skip these. Using toString().substring(...) instead of subSequence(...).toString() which is more efficient. Change-Id: I670870a34565939b676400091f4852152a7f7124
/frameworks/base/core/java/android/widget/TextView.java
|
d2b58940f7db9d85a9d3f9d12173ec2a07c837df |
|
03-Oct-2011 |
Adam Powell <adamp@google.com> |
Don't obtain attributes for the whole theme when looking for selection mode drawables. Change-Id: I82d327e8fcf67baa557245982b2b5ba76ffa9fec
/frameworks/base/core/java/android/widget/TextView.java
|
f00b4decc3f0b0ebd88b9a2cdb6df959704dfd46 |
|
03-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5327547: re-check word after it (may) have been added to user dictionary."
|
6771c7fdbede3f0b68ec06a5ea734c62577876fd |
|
03-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5384674: When only one suggestion is returned, it is displayed twice"
|
d3871c53cfbc6c789de97cf3e5928a03c5b84232 |
|
03-Oct-2011 |
Gilles Debunne <debunne@google.com> |
Merge "New underline color for the Voice recognized suggestions"
|
845d9c7f7ee4ffc776f66fcb5206ac7287e270ef |
|
23-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5327547: re-check word after it (may) have been added to user dictionary. Change-Id: Id4f32477c3368a140883dd34c97578aab46b04db
/frameworks/base/core/java/android/widget/TextView.java
|
176cd0d3b4a612b9fdd88c1d245e9fd93a327bf2 |
|
30-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5384674: When only one suggestion is returned, it is displayed twice Two separate issues here: - The results of the spell checker may be identical to the one set by the IME. Since we merge the spans, the entries are duplicated. Filter spell checker results to avoid these duplicates. - When the text is saved on rotation, the spans are saved and restored. Since we start a new spell check when the window is attached, it also doubles the size. Change-Id: I21e1a5ae1b264bc97f44d762e4589bf520c6c19c
/frameworks/base/core/java/android/widget/TextView.java
|
eba3d923415431ea8b301d4e77c8f2b7225fed30 |
|
30-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5384675: Color in add to dictionary"
|
5b92a451c0004b53e8c10537c5254c9e6d047d19 |
|
30-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5254884: suggestions are no logner copied in the clipboard"
|
67ed574cdb0a66c42a9827f7dbc54df98578271b |
|
30-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5250788: EditText gets slower has the entered text gets longer"
|
c2deadc9f3c7bb0bd23500bd86a1cffe04862c07 |
|
30-Sep-2011 |
Gilles Debunne <debunne@google.com> |
New underline color for the Voice recognized suggestions Change-Id: Icb863942e7c11caca7384deca5c59866d4668256
/frameworks/base/core/java/android/widget/TextView.java
|
af43add388cdc69d6d1006b874f970eb7dd3026e |
|
30-Sep-2011 |
Luca Zanolin <zano@google.com> |
Merge "The x and y position of the pop-up where not calculated correctly when the text view had internal scrolling."
|
46c78b4de14b18152db031d155006e6f45aa9eaa |
|
30-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)"
|
a130e5f59dc6b2117e4c1a8ffef54828e9ea44c7 |
|
29-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown) - make DynamicLayout honor max lines - make StaticLayout.generate() take maxLines as a parameter instead of using the field mMaximumVisibleLineCount Change-Id: I9eafb1be4b8bb2aa881514955a6903f559cb6a1e
/frameworks/base/core/java/android/widget/TextView.java
|
cf68fee06da3c1e238c0fcbeac40fd6385d15e93 |
|
29-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5254884: suggestions are no logner copied in the clipboard Change-Id: I621c5b4da4252876b0f424e895a4e19e2a4dda50
/frameworks/base/core/java/android/widget/TextView.java
|
e670101db8fbad28ee38481495be6387504f7da6 |
|
29-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5384675: Color in add to dictionary Change-Id: Ibb89265a90d6b598927dec2bcf45a8c02388b5f0
/frameworks/base/core/java/android/widget/TextView.java
|
404c8e57647cd70bc1e6b1fc6301d34e2c732d55 |
|
29-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5278473 & 5278471: delete option in suggestion popup menu"
|
f4314dffbd1b082bb6458b2d6bee69bda4ce2673 |
|
29-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Too many SpellCheckSpans are created."
|
83e8ced91a8c235787bd1f0e3a5b9f85ff7a9cd2 |
|
29-Sep-2011 |
Luca Zanolin <zano@google.com> |
Merge "Change the width of the suggestion item to match the one of the suggestion pop-up"
|
d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6 |
|
29-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5250788: EditText gets slower has the entered text gets longer Profiling showed that the bottle neck was in the word iterator. Now initializing the word iteerator to only a window around the region of interest to reduce the text analysis. Change-Id: Ibfa4952cbf52a1b36726f965143ac7a6dc63673e
/frameworks/base/core/java/android/widget/TextView.java
|
a403cb7e721a914b84cc2af17d400e108d077fff |
|
28-Sep-2011 |
Luca Zanolin <zano@google.com> |
The x and y position of the pop-up where not calculated correctly when the text view had internal scrolling. This method is invoked only when the pop-up is currently displayed and the text scrolles. This is scenario is reproducible only with Voice IME (I think), as the text is inserted without touching the screen. Bug: 5290463 Change-Id: I0b842732cc1f115de06e992fbe28cb64eac49b22
/frameworks/base/core/java/android/widget/TextView.java
|
58707d6212aed2c6dfcdaecd108c6ddf117e756b |
|
28-Sep-2011 |
Luca Zanolin <zano@google.com> |
Change the width of the suggestion item to match the one of the suggestion pop-up Bug: 5267313 Change-Id: Ic7151398872459459f2537322961092d3ccffd1c
/frameworks/base/core/java/android/widget/TextView.java
|
a6c673bd6fdd5385ce9c76088f5d90e739216008 |
|
28-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5278473 & 5278471: delete option in suggestion popup menu Also added + and x icons on that line. Change-Id: I508ae48f83eb7a831f24bb4f81933d9e698abde6
/frameworks/base/core/java/android/widget/TextView.java
|
b062e81e3a16af43db3619d721aa522c137d1aa9 |
|
27-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Too many SpellCheckSpans are created. Removed the Runnable in SpellChecker, spell check is triggered at the end of updateSpellCheckSpans instead of when a new SpellCheckSpan is created. Cache the spans in updateSpellCheckSpans to limit the calls to getSpans. When typing, every new letter in a word will create a SpellCheckSpan (this is needed in case the user taps somewhere else on the screen) The SpellCheckSpans are pooled in SpellChecker to limit unnecessary new SpellCheckSpan creation. Minor optimization on test order in getSpans to avoid some calculation. Spell check is not started everytime the selection is changed (would be triggered when the insertion handle is moved). Explicitely do that only on tap. Change-Id: Ibacf80dd4ba098494e0b5ba0e58a362782fc8f71
/frameworks/base/core/java/android/widget/TextView.java
|
3a6c2e985534aeaef04661e2875a8745022c334a |
|
27-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
am a200a23a: Merge "Bug 5332065: IOOB in case the suggestionSpan has been removed" into ics-factoryrom * commit 'a200a23af10dfcbbe46d10e868c2eae9f2c794a4': Bug 5332065: IOOB in case the suggestionSpan has been removed
|
14ed50a9a3386e63ee19f6ac0b66c7f3c0fe362a |
|
23-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5332065: IOOB in case the suggestionSpan has been removed I don't understand how the SuggSpan that has been tapped to display the popup can have disappeared when an item is clicked. This problem seems specific to monkey test with a race condition somewhere. Change-Id: I447b6563a1b959dc3c1ead31cde2d9bcad369765
/frameworks/base/core/java/android/widget/TextView.java
|
8013290dd0e9d3eabc3611d7eca47aa50bdceed0 |
|
26-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5366547 TruncateAt.MARQUEE should be replaces with "two dot" ellipsis on hardware that dont support MARQUEE"
|
cb332649e44db86ff8b4e7f006db4bbfd82fed55 |
|
24-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5366547 TruncateAt.MARQUEE should be replaces with "two dot" ellipsis on hardware that dont support MARQUEE - introduce TruncateAt.END_SMALL - code refactoring for suppressing use of hardcoded constants Change-Id: I70e24857cd5d6bd012a743cbc0ba46fbd06d5457
/frameworks/base/core/java/android/widget/TextView.java
|
186aaf973530f426b9b0e602e9744c591aa4aea9 |
|
16-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5248215: Even though I turned off the Spelling correction, it still shows up Bug 5313754: SpellCheckSession is released when the window loses focus. When an EditText is initialized with text, a new spell check is initiated and previous spell check spans are removed. Requires a new flag to prevent this from happening when the window focus change comes from the suggestion popup window being shown. Also fixes bug 5329588: handle spell check language change. This change has been reverted. This amended change defers the creation of the SpellChecker, so that it is only created for editable TextView. Patch 3: Bug 5332065, the spell check session is closed in onDetachedFromWindow, which is called when the window is destroyed (like on rotation), which was not the case with onWindowFocusChanged. Patch 5: Fixed life cycle. A view can be created and never attached to the hierarchy. As a result, the spellCheck session would not be closed. Moved spell check to onAttach and perform a spell check when text is changed by setText only if the view has previously been attached (and the spellChecker has been created). Change-Id: Ic2cfbfc0d3f23c589dd9e37f02e4afc1d625615d
/frameworks/base/core/java/android/widget/TextView.java
|
a80599f5be394edd9f3918ba03c490850a1d9e7f |
|
21-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Revert "Bug 5248215: Even though I turned off the Spelling correction, it still shows up" This reverts commit 6e405f84b8d0c7c0f939bc8e9bec17e65e704a2d. Change-Id: I9593273d414aee1f9817f84b462cf45360ff19e3
/frameworks/base/core/java/android/widget/TextView.java
|
576b6bb2f9a72cc7599a254818b8d6a1df25ecb5 |
|
21-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5248215: Even though I turned off the Spelling correction, it still shows up"
|
d37848af08be784ce52da09629dce771131ae5e5 |
|
20-Sep-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
TextView not adding text to accessibility events. Reversed conditional. bug:5342756 Change-Id: Ia2a523af6f7b12e27275e6095ea1b137768ea14c
/frameworks/base/core/java/android/widget/TextView.java
|
2c2ab5864f6037cebac5a4c73ec039f266d0dcfd |
|
19-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #5260129: Suggestion strip in Talk app not showing all the time
/frameworks/base/core/java/android/widget/TextView.java
|
6e405f84b8d0c7c0f939bc8e9bec17e65e704a2d |
|
16-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5248215: Even though I turned off the Spelling correction, it still shows up Bug 5313754: SpellCheckSession is released when the window loses focus. When an EditText is initialized with text, a new spell check is initiated and previous spell check spans are removed. Requires a new flag to prevent this from happening when the window focus change comes from the suggestion popup window being shown. Also fixes bug 5329588: handle spell check language change. Change-Id: I113229dbe06863d34c1369d05d067292894f73f1
/frameworks/base/core/java/android/widget/TextView.java
|
bc82385706c597ceb36bcf8f842f339bcaa321f9 |
|
19-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #5260129: Suggestion strip in Talk app not showing all the time Change-Id: Ibac6138f3b3b0c3850a30d2c432495aa57b7f3f1
/frameworks/base/core/java/android/widget/TextView.java
|
ab5a4057e734df59358b606f1cba9ef921a9e269 |
|
15-Sep-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
TextView should report in an AccessibilityNodeInfo's text its hint if the View text is empty. 1. TextView was reporting only its text as the text of the emmited AccessibilityNodeInfo not using the hint if the text is empty which is inconsistent with the handling of accessibility events. 2. TextView was using the contentDescription in AccessibilityEvents if its text and hint are empyty. However, the content description is reported as a separate event property and it is incorrect to report it as the text. bug:5129138 Change-Id: I1c9270459cb07650a0ec5181cc4a01993dde3b5c
/frameworks/base/core/java/android/widget/TextView.java
|
ea515aeafa01de6f50c854ee381b972ef2478284 |
|
15-Sep-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Update the public APIs for finding views by text to optionally use content description. 1. Added flags to the search method to specify whether to match text or content description or both. 2. Added test case for the seach by content description. 3. Updated the code in AccessibilityManager service to reflect the latest changes there so test automation service works - this is the fake service used for UI automation. Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
/frameworks/base/core/java/android/widget/TextView.java
|
bd4016e9c8958d79cbee40ac5fb2a6d5ffa92241 |
|
14-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5295607: IOOB problems in Suggestions The start and end of the suggestion span were cached, where as they should be retrieved when the user clicks since text may have changed in the meantime. Change-Id: Iab47f9969d538d8213a8c5b76b4b7ace8dc9428e
/frameworks/base/core/java/android/widget/TextView.java
|
18b43119229e5cd72952fdb71b7676de6e853c23 |
|
13-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5281947: add to dictionnary option promoted in suggestions."
|
ab0f485e64418eb22f0a1d89d7064902b381e9c2 |
|
13-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix problems where we were allocating TypedArray when not needed. Fixes up some recycling of TypedArray objects to reduce the number we need to allocate during inflation etc. Change-Id: I948dccc052997779001eaa99db2a710b04be01ae
/frameworks/base/core/java/android/widget/TextView.java
|
e076045f10a1f4fd2764ec2230e068702fd64d06 |
|
08-Sep-2011 |
Luca Zanolin <zano@google.com> |
If suggestion span is not enable, removes the suggestion span (so no underline is displayed), and do not try to display the suggestion pop-up. Bug: 5267093 Change-Id: Ia6f2596d0c62885ef9affeb478e00d3b92d76aac
/frameworks/base/core/java/android/widget/TextView.java
|
c9fd978da60f76c0576150c55629a034e1fa19fb |
|
09-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5281947: add to dictionnary option promoted in suggestions. When several SuggestionSpans are available at a given position, their content are merged, in creation time order. As a result, the IME's suggestions are picked before the spell check, and no add to dictionnary option is created. This CL modifies the comparator to make easy correction spans appear first (Voice IME), then misspelled words and then regular suggestions. Also avoids the creation of a new comparator and length hash map on every display. Change-Id: I1f9f031a6fdcbbc09f248a192b83051092765f8e
/frameworks/base/core/java/android/widget/TextView.java
|
2bfc75a6d9217d20e6fb17b484424935aa55a575 |
|
10-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5255124: Move cursor to the end of a word after correction popup alternates selection"
|
4f2b0dc552dbce06ae6825d099e959b40e6bf0e6 |
|
10-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5278456: text highlight color depends on the type of suggestion spans."
|
1a87ba4636fd6ec1f33664f24263e9452fd43a65 |
|
09-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5255124: Move cursor to the end of a word after correction popup alternates selection Change-Id: Idd3edc72edf864f256df173bcf643163192ecbde
/frameworks/base/core/java/android/widget/TextView.java
|
99e109915e2fe08179f6a64c607ef56a91fb1dfa |
|
09-Sep-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "The time and data pickers did not support IME editor action correctly."
|
a53efe9923bedab4fe5d578f32eaff308e5b9e76 |
|
09-Sep-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
The time and data pickers did not support IME editor action correctly. 1. Updated TextView to traverse all focusable items. It was searching focus down and up and was missing right and left focusabled. Updated the focus seach to use FOCUS_FORWARD and FOCUS_BACKWARD - now all focusable views are visited. 2. TimePicker and DatePicker were not specifying the IME options for the next and done editor actions. bug:5264046 Change-Id: Ief80863fc312582f2f76928bf6e915f620c427e5
/frameworks/base/core/java/android/widget/TextView.java
|
fa4e2d994bb398b89d08304bb233671ef1a5d5f8 |
|
09-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5278456: text highlight color depends on the type of suggestion spans. Change-Id: I76ac02b7688a297c0e83d593f446a4cf2ee36015
/frameworks/base/core/java/android/widget/TextView.java
|
2295cc77c72d451e7a1c9ec48f120a8e73651b6d |
|
09-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field"
|
e4231461f41e4e25645be0831f5653aa6d266b2b |
|
09-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field Part 2 - use "textview_error_popup_default_width" as a dimension resource instead of a basic constant Change-Id: Ieb89fc416105716ab491749a82390a7e784b1755
/frameworks/base/core/java/android/widget/TextView.java
|
0669577b13302767e90a193c5f48e7faae580654 |
|
09-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field"
|
33438be0087518aeb99e17ecc70213956ce0f25a |
|
09-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #2246815 Error popups on EditText should span the width of the screen instead of the width of the EditText field - cap the popup to 240 (Validated with UX team) Change-Id: I2923825a19b7c79fa0d1233300f42e10bdda8df7
/frameworks/base/core/java/android/widget/TextView.java
|
15208ac5003de16e8e3d9ec26c3ef05347da7731 |
|
08-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "No vibration when long pressing in the empty part of an EditText"
|
df1324c3cfcd94c1a634fd7f1ef97f15e0d727dc |
|
08-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Longpressing in landscape correctly starts selection mode."
|
0c4f8ec6d33f113e8173efa86901593cd8b84cdf |
|
08-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Updated text selection color. As in 133272"
|
76866208f81988fa653568513112b152e156d806 |
|
08-Sep-2011 |
satok <satok@google.com> |
Merge "Send onViewClicked in the extract mode"
|
a67a3cfc7c5db3b0a7710a75b57cd5360fce015a |
|
07-Sep-2011 |
satok <satok@google.com> |
Send onViewClicked in the extract mode Bug: 5257838 Change-Id: I16547aab86812f2db45deb879ad887dc38968164
/frameworks/base/core/java/android/widget/TextView.java
|
e28454a23723c76b4eebdf9651692d85aa2a4737 |
|
08-Sep-2011 |
Gilles Debunne <debunne@google.com> |
No vibration when long pressing in the empty part of an EditText Bug 5272224. Vibration should be limited to the start of an action mode, which is not the case here. Change-Id: I0f2263edb24e73f10297d27e109bb37c46fe96bc
/frameworks/base/core/java/android/widget/TextView.java
|
98fb9ed4c1f630e1834b16e5bcf55de8d87d12cc |
|
08-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Longpressing in landscape correctly starts selection mode. Two issues here: 1. selection mode was stopped when extracted mode started, thus loosing the selection. 2. starting selection mode shows a transient action bar which is then hidden when extracted mode starts. Detect this case and do not start selection mode, which will start in extracted mode. This also solves 1. Change-Id: I61d6e8d2071e9d3b1a136915b685962bbc093bd0
/frameworks/base/core/java/android/widget/TextView.java
|
4147abcd84f7dab2bf6f7a644b86c732d8e16cdb |
|
07-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5252977 TextView selection handles appearing in a weird state"
|
03e4d64587d50200d990f95a64b1b1c57ae59d77 |
|
07-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5252977 TextView selection handles appearing in a weird state - a remove of a listener was missing as dismis() and hide() need to share the same semantics Change-Id: I01dc5a971324d0aa0942e365d5302d93a1a51a16
/frameworks/base/core/java/android/widget/TextView.java
|
0046199daba6a089dc966cf56a8e95d80ed60831 |
|
07-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fix "out of bound exception" when the span has prefix."
|
d486bd278959e4f70fc2d14b02621156a132c8ce |
|
07-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fix several issues with the "EasyEditSpan"."
|
1564fc7c7eab89fb2d13719c0d4dc664d57b930e |
|
07-Sep-2011 |
Luca Zanolin <zano@google.com> |
Fix several issues with the "EasyEditSpan". - The easy edit span was displayed twice when in extracted mode. The orignal TextView now checks if it is in extra mode, and if so it does not display any pop-up - The easy edit span was displayed before the view was layout causing the application to crash. New feature: - the span is automatically hidden after a timeout I also renamed all the fields and classes to "EasyEdit...". There were still some field/class using an old name. Bug: 5255363 Bug: 5247453 Bug: 5246997 Change-Id: Ic9bf05d2525e2df9017c91344a687e8cb9105417
/frameworks/base/core/java/android/widget/TextView.java
|
6fbe5ca6438587af59de2cb55a97a55354a7eb03 |
|
07-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Updated text selection color. As in 133272 b/5217848 Change-Id: I628c65af941d575a402a38f45bc923ebb4256c56
/frameworks/base/core/java/android/widget/TextView.java
|
c6fc20a91bdf6f5d8cd8784324a55e39bcb7077c |
|
07-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5262565 Need to remove CharCount TextDirectionHeuristics"
|
2346e0117dff5db9be3932b696a1baaed4488c2f |
|
06-Sep-2011 |
Luca Zanolin <zano@google.com> |
Fix "out of bound exception" when the span has prefix. Change the behavior of the highlight marking the "suggested text" and not the differences. Bug: 5252699 Change-Id: I4c7e9fc9bac81da8b5f643990b86a336363d7968
/frameworks/base/core/java/android/widget/TextView.java
|
e3bf88da23bfadd89a35b6dec769ea825e5ecd6e |
|
06-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5262565 Need to remove CharCount TextDirectionHeuristics - update unit tests too Change-Id: I7c518f58a9f17cb679bc3913bdd38243f7ad2195
/frameworks/base/core/java/android/widget/TextView.java
|
34d2eba560f83f4eb665cdc039cf02bf96c201da |
|
01-Sep-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it Part 2 - make selection handles aware of the run direction Change-Id: Idf41036de53d8968e7ae27eb87aea09e86bcd652
/frameworks/base/core/java/android/widget/TextView.java
|
572527f2c337ec9266ebcd931a66e17d2ae63e01 |
|
02-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Remove the suggestion underline when the TextView loses focus."
|
a41bc33855d9e55701c6e615590e273ada69a445 |
|
02-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Popup windows positions are updated when a TextView is scrolled"
|
f3d78eac0f565b51d5e657e6cb21b4a48ef6f660 |
|
02-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Added an add to dictionary option in suggestions for misspelled words"
|
fe5e9834a3086ab6bd99a4cb0d9273fdeb52ecd8 |
|
02-Sep-2011 |
Luca Zanolin <zano@google.com> |
Remove the suggestion underline when the TextView loses focus. Only the easy correction (i.e., voice ime corrections) will lose the underline, while the misspelled span will not. Change-Id: If96c17473dd70c99b808739ddde800cc93551e2a
/frameworks/base/core/java/android/widget/TextView.java
|
70a6312f09329bd0b19343bc7906f9ce665fe3ad |
|
01-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Fixes around text selection Text selection mode was started by two consecutive taps inside a field with selectAllOnFocus. ArrowKeyMovementMethod does not respect the possible cancelLongPress and handles up events. As a result a scroll that happens to end up at its initial position will be considered a tap and will move the cursor. This is however not considered as a tap in TextView and a possible selection mode would not be stopped in that case. Fixed by making ArrowKeyMovementMethod aware of the cancel that happened in Touch. Change-Id: I07372b703f250e1edc7ee0665318ce30441b9187
/frameworks/base/core/java/android/widget/TextView.java
|
e90bed18cc123c0963bbcc023976fa355c16a352 |
|
30-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Added an add to dictionary option in suggestions for misspelled words Change-Id: I031f17a76b4a81ae375b778046b8c391f9b8b2b2
/frameworks/base/core/java/android/widget/TextView.java
|
f682a77d5ee2c47285ddce14894db0c9e9359cdd |
|
01-Sep-2011 |
Gilles Debunne <debunne@google.com> |
Popup windows positions are updated when a TextView is scrolled The View's internal scroll was not triggering an update of the popup windows' positions. Also fixes an update problem when a new long press moved the action popup window. Change-Id: Ic3bb39fc55981c67db2a15ef2e90aad37a36d116
/frameworks/base/core/java/android/widget/TextView.java
|
0eea6681519277310e1733d791bfc0342b8e5cea |
|
29-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Using ListView for Suggestion popup window New background assets from Bug 5204807. New text selection color and associated handles, bug 5217848. Change-Id: I4eaea6be732843d8ff344400d029b4a1b80b084f
/frameworks/base/core/java/android/widget/TextView.java
|
282e377d8b25a3aaf02ce40f33279d94b77ecbdc |
|
31-Aug-2011 |
Adam Powell <adamp@google.com> |
Ellipsize marquee TextViews that aren't currently animating On some devices the fading edge effect can be expensive. Offer an alternative for screens full of textviews. Change-Id: I0382b4ea0f8b0c6948cb68611f3679dbf5e2898a
/frameworks/base/core/java/android/widget/TextView.java
|
b5305007a6eb10457aa97b9791fed62d3542e3c1 |
|
31-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Add EditTextShortcutSpan to provide edit short cut in the text view."
|
e6d368218918f911b1954296dab25bf84147b4c6 |
|
30-Aug-2011 |
Luca Zanolin <zano@google.com> |
Add EditTextShortcutSpan to provide edit short cut in the text view. At the moment, EditTextShortcutSpan allows only the deletion of the text. In the future, we may decide to add extra functionality, like "retry" where all the text is removed and a specific IME is triggered. Fix the underline. The underline is not defined in thickness, and not as a multiplier of the default underline thickness. Change the behaviour of SuggestionRangeSpan to match the specification. Change-Id: I80437d9887c7a2ff8f62c38afbb0cb7add7ee9c8
/frameworks/base/core/java/android/widget/TextView.java
|
57324c738272eb35217eebfa5001eff45101f683 |
|
29-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Moving action popup window when moving text selection Long press to select, the action popup (Paste) is displayed. A second long press moves the selection (selection mode is still on), but the action popup's location was not updated. Change-Id: I2ac133e608dbca35ec0236b47b42f029623fc303
/frameworks/base/core/java/android/widget/TextView.java
|
474cac1c212e1f02deaffe5512941af9cb2a760b |
|
29-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Suggestions popup window is dismissed on tap outside."
|
d32f27aec04dd91edf488f280ca609e0b55aec9e |
|
26-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL"
|
7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73 |
|
25-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL - force TextView to LOCALE text heuristic when in "password" mode - remove TEXT_LAYOUT_DIRECTION_UNKNOWN_DO_NOT_USE - LocaleUtils.getLayoutDirectionFromLocale() returns "LTR" is locale is NULL or ROOT Change-Id: I182c46aaf2d73c8b18967fffa230bfabec91ed06
/frameworks/base/core/java/android/widget/TextView.java
|
8e7e95f22f700fae6926d87b25c388bf9b509389 |
|
25-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5166707: NPE fixed in getFocusedRect"
|
fd419b051a43c68b28131d1fd4535af0d21b5039 |
|
25-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5166707: NPE fixed in getFocusedRect Change-Id: I1e59ac739f1258c0047a667443f80b2c09ffa12c
/frameworks/base/core/java/android/widget/TextView.java
|
28294cc74491885c7fe4442353026f01f5b773e8 |
|
24-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Suggestions popup window is dismissed on tap outside. But now the tap is not handled at all, as it was before. To do this, the popup window is now focusable. As a result, the TextView's window loses focus. We hide the cursor to prevent a non-blinking visible cursor. We should also fake the state of the parent TextView to keep it visually focussed. SuggestionRangeSpan and SpellCheckSpan had to made Parcelable since they are recreatedi when the TextView is re-created when the popup is dismissed. Change-Id: Ic99b2c4f02c282394f214938dd19168547af4886
/frameworks/base/core/java/android/widget/TextView.java
|
616b20c0de273bf19791db319f83658055a39d6c |
|
25-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Remove spell log that exposes typed text in the logs Change-Id: I88a31f7e1fb93f0550d1cd5eb86afacbc19afd29
/frameworks/base/core/java/android/widget/TextView.java
|
6435a56a8c02de98befcc8cd743b2b638cffb327 |
|
05-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Spell checking in TextViews New UX interactions (the Paste action is no longer displayed after a delay) suggestionEnabled flag replaced by existing input type flag. removeSpans fixed in SpannableStringBuilder to always send notifications SuggestionSpan handled by TextView instead of SpannableStringBuilder New span update algorithm to correctly handle edition around word boundaries. Change-Id: I52c01172f19e595fa512e285a565a3fd97c3c50e
/frameworks/base/core/java/android/widget/TextView.java
|
c2d256b41587ff44efb6373885affe02e5df80b5 |
|
23-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Improve TextDirection resolution"
|
a646145c335ba821f01d9e4f8be2583eb9fd7266 |
|
20-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Improve TextDirection resolution - remove unuseful heuristics - tune Javadoc Change-Id: Id72a158b3a17a528423d278b1cbfd95b8c2951b5
/frameworks/base/core/java/android/widget/TextView.java
|
3de510313a44977a25ecb5253603fb2df2cc34b2 |
|
18-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix bug #5175022 Easy mode in MeasuredText.setPara() is no more used"
|
4b60c30838fbd635964f1e79c057de5048dcc66f |
|
18-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5175022 Easy mode in MeasuredText.setPara() is no more used - use the real TextDirectionHeuristics constants - make more formal that LayoutDirection should be resolved BEFORE TextDirection - reset TextDirection if LayoutDirection is recomputed - remove non used TextDirectionHeuristic.isRtl(CharSequence...) Change-Id: I1d53a7e3ee324cfd27785bb4d715d93de8d9ff4d
/frameworks/base/core/java/android/widget/TextView.java
|
15b8016434a888b47a6032715acf831a0e0b2e5c |
|
17-Aug-2011 |
Luca Zanolin <zano@google.com> |
Fix bit comparison for checking the variant of the input type. Change-Id: I0c74af09e29e39fbd092c10b107ea7aa3273a680
/frameworks/base/core/java/android/widget/TextView.java
|
4cee03a85f5756227e3c74965a5d3fb52bbf57a9 |
|
16-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Change the behavior of SuggestionSpan."
|
7d1c55fad8194e2c82f5f88f98ab5569f9c52ab9 |
|
16-Aug-2011 |
Luca Zanolin <zano@google.com> |
Change the behavior of SuggestionSpan. SuggestionSpan can be accessed in two different ways: - by tapping on the text (easy access) - by tapping on "replace" pop-up (not easy and difficult to discover) The "easy access" will be used for dictionary suggestions and voice recognition suggestions. The suggestion span can be rendered into two different way: - default, text is underlined in blue - spelling error, text is underlined in red Change-Id: I0af0fe6700d0ad588facb21c021dc6f59ef172f1
/frameworks/base/core/java/android/widget/TextView.java
|
8059e0903e36cbb5cf8b5c5d5d653acc9bbc8402 |
|
11-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #3388534 Long file names are improperly displayed when played - force ellipsising when there are more lines found than maxLines - do not care about lines when we have reached maxLines - also fix relayouting when changing maxLines thru setMaxLines() - do not allow START / MIDDLE ellipsis when there are multiple lines (and print a log accordingly) Change-Id: I90f5a7f5200a220aceee01fb7300bec2c4c3a075
/frameworks/base/core/java/android/widget/TextView.java
|
186c1683ce6a6c7e845b06b8c0706ef7950c6608 |
|
15-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Text suggestions are enabled for a subset of input types"
|
248b112ddaea42eb7c9330407aee1c9d836db7fd |
|
12-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Text suggestions are enabled for a subset of input types Change-Id: I0e521eec2784af99ff741a1132a3bc3f7b7aa071
/frameworks/base/core/java/android/widget/TextView.java
|
1329192fc317b60a4ebcc4d058d8545f6f8743aa |
|
12-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5150869: Text selection enabled in browser."
|
2237829e770dfb17496796154436d04a08d7a2aa |
|
12-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5150869: Text selection enabled in browser. After text selection is started, rebuildWebTextView is called, which calls setHorizontallyScrolling with false (multi-line). This was already its value, but since there was no test for a value change, the layout was nulled and this stops the selection mode. Change-Id: I99aadbf45fca4fbdbe8ab7266fe9a7ff839e2792
/frameworks/base/core/java/android/widget/TextView.java
|
8a5c6617d513bd0a47c733520facb3ba543b70b0 |
|
11-Aug-2011 |
Dianne Hackborn <hackbod@google.com> |
Merge "Fix issue #5016544: IME keyboard hides folder rename text field."
|
072b50c6671e06707563864007f3ca491ea02435 |
|
03-Aug-2011 |
Gilles Debunne <debunne@google.com> |
SuggestionEnabled flag enforced in ActionPopup Also removed the Nothing to paste string (and its references) Change-Id: Iaed952075e9e72dcb962ca52341615bc57cb4047
/frameworks/base/core/java/android/widget/TextView.java
|
70a3f677bf015d8641f41d149b76d362bb2b801c |
|
08-Aug-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #5016544: IME keyboard hides folder rename text field. Tweak some issues in TextView with the focus rect used to determing where the scroll position needs to be. The ultimate problem was that in various situations it would use the right-most selection position cursor as the scroll location and when it adds 1 to make this a valid rect we end up with a rectangle that is outside of the view. Change-Id: Ia200c58e4e014d2a0a1be4761f9a1e5eb702a8e5
/frameworks/base/core/java/android/widget/TextView.java
|
1f6ac8b1e05a15739961aeb1640c0007c492bae1 |
|
09-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Handles' position are updated in case of external change."
|
cb2516bb660c6035f1e75dffa45fdf3cd5fc620d |
|
06-Aug-2011 |
Gilles Debunne <debunne@google.com> |
The PASTE action is always displayed, even when starting a selection Change-Id: I5269490f411de2bf6195956aead240a3908026e7
/frameworks/base/core/java/android/widget/TextView.java
|
232cbab493013b961b1526cd3a3e6638643ef312 |
|
06-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Handles' position are updated in case of external change. A 'Select All' for instance will alter the selection and the handles have to updated accordingly. Change-Id: I8ac91c858e7944a7b4ce1b37a3d90609a3003d22
/frameworks/base/core/java/android/widget/TextView.java
|
7abaecc3dbb610b24e22685e6aa749c7011be1eb |
|
04-Aug-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Removing firing of spurious scroll accesibility events."
|
eba69ac07085089194b4a1403f6b698605adf417 |
|
04-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "A tap on the insertion handle is only handled if it has not been moved"
|
c0e74ca82285d09fd5253f39c63610fa9553906d |
|
03-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5050963: Suggestion popup moves with its associated TextView"
|
040023a4813d5a546b5ddaadde0eeea328615923 |
|
03-Aug-2011 |
Gilles Debunne <debunne@google.com> |
A tap on the insertion handle is only handled if it has not been moved Without this test, an arbitrary drag of the handle that happens to end next to where it started triggers the replace/paste action popup window, which is very confusing. Change-Id: Ib1f848147a1c12c231a28f2e730eccaf5321f85c
/frameworks/base/core/java/android/widget/TextView.java
|
21078e4349568210b8c1909999d7714d57f3fff5 |
|
02-Aug-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5050963: Suggestion popup moves with its associated TextView Generalisation of the onPreDraw listener pattern for all popup windows (SuggestionsPopupWindow, ActionPopupWindow and HandleView). Added a shared PositionListener class that tracks movements of the parent's TextView and limit calls to hierarchy to get this position from different places. See also bug 5106062. Change-Id: Ia2fe9509fa7df683acc859f9871bf4630c2da4dc
/frameworks/base/core/java/android/widget/TextView.java
|
6805545649f2b194859033df94602492b9ec086e |
|
03-Aug-2011 |
Romain Guy <romainguy@google.com> |
Add the ability to enable/disable marquee fading per device Change-Id: I4211553455e87f0af598a2fac1d4f65f15c294fc
/frameworks/base/core/java/android/widget/TextView.java
|
e3f89c08f24c88d8758bc8ad2f67ce00790b2120 |
|
01-Aug-2011 |
Luca Zanolin <zano@google.com> |
Sort the suggestions based based on the length of the text they are attached too. When the suggestions are displayed, the shortest one will be at the top of the list, as they are the most relevant one. Bug: 5006130 Change-Id: Id3ac3accce5198a6a58a0c3028ee5f77957ceac6
/frameworks/base/core/java/android/widget/TextView.java
|
4e03f5910cf641e2610f4cbe3fc24d84c430d1e8 |
|
30-Jul-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Removing firing of spurious scroll accesibility events. 1. Adding a TextView to a layout fires an accessibility scroll event with mScrollX = 8144. Now TextView does not fire scroll events since they are not interesting for accessibility and also the implementation fires scroll to frequently - though correctly. 2. AbsListView was firing accessibility events for the same location. Here the caveat is that this class does not know its height and calls onScrollChange every time is scroll as seen by the user may have changed but for accessibility purposes we care for the start and end indices of visible views. The fix is to avoid sending access events with duplicate data. bug:5097467 Change-Id: I7bf11efd638ea3673843f1095a03f518e57cfe9d
/frameworks/base/core/java/android/widget/TextView.java
|
0ef92056b7ce67922e868057d398caf51a89a372 |
|
29-Jul-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Improving accessibility feedback for two state widgets."
|
7650259a597dd24137420d32acc35efc44db381e |
|
29-Jul-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Improving accessibility feedback for two state widgets. 1. Added population of sensible text for the state of the two state controls such as CheckBox, Switch, etc. This is important since if they are in a layout manager which fires an accessibility event there should be a description of the widget. bug:5092552 Change-Id: Ie3ca955653563496b84db379ae23a23fe88089a8
/frameworks/base/core/java/android/widget/TextView.java
|
646f856ec8675a2b00fffd55559a8fed6d348005 |
|
28-Jul-2011 |
Gilles Debunne <debunne@google.com> |
New interaction model for suggestions Double tap and long press both start a text selection mode. The previous 'Paste' popup window associated with insertion handle is now also used in selection mode. It offers a new 'Replace' option that will popup the suggestion list. The HC paste/side/nopaste layout are no longer used. For the new action popup window, I also chose not to make the new background / text appearance styles themable in order to avoid the same problem in case this design evolves again. Known problems: the popup is not moved when the TextView is scrolled. the final visual style may change the "ADD TO DICT" option is missing from the suggestion list no interaction with the spell checker - There are different bugs open for each of these Change-Id: I167841f5ac017227fe4efa616eb935247250871a
/frameworks/base/core/java/android/widget/TextView.java
|
2888524e03896831f487e5dee63f18f1c33c0115 |
|
26-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Bug 4987014: a tap outside dismisses the text suggestion popup Change-Id: I61f5a3c981770393aa861c88d989c653ea00a067
/frameworks/base/core/java/android/widget/TextView.java
|
31a41d35f64c016c63eebaaceff938a0ca40b122 |
|
11-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Bug 4534376: Suggestion popup is not clipped. This happened when the popup was larger than the screen because of a very long suggestion. The text will now be ellipsized with a marquee (better than using 2 lines I believe). Also removed the up layout that was intended to be used when the popup did not fit vertically. The popup is moved up instead if needed. Change-Id: Ie741610e74ade10c691614f1c30d0e17b213c698
/frameworks/base/core/java/android/widget/TextView.java
|
317ab3427afa24cbe71bf339903c9764dcafe93b |
|
21-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Suggestions are dismissed by back key"
|
caed51bcc23303182ffffb8b2db04647845bc1f5 |
|
20-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Insertion handles fades out after being positionned"
|
59f13c7dfb3cb38f03b7cc207d8e381f6274bfef |
|
20-Jul-2011 |
Romain Guy <romainguy@google.com> |
Prevent NPE in TextView.getFadeTop() Bug #5051776 Change-Id: I2fc1ac4b31c06cfb224898ff39f6b63bfbcd77e8
/frameworks/base/core/java/android/widget/TextView.java
|
3784a7f6f8483e6bc9e8624d454f8e90d20ed8ad |
|
15-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Insertion handles fades out after being positionned Change-Id: I08b497222fd585a39cbd04b7be1992acf1a70145
/frameworks/base/core/java/android/widget/TextView.java
|
1003aeb9dee6cb9ccb9991b32a6be94cd933d0ce |
|
20-Jul-2011 |
Romain Guy <romainguy@google.com> |
Merge "Reduce the fade area to save bandwidth."
|
f2fc460a9512500d9d5749fbaada88903d8e3b22 |
|
20-Jul-2011 |
Romain Guy <romainguy@google.com> |
Reduce the fade area to save bandwidth. Change-Id: I8ccea17fc1fb3c132329baa0acc1b3d5a140a5c6
/frameworks/base/core/java/android/widget/TextView.java
|
f66fdadefb3f15b647ffca57667233d8abfc14e0 |
|
19-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Code cleaning - follow member name code style Change-Id: I7a3540ee511aa600c71d2e4b9b7e7f94e47618a9
/frameworks/base/core/java/android/widget/TextView.java
|
6dd005b48138708762bfade0081d031a2a4a3822 |
|
18-Jul-2011 |
Dianne Hackborn <hackbod@google.com> |
I. Can. Not. Stand. ViewAncestor. It was done so we would have the name "ViewRoot" available for a public API. However, the name "ViewAncestor" just makes no sense. So instead, change it to ViewRootImpl. Change-Id: If9599ca67896f339f6fefa7d1dde121201171d97
/frameworks/base/core/java/android/widget/TextView.java
|
176ee3d0f24e10e980069158518aa05c0dc466c1 |
|
16-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5037953: Fix NPE in bringPointIntoView Change-Id: If711f65de1a70ac9132b0b853a9f336ec56355b8
/frameworks/base/core/java/android/widget/TextView.java
|
9703ac8e6f98346a659fd4dbd112f82b558b6de1 |
|
16-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Some code refactoring"
|
c7f2cdea3c16b7303c8f897293e9816029edd1d0 |
|
15-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 4382356: No automatic focus change in ScrollViews"
|
8202cd3602b87634eeb8b2729612d96f8dbf9416 |
|
15-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Bug 4382356: No automatic focus change in ScrollViews The current behavior in ScrollView is inconsistent: a slow scroll will not change focus while a fling will. With this change, the focus is not moved from field to field (resulting in poup due to keyboard / suggestion bar state changes). Also made sure any new input in a TextFields scrolls back the view to make the EditText visible. Has no effect if the EditText is already visible. Change-Id: I7ff301fe85f73c27d76e4893aeab7442d0539b13
/frameworks/base/core/java/android/widget/TextView.java
|
50e95eba5c7cf70a0ecbc50c0cf5b700201aa67f |
|
15-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Implement textDirection heuristic selection."
|
38143a682274dd5f9212d9092ed3553f2ec3e88c |
|
15-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 5014726: Paste works in ExtractedText"
|
d2b5d1cf4aaa5ce95803a837f563292763184302 |
|
14-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Some code refactoring - make Layout.Alignment.ALIGN_LEFT as the default case - update unit tests for reproducing bug #5002512 Change-Id: Id7ec17abd115bcda7f3434e6d64dbbba6915f108
/frameworks/base/core/java/android/widget/TextView.java
|
cb379120456d8065d742021fc5c66748fc8a11a8 |
|
07-Jul-2011 |
Doug Felt <dougfelt@google.com> |
Implement textDirection heuristic selection. Change-Id: I2fcf18de573f2d66494fa5ed61e4273c3c6078c7
/frameworks/base/core/java/android/widget/TextView.java
|
a6c53c79390e719ae425d38d6d80587e0d017ef3 |
|
13-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Introduce TextView drawableStart and drawableEnd"
|
459ac63adae54bafff2391f1f60c607f5deece4a |
|
13-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Bug 5014726: Paste works in ExtractedText Change-Id: I3eb72001662cf9df0a94377f98ba22b19c490fa4
/frameworks/base/core/java/android/widget/TextView.java
|
a3b6b95f9943b53d25d44a35082f817802d4eccd |
|
30-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Introduce TextView drawableStart and drawableEnd - update also unit tests Change-Id: I20b82f5fea2cc48c93fd9e26eb03290ad730c08a
/frameworks/base/core/java/android/widget/TextView.java
|
4a7199ae2b25ad57ae9c3a634aacd1315afe4041 |
|
11-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Suggestions are dismissed by back key Also changed back when in text selection mode: selection mode / suggestion are hidden first, before the IME is dismissed. Bug 4541805. Change-Id: I71ee7fe2fdf9e882d059482aa29dd45ade3e5dbe
/frameworks/base/core/java/android/widget/TextView.java
|
bb588da7b16734c89618e91d7f6d53db39f1266c |
|
12-Jul-2011 |
Gilles Debunne <debunne@google.com> |
Refactored TextView selectable state methods. There were inconsistencies across methods on how to decide if text is selectable. Fleshed up textCanBeSelected to support all cases (including non editable textIsSelectable). onTouchEvent removed from CursorController, test in SelectionModifierCursorController for editable text is not needed since it is conditionned by an hasSelectionController(). Bug 5016955: protection in offset for text selection Change-Id: I1e39f7c4a859476e0220e72a4e490b43e60b4a9a
/frameworks/base/core/java/android/widget/TextView.java
|
25b9f42737c60c052c0f8279d748c619e39935a8 |
|
11-Jul-2011 |
Doug Felt <dougfelt@google.com> |
Fix scrolling bug causing centered cursor. Change-Id: I792a2c4d291e2ac5f0d1ed6e74f5e2ecb395c010
/frameworks/base/core/java/android/widget/TextView.java
|
7f86c806ada21fc7a3feefd89d6fcb4282b0af40 |
|
02-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix View reset of layoutDirection and textDirection - do it in onDetachedFromWindow() - make naming consistent too - update unit tests Change-Id: I320fcdbf75166bae793c4409e7344608b696667f
/frameworks/base/core/java/android/widget/TextView.java
|
7f8f79a1ff086c04a3ad2a442b1d39a8186e3e50 |
|
08-Jul-2011 |
Adam Powell <adamp@google.com> |
Add ALL CAPS style to TextView/TextAppearance Switch out ugly hack in action menu items for the new style. Change-Id: I68a0ed62a352b14d499e6478b82bbc12dcb5a030
/frameworks/base/core/java/android/widget/TextView.java
|
35aecd5884a5ccfe380903e39f30f468315e8f92 |
|
01-Jul-2011 |
Adam Powell <adamp@google.com> |
Updates for action menus Sync with UX designs for action menus in split action bar mode. Layout is now based on a grid cell scheme. Tweak action menu item layouts. Fix some bugs with drawing LinearLayout dividers. Rename config resources to follow convention. Action bar menu items now show text in ALL CAPS. This is done in a locale-dependent manner, but if it produces problems in specific locales the config resource config_actionMenuItemAllCaps should be set to false for that locale. Change-Id: I064c2dd85e012e89551f29153efcfc17f9106333
/frameworks/base/core/java/android/widget/TextView.java
|
f03712bf540db15d0594b848e63c207fd50e9379 |
|
02-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix default TextView textDirection heuristic"
|
0b28c757adfec4302b144d8230c01c04ae00ca2b |
|
01-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix default TextView textDirection heuristic - use "first strong" instead of "locale" - optimize "any rtl" heuristic too - fix a few wording issues too Change-Id: I239a11a49a7a6a6d45165f593c96e8b6b84f0661
/frameworks/base/core/java/android/widget/TextView.java
|
0e591ab277e777b0422463823e3abf28bb1fd5d8 |
|
01-Jul-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Add charCount heuristic to TextView textDirection"
|
8f5026562f26dcde43ee9d9182b309c3204dc1ad |
|
30-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add charCount heuristic to TextView textDirection - threshold set to 60% (using a constant) - fix also one issue during layout direction resolution (parent could be null so delay resolution up to when parent is no more null) Change-Id: I65f24a297aac6bc0d5d482ee31b55db0b201e5bf
/frameworks/base/core/java/android/widget/TextView.java
|
fe8b06cfb4cb4991bcfd09ffa60dcbb7b48ee45f |
|
30-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Support control of text alignment."
|
c0ccf0c47c00942a9d0f2670600a8f2d4d7adb5b |
|
24-Jun-2011 |
Doug Felt <dougfelt@google.com> |
Support control of text alignment. Change-Id: Id6f3682f67ba2e6811e3014cd34a281e6dd0a469
/frameworks/base/core/java/android/widget/TextView.java
|
83955ef12fb324fb3d407c5ea08769f267af7074 |
|
29-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Add textDirection support for TextView and ViewGroup"
|
863fcd62171e55bc9f2105d9fb5877df982454d8 |
|
21-Jun-2011 |
satok <satok@google.com> |
Add onClickView to InputMethodService Bug: 4697141 - onClickView is called everytime the user taps EditText Change-Id: Ia71ad325e50a20e9e1001def662ef992bb50a9d0
/frameworks/base/core/java/android/widget/TextView.java
|
222688682e6e072076489d8203d01bdf2366101a |
|
28-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add textDirection support for TextView and ViewGroup - use ViewGroup inheritance if defined - use different heuristics (inherit, firstStrong, anyRtl, ltr, rtl) - add more unit tests Change-Id: Ic1325aa7d9e4689b181e0a2d08b7dd7fb3f0dbeb
/frameworks/base/core/java/android/widget/TextView.java
|
a0156177cdc809795dd8bc5a19943dd2b6f82b66 |
|
27-Jun-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Added scroll and text selection change accessibility events. 1. Added scrolling accessibility event to provicde feedback when a view is scrolled. Note: We need scroll events for ICS since even though we have touch exploration the user does not know when something is scrollable and not feedback is provided while scrolling. bug:4902097 2. Added a text selection change event to provide feedback for selection changes including cursor movement. Note: We need the text selection change events for ICS since even though the IME supports navigation in text fields the user receives no feedback for the current selection/ cursor position. bug:4586186 3. Added a scrollable property to both AccessibilityEvent and AccessibilityNodeInfo. The info has to describe the source in terms of all properties that make sense for accessibility purposes and the event has this property (kinda duplicated) since clients will aways want to know if the source is scrollable to provided clue to the user and we want to avoid pulling the info of the source for every accessibility event. Change-Id: I232d6825da78e6a12d52125f51320217e6fadb11
/frameworks/base/core/java/android/widget/TextView.java
|
3af0b4e1250aaaf4502eaa05131a3d06342d562c |
|
24-Jun-2011 |
Guang Zhu <guangzhu@google.com> |
Case insensitive for real previous code was comparing to the unconverted CharSequence, so it's never going to find a match if the string is mixed case Change-Id: Ifd537d9781b7da1a2328f01b6f2f3229ca7d950b
/frameworks/base/core/java/android/widget/TextView.java
|
ec39c234bde97336aae18994efe67424527f3fa2 |
|
22-Jun-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Searching for AccessibilityNodeInfo by text not case insensitive. 1. The query string was not converted to lower case during search for infos with text. bug:4818098 Change-Id: Ie4ba8ac2632072bdd71070ec8fd24ca255560ac0
/frameworks/base/core/java/android/widget/TextView.java
|
0656bc32fa8bb59dae502a0f1409afe47f9f638d |
|
15-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Bug 4579629. Send before and after text when suggestion is picked."
|
c0053223bedf33581b0830fb87be32c1f26e5372 |
|
13-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add View.getResolvedLayoutDirection() - update Callback2 interface - update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic by changing "boolean isRtl" parameter to "int layoutDirection" - fix BiDiTests for RTL FrameLayout Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
/frameworks/base/core/java/android/widget/TextView.java
|
4d8028082127003852016a6a1f480f5286118f96 |
|
14-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Bug 4579629. Send before and after text when suggestion is picked. Change-Id: Iaf8ad50b19e7301ece1a5a7a13b3bc604c817fd6
/frameworks/base/core/java/android/widget/TextView.java
|
ed6741817a6c075a306b5e9c63e6c08abc5b8dc6 |
|
03-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Text selection on phone Exception on device rotation due to a removed test for existing selection. onPreDraw is called for the PhoneWindow, updating container position, but before the popup window is layout. Added a flag to force a new update after the layout. Change-Id: I0f833c689a367ef76144230df28afa48db9ad950
/frameworks/base/core/java/android/widget/TextView.java
|
8643aa0179e598e78d938c59035389054535a229 |
|
20-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Interrogation of the view hierarchy from an AccessibilityService. 1. Views are represented as AccessibilityNodeInfos to AccessibilityServices. 2. An accessibility service receives AccessibilityEvents and can ask for its source and gets an AccessibilityNodeInfo which can be used to get its parent and children infos and so on. 3. AccessibilityNodeInfo contains some attributes and actions that can be performed on the source. 4. AccessibilityService can request the system to preform an action on the source of an AccessibilityNodeInfo. 5. ViewAncestor provides an interaction connection to the AccessibiltyManagerService and an accessibility service uses its connection to the latter to interact with screen content. 6. AccessibilityService can interact ONLY with the focused window and all calls are routed through the AccessibilityManagerService which imposes security. 7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos based on some criteria. These API go through the AccessibilityManagerServcie for security check. 8. Some actions are hidden and are exposes only to eng builds for UI testing. Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
/frameworks/base/core/java/android/widget/TextView.java
|
a556abfb3d9ace5f6d179cf0831138fe9c580146 |
|
07-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Rename Gravity BEFORE/AFTER to START/END"
|
9e3b002d3f9141d54948a65e0330fdcd09e75a30 |
|
07-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Rename Gravity BEFORE/AFTER to START/END - following spec proposal for having CSS3 like naming Change-Id: Id5e316a2d9b54b9f20bbcb168fea6a3a83882e1b
/frameworks/base/core/java/android/widget/TextView.java
|
371790b77491c1ea6a4abeb334143fa3a58e0652 |
|
04-Jun-2011 |
Jeff Brown <jeffbrown@google.com> |
resolved conflicts for merge of 955e8d79 to master Change-Id: I90b0d523053d173b7df60ebc975de65ab387ff18
|
ea28694aee64837bb74130716e45b89fce342651 |
|
03-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix default TextView gravity - default set to Gravity.TOP | Gravity.BEFORE instead of Gravity.TOP | Gravity.LEFT Change-Id: I5e528fb1d0a6e3c84dd506e899df33c9b58d25f3
/frameworks/base/core/java/android/widget/TextView.java
|
793a940b84b376bed3be606c2b0f25adef69e20c |
|
03-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Tap timeout removed on paste. Relying on position only. Change-Id: I2e2b4a68f17957a2631a545badd602e4d127cfc3
/frameworks/base/core/java/android/widget/TextView.java
|
aa67eef1b64fd52366bcba339150ce571bc1409b |
|
02-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Remove suggestion span underline on device rotation Change-Id: I2fca995f839eff84ee8c62289f6f110ebb8dd321
/frameworks/base/core/java/android/widget/TextView.java
|
829de65b9aa8d59cff7d8b4acd6c89682a1952a5 |
|
01-Jun-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Select all for text shown as an icon on smaller screens"
|
5e9af2ddf09cd2dbb9d7c1a07f9dab8b262077b8 |
|
28-May-2011 |
Gilles Debunne <debunne@google.com> |
Select all for text shown as an icon on smaller screens Text has been removed to leave space for 4 icons, that should fit even in portrait mode. Note: requires a definitive selectAll icon from designers. Change-Id: I65547527e9ca872aa8888467f31fa7de9653fa77
/frameworks/base/core/java/android/widget/TextView.java
|
38fd7cde0bf51f5372c829713ab8578af941fd36 |
|
01-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix TextView potential NPE in isLayoutRtl()"
|
83fa41b06e0180d4e86c16f7cb6ae2439183fda8 |
|
01-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix TextView potential NPE in isLayoutRtl() - test if mDrawables can be null - see bug #4517017 (was seen with Monkeys) Change-Id: I07f04c88a238d1cae6fe89b0ab56fc2c456b8534
/frameworks/base/core/java/android/widget/TextView.java
|
da188fbe4b4d7b91e1440afe5a1279d0fd7a91eb |
|
31-May-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fix for bug 4499752 - Detect nulled layouts in HandleViews"
|
d4bb0b01c6caccbaef1baec377a59c10790da35c |
|
28-May-2011 |
Gilles Debunne <debunne@google.com> |
Fix for bug 4499752 - Detect nulled layouts in HandleViews Change-Id: I6a7289150bf461cdf4cca0aff4aa4a0400e0d553
/frameworks/base/core/java/android/widget/TextView.java
|
5ff0f99b23da389f59fe736c4c670c60f13be8ea |
|
27-May-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Add support for Gravity BEFORE and AFTER"
|
6a03640539405afbdefe72894759281b98aa6e6f |
|
23-May-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add support for Gravity BEFORE and AFTER - update layouts - add Callback2 for RTL aware Drawable - add unit tests Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
/frameworks/base/core/java/android/widget/TextView.java
|
b1619e5615a295981b6467442783b3e57edf36b3 |
|
26-May-2011 |
Gilles Debunne <debunne@google.com> |
EditText notifies the IME when a suggestion is picked. Bug 4443922 Change-Id: Ie1e5a8164bf80bcfb48036c9337e649dc0d8a2fb
/frameworks/base/core/java/android/widget/TextView.java
|
970ce730175e1d27ce3fc7c179f2d24ecc1b5213 |
|
24-May-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Made getOffsetForPosition public in TextView."
|
bd4d5826228d3c3c55a52aa7e175559509ec3498 |
|
24-May-2011 |
Gilles Debunne <debunne@google.com> |
Merge "TextView uses floats for touch event positions."
|
9511b41e05312f1f5ed88d22040876218d7bfdd4 |
|
24-May-2011 |
Gilles Debunne <debunne@google.com> |
Made getOffsetForPosition public in TextView. Bug 4443839 Change-Id: I3e5d6f0fe3a45b068166f682daf3c4163903306e
/frameworks/base/core/java/android/widget/TextView.java
|
3bca69b09fb51116b5eb18fb91cb991c1450e384 |
|
24-May-2011 |
Gilles Debunne <debunne@google.com> |
TextView uses floats for touch event positions. This is the type returned by event.getX/Y methods. Conversion to ints is only performed when needed. Low performance impact since there is only a minimal amount of computations on these values. Change-Id: I53a56efe5e3a1a96911adc25fedaab7f40f1ba8e
/frameworks/base/core/java/android/widget/TextView.java
|
f3a135bfbae0e64cf32dcb21714420ec974b1cab |
|
24-May-2011 |
Gilles Debunne <debunne@google.com> |
Added a new flag in TextView to disable Suggestions. This is needed for specific TextEdit (such as AutoCompleteTextField) which do not want to display the "No suggestions available" message. Bug 4443830 Change-Id: Ic228b56bacfdf2765e70eb24952ab087556c1f93
/frameworks/base/core/java/android/widget/TextView.java
|
73162196e712c5f71238642bf8ca0b5984ee51a4 |
|
13-May-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Factored out the Accessibility vertical initialization."
|
30401328c1026389171d454c934c15875c3f7ff0 |
|
13-May-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Factored out the Accessibility vertical initialization. 1. Accessibility events were filled with data in dispatchPopulateAccessibilityEvent and onPopulateAccessibilityEvent. These events have two axis of population 1) up the class hierarchy to populate information for the event source; 2) down the view hierarchy to populated all the text contained in the source including its descendants. These two axis of population were done in on population pass now the populating the source properties happens in initializeAccessiblityEvent and the text in onPopulateAccessibilityEvent which is called from dispatchPopulateAccessiblityEvent. 2. Removed the string description from events fired from CompoundButton since the event has isChecked() property and it is responsibility of the clients to decide what utterrance to use and if to use such for announcing the checked state. Change-Id: I5d7f75cf8a87a7a4b3bb7b311e8e642ec9a0faa5
/frameworks/base/core/java/android/widget/TextView.java
|
ee511cc529bcbb8551af4313cf1d2bbf0362de14 |
|
05-May-2011 |
Gilles Debunne <debunne@google.com> |
SuggestionSpans are preserved when picked. This is the exception case: text replacement should NOT remove SuggestionSpans when this is the result of a Suggestion pick in the popup. Save them and restore them after the text replacement. Only spans that entirely englobe the replaced region make sense after the text replacement. Change-Id: Ib18eb6437c3a63fd0e788ebd4565c8f42e83503b
/frameworks/base/core/java/android/widget/TextView.java
|
d9fd3d5ca93ba9840a56812752c4b8beaffcdee7 |
|
06-May-2011 |
Gilles Debunne <debunne@google.com> |
Merge "All SuggestionSpans are removed when the window loses focus."
|
9de128ef79452dcda91b46f9dea3cb158bfe2eae |
|
05-May-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Off by one bug in TextView's suggestions popup."
|
ba4997ac355d11db3c7b04d4215c6948d05cb047 |
|
02-May-2011 |
Gilles Debunne <debunne@google.com> |
All SuggestionSpans are removed when the window loses focus. SuggestionSpans should have a limited, well defined life-span. Saving these in onSaveInstanceState is inappropriate since these can be very large and will not necessarily be saved/loaded by the application. Keeping them in the application when it is dismissed is not consistent since they may be garbage collected while the application is not active. Change-Id: Icebf6cb0218528f9d162a689ad33efeb770fbede
/frameworks/base/core/java/android/widget/TextView.java
|
c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 |
|
12-Apr-2011 |
Joe Onorato <joeo@google.com> |
Rename ViewRoot to ViewAncestor. ViewRoot is about to be a new public class for poking at ViewAncestor. Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
/frameworks/base/core/java/android/widget/TextView.java
|
6e222bcadbf15f4c34b63394831f80f7c82199b4 |
|
04-May-2011 |
Gilles Debunne <debunne@google.com> |
Off by one bug in TextView's suggestions popup. Change-Id: I39615bb75e1e2e24ba5c5a65f1b3e11f8fadd89f
/frameworks/base/core/java/android/widget/TextView.java
|
f0f955e2c3440d835bfffffdec31c980d9a1ffd9 |
|
30-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Touch exploration - nits"
|
887e1a17eb9b12448f5929791b564565b2665aab |
|
30-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Touch exploration - nits Change-Id: Ie49558e0a81218dbad70c02f81dd7a59b3213d5c
/frameworks/base/core/java/android/widget/TextView.java
|
939ccad344c5f32bc9e7dbfa80648c1e75cac62a |
|
29-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Merge "SuggestionSpans are removed around edited text."
|
75beb336f4b164c3bed5d4b91f0b9c6ea49a3437 |
|
29-Apr-2011 |
Gilles Debunne <debunne@google.com> |
SuggestionSpans are removed around edited text. SuggestionSpans do not make sense anymore when the text they refer to is modified. Removed these at the lowest possible common level: In the SpannableStringBuilder that is used to back the Editable. This way, IME do not have to care about removing these when they change text. And they cannot forget to so either. Also fixed a bug in TextView's paste with multi-item paste text (never exercised, since we have no source for such a thing). Change-Id: I08ed921f8c04ffb1a00936a3e554a85ee82f103c
/frameworks/base/core/java/android/widget/TextView.java
|
8e3b17ad13a07ccfe904fa787c0be4cc92d85c0b |
|
29-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Merge "TextView uses WordIterator to select words."
|
c59269f4d3a0a3bd7220b797b04ca037c7b54c75 |
|
22-Apr-2011 |
Gilles Debunne <debunne@google.com> |
TextView uses WordIterator to select words. Also added some boolean return values to know when selection is possible. Change-Id: Ic6763509318c56fcef49349d586e45d14d58a86a
/frameworks/base/core/java/android/widget/TextView.java
|
214a8627c5688b7d942a1209fa38eda4a24a7240 |
|
27-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Support for overlapping spans in TextView's suggestions. Implemented the merging of the different spans, highlighting words that actually differ. Some TODO left in the code. Change-Id: Iaf01f36b07d01639a4009cced6ea9b055ce9cc1f
/frameworks/base/core/java/android/widget/TextView.java
|
736c2756bf3c14ae9fef7255c119057f7a2be1ed |
|
23-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Touch exploration feature, event bubling, refactor 1. Added an Input Filter that interprets the touch screen motion events to perfrom accessibility exploration. One finger explores. Tapping within a given time and distance slop on the last exlopred location does click and long press, respectively. Two fingers close and in the same diretion drag. Multiple finglers or two fingers in different directions or two fingers too far away are delegated to the view hierarchy. Non moving fingers "accidentally grabbed the device for the scrren" are ignored. 2. Added accessibility events for hover enter, hover exit, touch exoloration gesture start, and end. Accessibility hover events are fired by the hover pipeline. An accessibility event is dispatched up the view tree and the topmost view fires it. Thus predecessors can augment the fired event. An accessibility event has several records and a predecessor can optionally modify, delete, and add such to the event. 3. Added onPopulateAccessibilityEvent and refactored the existing accessibility code to use it. 4. Added API for querying the currently enabled accessibility services by feedback type. Change-Id: Iea2258c07ffae9491071825d966dc453b07e5134
/frameworks/base/core/java/android/widget/TextView.java
|
c1e1f43dab96a317f58e31137c49a4df2e919b83 |
|
23-Apr-2011 |
Adam Powell <adamp@google.com> |
Merge "Revert "Touch exploration feature, event bubling, refactor""
|
3fb3d7c4e756bd32d5abde0abca9ab52d559bc84 |
|
23-Apr-2011 |
Adam Powell <adamp@google.com> |
Revert "Touch exploration feature, event bubling, refactor" This reverts commit ac84d3ba81f08036308b17e1ab919e43987a3df5. There seems to be a problem with this API change. Reverting for now to fix the build. Change-Id: Ifa7426b080651b59afbcec2d3ede09a3ec49644c
/frameworks/base/core/java/android/widget/TextView.java
|
3f92b8b18856371f561955197b488191433977e6 |
|
23-Apr-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Clean getTextRunAdvances() APIs"
|
f9fa622cc04028fd7c5f5036ea2e0ccfb80d55f3 |
|
23-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "Touch exploration feature, event bubling, refactor"
|
2037b827f3e3955ca3b05fd372bf4bac82764333 |
|
22-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Refactoring in TextViews' handles The position of the container has to be updated on each frame in preDraw, since the handles' positions can be modified programatically. Updating position when the handle is dragged is no longer sufficient and now redundent. Change-Id: I304b13089f4327baad2e8d4c0974c649bef1e883
/frameworks/base/core/java/android/widget/TextView.java
|
ac84d3ba81f08036308b17e1ab919e43987a3df5 |
|
05-Apr-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Touch exploration feature, event bubling, refactor 1. Added an Input Filter that interprets the touch screen motion events to perfrom accessibility exploration. One finger explores. Tapping within a given time and distance slop on the last exlopred location does click and long press, respectively. Two fingers close and in the same diretion drag. Multiple finglers or two fingers in different directions or two fingers too far away are delegated to the view hierarchy. Non moving fingers "accidentally grabbed the device for the scrren" are ignored. 2. Added accessibility events for hover enter, hover exit, touch exoloration gesture start, and end. Accessibility hover events are fired by the hover pipeline. An accessibility event is dispatched up the view tree and the topmost view fires it. Thus predecessors can augment the fired event. An accessibility event has several records and a predecessor can optionally modify, delete, and add such to the event. 3. Added onPopulateAccessibilityEvent and refactored the existing accessibility code to use it. 4. Added API for querying the currently enabled accessibility services by feedback type. Change-Id: Iec03c6c3fe298de3f14cb6efdbb9b198cd531a0c
/frameworks/base/core/java/android/widget/TextView.java
|
0a1413e4bf9dcda2a8abb2287e43f612a7fb2453 |
|
22-Apr-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Clean getTextRunAdvances() APIs - remove ICU reference in API names - use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU" Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
/frameworks/base/core/java/android/widget/TextView.java
|
b3fc1a5b8b8f88eaf00b05957523cbdc0944b24b |
|
06-Apr-2011 |
satok <satok@google.com> |
Rename CorrectionSpan to SuggestionSpan Change-Id: I004b2e012b2de4de959a31da1f55b63ca7c14199
/frameworks/base/core/java/android/widget/TextView.java
|
6a839703cd9aa72f5c6f107d0a8f894601d5c308 |
|
07-Apr-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Word suggestion popup added to EditText."
|
6934044fd7d2de12c21e3cc9b7da589ec3b71e8e |
|
31-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Word suggestion popup added to EditText. A double tap on a word will now display a list of suggestions based on the CorrectionSpans that were added by the IME. This is a first implementation of this feature. It needs some attention from designers. Change-Id: If863107681ce82a1639f21315878f830c2991fb7
/frameworks/base/core/java/android/widget/TextView.java
|
c5a43594babeabe965e6f386259431e9712951a0 |
|
04-Apr-2011 |
Gilles Debunne <debunne@google.com> |
IME is no longer shown when an EditText gets focus. Change-Id: Ife24f83831f97c911e4e800547182a390cda0d75
/frameworks/base/core/java/android/widget/TextView.java
|
eee49c699c035ffba188417489f40d34f587d65c |
|
25-Mar-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix text redering issue where the text was sometimes truncated - mostly was visible in Settings apps / Wi-Fi networks summary info for each network - correctly setup the local SkPaint for advances computation - improve test app for adding live resizing Change-Id: Ia031fe1b115b521ba55c7e68f2a26300f02e48ca
/frameworks/base/core/java/android/widget/TextView.java
|
e3797a15fbf769a0abcbe121cfd33b4b658aea1e |
|
21-Mar-2011 |
satok <satok@google.com> |
Removed APIs for setCorrectionSpan from InputConnection ("setCorrectionSpan" was added in Id3abc9ea4d11753cd ) Also.. - Added a class java doc for CorrectionSpan - Removed FLAG_DEFAULT - Changed the return type of getSuggestions from Array<CharSequence> to String[] Change-Id: If5eb091e307a7a40c5b4a70ec1fe6059ecd9fb2d
/frameworks/base/core/java/android/widget/TextView.java
|
6f72cf80576c17b888d4768dfcd14481087b7143 |
|
25-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Fix a leak in TextView around ViewTreeObserver Port of AOSP change 21909 into master. Change-Id: I5a3490a6e0151867840507d0137ee811ea2fb139
/frameworks/base/core/java/android/widget/TextView.java
|
c0a8cd10a5829bf4e94ee073ba6f553128e9d8e9 |
|
19-Mar-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Text in accessibility events not consistent bug:2513822 Text added to accessibility events is truncated to max length. However, the fromIndex and toIndex properties are relative to the text before being truncated, thus potentially our of bound. Removed the max length limitation because test very rarely is longer that 500 characters and in the cases in which text is longer than 500 character it will not be a real problem to pass a bit more data through an IPC (very rarely). Change-Id: Ie70ac630dfeb56d4f59079abb2f46d07582796b6
/frameworks/base/core/java/android/widget/TextView.java
|
adb435835fb9a5f2bb74d29930b239dde18504a7 |
|
09-Mar-2011 |
satok <satok@google.com> |
Add CorrectionSpan and APIs to pass a secure CorrectionSpan to TextView - CorrectionSpan is a span which has suggestions made by IME. This has a function to change the current IME to other IME specified in this span. For security reasons, only the current IME is allowed to use this function through InputConnection. (IME token is used for checking the validity of it.). - CorrectionSpan stores following information: flags, subtype Id, InputMethodInfo Id, suggests, locale, original string Change-Id: Id3abc9ea4d11753cdc4f483a2bb3128f49ba198a
/frameworks/base/core/java/android/widget/TextView.java
|
e3f075622da4e78772abf21a5a219a0d48bc6c04 |
|
14-Mar-2011 |
Michael Jurka <mikejurka@google.com> |
Merge "Removing TextView predraw listeners sooner"
|
2b942d53297f7091e22ee281f2faf0aacb12fc4b |
|
01-Mar-2011 |
Michael Jurka <mikejurka@google.com> |
Removing TextView predraw listeners sooner Solves issue where the listeners were being run on every frame
/frameworks/base/core/java/android/widget/TextView.java
|
e1fb6ebd132617508c625aadf646cc88994f4203 |
|
14-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Removed empty block warnings in TextView"
|
d40cc3c58a6c0d4f66bd10ee66a3b978a2b945c6 |
|
12-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Removed empty block warnings in TextView Change-Id: Ieec52faa6fa7160fb3f8fca30cdd25125ccd51ee
/frameworks/base/core/java/android/widget/TextView.java
|
6a85508e9423b3d65681178e873dcad061020d52 |
|
12-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Wrong null check in TextView Bug 4087576 Change-Id: I907cb08b24b23715f3900bc076de2cc856650981
/frameworks/base/core/java/android/widget/TextView.java
|
05bb0105bf053d26173feec5fbc997b2a6e228ca |
|
11-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Refactor in TextView's HandleViews."
|
180bb1bf26f3061fdfd58106e62d5874f57f675b |
|
10-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Refactor in TextView's HandleViews. HandleView had a reference on its Controller, and Controller had a reference to its HandleView. This large refactoring breaks this dependency, creating smarter HandleView subclasses that don't have to delegate to the controller anymore. Change-Id: I472621f747cdc78fd8b2bba84c0edc62cb2f6316
/frameworks/base/core/java/android/widget/TextView.java
|
52c7ba174ba6edabf7a4c7a69ee124a9e30244e9 |
|
10-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Removed updateCursorControllerPositions hidden method. This method is no longer needed since handles' positions are updated in onPreDraw. See CL 100549 Change-Id: I7f95d9850c866935c22ecc49c6f4ce89a87861ae
/frameworks/base/core/java/android/widget/TextView.java
|
4469e60e9e45a67680039bba63063d25019e4cd2 |
|
09-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Fixed TextView#onTextChanged documentation. Bug https://code.google.com/p/android/issues/detail?id=14804 Change-Id: I3356800b680ff79cc2fe099845634bb8d9b96ec6
/frameworks/base/core/java/android/widget/TextView.java
|
682e32b743f36b6864d9909c391c12b754a4301e |
|
08-Mar-2011 |
Gilles Debunne <debunne@google.com> |
am 0a301f58: am 949d0c8c: Merge "Text handles positions\' are correctly updated." into honeycomb-mr1 * commit '0a301f58a2b09a3c8aa083574121d21f275f62b9': Text handles positions' are correctly updated.
|
716dbf63d4580b3e4d87fec83c633e6ea8730117 |
|
08-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Removed unnecessary memory allocation in TextView. No other obvious unneeded memory allocation related to text editing and selection was found. Change-Id: I7d8c9210940982120caeb1e7b75d754557ebf6db
/frameworks/base/core/java/android/widget/TextView.java
|
cfc22c533222f0181be7a717fbf721891d3bfd2d |
|
08-Mar-2011 |
Gilles Debunne <debunne@google.com> |
Text handles positions' are correctly updated. Bug 3510106 The CAB animation does not fire events, which does not update the handles' positions. The solution is to make the handle update their position before any draw traversal, using an onPreDrawListener. The ScrollingPopupWindow onScroll listener is no longer needed with this change. This is also a more robust solution since other events (such as animations) may change the TextView's position. The cost is a recomputation of the Handles' positions at each redraw which was not necessary with listeners. But as mentioned before, not all possible events provide listeners or will in the future. Change-Id: I0f46118de5f660a75d95eecb2cf987fcb4b3b322
/frameworks/base/core/java/android/widget/TextView.java
|
059d5affa188406223f00ee24373e85f3ce85cd7 |
|
28-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Text selection mode is stopped when View is recycled in ListView"
|
8f34567c71003505456a9b1a0d461a4e62883d70 |
|
26-Feb-2011 |
Jeff Brown <jeffbrown@google.com> |
Add scroll wheel support to TextView. Change-Id: I6e4258c50b0d754dccf07266ff4b2abcbccd733a
/frameworks/base/core/java/android/widget/TextView.java
|
4b2274fff53356d32e07585a566d2c73c92272a3 |
|
26-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Text selection mode is stopped when View is recycled in ListView Change-Id: If09cef9485ccc35c53ad9c7a809c982e32da2f0e
/frameworks/base/core/java/android/widget/TextView.java
|
b7012e841c8a4590d0c05db21d4bcd7ba48ab310 |
|
25-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Removed ViewTreeObserver in TextView when handles are hidden terminate method is no longer needed since handles are popupWindow which have their own fade-out animations. Change-Id: I8354f78ece2ffe9c098ef2f02f0d637fc4c813c0
/frameworks/base/core/java/android/widget/TextView.java
|
808b04abe63eff07a56865786bf321fdc950468c |
|
24-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Cursors correctly displayed with legacy theme."
|
eca97a320f52db05291019959851d6dd85ba2973 |
|
24-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Cursors correctly displayed with legacy theme. Bug 3482848 Change-Id: Ic2eda961a8bb5e865bc638106124d00a5a7b4b21
/frameworks/base/core/java/android/widget/TextView.java
|
ddf00b8afe43c7c2020f0d085e90f410a689e190 |
|
24-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Text handles movement improvements. Bug 3329346 Making sure the cursor is never hidden by the finger. Some vertical movement is not repercuted on the handles' position if it moves the finger closer to its 'ideal' touch position, where both the insertion line and the top of the handle are visible. Also removed the hysteresis line filter which is not that usefull and feels sluggy. Change-Id: I6ad0fed0cf66753c6571b3bc620b1a0f2397c7b2
/frameworks/base/core/java/android/widget/TextView.java
|
81f08086b44a117097960195d2c9072e29644962 |
|
17-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Text selection handles correctly scroll Bug 3416154 The origin of the problem is new display optimisations that enable a scrollView to be scrolled without calling the onDraw method of its children. As a result, the handles' positions were not updated on scroll. DropDown popup menu have an integrated scroll listener that will fix the problem. Using these indead is the first part of the solution. The next problem is that when they get hidden, these popups try to move their parent (the TextView in our case) which creates a scroll conflict. Fixed by overriding findDropDownPosition. Finally, when the handles get invisible, a new scroll listener has to be installed that will show them back in case the view is scrolled back. This is also an important step to fix Bug 3441308 (selectable text in list views). Debugging find outs: Small optimization in PopupWindow to avoir unregistering then registering back the listener when it is updated. getHandle().show(); is not needed since updatePosition will do it through moveTo(). Change-Id: I6bf6a3649538328257734ed1e651b23b889d65d9
/frameworks/base/core/java/android/widget/TextView.java
|
76327dc0a8807a6f1d16d067ca2480a2870baedb |
|
22-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Tuning the touch up filter."
|
8eb18b114ee96c07940be5ef0228fb38ae4a7a43 |
|
22-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fixes around cursor blink."
|
0c4650b4d566f65aa6faa9be45e7f1e29148e1a9 |
|
22-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Cursor does not jump back to its previous position when IME is showed up."
|
bc7a4c8cfa3b8352e14e2dcc8f6cd00cc00c7833 |
|
09-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Tuning the touch up filter. Bug 3436027 A movement has to happen recently, and there has to have been a stable period before this. Also fixes a problem with the paste popup that could be displayed for very fast motion since it was only based on time and not on distance. Change-Id: I02264b4d54e4d1323ebc2d1b5102769ba2d8569a
/frameworks/base/core/java/android/widget/TextView.java
|
3d01006fd6698cc52760527d25611b3c25193330 |
|
18-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Fixes around cursor blink. Bug 3394800 A previous fix called cancel when the window was detached. The cancel/uncancel mechanism does not actually removes the Blink runnable. It is indeed more a suspend, which is used when the window loses focus. The problem here was that uncancel was never called. Removing the runnable callback instead. Also rationalized the use of makeBlink and the setting of mShowCursor Change-Id: I92aac43a891991b7cc98738de0f12332ab16907a
/frameworks/base/core/java/android/widget/TextView.java
|
ad8484b3799ba7046e57388e34ba9a4c0a971b42 |
|
18-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Cursor does not jump back to its previous position when IME is showed up. Bug 3441308 This behavior may be restored for phones if appropriate. Change-Id: Ibc2de587d64d372521da2d54f239cab56f04b407
/frameworks/base/core/java/android/widget/TextView.java
|
46b7d441c6efa456ad95471d1d06946ea5637232 |
|
18-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Composing span is removed when insertion point is moved Bug 3457633 Change-Id: I8896823b7e700dd52acec180c2a1d8e2f6ac5ae1
/frameworks/base/core/java/android/widget/TextView.java
|
f75c97e023af7d4ad9a8c129d4ea282b1c3b8f94 |
|
11-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Text insertion cursor is now defined by a Drawable. Bug 3261766 If defined, the drawable is used instead of directly drawing a 1 pixel line. This makes the cursor more fancy and more visible. The drawable is currently clipped by the TextView's limits, which is currently visible on the left when the cursor is at the first position. To solve this issue properly, we would need to propagate a do-not-clip up in the hierarchy. Change-Id: I99f6001048eed14104994acf6bab942dda8eb38e
/frameworks/base/core/java/android/widget/TextView.java
|
299733e2b40e77d6d08c749fa8dd8a783857ee0e |
|
08-Feb-2011 |
Gilles Debunne <debunne@google.com> |
CTRL+A simply highlights all text. Bug 3351442 It does not start text selection mode, and does not display selection handles. Just like a selectAllOnFocus does. Change-Id: I3b6df3c57abb7cc2cd03a0a67896faeec2ec631f
/frameworks/base/core/java/android/widget/TextView.java
|
8f8aac5e8adfe14b8a01d90424b1815e0a0ebe28 |
|
01-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Pixel were missing on the last line of text when using MaxLines." into honeycomb
|
0ad4f0963a47feafaaa92a756fb84caab5b6bddb |
|
01-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Patches for the Paste window behavior." into honeycomb
|
11f9647e03d4e1141bc4312626c8dc9116f1f470 |
|
01-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Hint text is visible when using center gravity." into honeycomb
|
3ce726eb9487bec53d53379b8b35cb84fd387357 |
|
01-Feb-2011 |
Gilles Debunne <debunne@google.com> |
Patches for the Paste window behavior. Bug 3409440 Change-Id: Id266bb83aa6e1912817995881daa9c24a1553c32
/frameworks/base/core/java/android/widget/TextView.java
|
9a80a650467384d582d3cdf13a8136622a831885 |
|
31-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Hint text is visible when using center gravity. Bug 3379366 Non left aligned text uses the VERY_WIDE width, but the hint text was not. Change-Id: I7327958336acf7fe16bb89bb8b7bf9b869167d53
/frameworks/base/core/java/android/widget/TextView.java
|
ccfcd9e813d090ec9b4390b5217b32f73dd8263d |
|
31-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Fxi initial error popup dialog in TextEdit and refreshed assets." into honeycomb
|
0a4db3c5270440eeb7e4e44a7029926e239ec3bd |
|
14-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Pixel were missing on the last line of text when using MaxLines. Bug 3295544 Only the last line of text includes the bottomPadding (extra line spacing below the characters' descent. When The text is clipped using maxLines, the desired height correctly added this value, but getLineTop and getLineDescent are also used when the layout is drawn. The fix is to make the layout aware of its clipping so that these values are correctly updated. Change-Id: I703656cf45022d34a90f55f0ed8fc5e4b30f80b1
/frameworks/base/core/java/android/widget/TextView.java
|
c9cb30837116b138a91b251e5217a644231eebef |
|
31-Jan-2011 |
Adam Powell <adamp@google.com> |
Merge "Fix bug 3405899 - android.view.WindowManager$BadTokenException" into honeycomb
|
65a1de963a9b93225b67a399c9abc66d9bb8fd6f |
|
31-Jan-2011 |
Adam Powell <adamp@google.com> |
Fix bug 3405899 - android.view.WindowManager$BadTokenException Clear any pending runnables involved with TextViews when cursor controllers are released Change-Id: I96898fcc237f20d0b0f2351181244cb171fa2083
/frameworks/base/core/java/android/widget/TextView.java
|
12ab64593f557674f783e39ab804a7cd033b0050 |
|
30-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Auto-clearing setError popup Bug 3403325 Error popup has to be dismissed whether or not the key was handled. Change-Id: Ib6326b27fc521398f3cb0c546d29a7de9df18375
/frameworks/base/core/java/android/widget/TextView.java
|
f1f409a389d67dedc4847f802df402e78dd01353 |
|
28-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Fxi initial error popup dialog in TextEdit and refreshed assets. Bug 3398923 Set the background of the popup when it is created so that the first measure is correct. New assets. Change-Id: I4803754ef3115429a608d890f56c6b0c8033d253
/frameworks/base/core/java/android/widget/TextView.java
|
b7fc63f7aac3689696f7f84953009b5928ac3db3 |
|
28-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Fix for TextView's error popup behavior when using soft keyboard. Bug 3370191 The documented behavior is to hide the error when the text changes. However, this should not be the case if the error was reset by a text watcher. Comparing errorBefore and errorAfter as was done before is not sufficient in the case where the error is reset to the same value. String pool optimization will re-use the same Object and it will look like the error has not been modified (hence the blinking behavior reported in the bug). For this reason, TextView has a mErrorWasChanged flag. The fix is to export methods that can use this flag as in done inside TextView when a physical keyboard is used. These methods are hidden. Change-Id: Ie3ec59a368f3b1588b81242890b971ac48e8ff7e
/frameworks/base/core/java/android/widget/TextView.java
|
17d31decef349b4f6026b41a7425a4e64940aef5 |
|
27-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Soft keyboard is not shown when text selection mode is aborted. Bug 3381317 Also generalized and uniformized the use of peekInstance. Added null tests, and isActive tests before hiding. Change-Id: Ifd1a053fd920841333e0ebab3e2a8d26b469a0f6
/frameworks/base/core/java/android/widget/TextView.java
|
ddd6f3928756c439e8a7a975a9dc51248f687b7e |
|
27-Jan-2011 |
Gilles Debunne <debunne@google.com> |
CustomSelectionActionModeCallback can prevent selection mode from starting. Bug 3381317 Change-Id: I9fb52077216ed56c101ed58f8897478343369528
/frameworks/base/core/java/android/widget/TextView.java
|
9e7c2c6ded1144122915cfb8bd663e789c7eb93b |
|
27-Jan-2011 |
Romain Guy <romainguy@google.com> |
Merge "Optimize invalidate() calls." into honeycomb
|
0fd89bf7221431260883cee4597e2db942d799a0 |
|
27-Jan-2011 |
Romain Guy <romainguy@google.com> |
Optimize invalidate() calls. Change-Id: I09d99290ca74f96046702bc2604f125a1276ce05
/frameworks/base/core/java/android/widget/TextView.java
|
5f059e4663d94c4569b4757ea8406793fc217dfb |
|
13-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Holo theme for error popups in TextViews. Bug 3277308 Change-Id: I9711adb848df975b95ad09fc84bba4b970e44670
/frameworks/base/core/java/android/widget/TextView.java
|
874d77c62e0aa18116063948cd580ad0b37b4578 |
|
26-Jan-2011 |
Gilles Debunne <debunne@google.com> |
A long press on the selection handle no longer selects the word. Bug 3371448. Change-Id: I360e6259f5f58a6f251efbe031ac46a76b7168e7
/frameworks/base/core/java/android/widget/TextView.java
|
88b5953ab2f63ed6f820bb13845cf8fecb2d57e3 |
|
24-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Merge "NULL inputType text fields should never show the IME." into honeycomb
|
705a27a97ccd8e363944083d948b7f5204916b85 |
|
24-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Non-editable TextViews should not display a cursor." into honeycomb
|
98dbfd4940fb7f1e3ae11ec73aeb7a9dd26a24ee |
|
24-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Non-editable TextViews should not display a cursor. Bug 3381320 The tests were inconsistent between makeBlink and onDraw. If the text is non-editable, do not draw the cursor. Change-Id: I0405e59444261a553e868b3ae5bdddd278f60bb2
/frameworks/base/core/java/android/widget/TextView.java
|
8cbb4c6e30cff706a243599634aeb8fd9a818d92 |
|
24-Jan-2011 |
Gilles Debunne <debunne@google.com> |
NULL inputType text fields should never show the IME. Bug 3381317 Changes made in https://android-git.corp.google.com/g/#change,91880 displayed the IME onFocus. However, the test was not consistent to what is done in touch event. textIsEditable is now checked too. Change-Id: If11382c1c90a557839b87d62494253470c42b621
/frameworks/base/core/java/android/widget/TextView.java
|
daf98e941e140e8739458126640183b9f296a2ab |
|
10-Jan-2011 |
Chet Haase <chet@google.com> |
Use optimized display lists for all hwaccelerated rendering Previously, display lists were used only if hardware acceleration was enabled for an application (hardwareAccelerated=true) *and* if setDrawingCacheEnabled(true) was called. This change makes the framework use display lists for all views in an application if hardware acceleration is enabled. In addition, display list renderering has been optimized so that any view's recreation of its own display list (which is necessary whenever the visuals of that view change) will not cause any other display list in its parent hierarchy to change. Instead, when there are any visual changes in the hierarchy, only those views which need to have new display list content will recreate their display lists. This optimization works by caching display list references in each parent display list (so the container of some child will refer to its child's display list by a reference to the child's display list). Then when a view needs to recreate its display list, it will do so inside the same display list object. This will cause the content to get refreshed, but not the reference to that content. Then when the view hierarchy is redrawn, it will automatically pick up the new content from the old reference. This optimization will not necessarily improve performance when applications need to update the entire view hierarchy or redraw the entire screen, but it does show significant improvements when redrawing only a portion of the screen, especially when the regions that are not refreshed are complex and time- consuming to redraw. Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
/frameworks/base/core/java/android/widget/TextView.java
|
c3e85a712b7a2cc02624d1483b846c16ac85f091 |
|
21-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Tapping inside an EditText should always pop up the IME. Bug 3374062 When the tap in slightly off the EditText, it receives focus from its parent layout which dispatches the event. However, the touch event is (correctly) not propagated in that case. onFocusChanged should hence do actions similar to what is done on touch up events. Change-Id: Ia5c04546674fc6239aa4d0b8d051f4951ca91352
/frameworks/base/core/java/android/widget/TextView.java
|
e60e1e597b85ce2cc94818a42ff9e30547af94f8 |
|
20-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Paste popup window is displayed on the side when it would be clipped on top of screen. Bug 3259774 Change-Id: I6ea20452a3a235e264c91c112f52da7230657708
/frameworks/base/core/java/android/widget/TextView.java
|
a85467bc8da8d4cecd47ed30da04c72c4f7bd842 |
|
20-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Error popup no longer flickers in TextViews. The removed lines were committed by the Android Open Source Project. Their intent was probably: the message was there before, it is identical after a text change, let's remove it to not annoy the user who already saw it. The behavior however is that the message is displayed then hidden, then displayed as the user types. Bug 3365016 Change-Id: Ie820f8e5465ad8ab5890272c42627686e0d7961b
/frameworks/base/core/java/android/widget/TextView.java
|
aba62a5925e807f30e3abb1e348738eb342a9888 |
|
18-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Merge "Added a touch up filter in text selection handles." into honeycomb
|
aa8d73bfc32eae0340ba5236f3580d88558359ab |
|
17-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Added a touch up filter in text selection handles. This filters the touch up event, so that in case the handles' position is altered when the finger is lifted up, this unwanted movement is discarded. Bug 3282095 Change-Id: Ibfe8f49d979091ba49139449ecc13f47050608d9
/frameworks/base/core/java/android/widget/TextView.java
|
327fbd2c8fa294b919475feb4c74a74ee1981e02 |
|
17-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix a bunch of API review bugs. 3362464 API REVIEW: android.content potpourri 3362445 API REVIEW: Fragment transaction stuff 3362428 API REVIEW: Fragment stuff 3362418 API REVIEW: Loader stuff 3362414 API REVIEW: android.content.pm.ActivityInfo Change-Id: I6475421a4735759b458acb67df4380cc6234f147
/frameworks/base/core/java/android/widget/TextView.java
|
fb81703ab11c653a587b652b90ec3b550f500ccf |
|
13-Jan-2011 |
Gilles Debunne <debunne@google.com> |
fix for cts DuplicateParentStateEnabled bug with TextViews. Bug 3347206 Do not add an extra slot in the drawable state for multiline if it is not needed. Updated setDuplicateParentStateEnabled documentation. Change-Id: I95f74284721e25b483e12e9b861e810a55c260b6
/frameworks/base/core/java/android/widget/TextView.java
|
02d2b3ba9ba830a8147db2739613f7bbb2d0fcbf |
|
11-Jan-2011 |
Christopher Tate <ctate@google.com> |
API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly" There will be, in the future, a flag (View.DRAG_FLAG_GLOBAL) that means for the drag to be cross-application. For now that flag constant is @hide and furthermore the server-side implementation strips it, enforcing local-only drags. Change-Id: I8db840480ab90e18a5b8ecf29d62b4e6eafd405e
/frameworks/base/core/java/android/widget/TextView.java
|
7014b12873068f109f58b9d0ad4116fd8d4bf22f |
|
11-Jan-2011 |
Leon Scroggins <scroggo@google.com> |
Find when pressing enter. Call onClickListener in TextView. Bug:3313519 In Find ActionMode, Enter should call find on page (rather than advancing focus to the WebView). In TextView, pass and Enter key down to super, so that the pressed state can get called properly, and the onClickListener will fire. Change-Id: Ia875fa6b5cf02565a0d066a009e68ce97718b032
/frameworks/base/core/java/android/widget/TextView.java
|
d94f8c5055713a62dcea0b24a56273fb12442fc0 |
|
10-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Stop text selection mode when new text replaces selection. Rationalized the use of hideControllers and stopSelectionActionMode. Hiding the selection controller should be done exclusively by stoping text selection mode. Bug 3322636 Change-Id: I30b4a651aa5fb5a865d636bec495a2b96ef114cd
/frameworks/base/core/java/android/widget/TextView.java
|
b0db5940c9c444d79f0bcae6526f390a99c01037 |
|
04-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Fix for an NPE in Account settings on long press. Bug 3333512 Change-Id: Ief79e824b86b964598f00ef74c6b5c61c0730242
/frameworks/base/core/java/android/widget/TextView.java
|
36d4c3f02b4c3366b965896bc3da8bb332db1a64 |
|
07-Jan-2011 |
Christopher Tate <ctate@google.com> |
Rename drag "thumbnail" to the drag "shadow" No functional changes; just a rename of the relevant class/method/parameters. Change-Id: I55d9ef7c2c17892b0bc99f5da622c281e006b53e
/frameworks/base/core/java/android/widget/TextView.java
|
79ff914f2183a5f0a4121ef06112409e1c699ae7 |
|
07-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Added support for Unicode surrogate characters in word selection Inspired by https://review.source.android.com/#change,16606 Change-Id: I896354f5aba83c1919c008f07b6d0b2abf0b8e01
/frameworks/base/core/java/android/widget/TextView.java
|
3dbf55c3a2d993b89d0947885061cf8421930639 |
|
16-Dec-2010 |
Gilles Debunne <debunne@google.com> |
TextView's color transparency is taken into account. Unless it has a background, the TextView will be able to support alpha (text, cursor and highlighted text colors). Background colored spans should be detected and should also multiply their alpha by mCurrentAlpha. Bug 3144861 Change-Id: If640895b8c0b25dc00b909a0a118b68fac0cfd76
/frameworks/base/core/java/android/widget/TextView.java
|
87380bcaebe63bdcd44828f137b2b2b0ba952f0a |
|
04-Jan-2011 |
Gilles Debunne <debunne@google.com> |
Added support for asian characters in text selection. Inspired by https://review.source.android.com/#change,16606 Test class has been revamped to mimic new behavior: selectCurrentWord is no longer used to add words to the dictionary. We rely on the suggestion bar in the IME for that. Change-Id: I1cb88df54dffb166c75f75fefb743ff55a33519b
/frameworks/base/core/java/android/widget/TextView.java
|
c0752ee7ce70ee0ebc537a67117e9f5d3b852d2e |
|
23-Dec-2010 |
Gilles Debunne <debunne@google.com> |
No spaces are inserted around pasted text when there are already new lines. Bug 3304489 Change-Id: I3c1bf915a2e20f87ed3cec3c30dbcc884bf6b46f
/frameworks/base/core/java/android/widget/TextView.java
|
da0a3f03a1eef3fd93266d00aa94f2e1a4f65236 |
|
22-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Multi-line EditText background is set using a state. Step 2. See change 86347 for Step 1. New state_multiline state flag, handled in TextView drawable background drawables. Change-Id: I230df16c7ddee3296da180fd80ef341a4ac17dc0
/frameworks/base/core/java/android/widget/TextView.java
|
b2316968cfb96148ebcff268afd32f98150a8869 |
|
22-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Multi-line EditText background is set using a state. Step 1/2: remove the previous code that relied on a specific theme attribute. Bug 3214105 Change-Id: Ib4fc55a9093d64e69ac798ec56503ccdb284cbec
/frameworks/base/core/java/android/widget/TextView.java
|
c01f3feeb09b96f666c35fa1858ab3034599a452 |
|
23-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Text selection is preserved upon device rotation. Note that this used to create problems with ExtractEditText. These potential issues were not handled in that CL. Bug 3236848 Change-Id: I4b83ce8f66eba04f34c2faa8e38b83eb992637f0
/frameworks/base/core/java/android/widget/TextView.java
|
82d731ac5d28fb54c49948116786813a62b07b8b |
|
24-Dec-2010 |
Ken Wakasa <kwakasa@google.com> |
Add TYPE_NUMBER_VARIATION_PASSWORD for entering a numeric password. Also, bug fix in EditoInfo.makeCompatible(). bug: 3296883 Change-Id: Icc663b375cffbe1f4506d1758d624a1acca3576b
/frameworks/base/core/java/android/widget/TextView.java
|
c1df907e3950fd8d2efac110edd72ea07b3b441e |
|
22-Dec-2010 |
Jeff Brown <jeffbrown@google.com> |
Support invoking key shortcuts using Control. This enables Select All, Cut, Copy and Paste behavior in TextViews and provides a general pattern for implementing additional keyboard accelerators based on Control key shortcuts. The same shortcuts also apply to menu accelerators. Bug: 3286262 Change-Id: I7d458ee26abf51e0de1735ce490ce3baf504b471
/frameworks/base/core/java/android/widget/TextView.java
|
f3895edf4b21e1083b58cdb36b93223ecaa98ca8 |
|
21-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Links are clickable in TextView when textIsSelectable. Bug 3299410 Change-Id: I921c9eecbfef1d81b0d0e2ad2129400c58f165a1
/frameworks/base/core/java/android/widget/TextView.java
|
4e6319b73c85082e18d1c532b86336ddd1f8cfaa |
|
13-Dec-2010 |
Jeff Brown <jeffbrown@google.com> |
Add initial support for TAB navigation. Bug: 3286652 Change-Id: I813a0318b3b8d9c9bc791ea6a2427be11c08de00
/frameworks/base/core/java/android/widget/TextView.java
|
4dfe08632f32a21650b030886e823988b900ed3f |
|
18-Dec-2010 |
Gilles Debunne <debunne@google.com> |
AutoLink identified spans are selected when long pressed. Do not rely on standard word detection for these (which does not work because of / or . in URL or - in phone numbers). Various other bug fixes for text selection with autolinks. Change-Id: I482e99efa980281086ce761b27b3a36579e7cf76
/frameworks/base/core/java/android/widget/TextView.java
|
cbcb345ccddf8cbb61d58a9f2ecbe0cc9e6d3a6b |
|
18-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Made text selectable even when autolinks are activated. Refactor for canSelectText. Moved test from onCreate to startTextSelection. Restored setFocusableInTouchMode needed to start a selection in touch mode. Bug 3296490 Change-Id: I5c0c31dbebed79fd1f9d80f930cba1019d74f710
/frameworks/base/core/java/android/widget/TextView.java
|
e12f99984e0a7f0efaab0e221a6b881b8be8d720 |
|
17-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Removed focusableInTouchMode flag for selectable text. Change-Id: I7aaa08328cc22d6cd920b3bc2661de79c5fb1402
/frameworks/base/core/java/android/widget/TextView.java
|
066460f3ba78ed22634939e8eaf0544ca9f56380 |
|
16-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Fix for testAccessTransformationMethod cts test. Single line textView should impose their number of lines and their transformation method. Bug 3289818 Change-Id: If1f1252ded1250e2aff85f1c615cc2e17026ba1d
/frameworks/base/core/java/android/widget/TextView.java
|
33a8cfb0af2e1d5983bc128007ded21bcc4f2da9 |
|
10-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Show keyboard when user starts a text selection. Bug 3266297 Change-Id: I1985ab52ae867c4a6c92279986cd6d0654614118
/frameworks/base/core/java/android/widget/TextView.java
|
96e6b8bfc82e04d06923c372657768b4866e4fb9 |
|
14-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Remove line height attribute from TextView. This attribute was introduced in HC and is only partially supported. It should actually also be used by the layout to be meaningful. Bug 3223987 Change-Id: Idb47be319a236326f7624fd865466356c19bc342
/frameworks/base/core/java/android/widget/TextView.java
|
31d48946534c27390916f6ce62e47962a61216ce |
|
14-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Removed no longer used longPressCallback in TextView Change-Id: Iadac5579764ef14c2ec7a677c686a396cedc31fa
/frameworks/base/core/java/android/widget/TextView.java
|
2bc248b698b17fd333beae828039a8bff7604a9f |
|
14-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Off by one index error in word selection Change-Id: Ia6b14b22cc5cf65a235bcdf7cbec48bd76f74460
/frameworks/base/core/java/android/widget/TextView.java
|
a3ae4a06569afbbf135692b8d55289117c42b205 |
|
14-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Make TextView respect the maxLines attribute. Bug 3186626 Restore some of the changes introduced in CL 78854. Also added a few comments to the documentation. Change-Id: I775be85c33ebe4a2384a40b21eec57f34fddcd33
/frameworks/base/core/java/android/widget/TextView.java
|
6f100f3895a4b572e2f1d031867b23ca733e3570 |
|
14-Dec-2010 |
Gilles Debunne <debunne@google.com> |
setTextIsSelectable documentation updated. Change-Id: Ib48c3b8bba606d8874b92fe56da99eab4f335056
/frameworks/base/core/java/android/widget/TextView.java
|
7eeba5fad54f7bd043bc1629b2f506e5d6780607 |
|
11-Dec-2010 |
Gilles Debunne <debunne@google.com> |
TextView's runnable are stopped when the View is detached. Stopping all Runnable thread that would otherwise keep a reference on the context, thus preventing the activity to be recycled. All Runnable are now also lazily created. Change-Id: Idb93603c20cb3e847ae56eb842c64af6c5b82523
/frameworks/base/core/java/android/widget/TextView.java
|
aa85a4c8b7abf82c54ecbad29e4266581c65c3f9 |
|
07-Dec-2010 |
Gilles Debunne <debunne@google.com> |
A long press on the insertion handles triggers the selection. The distance threshold has to be tuned before this feature can be validated. Change-Id: I233ebc4a1d2d495279818d34496e8b17bbd76752
/frameworks/base/core/java/android/widget/TextView.java
|
07a11f4967911cb5fc332b6a73304f20ebf94566 |
|
10-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Selecting text from a punctuation sign selects previous word. Cherry picked from a revert in https://android-git.corp.google.com/g/#change,82252 Change-Id: I141bbff2a0f9a8ab40f10c59fc1280b94b38e4b6
/frameworks/base/core/java/android/widget/TextView.java
|
12d91ce8e3e9b96329860e9fecdf3573ef17b0a1 |
|
10-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Added visual feedback to text correction. Change-Id: Id2b85b7b649a59a2666157c7ff540858b1ad403c
/frameworks/base/core/java/android/widget/TextView.java
|
cf9cf2f40efc4ccf3f73e6fdb07725d9c00c4f91 |
|
09-Dec-2010 |
Gilles Debunne <debunne@google.com> |
New API in InputConnection to signal IME's text correction. Scafolding so that the IME team can start working on this feature. The animation part in the TextView is missing. Change-Id: I8225538564370fba1500e3539742a8ab79bdd199
/frameworks/base/core/java/android/widget/TextView.java
|
f7ae52585538b50617a9057d7579403d49a463a1 |
|
09-Dec-2010 |
Gilles Debunne <debunne@google.com> |
SelectAllOnFocus text fields do not display the insertion handle when focused. Change-Id: Ieb0dfe37498a339a781098134f4a0dd7f40193ec
/frameworks/base/core/java/android/widget/TextView.java
|
6da7e935f9a36ae2246a5e4ad713e495880b3dea |
|
07-Dec-2010 |
Gilles Debunne <debunne@google.com> |
No NPE in Browser when pasting in WebTextView. Bug 3258790 Change-Id: I25d67ee85babb1bb3e4d05ea7b4e4d3756c60411
/frameworks/base/core/java/android/widget/TextView.java
|
f48e83b328d47ab8ae8a0bd9bc1a87b127bfb865 |
|
07-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Fix for Blink in TextView. The callback is removed when the window is detached. Prevents weak references to the TextView from being kept. No longer created for non editable texts (!). Hiding the cursor handle when cursor is hidden. Change-Id: Ic92f6cfc5b6ef6460f1edc6b9a564e4153d9c40f
/frameworks/base/core/java/android/widget/TextView.java
|
1cafde04c5003fb58585afa212a103fb96757783 |
|
03-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Moved Paste popup window up in TextView Bug 3228601 A tap on the insertion handle displays the paste popup immediately. Tapping again hides the popup. Bug 3248651 Change-Id: I5a501b3ebe36e23cbbf0f1b3d588884c6ecd1d56
/frameworks/base/core/java/android/widget/TextView.java
|
aaa8479a97742c71a1be0c003b725becda68f76b |
|
03-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Made TextView use the new localState API for drag info Change-Id: I5448bd45d20fab5a541382e101556f5c9d8ea1e4
/frameworks/base/core/java/android/widget/TextView.java
|
f4dceb19465dd708bc87e82cd071d56d370acdeb |
|
02-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Customized text selection action mode. Refactored to use a custom Callback instance instead. This instance can be shared by different TextView, which no longer have to be overloaded. Change-Id: I4749905d8e2057dab2b3ded62bd7c388d13d4e57
/frameworks/base/core/java/android/widget/TextView.java
|
407b4e91fe7627545b8110e683953353236b4543 |
|
01-Dec-2010 |
Christopher Tate <ctate@google.com> |
API CHANGE: drags can now carry an originator-only object payload When calling startDrag(), the app can now supply an Object to be passed along in every DragEvent that the app winds up receiving itself. This object is *not* passed to any other applications; it's strictly app- local. The purpose is to allow state tracking/management to be done directly through the drag mechanism rather than requiring out-of-band code. An example of the utility here might be TextEdit widgets. A drag that starts in one TextEdit but ends in a different one should be treated as a copy/paste operation, where the originating TextEdit is not altered. However, a drag that starts and ends in the *same* TextEdit is a 'move' operation within that TextEdit; the text is removed from its original position and inserted at the drop point. To support this easily, the drag/drop code in TextEdit can now pass a pointer to the originating view as the local state object. Then, the drop recipient could tell whether the drag started within the same TextEdit without needing to implement any other out-of-band state tracking. This CL (and its accompanying CLs in a few other packages where the startDrag() API is being used) adds the new local-state parameter to the API, but does not actually change the behavior of any existing clients. Change-Id: Icba73b2ab4a650b7a94485a19633065b0ef9058c
/frameworks/base/core/java/android/widget/TextView.java
|
2825366c5653659939db1e98aaf8e130cdfd9d96 |
|
01-Dec-2010 |
Gilles Debunne <debunne@google.com> |
A double tap starts selection when done on text only. Change-Id: Id758645d1ebf482a09e35b158e8665d1153db498
/frameworks/base/core/java/android/widget/TextView.java
|
2226a19f7001d5fc807bfd2284cc7eb7715605ce |
|
01-Dec-2010 |
Gilles Debunne <debunne@google.com> |
Refactor onDrop in TextView Change-Id: Ied80565852a452c15c7b7a66cbb05965bead04cd
/frameworks/base/core/java/android/widget/TextView.java
|
0eb704ca7a0844186e0755e86bc4afc23297797d |
|
30-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Tap inside text selection dismisses selection. Change-Id: I8ccc952940d3f1b3a52d506f750019a892380f40
/frameworks/base/core/java/android/widget/TextView.java
|
8e06a63099ffe55f49c5a81aa13113c5c24f78cf |
|
30-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Selection in URL, email, phone, date, numbers selects all Change-Id: Ide3603404f356564e294b7698b52c2d55e314db9
/frameworks/base/core/java/android/widget/TextView.java
|
d803cdef9a3d41d26fbc39aceec94f15199f56e6 |
|
30-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Selection handles no longer fade out. This fade out was mainly introduced for forms with selectAllOnFocus fields, where is hide some content. These no longer trigger selection mode and hence do not display the handles. Handles will be visible as long as selection mode goes on. Change-Id: Ib8c2cc97308a91722f69aa0bb0caccb21d94c2c4
/frameworks/base/core/java/android/widget/TextView.java
|
d1dc72a08193f3e74b21473541379b74124d68a8 |
|
30-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Long press in empty space stops text selection Bug 3240058 Change-Id: I888ee691a0fdc89895db43f9ed01acebf7a0b6d3
/frameworks/base/core/java/android/widget/TextView.java
|
4ae0f29d26825b468ad9d38ef12a121572410646 |
|
29-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Dragging inside the same TextView is a move instead of a copy. Change-Id: I0edbe601455a951354e8671b8bd4d7e6afd6f439
/frameworks/base/core/java/android/widget/TextView.java
|
6d95662f98f4d61e31df8a01ac2e84870a21439e |
|
29-Nov-2010 |
Romain Guy <romainguy@google.com> |
Put @ViewDebug.ExportedProperty back on TextView.mText Change-Id: I68d36ebad07b4ad828c245e1d57ebe0effcc4239
/frameworks/base/core/java/android/widget/TextView.java
|
8df09a0906f2b5307864eee6294eabbae11c7804 |
|
29-Nov-2010 |
Gilles Debunne <debunne@google.com> |
SelectAllOnFocus switches to highlighted mode, not text selection mode Change-Id: Ia0adf561f207e0a82d9588471823da7f5b2f1799
/frameworks/base/core/java/android/widget/TextView.java
|
f076eebd0537561e3d7888c92edaa8b98d82b11c |
|
29-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Restore isTextEditable() method meaning. Change-Id: I52a4e71026396b27ed804d94e8373487a2645212
/frameworks/base/core/java/android/widget/TextView.java
|
0a2aa4036382c1fc42f7cde5fd10049c9f247b21 |
|
25-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Paste popup shows up after a delay on tap. Immediately if there is a recent copy/cut. Change-Id: Ib13f7731eb9b25c39c1b962763b3d16310fe2923
/frameworks/base/core/java/android/widget/TextView.java
|
2a7f346ff110bf2588c27036fd1c86db8e4ea9a8 |
|
25-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Handle hiding timer reset on every move. updatePosition is the centralized place where this should happen. Change-Id: If4aab404ab0f3988af96b8d2cb1b41f39f4afa50
/frameworks/base/core/java/android/widget/TextView.java
|
c4440f039e82d44628146a9f39be7c1fb2d7b792 |
|
24-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Lazy creation of selection and insertion handles. Change-Id: I960f6988e8f4c6f933a40fca7dc860e58a6b67d3
/frameworks/base/core/java/android/widget/TextView.java
|
2880294cc6c7dad418b553f856b85aef112c6432 |
|
24-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Lazily create the paste popup window. Change-Id: I271a790bd652cdcdc221896ede9f99858a24cc7a
/frameworks/base/core/java/android/widget/TextView.java
|
9948ad7b374a152e9794e6800e55872a8f69708b |
|
24-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Long press in empty space moves cursor and shows Paste affordance. Change-Id: I487e9028201a90da76dff5390a64d2d57e7723ea
/frameworks/base/core/java/android/widget/TextView.java
|
e587d838e9c7163ffd0a36f242f73c11e991e924 |
|
24-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Comments on lazy controllers initialization. Also a couple of bug fixes where the field value was used instead of the get method(). Change-Id: Ia2c63158febc136065a6e12755c88e6d23ce6cc1
/frameworks/base/core/java/android/widget/TextView.java
|
710a910e73c2b62d55296be53f4576d53ed2ff97 |
|
24-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Long press starts a new selection if one is already started. Change-Id: Ide525ff0021cf145bb5d2b8db2d09b7b7909289b
/frameworks/base/core/java/android/widget/TextView.java
|
1ca562635117e10fae0888689909e6c39d66b0a4 |
|
18-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
Alter the Layout of WebTextView to match webkit. Bug:3085564 In order to treat the selection handles properly, the text in WebTextView needs to line up with the text in webkit. Use the line spacing style, or the paint if none provided, to determine the spacing for WebTextView's Layout. When no line spacing is provided, use the floating point values of ascent and descent, rather than the rounded result, to determine spacing. Requires a change in external/webkit: https://android-git.corp.google.com/g/#change,80641 Change-Id: I51081835e128a0e938028c7c7aeb5111aa5f072c
/frameworks/base/core/java/android/widget/TextView.java
|
77b25a34a2ada61ec796fd1dc2ae3b75e0c039bb |
|
19-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Keyboard is not displayed when selecting read-only text. Change-Id: Id8d1fb7ebd85a36a1e587b4e2bbbabf82aa1bdd7
/frameworks/base/core/java/android/widget/TextView.java
|
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c |
|
11-Nov-2010 |
Jeff Brown <jeffbrown@google.com> |
Added support for full PC-style keyboards. BREAKING CHANGE: Redesigned the key character map format to accomodate full keyboards with more comprehensive suite of modifiers. Old key character maps will not work anymore and must be updated. The new format is plain text only and it not compiled to a binary file (so the "kcm" tool will be removed in a subsequent check-in). Added FULL keyboard type to support full PC-style keyboards. Added SPECIAL_FUNCTION keyboard type to support special function keypads that do not have any printable keys suitable for typing and only have keys like HOME and POWER Added a special VIRTUAL_KEYBOARD device id convention that maps to a virtual keyboard with a fixed known layout. This is designed to work around issues injecting input events on devices whose built-in keyboard does not have a useful key character map (ie. when the built-in keyboard is a special function keyboard only.) Modified several places where events were being synthesized to use the virtual keyboard. Removed support for the "qwerty" default layout. The new default layout is "Generic". For the most part "qwerty" was being used as a backstop in case the built-in keyboard did not have a key character map (probably because it was a special function keypad) and the framework needed to be able to inject key events anyways. The latter issue is resolved by using the special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD. Added the concept of a key modifier behavior so that MetaKeyKeyListener can distinguish between keyboards that use chorded vs. toggled modifiers. Wrote more robust key layout and key character map parsers to enable support for new keyboard features and user installable key maps. Fixed a bug in InputReader generating key ups when keys are released out of sequence. Updated tons of documentation. Currently QwertyKeyListener is being used for full keyboards with autotext and capitalization disabled. This mostly works but causes some problems with character pickers, etc. These issues will be resolved in subsequent changes. Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
/frameworks/base/core/java/android/widget/TextView.java
|
4a0d0b34b244b5b730e861d875e7ae289cbb3311 |
|
17-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Fix for disappearing background in buttons. Change-Id: I7c7058ee8a292e73c25ba8c3e8d46899b7296c1e
/frameworks/base/core/java/android/widget/TextView.java
|
1d1e1105ad2497ba51930b75eea0a5e819044b43 |
|
17-Nov-2010 |
Svetoslav Ganov <svetoslavganov@google.com> |
3049240 TalkBack on Accessibility Options reads out passwords entered in during Lock screen Change-Id: I70b29611d798df1da10e0e950154ef5f49aba7c5
/frameworks/base/core/java/android/widget/TextView.java
|
fe4d5defd07962d622182bcc9a4eb8027ba23e8d |
|
01-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Multiline EditText have top and bottom brackets to differentiate from single line. Change-Id: Iab6da75e7a823018221399c0b03dd47f7f768f21
/frameworks/base/core/java/android/widget/TextView.java
|
965b9699f1f21b5e6236b194f4601134106e6b53 |
|
22-Oct-2010 |
Adam Powell <adamp@google.com> |
Cherry-pick Ib76a95d9e7669016cf11b8b0add8843b438068ea from gingerbread DO NOT MERGE Fix bug 3121030 - Text handles erroneously appear over extract mode IME window Make the SelectionModifierCursorController track its show/hide state more accurately in the presence of an extract mode IME. Lazily initialize CursorControllers so that we don't end up creating them for various TextViews where they are not needed. Change-Id: I3dce7535db3a1bd25ed9899406de47b00058e665
/frameworks/base/core/java/android/widget/TextView.java
|
86b9c78e3e4ecf56cd999faaf3f67d66137b2f05 |
|
11-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Added a flag for TextView that allows for text selection in read-only TextViews. Bug 3101642 Change-Id: I5538e507043c89b02c07f3e1c1abc74a93467427
/frameworks/base/core/java/android/widget/TextView.java
|
d7483bfffcbbd4715a9e3cc2c704fb702ec529bf |
|
10-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Lock screen should not display password. Bug 3179062 Problem was introduced in CL 78854: changing the keyListener should not change the transformation method. mInputType changes are brittle. It is often reset to TYPE_CLASS_TEXT or to mInput.getInputType(). The TYPE_TEXT_FLAG_MULTI_LINE and TYPE_TEXT_VARIATION_PASSWORD variation are then added back based on the previous state. But this is not consistent, and sometimes, only one of those is set. This should be refactored if a bug is found in what seems to work correclty at the moment. Change-Id: Ie251ec7db0ce0af4a07564b0dbb53465e6f361c6
/frameworks/base/core/java/android/widget/TextView.java
|
f170a345b3effa57a545938f4624d9c7142694f5 |
|
11-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Added drag and drop functionality in TextViews Basic implementation. The finger is currently hiding the insertion position. An offset has to be added in DragThumbnailBuilder to prevent this. Change-Id: I4207c337a2a31162063fba191a5eb5d5856b24cf
/frameworks/base/core/java/android/widget/TextView.java
|
91a08cfc4f8111ed66e51f9471e956d201cc8b60 |
|
09-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Rationalized singleLine in TextView, take 2. Same as CL 77435, but without the default singleLine value change. Change-Id: I04794ed72716bbe5a285d2bbbb3f536308e5972f
/frameworks/base/core/java/android/widget/TextView.java
|
f95449dc383f617d597db5a8b23682ff18ffcac0 |
|
05-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Revert "Rationalized the single/multiple line initialization in TextViews." This reverts commit 10644106b819acad4f88c3882d5688638951728c. Conflicts: core/java/android/widget/TextView.java Change-Id: I597314363f6ee06dbc475583ffe5dcc7eb543f88
/frameworks/base/core/java/android/widget/TextView.java
|
e213677037f836529efcc0ac201fc61dd95481c5 |
|
04-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Push the jumpDrawablesToCurrentState() thing off everywhere it should be. Also add a new interface that items in AbsListView can implement to adjust the bounds of the selection shown for them. This will allow contacts to use list view's regular selection facility rather than implementing something special in their item views. Change-Id: I29cbdbc7122111ee97e47fe7d6ec55ff07be79cc
/frameworks/base/core/java/android/widget/TextView.java
|
b5ce0e05327b4b76da49d2bd3944e66c38c8cb69 |
|
01-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
Use the new web email and password variations. Bug:2460543 Bug:3094312 Bug:2692655 Bug:2710595 Use the NEXT flag when there is a following textfield. In TextView, treat the new variations like email and password variations. Requires a change in LatinIME so that these fields work propely: https://android-git.corp.google.com/g/#change,77721 Change-Id: Id6517a016db7d50b77570ff77f2635027796da4a
/frameworks/base/core/java/android/widget/TextView.java
|
10644106b819acad4f88c3882d5688638951728c |
|
01-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Rationalized the single/multiple line initialization in TextViews. The TYPE_TEXT_FLAG_MULTI_LINE was set directly, instead of calling setSingleLine, which has some side effects, like correctly updating the mSingleLine field. Generalized the use of setSingleLine everywhere. This may change some behavior, but is probably fixing more state inconsistencies. Change-Id: I6b4da2e140a8dc75481cff9e44473daa6b3a83c4
/frameworks/base/core/java/android/widget/TextView.java
|
e1c14e6a9444b1a90aefec801a3aaf4e8bb43543 |
|
04-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Tapping on paste popup with an empty clipboard does not crash in TextView. Change-Id: I5730ec46582862c6233a9e3a2d4bf695cd2c3e69
/frameworks/base/core/java/android/widget/TextView.java
|
3c5e94335af44d862c6c936fb1f5f41141571038 |
|
03-Nov-2010 |
Gilles Debunne <debunne@google.com> |
Tapping in a empty textEdit shows the handle. So that the user can paste in that field, by tapping on the handle. Change-Id: Ib43291fb78ded7c9b41c52cf3030fe0144d085c3
/frameworks/base/core/java/android/widget/TextView.java
|
c826a69355623ed0e812faa1947259464a4364dd |
|
01-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
Merge commit '55381217' into manualmerge Conflicts: core/java/android/webkit/WebView.java Change-Id: I1e93881a55c1d81c1142db03498c68196649b69c
|
553812178ad3dccc467a6a96ff0a7e246da52e8e |
|
01-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
am 3073646f: Merge "Update insertion handler for WebTextView." into gingerbread * commit '3073646f61dcbbfe5c9e65b8e3a1d9266c3f7276': Update insertion handler for WebTextView.
|
5642625cfb065de38440408c1e2e8a8c6f8fa32d |
|
01-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
Update insertion handler for WebTextView. Bug:3152629 Change-Id: If2a33eb5456493fb9b3b2c54fcc4f5348fe129e1
/frameworks/base/core/java/android/widget/TextView.java
|
dea3ef7967228f0ddcc03f2455a4f1254758e584 |
|
28-Oct-2010 |
Dianne Hackborn <hackbod@google.com> |
Add new resize mode to not resize, new web input types. Change-Id: Ib098c03793d08532c3c099b59d0cc6b567e54900
/frameworks/base/core/java/android/widget/TextView.java
|
7b9652b66b76b90fd95952c42a4f82965ed80d72 |
|
27-Oct-2010 |
Gilles Debunne <debunne@google.com> |
New Paste view on top of insertion point in TextViews. Tapping on the insertion handle displays a new pop-up dialog that allows to paste. Select all icon removed. Change-Id: I6b8c088dd5930c3f67b38928fd43cdd5c9da0904
/frameworks/base/core/java/android/widget/TextView.java
|
5347c588465b66ee7cc6169c87928d22d347bae3 |
|
27-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Text selection can be started with a double tap in TextView Cherry picked from CL 73484 in GB. Change-Id: Ieb6ee5b4bf85226a8c488f78f5ff00a57fc031b8
/frameworks/base/core/java/android/widget/TextView.java
|
44c1473c03a0021224fa94af9b1e3579ec244b12 |
|
19-Oct-2010 |
Gilles Debunne <debunne@google.com> |
New Holo style for Tabs. Holo theme with new assets and style for TabWidgets. Legacy Themes still use GB style. Assets added in a previous bluk update were removed. Change-Id: Ia4a612678561fa5047bbd2a72488086c0f3d61a1
/frameworks/base/core/java/android/widget/TextView.java
|
77f18b0b83cfdb49c5b115b1c8285f975065366b |
|
22-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Fix for 3124993. Crash in Browser on long press. Change-Id: I88c50e3abd3e3a25f92bcc51163b1ef9e62d2afb
/frameworks/base/core/java/android/widget/TextView.java
|
276bb3a32794097918671780ea9d39aea522aa41 |
|
21-Oct-2010 |
Jean-Baptiste Queru <jbq@google.com> |
am 843ff92b: resolved conflicts for merge of 5d919b43 to gingerbread-plus-aosp Merge commit '843ff92bb0f2ff259145fd90333b0a50d8bbf342' * commit '843ff92bb0f2ff259145fd90333b0a50d8bbf342': Make disabled TextViews uneditable
|
843ff92bb0f2ff259145fd90333b0a50d8bbf342 |
|
21-Oct-2010 |
Jean-Baptiste Queru <jbq@google.com> |
resolved conflicts for merge of 5d919b43 to gingerbread-plus-aosp Change-Id: I8b8a8dfdd99052f3d43a0feb47168876b41e336d
|
b82213d54bec0b11625e96d105763562ad78c258 |
|
19-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 6775754a to master Change-Id: Ib03417aa3f13839b7fdf24f7d66b2d449589d41e
|
d7d3ad477cce27bf968b5f07691b958bfea22c34 |
|
18-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Fix for text selection at end of line. Bug 3106935 Change-Id: Ieee7f50385baae359db45472ffc800a01956cb40
/frameworks/base/core/java/android/widget/TextView.java
|
6775754ae3b765e50466048ab02a8d43d0ea6c61 |
|
18-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 3d01cb93: Merge "Removed "Select word" option on password fields." into gingerbread Merge commit '3d01cb934ba2c5161689834d49f520313e554571' into gingerbread-plus-aosp * commit '3d01cb934ba2c5161689834d49f520313e554571': Removed "Select word" option on password fields.
|
042856c1de6cdce854641aaecd68a689c5ba64f3 |
|
15-Oct-2010 |
Janos Levai <digistyl3@gmail.com> |
Make disabled TextViews uneditable Fixes Issue 2771 From now on: disabling a TextView closes the associated on-screen keyboard selecting a disabled TextView does not open the on-screen keyboard can't edit contents if the disabled TextView focus is gained by the directional keys Change-Id: I44e3c0aff2a0ce1e6426818bfe16c1d19c7c18ac
/frameworks/base/core/java/android/widget/TextView.java
|
0dcad2bd017227b5cc186e657b5b24b52a00a1c8 |
|
16-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Removed "Select word" option on password fields. It would return an arbitrary selection around current position. Rely on select all instead. Bug: 3100750 Change-Id: I73d995e6481d7c230cc9f334c72fbfb7e9828007
/frameworks/base/core/java/android/widget/TextView.java
|
65f604100627eae6d71df41e427fe74f7994e00e |
|
16-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Fix for broken build with stopTextSelectionMode Change-Id: I1a235db0a0373fed16b62a85df3a0f1411e412be
/frameworks/base/core/java/android/widget/TextView.java
|
672a2531ae69f3a9bc14bd534ad33e540a38672a |
|
15-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 4fa7f4f4: am 53ea7f58: Merge "Really leave text selection mode when using the trackball." into gingerbread Merge commit '4fa7f4f4963568258a6b4179176de8386cb5d3db' * commit '4fa7f4f4963568258a6b4179176de8386cb5d3db': Really leave text selection mode when using the trackball.
|
4fa7f4f4963568258a6b4179176de8386cb5d3db |
|
14-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 53ea7f58: Merge "Really leave text selection mode when using the trackball." into gingerbread Merge commit '53ea7f58c071563b7c5dd0061df39d3b4bf38a63' into gingerbread-plus-aosp * commit '53ea7f58c071563b7c5dd0061df39d3b4bf38a63': Really leave text selection mode when using the trackball.
|
a8b6dad8e5c23f6ade3ccc6010a8915a41d6fbf9 |
|
14-Oct-2010 |
Adam Powell <adamp@google.com> |
am 4af1de39: am fb6431c0: Merge "Fix bug 3064135 - do not allow text handles on TextViews in sub windows." into gingerbread Merge commit '4af1de39ab36cbff08075e654db516526ff9038d' * commit '4af1de39ab36cbff08075e654db516526ff9038d': Fix bug 3064135 - do not allow text handles on TextViews in sub windows.
|
d97b7f20b84d3e2f9131329a2deb417ccd5f3004 |
|
14-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Really leave text selection mode when using the trackball. Bug 3086617 Change-Id: I04c7f5b59d41ed294ac10c20588d2ea476f9d7f6
/frameworks/base/core/java/android/widget/TextView.java
|
909cbaf8f92d69f507bbdba9e5aa960d1e6c7a1f |
|
14-Oct-2010 |
Romain Guy <romainguy@google.com> |
Don't draw TextView's alpha layers when not needed. Change-Id: Iedf42cbc62d727f18500c78fcccf2d081a761fec
/frameworks/base/core/java/android/widget/TextView.java
|
d8404b23739b135060ab9a04317a9f8b990cf8ca |
|
13-Oct-2010 |
Adam Powell <adamp@google.com> |
Allow icon+text action buttons Change-Id: I96d1f3958de3ac13cadbab108b87d6bae96e9473
/frameworks/base/core/java/android/widget/TextView.java
|
78996c9376ec8568e2bf9fbdee07f618936a7667 |
|
13-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Changed Cut/Copy/Paste assets. New assets, in dark/light version. Made public attributes of the Theme, so that they can be customized. Select_all was not included in that change. It is supposed to be represented as text instead of an icon. Waiting for a CL that enables this feature. Change-Id: Icc912b2eb582295c60c0a409760d2c3d65989fc6
/frameworks/base/core/java/android/widget/TextView.java
|
4af1de39ab36cbff08075e654db516526ff9038d |
|
13-Oct-2010 |
Adam Powell <adamp@google.com> |
am fb6431c0: Merge "Fix bug 3064135 - do not allow text handles on TextViews in sub windows." into gingerbread Merge commit 'fb6431c0298747d240fcdc025575e5f46db95132' into gingerbread-plus-aosp * commit 'fb6431c0298747d240fcdc025575e5f46db95132': Fix bug 3064135 - do not allow text handles on TextViews in sub windows.
|
8c8293bc4dc1930d5b6a74e3abfe955a433af725 |
|
12-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3064135 - do not allow text handles on TextViews in sub windows. Change-Id: I35db64d0a5c92c8ad184b36d243e45c91d4ac46e
/frameworks/base/core/java/android/widget/TextView.java
|
fe14293f58c47a69a0f0427163e27e8f748f03b7 |
|
11-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 2da9338c to master Change-Id: I0a5d667b578e23c064ebe7bacc898125fbf40cc2
|
be4d68e7b238b8ee879de0481e39c40d3f1683b6 |
|
09-Oct-2010 |
Adam Powell <adamp@google.com> |
Updated styles and metrics. * Added preliminary ButtonGroup support for buttons that display as a unit. * Fixed a bug with MenuBuilder that caused old-style icon menus to fail. * Added support for explicitly setting line height in text. Change-Id: I1ba65f09dd9e1bc833d247ebe72052a21e3f99f0
/frameworks/base/core/java/android/widget/TextView.java
|
569a4bbae11789dd00412355f238b0a32d75a8df |
|
11-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 42dd7ec9 to master Change-Id: Id388745d7ec22c48b34b744d5a4c07097cf2650b
|
a20e87347605a625d557c4b9c721fb2e560573ee |
|
11-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of d7d47941 to master Change-Id: I4ec47b9461c5ba350adfc257bc1820ee079b751e
|
7499a1ca68ba115efcf53f6a06520c579c44364d |
|
11-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 5d146549 to master Change-Id: I96c720b9afd4a28d27ed00020551f791e8aefa2b
|
0acb0d7a4b9cb684bff6e70b4c41002fb45adc04 |
|
10-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am b72a335a: Merge "Voice input replaces selected text." into gingerbread Merge commit 'b72a335a7f11176838d2d12e7295344c092c62ac' into gingerbread-plus-aosp * commit 'b72a335a7f11176838d2d12e7295344c092c62ac': Voice input replaces selected text.
|
a89af70cdcc3ace1d1d641fa302c6162f4132339 |
|
10-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of bd38710b to master Change-Id: I3489b6909ce2a215318d45f809b82579503fd733
|
e507a9e4af9cd8a7333e2951649ac106829f7a45 |
|
10-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Voice input replaces selected text. Bug 3068128 Hiding controllers no longer stops text selection. Change-Id: Ie00c99948b3a14ce8a4a2a93c064c0635cadc993
/frameworks/base/core/java/android/widget/TextView.java
|
707fb0e0e56997a33ae59ffc001344602f3b7b14 |
|
10-Oct-2010 |
Adam Powell <adamp@google.com> |
am b3616395: am f15dfbec: Merge "Fix bug 3071869 - text anchors are now treated as application sub-panels." into gingerbread Merge commit 'b3616395660498ecfd2099b5ffcb9ff74e5aeaee' * commit 'b3616395660498ecfd2099b5ffcb9ff74e5aeaee': Fix bug 3071869 - text anchors are now treated as application sub-panels.
|
d856b1ce92b0d14b4e5b87d02f746e0d6ae7dc87 |
|
09-Oct-2010 |
Adam Powell <adamp@google.com> |
resolved conflicts for merge of 86b50028 to master Change-Id: I3468e67ac17f861c5491717337c27cd49bd5287e
|
42dd7ec9f03f169d373c3753d52eb5632ab5b142 |
|
09-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am a827d7bc: Merge "Other improvements to text cursor movement." into gingerbread Merge commit 'a827d7bc347ce6f1a0074dd9fe515919a35a38a9' into gingerbread-plus-aosp * commit 'a827d7bc347ce6f1a0074dd9fe515919a35a38a9': Other improvements to text cursor movement.
|
380b604a033268992017a248d1c74058e8ba9541 |
|
09-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Other improvements to text cursor movement. Paste happened on pressed position instead of current cursor location when triggered by a long touch. Change-Id: I86900f2bbb93390d3efa756aeebb424c4ae7e19b
/frameworks/base/core/java/android/widget/TextView.java
|
d7d47941a92137fa5c1ba04ba67ad87911347b6b |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 50662f5f: Merge "TextView cursor and selection improvements." into gingerbread Merge commit '50662f5f04d69b9ec0335f17cfbf6c035bd86577' into gingerbread-plus-aosp * commit '50662f5f04d69b9ec0335f17cfbf6c035bd86577': TextView cursor and selection improvements.
|
528c64887e01dd6a9d802d657838499b9fac0cb2 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
TextView cursor and selection improvements. Insertion cursor handle no longer appears on empty text views (Bug 3075988). Tapping on an unfocused TextView moves the insertion point at tapped position. Bug fixes for trackball initiated text selection. Change-Id: Ief246fd9a9f1eb745dcf9f0605e2ce53b5563f01
/frameworks/base/core/java/android/widget/TextView.java
|
5d1465490c1b2c18b5425cfc14b405f45b61e281 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 56e9b8eb: Merge "Long press with trackball selects word under cursor." into gingerbread Merge commit '56e9b8ebb20a992a80696f933a2225544670ef8b' into gingerbread-plus-aosp * commit '56e9b8ebb20a992a80696f933a2225544670ef8b': Long press with trackball selects word under cursor.
|
c8731128108ece45cb8e1b359b8badea3a750346 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Long press with trackball selects word under cursor. Bug 3068305 Change-Id: Ib37fc98a61efdf3fbfccbb2174e2dbdbcb1a240e
/frameworks/base/core/java/android/widget/TextView.java
|
cf1e925aa1691fc1daa94e763be7cd8804ea7481 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of ba04dbc6 to master Change-Id: I175aa21ef01b98b0c3c46aea0b754d14984128b9
|
bd38710bdef93d9a1b48a1f608b6e6184f43bb51 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 3ecceb5b: Merge "TextView refactoring to ease future merges in HC." into gingerbread Merge commit '3ecceb5b94233320ed88825759d6118fed7add2c' into gingerbread-plus-aosp * commit '3ecceb5b94233320ed88825759d6118fed7add2c': TextView refactoring to ease future merges in HC.
|
cbfbb524af3271d987a2c8dd8c3a1087ac134466 |
|
08-Oct-2010 |
Gilles Debunne <debunne@google.com> |
TextView refactoring to ease future merges in HC. Change-Id: I979324b28fa4ca787e5836271c9014bca590c595
/frameworks/base/core/java/android/widget/TextView.java
|
b3616395660498ecfd2099b5ffcb9ff74e5aeaee |
|
07-Oct-2010 |
Adam Powell <adamp@google.com> |
am f15dfbec: Merge "Fix bug 3071869 - text anchors are now treated as application sub-panels." into gingerbread Merge commit 'f15dfbec5df911f4cedd3e302864496d77ce295b' into gingerbread-plus-aosp * commit 'f15dfbec5df911f4cedd3e302864496d77ce295b': Fix bug 3071869 - text anchors are now treated as application sub-panels.
|
574b37ecc20a5358cb6147dae6d633385467ab55 |
|
07-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3071869 - text anchors are now treated as application sub-panels. This places text anchors on a layer above normal application panels, ensuring that they stay above things like the browser autocompletion list. Change-Id: I4ee0aea7416a2dafd7e48a7a39acf949af5db3e9
/frameworks/base/core/java/android/widget/TextView.java
|
86b500289bffd8ce51e57e17d42741a202dd9ffd |
|
07-Oct-2010 |
Adam Powell <adamp@google.com> |
am fbb3b476: Fix bug 3066313 - integrate new text anchor assets. Merge commit 'fbb3b4768e858f004fe9a87e83b066244c829d87' into gingerbread-plus-aosp * commit 'fbb3b4768e858f004fe9a87e83b066244c829d87': Fix bug 3066313 - integrate new text anchor assets.
|
fbb3b4768e858f004fe9a87e83b066244c829d87 |
|
07-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3066313 - integrate new text anchor assets. This adds the differentiated left/right anchors for hdpi and further tweaks the behavior of text anchors. Highlights: * New assets are translucent - increased visibility for whatever is beneath. * Start and end anchors may not cross one another. * Minimum selection size is now 1. * Touch targeting tweaked. Change-Id: I601361323916ee19149562a23dc3242d908da45c
/frameworks/base/core/java/android/widget/TextView.java
|
6ed895a4fa729f6673e11336a1d3bf8db51b2502 |
|
07-Oct-2010 |
Adam Powell <adamp@google.com> |
am 41170a1a: am abcbb1a1: Fix bug 3061544 and some clipping errors. Merge commit '41170a1a05830e6c9ec631d73043ccf1878dc0f9' * commit '41170a1a05830e6c9ec631d73043ccf1878dc0f9': Fix bug 3061544 and some clipping errors.
|
ba04dbc6cd9ea2f504b76657c85e476a795e9b5b |
|
06-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 671b2a57: Merge "Fix for IndexOutOfBounds in text pasting." into gingerbread Merge commit '671b2a57bb5a2a8669d1dabe65b4080804ee350a' into gingerbread-plus-aosp * commit '671b2a57bb5a2a8669d1dabe65b4080804ee350a': Fix for IndexOutOfBounds in text pasting.
|
330e263c4af03c6f6413e0199a2e78125ffbc185 |
|
05-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Fix for IndexOutOfBounds in text pasting. Made paste safe even in case of replace problems due to filters. Bug 3042016 Change-Id: I9be34fa41fa6117502bbd959f91c562f28fb4237
/frameworks/base/core/java/android/widget/TextView.java
|
41170a1a05830e6c9ec631d73043ccf1878dc0f9 |
|
05-Oct-2010 |
Adam Powell <adamp@google.com> |
am abcbb1a1: Fix bug 3061544 and some clipping errors. Merge commit 'abcbb1a1989e8c6adec607b3964dc187f5526e66' into gingerbread-plus-aosp * commit 'abcbb1a1989e8c6adec607b3964dc187f5526e66': Fix bug 3061544 and some clipping errors.
|
abcbb1a1989e8c6adec607b3964dc187f5526e66 |
|
05-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3061544 and some clipping errors. Change-Id: I124d0bcae080c27e2978be7eecfbb131f101a35f
/frameworks/base/core/java/android/widget/TextView.java
|
8556efe5a34d8fc6ed99f1fdae60fa41b7647920 |
|
05-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am a29643a6: Merge "DO NOT MERGE. Select word no longer selects spaces between words." into gingerbread Merge commit 'a29643a6455df7d3d615cdc45e11c437fe4b6cee' into gingerbread-plus-aosp * commit 'a29643a6455df7d3d615cdc45e11c437fe4b6cee': DO NOT MERGE. Select word no longer selects spaces between words.
|
8c03723da745f44a05b2bc234d4651474071345d |
|
05-Oct-2010 |
Gilles Debunne <debunne@google.com> |
DO NOT MERGE. Select word no longer selects spaces between words. Bug 3000870 This feature was useful to paste between two words. To do this, all you have to do now in to first position the cursor between the words, and then long pressing anywhere to get the pop-up menu with paste. Not merged into HC since the paste story in HC still has to be determined. Change-Id: Iea8d87e09b7ad43658ec5526110e609b9735c27a
/frameworks/base/core/java/android/widget/TextView.java
|
152c7c4091bf7c545b6a5a037cc02f55c4f126e9 |
|
04-Oct-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 115b9dc3 to master Change-Id: I37ee3a50fcafbaa7de510b3af8e133a89bd9e339
|
115b9dc3972ce52cd774856093f8c49a53a962c2 |
|
04-Oct-2010 |
Gilles Debunne <debunne@google.com> |
am 4d3baaf5: Merge "Bug fixes in Text selection." into gingerbread Merge commit '4d3baaf5308ddee43c1cd742497a38806cec6320' into gingerbread-plus-aosp * commit '4d3baaf5308ddee43c1cd742497a38806cec6320': Bug fixes in Text selection.
|
baaace59f68eb7baf6d6526b6678de6cb6de6543 |
|
02-Oct-2010 |
Gilles Debunne <debunne@google.com> |
Bug fixes in Text selection. "Select word" is displayed only when the text field is not empty. Paste is always displayed in first menu. Bug #3001438 Cut/copy works Bug #3052005 fixed in 3047653 Change-Id: I573f04818683f9b1c78ecb4613570b738d30ba09
/frameworks/base/core/java/android/widget/TextView.java
|
937a6f635715f24c4e586d87d093faf86208838d |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am 7e53f3d7: am 624380a1: Fix bug 3047653 - Text select handles stick around when they shouldn\'t Merge commit '7e53f3d70994cfef255953e1df1881d057477d06' * commit '7e53f3d70994cfef255953e1df1881d057477d06': Fix bug 3047653 - Text select handles stick around when they shouldn't
|
7e53f3d70994cfef255953e1df1881d057477d06 |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am 624380a1: Fix bug 3047653 - Text select handles stick around when they shouldn\'t Merge commit '624380a14def6c2acdb473e09c36139acbcefbf9' into gingerbread-plus-aosp * commit '624380a14def6c2acdb473e09c36139acbcefbf9': Fix bug 3047653 - Text select handles stick around when they shouldn't
|
624380a14def6c2acdb473e09c36139acbcefbf9 |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3047653 - Text select handles stick around when they shouldn't Text select handles will now fade out on their own after a few seconds since many apps expect a selection to be persistent while a text field stays focused in touch mode. The user may tap within the selection to bring the anchors back. Text select handles will also disappear upon leaving touch mode. Fix a bug that impaired cut/paste from the context menu. Change-Id: I8f431e2d261aec02581150125d11324a3ee11656
/frameworks/base/core/java/android/widget/TextView.java
|
d4b8cad13b94657ed374e6c5228eb6b093dcd533 |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am 077c79cb: am 03876c90: Fix text anchor fade-out positioning Merge commit '077c79cb43c3b6059a92ba1eb51af94972adadef' * commit '077c79cb43c3b6059a92ba1eb51af94972adadef': Fix text anchor fade-out positioning
|
077c79cb43c3b6059a92ba1eb51af94972adadef |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am 03876c90: Fix text anchor fade-out positioning Merge commit '03876c905f3874f3ac8deb5a23ee0f77d4c04bab' into gingerbread-plus-aosp * commit '03876c905f3874f3ac8deb5a23ee0f77d4c04bab': Fix text anchor fade-out positioning
|
03876c905f3874f3ac8deb5a23ee0f77d4c04bab |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix text anchor fade-out positioning Change-Id: I5660481fb883c28c88e384be2f26e67aa854ec8e
/frameworks/base/core/java/android/widget/TextView.java
|
ef29bb5bc97490dda76c43c8984cbad3b388c1e4 |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am 0d843dc4: am ea32f94e: Fix bug 3058082 - text anchor positioning within moving dialogs Merge commit '0d843dc47929ff6e3dbaa4cc1d07de7fbdba8506' * commit '0d843dc47929ff6e3dbaa4cc1d07de7fbdba8506': Fix bug 3058082 - text anchor positioning within moving dialogs
|
0d843dc47929ff6e3dbaa4cc1d07de7fbdba8506 |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
am ea32f94e: Fix bug 3058082 - text anchor positioning within moving dialogs Merge commit 'ea32f94ec4c14fe21b536139762c5332d1b5484c' into gingerbread-plus-aosp * commit 'ea32f94ec4c14fe21b536139762c5332d1b5484c': Fix bug 3058082 - text anchor positioning within moving dialogs
|
ea32f94ec4c14fe21b536139762c5332d1b5484c |
|
03-Oct-2010 |
Adam Powell <adamp@google.com> |
Fix bug 3058082 - text anchor positioning within moving dialogs Change-Id: I8f0b515c73d2b3055b4072425418f837eb021d4f
/frameworks/base/core/java/android/widget/TextView.java
|
e2dc5260d9fc28b6169054aaf99e8006dd1b9803 |
|
30-Sep-2010 |
Leon Scroggins III <scroggo@google.com> |
Create dummy assets for text selection actions. The new assets are just copies of old assets. However, now the code is set up properly, and when we do get final assets no new code needs to be written, and both TextView and the select action mode for the browser will be updated. Change-Id: I9a1461bf447f6bbc2782d8f948d873cbeeccbcb0
/frameworks/base/core/java/android/widget/TextView.java
|
64e2b7189389118bb5309de3060c856377c0d6de |
|
30-Sep-2010 |
Adam Powell <adamp@google.com> |
resolved conflicts for merge of 6e9a021e to master Change-Id: I5ea823b752e78cb9d2ef7ccec68addbaa9ca66e9
|
6e9a021e961b3c317e92d354e99b963c85fd8952 |
|
30-Sep-2010 |
Adam Powell <adamp@google.com> |
am bc87ada1: Merge "Fix text anchors" into gingerbread Merge commit 'bc87ada10de34c2d7b1301af86d94ed7c4801120' into gingerbread-plus-aosp * commit 'bc87ada10de34c2d7b1301af86d94ed7c4801120': Fix text anchors
|
ba0a2c383ffe4be1fe33a5aa57bc3148c4fd0b7c |
|
29-Sep-2010 |
Adam Powell <adamp@google.com> |
Fix text anchors Change-Id: Iddd5434a1dbeb1adc2143db73ed27df6b575319e
/frameworks/base/core/java/android/widget/TextView.java
|
464fb74e28b6d76d5e741abcdbb714eea2d9b4d1 |
|
27-Sep-2010 |
Jeff Brown <jeffbrown@google.com> |
am 9785bf0f: am 14a288da: Merge "Add suuport for splitting touch events across windows." into gingerbread Merge commit '9785bf0f2b6b8758aed7ded3b996a2ef0be89919' * commit '9785bf0f2b6b8758aed7ded3b996a2ef0be89919': Add suuport for splitting touch events across windows.
|
9785bf0f2b6b8758aed7ded3b996a2ef0be89919 |
|
27-Sep-2010 |
Jeff Brown <jeffbrown@google.com> |
am 14a288da: Merge "Add suuport for splitting touch events across windows." into gingerbread Merge commit '14a288da6a372230d9af41da12241fe500eec837' into gingerbread-plus-aosp * commit '14a288da6a372230d9af41da12241fe500eec837': Add suuport for splitting touch events across windows.
|
01ce2e9eee41cc0c24b0d16465710a28ea337d5d |
|
27-Sep-2010 |
Jeff Brown <jeffbrown@google.com> |
Add suuport for splitting touch events across windows. This feature is currently used to enable dragging the start and end selection handles of a TextView at the same time. Could be used for other things later. Deleted some dead code in ArrowKeyMovementMethod and CursorControllers. Change-Id: I930accd97ca1ca1917aab8a807db2c950fc7b409
/frameworks/base/core/java/android/widget/TextView.java
|
625ac271f80777668f832a344486a6fcdc06d0ae |
|
18-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Work on fragments in layouts. - Change semantics if IDs associated with these fragments, to work correctly when placed in a container. If the container has an ID or you have supplied a tag, the fragment's ID is optional. - To do this, there is a new LayoutInflater API that allows code creating views to access the parent container that view will be in. - Fix issues with state management around these fragments. Now correctly retains state when switching to a layout that doesn't include the fragment. Also: - Add new simple list layouts for items that want to show an activated state. - Add new Activity.dump() that can be invoked with adb shell dumpsys; the default implementation dumps fragment state. Change-Id: I192f35e3ea8c53fbd26cf909095f2a994abfc1b6
/frameworks/base/core/java/android/widget/TextView.java
|
879fb6b5d66bec90d3420fad12a2a9b2fe9592f3 |
|
20-Sep-2010 |
Adam Powell <adamp@google.com> |
Text selection anchors changed to use windows Manually cherry-picked Change-Id: Id080dfad0e2f324fef3a5175abc78f76c8bad4c8
/frameworks/base/core/java/android/widget/TextView.java
|
770a681b2f5b00e699920317bff04a24676ae143 |
|
22-Sep-2010 |
Adam Powell <adamp@google.com> |
am 9aed3002: Text selection anchors changed to use windows Merge commit '9aed300279db6953356aed5ef24a42291f5829cb' into gingerbread-plus-aosp * commit '9aed300279db6953356aed5ef24a42291f5829cb': Text selection anchors changed to use windows
|
9aed300279db6953356aed5ef24a42291f5829cb |
|
20-Sep-2010 |
Adam Powell <adamp@google.com> |
Text selection anchors changed to use windows Change-Id: I14f138039f5e3175a8c07f21985715b8447708e5
/frameworks/base/core/java/android/widget/TextView.java
|
5d8f9dd3572c9d3b3d57985c31427dc9ca2a7f4a |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
am 99f0f367: am 4258bfb7: Merge "Fix some drawing artifacts/bugs around overlays/text anchors" into gingerbread Merge commit '99f0f3676f50640dbb22bd12960f771fc414862e' * commit '99f0f3676f50640dbb22bd12960f771fc414862e': Fix some drawing artifacts/bugs around overlays/text anchors
|
99f0f3676f50640dbb22bd12960f771fc414862e |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
am 4258bfb7: Merge "Fix some drawing artifacts/bugs around overlays/text anchors" into gingerbread Merge commit '4258bfb7a9fb18907fbfbe79ec0a937b4e7382b1' into gingerbread-plus-aosp * commit '4258bfb7a9fb18907fbfbe79ec0a937b4e7382b1': Fix some drawing artifacts/bugs around overlays/text anchors
|
23bd5f50759c54224a2620cbed4614e434437265 |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
Fix some drawing artifacts/bugs around overlays/text anchors Change-Id: I28170d4e120506c09a1cfea721244fbcd3c2576a
/frameworks/base/core/java/android/widget/TextView.java
|
f37df070ea84c353ff8bed4b2591932126d7e2ca |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
resolved conflicts for merge of b39470b5 to master Change-Id: If441c8684c576b6cbc485a37088d6869ad3fb23f
|
4a4a53ae07bb8f760d1e3c588262f56b3a72a7f4 |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
am 25945ca2: Merge "Fix silly touch bug in TextView. Oops." into gingerbread Merge commit '25945ca2e67c0e46ff2ad46590cd71ca5b4b4266' into gingerbread-plus-aosp * commit '25945ca2e67c0e46ff2ad46590cd71ca5b4b4266': Fix silly touch bug in TextView. Oops.
|
4d4d62b23aa84e740c2abc543a4198863e103476 |
|
18-Sep-2010 |
Adam Powell <adamp@google.com> |
Fix silly touch bug in TextView. Oops. Change-Id: Ib256154124c05944c7f2125edfd38ee6799412be
/frameworks/base/core/java/android/widget/TextView.java
|
b39470b57d2e4e0bf5abb43729ef9e43eb0ad5f2 |
|
17-Sep-2010 |
Adam Powell <adamp@google.com> |
am b08013c3: Added overlay support for drawing/responding to text anchors. Merge commit 'b08013c312e3d849029a2f4c11889274c00f438d' into gingerbread-plus-aosp * commit 'b08013c312e3d849029a2f4c11889274c00f438d': Added overlay support for drawing/responding to text anchors.
|
b08013c312e3d849029a2f4c11889274c00f438d |
|
17-Sep-2010 |
Adam Powell <adamp@google.com> |
Added overlay support for drawing/responding to text anchors. Overlays let views draw and respond to touch events outside of their bounds. This allows selection anchors to be friendlier and easier to grab. This is currently private API, pending further evaluation. Added themes/styles for text selection anchors. Added assets for text selection anchors as provided by UX. The left/right anchors are currently not suitable for use. They are here for bookkeeping and replacement later. The theme currently uses the 'middle' anchor asset for all three. This will be changed once assets are ready. Change-Id: I01b21e5ae90cab201f86f38f2f5eeaf2bd7f6bcd
/frameworks/base/core/java/android/widget/TextView.java
|
406f0522e54ab42f49e810e1f52b4b25bc4b6a96 |
|
16-Sep-2010 |
Michael Jurka <mikejurka@google.com> |
fixing bug where changing alpha on one textview changed alpha on all other textviews with the same drawable Change-Id: I19c808c59654da9ed907d1356bbefe3d9926add0
/frameworks/base/core/java/android/widget/TextView.java
|
2bffd268f135df8308c9e67af110525a5c463424 |
|
13-Sep-2010 |
Romain Guy <romainguy@google.com> |
Fix text rendering issue with text scaling. Change-Id: I1f3ae40025697e8f8ca0616ee6550fe215cadcc8
/frameworks/base/core/java/android/widget/TextView.java
|
0706f5058cacbbe5f7572ad530d666a038352d82 |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am 2b88c5c7: am 47fa8e80: Fix for an IndentOutOfBounds in TextField. Merge commit '2b88c5c70d3a70afb02c9ef32c8cd902a12e9434' * commit '2b88c5c70d3a70afb02c9ef32c8cd902a12e9434': Fix for an IndentOutOfBounds in TextField.
|
a3dac8b1dc8c5e02c2177b417f6c1d84fd2ae3dd |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am ca1b2615: am 87e215fd: Merge "Made context menu appear when tapping inside selection." into gingerbread Merge commit 'ca1b26150943829a296bf38e55ff9c55dbd98182' * commit 'ca1b26150943829a296bf38e55ff9c55dbd98182': Made context menu appear when tapping inside selection.
|
6eea4cd1872bcc205b1f44a6ccaf410c23eb0aee |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of ff545380 to master Change-Id: Ida3b6cec13b03d734bb1ba4e31554eb5226da749
|
2b88c5c70d3a70afb02c9ef32c8cd902a12e9434 |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am 47fa8e80: Fix for an IndentOutOfBounds in TextField. Merge commit '47fa8e800ca3ce56733f7b3a54bace86ad37a1f4' into gingerbread-plus-aosp * commit '47fa8e800ca3ce56733f7b3a54bace86ad37a1f4': Fix for an IndentOutOfBounds in TextField.
|
47fa8e800ca3ce56733f7b3a54bace86ad37a1f4 |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Fix for an IndentOutOfBounds in TextField. Bug http://b/issue?id=2971995 Change-Id: Id6a40e81b26e14c1e5f06ed1bd70ee419c501c69
/frameworks/base/core/java/android/widget/TextView.java
|
ca1b26150943829a296bf38e55ff9c55dbd98182 |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am 87e215fd: Merge "Made context menu appear when tapping inside selection." into gingerbread Merge commit '87e215fd54559935649fb07264ece600bbabbdf9' into gingerbread-plus-aosp * commit '87e215fd54559935649fb07264ece600bbabbdf9': Made context menu appear when tapping inside selection.
|
b18924973500e0169784a21db5b296ab3be4eaef |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Made context menu appear when tapping inside selection. Change-Id: I7ca274b007f4daea7d37a3d6b10b9504874b3c49
/frameworks/base/core/java/android/widget/TextView.java
|
ff5453809692a86093d65b8943186ac12890d123 |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am ab86b782: Merge "Fix for text selection in horizontally scrolled TextViews." into gingerbread Merge commit 'ab86b782fd2c8c7b1e6b50d30482aa2b8f890e80' into gingerbread-plus-aosp * commit 'ab86b782fd2c8c7b1e6b50d30482aa2b8f890e80': Fix for text selection in horizontally scrolled TextViews.
|
03789e8d598f24519b8eeb7415a96715f2d6cc01 |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Smart word detection in text selection. Manual merge in HC of 63569. Selecting between words selects the spaces instead of the closest word, facilitating paste insertion vs word replacement. Pasting adds/removes space before and after if needed so that pasted text is not appended to existing text. Change-Id: Iffa0fb573d3535af72b639d05c5dc0721e80bda5
/frameworks/base/core/java/android/widget/TextView.java
|
44c1e4c72dea2d7ce077cc6fdc46e01bd863a642 |
|
09-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Fix for text selection in horizontally scrolled TextViews. A left padding and scroll was not taken into account in cursor position. Bug http://b/issue?id=2970142 Change-Id: Ie76e8d97f3dd5fe3a750aa82cd4b97c98892cb48
/frameworks/base/core/java/android/widget/TextView.java
|
d4fd86d19a070a355255b51742075fbf8e69fa4a |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am 468394fc: Text Selection: smart word detection. DO NOT MERGE. Merge commit '468394fc6d1cb0c9078c2f98aa056860f7e0d743' into gingerbread-plus-aosp * commit '468394fc6d1cb0c9078c2f98aa056860f7e0d743': Text Selection: smart word detection. DO NOT MERGE.
|
468394fc6d1cb0c9078c2f98aa056860f7e0d743 |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Text Selection: smart word detection. DO NOT MERGE. Selecting between words selects the spaces instead of the closest word, facilitating paste insertion vs word replacement. Pasting adds/removes space before and after if needed so that pasted text is not appended to existing text. Cut and copy not available when selection is empty. Change-Id: I331413bdef341a4eceffe76fa2957f388d540b6e
/frameworks/base/core/java/android/widget/TextView.java
|
64e54a6e1fcb4a9603b3b86e1fb883ce49eadc92 |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Made text selection work in ExtractEditText. Manual merge of Gingerbread 64947. Change-Id: I2bbd4cd7abbc77212fb4df256c345f95232de127
/frameworks/base/core/java/android/widget/TextView.java
|
2ae3718b448cdc5e94b4686795301a01f54640e4 |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am dbd25cdb: Made text selection work in ExtractEditText. DO NOT MERGE Merge commit 'dbd25cdbc3dcad573aaeaf493bc186006bce3d8e' into gingerbread-plus-aosp * commit 'dbd25cdbc3dcad573aaeaf493bc186006bce3d8e': Made text selection work in ExtractEditText. DO NOT MERGE
|
dbd25cdbc3dcad573aaeaf493bc186006bce3d8e |
|
08-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Made text selection work in ExtractEditText. DO NOT MERGE Change insertion point on tap is no longer handled by the CommitSelectionReceiver (as it is not called by ExtractEditText). Fixed a bug to handle drawing positions when the internal TextView scroller is used. Change-Id: I87398c7109c5527d21dee6abbdb925848244d594
/frameworks/base/core/java/android/widget/TextView.java
|
9e0a9d84e688f4103dd73018076e47c713823bbd |
|
01-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am ff46a5c9: am d2fbabad: Merge "Fixed single line state on TextView." into gingerbread Merge commit 'ff46a5c9bd55c492925ffcb608510a0a3dd8a969' * commit 'ff46a5c9bd55c492925ffcb608510a0a3dd8a969': Fixed single line state on TextView.
|
ff46a5c9bd55c492925ffcb608510a0a3dd8a969 |
|
01-Sep-2010 |
Gilles Debunne <debunne@google.com> |
am d2fbabad: Merge "Fixed single line state on TextView." into gingerbread Merge commit 'd2fbabad1e1fa8de1f0809ec5a2653f8af25dbb3' into gingerbread-plus-aosp * commit 'd2fbabad1e1fa8de1f0809ec5a2653f8af25dbb3': Fixed single line state on TextView.
|
e67b58a347109b444070a34e86e81ce119f266b3 |
|
01-Sep-2010 |
Gilles Debunne <debunne@google.com> |
Fixed single line state on TextView. singleLine flag is set to false by default. However, when no singleLine or input type is provided, the inputType of the TextView is not set to EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE for edit texts. Change-Id: Id747d3319afcddb3ab6ae0463947e8b3e470ef73
/frameworks/base/core/java/android/widget/TextView.java
|
aeaf2830f5ab81e6f95062514239081af65a914f |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am e69b2860: Merge "DO NOT MERGE Removed "Stop selecting text" option." into gingerbread Merge commit 'e69b286005b0b543e274f523d894e069811215a6' into gingerbread-plus-aosp * commit 'e69b286005b0b543e274f523d894e069811215a6': DO NOT MERGE Removed "Stop selecting text" option.
|
1040dc465cbf5ca8f834a87c949e476abefa3f76 |
|
27-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Improve clipboard API. - Rename ClippedData to ClipData. - Introudce ClipDescription subclass. - Add convenience APIs for creating a ClipData. - Add ClipboardManager API to get just the ClipDescription. - Define MIME types associated with a clip. Change-Id: If97ef91aa99a4dd0ec74ccaea504345c9ef12b5c
/frameworks/base/core/java/android/widget/TextView.java
|
d2420248faa261d596028ffe1593cdc8afd81e45 |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
DO NOT MERGE Removed "Stop selecting text" option. Change-Id: Ic553d099664d1703a39139e7440d583cfec20d76
/frameworks/base/core/java/android/widget/TextView.java
|
dfad42760f3c9c3b8439ff4b365256474471abe4 |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 225ad9cb: Merge "DO NOT MERGE Text selection: tapping on selection opens context menu" into gingerbread Merge commit '225ad9cb184c94e29e4e0fb89d5e7d043e399ca4' into gingerbread-plus-aosp * commit '225ad9cb184c94e29e4e0fb89d5e7d043e399ca4': DO NOT MERGE Text selection: tapping on selection opens context menu
|
45b2d699e10474f0167691774c0cfb93cfe2dae9 |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
DO NOT MERGE Text selection: tapping on selection opens context menu Back key exit selection mode. No more "Stop selecting text" in second context menu. A tap on one of the handles also triggers the second context menu. Paste is only available on long press in first menu for empty text fields. Change-Id: Ic4fa00458d4f617a81885436b53d4fc923347609
/frameworks/base/core/java/android/widget/TextView.java
|
511d444be07905b0e45b51a43cc9eed499285c81 |
|
27-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am b318ef79: am 62dbd82a: Fix for IndexOutOfBounds in TextView getWordLimitsAt. Merge commit 'b318ef79d5018fdf492ba254438e2d9f1c0fff4c' * commit 'b318ef79d5018fdf492ba254438e2d9f1c0fff4c': Fix for IndexOutOfBounds in TextView getWordLimitsAt.
|
fc2563ba4e9c93ed803f3ce540f92f199f848036 |
|
26-Aug-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of f309c7a8 to master Change-Id: I80dfe8a0b142fa95fa83d46f3b60223c2991fce3
|
b318ef79d5018fdf492ba254438e2d9f1c0fff4c |
|
26-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 62dbd82a: Fix for IndexOutOfBounds in TextView getWordLimitsAt. Merge commit '62dbd82aad0f84c88212566321e3fb370affaf7c' into gingerbread-plus-aosp * commit '62dbd82aad0f84c88212566321e3fb370affaf7c': Fix for IndexOutOfBounds in TextView getWordLimitsAt.
|
62dbd82aad0f84c88212566321e3fb370affaf7c |
|
26-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fix for IndexOutOfBounds in TextView getWordLimitsAt. Bug http://b/issue?id=2948904 Change-Id: I10008374da92d5a98ec567cc76732383e66c4c5b
/frameworks/base/core/java/android/widget/TextView.java
|
f309c7a869b968465619077c78922cf3f95a629d |
|
26-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 1b400c77: Merge "Fix for NPE in TextView." into gingerbread Merge commit '1b400c7763e63505bafd496953764c3e97c2be5b' into gingerbread-plus-aosp * commit '1b400c7763e63505bafd496953764c3e97c2be5b': Fix for NPE in TextView.
|
df4ee43062281ee9cf908a7c45b269738bd017d3 |
|
26-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fix for NPE in TextView. Bug http://b/issue?id=2941549 Change-Id: Id5cbf0a3b2b68f450a9271333b96d41b01aa9f5c
/frameworks/base/core/java/android/widget/TextView.java
|
925f2f909649dd0cbf93674201430879c2e03f99 |
|
25-Aug-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of 9765b2a0 to master Change-Id: Ic37a443fff0425e9d7c8395f71665d56c38d7e53
|
b32d0f23a82452d6f7fa8c513e179f1287621905 |
|
24-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am e2978c8d: Merge "Fix for an NPE in TextView." into gingerbread Merge commit 'e2978c8dcafdf20c2b49999ec423cb5f76d4a583' into gingerbread-plus-aosp * commit 'e2978c8dcafdf20c2b49999ec423cb5f76d4a583': Fix for an NPE in TextView.
|
4e765e002f135e2c4c30aff9e94d40e296a74d60 |
|
24-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fix for an NPE in TextView. Change-Id: I0fca8f839cd444d9b70174078063efff5be499a3
/frameworks/base/core/java/android/widget/TextView.java
|
8db59adccf3e07b9597a69858e8e4de4f7f233e7 |
|
24-Aug-2010 |
Kenny Root <kroot@google.com> |
resolved conflicts for merge of b037da40 to master Change-Id: I591f80f613870a4b1557f17d1c8574f661ed8121
|
9765b2a01d32ea6f2f955170ef7d0185e2252b0a |
|
24-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 2703a42d: When an EditText gains focus by tapping, move the insertion point where tapped. Merge commit '2703a42d16af0e62da1bba02b6c935d98debf936' into gingerbread-plus-aosp * commit '2703a42d16af0e62da1bba02b6c935d98debf936': When an EditText gains focus by tapping, move the insertion point where tapped.
|
2703a42d16af0e62da1bba02b6c935d98debf936 |
|
24-Aug-2010 |
Gilles Debunne <debunne@google.com> |
When an EditText gains focus by tapping, move the insertion point where tapped. The previous behavior was to move cursor at the end of the first line, which feels weird. Change-Id: I5a72f9871ed79ee2c521698ea642ba126537f4f9
/frameworks/base/core/java/android/widget/TextView.java
|
b037da401ad76843c32e7d732d43d452e0e6f978 |
|
24-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 3e05a0be: Hysteresis effect in Text selection. Merge commit '3e05a0beb2fad0b21558019d2adf6805da70e10e' into gingerbread-plus-aosp * commit '3e05a0beb2fad0b21558019d2adf6805da70e10e': Hysteresis effect in Text selection.
|
3e05a0beb2fad0b21558019d2adf6805da70e10e |
|
23-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Hysteresis effect in Text selection. Vertical movement requires going over a given threshold to change line. Makes it easier to move down without changing line, so that one can see the cursor better. Also simplifies long line selection. Change-Id: I791da500232c6e510af64c637ed994c5da9a4fea
/frameworks/base/core/java/android/widget/TextView.java
|
27113f86461fb19005900b8d6cebf264ecf77409 |
|
23-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Merge conflict due to wrong import paths. Change-Id: I3bba20b26036de53b29bb0b30885fe33832ba3e3
/frameworks/base/core/java/android/widget/TextView.java
|
252b36379fedd0c91125679170a56d080d05ae9f |
|
21-Aug-2010 |
Gilles Debunne <debunne@google.com> |
resolved conflicts for merge of a842d143 to master Change-Id: I60bba17630d4a4aff5cb8ac9c8b81a2a1fddcd3b
|
a842d143d2dcad07906830a30deaf0ffce86f5d9 |
|
20-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am d018a0ce: Merge "Text selection without trackball." into gingerbread Merge commit 'd018a0ce72124f668d859b19fe3e73f5637d3c7c' into gingerbread-plus-aosp * commit 'd018a0ce72124f668d859b19fe3e73f5637d3c7c': Text selection without trackball.
|
b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f |
|
18-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Text selection without trackball. Backported from HC. Squashed commit of the following: commit af214a595c7a9fdd11a2dc384f7d4665abf751c0 Fixes in TextView's selection. commit eb9fd59ebe6500a66c2003d46b5802299970ae8d TextView with Selection Contextual Mode commit 4c4c338ef355b369ce4b57d6c6fba7ee8f9dddf4 Cosmetic changes around TextView. commit d4b4b054e87480d984ad18766f5e76553e3080d8 Double and one and a half tap removed from TextView. commit 897c2847ba1fca8ef01eadadd1bc3de007af3ee5 Selection handlers in TextView commit 832be74a5394649e28927484d9a86c6d53b430e7 New cursor controller in TextViews. Change-Id: I01cc64736e2abea605317ee53907a1713617fc17
/frameworks/base/core/java/android/widget/TextView.java
|
ed279f8f19098aef31aba43663ab7b3fa43f1999 |
|
19-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fix for a bug that prevents text selection on initially empty text edits. Change-Id: I0346b632e7de32b082c0ed7e605873946e3eb554
/frameworks/base/core/java/android/widget/TextView.java
|
c4d8eb6fb7c88c5c4da38b0b113c24cc4b78c0b7 |
|
19-Aug-2010 |
Romain Guy <romainguy@google.com> |
Speedup TextView fades (no more layers required.) Also fixes a crash in the drop shadows cache and improves drop shadows caching. Change-Id: I9c0208a49467f9201d786ae0c129194b8d423923
/frameworks/base/core/java/android/widget/TextView.java
|
8b55f377655d13a445b08a0a8ed09b6e95c752b0 |
|
19-Aug-2010 |
Romain Guy <romainguy@google.com> |
Fix drawing issues with layers. Prior to this change layers would clip their content incorrectly. They would also not apply alpha properly. Change-Id: Id7b3aaa7dbdc51de68fe050e64458f68e40503fd
/frameworks/base/core/java/android/widget/TextView.java
|
a6d7ee19cc1f72f279b338bddcee3a1648c6c84c |
|
13-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fixes in TextView's selection. Handles are now centered on selection corners. Touch regions tuned, especially for the one line / last line case. Selection mode is stopped when text is entered or modified. New temporary assets. New selection background color. Using references to theme for some hard-coded colors. Change-Id: I820ec39bb6d5a3c6598c7c34b9c8f90b848da9f3
/frameworks/base/core/java/android/widget/TextView.java
|
ecb1d5ded9afee63735dc91cfb08ada2c639d237 |
|
11-Aug-2010 |
Konstantin Lopyrev <klopyrev@google.com> |
resolved conflicts for merge of f00ee0f7 to master Change-Id: I13b968bde37fad8fffdaa9bb94a0f1da9b2e6e0c
|
f00ee0f76260a660cd9648d3bda9863e133cb401 |
|
11-Aug-2010 |
Konstantin Lopyrev <klopyrev@google.com> |
am f39d5987: Merge "Categorizing exported view properties." into gingerbread Merge commit 'f39d5987b977fdff8c34a2ddabaec31d1e909db3' into gingerbread-plus-aosp * commit 'f39d5987b977fdff8c34a2ddabaec31d1e909db3': Categorizing exported view properties.
|
bea95162ca25bd00b0479d93739b6283795c3986 |
|
11-Aug-2010 |
Konstantin Lopyrev <klopyrev@google.com> |
Categorizing exported view properties. Change-Id: I79c42019836973d80662c21d195d088ae01537a0
/frameworks/base/core/java/android/widget/TextView.java
|
23fdaf6fb62a9b5154b2508916a21c678462c5d0 |
|
06-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add new ContentProvider for doing conversions to data streams. This introduces basic infrastructure that should allow content providers holding complex data to perform on-demand conversion of their data to streams of various types. It is achieved through two new content provider APIs, one to interrogate the possible stream MIME types the provider can return, and the other to request a stream of data in a particular MIME type. Because implementations of this will often need to do on-demand data conversion, there is also a utility intoduced in ContentProvider for subclasses to easily run a function to write data into a pipe that is read by the client. This feature is mostly intended for cut and paste and drag and drop, as the complex data interchange allowing the source and destination to negotiate data types and copy (possible large) data between them. However because it is fundamental facility of ContentProvider, it can be used in other places, such as for more advanced GET_CONTENT data exchanges. An example implementation of this would be in ContactsProvider, which can now provider a data stream when a client opens certain pieces of it data, to return data as flat text, a vcard, or other format. Change-Id: I58627ea4ed359aa7cf2c66274adb18306c209cb2
/frameworks/base/core/java/android/widget/TextView.java
|
f788a9fccd9cdb662527aa375af24b8868069108 |
|
22-Jul-2010 |
Gilles Debunne <debunne@google.com> |
TextView with Selection Contextual Mode Context menu entries have been moved to a contextual mode in the action bar. Change Input Method has been removed and *should be added to the system bar instead*. Add word to dictionnary has also been removed and should now be done using the suggestioni bar "tap on word to add" feature. Change-Id: I767373f53515b2d6a06500321b4b12ed0b05a9b6
/frameworks/base/core/java/android/widget/TextView.java
|
2d0e87b64402459d89adfd004083a748f81a0391 |
|
13-Jul-2010 |
Gilles Debunne <debunne@google.com> |
Cosmetic changes around TextView. Fixed some warnings in the code. Change-Id: Id19395031a1ab41edcc47e3dc8cd9479c6e19f83
/frameworks/base/core/java/android/widget/TextView.java
|
05336274dd8e7ababfe5b253069653abbba20c3c |
|
10-Jul-2010 |
Gilles Debunne <debunne@google.com> |
Selection handlers in TextView Long press on text view triggers selection mode. Two handles can be used to adjust selection. Change-Id: I45bb5fd62cae910570cff34920e45c4383160179
/frameworks/base/core/java/android/widget/TextView.java
|
cc3ec6cdb2b892eb29513e72d8b205acbe997b25 |
|
23-Jun-2010 |
Gilles Debunne <debunne@google.com> |
New cursor controller in TextViews. Editable TextView now display a cursor controller under the insertion point so that it can be precisely moved. Change-Id: Ia2e6ddc57d249647ff6683e10e4226db3df27223
/frameworks/base/core/java/android/widget/TextView.java
|
dac5f9f3caea71e9e0002582ee90ffddadb70d8f |
|
08-Jul-2010 |
Romain Guy <romainguy@google.com> |
Do not draw the fade areas when it's not necessary. Prior to this change, every singleLine TextView would create, draw and compose a layer on every draw dispatch. This was unnecessary and expensive. Change-Id: Ia4f79d7fc8f485784fe6b795f0f196d38d579838
/frameworks/base/core/java/android/widget/TextView.java
|
b6ca72314211e5f23cb2a4b3f17acc54ab6e8b87 |
|
24-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Fixed bug 2795971 IME doesn't appear on touching a text field Refactoring in CL 55138 added an extra condition to display the IME. Change-Id: I2a4cc83bb39bd2c87ad3bd75ef234cdbdfdad74f
/frameworks/base/core/java/android/widget/TextView.java
|
57f4e5bcf56752053815a755fee4867e722ce2b8 |
|
22-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Fixed scrolling issue when moving cursor in long TextViews. Previous CL https://android-git.corp.google.com/g/55138 was submitted before the suggested change was uploaded. setSelection() was called twice by onTouchEvent, once to the previous position, and then to the new position (unless the IME got displayed, so that in that case the cursor is not moved). The second call was actually triggering a call for a scroll of 0 since the view is already displaying the cursor. This scroll is filtered out by a shortcut in ScrollView. The first setSelection's scroll does not have the same issue (since the previous cursor's position is out of screen and requires a scroll) and it is then applied, effectively moving the cursor to a new position but scrolling to the previous position. The fix is to call setSelection only once, after the IME has been asked to display. The cursor is moved to the old/new position depending on the resultCode in onReceiveResult in CommitSelectionReceiver. Bug: http://b/issue?id=2778954 Change-Id: I157d7ae451574e8a6fffb894eb1d6880acfe01d1
/frameworks/base/core/java/android/widget/TextView.java
|
bbb5d6e256675199c21f0bb621e6233acc3418a6 |
|
22-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Fixed scrolling issue when moving cursor in long TextViews. setSelection() was called twice by onTouchEvent, once to the previous position, and then to the new position (unless the IME got displayed, so that in that case the cursor is not moved). The second call was actually triggering a call for a scroll of 0 since view is already displaying the cursor. This scroll is filtered out by a shortcut in ScrollView. The first setSelection's scroll does not have the same issue (since the previous cursor's position is out of screen and requires a scroll) and it then applied, effectively moving the cursor to a new position but the scrolling to the previous position. The fix is to call setSelection only once, after the IME has been asked to display. The cursor is moved to the old/new position depending on the resultCode in onReceiveResult in CommitSelectionReceiver. Bug: http://b/issue?id=2778954 Change-Id: I0983fdf18993e63b230e093e703f95efe6e2d7a8
/frameworks/base/core/java/android/widget/TextView.java
|
e15b35891f5d767f82d407960fbeb5c9f0a5c340 |
|
17-Jun-2010 |
Gilles Debunne <debunne@google.com> |
Suppressed warnings in TextView. Change-Id: Icaa4b6d28649559b8acee970e483d50e4c00e25d
/frameworks/base/core/java/android/widget/TextView.java
|
0c702b88c5d0d4380930b920f5be6e66dd95a0d8 |
|
14-May-2010 |
Doug Felt <dougfelt@google.com> |
Move shaping to native. Add internal API (getTextRunAdvances) to Paint, use when measuring. Add internal API (getTextRunCursor) to Paint, use when determining valid cursor positions. Remove java-level shaping code. Remove 'prep' code in TextLine (except for replacement text) since shaping now is done on the fly as needed in native. Provide explicit shaping context bounds to internal text measuring, cursor movement, and rendering APIs. Update for to changes in external API in ushape.h. Change-Id: I146958b624802ce8553125e5c3c6c03031bc9608
/frameworks/base/core/java/android/widget/TextView.java
|
e4031a3780ad3560d540e87e543a316b0b50a945 |
|
10-Jun-2010 |
Jean-Baptiste Queru <jbq@google.com> |
am 030b0ebe: merge from froyo-plus-aosp
|
3c259d3247d4798f2328c4064d6970f07e0763aa |
|
09-Jun-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: Iaf90d2aaa3cb3a435336c2ccd08b587d9fc3690b
|
964be41e9eacb7011c80cf348ef6de52a5d0a18a |
|
17-Feb-2010 |
Viktor Yakovel <viktor.yakovel@sonyericsson.com> |
Fix incorrect calculation of start and end indices of changed text - The problem is taht the calculation of indices does not take the difference in original and modified text lengths into account. - If reportExtractedText() is called from the onDraw() function, mInputMethodState is not reset. The error can occur when the user is editing formatted text using a full screen editor. One example of formatted text is phone numbers (e.g. dashes are added to North American numbers by the PhoneNumberFormattingTextWatcher class). If the two first digits are removed from the number 555-666-777, the new number becomes 566--777. This is due incorrect calculation of start and end indices of the changed text. The error is in the TextView class and the problem is that the calculation does not take the difference in original and modified text lengths into account. Change-Id: If12d0f571873a6f1874102377432affb64ee21e8
/frameworks/base/core/java/android/widget/TextView.java
|
c982f60e982c1d2df9f115ed9a5c3ef3643d0892 |
|
25-May-2010 |
Doug Felt <dougfelt@google.com> |
Fix alignment issues with RTL paragraphs. Also remove unused debugging code that depends on junit. Remove trailing whitespace in changed code. Change-Id: Ie02d1b8220c599a672ee6e91af0fba634e0f620c
/frameworks/base/core/java/android/widget/TextView.java
|
75095f693acccada3712375e7bba3b0f29d02683 |
|
19-May-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 34b1c116: am b39b0f32: am faf9a783: merge from open-source master
|
faf9a78363b0c773b95c9b43263d788aee313054 |
|
19-May-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I970684d917ea2024871b45abe532c52bb45673c6
|
f47d7405bbcb25d7cdf89ebb059f41520fe9ab87 |
|
22-Apr-2010 |
Doug Felt <dougfelt@google.com> |
Modify Canvas drawText to run bidi and shape. Adds drawTextRun as internal API on Canvas and GraphicsOperations. Adds implementation to implementors of GraphicsOperations. Adds state and API on Paint to control the bidi algorithm when used by Canvas. This API is currently hidden. The drawText changes are incomplete since shaping is not yet available in the native code. Change-Id: I4368048aef9545df0953a349381771603e04b619
/frameworks/base/core/java/android/widget/TextView.java
|
970a138c9730b3763171d7dc297a6372388b569f |
|
12-Feb-2010 |
Viktor Yakovel <viktor.yakovel@sonyericsson.com> |
Text disappears when selecting text in text editor. The problem appears when the user selects, copies and paste text and then selects text again. The second time text is selected, the copied text becomes visible in the text field. Change-Id: Iae19d1659f58ad2e1c6f1a98bdef8bbedabd447f
/frameworks/base/core/java/android/widget/TextView.java
|
be75659485d809b5f52e32d2bd81acffd4baeb67 |
|
10-Mar-2010 |
Svetoslav Ganov <svetoslavganov@google.com> |
Fixing bug 2502522 - Accessibility events contain text of invisible views Change-Id: I0eccc82ad9f3139e46942cb61212bb83f992c173
/frameworks/base/core/java/android/widget/TextView.java
|
8e618e54ef0f009cac15972af9d9a72d6f6b6f94 |
|
08-Mar-2010 |
Romain Guy <romainguy@android.com> |
Report scroll events from ScrollView and HorizontalScrollView. Bug #2342763 Also fix typos in TextView. Change-Id: I58ab906b9bebe562c1a913977e2d6970bfcf3788
/frameworks/base/core/java/android/widget/TextView.java
|
2a4f254d53c065da16114a84bcfe95f57ccb2587 |
|
26-Feb-2010 |
Kenny Root <kroot@google.com> |
Remove misleading method comment on TextView#setHint Comment incorrectly specified that the setHint(...) methods were deprecated and suggested instead using different methods that did not exist. Change-Id: I5e7a1570beb8f1cd807853c6d9de8072afa5123e
/frameworks/base/core/java/android/widget/TextView.java
|
dcc490f20103a4bbd879ea040ce67779d211c2d7 |
|
25-Feb-2010 |
Romain Guy <romainguy@android.com> |
Fix the build.
/frameworks/base/core/java/android/widget/TextView.java
|
a440b002aa59e1455bdfa2c5a1ca51c74bbc19ac |
|
25-Feb-2010 |
Romain Guy <romainguy@android.com> |
Prevents ListView items children to modify properties of other children. Bug #2464502 This fix introduce a new dispatch mechanism to tell views when they are temporary detached/reattached from/to a ListView. This is very important to remove pending callbacks or cleanup temporary states. This change also modifies TextView which was relying on that callback in a very particular case: a focused EditText in a ListView. The modified code acts only when in that case, not if onStart/FinishTemporaryDetach() is called via dispatch*() (== recycled views in ListView.)
/frameworks/base/core/java/android/widget/TextView.java
|
2a399f066d4f3870385002cdcda8082a0eeeb770 |
|
24-Feb-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 563d3a62: merge from open-source master Merge commit '563d3a62f3762b312a4c0a9d9af15a2333beaede' * commit '563d3a62f3762b312a4c0a9d9af15a2333beaede': These changes add access to some status values in widgets listed below:
|
9a352305f86db9782e474dc09bcf3d09511abf56 |
|
24-Feb-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master
|
7a36788f4a69b3ddaf8fb8e250e1a13bee7238fa |
|
24-Feb-2010 |
Steve Zeigler <sfzeigler@gmail.com> |
These changes add access to some status values in widgets listed below: widget/CheckedTextView.java: report if the item is checked or not. widget/CompoundButton.java: report if the item is checked or not. widget/ProgressBar.java: isIndeterminate(), getProgress(), getSecondaryProgress(), and getMax() report what sliders and progress bars are showing widget/TextView.java: report the current selection: getSelectionStart() and getSelectionEnd()
/frameworks/base/core/java/android/widget/TextView.java
|
bd6f964da1fc764d0681e7ce528ea6b1808623d2 |
|
22-Jan-2010 |
Amith Yamasani <yamasani@google.com> |
am 658dc0d4: am b35b8c13: Merge "Security fix in accessibility - don\'t read out password. # 2371557" into eclair Merge commit '658dc0d4b03015eb4a692968b82b664e24aa605a' * commit '658dc0d4b03015eb4a692968b82b664e24aa605a': Security fix in accessibility - don't read out password. # 2371557
|
658dc0d4b03015eb4a692968b82b664e24aa605a |
|
19-Jan-2010 |
Amith Yamasani <yamasani@google.com> |
am b35b8c13: Merge "Security fix in accessibility - don\'t read out password. # 2371557" into eclair Merge commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe' into eclair-plus-aosp * commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe': Security fix in accessibility - don't read out password. # 2371557
|
91ccdb5f10456d7e47e5307515766e875a521802 |
|
15-Jan-2010 |
Amith Yamasani <yamasani@google.com> |
Security fix in accessibility - don't read out password. # 2371557 Check for password type before send accessibility event. [Submitting for Svet]
/frameworks/base/core/java/android/widget/TextView.java
|
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 |
|
09-Jan-2010 |
Romain Guy <romainguy@android.com> |
Deprecate fill_parent and introduce match_parent. Bug: #2361749.
/frameworks/base/core/java/android/widget/TextView.java
|
7bbb199912bd4bc7b4827358bcdd90acc826e7fa |
|
15-Dec-2009 |
Eric Fischer <enf@google.com> |
am 72521860: Merge change I8f657a99 into eclair Merge commit '725218602e8505cd6fe3075253fcb792727e2431' into eclair-plus-aosp * commit '725218602e8505cd6fe3075253fcb792727e2431': Avoid a crash trying to get a substring whose start is after its end.
|
32929413ffb54b9338a889e764e5cc0608cb2be6 |
|
15-Dec-2009 |
Eric Fischer <enf@google.com> |
Avoid a crash trying to get a substring whose start is after its end. Constrain the start of the extracted text, not just the end, to the length of the content. Approver: ryanpc Bug: 2323813
/frameworks/base/core/java/android/widget/TextView.java
|
190a80ceb5e3102e578b0f0ea292f0c0e23ec594 |
|
03-Dec-2009 |
Dianne Hackborn <hackbod@google.com> |
am 8693f82d: Merge change If1f0bf33 into eclair Merge commit '8693f82d02fd9b3a805e076fa1eafacd1737446d' into eclair-plus-aosp * commit '8693f82d02fd9b3a805e076fa1eafacd1737446d': Some work on issue #2286804: sometimes text field doesn't accept input
|
27d377221c7970a5205c83f8a9f62f755dc1fa5d |
|
02-Dec-2009 |
Dianne Hackborn <hackbod@google.com> |
Some work on issue #2286804: sometimes text field doesn't accept input This doesn't really fix the problem being brought up here, but fixes a related issue I found while investigating it -- if you tap a text view enough to cause it to try to scroll, this will cause the touch to become a scroll instead of a click, even if there is nothing to scroll. So often quick taps to bring up the IME would be canceled because they became a non-scroll. Unfortuntately after syncing the latest build, I was having a lot of trouble reproducing the original problem. I think I need to punt it to MR2 at this point. Change-Id: If1f0bf33de1b4d71c9f677cdad07639b7a3fb772
/frameworks/base/core/java/android/widget/TextView.java
|
478de466ce0504b9af639c3338b883893670a8e8 |
|
15-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
merge from eclair
|
9db3d07b9620b4269ab33f78604a36327e536ce1 |
|
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
/frameworks/base/core/java/android/widget/TextView.java
|
5613fcb674716822de9981be959d36811382ff0e |
|
04-Nov-2009 |
Romain Guy <romainguy@android.com> |
am e1e0dc8e: Make sure we relayout the TextView when the text changes and marquee is enabled. Merge commit 'e1e0dc8e6eaec052ebb6b88f5b1223075ce5a356' into eclair-plus-aosp * commit 'e1e0dc8e6eaec052ebb6b88f5b1223075ce5a356': Make sure we relayout the TextView when the text changes and marquee is enabled.
|
e1e0dc8e6eaec052ebb6b88f5b1223075ce5a356 |
|
04-Nov-2009 |
Romain Guy <romainguy@android.com> |
Make sure we relayout the TextView when the text changes and marquee is enabled. Bug #2192881. Change-Id: Iffc2d15947a11974d9dc175740e3a5489cd43d21
/frameworks/base/core/java/android/widget/TextView.java
|
b7463eb0c739d3d28c96c644f98f7f685027b62e |
|
14-Oct-2009 |
Jean-Baptiste Queru <jbq@google.com> |
merge from open-source master
|
1d05c7cae5ee21e0a9dde4cebf0274a3be8fd943 |
|
12-Oct-2009 |
Christoffer Gurell <chgur@tat.se> |
Fixes scroll/measure bug in EditText Bug and fix described in: http://code.google.com/p/android/issues/detail?id=4184
/frameworks/base/core/java/android/widget/TextView.java
|
afa78967b8553443aa32579d78970a076d7581f6 |
|
29-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Hack to fix issue #2125365: Sports Trivia compatability with Eclair Adds a mechanism to tell Paint the scaling factor its target canvas will have, for it to compute font metrics based on the correct font size. Only TextView uses this, but that is enough for the large majority of apps. Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
/frameworks/base/core/java/android/widget/TextView.java
|
a8c0edb8fb10a2deb86eec619fd813e4caa766e4 |
|
28-Sep-2009 |
Amith Yamasani <yamasani@google.com> |
Fix 2143297: Fix transition from password -> visible password
/frameworks/base/core/java/android/widget/TextView.java
|
f116bf8884b5b58aae261d148003811aa4a7c6e9 |
|
28-Sep-2009 |
Mike Cleron <mcleron@google.com> |
Fading scrollbars return. But you have to opt in.
/frameworks/base/core/java/android/widget/TextView.java
|
ad8da91895afa7e8a97a9d681471d51924461cff |
|
17-Sep-2009 |
Bjorn Bringert <bringert@android.com> |
Reset typeface when changing from visible password inputType Before, when changing a TextView from TYPE_TEXT_VARIATION_VISIBLE_PASSWORD to a non-password input type, the typeface remained monospaced. Fixes http://b/issue?id=2126708 "TextView does not restore typeface when changing inputType from password to text" Change-Id: Iad704640f69beed10a4b3deec7c38f3eba7b91ee
/frameworks/base/core/java/android/widget/TextView.java
|
fa0d253b77cf6e6d15c8195f206ae54e91296823 |
|
18-Sep-2009 |
Eric Fischer <enf@google.com> |
Make the EditText error popup correctly resize when the view resizes. It was calling PopupWindow.update() with -1 arguments for the width and height under the impression that that would cause it to use the new values that had already been set with setWidth() and setHeight(). But in fact this caused it not to change at all.
/frameworks/base/core/java/android/widget/TextView.java
|
7ed6ee5692c808cf0ebb3ee208fc8ee1314622c2 |
|
11-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #1983406: Soft keyboard doesn't show up in an EditText with "digits" attribute set Also pretend to fix #2054990 (com.android.frameworktest: java.lang.NullPointerException at android.accessibilityservice.AccessibilityService$IEventListenerWrapper.executeMessage( AccessibilityService.java:215))... simply by making the variable that apparently was null final, to assure myself that there is no possible way in the world for it to be null. :p Change-Id: I73e337d65b8360721896a0296691257b3e47564b
/frameworks/base/core/java/android/widget/TextView.java
|
be8e36e32b9cb2bb37e28e4c0d414ee0e46c84a2 |
|
04-Sep-2009 |
Jean-Baptiste Queru <jbq@google.com> |
merge from donut
|
72b1f379d5c97c8ff31d2201e78215af777d6bda |
|
31-Aug-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
/frameworks/base/core/java/android/widget/TextView.java
|
688b0f1235aba0e82ff4eec4d935b494d9c4754d |
|
22-Aug-2009 |
Eric Fischer <enf@google.com> |
am 36d5aaec: Merge change 22322 into donut Merge commit '36d5aaec2ee1f11ea80639c8194e4aac2be3892d' into eclair * commit '36d5aaec2ee1f11ea80639c8194e4aac2be3892d': Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
|
cc5dfa9ed0142aa52e293da30ad3d31ee358970d |
|
21-Aug-2009 |
Eric Fischer <enf@google.com> |
Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary. Without this, the runtime would restart when you tried to add a word from the search widget. Bug 2069689
/frameworks/base/core/java/android/widget/TextView.java
|
a9f1dd021f8f6ee777bc4d27913bd40c42e753af |
|
13-Aug-2009 |
Eric Fischer <enf@google.com> |
Make <font size> and <font height> in string resources respect density. This unfortunately requires API changes because the existing text markup classes had no access to the screen density. TextPaint gains a "density" field so that TextView can pass the density along. AbsoluteSizeSpan gains a new flag to indicate that its argument is in dip instead of in physical pixels. LineHeightSpan gains an inner interface whose chooseHeight() method includes a TextPaint argument so it can get at the density. And when StringBlock creates the markup objects, it now uses the density-aware versions. Bug 1976971, Bug 2031746
/frameworks/base/core/java/android/widget/TextView.java
|
56cf7889d2d084ddc3960accb099913267f1db9b |
|
30-Jul-2009 |
Eric Fischer <enf@google.com> |
Don't offer to add numbers to the dictionary. Only show the "add to dictionary" context menu item if the current word contains at least one letter. Bug 1877803
/frameworks/base/core/java/android/widget/TextView.java
|
61e4248f8f6ae8a8f40550cc0800e5190cd1dc09 |
|
29-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
merge from donut
|
a8675f67e33bc7337d148358783b0fd138b501ff |
|
29-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
/frameworks/base/core/java/android/widget/TextView.java
|
2af1b3db3d4f687d008db74b150f149e956b4bc6 |
|
26-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
Merge korg/donut into korg/master
|
55616f95af2263f879475885a30b37d397340c02 |
|
22-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 74cb705f: Merge change 8121 into donut Merge commit '74cb705f0c1ee5ccb598b2b676aa50a36e6af7f9' * commit '74cb705f0c1ee5ccb598b2b676aa50a36e6af7f9': Fixes #1818201. Do not attempt to display the popup until after the first layout.
|
9bc9fa1538e3a5be0b80a8f6900d147f0ad3f9e5 |
|
22-Jul-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1818201. Do not attempt to display the popup until after the first layout.
/frameworks/base/core/java/android/widget/TextView.java
|
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f |
|
21-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
/frameworks/base/core/java/android/widget/TextView.java
|
e855d130aea57018daf93d85ced2fcde7fbcb045 |
|
11-Jun-2009 |
Kenny Root <kenny@the-b.org> |
Fix spelling mistakes in Javadoc
/frameworks/base/core/java/android/widget/TextView.java
|
076dc9fa57d58261d8edf26b1905019a1f8464d3 |
|
25-Jun-2009 |
Romain Guy <romainguy@android.com> |
Fix TextView's fading edge when compound drawables are setup. TextView was not correctly taking into account the extra space taken by compound drawable when drawing the fading edge of a marquee'd text.
/frameworks/base/core/java/android/widget/TextView.java
|
a465a170ce5d7155580fd308d1e50092365117e4 |
|
22-Jun-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix bugs 1827027, 1808979, 1820700. These are all variations of needing to validate ranges on editing operations coming from the IME, to account for the underlying text changing (usually being deleted) asynchronously with the IME.
/frameworks/base/core/java/android/widget/TextView.java
|
4dc4f73cabcfe685761326b79e75455970b6bc5e |
|
20-Jun-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1926784. Setting android:ellipsize on an EditText now ellipsizes the hint. It doesn't make much sense to ellipsize the text entered by the user, so we just ellipsize the hint. This avoids introducing a new XML attribute/Java API just for the particular case of ellipsizing the hint.
/frameworks/base/core/java/android/widget/TextView.java
|
1b194b14fe958b11cf06f50bdbf243c9df83e056 |
|
11-Jun-2009 |
Kenny Root <kenny@the-b.org> |
Fix spelling mistakes in Javadoc
/frameworks/base/core/java/android/widget/TextView.java
|
d6a463a9f23b3901bf729f2f27a6bb8f78b95248 |
|
22-May-2009 |
Romain Guy <romainguy@android.com> |
Add a new API to ListView: setGestures(int). This allows developers to enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer.
/frameworks/base/core/java/android/widget/TextView.java
|
a6cd4e03e6bde0c4b76ad7290eb2c527398478d1 |
|
21-May-2009 |
Romain Guy <romainguy@android.com> |
Fix NPE at boot.
/frameworks/base/core/java/android/widget/TextView.java
|
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 |
|
20-May-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
/frameworks/base/core/java/android/widget/TextView.java
|
3c77d39ee8b1c3c5a1b59be65953f73570a42511 |
|
20-May-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1866819.\nTextView sets the bounds of its compound drawables to contain only the width and the height of the drawables. This causes View.invalidateDrawable() to invalidate the compound drawables at location (0, 0) within the view, thus invalidating the wrong part of the View. This prevents animation from running correctly when using animated drawable. This change overrides invalidateDrawable() in TextView to take into account the real position of the compound drawable.
/frameworks/base/core/java/android/widget/TextView.java
|
48540eb8537b501b70ff96858b77b37c3f930603 |
|
20-May-2009 |
Romain Guy <romainguy@android.com> |
TextView was not setting the callback on its compound drawables, thus preventing them from refreshing the view when updating their internal state. This would for instance prevent animated drawables from actually animating. Quite infuriating.
/frameworks/base/core/java/android/widget/TextView.java
|
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec |
|
15-May-2009 |
svetoslavganov <svetoslavganov@google.com> |
Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
/frameworks/base/core/java/android/widget/TextView.java
|
9ea923174c2daffd9b6a1cd630018d3fdfe91f62 |
|
15-May-2009 |
Marco Nelissen <marcone@google.com> |
Rearrange some code so it makes more sense. Thanks, findbugs.
/frameworks/base/core/java/android/widget/TextView.java
|
3373ed62d1de643d3a56e3f4ece2154efa455ecc |
|
04-May-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1827988. Prevent marquee text from constantly rescaling itself in Market
/frameworks/base/core/java/android/widget/TextView.java
|
939151f1eb3d2522ed952d14a9bb79235a5d7126 |
|
08-Apr-2009 |
Romain Guy <> |
AI 145188: Fixes #1580949. Compress text when marquee is enabled but the text is too big by only a few percent of the TextView's width. BUG=1580949 Automated import of CL 145188
/frameworks/base/core/java/android/widget/TextView.java
|
c23031933ff785c9edd50ccec7577f8a728e8b8f |
|
04-Apr-2009 |
Romain Guy <> |
AI 144562: First pass at #1580949. Changes the marquee animation to make it less weird and jarring when the text overflows by a few pixels only. The next change will take care of compressing the text when the text is longer than the TextView by only a few % of its width. BUG=1580949 Automated import of CL 144562
/frameworks/base/core/java/android/widget/TextView.java
|
986003d46add147714ce7e16c9fefa8c18042fc8 |
|
26-Mar-2009 |
Romain Guy <> |
Automated import from //branches/donutburger/...@142790,142790
/frameworks/base/core/java/android/widget/TextView.java
|
3661101005c6527dfd384d0c88c4a3b68ee208af |
|
26-Mar-2009 |
Romain Guy <> |
Automated import from //branches/cupcake/...@142788,142788
/frameworks/base/core/java/android/widget/TextView.java
|
49a1a9b5a9d467411067207b4714068084a910ee |
|
25-Mar-2009 |
Dianne Hackborn <> |
Automated import from //branches/donutburger/...@141347,141347
/frameworks/base/core/java/android/widget/TextView.java
|
38e98fccfab9592f871f3066f8569c559f1ee226 |
|
25-Mar-2009 |
Dianne Hackborn <> |
Automated import from //branches/donutburger/...@140714,140714
/frameworks/base/core/java/android/widget/TextView.java
|
c2ad241504fcaa12d4579d3b0b4038d1ca8d08c9 |
|
20-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@141571
/frameworks/base/core/java/android/widget/TextView.java
|
105925376f8d0f6b318c9938c7b83ef7fef094da |
|
19-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/android/widget/TextView.java
|
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 |
|
13-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@138607
/frameworks/base/core/java/android/widget/TextView.java
|
c39a6e0c51e182338deb8b63d07933b585134929 |
|
11-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/widget/TextView.java
|
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 |
|
09-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137197
/frameworks/base/core/java/android/widget/TextView.java
|
4df2423a947bcd3f024cc3d3a1a315a8dc428598 |
|
05-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/widget/TextView.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/TextView.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/TextView.java
|
076357b8567458d4b6dfdcf839ef751634cd2bfb |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/widget/TextView.java
|
3dec7d563a2f3e1eb967ce2054a00b6620e3558c |
|
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/widget/TextView.java
|
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b |
|
20-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@132569
/frameworks/base/core/java/android/widget/TextView.java
|
3001a035439d8134a7d70d796376d1dfbff3cdcd |
|
19-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/widget/TextView.java
|
da996f390e17e16f2dfa60e972e7ebc4f868f37e |
|
13-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/widget/TextView.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/widget/TextView.java
|
f1e484acb594a726fb57ad0ae4cfe902c7f35858 |
|
22-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/widget/TextView.java
|
9266c558bf1d21ff647525ff99f7dadbca417309 |
|
16-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/widget/TextView.java
|
b798689749c64baba81f02e10cf2157c747d6b46 |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/widget/TextView.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/widget/TextView.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/widget/TextView.java
|