/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | RateEstimator.java | 61 double dt = ((double) (now - mLastEventTime)) / 1000.0; 62 dt = Math.max(dt, MINIMUM_DT); 64 return (RATE_ALPHA * mInterarrivalTime + (1.0 - RATE_ALPHA) * dt);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NoisyVelocityTracker.java | 79 final float dt = (float) (event.t - last.t) / units; 84 " [%d] (t=%d %.1f,%.1f) dx=%.1f dy=%.1f dt=%f vx=%.1f vy=%.1f", 86 dx, dy, dt, 87 (dx/dt), 88 (dy/dt) 96 mVX += weight * dx / dt; 97 mVY += weight * dy / dt;
|
/frameworks/rs/cpp/ |
H A D | Element.cpp | 221 static uint32_t GetSizeInBytesForType(RsDataType dt) { argument 222 switch(dt) { 270 ALOGE("Missing type %i", dt); 275 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : 278 uint32_t tsize = GetSizeInBytesForType(dt); 279 if ((dt != RS_TYPE_UNSIGNED_5_6_5) && 280 (dt != RS_TYPE_UNSIGNED_4_4_4_4) && 281 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) { 290 mType = dt; 319 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) { argument 274 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument 324 createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) argument 333 createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) argument [all...] |
H A D | Allocation.cpp | 77 RsDataType dt = mType->getElement()->getDataType(); local 78 if ((dt == RS_TYPE_SIGNED_64) || (dt == RS_TYPE_UNSIGNED_64)) { 81 ALOGE("64 bit integer source does not match allocation type %i", dt); 85 RsDataType dt = mType->getElement()->getDataType(); local 86 if ((dt == RS_TYPE_SIGNED_32) || (dt == RS_TYPE_UNSIGNED_32)) { 89 ALOGE("32 bit integer source does not match allocation type %i", dt); 93 RsDataType dt = mType->getElement()->getDataType(); local 94 if ((dt 101 RsDataType dt = mType->getElement()->getDataType(); local 109 RsDataType dt = mType->getElement()->getDataType(); local 117 RsDataType dt = mType->getElement()->getDataType(); local 125 RsDataType dt = mType->getElement()->getDataType(); local [all...] |
/frameworks/rs/driver/runtime/ |
H A D | rs_sample.c | 270 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 280 if (dt == RS_TYPE_UNSIGNED_5_6_5) { 320 rs_data_kind dk, rs_data_type dt, uint32_t lod) { 333 if (dt == RS_TYPE_UNSIGNED_5_6_5) { 349 rs_data_type dt, uint32_t lod) { 367 if (dt == RS_TYPE_UNSIGNED_5_6_5) { 386 rs_data_type dt, uint32_t lod) { 405 if (dt == RS_TYPE_UNSIGNED_5_6_5) { 422 rs_data_kind dk, rs_data_type dt, 449 return getBilinearSample1D(alloc, weights, location, next, dk, dt, lo 268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, uint32_t iPixel, uint32_t next, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 318 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3, int lx, int ly, int nx, int ny, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 348 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 385 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, rs_data_type dt, uint32_t lod) argument 421 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument 453 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, float uv, uint32_t lod) argument 466 sample_LOD_LinearPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument 514 sample_LOD_NearestPixel(const Allocation_t *alloc, rs_data_kind dk, rs_data_type dt, rs_sampler_value wrapS, rs_sampler_value wrapT, float2 uv, uint32_t lod) argument 541 rs_data_type dt = elem->mHal.state.dataType; local 593 rs_data_type dt = elem->mHal.state.dataType; local 640 rs_data_type dt = elem->mHal.state.dataType; local [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Element.java | 1077 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument 1079 if ((dt != DataType.UNSIGNED_5_6_5) && 1080 (dt != DataType.UNSIGNED_4_4_4_4) && 1081 (dt != DataType.UNSIGNED_5_5_5_1)) { 1083 mSize = dt.mSize * 4; 1085 mSize = dt.mSize * size; 1088 mSize = dt.mSize; 1090 mType = dt; 1112 for (DataType dt: DataType.values()) { 1113 if(dt 1151 createUser(RenderScript rs, DataType dt) argument 1172 createVector(RenderScript rs, DataType dt, int size) argument 1216 createPixel(RenderScript rs, DataType dt, DataKind dk) argument [all...] |
H A D | Allocation.java | 687 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { argument 692 copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); 694 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); 696 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); 1138 Element.DataType dt, int arrayLen) { 1147 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); 1148 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, 1470 Element.DataType dt, int arrayLen) { 1478 int sizeBytes = arrayLen * dt.mSize; 1491 array, sizeBytes, dt, 1137 copy1DRangeFromUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument 1469 copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, Element.DataType dt, int arrayLen) argument 1746 copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument 1857 copyTo(Object array, Element.DataType dt, int arrayLen) argument 2091 copy1DRangeToUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument 2388 copy2DRangeToUnchecked(int xoff, int yoff, int w, int h, Object array, Element.DataType dt, int arrayLen) argument 2585 copy3DRangeToUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument [all...] |
H A D | RenderScript.java | 535 native void rsnAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, argument 537 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, argument 540 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); 570 int w, int h, Object d, int sizeBytes, int dt, 573 int w, int h, Object d, int sizeBytes, Element.DataType dt, 576 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePadding); 604 int w, int h, int depth, Object d, int sizeBytes, int dt, 607 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, 611 dt.mID, mSize, usePadding); 614 native void rsnAllocationRead(long con, long id, Object d, int dt, in argument 569 rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 572 nAllocationData2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 603 rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 606 nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 615 nAllocationRead(long id, Object d, Element.DataType dt, int mSize, boolean usePadding) argument 620 rsnAllocationRead1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 622 nAllocationRead1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 636 rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 639 nAllocationRead2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 646 rsnAllocationRead3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 649 nAllocationRead3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Element.java | 734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument 736 if ((dt != DataType.UNSIGNED_5_6_5) && 737 (dt != DataType.UNSIGNED_4_4_4_4) && 738 (dt != DataType.UNSIGNED_5_5_5_1)) { 740 mSize = dt.mSize * 4; 742 mSize = dt.mSize * size; 745 mSize = dt.mSize; 747 mType = dt; 769 * @param dt The DataType for the new element. 772 static Element createUser(RenderScript rs, DataType dt) { argument 793 createVector(RenderScript rs, DataType dt, int size) argument 836 createPixel(RenderScript rs, DataType dt, DataKind dk) argument [all...] |
H A D | Allocation.java | 673 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { argument 676 copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); 678 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); 680 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); 1120 Element.DataType dt, int arrayLen) { 1127 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); 1128 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, 1445 Element.DataType dt, int arrayLen) { 1451 int sizeBytes = arrayLen * dt.mSize; 1464 array, sizeBytes, dt, 1119 copy1DRangeFromUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument 1444 copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, Element.DataType dt, int arrayLen) argument 1701 copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument 1797 copyTo(Object array, Element.DataType dt, int arrayLen) argument 1993 copy1DRangeToUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument 2286 copy2DRangeToUnchecked(int xoff, int yoff, int w, int h, Object array, Element.DataType dt, int arrayLen) argument [all...] |
H A D | RenderScript.java | 461 native void rsnAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, argument 463 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, argument 466 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); 503 int w, int h, Object d, int sizeBytes, int dt, 506 int w, int h, Object d, int sizeBytes, Element.DataType dt, 509 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePadding); 538 int w, int h, int depth, Object d, int sizeBytes, int dt, 541 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, 545 dt.mID, mSize, usePadding); 548 native void rsnAllocationRead(long con, long id, Object d, int dt, in argument 502 rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 505 nAllocationData2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 537 rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 540 nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 549 nAllocationRead(long id, Object d, Element.DataType dt, int mSize, boolean usePadding) argument 554 rsnAllocationRead1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 556 nAllocationRead1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument 572 rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt, int mSize, boolean usePadding) argument 575 nAllocationRead2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | DeadZone.java | 98 long dt = (now - mLastPokeTime); 99 if (dt > mHold + mDecay) 101 if (dt < mHold) 103 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay);
|
/frameworks/rs/ |
H A D | rsComponent.h | 34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
|
H A D | rsElement.h | 104 RsDataType dt, 115 RsDataType dt, 119 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); 114 create(Context *rsc, RsDataType dt, RsDataKind dk, bool isNorm, uint32_t vecSize) argument
|
H A D | rsComponent.cpp | 29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { argument 30 mType = dt;
|
H A D | rsElement.cpp | 230 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, argument 238 (ee->getComponent().getType() == dt) && 259 e->mComponent.set(dt, dk, isNorm, vecSize); 416 RsDataType dt, 420 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); 415 rsi_ElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 138 public long addTo(long dt) { argument 139 return dt + getMillis();
|
H A D | RecurrenceProcessor.java | 103 for (long dt : recur.rdates) { 104 if (dt > lastTime) { 105 lastTime = dt; 118 for (long dt : recur.rdates) { 119 if (dt > lastTime) { 120 lastTime = dt; 668 for (long dt : recur.rdates) { 671 mIterator.set(dt); 683 for (long dt : recur.exdates) { 686 mIterator.set(dt); [all...] |
/frameworks/support/v4/donut/android/support/v4/animation/ |
H A D | DonutAnimatorCompatProvider.java | 57 long dt = getTime() - mStartTime; 58 float fraction = dt * 1f / mDuration;
|
/frameworks/rs/driver/ |
H A D | rsdMeshObj.cpp | 55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; local 56 if (dt != RS_TYPE_FLOAT_32 && dt != RS_TYPE_UNSIGNED_8 && 57 dt != RS_TYPE_UNSIGNED_16 && dt != RS_TYPE_SIGNED_8 && 58 dt != RS_TYPE_SIGNED_16) {
|
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
H A D | TestLatencyView.java | 100 long t, dt; 106 dt = mDT; 109 if (dt > 0) { 110 dx = dx * MS_PER_FRAME / dt; 111 dy = dy * MS_PER_FRAME / dt;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
H A D | RateEstimatorTest.java | 138 private long postEvents(long start, long dt, int num) { argument 142 time += dt;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 149 private float t, dt; field in class:MLand 236 public float getLastTimeStep() { return dt; } 512 public void onTimeUpdate(TimeAnimator timeAnimator, long t, long dt) { 513 step(t, dt); 658 dt = dt_ms / 1000f; 662 dt *= DEBUG_SPEED_MULTIPLIER; 671 ((GameView) v).step(t_ms, dt_ms, t, dt); 1006 public void step(long t_ms, long dt_ms, float t, float dt); argument 1127 public void step(long t_ms, long dt_ms, float t, float dt) { argument 1130 setTranslationX(getTranslationX()-PARAMS.TRANSLATION_PER_SEC*dt); 1227 step(long t_ms, long dt_ms, float t, float dt) argument 1274 step(long t_ms, long dt_ms, float t, float dt) argument 1386 step(long t_ms, long dt_ms, float t, float dt) argument [all...] |
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 765 float dt = (eventTime - state.updateTime) * 0.000000001f; local 768 float xvel = (xpos - state.xpos) / dt; 769 float yvel = (ypos - state.ypos) / dt; 775 float alpha = dt / (FILTER_TIME_CONSTANT + dt); 780 float xaccel = (xvel - state.xvel) / dt; 781 float yaccel = (yvel - state.yvel) / dt; 790 state.xvel += (state.xaccel * dt) * alpha; 791 state.yvel += (state.yaccel * dt) * alpha;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | LinearSmoothScroller.java | 251 private int clampApplyScroll(int tmpDt, int dt) { argument 253 tmpDt -= dt;
|