Searched defs:actual (Results 26 - 34 of 34) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java307 private float calculateGlow(float target, float actual) { argument
309 if (DEBUG_GLOW) Log.d(TAG, "target: " + target + " actual: " + actual);
310 float stretch = Math.abs((target - actual) / mMaximumStretch);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java985 private static void assertTimeEquals(long expected, long actual) { argument
986 if (expected != actual) {
987 fail("expected " + formatTime(expected) + " but was actually " + formatTime(actual));
997 private static void assertEqualsFuzzy(long expected, long actual, long fuzzy) { argument
1000 if (actual < low || actual > high) {
1001 fail("value " + actual + " is outside [" + low + "," + high + "]");
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c128 ssize_t actual = pipeWriter->write(ptr, (size_t) count); local
129 if (actual < 0) {
132 if ((sf_count_t) actual < count) {
135 ptr += actual * sfinfo.channels;
136 count -= actual;
137 total += actual;
H A Dplaybq.cpp128 ssize_t actual = pipeWriter->write(ptr, (size_t) count); local
129 if (actual < 0) {
132 if ((sf_count_t) actual < count) {
135 ptr += actual * sfinfo.channels;
136 count -= actual;
137 total += actual;
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp271 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); local
272 if (0 > actual) {
275 } else if (0 == actual) {
280 assert(actual <= requested);
281 *bytes = actual;
282 mCurrentPos += actual;
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java344 * @param actual The file of whose contents to verify
348 protected void verifyFileContents(ParcelFileDescriptor actual, byte[] expected) argument
350 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(actual);
351 long fileSize = actual.getStatSize();
364 * @param actual The array whose data we want to verify
367 protected void compareByteArrays(byte[] actual, byte[] expected) { argument
368 assertEquals(actual.length, expected.length);
369 int length = actual.length;
372 if (actual[i] != expected[i]) {
386 byte[] actual
[all...]
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2495 ssize_t actual = teeSource->read(buffer, count, local
2499 if (actual <= 0) {
2500 if (actual == (ssize_t) OVERRUN && wasFirstRead) {
2505 ALOG_ASSERT(actual <= (ssize_t)count);
2506 write(teeFd, buffer, actual * channelCount * sizeof(short));
2507 total += actual;
H A DThreads.cpp1312 uint32_t actual = AudioSystem::getStrategyForStream(t->streamType()); local
1313 if (sessionId == t->sessionId() && strategy != actual) {
1315 strategy, actual);
3214 // TODO: use actual buffer filling status instead of latency when available from
4872 // TODO: use actual buffer filling status instead of 2 buffers when info is available
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java544 private static void assertStartsWith(String prefix, String actual) { argument
545 assertStartsWith("", prefix, actual);
548 private static void assertStartsWith(String description, String prefix, String actual) { argument
549 if (!actual.startsWith(prefix)) {
554 sb.append(actual);
1165 String actual = getMs().getVolumeState(mPath);
1166 if (desired.equals(actual)) {

Completed in 322 milliseconds

12