Home
last modified time | relevance | path

Searched refs:rad (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java99 for (double rad = step; rad <= twoPi - step; rad += step) { in verifyColors()
100 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in verifyColors()
101 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in verifyColors()
103 float relPos = (float)(rad / twoPi); in verifyColors()
141 Log.w(getClass().getName(), "rad=" + rad + ", x=" + x + ", y=" + y in verifyColors()
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java37 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInByteArray() local
41 int unsigned = (int)(Math.sin(j * (rad + j * sweep)) * Byte.MAX_VALUE) in createSoundDataInByteArray()
50 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInShortArray() local
54 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray()
61 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInFloatArray() local
65 vaf[j] = (float)(Math.sin(j * (rad + j * sweep))); in createSoundDataInFloatArray()
77 final double rad = numCycles * 2.0 * Math.PI / numFrames; in createSineWavesShort() local
79 short sample = (short)(amplitude * Math.sin(j * rad) * Short.MAX_VALUE); in createSineWavesShort()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_blur.rs48 void setRadius(int rad) {
52 radius = rad;