Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 2 of 2) sorted by relevance

/frameworks/wilhelm/tests/sandbox/
Dintbufq.c150 float hz = 441; in main() local
153 sine[i].left = sin((float) (i / (sr / hz)) * pi2 ) * 32000.0; in main()
157 square[i].left = (i % (unsigned) (sr / hz)) < 50 ? 32767 : -32768; in main()
161 sawtooth[i].left = ((((int) (i % (unsigned) (sr / hz))) - 50) / 100.0) * 60000.0 - 30000.0; in main()
/frameworks/native/cmds/dumpstate/
Dutils.cpp445 static long hz; // cache discovered hz in snprcent() local
447 if (hz <= 0) { in snprcent()
448 hz = sysconf(_SC_CLK_TCK); in snprcent()
449 if (hz <= 0) { in snprcent()
450 hz = 1000; in snprcent()
455 time = (time * 100 + (hz / 2)) / hz; in snprcent()