/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/rs/support/java/src/androidx/renderscript/ |
D | Element.java | 739 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 741 if ((dt != DataType.UNSIGNED_5_6_5) && in Element() 742 (dt != DataType.UNSIGNED_4_4_4_4) && in Element() 743 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element() 745 mSize = dt.mSize * 4; in Element() 747 mSize = dt.mSize * size; in Element() 750 mSize = dt.mSize; in Element() 752 mType = dt; in Element() 777 static Element createUser(RenderScript rs, DataType dt) { in createUser() argument 781 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() [all …]
|
D | Allocation.java | 678 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { in copyFromUnchecked() argument 681 … copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); in copyFromUnchecked() 683 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); in copyFromUnchecked() 685 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); in copyFromUnchecked() 1125 Element.DataType dt, int arrayLen) { in copy1DRangeFromUnchecked() argument 1132 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked() 1133 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local 1450 Element.DataType dt, int arrayLen) { in copy2DRangeFromUnchecked() argument 1456 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() 1469 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local [all …]
|
D | RenderScript.java | 478 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 480 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument 483 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 520 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 523 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 526 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 555 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument 558 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument 562 dt.mID, mSize, usePadding); in nAllocationData3D() 565 … 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 | 1083 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 1085 if ((dt != DataType.UNSIGNED_5_6_5) && in Element() 1086 (dt != DataType.UNSIGNED_4_4_4_4) && in Element() 1087 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element() 1089 mSize = dt.mSize * 4; in Element() 1091 mSize = dt.mSize * size; in Element() 1094 mSize = dt.mSize; in Element() 1096 mType = dt; in Element() 1117 for (DataType dt: DataType.values()) { in updateFromNative() 1118 if(dt.mID == dataBuffer[0]){ in updateFromNative() [all …]
|
D | Allocation.java | 691 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) { in copyFromUnchecked() argument 696 … copy3DRangeFromUnchecked(0, 0, 0, mCurrentDimX, mCurrentDimY, mCurrentDimZ, array, dt, arrayLen); in copyFromUnchecked() 698 copy2DRangeFromUnchecked(0, 0, mCurrentDimX, mCurrentDimY, array, dt, arrayLen); in copyFromUnchecked() 700 copy1DRangeFromUnchecked(0, mCurrentCount, array, dt, arrayLen); in copyFromUnchecked() 1142 Element.DataType dt, int arrayLen) { in copy1DRangeFromUnchecked() argument 1151 data1DChecks(off, count, arrayLen * dt.mSize, dataSize, usePadding); in copy1DRangeFromUnchecked() 1152 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, in copy1DRangeFromUnchecked() local 1474 Element.DataType dt, int arrayLen) { in copy2DRangeFromUnchecked() argument 1482 int sizeBytes = arrayLen * dt.mSize; in copy2DRangeFromUnchecked() 1495 array, sizeBytes, dt, in copy2DRangeFromUnchecked() local [all …]
|
D | RenderScript.java | 541 …snAllocationData1D(long con, long id, int off, int mip, int count, Object d, int sizeBytes, int dt, in rsnAllocationData1D() argument 543 …llocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt, in nAllocationData1D() argument 546 rsnAllocationData1D(mContext, id, off, mip, count, d, sizeBytes, dt.mID, mSize, usePadding); in nAllocationData1D() 576 int w, int h, Object d, int sizeBytes, int dt, in rsnAllocationData2D() argument 579 int w, int h, Object d, int sizeBytes, Element.DataType dt, in nAllocationData2D() argument 582 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 610 int w, int h, int depth, Object d, int sizeBytes, int dt, in rsnAllocationData3D() argument 613 … int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt, in nAllocationData3D() argument 617 dt.mID, mSize, usePadding); in nAllocationData3D() 620 … 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/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | DoubleTapClassifier.java | 84 long dt = secondFinalEvent.getEventTime() - firstFinalEvent.getEventTime(); in isDoubleTap() local 86 if (dt > mDoubleTapTimeMs) { in isDoubleTap() 87 reason.append("Time between taps too large: ").append(dt).append("ms"); in isDoubleTap()
|
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierKeyDownloadMgrTest.java | 99 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testExpirationDate1Day() local 105 String dateExpected = dt.format(expectedCal.getTime()); in testExpirationDate1Day() 111 assertTrue(dt.format(expirationDate).equals(dateExpected)); in testExpirationDate1Day() 123 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testExpirationDate7Day() local 264 SimpleDateFormat dt = new SimpleDateFormat("yyyy-mm-dd"); in testDownloadComplete() local 267 String dateExpected = dt.format(expectedCal.getTime()); in testDownloadComplete() 275 assertTrue(dt.format(expirationDate).equals(dateExpected)); in testDownloadComplete()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/ |
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()
|
/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/base/libs/hwui/ |
D | SkiaInterpolator.cpp | 69 Dot14 dt = Dot14_HALF; in SkUnitCubicInterp() local 71 dt >>= 1; in SkUnitCubicInterp() 74 t -= dt; in SkUnitCubicInterp() 76 t += dt; in SkUnitCubicInterp()
|
/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 | 102 for (long dt : recur.rdates) { in getLastOccurence() 103 if (dt > lastTime) { in getLastOccurence() 104 lastTime = dt; in getLastOccurence() 117 for (long dt : recur.rdates) { in getLastOccurence() 118 if (dt > lastTime) { in getLastOccurence() 119 lastTime = dt; in getLastOccurence() 666 for (long dt : recur.rdates) { in expand() 669 mIterator.set(dt); in expand() 681 for (long dt : recur.exdates) { in expand() 684 mIterator.set(dt); in expand()
|