Loading graphics/java/android/renderscript/Font.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -201,12 +201,14 @@ public class Font extends BaseObj { /** /** * Accepts one of the following family names as an argument * Accepts one of the following family names as an argument * and will attemp to produce the best match with a system font * and will attempt to produce the best match with a system font: * * "sans-serif" "arial" "helvetica" "tahoma" "verdana" * "sans-serif" "arial" "helvetica" "tahoma" "verdana" * "serif" "times" "times new roman" "palatino" "georgia" "baskerville" * "serif" "times" "times new roman" "palatino" "georgia" "baskerville" * "goudy" "fantasy" "cursive" "ITC Stone Serif" * "goudy" "fantasy" "cursive" "ITC Stone Serif" * "monospace" "courier" "courier new" "monaco" * "monospace" "courier" "courier new" "monaco" * Returns default font if no match could be found * * Returns default font if no match could be found. */ */ static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) { static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) { String fileName = getFontFileName(familyName, fontStyle); String fileName = getFontFileName(familyName, fontStyle); Loading libs/rs/driver/rsdAllocation.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -460,8 +460,8 @@ void rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, uint8_t *srcPtr = getOffsetPtr(srcAlloc, srcXoff, srcYoff + i, srcLod, srcFace); uint8_t *srcPtr = getOffsetPtr(srcAlloc, srcXoff, srcYoff + i, srcLod, srcFace); memcpy(dstPtr, srcPtr, w * elementSize); memcpy(dstPtr, srcPtr, w * elementSize); LOGE("COPIED dstXoff(%u), dstYoff(%u), dstLod(%u), dstFace(%u), w(%u), h(%u), srcXoff(%u), srcYoff(%u), srcLod(%u), srcFace(%u)", //LOGE("COPIED dstXoff(%u), dstYoff(%u), dstLod(%u), dstFace(%u), w(%u), h(%u), srcXoff(%u), srcYoff(%u), srcLod(%u), srcFace(%u)", dstXoff, dstYoff, dstLod, dstFace, w, h, srcXoff, srcYoff, srcLod, srcFace); // dstXoff, dstYoff, dstLod, dstFace, w, h, srcXoff, srcYoff, srcLod, srcFace); } } } } Loading tests/RenderScriptTests/tests/src/com/android/rs/test/RSTest.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ import java.lang.Runtime; public class RSTest extends Activity { public class RSTest extends Activity { //EventListener mListener = new EventListener(); //EventListener mListener = new EventListener(); private static final String LOG_TAG = "libRS_jni"; private static final String LOG_TAG = "RSTest"; private static final boolean DEBUG = false; private static final boolean DEBUG = false; private static final boolean LOG_ENABLED = false; private static final boolean LOG_ENABLED = false; Loading Loading @@ -73,6 +73,14 @@ public class RSTest extends Activity { mView.pause(); mView.pause(); } } @Override protected void onStop() { // Actually kill the app if we are stopping. We don't want to // continue/resume this test ever. It should always start fresh. finish(); super.onStop(); } static void log(String message) { static void log(String message) { if (LOG_ENABLED) { if (LOG_ENABLED) { Log.v(LOG_TAG, message); Log.v(LOG_TAG, message); Loading tests/RenderScriptTests/tests/src/com/android/rs/test/UnitTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.rs.test; package com.android.rs.test; import android.content.Context; import android.content.Context; import android.renderscript.RenderScript.RSMessageHandler; import android.renderscript.RenderScript.RSMessageHandler; import android.util.Log; public class UnitTest extends Thread { public class UnitTest extends Thread { public String name; public String name; Loading Loading @@ -67,7 +66,7 @@ public class UnitTest extends Thread { result = -1; result = -1; break; break; default: default: android.util.Log.v("RenderScript", "Unit test got unexpected message"); RSTest.log("Unit test got unexpected message"); return; return; } } } } Loading Loading
graphics/java/android/renderscript/Font.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -201,12 +201,14 @@ public class Font extends BaseObj { /** /** * Accepts one of the following family names as an argument * Accepts one of the following family names as an argument * and will attemp to produce the best match with a system font * and will attempt to produce the best match with a system font: * * "sans-serif" "arial" "helvetica" "tahoma" "verdana" * "sans-serif" "arial" "helvetica" "tahoma" "verdana" * "serif" "times" "times new roman" "palatino" "georgia" "baskerville" * "serif" "times" "times new roman" "palatino" "georgia" "baskerville" * "goudy" "fantasy" "cursive" "ITC Stone Serif" * "goudy" "fantasy" "cursive" "ITC Stone Serif" * "monospace" "courier" "courier new" "monaco" * "monospace" "courier" "courier new" "monaco" * Returns default font if no match could be found * * Returns default font if no match could be found. */ */ static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) { static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) { String fileName = getFontFileName(familyName, fontStyle); String fileName = getFontFileName(familyName, fontStyle); Loading
libs/rs/driver/rsdAllocation.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -460,8 +460,8 @@ void rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, uint8_t *srcPtr = getOffsetPtr(srcAlloc, srcXoff, srcYoff + i, srcLod, srcFace); uint8_t *srcPtr = getOffsetPtr(srcAlloc, srcXoff, srcYoff + i, srcLod, srcFace); memcpy(dstPtr, srcPtr, w * elementSize); memcpy(dstPtr, srcPtr, w * elementSize); LOGE("COPIED dstXoff(%u), dstYoff(%u), dstLod(%u), dstFace(%u), w(%u), h(%u), srcXoff(%u), srcYoff(%u), srcLod(%u), srcFace(%u)", //LOGE("COPIED dstXoff(%u), dstYoff(%u), dstLod(%u), dstFace(%u), w(%u), h(%u), srcXoff(%u), srcYoff(%u), srcLod(%u), srcFace(%u)", dstXoff, dstYoff, dstLod, dstFace, w, h, srcXoff, srcYoff, srcLod, srcFace); // dstXoff, dstYoff, dstLod, dstFace, w, h, srcXoff, srcYoff, srcLod, srcFace); } } } } Loading
tests/RenderScriptTests/tests/src/com/android/rs/test/RSTest.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -39,7 +39,7 @@ import java.lang.Runtime; public class RSTest extends Activity { public class RSTest extends Activity { //EventListener mListener = new EventListener(); //EventListener mListener = new EventListener(); private static final String LOG_TAG = "libRS_jni"; private static final String LOG_TAG = "RSTest"; private static final boolean DEBUG = false; private static final boolean DEBUG = false; private static final boolean LOG_ENABLED = false; private static final boolean LOG_ENABLED = false; Loading Loading @@ -73,6 +73,14 @@ public class RSTest extends Activity { mView.pause(); mView.pause(); } } @Override protected void onStop() { // Actually kill the app if we are stopping. We don't want to // continue/resume this test ever. It should always start fresh. finish(); super.onStop(); } static void log(String message) { static void log(String message) { if (LOG_ENABLED) { if (LOG_ENABLED) { Log.v(LOG_TAG, message); Log.v(LOG_TAG, message); Loading
tests/RenderScriptTests/tests/src/com/android/rs/test/UnitTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.rs.test; package com.android.rs.test; import android.content.Context; import android.content.Context; import android.renderscript.RenderScript.RSMessageHandler; import android.renderscript.RenderScript.RSMessageHandler; import android.util.Log; public class UnitTest extends Thread { public class UnitTest extends Thread { public String name; public String name; Loading Loading @@ -67,7 +66,7 @@ public class UnitTest extends Thread { result = -1; result = -1; break; break; default: default: android.util.Log.v("RenderScript", "Unit test got unexpected message"); RSTest.log("Unit test got unexpected message"); return; return; } } } } Loading