Searched defs:dt (Results 1 - 25 of 25) 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.cpp230 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
H A DrsScriptC_Lib.cpp279 RsElement rsrElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, argument
281 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize);
/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.cpp221 static android::renderscript::rs_element CreateElement(RsDataType dt, argument
230 Element *element = (Element *) rsrElementCreate(rsc, dt, dk, isNormalized,
363 Element *rsCreateElement(int32_t dt, int32_t dk, bool isNormalized, argument
366 android::renderscript::rs_element obj = CreateElement((RsDataType) dt,
393 android::renderscript::rs_element rsCreateElement(int32_t dt, int32_t dk, argument
397 return CreateElement((RsDataType) dt, (RsDataKind) dk, isNormalized,
452 static void * ElementAt(Allocation *a, RsDataType dt, uint32_t vecSize, argument
484 if (dt != e->getType()) {
485 snprintf(buf, sizeof(buf), "Data type mismatch for ElementAt %i of %i", dt, e->getType());
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
H A DRateEstimatorTest.java138 private long postEvents(long start, long dt, int num) { argument
142 time += dt;
/frameworks/rs/cpp/
H A DElement.cpp221 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 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/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearSmoothScroller.java253 private int clampApplyScroll(int tmpDt, int dt) { argument
255 tmpDt -= dt;
H A DLinearLayoutManager.java1278 * @param dt This can be used to add additional padding to the visible area. This is used
1282 private void recycleViewsFromStart(RecyclerView.Recycler recycler, int dt) { argument
1283 if (dt < 0) {
1291 final int limit = dt;
1323 * @param dt This can be used to add additional padding to the visible area. This is used
1327 private void recycleViewsFromEnd(RecyclerView.Recycler recycler, int dt) { argument
1329 if (dt < 0) {
1336 final int limit = mOrientationHelper.getEnd() - dt;
H A DStaggeredGridLayoutManager.java2111 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
2112 if (getChildCount() == 0 || dt == 0) {
2116 prepareLayoutStateForDelta(dt, state);
2121 totalScroll = dt;
2122 } else if (dt < 0) {
2124 } else { // dt > 0
2128 Log.d(TAG, "asked " + dt + " scrolled" + totalScroll);
2582 void onOffset(int dt) { argument
2584 mCachedStart += dt;
2587 mCachedEnd += dt;
[all...]
/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/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 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 DElement.java1077 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 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/compile/slang/
H A Dslang_rs_export_type.cpp842 DataType dt = RSExportPrimitiveType::GetRSSpecificType(TypeName); local
843 switch (dt) {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseStaggeredGridLayoutManagerTest.java578 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument
580 int result = super.scrollBy(dt, recycler, state);
H A DBaseRecyclerViewInstrumentationTest.java403 public void scrollBy(final int dt) { argument
409 mRecyclerView.scrollBy(dt, 0);
411 mRecyclerView.scrollBy(0, dt);
421 public void smoothScrollBy(final int dt) { argument
427 mRecyclerView.smoothScrollBy(dt, 0);
429 mRecyclerView.smoothScrollBy(0, dt);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
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 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 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/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...]

Completed in 451 milliseconds