/external/ltp/testcases/open_posix_testsuite/functional/timers/clocks/ |
twopsetclock.c | 13 * The two processes will attempt to set the clock to TESTTIME+DELTA 14 * and TESTTIME-DELTA. 27 #define DELTA 5 34 int pid, delta; local 45 tschild.tv_sec = TESTTIME + DELTA; 59 tsparent.tv_sec = TESTTIME - DELTA; 68 * Ensure we set clock to TESTTIME-DELTA or TESTTIME+DELTA. 77 delta = (tpget.tv_sec - LONGTIME) - TESTTIME; 79 if ((delta <= ACCEPTABLEDELTA - DELTA) | [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/ |
JobStatusTest.java | 37 private static final double DELTA = 0.00001; 54 assertEquals(1, createJobStatus(0, Long.MAX_VALUE).getFractionRunTime(), DELTA); 56 assertEquals(1, createJobStatus(0, now - 1000).getFractionRunTime(), DELTA); 57 assertEquals(0, createJobStatus(0, now + 1000).getFractionRunTime(), DELTA); 59 assertEquals(1, createJobStatus(now - 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); 60 assertEquals(0, createJobStatus(now + 1000, Long.MAX_VALUE).getFractionRunTime(), DELTA); 62 assertEquals(0, createJobStatus(now, now + 2000).getFractionRunTime(), DELTA); 63 assertEquals(0.25, createJobStatus(now - 500, now + 1500).getFractionRunTime(), DELTA); 64 assertEquals(0.5, createJobStatus(now - 1000, now + 1000).getFractionRunTime(), DELTA); 65 assertEquals(0.75, createJobStatus(now - 1500, now + 500).getFractionRunTime(), DELTA); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
15-1.c | 36 #define DELTA 1 110 if (time(NULL) > currsec + DELTA) {
|
20-1.c | 35 #define DELTA 1 110 if (time(NULL) > ts.tv_sec + DELTA) {
|
/external/autotest/client/cros/faft/utils/ |
kernel_handler.py | 33 DELTA = 1 107 delta, 113 just adds the value of delta to the first byte of the kernel blob. 116 The second type, KERNEL_VERSION_MOD - will use 'delta' as the new 127 data[0] = '%c' % ((ord(data[0]) + delta) % 0x100) 131 new_version = delta 158 """Corrupt a kernel section (add DELTA to the first byte).""" 159 self._modify_kernel(section.upper(), self.DELTA) 163 self._modify_kernel(section.upper(), -self.DELTA)
|
flashrom_handler.py | 94 DELTA = 1 # value to add to a byte to corrupt a section contents 264 def _modify_section(self, section, delta, body_or_sig=False, 268 If corrupt_all is set, the passed in delta is added to all bytes in the 269 section. Otherwise, the delta is added to the value located at 2% offset 273 delta value would restore the section contents. 293 blob_list = [('%c' % ((ord(x) + delta) % 0x100)) for x in blob] 297 ((ord(blob[modified_index]) + delta) % 0x100)) 306 return self._modify_section(section, self.DELTA, body_or_sig=False, 312 return self._modify_section(section, self.DELTA, body_or_sig=True, 318 return self._modify_section(section, -self.DELTA, body_or_sig=False [all...] |
/external/autotest/client/site_tests/power_Thermal/ |
power_Thermal.py | 54 DELTA = 3.0 239 DELTA/2 above the temperature when the test started). This is 242 - the temperature raises DELTA degrees above the original temperature 246 If the temperature does not reach the DELTA and throttling does not 255 # Wait 30 seconds for the temp to raise DELTA degrees or throttling to 259 if new_temp - base_temp >= DELTA: 313 if self.preserved_throttle_limit - self._cpu_temp() < 4 * DELTA: 332 self._set_throttle_limit(self._cpu_temp() + DELTA/2)
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
ScaleAnimationTest.java | 48 private static float DELTA = 0.001f; 165 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA); 166 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
|
GridLayoutAnimationControllerTest.java | 52 private static final float DELTA = 0.1f; 148 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 149 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 155 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 156 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 157 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 163 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 165 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 171 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 172 assertEquals(1.0f, transformation2.getAlpha(), DELTA); [all...] |
LayoutAnimationControllerTest.java | 54 private static final float DELTA = 0.1f; 108 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 109 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 115 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 117 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 123 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 124 assertEquals(1.0f, transformation2.getAlpha(), DELTA); 148 assertEquals(0.0f, transformation1.getAlpha(), DELTA); 149 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 156 assertEquals(0.0f, transformation1.getAlpha(), DELTA); [all...] |
AnimationSetTest.java | 54 private static final float DELTA = 0.001f; 345 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); 351 assertEquals(expectedValues[i], actualValues[i], DELTA);
|
/external/e2fsprogs/lib/ext2fs/ |
dirhash.c | 32 #define DELTA 0x9E3779B9 42 sum += DELTA;
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AdaptiveIconMaskTest.java | 50 private static final double DELTA = .01f; 83 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); 84 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); 87 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); 90 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.right);
|
/cts/tests/tests/view/src/android/view/cts/ |
MotionEventUtils.java | 26 private static final float DELTA = 0.01f; 130 assertEquals("X coordinates should be the same", that.getX(), this.x, DELTA); 132 that.getAxisValue(MotionEvent.AXIS_X), this.x, DELTA); 134 assertEquals("Y coordinates should be the same", that.getY(), this.y, DELTA); 136 that.getAxisValue(MotionEvent.AXIS_Y), this.y, DELTA); 138 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); 140 that.getAxisValue(MotionEvent.AXIS_PRESSURE), this.pressure, DELTA); 142 assertEquals("Size should be the same", that.getSize(), this.size, DELTA); 144 that.getAxisValue(MotionEvent.AXIS_SIZE), this.size, DELTA); 147 that.getTouchMajor(), this.touchMajor,DELTA); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TextViewFadingEdgeTest.java | 57 public static final float DELTA = 0.01f; 152 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); 154 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA);
|
GalleryTest.java | 66 private final static float DELTA = 0.01f; 146 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); 148 assertEquals(alpha, t.getAlpha(), DELTA);
|
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
InternetDomainNameTest.java | 41 * The Greek letter delta, used in unicode testing. 43 private static final String DELTA = "\u0394"; 49 static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62); 71 "a" + DELTA + "b.com", 94 "a" + DELTA + " .com",
|
/external/guava/guava-tests/test/com/google/common/net/ |
InternetDomainNameTest.java | 43 * The Greek letter delta, used in unicode testing. 45 private static final String DELTA = "\u0394"; 51 static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62); 73 "a" + DELTA + "b.com", 96 "a" + DELTA + " .com",
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
ImageCardViewTest.java | 54 private static final float DELTA = 0.0f; 199 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 226 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 253 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 292 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 339 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 389 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 438 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 501 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA);
|
ListRowPresenterTest.java | 45 static final float DELTA = 1f; 324 DELTA); 330 assertEquals(this.mViewZ, viewZ, DELTA); [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
msputils.h | 32 const DWORD DELTA = 8; 34 template <class T,DWORD dwInitial = INITIAL,DWORD dwDelta = DELTA> class CMSPArray { 45 int nNewAllocSize = (m_nAllocSize==0) ? dwInitial : (m_nSize + DELTA);
|
/cts/tests/tests/media/src/android/media/cts/ |
PlaybackStateTest.java | 42 private static final float DELTA = 1e-7f; 62 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); 93 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); 110 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); 200 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA);
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/ |
PlaybackStateCompatTest.java | 49 private static final float DELTA = 1e-7f; 73 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); 107 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); 132 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); 227 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA);
|
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/ |
PlaybackStateCompatTest.java | 49 private static final float DELTA = 1e-7f; 73 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); 107 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); 132 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); 227 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA);
|
/external/f2fs-tools/lib/ |
libf2fs.c | 387 #define DELTA 0x9E3779B9 397 sum += DELTA;
|