/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 824 public int updateFrom(Configuration delta) { in updateFrom() argument 826 if (delta.fontScale > 0 && fontScale != delta.fontScale) { in updateFrom() 828 fontScale = delta.fontScale; in updateFrom() 830 if (delta.mcc != 0 && mcc != delta.mcc) { in updateFrom() 832 mcc = delta.mcc; in updateFrom() 834 if (delta.mnc != 0 && mnc != delta.mnc) { in updateFrom() 836 mnc = delta.mnc; in updateFrom() 838 if (delta.locale != null in updateFrom() 839 && (locale == null || !locale.equals(delta.locale))) { in updateFrom() 841 locale = delta.locale != null in updateFrom() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | chvr_filter.cpp | 42 int sum, delta; in CombinedHorzVertRingFilter() local 146 … delta = (sum + *ptr_c + 4) >> 3; /* Average pixel values with rounding */ in CombinedHorzVertRingFilter() 147 *(ptr_c) = (uint8) delta; in CombinedHorzVertRingFilter() 158 delta = (sum + *ptr_c + 4) >> 3; in CombinedHorzVertRingFilter() 159 *ptr_c = (uint8)(delta); in CombinedHorzVertRingFilter() 209 delta = (*(ptr - w1) - *(ptr)) >> 1; in CombinedHorzVertRingFilter() 210 if (delta >= 0) in CombinedHorzVertRingFilter() 212 if (delta >= A3_0) in CombinedHorzVertRingFilter() 214 delta = PV_MAX(A3_0, 0); in CombinedHorzVertRingFilter() 221 delta = 0; in CombinedHorzVertRingFilter() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
D | armVCM4P10_DeBlockPixel.c | 71 int ap, aq, delta; in armVCM4P10_DeBlockPixel() local 117 delta = (((q0-p0)<<2) + (p1-q1) + 4) >> 3; in armVCM4P10_DeBlockPixel() 118 delta = armClip(-tC, tC, delta); in armVCM4P10_DeBlockPixel() 120 pQ0[-1*Step] = (OMX_U8)armClip(0, 255, p0 + delta); in armVCM4P10_DeBlockPixel() 121 pQ0[ 0*Step] = (OMX_U8)armClip(0, 255, q0 - delta); in armVCM4P10_DeBlockPixel() 125 delta = (p2 + ((p0+q0+1)>>1) - (p1<<1))>>1; in armVCM4P10_DeBlockPixel() 126 delta = armClip(-tC0, tC0, delta); in armVCM4P10_DeBlockPixel() 127 pQ0[-2*Step] = (OMX_U8)(p1 + delta); in armVCM4P10_DeBlockPixel() 132 delta = (q2 + ((p0+q0+1)>>1) - (q1<<1))>>1; in armVCM4P10_DeBlockPixel() 133 delta = armClip(-tC0, tC0, delta); in armVCM4P10_DeBlockPixel() [all …]
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | ball_physics.rs | 87 ball->delta = (ball->delta * (1.f - 0.008f)) + fv; 88 ball->position = ball->position + (ball->delta * gDT); 94 if (ball->delta.x > 0) { 95 ball->delta.x *= -0.7f; 99 ball->delta.x -= min(wallForce / (d * d), 10.f); 106 if (ball->delta.x < 0) { 107 ball->delta.x *= -0.7f; 111 ball->delta.x += min(wallForce / (d * d), 10.f); 118 if (ball->delta.y > 0) { 119 ball->delta.y *= -0.7f; [all …]
|
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
D | fountain.rs | 15 float2 delta; 29 p->delta.y += dy2; 30 p->position += p->delta; 31 if ((p->position.y > height) && (p->delta.y > 0)) { 32 p->delta.y *= -0.3f; 58 np->delta.x = len * sin(angle); 59 np->delta.y = len * cos(angle);
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
D | fountain.rs | 14 float2 delta; 28 p->delta.y += dy2; 29 p->position += p->delta; 30 if ((p->position.y > height) && (p->delta.y > 0)) { 31 p->delta.y *= -0.3f; 57 np->delta.x = len * sin(angle); 58 np->delta.y = len * cos(angle);
|
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
D | fountainfbo.rs | 22 float2 delta; 36 p->delta.y += dy2; 37 p->position += p->delta; 38 if ((p->position.y > height) && (p->delta.y > 0)) { 39 p->delta.y *= -0.3f; 93 np->delta.x = len * sin(angle); 94 np->delta.y = len * cos(angle);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | colorspace.cpp | 119 float delta; in JNI_COLORSPACE_METHOD() local 135 delta = c_max -c_min; in JNI_COLORSPACE_METHOD() 139 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) : in JNI_COLORSPACE_METHOD() 140 static_cast<int>(scaler * ((g - b) / delta + 6)); in JNI_COLORSPACE_METHOD() 142 h = static_cast<int>(scaler * ((b - r) / delta + 2)); in JNI_COLORSPACE_METHOD() 144 h = static_cast<int>(scaler * ((r - g) / delta + 4)); in JNI_COLORSPACE_METHOD() 146 s = (delta == 0.0f) ? 0 : static_cast<unsigned char>(delta / c_max * 255); in JNI_COLORSPACE_METHOD()
|
/frameworks/av/media/libcpustats/ |
D | CentralTendencyStatistics.cpp | 33 double delta = x - mMean; in sample() local 34 mMean += delta / mN; in sample() 35 mM2 += delta * (x - mMean); in sample()
|
D | ThreadCpuUsage.cpp | 62 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in setEnabled() local 64 mAccumulator += delta; in setEnabled() 108 long long delta = (ts.tv_sec - mPreviousTs.tv_sec) * 1000000000LL + in sample() local 110 mAccumulator += delta; in sample()
|
/frameworks/base/libs/common_time/ |
D | utils.cpp | 42 nsecs_t delta = mSystemEndTime - nowTime; in msecTillTimeout() local 43 delta += 999999; in msecTillTimeout() 44 delta /= 1000000; in msecTillTimeout() 45 if (delta > 0x7FFFFFFF) { in msecTillTimeout() 49 return static_cast<int>(delta); in msecTillTimeout()
|
D | clock_recovery.cpp | 163 int64_t delta; in pushDisciplineEvent() local 226 delta_f = delta = nominal_common_time - observed_common; in pushDisciplineEvent() 229 last_error_est_usec_ = delta; in pushDisciplineEvent() 240 if ((delta > effective_panic_thresh) || in pushDisciplineEvent() 241 (delta < -effective_panic_thresh)) { in pushDisciplineEvent() 255 delta = delta_f; in pushDisciplineEvent()
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 178 void inset(float delta) { in inset() argument 179 outset(-delta); in inset() 182 void outset(float delta) { in outset() argument 183 left -= delta; in outset() 184 top -= delta; in outset() 185 right += delta; in outset() 186 bottom += delta; in outset()
|
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
D | MainActivity.java | 73 float delta = (pos - clickedPosition) * 1.1f; in onItemClick() local 74 if (delta == 0) delta = -1; in onItemClick() 76 RenderNodeAnimator.TRANSLATION_Y, dy * delta); in onItemClick()
|
/frameworks/av/media/libstagefright/ |
D | NuCachedSource2.cpp | 155 size_t delta = from - offset; in copy() local 156 size_t avail = (*it)->mSize - delta; in copy() 159 memcpy(data, (const uint8_t *)(*it)->mData + delta, size); in copy() 163 memcpy(data, (const uint8_t *)(*it)->mData + delta, avail); in copy() 526 size_t delta = offset - mCacheOffset; in readAt() local 527 mCache->copy(delta, data, size); in readAt() 615 size_t delta = offset - mCacheOffset; in readInternal() local 618 if (delta >= mCache->totalSize()) { in readInternal() 622 size_t avail = mCache->totalSize() - delta; in readInternal() 628 mCache->copy(delta, data, avail); in readInternal() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 100 float delta = ORIENTATIONS[i] - orientation; in temporalSampler() local 101 if (Math.abs(delta) < Math.abs(adjustment)) { in temporalSampler() 102 adjustment = delta; in temporalSampler()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 267 float delta = pos - mInitialTouchPos; in onInterceptTouchEvent() local 268 if (Math.abs(delta) > mPagingTouchSlop) { in onInterceptTouchEvent() 416 float delta = getPos(ev) - mInitialTouchPos; in onTouchEvent() local 417 float absDelta = Math.abs(delta); in onTouchEvent() 427 delta = delta > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent() 429 delta = maxScrollDistance * (float) Math.sin((delta/size)*(Math.PI/2)); in onTouchEvent() 432 setTranslation(mCurrAnimView, delta); in onTouchEvent()
|
/frameworks/av/media/libnbaio/ |
D | NBLog.cpp | 387 long delta = tsNext.tv_nsec - prevNsec; in dump() local 388 if (delta < 0) { in dump() 391 if (delta < deltaMin) { in dump() 392 deltaMin = delta; in dump() 394 if (delta > deltaMax) { in dump() 395 deltaMax = delta; in dump() 397 deltaTotal += delta; in dump()
|
/frameworks/rs/cpu_ref/linkloader/utils/ |
D | serialize.h | 138 size_t delta = static_cast<size_t>(cursor - buf_begin) % align; in seekAlignment() local 140 if (delta > 0) { in seekAlignment() 141 seek(align - delta); in seekAlignment()
|
/frameworks/base/core/java/android/webkit/ |
D | WebSettings.java | 486 int delta = Math.abs(textSize - size.value); in getTextSize() local 487 if (delta == 0) { in getTextSize() 490 if (delta < smallestDelta) { in getTextSize() 491 smallestDelta = delta; in getTextSize()
|
/frameworks/av/media/libmediaplayerservice/ |
D | VideoFrameScheduler.cpp | 226 nsecs_t delta = deltas[i]; in prime() local 232 nsecs_t err = periodicError(deltas[j], delta); in prime() 233 if (err < delta / kMultiplesThresholdDiv) { in prime() 242 fit(firstTime, delta, numSamplesToUse, &a, &b, &err); in prime() 251 fit(firstTime, delta, numSamplesToUse, &a, &b, &err); in prime() 252 score = -delta * err; in prime() 257 mPeriod = delta; in prime()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | SwipeHelper.java | 199 float delta = pos - mInitialTouchPos; in onInterceptTouchEvent() local 200 if (Math.abs(delta) > mPagingTouchSlop) { in onInterceptTouchEvent() 303 float delta = getPos(ev) - mInitialTouchPos; in onTouchEvent() local 304 setSwipeAmount(delta); in onTouchEvent() 305 mCallback.onSwipeChanged(mCurrView, delta); in onTouchEvent() 385 void onSwipeChanged(View v, float delta); in onSwipeChanged() argument
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | ImageUtils.java | 111 long delta = 0; in assertImageSimilar() local 140 delta += Math.abs(deltaR); in assertImageSimilar() 141 delta += Math.abs(deltaG); in assertImageSimilar() 142 delta += Math.abs(deltaB); in assertImageSimilar() 148 float percentDifference = (float) (delta * 100 / (double) total); in assertImageSimilar()
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 291 int delta = testLeft - referenceLeft; in assertHorizontalCenterAligned() local 293 assertEquals("views are not horizontally center aligned", center, delta); in assertHorizontalCenterAligned() 312 int delta = testTop - referenceTop; in assertVerticalCenterAligned() local 314 assertEquals("views are not vertically center aligned", center, delta); in assertVerticalCenterAligned()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollView.java | 770 final int delta = (int) (vscroll * getVerticalScrollFactor()); in onGenericMotionEvent() local 773 int newScrollY = oldScrollY - delta; in onGenericMotionEvent() 1059 int delta = up ? (top - containerTop) : (bottom - containerBottom); in scrollAndFocus() local 1060 doScrollY(delta); in scrollAndFocus() 1138 private boolean isWithinDeltaOfScreen(View descendant, int delta, int height) { in isWithinDeltaOfScreen() argument 1142 return (mTempRect.bottom + delta) >= getScrollY() in isWithinDeltaOfScreen() 1143 && (mTempRect.top - delta) <= (getScrollY() + height); in isWithinDeltaOfScreen() 1151 private void doScrollY(int delta) { in doScrollY() argument 1152 if (delta != 0) { in doScrollY() 1154 smoothScrollBy(0, delta); in doScrollY() [all …]
|