summaryrefslogtreecommitdiffstats
path: root/tests/BiDiTests
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-204-320/+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-154-0/+320
| | | | This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
* Clean Paint.mBidiFlags as it is no longer usedFabrice Di Meglio2013-02-124-320/+0
| | | | | | See bug #7623824 Change-Id: Ie2f9422821f6dcc73c99e8695f448e966b587b1d
* Add View textAlignmentFabrice Di Meglio2012-04-045-7/+1229
| | | | | | | | | | | - 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
* Fix bug #6140391 Make RTL awareness as an opt-in into the AndroidManifestFabrice Di Meglio2012-04-031-1/+3
| | | | | | | | - introduce "supportsRtl" as a new application attribute in the AndroidManifest - "supportsRtl" default value is FALSE (no RTL support) - adapt the View layoutDirection and textDirection logic to take care of "supportsRtl" value Change-Id: I5e4f9f576e14f35dedc6b0c29a7142c397f598e0
* Unhide BiDiTests appFabrice Di Meglio2012-03-011-0/+0
| | | | | | - unhide its makefile so that now it is part of the standard build process Change-Id: Ied86c252975e30da8e3e75180869835f00a5969d
* Update BiDiTest app for GridLayout RTL testsFabrice Di Meglio2012-02-134-5/+47
| | | | | | - add unit tests for GridLayout in RTL mode Change-Id: Icc983a6e2cc75b30e457fd822d81ef5630de0f10
* Update BiDiTests appFabrice Di Meglio2012-02-094-0/+268
| | | | | | - add more unit tests for GridLayout (layout created by code) Change-Id: I462c41a7c5bdcb6c5d3762570f5d415cc0fa0bde
* Update BiDiTest app for adding GridLayout unit testsFabrice Di Meglio2012-02-067-0/+322
| | | | | | - added basic GridLayout unit tests for LTR / RTL / Locale cases Change-Id: Ied9814b2f56acb5d3666e78ad600f487ce4dc911
* Update BiDiTest appFabrice Di Meglio2012-02-022-5/+11
| | | | | | | - update basic layout for being scrollable - add more test strings Change-Id: Iec1b495619cdd76639f127fb1ac4e4f41d0726d8
* Fix bug #5870701 Thai text can be clipped when there are more glyphs ↵Fabrice Di Meglio2012-01-132-0/+7
| | | | | | | | | 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 #5199577 TextView with android:password="true" is showing the "dots" ↵Fabrice Di Meglio2011-08-252-2/+10
| | | | | | | | | | 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
* Update BiDiTest appFabrice Di Meglio2011-08-182-1/+14
| | | | | | - add a default TextView Change-Id: I0ce92503204e370d9c928440cdd4876701c6c4cb
* Fix bug #4584320 Single Line EditText not drawing correctly with spans ↵Fabrice Di Meglio2011-08-053-22/+80
| | | | | | | | | 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
* Update BiDi unit testsFabrice Di Meglio2011-08-052-3/+20
| | | | | | - update basic layout for having LTR and RTL TextView Change-Id: Ic4cc6c27d431fe69bb62c55cd76a46ea6e241b4d
* Fix bug #4772392 Check what needs to be done for RTL specific new attributes ↵Fabrice Di Meglio2011-07-203-0/+9
| | | | | | | | | | that are in public.xml - cleanup public.xml - make BiDiTest makefile non visible to the build system - provide file for injecting the new attributes by hand Change-Id: I5037ec323066ebd254be51fff7070a5a0101dff7
* 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