Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46c53129 authored by Romain Guy's avatar Romain Guy
Browse files

Rename GestureUtilities to GestureUtils.

parent 8f3ff095
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55606,7 +55606,7 @@
>
</field>
</class>
<class name="GestureUtilities"
<class name="GestureUtils"
 extends="java.lang.Object"
 abstract="false"
 static="false"
+3 −3
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ public class Gesture implements Parcelable {
            } catch (IOException e) {
                Log.e(GestureConstants.LOG_TAG, "Error reading Gesture from parcel:", e);
            } finally {
                GestureUtilities.closeStream(inStream);
                GestureUtils.closeStream(inStream);
            }

            if (gesture != null) {
@@ -322,8 +322,8 @@ public class Gesture implements Parcelable {
        } catch (IOException e) {
            Log.e(GestureConstants.LOG_TAG, "Error writing Gesture to parcel:", e);
        } finally {
            GestureUtilities.closeStream(outStream);
            GestureUtilities.closeStream(byteStream);
            GestureUtils.closeStream(outStream);
            GestureUtils.closeStream(byteStream);
        }

        if (result) {
+1 −1
Original line number Diff line number Diff line
@@ -638,7 +638,7 @@ public class GestureOverlayView extends FrameLayout {

                if (mTotalLength > mGestureStrokeLengthThreshold) {
                    final OrientedBoundingBox box =
                            GestureUtilities.computeOrientedBoundingBox(mStrokeBuffer);
                            GestureUtils.computeOrientedBoundingBox(mStrokeBuffer);

                    float angle = Math.abs(box.orientation);
                    if (angle > 90) {
+2 −2
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ public class GestureStore {

            mChanged = false;
        } finally {
            if (closeStream) GestureUtilities.closeStream(out);
            if (closeStream) GestureUtils.closeStream(out);
        }
    }

@@ -299,7 +299,7 @@ public class GestureStore {
                Log.d(LOG_TAG, "Loading gestures library = " + (end - start) + " ms");
            }
        } finally {
            if (closeStream) GestureUtilities.closeStream(in);
            if (closeStream) GestureUtils.closeStream(in);
        }
    }

+4 −4
Original line number Diff line number Diff line
@@ -159,15 +159,15 @@ public class GestureStroke {
     * @return the path
     */
    public Path toPath(float width, float height, int numSample) {
        final float[] pts = GestureUtilities.temporalSampling(this, numSample);
        final float[] pts = GestureUtils.temporalSampling(this, numSample);
        final RectF rect = boundingBox;

        GestureUtilities.translate(pts, -rect.left, -rect.top);
        GestureUtils.translate(pts, -rect.left, -rect.top);
        
        float sx = width / rect.width();
        float sy = height / rect.height();
        float scale = sx > sy ? sy : sx;
        GestureUtilities.scale(pts, scale, scale);
        GestureUtils.scale(pts, scale, scale);

        float mX = 0;
        float mY = 0;
@@ -241,6 +241,6 @@ public class GestureStroke {
     * @return OrientedBoundingBox
     */
    public OrientedBoundingBox computeOrientedBoundingBox() {
        return GestureUtilities.computeOrientedBoundingBox(points);
        return GestureUtils.computeOrientedBoundingBox(points);
    }
}
Loading