Searched refs:delta (Results 1 - 25 of 70) sorted by last modified time

123

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java1082 // Translate according to current velocities and time delta:
1084 float delta = (mLastRunTime != NEVER) ? (now - mLastRunTime) / 1000f : 0f;
1085 final boolean didTranslate = mHeader.translate(mVelocityX * delta, mVelocityY * delta);
1088 float slowDown = DECELERATION_RATE * delta;
1178 // Translate according to current velocities and time delta:
1180 float delta = (mStartRunTime != NEVER) ? (now - mStartRunTime) : 0f;
1188 if (delta >= SNAP_DURATION) {
1192 transX = (mTranslateX / (SNAP_DURATION - delta)) * 10f;
1193 transY = (mTranslateY / (SNAP_DURATION - delta)) * 1
[all...]
/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/ex/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java1076 // Translate according to current velocities and time delta:
1078 float delta = (mLastRunTime != NEVER) ? (now - mLastRunTime) / 1000f : 0f;
1079 final boolean didTranslate = mHeader.translate(mVelocityX * delta, mVelocityY * delta);
1082 float slowDown = DECELERATION_RATE * delta;
1172 // Translate according to current velocities and time delta:
1174 float delta = (mStartRunTime != NEVER) ? (now - mStartRunTime) : 0f;
1182 if (delta >= SNAP_DURATION) {
1186 transX = (mTranslateX / (SNAP_DURATION - delta)) * 10f;
1187 transY = (mTranslateY / (SNAP_DURATION - delta)) * 1
[all...]
/frameworks/native/include/utils/
H A DBufferedTextOutput.h39 virtual void moveIndent(int delta);
H A DTextOutput.h35 virtual void moveIndent(int delta) = 0;
/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/native/libs/utils/
H A DBufferedTextOutput.cpp223 void BufferedTextOutput::moveIndent(int delta) argument
227 b->indent += delta;
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp189 int delta = table[offset]; local
191 *q++ = clamp(r + delta);
192 *q++ = clamp(g + delta);
193 *q++ = clamp(b + delta);
/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/native/opengl/tests/hwc/
H A DhwcStress.cpp246 struct timeval startTime, currentTime, delta; local
393 delta = tvDelta(&startTime, &currentTime);
394 if (tv2double(&delta) > duration) { break; }
/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/base/tools/orientationplot/
H A Dorientationplot.py281 delta = timestamp - self.timebase
282 timeindex = delta.seconds + delta.microseconds * 0.000001
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py195 delta = timestamp - self.timebase
196 timeindex = delta.seconds + delta.microseconds * 0.000001
/frameworks/base/voip/jni/rtp/
H A DRtpStream.cpp68 uint16_t delta = port << 1; local
73 port += delta;
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DPagedView.java1217 int delta = screenCenter - (getChildOffset(page) -
1220 float scrollProgress = delta / (totalDistance * 1.0f);
1759 int delta = newX - mUnboundedScrollX;
1773 float distanceRatio = Math.min(1f, 1.0f * Math.abs(delta) / (2 * halfScreenSize));
1785 snapToPage(whichPage, delta, duration);
1806 final int delta = newX - sX;
1807 snapToPage(whichPage, delta, duration, immediate);
1810 protected void snapToPage(int whichPage, int delta, int duration) { argument
1811 snapToPage(whichPage, delta, duration, false);
1813 protected void snapToPage(int whichPage, int delta, in argument
[all...]
/frameworks/base/services/common_time/
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;
H A Dcommon_time_server.cpp1472 int64_t delta = now - (mClient_LastGoodSyncRX local
1475 int64_t deltaUsec = mCommonClock.localDurationToCommonDuration(delta);
H A Dcommon_time_server_api.cpp420 int64_t delta = rxTimes[i] - txTimes[i]; local
421 int64_t deltaUsec = cclk.localDurationToCommonDuration(delta);
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);
/frameworks/base/services/input/
H A DInputReader.cpp2430 // Rotate delta according to orientation if needed.
4929 // Add delta for all fingers and calculate a common movement delta.
4938 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
4939 delta.dx += cpd.x - lpd.x;
4940 delta.dy += cpd.y - lpd.y;
4943 commonDeltaX = delta.dx;
4944 commonDeltaY = delta.dy;
4946 commonDeltaX = calculateCommonVector(commonDeltaX, delta.dx);
4947 commonDeltaY = calculateCommonVector(commonDeltaY, delta
4957 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
5059 PointerGesture::Delta& delta = mPointerGesture.referenceDeltas[id]; local
[all...]
/frameworks/base/services/java/com/android/server/
H A DDeviceStorageMonitorService.java197 long delta = mFreeMem - mLastReportedFreeMem;
198 if (delta > threshold || delta < -threshold) {
H A DLocationManagerService.java1557 long delta = (loc.getElapsedRealtimeNanos() - lastLoc.getElapsedRealtimeNanos()) / 1000000L;
1558 if (delta < minTime - MAX_PROVIDER_SCHEDULING_JITTER_MS) {
/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/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...]

Completed in 3735 milliseconds

123