Searched refs:delta (Results 1 - 25 of 70) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
H A DConfiguration.java750 * Copy the fields from delta into this Configuration object, keeping
752 * <var>delta</var> are ignored and not copied in to the current
757 public int updateFrom(Configuration delta) { argument
759 if (delta.fontScale > 0 && fontScale != delta.fontScale) {
761 fontScale = delta.fontScale;
763 if (delta.mcc != 0 && mcc != delta.mcc) {
765 mcc = delta.mcc;
767 if (delta
911 diff(Configuration delta) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DarmVCM4P10_DeBlockPixel.c56 int ap, aq, delta; local
102 delta = (((q0-p0)<<2) + (p1-q1) + 4) >> 3;
103 delta = armClip(-tC, tC, delta);
105 pQ0[-1*Step] = (OMX_U8)armClip(0, 255, p0 + delta);
106 pQ0[ 0*Step] = (OMX_U8)armClip(0, 255, q0 - delta);
110 delta = (p2 + ((p0+q0+1)>>1) - (p1<<1))>>1;
111 delta = armClip(-tC0, tC0, delta);
112 pQ0[-2*Step] = (OMX_U8)(p1 + delta);
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dchvr_filter.cpp42 int sum, delta; local
146 delta = (sum + *ptr_c + 4) >> 3; /* Average pixel values with rounding */
147 *(ptr_c) = (uint8) delta;
158 delta = (sum + *ptr_c + 4) >> 3;
159 *ptr_c = (uint8)(delta);
209 delta = (*(ptr - w1) - *(ptr)) >> 1;
210 if (delta >= 0)
212 if (delta >= A3_0)
214 delta = PV_MAX(A3_0, 0);
221 delta
[all...]
/frameworks/native/libs/cpustats/
H A DCentralTendencyStatistics.cpp33 double delta = x - mMean; local
34 mMean += delta / mN;
35 mM2 += delta * (x - mMean);
H A DThreadCpuUsage.cpp63 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + local
65 mAccumulator += delta;
109 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + local
111 mAccumulator += delta;
/frameworks/base/core/java/android/gesture/
H A DInstance.java100 float delta = ORIENTATIONS[i] - orientation;
101 if (Math.abs(delta) < Math.abs(adjustment)) {
102 adjustment = delta;
/frameworks/base/core/java/android/os/
H A DLatencyTimer.java29 * 2) At various points in the code call sample with a string and the time delta to some fixed time.
62 * @param delta time difference from an unique point of reference for a particular iteration
64 public void sample(String tag, long delta) { argument
69 array[index] = delta;
/frameworks/base/services/common_time/
H A Dutils.cpp42 nsecs_t delta = mSystemEndTime - nowTime; local
43 delta += 999999;
44 delta /= 1000000;
45 if (delta > 0x7FFFFFFF) {
49 return static_cast<int>(delta);
H A Dclock_recovery.cpp132 ALOGE("local=%lld, common=%lld, delta=%lld, rtt=%lld\n",
163 int64_t delta; local
226 delta_f = delta = nominal_common_time - observed_common;
229 last_error_est_usec_ = delta;
235 // the implied error (delta) is greater than the absolute panic
240 if ((delta > effective_panic_thresh) ||
241 (delta < -effective_panic_thresh)) {
255 delta = delta_f;
/frameworks/compile/linkloader/utils/
H A Dserialize.h138 size_t delta = static_cast<size_t>(cursor - buf_begin) % align; local
140 if (delta > 0) {
141 seek(align - delta);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dbit_cnt.h101 Word16 bitCountScalefactorDelta(Word16 delta);
/frameworks/native/include/utils/
H A DBufferedTextOutput.h39 virtual void moveIndent(int delta);
/frameworks/av/media/libeffects/testlibs/
H A DAudioCoefInterpolator.cpp80 int64_t delta = static_cast<int64_t>(hi-lo) * frac; local
81 return lo + static_cast<audio_coef_t> (delta >> 32);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java231 float delta = pos - mInitialTouchPos;
232 if (Math.abs(delta) > mPagingTouchSlop) {
337 float delta = getPos(ev) - mInitialTouchPos;
343 if (Math.abs(delta) >= size) {
344 delta = delta > 0 ? maxScrollDistance : -maxScrollDistance;
346 delta = maxScrollDistance * (float) Math.sin((delta/size)*(Math.PI/2));
349 setTranslation(mCurrAnimView, delta);
/frameworks/base/voip/jni/rtp/
H A DRtpStream.cpp68 uint16_t delta = port << 1; local
73 port += delta;
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp153 size_t delta = from - offset; local
154 size_t avail = (*it)->mSize - delta;
157 memcpy(data, (const uint8_t *)(*it)->mData + delta, size);
161 memcpy(data, (const uint8_t *)(*it)->mData + delta, avail);
475 size_t delta = offset - mCacheOffset; local
476 mCache->copy(delta, data, size);
559 size_t delta = offset - mCacheOffset; local
562 if (delta >= mCache->totalSize()) {
566 size_t avail = mCache->totalSize() - delta;
572 mCache->copy(delta, dat
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java469 int delta = Math.abs(textSize - size.value);
470 if (delta == 0) {
473 if (delta < smallestDelta) {
474 smallestDelta = delta;
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java291 int delta = testLeft - referenceLeft;
293 assertEquals("views are not horizontally center aligned", center, delta);
312 int delta = testTop - referenceTop;
314 assertEquals("views are not vertically center aligned", center, delta);
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java704 final int delta = (int) (hscroll * getHorizontalScrollFactor());
707 int newScrollX = oldScrollX + delta;
1031 int delta = goLeft ? (left - containerLeft) : (right - containerRight);
1032 doScrollX(delta);
1108 * @return whether the descendant of this scroll view is within delta
1111 private boolean isWithinDeltaOfScreen(View descendant, int delta) { argument
1115 return (mTempRect.right + delta) >= getScrollX()
1116 && (mTempRect.left - delta) <= (getScrollX() + getWidth());
1120 * Smooth scroll by a X delta
1122 * @param delta th
1124 doScrollX(int delta) argument
[all...]
H A DScrollView.java730 final int delta = (int) (vscroll * getVerticalScrollFactor());
733 int newScrollY = oldScrollY - delta;
1016 int delta = up ? (top - containerTop) : (bottom - containerBottom);
1017 doScrollY(delta);
1092 * @return whether the descendant of this scroll view is within delta
1095 private boolean isWithinDeltaOfScreen(View descendant, int delta, int height) { argument
1099 return (mTempRect.bottom + delta) >= getScrollY()
1100 && (mTempRect.top - delta) <= (getScrollY() + height);
1104 * Smooth scroll by a Y delta
1106 * @param delta th
1108 doScrollY(int delta) argument
[all...]
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_file.c565 int delta; local
586 delta = (int)prevPos + length - prevFileSize;
587 if (delta > availableSize)
600 delta = prevPos + n - prevFileSize;
602 if ( delta > 0 )
604 availableSize -= delta;
/frameworks/base/services/java/com/android/server/wm/
H A DScreenRotationAnimation.java262 int delta = newRotation - oldRotation;
263 if (delta < 0) delta += 4;
264 return delta;
316 int delta = deltaRotation(rotation, Surface.ROTATION_0);
317 createRotationMatrix(delta, mWidth, mHeight, mSnapshotInitialMatrix);
319 if (DEBUG_STATE) Slog.v(TAG, "**** ROTATION: " + delta);
354 int delta = deltaRotation(mCurRotation, mOriginalRotation);
357 && (!dismissing || delta != Surface.ROTATION_0)) {
378 if (DEBUG_STATE) Slog.v(TAG, "Rotation delta
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsRecorder.java144 * Record any delta that occurred since last {@link NetworkStats} snapshot,
146 * snapshot is considered bootstrap, and is not counted as delta.
163 final NetworkStats delta = NetworkStats.subtract(
166 final long start = end - delta.getElapsedRealtime();
169 for (int i = 0; i < delta.size(); i++) {
170 entry = delta.getValues(i, entry);
177 // skip when no delta occurred
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp124 double delta = ((double)(t2 - gTime)) / 1000000000; local
126 double mpps = pixels / delta / 1000000;
127 double dc60 = ((double)count) / delta / 60;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_deblocking.c658 i32 delta, tc, tmp; local
699 delta = CLIP3(-tmp, tmp, ((((q0 - p0) << 2) +
702 p0 = clp[p0 + delta];
703 q0 = clp[q0 - delta];
769 i32 delta, tc, tmp; local
808 delta = CLIP3(-tmp, tmp, ((((q0 - p0) << 2) +
811 p0 = clp[p0 + delta];
812 q0 = clp[q0 - delta];
838 i32 delta, tc, tmp; local
880 delta
951 i32 delta, tc; local
1026 i32 delta, tc; local
1074 i32 delta, tc; local
[all...]

Completed in 379 milliseconds

123