Home
last modified time | relevance | path

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

12

/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp163 long long diff = timediff_ns(&actual_time, &expected_time); in main() local
164 if (llabs(diff) > NSEC_PER_SEC) { in main()
166 llabs(diff) / NSEC_PER_SEC, in main()
167 (llabs(diff) / NSEC_PER_MSEC) % MSEC_PER_SEC, in main()
168 diff > 0 ? "late" : "early"); in main()
170 llabs(diff) / NSEC_PER_SEC, in main()
171 (llabs(diff) / NSEC_PER_MSEC) % MSEC_PER_SEC, in main()
172 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/libufdt/utils/tests/
Dmkdtimg_testdata.sh48 diff ${OUTDIR}/${DTB_LIST[$index]} ${OUTDTB_CFG}.$index
60 diff ${OUTDIR}/${DTB_LIST[$index]} ${OUTDTB}.$index
63 diff "${OUTDIR}/cfg_create.dump" "${OUTDIR}/create.dump"
/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.cpp68 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const in diff() function in audio_utils_fifo_base
78 uint32_t diff = rear - front; in diff() local
99 *lost = diff - (flush ? 0 : mFrameCount) - mFudgeFactor * (genDiff/mFrameCountP2); in diff()
105 diff -= mFudgeFactor; in diff()
112 if (diff > mFrameCount) { in diff()
114 *lost = diff - (flush ? 0 : mFrameCount); in diff()
118 return (int32_t) diff; in diff()
209 int32_t filled = mFifo.diff(mLocalRear, front); in obtain()
315 int32_t filled = mFifo.diff(mLocalRear, front); in release()
473 int32_t filled = mFifo.diff(rear, mLocalFront); in release()
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c157 static int analyze_types(policydb_t * policydb, char diff, char equiv) in analyze_types() argument
231 if (diff) { in analyze_types()
268 char ch, diff = 0, equiv = 0; in typecmp_func() local
279 diff = 1; in typecmp_func()
290 if (!(diff || equiv)) { in typecmp_func()
294 return analyze_types(policydb, diff, equiv); in typecmp_func()
/system/core/libcutils/tests/
Dsched_policy_test.cpp53 auto diff = end - start; in medianSleepTime() local
54 sleepTimes.push_back(diff.count()); in medianSleepTime()
/system/core/libpixelflinger/codeflinger/
Dblending.cpp445 integer_t diff(fragment.flags & CORRUPTIBLE ? in build_blendFOneMinusF() local
448 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendFOneMinusF()
449 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendFOneMinusF()
450 else RSB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendFOneMinusF()
451 mul_factor_add(temp, diff, factor, component_t(fb)); in build_blendFOneMinusF()
463 integer_t diff(fb.flags & CORRUPTIBLE ? in build_blendOneMinusFF() local
466 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendOneMinusFF()
467 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendOneMinusFF()
468 else SUB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendOneMinusFF()
469 mul_factor_add(temp, diff, factor, component_t(fragment)); in build_blendOneMinusFF()
/system/update_engine/scripts/
Dtest_paycheck.sh167 diff "${tmpdir}/${NEW_FULL_KERN_PART}" "${tmpdir}/${NEW_DELTA_KERN_PART}"
168 diff "${tmpdir}/${NEW_FULL_ROOT_PART}" "${tmpdir}/${NEW_DELTA_ROOT_PART}"
/system/bt/stack/smp/
Dsmp_cmac.cc282 uint16_t diff; in aes_cipher_msg_auth_code() local
296 diff = len - length; in aes_cipher_msg_auth_code()
299 memcpy(&cmac_cb.text[diff], input, (int)length); in aes_cipher_msg_auth_code()
/system/libufdt/tests/
Dcommon.sh39 diff -u <(cat "$1" | remove_overlay_stuff) <(cat "$2" | remove_overlay_stuff)
/system/extras/simpleperf/
Dcpu_hotplug_test.cpp255 auto diff = std::chrono::duration_cast<std::chrono::seconds>( in TEST() local
258 GTEST_LOG_(INFO) << "Have Tested " << (diff.count() / 60.0) << " minutes."; in TEST()
311 auto diff = std::chrono::duration_cast<std::chrono::seconds>( in TEST() local
314 GTEST_LOG_(INFO) << "Have Tested " << (diff.count() / 60.0) << " minutes."; in TEST()
394 auto diff = std::chrono::duration_cast<std::chrono::seconds>( in TEST() local
397 GTEST_LOG_(INFO) << "Have Tested " << (diff.count() / 60.0) << " minutes."; in TEST()
/system/core/logd/
DLogStatistics.cpp114 log_time diff = stamp - mNewest[log_id]; in add() local
117 if (diff.tv_sec > hourSec) { in add()
119 diff += mOldest[log_id]; in add()
120 if ((diff > stamp) && ((diff - stamp).tv_sec < hourSec)) { in add()
121 diff = stamp; in add()
123 if (diff <= stamp) { in add()
124 mOldest[log_id] = diff; in add()
125 if (mNewestDropped[log_id] < diff) { in add()
126 mNewestDropped[log_id] = diff; in add()
/system/libvintf/
DHalManifest.cpp290 std::vector<std::string> diff; in checkCompatibility() local
293 std::inserter(diff, diff.begin())) in checkCompatibility()
294 if (!diff.empty()) { in checkCompatibility()
297 for (const auto &name : diff) { in checkCompatibility()
/system/media/camera/docs/
Dmetadata-parser-sanity-check54 diff $tmp_tidy1 $tmp_tidy2
/system/media/audio_utils/tests/
Dprimitives_tests.cpp55 int diff = abs(uval - uval2); in testClamp8() local
56 EXPECT_LE(diff, 1); in testClamp8()
75 int diff = abs(ival - ival2); in testClamp16() local
76 EXPECT_LE(diff, 1); in testClamp16()
95 int diff = abs(ival - ival2); in testClamp24() local
96 EXPECT_LE(diff, 1); in testClamp24()
/system/sepolicy/prebuilts/api/26.0/public/
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/sepolicy/public/
Dinstall_recovery.te17 # Update the recovery block device based off a diff of the boot block device
/system/extras/tests/workloads/
Ddefs.sh177 ((diff=endMs-startMs))
178 echo $diff
/system/sepolicy/prebuilts/api/26.0/private/
Duntrusted_app_25.te44 # https://github.com/strazzere/anti-emulator/blob/master/AntiEmulator/src/diff/strazzere/anti/emula…
/system/sepolicy/private/
Duntrusted_app_25.te44 # https://github.com/strazzere/anti-emulator/blob/master/AntiEmulator/src/diff/strazzere/anti/emula…
/system/media/audio_utils/include/audio_utils/
Dfifo.h95 int32_t diff(uint32_t rear, uint32_t front, size_t *lost = NULL, bool flush = false) const;
/system/security/keystore/
Dtest-keystore62 diff $baseline_file $log_file || (log $tag FAILED && exit 1)
/system/update_engine/
Dpayload_state.cc1073 TimeDelta diff = GetUpdateDuration() - stored_delta; in LoadUpdateDurationUptime() local
1074 if (diff < -kDurationSlack) { in LoadUpdateDurationUptime()
1078 << utils::FormatTimeDelta(diff) in LoadUpdateDurationUptime()
/system/bt/stack/bnep/
Dbnep_utils.cc498 uint16_t xx, diff = BNEP_MINIMUM_OFFSET - p_buf->offset; in bnepu_init_hdr() local
500 for (xx = 0; xx < p_buf->len; xx++, p--) p[diff] = *p; in bnepu_init_hdr()

12