Home
last modified time | relevance | path

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

/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DModel.h89 float rad = angle + rotationOffset_; in setRotation() local
93 out.x = normalized.x * cos(rad) - normalized.y * sin(rad); in setRotation()
94 out.y = normalized.x * sin(rad) + normalized.y * cos(rad); in setRotation()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java104 for (double rad = step; rad <= twoPi - step; rad += step) { in verifyColors()
105 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in verifyColors()
106 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in verifyColors()
108 float relPos = (float)(rad / twoPi); in verifyColors()
146 Log.w(getClass().getName(), "rad=" + rad + ", x=" + x + ", y=" + y in verifyColors()
/cts/tests/tests/media/common/src/android/media/cts/
DAudioHelper.java68 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInByteArray() local
72 int unsigned = (int)(Math.sin(j * (rad + j * sweep)) * Byte.MAX_VALUE) in createSoundDataInByteArray()
81 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInShortArray() local
85 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray()
92 final double rad = 2 * Math.PI * frequency / sampleRate; in createSoundDataInFloatArray() local
96 vaf[j] = (float)(Math.sin(j * (rad + j * sweep))); in createSoundDataInFloatArray()
112 final double rad = 2.0f * (float) Math.PI * frequency / (float) sampleRate; in createSoundDataInShortByteBuffer() local
117 short vai = (short) (Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortByteBuffer()
205 final double rad = numCycles * 2.0 * Math.PI / numFrames; in createSineWavesShort() local
207 short sample = (short)(amplitude * Math.sin(j * rad) * Short.MAX_VALUE); in createSineWavesShort()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_blur.rscript48 void setRadius(int rad) {
52 radius = rad;