/cts/tests/tests/media/src/android/media/cts/ |
AudioSystemTest.java | 49 final float DELTA = 0.f; // float values must be exact 62 b, AudioSystem.getMasterBalance(), DELTA); 68 originalBalance, AudioSystem.getMasterBalance(), DELTA); 78 originalBalance, AudioSystem.getMasterBalance(), DELTA);
|
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);
|
/cts/apps/CameraITS/tests/scene0/ |
test_tonemap_curve.py | 30 DELTA = 0.0005 # crop on edge of color bars 50 img_raw, float(i)/n_bars+DELTA, 0.0, 1.0/n_bars-2*DELTA, 1.0) 75 img_raw, float(i)/n_bars+DELTA, 0.0, 1.0/n_bars-2*DELTA, 1.0) 77 img_yuv, float(i)/n_bars+DELTA, 0.0, 1.0/n_bars-2*DELTA, 1.0)
|
/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...] |
/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 265 def _modify_section(self, section, delta, body_or_sig=False, 269 If corrupt_all is set, the passed in delta is added to all bytes in the 270 section. Otherwise, the delta is added to the value located at 2% offset 274 delta value would restore the section contents. 294 blob_list = [('%c' % ((ord(x) + delta) % 0x100)) for x in blob] 298 ((ord(blob[modified_index]) + delta) % 0x100)) 307 return self._modify_section(section, self.DELTA, body_or_sig=False, 313 return self._modify_section(section, self.DELTA, body_or_sig=True, 319 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 | 49 private static float DELTA = 0.001f; 166 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA); 167 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
|
GridLayoutAnimationControllerTest.java | 53 private static final float DELTA = 0.1f; 149 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 150 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 156 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 157 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 158 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 164 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 166 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 172 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 173 assertEquals(1.0f, transformation2.getAlpha(), DELTA); [all...] |
LayoutAnimationControllerTest.java | 55 private static final float DELTA = 0.1f; 109 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 110 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 116 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 118 assertEquals(0.0f, transformation3.getAlpha(), DELTA); 124 assertEquals(1.0f, transformation1.getAlpha(), DELTA); 125 assertEquals(1.0f, transformation2.getAlpha(), DELTA); 149 assertEquals(0.0f, transformation1.getAlpha(), DELTA); 150 assertEquals(0.0f, transformation2.getAlpha(), DELTA); 157 assertEquals(0.0f, transformation1.getAlpha(), DELTA); [all...] |
AnimationSetTest.java | 55 private static final float DELTA = 0.001f; 346 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); 352 assertEquals(expectedValues[i], actualValues[i], DELTA);
|
/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 | 67 private final static float DELTA = 0.01f; 146 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); 148 assertEquals(alpha, t.getAlpha(), 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 | 52 private static final double DELTA = .01f; 85 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); 86 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); 89 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); 92 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...] |
MotionEventTest.java | 72 private static final float DELTA = 0.01f; 107 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); 108 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); 109 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); 110 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); 114 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); 115 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); 116 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); 117 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); 127 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); [all...] |
/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",
|
/external/f2fs-tools/lib/ |
libf2fs.c | 388 #define DELTA 0x9E3779B9 398 sum += DELTA;
|
/cts/tests/tests/location/src/android/location/cts/ |
LocationTest.java | 37 private static final float DELTA = 0.1f; 91 assertEquals(-128.66, location.bearingTo(dest), DELTA); 103 assertEquals(0.0f, bearing, DELTA); 106 assertEquals(90.0f, bearing, DELTA); 111 assertEquals(0.0f, bearing, DELTA); 224 assertEquals(0.0, result[0], DELTA); 225 assertEquals(0.0, result[1], DELTA); 226 assertEquals(0.0, result[2], DELTA); 230 assertEquals(125.4538, result[1], DELTA); 231 assertEquals(93.3971, result[2], DELTA); [all...] |
/external/icu/icu4c/source/common/ |
ucnvisci.cpp | 55 #define TELUGU_DELTA DELTA * TELUGU 79 DELTA=0x80 124 uint16_t defDeltaToUnicode; /* delta for switching to default state when DEF is encountered */ 125 uint16_t currentDeltaFromUnicode; /* current delta in Indic block */ 126 uint16_t currentDeltaToUnicode; /* current delta in Indic block */ 131 UBool resetToDefaultToUnicode; /* boolean for reseting to default delta and mask when a newline is encountered*/ 211 = converterData->defDeltaToUnicode = (uint16_t)(lookupInitialData[pArgs->options & UCNV_OPTIONS_VERSION_MASK].uniLang * DELTA); [all...] |
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
CharsetISCII.java | 47 private static final short TELUGU_DELTA = (UniLang.DELTA * UniLang.TELUGU); 75 static final short DELTA = 0x80; 117 short defDeltaToUnicode; /* delta for switching to default state when DEF is encountered */ 118 short currentDeltaFromUnicode; /* current delta in Indic block */ 119 short currentDeltaToUnicode; /* current delta in Indic block */ 124 boolean resetToDefaultToUnicode; /* boolean for reseting to default delta and mask when a newline is encountered */ 136 this.defDeltaToUnicode = (short)(lookupInitialData[option & UCNV_OPTIONS_VERSION_MASK].uniLang * UniLang.DELTA); /* defDeltaToUnicode */ 137 this.currentDeltaFromUnicode = (short)(lookupInitialData[option & UCNV_OPTIONS_VERSION_MASK].uniLang * UniLang.DELTA); /* currentDeltaFromUnicode */ 138 this.currentDeltaToUnicode = (short)(lookupInitialData[option & UCNV_OPTIONS_VERSION_MASK].uniLang * UniLang.DELTA); /* currentDeltaToUnicode */ [all...] |