Searched refs:dt (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/notification/
H A DRateEstimator.java61 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 DNoisyVelocityTracker.java79 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 DElement.cpp220 static uint32_t GetSizeInBytesForType(RsDataType dt) { argument
221 switch(dt) {
269 ALOGE("Missing type %i", dt);
274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
277 uint32_t tsize = GetSizeInBytesForType(dt);
278 if ((dt != RS_TYPE_UNSIGNED_5_6_5) &&
279 (dt != RS_TYPE_UNSIGNED_4_4_4_4) &&
280 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) {
289 mType = dt;
318 android::RSC::sp<const Element> Element::createUser(const android::RSC::sp<RS>& rs, RsDataType dt) { argument
273 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument
323 createVector(const android::RSC::sp<RS>& rs, RsDataType dt, uint32_t size) argument
332 createPixel(const android::RSC::sp<RS>& rs, RsDataType dt, RsDataKind dk) argument
[all...]
H A DAllocation.cpp77 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 Drs_sample.c270 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,
447 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
451 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
464 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
510 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
537 rs_data_type dt = elem->mHal.state.dataType; local
589 rs_data_type dt = elem->mHal.state.dataType; local
636 rs_data_type dt = elem->mHal.state.dataType; local
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DElement.java1076 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument
1078 if ((dt != DataType.UNSIGNED_5_6_5) &&
1079 (dt != DataType.UNSIGNED_4_4_4_4) &&
1080 (dt != DataType.UNSIGNED_5_5_5_1)) {
1082 mSize = dt.mSize * 4;
1084 mSize = dt.mSize * size;
1087 mSize = dt.mSize;
1089 mType = dt;
1110 for (DataType dt: DataType.values()) {
1111 if(dt
1149 createUser(RenderScript rs, DataType dt) argument
1170 createVector(RenderScript rs, DataType dt, int size) argument
1214 createPixel(RenderScript rs, DataType dt, DataKind dk) argument
[all...]
H A DAllocation.java687 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 DRenderScript.java535 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/rs/support/java/src/android/support/v8/renderscript/
H A DElement.java734 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 DAllocation.java673 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 DRenderScript.java461 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 DDeadZone.java100 long dt = (now - mLastPokeTime);
101 if (dt > mHold + mDecay)
103 if (dt < mHold)
105 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay);
/frameworks/rs/
H A DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
H A DrsElement.h106 RsDataType dt,
117 RsDataType dt,
121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize);
116 create(Context *rsc, RsDataType dt, RsDataKind dk, bool isNorm, uint32_t vecSize) argument
H A DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { argument
30 mType = dt;
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java141 public long addTo(long dt) { argument
142 return dt + getMillis();
H A DRecurrenceProcessor.java103 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/rs/driver/
H A DrsdMeshObj.cpp59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; local
60 if (dt != RS_TYPE_FLOAT_32 && dt != RS_TYPE_UNSIGNED_8 &&
61 dt != RS_TYPE_UNSIGNED_16 && dt != RS_TYPE_SIGNED_8 &&
62 dt != RS_TYPE_SIGNED_16) {
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
H A DTestLatencyView.java100 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/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs22 static rs_allocation createVectorAllocation(rs_data_type dt, int vecSize,
28 element = rsCreateElement(dt);
30 element = rsCreateVectorElement(dt, vecSize);
/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DRateEstimatorTest.java145 private long postEvents(long start, long dt, int num) { argument
149 time += dt;
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java149 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/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java408 protected void scrollBy(final int dt) throws Throwable { argument
413 mRecyclerView.scrollBy(dt, 0);
415 mRecyclerView.scrollBy(0, dt);
422 protected void smoothScrollBy(final int dt) throws Throwable { argument
427 mRecyclerView.smoothScrollBy(dt, 0);
429 mRecyclerView.smoothScrollBy(0, dt);
/frameworks/native/libs/input/
H A DVelocityTracker.cpp765 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/base/core/java/com/android/internal/widget/
H A DLinearSmoothScroller.java253 private int clampApplyScroll(int tmpDt, int dt) { argument
255 tmpDt -= dt;

Completed in 3127 milliseconds

12