Searched refs:phi (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/media/tests/audiotests/ |
H A D | shared_mem_test.h | 16 void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi); 18 short ComputeSine(long amplitude, long phi);
|
H A D | shared_mem_test.cpp | 78 unsigned long phi; local 87 phi = 0; 88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer 134 void AudioTrackTest::Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi) argument 138 buffer[i0] = ComputeSine( amplitude, phi); 139 phi += dPhi; 149 short AudioTrackTest::ComputeSine(long amplitude, long phi) argument 155 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15; 157 l0 = (phi>>12) & 0x3ff; // 2^20 * x / (2*pi) 158 l1 = (amplitude*sin1024[((phi>>2 173 double phi = 0; local [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BaseCluster.java | 82 double phi = Math.toRadians(latitude); 84 vector[0] = Math.cos(lambda) * Math.cos(phi); 85 vector[1] = Math.sin(lambda) * Math.cos(phi); 86 vector[2] = Math.sin(phi);
|
Completed in 272 milliseconds