Switch from FloatMath to Math, better performance and

updated api

https://android.googlesource.com/platform/
frameworks/base/+/33253a4baa6279f81a73425b49dfb6abe5f5416e

Change-Id: I0181b1381f2843928993a9ca89d25e46f5956b20