Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 13 of 13) sorted by relevance

/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp164 long long diff = timediff_ns(&actual_time, &expected_time); in main() local
165 if (llabs(diff) > NSEC_PER_SEC) { in main()
167 llabs(diff) / NSEC_PER_SEC, in main()
168 (llabs(diff) / NSEC_PER_MSEC) % MSEC_PER_SEC, in main()
169 diff > 0 ? "late" : "early"); in main()
171 llabs(diff) / NSEC_PER_SEC, in main()
172 (llabs(diff) / NSEC_PER_MSEC) % MSEC_PER_SEC, in main()
173 diff > 0 ? "late" : "early"); in main()
/system/core/liblog/tests/
Dbenchmark_main.cpp187 int64_t diff = NanoTime() - gBenchmarkStartTimeNs; in StopBenchmarkTiming() local
188 gBenchmarkTotalTimeNs += diff; in StopBenchmarkTiming()
189 gBenchmarkTotalTimeNsSquared += diff * diff; in StopBenchmarkTiming()
203 int64_t diff = NanoTime - gBenchmarkStartTimeNs; in StopBenchmarkTiming() local
204 gBenchmarkTotalTimeNs += diff; in StopBenchmarkTiming()
205 gBenchmarkTotalTimeNsSquared += diff * diff; in StopBenchmarkTiming()
/system/core/liblog/
Dlog_read_kern.c463 int diff; in android_logger_list_flush() local
471 diff = sizeof(firstentry->entry.entry_v3) - ret; in android_logger_list_flush()
472 if (diff < 0) { in android_logger_list_flush()
473 diff = 0; in android_logger_list_flush()
474 } else if (diff > 0) { in android_logger_list_flush()
475 memset(log_msg->buf + ret, 0, diff); in android_logger_list_flush()
477 memcpy(log_msg->buf + ret + diff, firstentry->entry.buf + ret, in android_logger_list_flush()
479 ret += diff; in android_logger_list_flush()
608 int diff; in android_logger_list_read() local
646 diff = sizeof(logger_list->entry.entry_v3) - hdr_size; in android_logger_list_read()
[all …]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c147 ptrdiff_t diff; in grep_fgetln() local
186 diff = p - bufpos; in grep_fgetln()
187 len += diff; in grep_fgetln()
190 memcpy(lnbuf + off, bufpos, diff); in grep_fgetln()
191 bufrem -= diff; in grep_fgetln()
/system/media/audio_utils/
Dfifo.c68 int32_t diff = rear - front; in audio_utils_fifo_diff() local
74 diff -= fifo->mFudgeFactor; in audio_utils_fifo_diff()
78 ALOG_ASSERT(0 <= diff && diff <= (int32_t) fifo->mFrameCount); in audio_utils_fifo_diff()
79 return (size_t) diff; in audio_utils_fifo_diff()
/system/core/libpixelflinger/codeflinger/
Dblending.cpp444 integer_t diff(fragment.flags & CORRUPTIBLE ? in build_blendFOneMinusF() local
447 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendFOneMinusF()
448 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendFOneMinusF()
449 else RSB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendFOneMinusF()
450 mul_factor_add(temp, diff, factor, component_t(fb)); in build_blendFOneMinusF()
462 integer_t diff(fb.flags & CORRUPTIBLE ? in build_blendOneMinusFF() local
465 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendOneMinusFF()
466 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendOneMinusFF()
467 else SUB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendOneMinusFF()
468 mul_factor_add(temp, diff, factor, component_t(fragment)); in build_blendOneMinusFF()
/system/bt/stack/smp/
Dsmp_cmac.c297 UINT16 len, diff; in aes_cipher_msg_auth_code() local
313 diff = len - length; in aes_cipher_msg_auth_code()
317 memcpy(&cmac_cb.text[diff] , input, (int)length); in aes_cipher_msg_auth_code()
/system/media/camera/docs/
Dmetadata-parser-sanity-check54 diff $tmp_tidy1 $tmp_tidy2
/system/media/audio_utils/tests/
Dprimitives_tests.cpp53 int diff = abs(uval - uval2); in testClamp8() local
54 EXPECT_LE(diff, 1); in testClamp8()
73 int diff = abs(ival - ival2); in testClamp16() local
74 EXPECT_LE(diff, 1); in testClamp16()
93 int diff = abs(ival - ival2); in testClamp24() local
94 EXPECT_LE(diff, 1); in testClamp24()
/system/extras/tests/workloads/
Ddefs.sh157 ((diff=endMs-startMs))
158 echo $diff
/system/security/keystore/
Dtest-keystore62 diff $baseline_file $log_file || (log $tag FAILED && exit 1)
/system/bt/stack/bnep/
Dbnep_utils.c557 UINT16 xx, diff = BNEP_MINIMUM_OFFSET - p_buf->offset; in bnepu_init_hdr() local
560 p[diff] = *p; in bnepu_init_hdr()
/system/core/libbacktrace/
Dbacktrace_test.cpp1290 uintptr_t diff = backtrace->GetFrame(frame_num)->pc - test_func; in VerifyUnreadableElfFrame() local
1291 ASSERT_LT(diff, 200U) << DumpFrames(backtrace); in VerifyUnreadableElfFrame()