private static int floorMod(int x, int y) {
    return x - floorDiv(x, y) * y;
  }
Copied from the API 24+ AOSP source.
lottie/src/main/java/com/airbnb/lottie/animation/content/RoundedCornersContent.java