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

123

/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/tools/aapt2/unflatten/
H A DResChunkPullParser.cpp52 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/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.cpp26 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/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.cpp42 Point diff = p1 - p0; local
43 return diff.Length();
/frameworks/base/packages/SystemUI/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/include/media/
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/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/libmedia/include/media/
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/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/base/core/java/android/app/
H A DProgressDialog.java366 * @param diff the amount by which the current progress will be incremented,
369 public void incrementProgressBy(int diff) { argument
371 mProgress.incrementProgressBy(diff);
374 mIncrementBy += diff;
381 * @param diff the amount by which the current secondary progress will be incremented,
384 public void incrementSecondaryProgressBy(int diff) { argument
386 mProgress.incrementSecondaryProgressBy(diff);
389 mIncrementSecondaryBy += diff;
/frameworks/base/core/java/android/os/
H A DWorkSource.java134 return o instanceof WorkSource && !diff((WorkSource)o);
156 public boolean diff(WorkSource other) { method in class:WorkSource
301 int diff = mNames[i].compareTo(name);
302 if (diff > 0) {
305 if (diff == 0) {
530 final int diff = mUids[i1] - other.mUids[i2];
531 if (diff != 0) {
532 return diff;
556 int diff = -1;
557 if (i1 >= mNum || (i2 < N2 && (diff
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DFlingAnimationUtils.java166 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 DDisplayDeviceInfo.java294 return other != null && diff(other) == 0;
301 public int diff(DisplayDeviceInfo other) { method in class:DisplayDeviceInfo
302 int diff = 0;
304 diff |= DIFF_STATE;
307 diff |= DIFF_COLOR_MODE;
330 diff |= DIFF_OTHER;
332 return diff;
/frameworks/base/tools/aapt2/cmd/
H A DDiff.cpp117 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/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp344 const int diff = config_value->config.diff(ConfigDescription::DefaultConfig()); local
345 if (diff & ConfigDescription::CONFIG_LOCALE) {
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener.cpp48 int diff = a->namespace_uri.compare(b->namespace_uri); local
49 if (diff < 0) {
51 } 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.cpp507 int64_t diff = duration - mLastQueuedTimeUs; local
508 if (diff < kNearEOSMarkUs && diff > -kNearEOSMarkUs) {
/frameworks/av/media/libaudioclient/
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.cpp816 sp<AMessage> diff = new AMessage; local
818 diff->setWhat(mWhat);
821 diff->setTarget(mHandler.promote());
830 diff->setInt32(item.mName, item.u.int32Value);
836 diff->setInt64(item.mName, item.u.int64Value);
842 diff->setSize(item.mName, item.u.sizeValue);
848 diff->setFloat(item.mName, item.u.sizeValue);
854 diff->setDouble(item.mName, item.u.sizeValue);
860 diff->setString(item.mName, *item.u.stringValue);
866 diff
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp256 int64_t diff = timestampUs - seekTimeUs; local
258 if (diff < 0) {
259 diff = -diff;
262 if ((gReproduceBug == 4 && diff > 500000)

Completed in 2857 milliseconds

123