/frameworks/rs/cpp/ |
D | Element.cpp | 220 static uint32_t GetSizeInBytesForType(RsDataType dt) { in GetSizeInBytesForType() argument 221 switch(dt) { in GetSizeInBytesForType() 269 ALOGE("Missing type %i", dt); in GetSizeInBytesForType() 274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument 277 uint32_t tsize = GetSizeInBytesForType(dt); in Element() 278 if ((dt != RS_TYPE_UNSIGNED_5_6_5) && in Element() 279 (dt != RS_TYPE_UNSIGNED_4_4_4_4) && in Element() 280 (dt != RS_TYPE_UNSIGNED_5_5_5_1)) { in Element() 289 mType = dt; in Element() 318 android::RSC::sp<const Element> Element::createUser(const android::RSC::sp<RS>& rs, RsDataType dt) { in createUser() argument [all …]
|
D | Allocation.cpp | 77 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt64() local 78 if ((dt == RS_TYPE_SIGNED_64) || (dt == RS_TYPE_UNSIGNED_64)) { in validateIsInt64() 81 ALOGE("64 bit integer source does not match allocation type %i", dt); in validateIsInt64() 85 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt32() local 86 if ((dt == RS_TYPE_SIGNED_32) || (dt == RS_TYPE_UNSIGNED_32)) { in validateIsInt32() 89 ALOGE("32 bit integer source does not match allocation type %i", dt); in validateIsInt32() 93 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt16() local 94 if ((dt == RS_TYPE_SIGNED_16) || (dt == RS_TYPE_UNSIGNED_16)) { in validateIsInt16() 97 ALOGE("16 bit integer source does not match allocation type %i", dt); in validateIsInt16() 101 RsDataType dt = mType->getElement()->getDataType(); in validateIsInt8() local [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RateEstimator.java | 61 double dt = ((double) (now - mLastEventTime)) / 1000.0; in getInterarrivalEstimate() local 62 dt = Math.max(dt, MINIMUM_DT); in getInterarrivalEstimate() 64 return (RATE_ALPHA * mInterarrivalTime + (1.0 - RATE_ALPHA) * dt); in getInterarrivalEstimate()
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | single_source_alloc.rs | 125 rs_data_type dt = (rs_data_type) dataType; 133 element = rsCreateElement((rs_data_type) dt); 135 element = rsCreateVectorElement((rs_data_type) dt, vecSize); 162 switch (dt) { 184 switch (dt) { 204 #define TEST_DATA_TYPE(dt, allowSimple, allowVector, allowPixel) { \ 206 _RS_ASSERT(rsIsObject(rsCreateElement(dt))); \ 208 _RS_ASSERT(!rsIsObject(rsCreateElement(dt))); \ 210 _RS_ASSERT(rsIsObject(rsCreateVectorElement(dt, 3))); \ 212 _RS_ASSERT(!rsIsObject(rsCreateVectorElement(dt, 3))); \ [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
D | single_source_alloc.rs | 124 rs_data_type dt = (rs_data_type) dataType; 132 element = rsCreateElement((rs_data_type) dt); 134 element = rsCreateVectorElement((rs_data_type) dt, vecSize); 161 switch (dt) { 182 switch (dt) { 201 #define TEST_DATA_TYPE(dt, allowSimple, allowVector, allowPixel) { \ 203 _RS_ASSERT(rsIsObject(rsCreateElement(dt))); \ 205 _RS_ASSERT(!rsIsObject(rsCreateElement(dt))); \ 207 _RS_ASSERT(rsIsObject(rsCreateVectorElement(dt, 3))); \ 209 _RS_ASSERT(!rsIsObject(rsCreateVectorElement(dt, 3))); \ [all …]
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
D | Element.java | 734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 736 if ((dt != DataType.UNSIGNED_5_6_5) && in Element() 737 (dt != DataType.UNSIGNED_4_4_4_4) && in Element() 738 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element() 740 mSize = dt.mSize * 4; in Element() 742 mSize = dt.mSize * size; in Element() 745 mSize = dt.mSize; in Element() 747 mType = dt; in Element() 772 static Element createUser(RenderScript rs, DataType dt) { in createUser() argument 776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() [all …]
|
D | Allocation.java | 673 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { in copyFromUnchecked() argument 676 … copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); in copyFromUnchecked() 678 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); in copyFromUnchecked() 680 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); in copyFromUnchecked() 1120 Element.DataType dt, int arrayLen) { in copy1DRangeFromUnchecked() argument 1127 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked() 1128 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local 1445 Element.DataType dt, int arrayLen) { in copy2DRangeFromUnchecked() argument 1451 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() 1464 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local [all …]
|
D | RenderScript.java | 461 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 463 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument 466 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 503 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 506 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 509 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 538 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument 541 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument 545 dt.mID, mSize, usePadding); in nAllocationData3D() 548 … native void rsnAllocationRead(long con, long id, Object d, int dt, int mSize, boolean usePadding); in rsnAllocationRead() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NoisyVelocityTracker.java | 79 final float dt = (float) (event.t - last.t) / units; in computeCurrentVelocity() local 86 dx, dy, dt, in computeCurrentVelocity() 87 (dx/dt), in computeCurrentVelocity() 88 (dy/dt) in computeCurrentVelocity() 96 mVX += weight * dx / dt; in computeCurrentVelocity() 97 mVY += weight * dy / dt; in computeCurrentVelocity()
|
/frameworks/rs/driver/runtime/ |
D | rs_sample.c | 270 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample1D() argument 280 if (dt == RS_TYPE_UNSIGNED_5_6_5) { in getBilinearSample1D() 320 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample2D() argument 333 if (dt == RS_TYPE_UNSIGNED_5_6_5) { in getBilinearSample2D() 349 rs_data_type dt, uint32_t lod) { in getNearestSample() argument 367 if (dt == RS_TYPE_UNSIGNED_5_6_5) { in getNearestSample() 386 rs_data_type dt, uint32_t lod) { in getNearestSample() argument 405 if (dt == RS_TYPE_UNSIGNED_5_6_5) { in getNearestSample() 422 rs_data_kind dk, rs_data_type dt, in sample_LOD_LinearPixel() argument 447 return getBilinearSample1D(alloc, weights, location, next, dk, dt, lod); in sample_LOD_LinearPixel() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Element.java | 1076 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 1078 if ((dt != DataType.UNSIGNED_5_6_5) && in Element() 1079 (dt != DataType.UNSIGNED_4_4_4_4) && in Element() 1080 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element() 1082 mSize = dt.mSize * 4; in Element() 1084 mSize = dt.mSize * size; in Element() 1087 mSize = dt.mSize; in Element() 1089 mType = dt; in Element() 1110 for (DataType dt: DataType.values()) { in updateFromNative() 1111 if(dt.mID == dataBuffer[0]){ in updateFromNative() [all …]
|
D | Allocation.java | 687 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { in copyFromUnchecked() argument 692 … copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); in copyFromUnchecked() 694 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); in copyFromUnchecked() 696 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); in copyFromUnchecked() 1138 Element.DataType dt, int arrayLen) { in copy1DRangeFromUnchecked() argument 1147 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked() 1148 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local 1470 Element.DataType dt, int arrayLen) { in copy2DRangeFromUnchecked() argument 1478 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() 1491 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local [all …]
|
D | RenderScript.java | 535 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 537 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument 540 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 570 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 573 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 576 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 604 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument 607 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument 611 dt.mID, mSize, usePadding); in nAllocationData3D() 614 … native void rsnAllocationRead(long con, long id, Object d, int dt, int mSize, boolean usePadding); in rsnAllocationRead() argument [all …]
|
/frameworks/rs/driver/ |
D | rsdMeshObj.cpp | 59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent() local 60 if (dt != RS_TYPE_FLOAT_32 && dt != RS_TYPE_UNSIGNED_8 && in isValidGLComponent() 61 dt != RS_TYPE_UNSIGNED_16 && dt != RS_TYPE_SIGNED_8 && in isValidGLComponent() 62 dt != RS_TYPE_SIGNED_16) { in isValidGLComponent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeadZone.java | 100 long dt = (now - mLastPokeTime); in getSize() local 101 if (dt > mHold + mDecay) in getSize() 103 if (dt < mHold) in getSize() 105 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay); in getSize()
|
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
D | TestLatencyView.java | 100 long t, dt; in onDrawFrame() local 106 dt = mDT; in onDrawFrame() 109 if (dt > 0) { in onDrawFrame() 110 dx = dx * MS_PER_FRAME / dt; in onDrawFrame() 111 dy = dy * MS_PER_FRAME / dt; in onDrawFrame()
|
/frameworks/rs/ |
D | rsElement.h | 106 RsDataType dt, 117 RsDataType dt, in create() argument 121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
|
D | rsElement.cpp | 230 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, in createRef() argument 238 (ee->getComponent().getType() == dt) && in createRef() 259 e->mComponent.set(dt, dk, isNorm, vecSize); in createRef() 413 RsDataType dt, in rsi_ElementCreate() argument 417 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
|
D | rsComponent.cpp | 29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument 30 mType = dt; in set()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
D | MLand.java | 149 private float t, dt; field in MLand 236 public float getLastTimeStep() { return dt; } in getLastTimeStep() 512 public void onTimeUpdate(TimeAnimator timeAnimator, long t, long dt) { in reset() 513 step(t, dt); in reset() 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); 1127 public void step(long t_ms, long dt_ms, float t, float dt) { 1130 setTranslationX(getTranslationX()-PARAMS.TRANSLATION_PER_SEC*dt); [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Duration.java | 141 public long addTo(long dt) { in addTo() argument 142 return dt + getMillis(); in addTo()
|
D | RecurrenceProcessor.java | 103 for (long dt : recur.rdates) { in getLastOccurence() 104 if (dt > lastTime) { in getLastOccurence() 105 lastTime = dt; in getLastOccurence() 118 for (long dt : recur.rdates) { in getLastOccurence() 119 if (dt > lastTime) { in getLastOccurence() 120 lastTime = dt; in getLastOccurence() 668 for (long dt : recur.rdates) { in expand() 671 mIterator.set(dt); in expand() 683 for (long dt : recur.exdates) { in expand() 686 mIterator.set(dt); in expand()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 765 float dt = (eventTime - state.updateTime) * 0.000000001f; in updateState() local 768 float xvel = (xpos - state.xpos) / dt; in updateState() 769 float yvel = (ypos - state.ypos) / dt; in updateState() 775 float alpha = dt / (FILTER_TIME_CONSTANT + dt); in updateState() 780 float xaccel = (xvel - state.xvel) / dt; in updateState() 781 float yaccel = (yvel - state.yvel) / dt; in updateState() 790 state.xvel += (state.xaccel * dt) * alpha; in updateState() 791 state.yvel += (state.yaccel * dt) * alpha; in updateState()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | find_region.rs | 22 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/ |
D | RateEstimatorTest.java | 145 private long postEvents(long start, long dt, int num) { in postEvents() argument 149 time += dt; in postEvents()
|