Home
last modified time | relevance | path

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

12

/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp122 auto delta = cb2->frameTime - cb1->frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback() local
123 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallback64WithoutDelayEventuallyRunsCallback()
172 auto delta = cb2->frameTime - cb1->frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local
173 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
226 auto delta = cb64->frameTime - cb1->frameTime; in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback() local
227 ASSERT(delta == ZERO || delta > ZERO && delta < NOMINAL_VSYNC_PERIOD * 2, in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithoutDelayEventuallyRunsCallback()
/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()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlVboPerfTest.java73 float delta = minMaxVbo[1] - (1f - FPS_COMPARISON_MARGIN) in testVboWithVaryingIndexBufferNumbers() local
75 assertTrue("VBO performance worse than non-VBO " + msgVbo + msgNonVbo, delta > 0f); in testVboWithVaryingIndexBufferNumbers()
138 float delta = fpsVbo - (1f - FPS_COMPARISON_MARGIN) * mFps; in doRunVboVsNonVboPerfTest() local
142 assertTrue(testMsg.toString(), delta > 0f); in doRunVboVsNonVboPerfTest()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
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);
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);
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java260 final float delta = 0.1f; in wallpaperColors_primary() local
261 Assert.assertEquals("red", 1f, primary.red(), delta); in wallpaperColors_primary()
262 Assert.assertEquals("green", 0f, primary.green(), delta); in wallpaperColors_primary()
263 Assert.assertEquals("blue", 0f, primary.blue(), delta); in wallpaperColors_primary()
291 final float delta = 0.1f; in wallpaperColors_secondary() local
292 Assert.assertEquals("red", 0f, secondary.red(), delta); in wallpaperColors_secondary()
293 Assert.assertEquals("green", 0f, secondary.green(), delta); in wallpaperColors_secondary()
294 Assert.assertEquals("blue", 1f, secondary.blue(), delta); in wallpaperColors_secondary()
DAlarmManagerTest.java221 final long delta = Math.abs(mMockAlarmReceiver2.rtcTime - mMockAlarmReceiver.rtcTime); in testExactAlarmBatching() local
222 Log.i("TEST", "[" + i + "] delta = " + delta); in testExactAlarmBatching()
223 if (delta < FAIL_DELTA) { in testExactAlarmBatching()
/cts/apps/CameraITS/tests/scene0/
Dtest_test_patterns.py72 delta = 0.0005
80 tile = its.image.get_image_patch(img, float(i)/num_bars+delta,
81 0.0, 1.0/num_bars-2*delta, 1.0)
/cts/tests/tests/location/src/android/location/cts/
DGnssLocationUpdateIntervalTest.java153 final long delta = fixTimestamp - lastFixTimestamp; in getTimeBetweenFixes() local
157 + delta + " msecs"); in getTimeBetweenFixes()
161 deltas.add(delta); in getTimeBetweenFixes()
/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/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/common/device-side/util/src/com/android/compatibility/common/util/
DOneTimeDeviceConfigListener.java81 final long delta = SystemClock.elapsedRealtime() - mStarted; in assertCalled() local
82 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DOneTimeDeviceConfigListener.java81 final long delta = SystemClock.elapsedRealtime() - mStarted; in assertCalled() local
82 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/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/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/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/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java347 private void assertEqualsWithinDelta(String msg, long expected, long actual, long delta) { in assertEqualsWithinDelta() argument
348 if (expected - actual > delta || actual - expected > delta) { in assertEqualsWithinDelta()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/
Dlocal_poc.h175 uint64_t delta; member
185 uint64_t delta; member

12