summaryrefslogtreecommitdiffstats
path: root/tests/BiDiTests/src
Commit message (Collapse)AuthorAgeFilesLines
* Replace wildcard imports with explicit importsTor Norbye2013-09-132-6/+34
| | | | | | | The wildcard imports interfered with the new typedef annotations (and 99% of the tests were using explicit imports anyway.) Change-Id: I3784b9d700131fe4a0ba30283f052820b2fa5122
* Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and ↵Fabrice Di Meglio2013-03-203-280/+0
| | | | | | | | | 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
* Revert "Clean Paint.mBidiFlags as it is no longer used"Fabrice Di Meglio2013-03-153-0/+280
| | | | This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
* Clean Paint.mBidiFlags as it is no longer usedFabrice Di Meglio2013-02-123-280/+0
| | | | | | See bug #7623824 Change-Id: Ie2f9422821f6dcc73c99e8695f448e966b587b1d
* Add View textAlignmentFabrice Di Meglio2012-04-043-7/+73
| | | | | | | | | | | - 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
* Update BiDiTest app for GridLayout RTL testsFabrice Di Meglio2012-02-132-5/+5
| | | | | | - add unit tests for GridLayout in RTL mode Change-Id: Icc983a6e2cc75b30e457fd822d81ef5630de0f10
* Update BiDiTests appFabrice Di Meglio2012-02-093-0/+246
| | | | | | - add more unit tests for GridLayout (layout created by code) Change-Id: I462c41a7c5bdcb6c5d3762570f5d415cc0fa0bde
* Update BiDiTest app for adding GridLayout unit testsFabrice Di Meglio2012-02-064-0/+100
| | | | | | - added basic GridLayout unit tests for LTR / RTL / Locale cases Change-Id: Ied9814b2f56acb5d3666e78ad600f487ce4dc911
* Fix bug #5870701 Thai text can be clipped when there are more glyphs ↵Fabrice Di Meglio2012-01-131-0/+6
| | | | | | | | | 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
* Fix bug #4584320 Single Line EditText not drawing correctly with spans ↵Fabrice Di Meglio2011-08-051-0/+45
| | | | | | | | | 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
* Merge "Test Gallery layout direction."Fabrice Di Meglio2011-07-194-1/+141
|\
| * Test Gallery layout direction.Doug Felt2011-07-184-0/+140
| | | | | | | | Change-Id: If88f559e8cc46bb72ed45f33d7fc52802f1e1246
* | Fix bug #5037425 Canvas.drawText can't handle Right-to-Left text and text ↵Fabrice Di Meglio2011-07-182-44/+26
| | | | | | | | | | | | | | | | | | | | | | 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
* | Add unit tests for bug #5037425 Canvas.drawText can't handle Right-to-Left ↵Fabrice Di Meglio2011-07-184-4/+109
| | | | | | | | | | | | text and text composing Change-Id: Ic71a563ad0f4ba6de5b7f030f04a3a9615b7617c
* | Merge "Clean test APIs for Harfbuzz support"Fabrice Di Meglio2011-07-181-28/+4
|\ \
| * | Clean test APIs for Harfbuzz supportFabrice Di Meglio2011-07-151-28/+4
| |/ | | | | | | | | | | - also update unit tests Change-Id: I557f61e84c4c4b6165163b783d9c679a6b3b4106
* | Fix bug #4972141 Overlapping content in single-choice dialogsFabrice Di Meglio2011-07-151-2/+27
|/ | | | | | - need to take care about padding resolution Change-Id: Ida9738ffada6c6455b7949f933fa61924c4f7961
* Introduce TextView drawableStart and drawableEndFabrice Di Meglio2011-07-123-0/+93
| | | | | | - update also unit tests Change-Id: I20b82f5fea2cc48c93fd9e26eb03290ad730c08a
* Add textDirection support for TextView and ViewGroupFabrice Di Meglio2011-06-283-3/+65
| | | | | | | | - use ViewGroup inheritance if defined - use different heuristics (inherit, firstStrong, anyRtl, ltr, rtl) - add more unit tests Change-Id: Ic1325aa7d9e4689b181e0a2d08b7dd7fb3f0dbeb
* Introduce MarginLayoutParams marginStart and margingEndFabrice Di Meglio2011-06-242-7/+29
| | | | | | - update BiDiTest app for adding more unit tests concerning margin Change-Id: Ia6a7e0a1948a2c375e8f3cc87d120a85351a8c27
* add TextView page to BiDiTestsDoug Felt2011-06-234-1/+102
| | | | Change-Id: If6ba2d7f96283041d254d6d53bb268d88fed2c74
* Update BiDiTest app for adding more unit testsFabrice Di Meglio2011-06-201-0/+9
| | | | | | | - add some menu that will show up in compatibility mode - add more unit tests for padding and background drawable Change-Id: I90db23c68d2371c35913b039a10f9d9f34c3931e
* Add View paddingStart and paddingEndFabrice Di Meglio2011-06-202-0/+18
| | | | | | | | | - 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
* Update BiDiTest app for testing View paddingFabrice Di Meglio2011-06-162-0/+19
| | | | Change-Id: I7b956bd1d16cc4d27f33595f09f14f5d4e17e469
* Refactor BiDiTest unit tests appFabrice Di Meglio2011-06-1028-462/+503
| | | | | | - make it more extensible (suppress tabs in favor of a list selection and fragments) Change-Id: If6f6c3a33f7c03e00205edbeab2945024b477f0d
* Make View respect LAYOUT_DIRECTION_LOCALEFabrice Di Meglio2011-06-107-2/+145
| | | | | | | - update also unit tests for taking care of the locale direction - code formatting on the layout test files Change-Id: I4037eac3c572de9abb0178f36ca03803cc2c1522
* Add more unit tests for RTL layoutsFabrice Di Meglio2011-06-023-0/+72
| | | | | | | - update LinearLayout tests with default case (no horizontalDirection specified) - add TableLayout tests Change-Id: I9ad2239fca96b896c5aae4dfe67b8113faf2f96e
* Add more unit tests cases for BiDi / RTLFabrice Di Meglio2011-06-024-5/+113
| | | | | | | - update FrameLayout tests - add more RelativeLayout tests Change-Id: I2ae522c5e6ec216f7ade45935f8309b543f380b9
* Add more unit tests for RelativeLayoutFabrice Di Meglio2011-06-012-0/+36
| | | | | | - update BiDiTest test app Change-Id: I8c0734fc8a94765d269b0040ebfa048c13e11728
* Fix bug #4509967 (layout_gravity not always respected)Fabrice Di Meglio2011-06-015-14/+80
| | | | | | | | - fix FrameLayout - code refactoring on LinearLayout - add more unit tests Change-Id: I49302582c61aa31a4eb7eded92327b10408f71a4
* RTL Ordering of visual elements in LinearLayoutFabrice Di Meglio2011-05-205-37/+182
| | | | | | - also update unit tests for testing LinearLayout Change-Id: I0794d48c45a8fd4a899fdf6f6a1d05485b416e1a
* Fix bug #4338103 (Android Arabic and Hebrew input is broken)Fabrice Di Meglio2011-04-251-1/+9
| | | | | | | - fix glyph order when there is only a single run - update tests Change-Id: I113f28a8c76cab622fb75ce84bc50d1d38fa254e
* Clean getTextRunAdvances() APIsFabrice Di Meglio2011-04-211-1/+2
| | | | | | | - remove ICU reference in API names - use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU" Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
* Add Unicode BiDi Algo before drawing text in CanvasFabrice Di Meglio2011-04-151-6/+22
| | | | | | | - only for temporary API - update BiDiTest Change-Id: Ifd445799dc0fda4da896246e41978cd8d71aa035
* TextLayoutCache - add glyphs cachingFabrice Di Meglio2011-04-081-4/+11
| | | | | | | | | - 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
* Fix text redering issue where the text was sometimes truncatedFabrice Di Meglio2011-03-293-35/+109
| | | | | | | | - 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
* Use Harfbuzz instead of ICU4C for computing advancesFabrice Di Meglio2011-03-222-0/+233
- 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