/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 | 68 private static final float DELTA = 0.01f; 102 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); 103 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); 104 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); 105 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); 109 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); 110 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); 111 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); 112 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); 122 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); [all...] |
/external/toybox/scripts/ |
bloatcheck | 11 NEXT="$(printf "%s% $((50-${#LASTNAME}))d% 10d %10d" "$LASTNAME" "$OLD" "$NEW" "$DELTA")" 20 DELTA=0 26 printf "name% 46s% 10s% 11s\n" old new delta 34 TOTAL=$(($TOTAL+$DELTA)) 35 [ $DELTA -ne 0 ] && addline 37 DELTA=0 50 DELTA=$(($DELTA+$SIZE)) 53 TOTAL=$(($TOTAL+$DELTA)) 54 [ $DELTA -ne 0 ] && addlin [all...] |
/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...] |
/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...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
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...] |
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);
|
/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);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
ImageCardViewTest.java | 53 private static final float DELTA = 0.0f; 198 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 225 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 252 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 291 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 338 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 388 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 437 assertEquals(mImageCardView.getAlpha(), FINAL_ALPHA_STATE, DELTA); 500 assertEquals(mImageView.getAlpha(), FINAL_ALPHA_STATE, DELTA);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateTimePatternGenerator.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateTimePatternGenerator.java | [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/python/cpython2/Doc/includes/ |
mp_pool.py | 267 DELTA = 0.1 269 results = [pool.apply_async(time.sleep, [DELTA]) for i in range(100)] 285 DELTA = 0.1 288 results = [pool.apply_async(time.sleep, [DELTA]) for i in range(100)] 292 time.sleep(DELTA * 2)
|
/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",
|
/cts/tests/tests/media/src/android/media/cts/ |
PlaybackStateTest.java | 40 private static final float DELTA = 1e-7f; 60 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); 91 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); 108 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); 198 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA);
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/ |
PlaybackStateCompatTest.java | 47 private static final float DELTA = 1e-7f; 71 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); 105 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); 130 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); 225 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA);
|
/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)
|
/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",
|
/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);
|
/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)
|
/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);
|
/prebuilts/go/darwin-x86/doc/progs/ |
go1.go | 144 delta := '?' // delta has type rune. 145 var DELTA rune 146 DELTA = unicode.ToUpper(delta) 147 epsilon := unicode.ToLower(DELTA + 1) 184 delta := wakeup.Sub(now) // A Duration. 185 fmt.Printf("Sleeping for %.3fs\n", delta.Seconds()) 186 time.Sleep(delta)
|
/prebuilts/go/linux-x86/doc/progs/ |
go1.go | 144 delta := '?' // delta has type rune. 145 var DELTA rune 146 DELTA = unicode.ToUpper(delta) 147 epsilon := unicode.ToLower(DELTA + 1) 184 delta := wakeup.Sub(now) // A Duration. 185 fmt.Printf("Sleeping for %.3fs\n", delta.Seconds()) 186 time.Sleep(delta)
|