/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/tests/JankBench/app/src/main/jni/ |
D | Bench.cpp | 208 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 …]
|
D | test.cpp | 143 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/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | VelocityBasedConnectedScore.java | 52 private void setDeltaTimeSeconds(double dt) { in setDeltaTimeSeconds() argument 53 mFilter.mF = new Matrix(2, new double[]{1.0, dt, 0.0, 1.0}); in setDeltaTimeSeconds() 54 Matrix tG = new Matrix(1, new double[]{0.5 * dt * dt, dt}); in setDeltaTimeSeconds() 88 double dt = (millis - mLastMillis) * 0.001; in updateUsingRssi() local 90 setDeltaTimeSeconds(dt); in updateUsingRssi()
|
/frameworks/rs/support/java/src/androidx/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 | 473 …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/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 | 1078 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 …]
|
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 | 536 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 538 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument 541 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 571 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 574 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 577 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 605 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument 608 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument 612 dt.mID, mSize, usePadding); in nAllocationData3D() 615 … 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/ |
D | single_source_alloc.rscript | 143 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/ |
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/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | single_source_alloc.rscript | 145 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/ |
D | CarrierKeyDownloadMgrTest.java | 98 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/ |
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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DeadZone.java | 84 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/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()
|