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

12

/frameworks/rs/cpp/
H A DElement.cpp191 static uint32_t GetSizeInBytesForType(RsDataType dt) { argument
192 switch(dt) {
240 ALOGE("Missing type %i", dt);
245 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
248 uint32_t tsize = GetSizeInBytesForType(dt);
249 if ((dt != RS_TYPE_UNSIGNED_5_6_5) &&
250 (dt != RS_TYPE_UNSIGNED_4_4_4_4) &&
251 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) {
260 mType = dt;
274 android::RSC::sp<const Element> Element::createUser(android::RSC::sp<RS> rs, RsDataType dt) { argument
244 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument
279 createVector(android::RSC::sp<RS> rs, RsDataType dt, uint32_t size) argument
288 createPixel(android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk) argument
[all...]
H A DAllocation.cpp76 RsDataType dt = mType->getElement()->getDataType(); local
77 if ((dt == RS_TYPE_SIGNED_32) || (dt == RS_TYPE_UNSIGNED_32)) {
80 ALOGE("32 bit integer source does not match allocation type %i", dt);
84 RsDataType dt = mType->getElement()->getDataType(); local
85 if ((dt == RS_TYPE_SIGNED_16) || (dt == RS_TYPE_UNSIGNED_16)) {
88 ALOGE("16 bit integer source does not match allocation type %i", dt);
92 RsDataType dt = mType->getElement()->getDataType(); local
93 if ((dt
100 RsDataType dt = mType->getElement()->getDataType(); local
108 RsDataType dt = mType->getElement()->getDataType(); local
[all...]
/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/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,
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 DElement.java784 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument
786 if ((dt != DataType.UNSIGNED_5_6_5) &&
787 (dt != DataType.UNSIGNED_4_4_4_4) &&
788 (dt != DataType.UNSIGNED_5_5_5_1)) {
790 mSize = dt.mSize * 4;
792 mSize = dt.mSize * size;
795 mSize = dt.mSize;
797 mType = dt;
818 for (DataType dt: DataType.values()) {
819 if(dt
857 createUser(RenderScript rs, DataType dt) argument
878 createVector(RenderScript rs, DataType dt, int size) argument
921 createPixel(RenderScript rs, DataType dt, DataKind dk) argument
[all...]
H A DRenderScript.java439 native void rsnAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt); argument
440 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt) { argument
442 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID);
472 int w, int h, Object d, int sizeBytes, int dt);
474 int w, int h, Object d, int sizeBytes, Element.DataType dt) {
476 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID);
504 int w, int h, int depth, Object d, int sizeBytes, int dt);
506 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt) {
508 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, dt.mID);
511 native void rsnAllocationRead(long con, long id, Object d, int dt); argument
471 rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt) argument
473 nAllocationData2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt) argument
503 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) argument
505 nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt) argument
512 nAllocationRead(long id, Object d, Element.DataType dt) argument
517 rsnAllocationRead1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt) argument
519 nAllocationRead1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt) argument
525 rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, int dt) argument
527 nAllocationRead2D(long id, int xoff, int yoff, int mip, int face, int w, int h, Object d, int sizeBytes, Element.DataType dt) argument
[all...]
H A DAllocation.java589 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { argument
593 copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen);
595 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen);
597 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen);
853 Element.DataType dt, int arrayLen) {
856 data1DChecks(off, count, arrayLen * dt.mSize, dataSize);
857 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt);
1030 Element.DataType dt, int arrayLen) {
1035 array, arrayLen * dt.mSize, dt);
852 copy1DRangeFromUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument
1029 copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, Element.DataType dt, int arrayLen) argument
1191 copy3DRangeFromUnchecked(int xoff, int yoff, int zoff, int w, int h, int d, Object array, Element.DataType dt, int arrayLen) argument
1263 copyTo(Object array, Element.DataType dt, int arrayLen) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DElement.java726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument
728 if ((dt != DataType.UNSIGNED_5_6_5) &&
729 (dt != DataType.UNSIGNED_4_4_4_4) &&
730 (dt != DataType.UNSIGNED_5_5_5_1)) {
732 mSize = dt.mSize * 4;
734 mSize = dt.mSize * size;
737 mSize = dt.mSize;
739 mType = dt;
754 * @param dt The DataType for the new element.
757 static Element createUser(RenderScript rs, DataType dt) { argument
782 createVector(RenderScript rs, DataType dt, int size) argument
829 createPixel(RenderScript rs, DataType dt, DataKind dk) argument
[all...]
H A DElementThunker.java177 static Element create(RenderScript rs, DataType dt) { argument
181 switch(dt) {
250 public static Element createVector(RenderScript rs, DataType dt, int size) { argument
254 e = android.renderscript.Element.createVector(rst.mN, convertType(dt), size);
261 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) { argument
265 e = android.renderscript.Element.createPixel(rst.mN, convertType(dt), convertKind(dk));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDeadZone.java91 long dt = (now - mLastPokeTime);
92 if (dt > mHold + mDecay)
94 if (dt < mHold)
96 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.h104 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 DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { argument
30 mType = dt;
H A DrsElement.cpp228 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, argument
236 (ee->getComponent().getType() == dt) &&
257 e->mComponent.set(dt, dk, isNorm, vecSize);
414 RsDataType dt,
418 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize);
413 rsi_ElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java138 public long addTo(long dt) { argument
139 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.cpp55 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 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/base/packages/SystemUI/src/com/android/systemui/egg/
H A DLLand.java131 private float t, dt; field in class:LLand
174 public float getLastTimeStep() { return dt; }
308 public void onTimeUpdate(TimeAnimator timeAnimator, long t, long dt) {
309 step(t, dt);
399 dt = dt_ms / 1000f;
403 dt *= DEBUG_SPEED_MULTIPLIER;
412 ((GameView) v).step(t_ms, dt_ms, t, dt);
679 public void step(long t_ms, long dt_ms, float t, float dt); argument
738 public void step(long t_ms, long dt_ms, float t, float dt) { argument
749 final float y = getTranslationY() + dv * dt;
814 step(long t_ms, long dt_ms, float t, float dt) argument
849 step(long t_ms, long dt_ms, float t, float dt) argument
914 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.java207 public void scrollBy(final int dt) throws Throwable { argument
212 mRecyclerView.scrollBy(dt, 0);
214 mRecyclerView.scrollBy(0, dt);
/frameworks/native/libs/input/
H A DVelocityTracker.cpp762 float dt = (eventTime - state.updateTime) * 0.000000001f; local
765 float xvel = (xpos - state.xpos) / dt;
766 float yvel = (ypos - state.ypos) / dt;
772 float alpha = dt / (FILTER_TIME_CONSTANT + dt);
777 float xaccel = (xvel - state.xvel) / dt;
778 float yaccel = (yvel - state.yvel) / dt;
787 state.xvel += (state.xaccel * dt) * alpha;
788 state.yvel += (state.yaccel * dt) * alpha;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSmoothScroller.java250 private int clampApplyScroll(int tmpDt, int dt) { argument
252 tmpDt -= dt;
H A DStaggeredGridLayoutManager.java1744 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
1747 if (dt > 0) { // layout towards end
1759 final int absDt = Math.abs(dt);
1765 totalScroll = dt;
1766 } else if (dt < 0) {
1768 } else { // dt > 0
1772 Log.d(TAG, "asked " + dt + " scrolled" + totalScroll);
2104 void onOffset(int dt) { argument
2106 mCachedStart += dt;
2109 mCachedEnd += dt;
2114 getNormalizedOffset(int dt, int targetStart, int targetEnd) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DVelocityTest.java244 float dt = duration / (float)steps;
251 long time = startime + (int) (i * dt);
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicColorMatrix.cpp156 uint32_t mask, int dt, int st);
160 uint32_t mask, int dt, int st);
976 int dt = key.u.outVecSize + (key.u.outType == RS_TYPE_FLOAT_32 ? 4 : 0);
989 rsdIntrinsicColorMatrixSetup_float_K(&mFnTab, mm, dt, st);
991 rsdIntrinsicColorMatrixSetup_int_K(&mFnTab, mm, dt, st);

Completed in 2054 milliseconds

12