You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/
This commit is contained in:
@@ -60,9 +60,9 @@ public class Paint {
|
||||
}
|
||||
public void getTextBounds(String text, int start, int end, Rect bounds) {}
|
||||
public void getTextBounds(char[] text, int index, int count, Rect bounds) {}
|
||||
public int getTextWidths(String text, int start, int end, float[] widths) {
|
||||
public int getTextWidths(String text, int start, int end, float[] widths) {
|
||||
// TODO fix it
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
public void setFilterBitmap(boolean filter) {}
|
||||
|
||||
@@ -100,7 +100,7 @@ public class Paint {
|
||||
return colorFilter;
|
||||
}
|
||||
|
||||
public Shader setShader(Shader shader) { return shader; }
|
||||
public Shader setShader(Shader shader) { return shader; }
|
||||
|
||||
public enum Style {
|
||||
/**
|
||||
|
||||
@@ -24,13 +24,13 @@ import android.os.Parcelable;
|
||||
public class PointF implements Parcelable {
|
||||
public float x;
|
||||
public float y;
|
||||
|
||||
|
||||
public PointF() {}
|
||||
public PointF(float x, float y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
|
||||
public PointF(Point p) {
|
||||
this.x = p.x;
|
||||
this.y = p.y;
|
||||
@@ -46,7 +46,7 @@ public class PointF implements Parcelable {
|
||||
this.x = p.x;
|
||||
this.y = p.y;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the point's x and y coordinates
|
||||
*/
|
||||
@@ -54,7 +54,7 @@ public class PointF implements Parcelable {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the point's x and y coordinates to the coordinates of p
|
||||
*/
|
||||
@@ -62,22 +62,22 @@ public class PointF implements Parcelable {
|
||||
this.x = p.x;
|
||||
this.y = p.y;
|
||||
}
|
||||
|
||||
public final void negate() {
|
||||
|
||||
public final void negate() {
|
||||
x = -x;
|
||||
y = -y;
|
||||
y = -y;
|
||||
}
|
||||
|
||||
|
||||
public final void offset(float dx, float dy) {
|
||||
x += dx;
|
||||
y += dy;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if the point's coordinates equal (x,y)
|
||||
*/
|
||||
public final boolean equals(float x, float y) {
|
||||
return this.x == x && this.y == y;
|
||||
public final boolean equals(float x, float y) {
|
||||
return this.x == x && this.y == y;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -105,14 +105,14 @@ public class PointF implements Parcelable {
|
||||
/**
|
||||
* Return the euclidian distance from (0,0) to the point
|
||||
*/
|
||||
public final float length() {
|
||||
return length(x, y);
|
||||
public final float length() {
|
||||
return length(x, y);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the euclidian distance from (0,0) to (x,y)
|
||||
*/
|
||||
public static float length(float x, float y) {
|
||||
return (float) Math.hypot(x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package android.graphics.drawable;
|
||||
|
||||
public interface Animatable {
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public class Drawable {
|
||||
public int getChangingConfigurations() {
|
||||
return Drawable.this.getChangingConfigurations();
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public class Drawable {
|
||||
|
||||
public void invalidateSelf() {
|
||||
native_invalidate(paintable);
|
||||
|
||||
|
||||
/* this shouldn't ever be needed with Gtk, but let's play it safe for now */
|
||||
if (this.callback != null) {
|
||||
callback.invalidateDrawable(this);
|
||||
|
||||
@@ -9,5 +9,5 @@ public class ScaleDrawable extends Drawable {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'draw'");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@ public class ShapeDrawable extends Drawable {
|
||||
public void setPadding(Rect padding) {}
|
||||
|
||||
public void setShape(Shape shape) {}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user