Searched refs:delta (Results 26 - 50 of 70) sorted by last modified time

123

/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/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/libs/androidfw/
H A DInputTransport.cpp53 // far into the future. This time is further bounded by 50% of the last time delta.
712 nsecs_t delta = future.eventTime - current->eventTime; local
713 if (delta < RESAMPLE_MIN_DELTA) {
715 ALOGD("Not resampled, delta time is %lld ns.", delta);
719 alpha = float(sampleTime - current->eventTime) / delta;
724 nsecs_t delta = current->eventTime - other->eventTime; local
725 if (delta < RESAMPLE_MIN_DELTA) {
727 ALOGD("Not resampled, delta time is %lld ns.", delta);
[all...]
/frameworks/base/location/java/android/location/
H A DLocation.java363 double delta = (lambda - lambdaOrig) / lambda;
364 if (Math.abs(delta) < 1.0e-12) {
/frameworks/base/media/java/android/media/
H A DAudioService.java896 int delta = 0;
900 delta = findVolumeDelta(direction, volume);
901 volume += delta;
1011 int delta = 0;
1017 delta = mMasterVolumeRamp[1];
1019 // find the volume we're above and use that groups delta.
1022 delta = mMasterVolumeRamp[i];
1032 delta = -mMasterVolumeRamp[length - 1];
1034 // find the volume we're below and use the group below it's delta
1037 delta
[all...]
H A DMediaScanner.java474 long delta = (entry != null) ? (lastModified - entry.mLastModified) : 0;
475 boolean wasModified = delta > 1 || delta < -1;
/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/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/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...]
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2458 // get current thread's delta CPU time in wall clock ns
2670 nsecs_t delta = now - mLastWriteTime; local
2671 if (!mStandby && delta > maxPeriod) {
2678 ns2ms(delta), mNumDelayedWrites, this);
5165 // Calculate the delta in samples between the head of the input buffer
5191 // if the delta between the ideal placement for the next input sample and
/frameworks/av/services/camera/libcameraservice/camera2/
H A DZslProcessor.cpp488 int64_t delta = abs(bufferTimestamp - frameTimestamp); local
489 if ( delta < 1000000) {
490 ALOGVV("%s: Found close match %lld (delta %lld)",
491 __FUNCTION__, bufferTimestamp, delta);
/frameworks/base/core/java/android/content/
H A DSyncManager.java1493 int delta = today-ds.day;
1494 if (delta > 6) break;
1496 pw.print(" Day-"); pw.print(delta); pw.print(": ");
1511 int delta = weekDay-ds.day;
1512 if (delta > 6) break;
/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/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 DBatteryStats.java450 // of a delta change; they should be ones that change relatively
515 // Part of initial delta int that specifies the time delta.
518 static final int DELTA_TIME_INT = 0x3fffe; // The delta is a following int
519 static final int DELTA_TIME_LONG = 0x3ffff; // The delta is a following long
520 // Part of initial delta int holding the command code.
523 // Flag in delta int: a new battery level int follows.
525 // Flag in delta int: a new full state and battery status int follows.
620 int delta = src.readInt();
621 time += delta;
[all...]
H A DDebug.java276 long delta = VMDebug.lastDebuggerActivity();
277 if (delta < 0) {
282 if (delta < MIN_DEBUGGER_IDLE) {
287 System.out.println("debugger has settled (" + delta + ")");
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/core/java/android/text/
H A DPackedIntVector.java138 * specified row by the specified delta.
148 public void adjustValuesBelow(int startRow, int column, int delta) { argument
159 mValueGap[column + mColumns] += delta;
H A DSpannableStringBuilder.java133 final int delta = newLength - oldLength;
134 if (delta == 0) return;
142 mGapLength += delta;
147 if (mSpanStarts[i] > mGapStart) mSpanStarts[i] += delta;
148 if (mSpanEnds[i] > mGapStart) mSpanEnds[i] += delta;
H A DTextLine.java746 int delta = mStart;
747 ret = wp.getTextRunAdvances(mText, delta + start,
748 delta + end, delta + contextStart, delta + contextEnd,
987 int delta = mStart;
988 c.drawTextRun(mText, delta + start, delta + end,
989 delta + contextStart, delta
[all...]
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java5057 long delta = time - lastMoveTime;
5060 if (delta < normTime) {
5062 float scale = (normTime-delta) * ACCEL_MOVE_SCALING_FACTOR;
5065 + off + " normTime=" + normTime + " delta=" + delta
5070 float scale = (delta-normTime) * ACCEL_MOVE_SCALING_FACTOR;
5073 + off + " normTime=" + normTime + " delta=" + delta
/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/core/java/android/widget/
H A DAbsListView.java3639 final int delta = (int) (vscroll * getVerticalScrollFactor());
3640 if (!trackMotionScroll(delta, delta)) {
3978 void edgeReached(int delta) { argument
3985 if (delta > 0) {
4056 int delta = mLastFlingY - y;
4059 if (delta > 0) {
4066 delta = Math.min(getHeight() - mPaddingBottom - mPaddingTop - 1, delta);
4076 delta
[all...]
H A DAbsSpinner.java295 int delta = position - mSelectedPosition;
297 layout(delta, animate);
302 abstract void layout(int delta, boolean animate); argument
H A DEditor.java1066 int partialStartOffset, int partialEndOffset, int delta,
1077 // Now use the delta to determine the actual amount of text
1079 partialEndOffset += delta;
1095 outText.partialEndOffset = partialEndOffset - delta;
1149 " delta=" + ims.mChangedDelta);
1065 extractTextInternal(ExtractedTextRequest request, int partialStartOffset, int partialEndOffset, int delta, ExtractedText outText) argument

Completed in 755 milliseconds

123