Searched defs:dt (Results 1 - 21 of 21) sorted by relevance

/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java138 public long addTo(long dt) { argument
139 return dt + getMillis();
/frameworks/rs/
H A DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { argument
30 mType = dt;
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 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/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) {
H A DrsdRuntimeStubs.cpp720 static void * ElementAt1D(Allocation *a, RsDataType dt, uint32_t vecSize, uint32_t x) { argument
739 if (dt != e->getType()) {
740 sprintf(buf, "Data type mismatch for ElementAt %i of %i", dt, e->getType());
751 static void * ElementAt2D(Allocation *a, RsDataType dt, uint32_t vecSize, uint32_t x, uint32_t y) { argument
776 if (dt != e->getType()) {
777 sprintf(buf, "Data type mismatch for ElementAt %i of %i", dt, e->getType());
789 static void * ElementAt3D(Allocation *a, RsDataType dt, uint32_t vecSize, uint32_t x, uint32_t y, uint32_t z) { argument
820 if (dt != e->getType()) {
821 sprintf(buf, "Data type mismatch for ElementAt %i of %i", dt, e->getType());
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
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));
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...]
/frameworks/rs/cpp/
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...]
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...]
/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 DLinearLayoutManager.java1152 * @param dt This can be used to add additional padding to the visible area. This is used
1157 private void recycleViewsFromStart(RecyclerView.Recycler recycler, int dt) { argument
1158 if (dt < 0) {
1166 final int limit = dt;
1192 * @param dt This can be used to add additional padding to the visible area. This is used
1196 private void recycleViewsFromEnd(RecyclerView.Recycler recycler, int dt) { argument
1198 if (dt < 0) {
1205 final int limit = mOrientationHelper.getEnd() - dt;
H A DStaggeredGridLayoutManager.java1828 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
1831 if (dt > 0) { // layout towards end
1843 final int absDt = Math.abs(dt);
1849 totalScroll = dt;
1850 } else if (dt < 0) {
1852 } else { // dt > 0
1856 Log.d(TAG, "asked " + dt + " scrolled" + totalScroll);
2192 void onOffset(int dt) { argument
2194 mCachedStart += dt;
2197 mCachedEnd += dt;
2202 getNormalizedOffset(int dt, int targetStart, int targetEnd) argument
[all...]
/frameworks/compile/slang/
H A Dslang_rs_export_type.cpp774 DataType dt = RSExportPrimitiveType::GetRSSpecificType(TypeName); local
775 switch (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/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/packages/SystemUI/src/com/android/systemui/egg/
H A DLLand.java146 private float t, dt; field in class:LLand
194 public float getLastTimeStep() { return dt; }
336 public void onTimeUpdate(TimeAnimator timeAnimator, long t, long dt) {
337 step(t, dt);
429 dt = dt_ms / 1000f;
433 dt *= DEBUG_SPEED_MULTIPLIER;
442 ((GameView) v).step(t_ms, dt_ms, t, dt);
713 public void step(long t_ms, long dt_ms, float t, float dt); argument
776 public void step(long t_ms, long dt_ms, float t, float dt) { argument
787 final float y = getTranslationY() + dv * dt;
852 step(long t_ms, long dt_ms, float t, float dt) argument
888 step(long t_ms, long dt_ms, float t, float dt) argument
953 step(long t_ms, long dt_ms, float t, float dt) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
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...]
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...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java262 public void scrollBy(final int dt) { argument
268 mRecyclerView.scrollBy(dt, 0);
270 mRecyclerView.scrollBy(0, dt);

Completed in 819 milliseconds