Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java +11 −5 Original line number Original line Diff line number Diff line Loading @@ -328,11 +328,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like were unable to resolve the color value. // looks like were unable to resolve the color value. assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve color value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve color value \"%1$s\" in attribute \"%2$s\"", value, mNames[index])); value, mNames[index])); assert false; return null; return null; } } Loading Loading @@ -406,11 +407,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the dimension value // looks like we were unable to resolve the dimension value assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve dimension value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve dimension value \"%1$s\" in attribute \"%2$s\"", s, mNames[index])); s, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -536,11 +538,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the fraction value // looks like we were unable to resolve the fraction value assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve fraction value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve fraction value \"%1$s\" in attribute \"%2$s\"", value, mNames[index])); value, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -644,9 +647,11 @@ public final class BridgeTypedArray extends TypedArray { return idValue.intValue(); return idValue.intValue(); } } assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index])); "Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -679,11 +684,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the drawable // looks like we were unable to resolve the drawable assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve drawable \"%1$s\" in attribute \"%2$s\"", stringValue, "Unable to resolve drawable \"%1$s\" in attribute \"%2$s\"", stringValue, mNames[index])); mNames[index])); assert false; return null; return null; } } Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeTypedArray.java +11 −5 Original line number Original line Diff line number Diff line Loading @@ -328,11 +328,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like were unable to resolve the color value. // looks like were unable to resolve the color value. assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve color value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve color value \"%1$s\" in attribute \"%2$s\"", value, mNames[index])); value, mNames[index])); assert false; return null; return null; } } Loading Loading @@ -406,11 +407,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the dimension value // looks like we were unable to resolve the dimension value assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve dimension value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve dimension value \"%1$s\" in attribute \"%2$s\"", s, mNames[index])); s, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -536,11 +538,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the fraction value // looks like we were unable to resolve the fraction value assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve fraction value \"%1$s\" in attribute \"%2$s\"", "Unable to resolve fraction value \"%1$s\" in attribute \"%2$s\"", value, mNames[index])); value, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -644,9 +647,11 @@ public final class BridgeTypedArray extends TypedArray { return idValue.intValue(); return idValue.intValue(); } } assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index])); "Unable to resolve id \"%1$s\" for attribute \"%2$s\"", value, mNames[index])); assert false; return defValue; return defValue; } } Loading Loading @@ -679,11 +684,12 @@ public final class BridgeTypedArray extends TypedArray { } } // looks like we were unable to resolve the drawable // looks like we were unable to resolve the drawable assert false; Bridge.getLog().warning(null, String.format( Bridge.getLog().warning(null, String.format( "Unable to resolve drawable \"%1$s\" in attribute \"%2$s\"", stringValue, "Unable to resolve drawable \"%1$s\" in attribute \"%2$s\"", stringValue, mNames[index])); mNames[index])); assert false; return null; return null; } } Loading