/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | sub.cpp | 196 Word32 diff; in sub() local 198 diff = (Word32) var1 - var2; in sub() 205 if ((UWord32)(diff - 0xFFFF8000L) > 0x000FFFF) in sub() 207 if (diff > (Word32) 0x0007FFFL) in sub() 209 diff = MAX_16; in sub() 213 diff = MIN_16; in sub() 220 return ((Word16) diff); in sub()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Diff.cpp | 118 bool diff = false; in EmitResourceEntryDiff() local 126 diff = true; in EmitResourceEntryDiff() 128 diff |= in EmitResourceEntryDiff() 142 diff = true; in EmitResourceEntryDiff() 152 bool diff = false; in EmitResourceTypeDiff() local 159 diff = true; in EmitResourceTypeDiff() 178 diff = true; in EmitResourceTypeDiff() 197 diff = true; in EmitResourceTypeDiff() 199 diff |= EmitResourceEntryDiff(context, apk_a, pkg_a, type_a, entry_a.get(), apk_b, pkg_b, in EmitResourceTypeDiff() 211 diff = true; in EmitResourceTypeDiff() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | LinearMap.h | 241 static inline bool checkedDiff(int32_t *diff, T x2, T x1, const char *coord) { in checkedDiff() argument 244 *diff = (int32_t)diff64; // intentionally lose precision in checkedDiff() 260 *diff = x2 - x1; in checkedDiff() 261 if (*diff < 0) { in checkedDiff() 263 coord, *diff, (unsigned)x2, (unsigned)x1); in checkedDiff() 310 int32_t diff = 0; in findU() local 316 diff = v - vArray[current]; in findU() 317 if (diff >= 0 || in findU() 324 return uArray[current] + diff * extrapolation; in findU() 335 : ((int64_t)diff * uStep + (vStep >> 1)) / vStep + uArray[current]; in findU() [all …]
|
/frameworks/ml/nn/tools/systrace_parser/parser/test/ |
D | large_test.sh | 30 diff hdrnet.txt hdrnet.tmp 32 diff cpu.txt cpu.tmp 34 diff unittest.txt unittest.tmp 36 diff hdrnet-bm.txt hdrnet-bm.tmp 38 diff omr1_incomplete.json omr1_incomplete.tmp 40 diff omr1.txt omr1.tmp 42 diff old.txt old.tmp
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 1008 int diff = julianDay - approximateDay; in setJulianDay() local 1009 monthDay += diff; in setJulianDay() 1032 int diff = THURSDAY - firstDayOfWeek; in getWeeksSinceEpochFromJulianDay() local 1033 if (diff < 0) { in getWeeksSinceEpochFromJulianDay() 1034 diff += 7; in getWeeksSinceEpochFromJulianDay() 1036 int refDay = EPOCH_JULIAN_DAY - diff; in getWeeksSinceEpochFromJulianDay() 1203 int diff = aObject.wallTime.getYear() - bObject.wallTime.getYear(); in compare() local 1204 if (diff != 0) { in compare() 1205 return diff; in compare() 1208 diff = aObject.wallTime.getMonth() - bObject.wallTime.getMonth(); in compare() [all …]
|
D | TimeFormatter.java | 439 int diff = wallTime.getGmtOffset(); in handleToken() local 441 if (diff < 0) { in handleToken() 443 diff = -diff; in handleToken() 448 diff /= SECSPERMIN; in handleToken() 449 diff = (diff / MINSPERHOUR) * 100 + (diff % MINSPERHOUR); in handleToken() 450 numberFormatter.format(getFormat(modifier, "%04d", "%4d", "%d", "%04d"), diff); in handleToken() local
|
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 27 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig() 80 const uint32_t mask = ConfigDescription::DefaultConfig().diff(config); in Match() 90 uint32_t diff = target.diff(config); in Match() local 91 if ((diff & diff_mask) == 0) { in Match() 94 } else if ((diff & diff_mask) == android::ResTable_config::CONFIG_LOCALE) { in Match() 109 } else if ((diff & diff_mask) == in Match()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | c_g_aver.cpp | 480 Word16 diff; in Cb_gain_average() local 511 diff = 0; in Cb_gain_average() 537 diff = add(diff, *(tmp + i), pOverflow); /* Q13 */ in Cb_gain_average() 542 if (diff > 5325) /* 0.65 in Q11 */ in Cb_gain_average() 574 tmp_diff = sub(diff, 4506, pOverflow); /* 0.55 in Q13 */ in Cb_gain_average() 579 tmp_diff = sub(diff, 3277, pOverflow); /* 0.4 in Q13 */ in Cb_gain_average() 603 if ((st->hangCount < 40) || (diff > 5325)) /* 0.65 in Q13 */ in Cb_gain_average()
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | PsParser.cpp | 33 int diff = 0; in Parse() local 61 diff = record.size() - header.size(); in Parse() 62 if (diff < 0) { in Parse() 64 …tderr, "[%s]Line %d has %d missing fields\n%s\n", this->name.string(), nline, -diff, line.c_str()); in Parse() 67 } else if (diff > 0) { in Parse() 69 …f(stderr, "[%s]Line %d has %d extra fields\n%s\n", this->name.string(), nline, diff, line.c_str()); in Parse()
|
D | CpuInfoParser.cpp | 52 int diff = 0; in Parse() local 131 diff = record.size() - header.size(); in Parse() 132 if (diff < 0) { in Parse() 133 …tderr, "[%s]Line %d has %d missing fields\n%s\n", this->name.string(), nline, -diff, line.c_str()); in Parse() 136 } else if (diff > 0) { in Parse() 137 …f(stderr, "[%s]Line %d has %d extra fields\n%s\n", this->name.string(), nline, diff, line.c_str()); in Parse()
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 39 entry.second = mDefault.diff(entry.first); in parse() 100 uint32_t mask = mDefault.diff(config); in match() 110 uint32_t diff = entry.first.diff(config); in match() local 111 if ((diff & entry.second) == 0) { in match() 114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match() 132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
|
/frameworks/base/core/java/com/android/server/ |
D | ResettableTimeout.java | 104 long diff; in run() local 106 diff = mOffAt - SystemClock.uptimeMillis(); in run() 107 if (diff <= 0) { in run() 115 sleep(diff); in run()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | errorCalculator.rscript | 54 float4 diff = idealPixel - givenPixel; 55 float totalDiff = diff.x + diff.y + diff.z + diff.w;
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | statistics.cpp | 52 const float diff = value - mean_; in Pdf() local 53 return expf(-diff * diff / exp_denom_) / pdf_denom_; in Pdf()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | FlingAnimationUtils.java | 170 float diff = Math.abs(endValue - currValue); in getProperties() local 176 float durationSeconds = startGradient * diff / velAbs; in getProperties() 185 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getProperties() 267 float diff = Math.abs(endValue - currValue); in getDismissingProperties() local 273 float durationSeconds = startGradient * diff / velAbs; in getDismissingProperties() 282 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getDismissingProperties() 350 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { in VelocityInterpolator() argument 353 mDiff = diff; in VelocityInterpolator()
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | Result.java | 58 float diff = time - avg; in getStdevp() local 59 sumSqDiff += diff * diff; in getStdevp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowConfigurationTests.java | 81 assertEquals(CONFIG_WINDOW_CONFIGURATION, config1.diff(config2)); in testDiff() 84 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff() 88 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff() 93 winConfig1.diff(winConfig2, false /* compareUndefined */)); in testDiff() 96 winConfig1.diff(winConfig4, false /* compareUndefined */)); in testDiff() 98 assertEquals(0, config1.diff(config3)); in testDiff() 100 assertEquals(0, winConfig1.diff(winConfig3, false /* compareUndefined */)); in testDiff()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 316 return other != null && diff(other) == 0; in equals() 323 public int diff(DisplayDeviceInfo other) { in diff() method in DisplayDeviceInfo 324 int diff = 0; in diff() local 326 diff |= DIFF_STATE; in diff() 329 diff |= DIFF_COLOR_MODE; in diff() 353 diff |= DIFF_OTHER; in diff() 355 return diff; in diff()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResChunkPullParser.cpp | 51 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; in Next() local 52 CHECK(diff >= 0) << "diff is negative"; in Next() 53 const size_t offset = static_cast<const size_t>(diff); in Next()
|
/frameworks/av/media/libnblog/ |
D | PerformanceAnalysis.cpp | 236 bool PerformanceAnalysis::detectAndStorePeak(msInterval diff, timestamp ts) { in detectAndStorePeak() argument 245 (mOutlierData.size() - 1) + diff) / mOutlierData.size(); in detectAndStorePeak() 249 mOutlierDistribution.mMean = diff; in detectAndStorePeak() 257 if ((fabs(diff - mOutlierDistribution.mMean) < in detectAndStorePeak() 260 fabs(diff - mOutlierDistribution.mMean) < in detectAndStorePeak() 266 const double kDelta = diff - mOutlierDistribution.mMean; in detectAndStorePeak() 268 const double kDelta2 = diff - mOutlierDistribution.mMean; in detectAndStorePeak()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | BenchmarkResults.java | 80 double diff = mResults.get(i) - mean; in standardDeviation() local 81 sd += diff * diff; in standardDeviation()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 214 final int diff; 219 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left; 225 diff = drawableBounds.right - drawablePadding.right - maxRight; 231 assertThat("Cursor should be on the " + positionStr, Double.valueOf(diff),
|
/frameworks/base/core/java/android/app/ |
D | ProgressDialog.java | 374 public void incrementProgressBy(int diff) { in incrementProgressBy() argument 376 mProgress.incrementProgressBy(diff); in incrementProgressBy() 379 mIncrementBy += diff; in incrementProgressBy() 389 public void incrementSecondaryProgressBy(int diff) { in incrementSecondaryProgressBy() argument 391 mProgress.incrementSecondaryProgressBy(diff); in incrementSecondaryProgressBy() 394 mIncrementSecondaryBy += diff; in incrementSecondaryProgressBy()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | Utils.java | 223 float diff = target - source; in interpolateAngle() local 224 if (diff < 0) diff += 360f; in interpolateAngle() 225 if (diff > 180) diff -= 360f; in interpolateAngle() 227 float result = source + diff * progress; in interpolateAngle()
|
/frameworks/av/media/libeffects/lvm/tests/ |
D | snr.cpp | 44 const A diff(A(in[i]) - value); in getSignalNoise() local 46 noise += diff * diff; in getSignalNoise()
|