/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/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/base/tools/aapt2/filter/ |
H A D | ConfigFilter.cpp | 26 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); 79 const uint32_t mask = ConfigDescription::DefaultConfig().diff(config); 89 uint32_t diff = target.diff(config); local 90 if ((diff & diff_mask) == 0) { 93 } else if ((diff & diff_mask) == android::ResTable_config::CONFIG_LOCALE) { 108 } else if ((diff & diff_mask) ==
|
/frameworks/av/include/media/ |
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/av/media/libmedia/include/media/ |
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/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Result.java | 58 float diff = time - avg; 59 sumSqDiff += diff * diff;
|
/frameworks/support/core-ui/java/android/support/v4/view/animation/ |
H A D | LookupTableInterpolator.java | 50 float diff = input - quantized; 51 float weight = diff / mStepSize;
|
/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/base/tools/aapt2/cmd/ |
H A D | Diff.cpp | 117 bool diff = false; local 125 diff = true; 127 diff |= 141 diff = true; 151 bool diff = false; local 158 diff = true; 177 diff = true; 196 diff = true; 198 diff |= EmitResourceEntryDiff(context, apk_a, pkg_a, type_a, entry_a.get(), apk_b, pkg_b, 210 diff 219 bool diff = false; local 284 bool diff = false; 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 | 52 const std::ptrdiff_t diff = (const char*)current_chunk_ - (const char*)data_; local 53 CHECK(diff >= 0) << "diff is negative"; 54 const size_t offset = static_cast<const size_t>(diff);
|
/frameworks/support/core-ui/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/tools/aapt/ |
H A D | ResourceFilter.cpp | 39 entry.second = mDefault.diff(entry.first); 100 uint32_t mask = mDefault.diff(config); 110 uint32_t diff = entry.first.diff(config); local 111 if ((diff & entry.second) == 0) { 114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { 132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) {
|
/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 | 363 int diff = wallTime.getGmtOffset(); 365 if (diff < 0) { 367 diff = -diff; 372 diff /= SECSPERMIN; 373 diff = (diff / MINSPERHOUR) * 100 + (diff % MINSPERHOUR); 374 numberFormatter.format(getFormat(modifier, "%04d", "%4d", "%d", "%04d"), 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/core/java/com/android/internal/util/ |
H A D | TokenBucket.java | 120 final int diff = (int) (now - mLastFill); 121 mAvailable = Math.min(mCapacity, mAvailable + diff);
|
/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 | 166 float diff = Math.abs(endValue - currValue); 172 float durationSeconds = startGradient * diff / velAbs; 181 = new VelocityInterpolator(durationSeconds, velAbs, diff); 252 float diff = Math.abs(endValue - currValue); 258 float durationSeconds = startGradient * diff / velAbs; 267 = new VelocityInterpolator(durationSeconds, velAbs, diff); 335 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { argument 338 mDiff = diff;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 288 return other != null && diff(other) == 0; 295 public int diff(DisplayDeviceInfo other) { method in class:DisplayDeviceInfo 296 int diff = 0; 298 diff |= DIFF_STATE; 301 diff |= DIFF_COLOR_MODE; 324 diff |= DIFF_OTHER; 326 return 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 | 210 final int diff; 215 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left; 221 diff = drawableBounds.right - drawablePadding.right - maxRight; 227 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;
|