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.java87 for (double rad = step; rad <= twoPi - step; rad += step) { in checkColors()
88 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in checkColors()
89 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in checkColors()
91 float relPos = (float)(rad / twoPi); in checkColors()
130 System.out.println(rad); in checkColors()
/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;