/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | sub.cpp | 39 Description: Changed all occurrences of L_diff to diff, deleted "short" in 113 diff = 16-bit limited difference between var1 and var2 (Word16) 146 Word32 diff; 148 diff = (Word32) var1 - var2; 154 var_out = saturate (diff); 196 Word32 diff; local 198 diff = (Word32) var1 - var2; 202 /* to conserve MIPS, i.e., var_out = saturate (diff) */ 205 if ((UWord32)(diff - 0xFFFF8000L) > 0x000FFFF) 207 if (diff > (Word3 [all...] |
/frameworks/base/tools/aapt2/filter/ |
H A D | ConfigFilter.cpp | 25 uint32_t diffMask = ConfigDescription::defaultConfig().diff(config); 41 const uint32_t mask = ConfigDescription::defaultConfig().diff(config); 51 uint32_t diff = target.diff(config); local 52 if ((diff & diffMask) == 0) { 55 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_LOCALE) { 65 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) {
|
/frameworks/base/core/java/com/android/server/ |
H A D | ResettableTimeout.java | 104 long diff; 106 diff = mOffAt - SystemClock.uptimeMillis(); 107 if (diff <= 0) { 115 sleep(diff);
|
/frameworks/av/services/audioflinger/ |
H A D | 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) { argument 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, (unsigne 310 int32_t diff = 0; local [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | statistics.cpp | 52 const float diff = value - mean_; local 53 return expf(-diff * diff / exp_denom_) / pdf_denom_;
|
/frameworks/support/v4/java/android/support/v4/view/animation/ |
H A D | LookupTableInterpolator.java | 50 float diff = input - quantized; 51 float weight = diff / mStepSize;
|
/frameworks/base/tools/aapt/ |
H A D | ResourceFilter.cpp | 39 entry.second = mDefault.diff(entry.first); 60 uint32_t mask = mDefault.diff(config); 70 uint32_t diff = entry.first.diff(config); local 71 if ((diff & entry.second) == 0) { 74 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { 84 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) {
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | quantize.c | 349 Word32 diff; local 364 diff = saShft - repquat[0]; 365 distSingle = (diff * diff) >> g2; 370 diff = saShft - repquat[1]; 371 distSingle = (diff * diff) >> g2; 376 diff = saShft - repquat[2]; 377 distSingle = (diff * diff) >> g 399 Word32 diff; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | c_g_aver.cpp | 284 Word16 cbGainMix, diff, tmp_diff, bgMix, cbGainMean; 320 diff = tmp[0]; 322 diff = add(diff, tmp[i]); // Q13 326 if (sub(diff, 5325) > 0) // 0.65 in Q11 352 // bgMix = min(0.25, max(0.0, diff-0.55)) / 0.25; 353 tmp_diff = sub(diff, 4506); // 0.55 in Q13 355 // max(0.0, diff-0.55) 377 // bgMix = min(0.25, max(0.0, diff-0.40)) / 0.25; 378 tmp_diff = sub(diff, 327 480 Word16 diff; local [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
H A D | Utils.java | 112 int diff = Time.THURSDAY - firstDayOfWeek; 113 if (diff < 0) { 114 diff += 7; 116 int refDay = Time.EPOCH_JULIAN_DAY - diff;
|
/frameworks/base/tools/aapt2/unflatten/ |
H A D | ResChunkPullParser.cpp | 39 const std::ptrdiff_t diff = (const char*) mCurrentChunk - (const char*) mData; local 40 assert(diff >= 0 && "diff is negative"); 41 const size_t offset = static_cast<const size_t>(diff);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | ContentLoadingProgressBar.java | 97 long diff = System.currentTimeMillis() - mStartTime; 98 if (diff >= MIN_SHOW_TIME || mStartTime == -1) { 108 postDelayed(mDelayedHide, MIN_SHOW_TIME - diff);
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 1010 int diff = julianDay - approximateDay; 1011 monthDay += diff; 1034 int diff = THURSDAY - firstDayOfWeek; 1035 if (diff < 0) { 1036 diff += 7; 1038 int refDay = EPOCH_JULIAN_DAY - diff; 1210 int diff = aObject.wallTime.getYear() - bObject.wallTime.getYear(); 1211 if (diff != 0) { 1212 return diff; 1215 diff [all...] |
H A D | TimeFormatter.java | 362 int diff = wallTime.getGmtOffset(); 364 if (diff < 0) { 366 diff = -diff; 371 diff /= SECSPERMIN; 372 diff = (diff / MINSPERHOUR) * 100 + (diff % MINSPERHOUR); 373 numberFormatter.format(getFormat(modifier, "%04d", "%4d", "%d", "%04d"), diff);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi18.java | 74 long diff = 0; 76 diff = currTime - updateTime; 78 diff *= speed; 81 position += diff;
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.h | 48 #define TIME_DIFF(start, end, diff) \ 49 diff = ((end.tv_sec - start.tv_sec) * 1000000) + \
|
/frameworks/base/native/ |
H A D | copy-to-ndk.sh | 26 if diff $src $dst >/dev/null; then 42 if diff $SRC_LIB_ANDROID $DST_LIB_ANDROID >/dev/null; then
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 130 float diff = Math.abs(endValue - currValue); 132 float durationSeconds = LINEAR_OUT_SLOW_IN_START_GRADIENT * diff / velAbs; 140 = new VelocityInterpolator(durationSeconds, velAbs, diff); 198 float diff = Math.abs(endValue - currValue); 204 float durationSeconds = startGradient * diff / velAbs; 213 = new VelocityInterpolator(durationSeconds, velAbs, diff); 281 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { argument 284 mDiff = diff;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 77 long diff = target - cur; 78 assert(diff >= 0); 79 skipOrThrow(diff);
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewAssertions.java | 198 final int diff; 203 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left; 209 diff = drawableBounds.right - drawablePadding.right - maxRight; 215 assertThat("Cursor should be on the " + positionStr, Double.valueOf(diff),
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 223 float diff = target - source; 224 if (diff < 0) diff += 360f; 225 if (diff > 180) diff -= 360f; 227 float result = source + diff * progress;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 274 return other != null && diff(other) == 0; 281 public int diff(DisplayDeviceInfo other) { method in class:DisplayDeviceInfo 282 int diff = 0; 284 diff |= DIFF_STATE; 309 diff |= DIFF_OTHER; 311 return diff;
|
/frameworks/base/core/java/android/os/ |
H A D | WorkSource.java | 132 return o instanceof WorkSource && !diff((WorkSource)o); 154 public boolean diff(WorkSource other) { method in class:WorkSource 299 int diff = mNames[i].compareTo(name); 300 if (diff > 0) { 303 if (diff == 0) { 528 final int diff = mUids[i1] - other.mUids[i2]; 529 if (diff != 0) { 530 return diff; 554 int diff = -1; 555 if (i1 >= mNum || (i2 < N2 && (diff [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AlphabetIndexer.java | 212 int diff = compare(curName, targetLetter); 213 if (diff != 0) { 225 if (diff < 0) {
|
/frameworks/base/packages/Keyguard/scripts/ |
H A D | new_merge.py | 27 DIFF_TOOLS=["meld", "kdiff3", "xdiff", "diffmerge.sh", "diff"] 76 print "Running diff for: %s" %(file) 77 diff(sourceFile, destFile) 81 diff(sourceFile, destFile) 96 pipe = Popen(['git', 'diff', '--name-only', argv[1]], stdout=PIPE).stdout 150 def diff(file1, file2): function
|