Searched defs:diff (Results 1 - 25 of 52) sorted by relevance

123

/frameworks/base/tools/aapt2/unflatten/
H A DResChunkPullParser.cpp39 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/av/media/libstagefright/codecs/amrnb/common/src/
H A Dsub.cpp39 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/media/mca/filterfw/native/core/
H A Dstatistics.cpp52 const float diff = value - mean_; local
53 return expf(-diff * diff / exp_denom_) / pdf_denom_;
H A Dgeometry.cpp41 Point diff = p1 - p0; local
42 return diff.Length();
/frameworks/base/tools/aapt2/filter/
H A DConfigFilter.cpp25 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/tools/aapt/
H A DResourceFilter.cpp39 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/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dc_g_aver.cpp284 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/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp40 Point diff = p1 - p0; local
41 return diff.Length();
/frameworks/base/packages/Keyguard/scripts/
H A Dnew_merge.py27 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
/frameworks/av/media/libeffects/testlibs/
H A DAudioBiquadFilter.cpp125 audio_coef_t diff = coefs[i] - mCoefs[i]; local
126 if (diff > maxDelta) {
128 } else if (diff < -maxDelta) {
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dquantize.c349 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/services/audioflinger/
H A DLinearMap.h157 // 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/core/java/android/app/
H A DProgressDialog.java261 public void incrementProgressBy(int diff) { argument
263 mProgress.incrementProgressBy(diff);
266 mIncrementBy += diff;
270 public void incrementSecondaryProgressBy(int diff) { argument
272 mProgress.incrementSecondaryProgressBy(diff);
275 mIncrementSecondaryBy += diff;
/frameworks/base/core/java/android/os/
H A DWorkSource.java132 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/packages/SystemUI/src/com/android/systemui/statusbar/
H A DFlingAnimationUtils.java130 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/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java276 return other != null && diff(other) == 0;
283 public int diff(DisplayDeviceInfo other) { method in class:DisplayDeviceInfo
284 int diff = 0;
286 diff |= DIFF_STATE;
289 diff |= DIFF_COLOR_MODE;
312 diff |= DIFF_OTHER;
314 return diff;
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp221 const int diff = configValue->config.diff(ConfigDescription::defaultConfig()); local
222 if (diff & ConfigDescription::CONFIG_LOCALE) {
/frameworks/base/tools/aapt2/diff/
H A DDiff.cpp170 bool diff = false; local
178 diff = true;
180 diff |= emitResourceConfigValueDiff(context, apkA, pkgA, typeA, entryA,
194 diff = true;
207 bool diff = false; local
214 diff = true;
233 diff = true;
252 diff = true;
254 diff |= emitResourceEntryDiff(context, apkA, pkgA, typeA, entryA.get(),
266 diff
275 bool diff = false; local
340 bool diff = false; local
384 int diff(const std::vector<StringPiece>& args) { function in namespace:aapt
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener.cpp154 int diff = a->namespaceUri.compare(b->namespaceUri); local
155 if (diff < 0) {
157 } else if (diff > 0) {
/frameworks/av/media/img_utils/src/
H A DTiffIfd.cpp140 size_t diff = (next - last); local
142 if (diff != actual) {
144 mEntries[i]->getTag(), actual, diff);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DAnotherPacketSource.cpp451 int64_t diff = duration - mLastQueuedTimeUs; local
452 if (diff < kNearEOSMarkUs && diff > -kNearEOSMarkUs) {
/frameworks/av/media/libmedia/
H A DAudioTrackShared.cpp41 int32_t diff = (int32_t) self - (int32_t) other; local
42 if (diff >= 0 && diff < INT32_MAX) {
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp796 sp<AMessage> diff = new AMessage; local
798 diff->setWhat(mWhat);
801 diff->setTarget(mHandler.promote());
810 diff->setInt32(item.mName, item.u.int32Value);
816 diff->setInt64(item.mName, item.u.int64Value);
822 diff->setSize(item.mName, item.u.sizeValue);
828 diff->setFloat(item.mName, item.u.sizeValue);
834 diff->setDouble(item.mName, item.u.sizeValue);
840 diff->setString(item.mName, *item.u.stringValue);
846 diff
[all...]
/frameworks/native/libs/gui/tests/
H A DSRGB_test.cpp229 int diff = a - b; local
230 return diff >= 0 ? diff <= TOLERANCE : -diff <= TOLERANCE;
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp253 int64_t diff = timestampUs - seekTimeUs; local
255 if (diff < 0) {
256 diff = -diff;
259 if ((gReproduceBug == 4 && diff > 500000)

Completed in 2184 milliseconds

123