/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | LinearLayoutManager.java | 1246 * @param dt This can be used to add additional padding to the visible area. This is used 1250 private void recycleViewsFromStart(RecyclerView.Recycler recycler, int dt) { argument 1251 if (dt < 0) { 1259 final int limit = dt; 1291 * @param dt This can be used to add additional padding to the visible area. This is used 1295 private void recycleViewsFromEnd(RecyclerView.Recycler recycler, int dt) { argument 1297 if (dt < 0) { 1304 final int limit = mOrientationHelper.getEnd() - dt;
|
H A D | LinearSmoothScroller.java | 251 private int clampApplyScroll(int tmpDt, int dt) { argument 253 tmpDt -= dt;
|
H A D | StaggeredGridLayoutManager.java | 2051 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument 2054 if (dt > 0) { // layout towards end 2065 final int absDt = Math.abs(dt); 2070 totalScroll = dt; 2071 } else if (dt < 0) { 2073 } else { // dt > 0 2077 Log.d(TAG, "asked " + dt + " scrolled" + totalScroll); 2529 void onOffset(int dt) { argument 2531 mCachedStart += dt; 2534 mCachedEnd += dt; [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseRecyclerViewInstrumentationTest.java | 401 public void scrollBy(final int dt) { argument 407 mRecyclerView.scrollBy(dt, 0); 409 mRecyclerView.scrollBy(0, dt);
|
H A D | BaseStaggeredGridLayoutManagerTest.java | 531 int scrollBy(int dt, RecyclerView.Recycler recycler, RecyclerView.State state) { argument 533 int result = super.scrollBy(dt, recycler, state);
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
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 | 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 | 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/rs/cpp/ |
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...] |
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...] |
/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) {
|
H A D | rsdRuntimeStubs.cpp | 221 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/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/rs/ |
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
|
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 | rsScriptC_Lib.cpp | 279 RsElement rsrElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, argument 281 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize);
|
/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/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 138 public long addTo(long dt) { argument 139 return dt + getMillis();
|
/frameworks/compile/slang/ |
H A D | slang_rs_export_type.cpp | 842 DataType dt = RSExportPrimitiveType::GetRSSpecificType(TypeName); local 843 switch (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/base/rs/java/android/renderscript/ |
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 | 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 | 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...] |