• Home
  • History
  • Annotate
  • only in /frameworks/base/tests/BiDiTests/src/com/
History log of /frameworks/base/tests/BiDiTests/src/com/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
51efddbd3bb304de2dd47fa8cd1114ac555958bb 05-Apr-2017 Alan Viverette <alanv@google.com> Remove unnecessary casts on calls to findViewById

Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
ndroid/bidi/BiDiTestActivity.java
a7726271f756dfc6f2ff3bb10fc4167e750fb606 13-Sep-2013 Tor Norbye <tnorbye@google.com> Replace wildcard imports with explicit imports

The wildcard imports interfered with the new typedef annotations (and
99% of the tests were using explicit imports anyway.)

Change-Id: I3784b9d700131fe4a0ba30283f052820b2fa5122
ndroid/bidi/BiDiTestGridLayoutCodeLtr.java
ndroid/bidi/BiDiTestGridLayoutCodeRtl.java
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
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestCanvas.java
ndroid/bidi/BiDiTestView.java
da12f389eb4be0c08ca3fa9ca7663f4977858df5 15-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> Revert "Clean Paint.mBidiFlags as it is no longer used"

This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestCanvas.java
ndroid/bidi/BiDiTestView.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
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestCanvas.java
ndroid/bidi/BiDiTestView.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
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestTextViewAlignmentLtr.java
ndroid/bidi/BiDiTestTextViewAlignmentRtl.java
0d2bda319d4d66d8fc840b043d3aacee9a8414db 13-Feb-2012 Fabrice Di Meglio <fdimeglio@google.com> Update BiDiTest app for GridLayout RTL tests

- add unit tests for GridLayout in RTL mode

Change-Id: Icc983a6e2cc75b30e457fd822d81ef5630de0f10
ndroid/bidi/BiDiTestGridLayoutCodeLtr.java
ndroid/bidi/BiDiTestGridLayoutCodeRtl.java
2a7e7a08d9843d5386b2d245c096cbc1ce203e35 10-Feb-2012 Fabrice Di Meglio <fdimeglio@google.com> Update BiDiTests app

- add more unit tests for GridLayout (layout created by code)

Change-Id: I462c41a7c5bdcb6c5d3762570f5d415cc0fa0bde
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestGridLayoutCodeLtr.java
ndroid/bidi/BiDiTestGridLayoutCodeRtl.java
bf2ab0b80c43fae0f26db9417b0247618319931a 07-Feb-2012 Fabrice Di Meglio <fdimeglio@google.com> Update BiDiTest app for adding GridLayout unit tests

- added basic GridLayout unit tests for LTR / RTL / Locale cases

Change-Id: Ied9814b2f56acb5d3666e78ad600f487ce4dc911
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestGridLayoutLocale.java
ndroid/bidi/BiDiTestGridLayoutLtr.java
ndroid/bidi/BiDiTestGridLayoutRtl.java
03e250aefa29387f30a01243682eab2371103f8e 14-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5870701 Thai text can be clipped when there are more glyphs generated than the initial number of code points

- compute total advances correctly by iterating on the advances array for up to mShaperItem.num_glyphs
- update unit tests

Change-Id: I00af68bef88702215e9222ed80dbffcc81df51a7
ndroid/bidi/BiDiTestView.java
f2ce877c1dde094ab599f0d3103145c9381ab260 06-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4584320 Single Line EditText not drawing correctly with spans applied (ICS)

- use correct 0 index for computing advance thru the char buffer (the buffer is created from TextUtils.getChars())
- udpate unit tests

Change-Id: Iaeb07658b79ecdf5e17395d55afb7c84965bb0fc
ndroid/bidi/BiDiTestBasic.java
5f9fa8826887dd9a97617d5637a3862baf7b5913 19-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Test Gallery layout direction."
c2063a5b18bc2e54f000b411c82f43992a53854e 18-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5037425 Canvas.drawText can't handle Right-to-Left text and text composing

- optimization for single run case was broken
- pass isRTL boolean along the call stack instead of the dirFlags integer
(which was only used as a "isRTL" in the shaper)
- update unit tests

Change-Id: I33110b76a433633a0b92fbd1db03785204e0c3e6
ndroid/bidi/BiDiTestView.java
ndroid/bidi/BiDiTestViewDrawText.java
ndroid/bidi/DrawTextTestView.java
3d0124f1764e57b18161b833b52964f3141243d1 14-Jul-2011 Doug Felt <dougfelt@google.com> Test Gallery layout direction.

Change-Id: If88f559e8cc46bb72ed45f33d7fc52802f1e1246
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestGalleryImages.java
ndroid/bidi/BiDiTestGalleryLtr.java
ndroid/bidi/BiDiTestGalleryRtl.java
c6f247ca31e5d4a9cc9d130cfb0abd5657176303 16-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Add unit tests for bug #5037425 Canvas.drawText can't handle Right-to-Left text and text composing

