summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-01-12 15:59:49 -0800
committerXavier Ducrohet <xav@android.com>2011-01-12 15:59:49 -0800
commit56222cfbe9973c518f7e8c9113c614de80b5a4b2 (patch)
tree4d9eb725e5aa1397b4a26f874f588f5a239dcabb /tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
parent147f7df35c554cf24287c732f8b74b0018e1ddbe (diff)
downloadframeworks_base-56222cfbe9973c518f7e8c9113c614de80b5a4b2.zip
frameworks_base-56222cfbe9973c518f7e8c9113c614de80b5a4b2.tar.gz
frameworks_base-56222cfbe9973c518f7e8c9113c614de80b5a4b2.tar.bz2
LayoutLib: use tags in logs.
Change-Id: Ib85272249d285ecef409bf063903bcd91514a424
Diffstat (limited to 'tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java')
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
index 43cf91a..7db3486 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
@@ -17,6 +17,7 @@
package android.graphics;
import com.android.layoutlib.bridge.Bridge;
+import com.android.layoutlib.bridge.BridgeConstants;
import com.android.layoutlib.bridge.impl.DelegateManager;
import android.graphics.Paint.FontMetrics;
@@ -179,7 +180,7 @@ public class Paint_Delegate {
return stroke;
}
} else {
- Bridge.getLog().fidelityWarning(null,
+ Bridge.getLog().fidelityWarning(BridgeConstants.TAG_PATHEFFECT,
effectDelegate.getSupportMessage(),
null);
}
@@ -375,7 +376,8 @@ public class Paint_Delegate {
/*package*/ static void nSetShadowLayer(Paint thisPaint, float radius, float dx, float dy,
int color) {
// FIXME
- Bridge.getLog().fidelityWarning(null, "Paint.setShadowLayer is not supported.", null);
+ Bridge.getLog().fidelityWarning(BridgeConstants.TAG_UNSUPPORTED,
+ "Paint.setShadowLayer is not supported.", null);
}
/*package*/ static float getTextSize(Paint thisPaint) {
@@ -691,7 +693,8 @@ public class Paint_Delegate {
// since none of those are supported, display a fidelity warning right away
ColorFilter_Delegate filterDelegate = delegate.getColorFilter();
if (filterDelegate != null && filterDelegate.isSupported() == false) {
- Bridge.getLog().fidelityWarning(null, filterDelegate.getSupportMessage(), null);
+ Bridge.getLog().fidelityWarning(BridgeConstants.TAG_COLORFILTER,
+ filterDelegate.getSupportMessage(), null);
}
return filter;
@@ -729,7 +732,8 @@ public class Paint_Delegate {
// since none of those are supported, display a fidelity warning right away
MaskFilter_Delegate filterDelegate = delegate.getMaskFilter();
if (filterDelegate != null && filterDelegate.isSupported() == false) {
- Bridge.getLog().fidelityWarning(null, filterDelegate.getSupportMessage(), null);
+ Bridge.getLog().fidelityWarning(BridgeConstants.TAG_MASKFILTER,
+ filterDelegate.getSupportMessage(), null);
}
return maskfilter;
@@ -759,7 +763,8 @@ public class Paint_Delegate {
// since none of those are supported, display a fidelity warning right away
Rasterizer_Delegate rasterizerDelegate = delegate.getRasterizer();
if (rasterizerDelegate != null && rasterizerDelegate.isSupported() == false) {
- Bridge.getLog().fidelityWarning(null, rasterizerDelegate.getSupportMessage(), null);
+ Bridge.getLog().fidelityWarning(BridgeConstants.TAG_RASTERIZER,
+ rasterizerDelegate.getSupportMessage(), null);
}
return rasterizer;