From 9f82b580d744ce4baf057b061994394dcf239eed Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Tue, 8 Mar 2011 12:02:59 -0800 Subject: 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 --- tests/BiDiTests/Android.mk | 27 +++ tests/BiDiTests/AndroidManifest.xml | 36 ++++ tests/BiDiTests/proguard.flags | 0 tests/BiDiTests/res/layout/biditest_main.xml | 58 +++++++ tests/BiDiTests/res/values/strings.xml | 26 +++ .../src/com/android/bidi/BiDiTestActivity.java | 43 +++++ .../src/com/android/bidi/BiDiTestView.java | 190 +++++++++++++++++++++ 7 files changed, 380 insertions(+) create mode 100644 tests/BiDiTests/Android.mk create mode 100644 tests/BiDiTests/AndroidManifest.xml create mode 100644 tests/BiDiTests/proguard.flags create mode 100644 tests/BiDiTests/res/layout/biditest_main.xml create mode 100644 tests/BiDiTests/res/values/strings.xml create mode 100644 tests/BiDiTests/src/com/android/bidi/BiDiTestActivity.java create mode 100644 tests/BiDiTests/src/com/android/bidi/BiDiTestView.java (limited to 'tests') diff --git a/tests/BiDiTests/Android.mk b/tests/BiDiTests/Android.mk new file mode 100644 index 0000000..ae29fc2 --- /dev/null +++ b/tests/BiDiTests/Android.mk @@ -0,0 +1,27 @@ +# Copyright (C) 2011 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := tests + +# Only compile source java files in this apk. +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +LOCAL_PACKAGE_NAME := BiDiTests + +LOCAL_PROGUARD_FLAG_FILES := proguard.flags + +include $(BUILD_PACKAGE) \ No newline at end of file diff --git a/tests/BiDiTests/AndroidManifest.xml b/tests/BiDiTests/AndroidManifest.xml new file mode 100644 index 0000000..346ace8 --- /dev/null +++ b/tests/BiDiTests/AndroidManifest.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/BiDiTests/proguard.flags b/tests/BiDiTests/proguard.flags new file mode 100644 index 0000000..e69de29 diff --git a/tests/BiDiTests/res/layout/biditest_main.xml b/tests/BiDiTests/res/layout/biditest_main.xml new file mode 100644 index 0000000..9f77ad2 --- /dev/null +++ b/tests/BiDiTests/res/layout/biditest_main.xml @@ -0,0 +1,58 @@ + + + + + + + +