Home
last modified time | relevance | path

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

123

/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/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/graphics/src/android/graphics/cts/
DSweepGradientTest.java126 double delta = (relPos - positions[i1]) / (positions[i2] - positions[i1]); in verifyColors() local
127 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in verifyColors()
128 delta * Color.alpha(colors[i2])); in verifyColors()
129 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in verifyColors()
130 delta * Color.red(colors[i2])); in verifyColors()
131 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in verifyColors()
132 delta * Color.green(colors[i2])); in verifyColors()
133 int blue = (int) ((1d - delta) * Color.blue(colors[i1]) + in verifyColors()
134 delta * Color.blue(colors[i2])); in verifyColors()
DPaintFlagsDrawFilterTest.java56 Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter); in testPaintFlagsDrawFilter()
74 private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter) { in delta() method in PaintFlagsDrawFilterTest
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp208 auto delta = cb2.frameTime - cb1.frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() local
209 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
258 auto delta = cb2.frameTime - cb1.frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local
259 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
312 auto delta = cb64.frameTime - cb1.frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback() local
313 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback()
/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/CameraITS/tests/scene0/
Dtest_test_patterns.py79 delta = 0.0005
88 float(i) / num_bars + delta,
90 1.0 / num_bars - 2 * delta,
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DOneTimeDeviceConfigListener.java79 final long delta = SystemClock.elapsedRealtime() - mStarted; in assertCalled() local
80 Log.v(TAG, TestNameUtils.getCurrentTestName() + "/" + mKey + ": " + delta + "ms"); in assertCalled()
DOneTimeSettingsListener.java85 final long delta = SystemClock.elapsedRealtime() - mStarted; in assertCalled() local
88 Log.v(TAG, TestNameUtils.getCurrentTestName() + "/" + mKey + ": " + delta + "ms"); in assertCalled()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java277 final float delta = 0.1f; in wallpaperColors_primary() local
278 Assert.assertEquals("red", 1f, primary.red(), delta); in wallpaperColors_primary()
279 Assert.assertEquals("green", 0f, primary.green(), delta); in wallpaperColors_primary()
280 Assert.assertEquals("blue", 0f, primary.blue(), delta); in wallpaperColors_primary()
308 final float delta = 0.15f; in wallpaperColors_secondary() local
309 Assert.assertEquals("red", 0f, secondary.red(), delta); in wallpaperColors_secondary()
310 Assert.assertEquals("green", 0f, secondary.green(), delta); in wallpaperColors_secondary()
311 Assert.assertEquals("blue", 1f, secondary.blue(), delta); in wallpaperColors_secondary()
/cts/apps/CtsVerifier/jni/megaaudio/player/
DWaveTableSource.cpp65 float delta = mSrcPhase - (float)srcIndex; in pull() local
68 float value = s0 + ((s1 - s0) * delta); in pull()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java469 … final long delta = SystemClock.elapsedRealtime() - localState.mPowerDisconnectTime;
470 if (delta < MIN_POWER_DISCONNECT_MS) {
471 nextSleepDurationMs = (int) (MIN_POWER_DISCONNECT_MS - delta);
482 final long delta = SystemClock.elapsedRealtime() - localState.mScreenOffTime;
483 if (delta < MIN_SCREEN_OFF_MS) {
484 nextSleepDurationMs = (int) (MIN_SCREEN_OFF_MS - delta);
/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java188 double delta = (double) deltaNsec / expectedNsec; in runThroughputTest() local
190 if (delta > MAX_DELTA) { in runThroughputTest()
193 " actual=" + actualNsec + " p=" + delta); in runThroughputTest()
197 " actual=" + actualNsec + " p=" + delta); in runThroughputTest()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_parcel.cpp329 uint32_t delta; in TEST_F() local
330 EXPECT_OK(AParcel_readUint32(in, &delta)); in TEST_F()
332 size_t postPosition = prePosition + delta; in TEST_F()
360 size_t delta = postPosition - prePosition; in TEST_F() local
362 EXPECT_OK(AParcel_writeUint32(in, static_cast<uint32_t>(delta))); in TEST_F()
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java129 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
130 if (!(Math.abs(expected - actual) <= delta)) in assertEquals()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationUpdateIntervalTest.java253 final long delta = fixTimestamp - lastFixTimestamp; in getTimeBetweenFixes() local
257 + delta + " msecs"); in getTimeBetweenFixes()
261 deltas.add(delta); in getTimeBetweenFixes()
/cts/tests/sensor/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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java328 public static GestureDescription multiFingerMultiTap(PointF basePoint, PointF delta,
338 pointers[i] = add(basePoint, times(i, delta));
370 PointF delta,
383 pointers[i] = add(basePoint, times(i, delta));
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/
Dlocal_poc.h175 uint64_t delta; member
185 uint64_t delta; member
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java353 private void assertEqualsWithinDelta(String msg, long expected, long actual, long delta) { in assertEqualsWithinDelta() argument
354 if (expected - actual > delta || actual - expected > delta) { in assertEqualsWithinDelta()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java92 public static void assertMostlyEquals(long expected, long actual, long delta) { in assertMostlyEquals() argument
93 if (Math.abs(expected - actual) > delta) { in assertMostlyEquals()

123