Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dsub.cpp196 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/av/media/libstagefright/codecs/aacenc/src/
Dquantize.c349 Word32 diff; in calcSfbDist() local
364 diff = saShft - repquat[0]; in calcSfbDist()
365 distSingle = (diff * diff) >> g2; in calcSfbDist()
370 diff = saShft - repquat[1]; in calcSfbDist()
371 distSingle = (diff * diff) >> g2; in calcSfbDist()
376 diff = saShft - repquat[2]; in calcSfbDist()
377 distSingle = (diff * diff) >> g2; in calcSfbDist()
399 Word32 diff; in calcSfbDist() local
413 diff = saShft - repquat[0]; in calcSfbDist()
414 distSingle = L_shl((diff * diff), g2); in calcSfbDist()
[all …]
/frameworks/base/tools/aapt2/diff/
DDiff.cpp170 bool diff = false; in emitResourceEntryDiff() local
178 diff = true; in emitResourceEntryDiff()
180 diff |= emitResourceConfigValueDiff(context, apkA, pkgA, typeA, entryA, in emitResourceEntryDiff()
194 diff = true; in emitResourceEntryDiff()
207 bool diff = false; in emitResourceTypeDiff() local
214 diff = true; in emitResourceTypeDiff()
233 diff = true; in emitResourceTypeDiff()
252 diff = true; in emitResourceTypeDiff()
254 diff |= emitResourceEntryDiff(context, apkA, pkgA, typeA, entryA.get(), in emitResourceTypeDiff()
266 diff = true; in emitResourceTypeDiff()
[all …]
/frameworks/av/services/audioflinger/
DLinearMap.h241 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/base/tools/aapt2/filter/
DConfigFilter.cpp25 uint32_t diffMask = ConfigDescription::defaultConfig().diff(config); in addConfig()
41 const uint32_t mask = ConfigDescription::defaultConfig().diff(config); in match()
51 uint32_t diff = target.diff(config); in match() local
52 if ((diff & diffMask) == 0) { in match()
55 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_LOCALE) { in match()
65 } else if ((diff & diffMask) == android::ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
/frameworks/base/core/java/android/text/format/
DTime.java1010 int diff = julianDay - approximateDay; in setJulianDay() local
1011 monthDay += diff; in setJulianDay()
1034 int diff = THURSDAY - firstDayOfWeek; in getWeeksSinceEpochFromJulianDay() local
1035 if (diff < 0) { in getWeeksSinceEpochFromJulianDay()
1036 diff += 7; in getWeeksSinceEpochFromJulianDay()
1038 int refDay = EPOCH_JULIAN_DAY - diff; in getWeeksSinceEpochFromJulianDay()
1210 int diff = aObject.wallTime.getYear() - bObject.wallTime.getYear(); in compare() local
1211 if (diff != 0) { in compare()
1212 return diff; in compare()
1215 diff = aObject.wallTime.getMonth() - bObject.wallTime.getMonth(); in compare()
[all …]
DTimeFormatter.java362 int diff = wallTime.getGmtOffset(); in handleToken() local
364 if (diff < 0) { in handleToken()
366 diff = -diff; in handleToken()
371 diff /= SECSPERMIN; in handleToken()
372 diff = (diff / MINSPERHOUR) * 100 + (diff % MINSPERHOUR); in handleToken()
373 numberFormatter.format(getFormat(modifier, "%04d", "%4d", "%d", "%04d"), diff); in handleToken() local
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dc_g_aver.cpp480 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/tools/aapt/
DResourceFilter.cpp39 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/
DResettableTimeout.java104 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/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java130 float diff = Math.abs(endValue - currValue); in getProperties() local
132 float durationSeconds = LINEAR_OUT_SLOW_IN_START_GRADIENT * diff / velAbs; in getProperties()
140 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getProperties()
198 float diff = Math.abs(endValue - currValue); in getDismissingProperties() local
204 float durationSeconds = startGradient * diff / velAbs; in getDismissingProperties()
213 = new VelocityInterpolator(durationSeconds, velAbs, diff); in getDismissingProperties()
281 private VelocityInterpolator(float durationSeconds, float velocity, float diff) { in VelocityInterpolator() argument
284 mDiff = diff; in VelocityInterpolator()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DerrorCalculator.rs54 float4 diff = idealPixel - givenPixel;
55 float totalDiff = diff.x + diff.y + diff.z + diff.w;
/frameworks/base/media/mca/filterfw/native/core/
Dstatistics.cpp52 const float diff = value - mean_; in Pdf() local
53 return expf(-diff * diff / exp_denom_) / pdf_denom_; in Pdf()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
DUtils.java112 int diff = Time.THURSDAY - firstDayOfWeek; in getWeeksSinceEpochFromJulianDay() local
113 if (diff < 0) { in getWeeksSinceEpochFromJulianDay()
114 diff += 7; in getWeeksSinceEpochFromJulianDay()
116 int refDay = Time.EPOCH_JULIAN_DAY - diff; in getWeeksSinceEpochFromJulianDay()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java276 return other != null && diff(other) == 0; in equals()
283 public int diff(DisplayDeviceInfo other) { in diff() method in DisplayDeviceInfo
284 int diff = 0; in diff() local
286 diff |= DIFF_STATE; in diff()
289 diff |= DIFF_COLOR_MODE; in diff()
312 diff |= DIFF_OTHER; in diff()
314 return diff; in diff()
/frameworks/support/media-compat/jellybean-mr2/android/support/v4/media/session/
DMediaSessionCompatApi18.java74 long diff = 0; in setState() local
76 diff = currTime - updateTime; in setState()
78 diff *= speed; in setState()
81 position += diff; in setState()
/frameworks/base/core/java/android/os/
DWorkSource.java132 return o instanceof WorkSource && !diff((WorkSource)o); in equals()
154 public boolean diff(WorkSource other) { in diff() method in WorkSource
299 int diff = mNames[i].compareTo(name); in add() local
300 if (diff > 0) { in add()
303 if (diff == 0) { in add()
528 final int diff = mUids[i1] - other.mUids[i2]; in compare() local
529 if (diff != 0) { in compare()
530 return diff; in compare()
554 int diff = -1; in updateUidsAndNamesLocked() local
555 if (i1 >= mNum || (i2 < N2 && (diff=compare(other, i1, i2)) > 0)) { in updateUidsAndNamesLocked()
[all …]
/frameworks/base/tools/aapt2/unflatten/
DResChunkPullParser.cpp39 const std::ptrdiff_t diff = (const char*) mCurrentChunk - (const char*) mData; in next() local
40 assert(diff >= 0 && "diff is negative"); in next()
41 const size_t offset = static_cast<const size_t>(diff); in next()
/frameworks/support/core-ui/java/android/support/v4/widget/
DContentLoadingProgressBar.java97 long diff = System.currentTimeMillis() - mStartTime; in hide() local
98 if (diff >= MIN_SHOW_TIME || mStartTime == -1) { in hide()
108 postDelayed(mDelayedHide, MIN_SHOW_TIME - diff); in hide()
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp796 sp<AMessage> diff = new AMessage; in changesFrom() local
798 diff->setWhat(mWhat); in changesFrom()
801 diff->setTarget(mHandler.promote()); in changesFrom()
810 diff->setInt32(item.mName, item.u.int32Value); in changesFrom()
816 diff->setInt64(item.mName, item.u.int64Value); in changesFrom()
822 diff->setSize(item.mName, item.u.sizeValue); in changesFrom()
828 diff->setFloat(item.mName, item.u.sizeValue); in changesFrom()
834 diff->setDouble(item.mName, item.u.sizeValue); in changesFrom()
840 diff->setString(item.mName, *item.u.stringValue); in changesFrom()
846 diff->setRect( in changesFrom()
[all …]
/frameworks/base/core/java/android/text/
DDynamicLayout.java209 int diff = where - find; in reflow() local
210 before += diff; in reflow()
211 after += diff; in reflow()
212 where -= diff; in reflow()
246 int diff = where - st; in reflow() local
247 before += diff; in reflow()
248 after += diff; in reflow()
249 where -= diff; in reflow()
255 int diff = en - (where + after); in reflow() local
256 before += diff; in reflow()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java198 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/
DUtils.java223 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/base/core/java/android/app/
DProgressDialog.java261 public void incrementProgressBy(int diff) { in incrementProgressBy() argument
263 mProgress.incrementProgressBy(diff); in incrementProgressBy()
266 mIncrementBy += diff; in incrementProgressBy()
270 public void incrementSecondaryProgressBy(int diff) { in incrementSecondaryProgressBy() argument
272 mProgress.incrementSecondaryProgressBy(diff); in incrementSecondaryProgressBy()
275 mIncrementSecondaryBy += diff; in incrementSecondaryProgressBy()
/frameworks/support/core-ui/java/android/support/v4/view/animation/
DLookupTableInterpolator.java50 float diff = input - quantized; in getInterpolation() local
51 float weight = diff / mStepSize; in getInterpolation()

1234567