Change-Id: Ic71a563ad0f4ba6de5b7f030f04a3a9615b7617c
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestCanvas2.java
ndroid/bidi/BiDiTestView.java
ndroid/bidi/DrawTextTestView.java
46c72507984f32c8b5c86721086b624d73ae859a 18-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Clean test APIs for Harfbuzz support"
796cc96243a57cd1b652bd90c4e7ba7823c6c2fe 16-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Clean test APIs for Harfbuzz support

- also update unit tests

Change-Id: I557f61e84c4c4b6165163b783d9c679a6b3b4106
ndroid/bidi/BiDiTestView.java
54d69625558f401d5fe65309effb713d2ea06f54 16-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4972141 Overlapping content in single-choice dialogs

- need to take care about padding resolution

Change-Id: Ida9738ffada6c6455b7949f933fa61924c4f7961
ndroid/bidi/BiDiTestBasic.java
a3b6b95f9943b53d25d44a35082f817802d4eccd 30-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Introduce TextView drawableStart and drawableEnd

- update also unit tests

Change-Id: I20b82f5fea2cc48c93fd9e26eb03290ad730c08a
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestTextViewDrawablesLtr.java
ndroid/bidi/BiDiTestTextViewDrawablesRtl.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
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestTextViewDirectionLtr.java
ndroid/bidi/BiDiTestTextViewDirectionRtl.java
b76023afd192a1f5c81a8965cfd1b9dde2558726 21-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Introduce MarginLayoutParams marginStart and margingEnd

- update BiDiTest app for adding more unit tests concerning margin

Change-Id: Ia6a7e0a1948a2c375e8f3cc87d120a85351a8c27
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestViewGroupMarginMixed.java
468d8afad2fb2cdad14aa9d8bac12a9122d9bbeb 22-Jun-2011 Doug Felt <dougfelt@google.com> add TextView page to BiDiTests

Change-Id: If6ba2d7f96283041d254d6d53bb268d88fed2c74
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestTextViewLocale.java
ndroid/bidi/BiDiTestTextViewLtr.java
ndroid/bidi/BiDiTestTextViewRtl.java
53a73bcddff79617f42ad351332949be3ba92d45 21-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Update BiDiTest app for adding more unit tests

- add some menu that will show up in compatibility mode
- add more unit tests for padding and background drawable

Change-Id: I90db23c68d2371c35913b039a10f9d9f34c3931e
ndroid/bidi/BiDiTestActivity.java
d8703a98241ff190a26bc4b6089a0a8ab0122d8f 17-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View paddingStart and paddingEnd

- use a lazy padding resolution (because layout direction is lazyly resolved too)
- cache resolved layout direction as getResolvedLayoutDirection() will be more called
- enable resetting layout direction cache if needed
- update unit tests

Change-Id: I30ce19e3100cc137f84e60163b60e1577ff61819
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestViewPaddingMixed.java
b07124082e32d51be12d21bfb26147ab0617bbc9 17-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Update BiDiTest app for testing View padding

Change-Id: I7b956bd1d16cc4d27f33595f09f14f5d4e17e469
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestViewPadding.java
7af05226b901f2b623ca5b3ca23d8586941ef54b 11-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Refactor BiDiTest unit tests app

- make it more extensible (suppress tabs in favor of a list selection and fragments)

Change-Id: If6f6c3a33f7c03e00205edbeab2945024b477f0d
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestBasic.java
ndroid/bidi/BiDiTestBasicActivity.java
ndroid/bidi/BiDiTestCanvas.java
ndroid/bidi/BiDiTestCanvasActivity.java
ndroid/bidi/BiDiTestFrameLayoutLocale.java
ndroid/bidi/BiDiTestFrameLayoutLocaleActivity.java
ndroid/bidi/BiDiTestFrameLayoutLtr.java
ndroid/bidi/BiDiTestFrameLayoutLtrActivity.java
ndroid/bidi/BiDiTestFrameLayoutRtl.java
ndroid/bidi/BiDiTestFrameLayoutRtlActivity.java
ndroid/bidi/BiDiTestLinearLayoutLocale.java
ndroid/bidi/BiDiTestLinearLayoutLocaleActivity.java
ndroid/bidi/BiDiTestLinearLayoutLtr.java
ndroid/bidi/BiDiTestLinearLayoutLtrActivity.java
ndroid/bidi/BiDiTestLinearLayoutRtl.java
ndroid/bidi/BiDiTestLinearLayoutRtlActivity.java
ndroid/bidi/BiDiTestRelativeLayout2Locale.java
ndroid/bidi/BiDiTestRelativeLayout2Ltr.java
ndroid/bidi/BiDiTestRelativeLayout2Rtl.java
ndroid/bidi/BiDiTestRelativeLayoutLocaleActivity2.java
ndroid/bidi/BiDiTestRelativeLayoutLtr.java
ndroid/bidi/BiDiTestRelativeLayoutLtrActivity.java
ndroid/bidi/BiDiTestRelativeLayoutLtrActivity2.java
ndroid/bidi/BiDiTestRelativeLayoutRtl.java
ndroid/bidi/BiDiTestRelativeLayoutRtlActivity.java
ndroid/bidi/BiDiTestRelativeLayoutRtlActivity2.java
ndroid/bidi/BiDiTestTableLayoutLocale.java
ndroid/bidi/BiDiTestTableLayoutLocaleActivity.java
ndroid/bidi/BiDiTestTableLayoutLtr.java
ndroid/bidi/BiDiTestTableLayoutLtrActivity.java
ndroid/bidi/BiDiTestTableLayoutRtl.java
ndroid/bidi/BiDiTestTableLayoutRtlActivity.java
26e432d25f2ba199ae8b762fc68da8463389dd9b 10-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Make View respect LAYOUT_DIRECTION_LOCALE

