Searched refs:delta (Results 51 - 66 of 66) sorted by relevance

123

/frameworks/base/core/java/android/text/
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;
/frameworks/av/media/libstagefright/
H A DSampleTable.cpp495 uint32_t delta = mTimeToSample[2 * i + 1]; local
514 sampleTime += delta;
/frameworks/base/core/java/android/os/
H A DBatteryStats.java448 // of a delta change; they should be ones that change relatively
513 // Part of initial delta int that specifies the time delta.
516 static final int DELTA_TIME_INT = 0x3fffe; // The delta is a following int
517 static final int DELTA_TIME_LONG = 0x3ffff; // The delta is a following long
518 // Part of initial delta int holding the command code.
521 // Flag in delta int: a new battery level int follows.
523 // Flag in delta int: a new full state and battery status int follows.
618 int delta = src.readInt();
619 time += delta;
[all...]
/frameworks/base/services/java/com/android/server/
H A DPowerManagerService.java2252 int delta = endValue - startValue;
2253 newValue = startValue + delta * elapsed / duration;
2258 final int timePerStep = duration / Math.abs(delta);
2260 newValue += delta < 0 ? -1 : 1;
2263 delta = endSensorValue - startSensorValue;
2264 mHighestLightSensorValue = startSensorValue + delta * elapsed / duration;
/frameworks/base/media/java/android/media/
H A DAudioService.java796 int delta = 0;
800 delta = findVolumeDelta(direction, volume);
801 volume += delta;
898 int delta = 0;
904 delta = mMasterVolumeRamp[1];
906 // find the volume we're above and use that groups delta.
909 delta = mMasterVolumeRamp[i];
919 delta = -mMasterVolumeRamp[length - 1];
921 // find the volume we're below and use the group below it's delta
924 delta
[all...]
H A DMediaScanner.java472 long delta = (entry != null) ? (lastModified - entry.mLastModified) : 0;
473 boolean wasModified = delta > 1 || delta < -1;
/frameworks/base/services/common_time/
H A Dcommon_time_server.cpp1355 int64_t delta = now - (mClient_LastGoodSyncRX local
1358 int64_t deltaUsec = mCommonClock.localDurationToCommonDuration(delta);
/frameworks/base/core/java/android/content/
H A DSyncManager.java1458 int delta = today-ds.day;
1459 if (delta > 6) break;
1461 pw.print(" Day-"); pw.print(delta); pw.print(": ");
1476 int delta = weekDay-ds.day;
1477 if (delta > 6) break;
/frameworks/base/services/input/
H A DInputReader.cpp2422 // Rotate delta according to orientation if needed.
4849 // Add delta for all fingers and calculate a common movement delta.
4858 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
4859 delta.dx += cpd.x - lpd.x;
4860 delta.dy += cpd.y - lpd.y;
4863 commonDeltaX = delta.dx;
4864 commonDeltaY = delta.dy;
4866 commonDeltaX = calculateCommonVector(commonDeltaX, delta.dx);
4867 commonDeltaY = calculateCommonVector(commonDeltaY, delta
4877 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
4979 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
[all...]
/frameworks/base/core/java/android/widget/
H A DSpinner.java456 * @param delta Change in the selected position. +1 moves selection is moving to the right,
460 void layout(int delta, boolean animate) { argument
H A DTextView.java8039 final int delta = mText.length() - originalLength;
8040 min += delta;
8041 max += delta;
8048 final int delta = mText.length() - originalLength;
8049 min += delta;
8050 max += delta;
H A DEditor.java1070 int partialStartOffset, int partialEndOffset, int delta,
1081 // Now use the delta to determine the actual amount of text
1083 partialEndOffset += delta;
1099 outText.partialEndOffset = partialEndOffset - delta;
1153 " delta=" + ims.mChangedDelta);
1069 extractTextInternal(ExtractedTextRequest request, int partialStartOffset, int partialEndOffset, int delta, ExtractedText outText) argument
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java4901 long delta = time - lastMoveTime;
4904 if (delta < normTime) {
4906 float scale = (normTime-delta) * ACCEL_MOVE_SCALING_FACTOR;
4909 + off + " normTime=" + normTime + " delta=" + delta
4914 float scale = (delta-normTime) * ACCEL_MOVE_SCALING_FACTOR;
4917 + off + " normTime=" + normTime + " delta=" + delta
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A Dcarousel.rs1107 // If we didn't hit anything or drag model wasn't plane or cylinder, we use screen delta
1240 const float2 delta = (float2) { x, y } - touchPosition;
1241 float distance = sqrt(dot(delta, delta));
1622 if (debugRendering) rsDebug("Time delta was <= 0", dt);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4enc_api.cpp2639 delta = (Int)(frameInterval / 4); /* empirical number */
2640 if (video->nextModTime - modTime < (ULong)delta) /* need to move nextModTime further. */
2642 video->nextModTime += ((delta - video->nextModTime + modTime)); /* empirical formula */
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp2413 // get current thread's delta CPU time in wall clock ns
2627 nsecs_t delta = now - mLastWriteTime; local
2628 if (!mStandby && delta > maxPeriod) {
2635 ns2ms(delta), mNumDelayedWrites, this);
5129 // Calculate the delta in samples between the head of the input buffer
5155 // if the delta between the ideal placement for the next input sample and

Completed in 1606 milliseconds

123