Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java109 double delta = (relPos - positions[i1]) / (positions[i2] - positions[i1]); in checkColors() local
110 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in checkColors()
111 delta * Color.alpha(colors[i2])); in checkColors()
112 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in checkColors()
113 delta * Color.red(colors[i2])); in checkColors()
114 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in checkColors()
115 delta * Color.green(colors[i2])); in checkColors()
116 int blue = (int) ((1d - delta) * Color.blue(colors[i1]) + in checkColors()
117 delta * Color.blue(colors[i2])); in checkColors()
DPaintFlagsDrawFilterTest.java52 Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter); in testPaintFlagsDrawFilter()
70 private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter) { in delta() method in PaintFlagsDrawFilterTest
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DMatrix4fTest.java22 final float delta = 0.00001f; field in Matrix4fTest
30 void checkIdentity(Matrix4f m, float delta) { in checkIdentity() argument
34 assertEquals(1.0f, m.getArray()[i*4 + j], delta); in checkIdentity()
36 assertEquals(0.0f, m.getArray()[i*4 + j], delta); in checkIdentity()
55 void checkData(Matrix4f m, float[] data, float delta) { in checkData() argument
57 assertEquals(data[i], m.getArray()[i], delta); in checkData()
222 checkIdentity(m, delta); in testInverse()
231 checkIdentity(m, delta); in testInverse()
DMatrix2fTest.java22 final float delta = 0.00001f; field in Matrix2fTest
28 void checkIdentity(Matrix2f m, float delta) { in checkIdentity() argument
32 assertEquals(1.0f, m.getArray()[i*2 + j], delta); in checkIdentity()
34 assertEquals(0.0f, m.getArray()[i*2 + j], delta); in checkIdentity()
53 void checkData(Matrix2f m, float[] data, float delta) { in checkData() argument
55 assertEquals(data[i], m.getArray()[i], delta); in checkData()
DMatrix3fTest.java22 final float delta = 0.00001f; field in Matrix3fTest
29 void checkIdentity(Matrix3f m, float delta) { in checkIdentity() argument
33 assertEquals(1.0f, m.getArray()[i*3 + j], delta); in checkIdentity()
35 assertEquals(0.0f, m.getArray()[i*3 + j], delta); in checkIdentity()
54 void checkData(Matrix3f m, float[] data, float delta) { in checkData() argument
56 assertEquals(data[i], m.getArray()[i], delta); in checkData()
DTarget.java435 double delta = ulp * ulpFactor; in ExpandMin() local
436 double newValue = mMinValue + delta; in ExpandMin()
476 double delta = ulp * ulpFactor; in ExpandMax() local
477 double newValue = mMaxValue + delta; in ExpandMax()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationVerifier.java86 long delta = timestamp - mLastActiveTimestamp; in onLocationChanged() local
90 mCb.log("(ignored) active " + mProvider + " update (" + delta + "ms)"); in onLocationChanged()
99 mActiveDeltas.add(delta); in onLocationChanged()
100 mCb.log("active " + mProvider + " update (" + delta + "ms)"); in onLocationChanged()
173 long delta = timestamp - mLastPassiveTimestamp; in onLocationChanged() local
177 mCb.log("(ignored) passive " + mProvider + " update (" + delta + "ms)"); in onLocationChanged()
186 mPassiveDeltas.add(delta); in onLocationChanged()
187 mCb.log("passive " + mProvider + " update (" + delta + "ms)"); in onLocationChanged()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp106 auto delta = cb2->frameTime - cb1->frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local
107 ASSERT(delta == delta.zero() || delta > delta.zero() && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise() local
54 delta = -delta; in addByteNoise()
56 int newValue = (originalValue + delta); in addByteNoise()
93 int delta = (expectedValue - actualValue); in testWithTolerance() local
95 if ((delta < -1) || (delta > 1)) { in testWithTolerance()
99 if (delta != 0) { in testWithTolerance()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlVboPerfTest.java70 float delta = minMaxVbo[1] - (1f - FPS_COMPARISON_MARGIN) in testVboWithVaryingIndexBufferNumbers() local
72 assertTrue("VBO performance worse than non-VBO " + msgVbo + msgNonVbo, delta > 0f); in testVboWithVaryingIndexBufferNumbers()
130 float delta = fpsVbo - (1f - FPS_COMPARISON_MARGIN) * mFps; in doRunVboVsNonVboPerfTest() local
134 assertTrue(testMsg.toString(), delta > 0f); in doRunVboVsNonVboPerfTest()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response_fast.rsh54 const float delta = scaled_value - pos;
57 return valPos + delta * (valPosPlus - valPos);
63 const float delta = scaled_value - pos;
66 return valPos + delta * (valPosPlus - valPos);
Dcamera_response.rsh96 const float delta = scaled_value - pos;
97 return lut[pos] + delta * (lut[pos + 1] - lut[pos]);
103 const float delta = scaled_value - pos;
106 return valPos + delta * (valPosPlus - valPos);
112 const float delta = scaled_value - pos;
115 return valPos + delta * (valPosPlus - valPos);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityScreenOffTestActivity.java462 … final long delta = SystemClock.elapsedRealtime() - localState.mPowerDisconnectTime;
463 if (delta < MIN_POWER_DISCONNECT_MS) {
464 nextSleepDurationMs = (int) (MIN_POWER_DISCONNECT_MS - delta);
475 final long delta = SystemClock.elapsedRealtime() - localState.mScreenOffTime;
476 if (delta < MIN_SCREEN_OFF_MS) {
477 nextSleepDurationMs = (int) (MIN_SCREEN_OFF_MS - delta);
/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java185 double delta = (double) deltaNsec / expectedNsec; in runThroughputTest() local
187 if (delta > MAX_DELTA) { in runThroughputTest()
190 " actual=" + actualNsec + " p=" + delta); in runThroughputTest()
194 " actual=" + actualNsec + " p=" + delta); in runThroughputTest()
DDecodeEditEncodeTest.java794 int delta = Math.abs(actual - expected); in isColorClose() local
795 if (delta > mLargestColorDelta) { in isColorClose()
796 mLargestColorDelta = delta; in isColorClose()
798 return (delta <= MAX_DELTA); in isColorClose()
DAudioRecordTest.java1166 final long delta = System.currentTimeMillis() - mStopTime; in onMarkerReached() local
1167 Log.d(TAG, "onMarkerReached called " + delta + " ms after stop"); in onMarkerReached()
1178 final long delta = System.currentTimeMillis() - mStopTime; in onPeriodicNotification() local
1179 Log.d(TAG, "onPeriodicNotification called " + delta + " ms after stop"); in onPeriodicNotification()
1214 long delta = System.currentTimeMillis() - mStartTime; in getPosition() local
1215 return (int)(delta * mSampleRate / 1000); in getPosition()
DEncodeDecodeTest.java1331 int delta = Math.abs(actual - expected); in isColorClose() local
1332 if (delta > mLargestColorDelta) { in isColorClose()
1333 mLargestColorDelta = delta; in isColorClose()
1335 return (delta <= MAX_DELTA); in isColorClose()
DAudioTrackLatencyTest.java248 int delta = position2 - position1; // safe from wrapping in testPlayPauseSmallBuffer() local
250 + ", p2 = " + position2, delta > 0); in testPlayPauseSmallBuffer()
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java123 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
124 …if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not wi… in assertEquals()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DStandardDeviationVerification.java204 float delta = event.values[i] - mMeans[i]; in addSensorEventInternal() local
205 mMeans[i] += delta / mCount; in addSensorEventInternal()
206 mM2s[i] += delta * (event.values[i] - mMeans[i]); in addSensorEventInternal()
/cts/tests/app/src/android/app/cts/
DAlarmManagerTest.java217 final long delta = Math.abs(mMockAlarmReceiver2.rtcTime - mMockAlarmReceiver.rtcTime); in testExactAlarmBatching() local
218 Log.i("TEST", "[" + i + "] delta = " + delta); in testExactAlarmBatching()
219 if (delta < FAIL_DELTA) { in testExactAlarmBatching()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java129 int delta = replacementLength - replacedLength; in checkSpanPositions() local
146 " delta=" + delta); in checkSpanPositions()
191 assertEquals(originalStart + delta, start); in checkSpanPositions()
225 assertEquals(originalEnd + delta, end); in checkSpanPositions()
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java223 public int delta; field in TimeTest.DateTest
233 int delta, int year2, int month2, int day2, int hour2, int minute2, in DateTest() argument
241 this.delta = delta; in DateTest()
251 int delta, int year2, int month2, int day2, int hour2, int minute2) { in DateTest() argument
258 this.delta = delta; in DateTest()
360 local.monthDay += test.delta; in testNormalize1()
372 local.monthDay += test.delta; in testNormalize1()
391 local.minute += test.delta; in testNormalize1()
406 local.minute += test.delta; in testNormalize1()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTest.java384 long delta = Math.abs(duration - expected); in run() local
386 if (expected > 0 && ((float)delta / (float)expected) > 0.1f) { in run()
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java605 int delta = (sensitivityMax - sensitivityMin) / (NUM_STEPS - 1); in testParamSensitivity()
606 sensitivities[i] = sensitivityMin + delta * i; in testParamSensitivity()

12