- update also unit tests for taking care of the locale direction
- code formatting on the layout test files

Change-Id: I4037eac3c572de9abb0178f36ca03803cc2c1522
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestFrameLayoutLocaleActivity.java
ndroid/bidi/BiDiTestLinearLayoutLocaleActivity.java
ndroid/bidi/BiDiTestRelativeLayoutLocaleActivity2.java
ndroid/bidi/BiDiTestRelativeLayoutLtrActivity2.java
ndroid/bidi/BiDiTestRelativeLayoutRtlActivity2.java
ndroid/bidi/BiDiTestTableLayoutLocaleActivity.java
88f9fd2316d764e792a84c43aef67816ac02ef14 02-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add more unit tests for RTL layouts

- update LinearLayout tests with default case (no horizontalDirection specified)
- add TableLayout tests

Change-Id: I9ad2239fca96b896c5aae4dfe67b8113faf2f96e
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestTableLayoutLtrActivity.java
ndroid/bidi/BiDiTestTableLayoutRtlActivity.java
c715528c9657e5848021a27a600a0e8e5100fb34 02-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add more unit tests cases for BiDi / RTL

- update FrameLayout tests
- add more RelativeLayout tests

Change-Id: I2ae522c5e6ec216f7ade45935f8309b543f380b9
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestRelativeLayoutLtrActivity2.java
ndroid/bidi/BiDiTestRelativeLayoutRtlActivity.java
ndroid/bidi/BiDiTestRelativeLayoutRtlActivity2.java
c2e989021e74593ce98680bce0c28b592b1ff843 02-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add more unit tests for RelativeLayout

- update BiDiTest test app

Change-Id: I8c0734fc8a94765d269b0040ebfa048c13e11728
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestRelativeLayoutLtrActivity.java
de35ceeeb9f8855c72dfd70593e917aa75b43770 02-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4509967 (layout_gravity not always respected)

- fix FrameLayout
- code refactoring on LinearLayout
- add more unit tests

Change-Id: I49302582c61aa31a4eb7eded92327b10408f71a4
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestFrameLayoutLtrActivity.java
ndroid/bidi/BiDiTestFrameLayoutRtlActivity.java
ndroid/bidi/BiDiTestLinearLayoutLtrActivity.java
ndroid/bidi/BiDiTestLinearLayoutRtlActivity.java
1e4cfbeba54898373c852097d1519a1d966c0854 02-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> RTL Ordering of visual elements in LinearLayout

- also update unit tests for testing LinearLayout

Change-Id: I0794d48c45a8fd4a899fdf6f6a1d05485b416e1a
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestBasicActivity.java
ndroid/bidi/BiDiTestCanvasActivity.java
ndroid/bidi/BiDiTestLinearLayoutLtrActivity.java
ndroid/bidi/BiDiTestLinearLayoutRtlActivity.java
589e4e27ee071f028a4bc72b91a1fb053ab13404 26-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4338103 (Android Arabic and Hebrew input is broken)

- fix glyph order when there is only a single run
- update tests

Change-Id: I113f28a8c76cab622fb75ce84bc50d1d38fa254e
ndroid/bidi/BiDiTestView.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
ndroid/bidi/BiDiTestView.java
689e515ed2b8064c15e54d8ab69d87de54c5e0d6 14-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> Add Unicode BiDi Algo before drawing text in Canvas

- only for temporary API
- update BiDiTest

Change-Id: Ifd445799dc0fda4da896246e41978cd8d71aa035
ndroid/bidi/BiDiTestView.java
fcf2be1846935e7983ea2fe87fdd4d7af27764b6 06-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> TextLayoutCache - add glyphs caching

- cache glyphs after Harfbuzz shaping
- use "m" prefix for member variables
- add temporary API for drawing text with glyphs
- update BiDiTest app

Change-Id: I619b3f313b15f010018daad21b3e5e486619b4e4
ndroid/bidi/BiDiTestView.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
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestConstants.java
ndroid/bidi/BiDiTestView.java
9f82b580d744ce4baf057b061994394dcf239eed 08-Mar-2011 Fabrice Di Meglio <fdimeglio@google.com> Use Harfbuzz instead of ICU4C for computing advances

- use Harfbuzz shaper for shaping and getting glyphs
- add test app for showing result of drawText() and drawGlyphs()
- add private API in Canvas and Paint for test app

Change-Id: Ia15be216f8636d2d864066e9b7de2f53008c30f6
ndroid/bidi/BiDiTestActivity.java
ndroid/bidi/BiDiTestView.java