Searched refs:mBytes (Results 1 – 1 of 1) sorted by relevance
203 private byte[] mBytes; field in VisualizerView215 mBytes = null; in init()223 mBytes = bytes; in updateVisualizer()231 if (mBytes == null) { in onDraw()235 if (mPoints == null || mPoints.length < mBytes.length * 4) { in onDraw()236 mPoints = new float[mBytes.length * 4]; in onDraw()241 for (int i = 0; i < mBytes.length - 1; i++) { in onDraw()242 mPoints[i * 4] = mRect.width() * i / (mBytes.length - 1); in onDraw()244 + ((byte) (mBytes[i] + 128)) * (mRect.height() / 2) / 128; in onDraw()245 mPoints[i * 4 + 2] = mRect.width() * (i + 1) / (mBytes.length - 1); in onDraw()[all …]