summaryrefslogtreecommitdiffstats
path: root/tests/BiDiTests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Test Gallery layout direction."Fabrice Di Meglio2011-07-1916-1/+201
|\
| * Test Gallery layout direction.Doug Felt2011-07-1816-0/+200
| | | | | | | | Change-Id: If88f559e8cc46bb72ed45f33d7fc52802f1e1246
* | Fix bug #5037425 Canvas.drawText can't handle Right-to-Left text and text ↵Fabrice Di Meglio2011-07-183-50/+35
| | | | | | | | | | | | | | | | | | | | | | 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-187-4/+183
| | | | | | | | | | | | 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
* | | Merge "Fix bug #4972141 Overlapping content in single-choice dialogs"Fabrice Di Meglio2011-07-153-3/+35
|\ \ \
| * | | Fix bug #4972141 Overlapping content in single-choice dialogsFabrice Di Meglio2011-07-153-2/+34
| |/ / | | | | | | | | | | | | | | | - need to take care about padding resolution Change-Id: Ida9738ffada6c6455b7949f933fa61924c4f7961
* | | Merge "Some code refactoring"Fabrice Di Meglio2011-07-151-1/+29
|\ \ \ | |_|/ |/| |
| * | Some code refactoringFabrice Di Meglio2011-07-141-1/+29
| |/ | | | | | | | | | | | | - make Layout.Alignment.ALIGN_LEFT as the default case - update unit tests for reproducing bug #5002512 Change-Id: Id7ec17abd115bcda7f3434e6d64dbbba6915f108
* | Merge "Implement textDirection heuristic selection."Fabrice Di Meglio2011-07-153-169/+443
|\ \ | |/ |/|
| * Implement textDirection heuristic selection.Doug Felt2011-07-143-169/+443
| | | | | | | | Change-Id: I2fcf18de573f2d66494fa5ed61e4273c3c6078c7
* | Introduce TextView drawableStart and drawableEndFabrice Di Meglio2011-07-125-0/+301
|/ | | | | | - update also unit tests Change-Id: I20b82f5fea2cc48c93fd9e26eb03290ad730c08a
* Add textDirection support for TextView and ViewGroupFabrice Di Meglio2011-06-285-3/+289
| | | | | | | | - 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-243-7/+270
| | | | | | - update BiDiTest app for adding more unit tests concerning margin Change-Id: Ia6a7e0a1948a2c375e8f3cc87d120a85351a8c27
* add TextView page to BiDiTestsDoug Felt2011-06-2310-2/+932
| | | | Change-Id: If6ba2d7f96283041d254d6d53bb268d88fed2c74
* Update BiDiTest app for adding more unit testsFabrice Di Meglio2011-06-205-2/+87
| | | | | | | - 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-203-0/+153
| | | | | | | | | - 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-163-0/+175
| | | | Change-Id: I7b956bd1d16cc4d27f33595f09f14f5d4e17e469
* Fix Gravity start/endFabrice Di Meglio2011-06-143-38/+38
| | | | | | | - fix missing attribute value change - update BiDiTest app Change-Id: I0bb8a1ebf0b6097b7b8d488580fea6e882202e23
* Add View.getResolvedLayoutDirection()Fabrice Di Meglio2011-06-141-1/+1
| | | | | | | | | - 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
* Refactor BiDiTest unit tests appFabrice Di Meglio2011-06-1047-2823/+2789
| | | | | | - 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-1028-716/+1905
| | | | | | | - update also unit tests for taking care of the locale direction - code formatting on the layout test files Change-Id: I4037eac3c572de9abb0178f36ca03803cc2c1522
* Rename atribute View horizontalDirection to layoutDirection and update unit ↵Fabrice Di Meglio2011-06-0710-50/+50
| | | | | | | | tests - update before/after to start/end in unit test app Change-Id: Id7286ef5d9390540faf8ecd5f0b1c140d04bb364
* Update BiDiTest app for Gravity renamingFabrice Di Meglio2011-06-061-2/+2
| | | | | | - BEFORE?AFTER is now START/END Change-Id: I44cfdc17090052704024d8c5386553f0c83e9ab2
* Update BiDiTest appFabrice Di Meglio2011-06-023-42/+44
| | | | | | - change buttons text to follow their Gravity Change-Id: Ie0d79ced9c14bf8b0f12d1c31da5e2fe6f162c88
* Add more unit tests for RTL layoutsFabrice Di Meglio2011-06-029-36/+608
| | | | | | | - 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-0211-178/+638
| | | | | | | - update FrameLayout tests - add more RelativeLayout tests Change-Id: I2ae522c5e6ec216f7ade45935f8309b543f380b9
* Add more unit tests for RelativeLayoutFabrice Di Meglio2011-06-016-0/+212
| | | | | | - update BiDiTest test app Change-Id: I8c0734fc8a94765d269b0040ebfa048c13e11728
* Merge "Fix bug #4509967 (layout_gravity not always respected)"Fabrice Di Meglio2011-06-0110-17/+259
|\
| * Fix bug #4509967 (layout_gravity not always respected)Fabrice Di Meglio2011-06-0110-16/+258
| | | | | | | | | | | | | | | | - fix FrameLayout - code refactoring on LinearLayout - add more unit tests Change-Id: I49302582c61aa31a4eb7eded92327b10408f71a4
* | Add support to OpenGLRendere to draw BiDi text.Romain Guy2011-06-012-9/+8
|/ | | | | | Bug #4350336 Change-Id: I1cf31693f7ca9653fa3a41b5b91c27ef288d680f
* Manual merge. Preference activity changes to work on smaller tablet screens ↵Amith Yamasani2011-05-261-1/+1
| | | | | | | | | and phones. Padding around fragments and to the left of preference items adjusted for different display sizes. Change-Id: I2d29e5525c381092a3f1d2fb1265ce07db893d78
* RTL Ordering of visual elements in LinearLayoutFabrice Di Meglio2011-05-2012-58/+666
| | | | | | - also update unit tests for testing LinearLayout Change-Id: I0794d48c45a8fd4a899fdf6f6a1d05485b416e1a
* Fix bug #4338103 (Android Arabic and Hebrew input is broken)Fabrice Di Meglio2011-04-253-3/+11
| | | | | | | - 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-153-8/+26
| | | | | | | - 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-295-36/+117
| | | | | | | | - 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-227-0/+380
- 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