Home
last modified time | relevance | path

Searched refs:dt (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/rs/cpp/
DElement.cpp220 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 …]
DAllocation.cpp77 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/tests/JankBench/app/src/main/jni/
DBench.cpp208 double dt = getTimeMillis() - t1; in runMemoryBandwidthTest() local
209 dt /= 1000; in runMemoryBandwidthTest()
211 double bw = ((double)size) * mMemLoopCount / dt; in runMemoryBandwidthTest()
215 if (dt > targetTime) { in runMemoryBandwidthTest()
216 mMemLoopCount = (size_t)((double)mMemLoopCount / (dt / targetTime)); in runMemoryBandwidthTest()
268 double dt = getTimeNanos() - t1; in runMemoryLatencyTest() local
269 double dts = dt / 1000000000; in runMemoryLatencyTest()
270 double lat = dt / (loops * mMemLoopCount); in runMemoryLatencyTest()
362 double dt = getTimeNanos() - t1; in runGFlopsTest() local
364 dt /= 1000.f * 1000.f * 1000.f; in runGFlopsTest()
[all …]
Dtest.cpp143 double dt = t2 - t1; in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest() local
144 dt /= 1000 * 1000 * 1000; in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
145 double bw = ((double)subtest) * count / dt; in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DVelocityBasedConnectedScore.java51 private void setDeltaTimeSeconds(double dt) { in setDeltaTimeSeconds() argument
52 mFilter.mF = new Matrix(2, new double[]{1.0, dt, 0.0, 1.0}); in setDeltaTimeSeconds()
53 Matrix tG = new Matrix(1, new double[]{0.5 * dt * dt, dt}); in setDeltaTimeSeconds()
87 double dt = (millis - mLastMillis) * 0.001; in updateUsingRssi() local
89 setDeltaTimeSeconds(dt); in updateUsingRssi()
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java734 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 …]
DAllocation.java673 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 …]
DRenderScript.java473 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument
475 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument
478 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D()
515 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument
518 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument
521 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D()
550 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument
553 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument
557 dt.mID, mSize, usePadding); in nAllocationData3D()
560 … native void rsnAllocationRead(long con, long id, Object d, int dt, int mSize, boolean usePadding); in rsnAllocationRead() argument
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRateEstimator.java61 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/driver/runtime/
Drs_sample.c270 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/
DElement.java1078 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
1080 if ((dt != DataType.UNSIGNED_5_6_5) && in Element()
1081 (dt != DataType.UNSIGNED_4_4_4_4) && in Element()
1082 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element()
1084 mSize = dt.mSize * 4; in Element()
1086 mSize = dt.mSize * size; in Element()
1089 mSize = dt.mSize; in Element()
1091 mType = dt; in Element()
1112 for (DataType dt: DataType.values()) { in updateFromNative()
1113 if(dt.mID == dataBuffer[0]){ in updateFromNative()
[all …]
DAllocation.java687 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 …]
DRenderScript.java547 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument
549 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument
552 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D()
582 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument
585 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument
588 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D()
616 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument
619 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument
623 dt.mID, mSize, usePadding); in nAllocationData3D()
626 … native void rsnAllocationRead(long con, long id, Object d, int dt, int mSize, boolean usePadding); in rsnAllocationRead() argument
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsingle_source_alloc.rscript143 rs_data_type dt = (rs_data_type) dataType;
151 element = rsCreateElement((rs_data_type) dt);
153 element = rsCreateVectorElement((rs_data_type) dt, vecSize);
180 switch (dt) {
207 switch (dt) {
232 #define TEST_DATA_TYPE(dt, allowSimple, allowVector, allowPixel) { \
234 _RS_ASSERT(rsIsObject(rsCreateElement(dt))); \
236 _RS_ASSERT(!rsIsObject(rsCreateElement(dt))); \
238 _RS_ASSERT(rsIsObject(rsCreateVectorElement(dt, 3))); \
240 _RS_ASSERT(!rsIsObject(rsCreateVectorElement(dt, 3))); \
[all …]
/frameworks/rs/driver/
DrsdMeshObj.cpp59 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/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsingle_source_alloc.rscript145 rs_data_type dt = (rs_data_type) dataType;
153 element = rsCreateElement((rs_data_type) dt);
155 element = rsCreateVectorElement((rs_data_type) dt, vecSize);
182 switch (dt) {
209 switch (dt) {
234 #define TEST_DATA_TYPE(dt, allowSimple, allowVector, allowPixel) { \
236 _RS_ASSERT(rsIsObject(rsCreateElement(dt))); \
238 _RS_ASSERT(!rsIsObject(rsCreateElement(dt))); \
240 _RS_ASSERT(rsIsObject(rsCreateVectorElement(dt, 3))); \
242 _RS_ASSERT(!rsIsObject(rsCreateVectorElement(dt, 3))); \
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java98 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testExpirationDate1Day() local
104 String dateExpected = dt.format(expectedCal.getTime()); in testExpirationDate1Day()
109 assertTrue(dt.format(expirationDate).equals(dateExpected)); in testExpirationDate1Day()
121 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testExpirationDate7Day() local
249 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testDownloadComplete() local
252 String dateExpected = dt.format(expectedCal.getTime()); in testDownloadComplete()
259 assertTrue(dt.format(expirationDate).equals(dateExpected)); in testDownloadComplete()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java100 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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java84 long dt = (now - mLastPokeTime); in getSize() local
85 if (dt > mHold + mDecay) in getSize()
87 if (dt < mHold) in getSize()
89 return (int) lerp(mSizeMax, mSizeMin, (float) (dt - mHold) / mDecay); in getSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java149 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/rs/
DrsElement.h106 RsDataType dt,
117 RsDataType dt, in create() argument
121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
DrsElement.cpp230 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()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java103 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()
DDuration.java141 public long addTo(long dt) { in addTo() argument
142 return dt + getMillis(); in addTo()
/frameworks/native/libs/input/
DVelocityTracker.cpp847 float dt = (eventTime - state.updateTime) * 0.000000001f; in updateState() local
850 float xvel = (xpos - state.xpos) / dt; in updateState()
851 float yvel = (ypos - state.ypos) / dt; in updateState()
857 float alpha = dt / (FILTER_TIME_CONSTANT + dt); in updateState()
862 float xaccel = (xvel - state.xvel) / dt; in updateState()
863 float yaccel = (yvel - state.yvel) / dt; in updateState()
872 state.xvel += (state.xaccel * dt) * alpha; in updateState()
873 state.yvel += (state.yaccel * dt) * alpha; in updateState()

12