| /frameworks/av/media/libmedia/include/media/ |
| LinearMap.h | 157 // The value should be monotonic increasing (e.g. diff >= 0); 239 // returns false if the diff is out of int32_t bounds or negative. 241 static inline bool checkedDiff(int32_t *diff, T x2, T x1, const char *coord) { 244 *diff = (int32_t)diff64; // intentionally lose precision 246 ALOGW("LinearMap: %s overflow diff(%lld) from %llu - %llu exceeds INT32_MAX", 251 ALOGW("LinearMap: %s negative diff(%lld) from %llu - %llu", 260 *diff = x2 - x1; 261 if (*diff < 0) { 262 ALOGW("LinearMap: %s negative diff(%d) from %u - %u", 263 coord, *diff, (unsigned)x2, (unsigned)x1) 310 int32_t diff = 0; local [all...] |
| /frameworks/av/media/libstagefright/ |
| MediaClock.cpp | 268 double diff = it->mAdjustRealUs * (double)mPlaybackRate local 271 if (diff > (double)INT64_MAX) { 273 } else if (diff < (double)INT64_MIN) { 276 diffMediaUs = diff;
|
| /frameworks/av/media/mtp/ |
| MtpUtils.cpp | 188 std::chrono::duration<double> diff = end - start; local 189 LOG(DEBUG) << "Copied a file with MTP. Time: " << diff.count() << " s, Size: " << length << 190 ", Rate: " << ((double) length) / diff.count() << " bytes/s";
|
| /bionic/libc/tzcode/ |
| strftime.c | 557 long diff; local 563 diff = t->TM_GMTOFF; 586 diff = -timezone; 592 diff = -altzone; 597 if (diff < 0) { 599 diff = -diff; 602 diff /= SECSPERMIN; 603 diff = (diff / MINSPERHOUR) * 100 [all...] |
| /bionic/libc/upstream-openbsd/lib/libc/time/ |
| wcsftime.c | 455 int diff; local 460 diff = t->tm_gmtoff; 461 if (diff < 0) { 463 diff = -diff; 467 diff /= SECSPERMIN; 468 diff = (diff / MINSPERHOUR) * 100 + 469 (diff % MINSPERHOUR); 470 pt = _conv(diff, L"%04d", pt, ptlim) [all...] |
| /cts/hostsidetests/theme/src/android/theme/cts/ |
| ComparisonTask.java | 61 final File diff = File.createTempFile("diff_" + mExpected.getName(), ".png"); local 62 createDiff(expected, actual, diff); 63 return new Pair<>(mName, diff); 171 // The diff will contain image1, image2 and the difference between the two. 172 final BufferedImage diff = new BufferedImage( local 197 diff.setRGB(x, j, colorExpected); 199 diff.setRGB(x, j, colorActual); 201 diff.setRGB(x, j, colorDiff); 205 ImageIO.write(diff, "png", out);
|
| /cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
| BitmapUtils.java | 89 double diff = 0; local 126 diff += Math.abs(aR - bR); // red 127 diff += Math.abs(aG - bG); // green 128 diff += Math.abs(aB - bB); // blue 130 diff /= (aPixels.length * 3); 132 result.mDiff = diff;
|
| /cts/tests/tests/location/src/android/location/cts/ |
| GnssLocationUpdateIntervalTest.java | 194 double diff = d - mean; local 195 accumulator += diff * diff;
|
| /cts/tests/tests/os/src/android/os/cts/ |
| WorkSourceTest.java | 367 private void doTestRemoveUids(int[] lhs, int[] rhs, int[] result, boolean diff) throws Exception { 371 if (diffres != diff) { 373 sb.append("Expected diff "); 374 sb.append(diff); 387 String[] resultnames, boolean diff) throws Exception { 394 if (diffres != diff) { 396 sb.append("Expected diff "); 397 sb.append(diff); 410 int[] result, String[] resultnames, boolean diff) throws Exception { 414 if (diffres != diff) { 436 makeStringArray(result), diff); local [all...] |
| /development/cmds/monkey/src/com/android/commands/monkey/ |
| MonkeyGetAppFrameRateEvent.java | 145 long diff = sEndTime - sStartTime; local 146 sDuration = (float) (diff / 1000.0);
|
| MonkeyGetFrameRateEvent.java | 132 long diff = mEndTime - mStartTime; local 133 mDuration = (float)(diff/1000.0);
|
| /development/tools/etc1tool/ |
| etc1tool.cpp | 378 int diff = *pSrc++ - *pDest; local 379 diff *= diff; 380 diff <<= 3; 381 if (diff < 0) { 382 diff = 0; 383 } else if (diff > 255) { 384 diff = 255; 386 *pDest++ = (png_byte) diff;
|
| /development/vndk/tools/header-checker/src/diff/ |
| abi_diff.cpp | 15 #include "diff/abi_diff.h" 29 namespace diff { namespace in namespace:header_checker 48 llvm::errs() << "Could not dump diff report\n"; 291 // Dump the differences (we need type maps for this diff since we'll get 386 llvm::errs() << "Failed to diff elements\n"; 394 } // namespace diff
|
| /device/linaro/bootloader/OpenPlatformPkg/Drivers/I2c/MvI2cDxe/ |
| MvI2cDxe.c | 339 UINT32 cur, diff, diff0, baud;
local 352 diff = ABSSUB(target, cur);
353 if (diff < diff0) {
356 diff0 = diff;
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
| rcvs.py | 21 # - cvs diff -rREVA -rREVB
156 def diff(self, opts = []):
member in class:MyFile 178 print 'diff %s -r%s %s' % (flags, rev, fn)
179 sts = os.system('diff %s %s %s' % (flags, tf.name, fn))
293 def diff(self, files, opts):
member in class:RCVS 295 e.diff(opts)
432 """diff [difflags] [file] ..."""
433 self.cvs.diff(files, opts)
|
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/ |
| test_parser.py | 175 if diff(filepath, new, encoding):
217 def diff(fn, result, encoding):
function 225 return os.system('diff -u "%s" @' % fn)
|
| /external/apache-commons-bcel/src/examples/Mini/ |
| MiniC.java | 169 int diff = len - str.length(); local 171 if(diff > 0) { 172 char[] chs = new char[diff]; 174 for(int i=0; i < diff; i++) {
|
| /external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
| NodeSorter.java | 178 double diff; local 182 diff = 0.0; 184 diff = -1; 187 diff = 1; 189 diff = n1Num - n2Num; 192 result = (int) ((diff < 0.0) 194 : (diff > 0.0) ? (k.m_descending ? -1 : 1) : 0);
|
| /external/autotest/client/tests/hackbench/src/ |
| hackbench.c | 317 struct timeval start, stop, diff; local 379 timersub(&stop, &start, &diff); 380 printf("Time: %lu.%03lu\n", diff.tv_sec, diff.tv_usec/1000);
|
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
| SICBlockCipher.java | 185 long diff = 1L << (8 * i); local 186 while (rem >= diff) 189 rem -= diff; 207 long diff = 1L << (8 * i); local 208 while (rem > diff) 211 rem -= diff;
|
| /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/ |
| SICBlockCipher.java | 187 long diff = 1L << (8 * i); local 188 while (rem >= diff) 191 rem -= diff; 209 long diff = 1L << (8 * i); local 210 while (rem > diff) 213 rem -= diff;
|
| /external/clang/lib/Edit/ |
| EditedSource.cpp | 228 unsigned diff = EndOffs.getOffset() - TopEnd.getOffset(); local 230 TopFA->RemoveLen += diff; 250 unsigned diff = E.getOffset() - TopEnd.getOffset(); local 252 TopFA->RemoveLen += diff;
|
| /external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
| TestCoverage.java | 150 Set diff = EnumSet.copyOf(all); local 151 diff.removeAll(coreCoverage); 152 if (diff.size() != 0) { 153 errln("\t" + title + ": " + diff);
|
| /external/cldr/tools/java/org/unicode/cldr/tool/ |
| FindPluralDifferences.java | 23 diff(); method 26 public static void diff() { method in class:FindPluralDifferences 91 BitSet diff = results.get(key); local 92 if (diff == null) { 93 results.put(key, diff = new BitSet()); 95 diff.set(i);
|
| ShowZoneEquivalences.java | 153 ZoneInflections.OutputLong diff = new ZoneInflections.OutputLong(0); local 176 } else if (diff.value >= minimumDate) { 177 // out.println(tabber.process("\tDiffers at:\t" + ICUServiceBuilder.isoDateFormat(diff.value))); 192 // if (country.equals(lastCountry) && diff.value >= minimumDate) System.out.print("X");
|