/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | PowerProfileTest.java | 45 private static final float EPSILON = 0.00001f; field in PowerProfileTest 58 Assert.assertEquals(12.0f, audio.onMa, EPSILON); in testReadGood() 63 Assert.assertEquals(0.02f, bluetooth.idleMa, EPSILON); in testReadGood() 64 Assert.assertEquals(3.0f, bluetooth.rxMa, EPSILON); in testReadGood() 65 Assert.assertEquals(5.0f, bluetooth.txMa, EPSILON); in testReadGood() 69 Assert.assertEquals(941.0f, camera.onMa, EPSILON); in testReadGood() 73 Assert.assertEquals(1.3f, cpu.suspendMa, EPSILON); in testReadGood() 74 Assert.assertEquals(3.9f, cpu.idleMa, EPSILON); in testReadGood() 75 Assert.assertEquals(18.33f, cpu.activeMa, EPSILON); in testReadGood() 79 Assert.assertEquals(2.41f, cpu.clusters[0].onMa, EPSILON); in testReadGood() [all …]
|
D | PowerReportTest.java | 33 private static final double EPSILON = 0.001; field in PowerReportTest 77 Assert.assertEquals(GMAIL_MODEM_MAH, modem.powerMah, EPSILON); in testModemApp() 96 modem.strengthMah, EPSILON); in testModemRemainder() 97 Assert.assertEquals(2443805 * 12 / MS_PER_HR, modem.scanningMah, EPSILON); in testModemRemainder() 98 Assert.assertEquals(4923676 * AVERAGE_MODEM_POWER / MS_PER_HR, modem.activeMah, EPSILON); in testModemRemainder() 100 Assert.assertEquals(REMAINDER_MODEM_MAH, modem.powerMah, EPSILON); in testModemRemainder() 110 Assert.assertEquals(GMAIL_MAH, gmail.getAppPowerMah(), EPSILON); in testAppTotal() 119 Assert.assertEquals(REMAINDER_MAH, remainder.getAppPowerMah(), EPSILON); in testRemainderTotal() 125 Assert.assertEquals(TOTAL_MAH, report.getTotalPowerMah(), EPSILON); in testTotal()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassificationConstantsTest.java | 32 private static final float EPSILON = 0.0001f; field in TextClassificationConstantsTest 97 .that(constants.getLangIdThresholdOverride()).isWithin(EPSILON).of(0.3f); in testLoadFromString() 99 constants.getLangIdContextSettings(), new float[]{10, 1, 0.5f}, EPSILON); in testLoadFromString() 171 .that(constants.getLangIdThresholdOverride()).isWithin(EPSILON).of(2f); in testLoadFromString_differentValues() 173 constants.getLangIdContextSettings(), new float[]{30, 0.5f, 0.3f}, EPSILON); in testLoadFromString_differentValues() 228 .that(constants.getLangIdThresholdOverride()).isWithin(EPSILON).of(-1f); in testLoadFromString_defaultValues() 230 constants.getLangIdContextSettings(), new float[]{20, 1, 0.4f}, EPSILON); in testLoadFromString_defaultValues()
|
D | TextLanguageTest.java | 38 private static final float EPSILON = 0.000001f; field in TextLanguageTest 62 assertEquals(0.8f, result.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testParcel() 64 assertEquals(0.2f, result.getConfidenceScore(ULocale.GERMAN), EPSILON); in testParcel()
|
/frameworks/base/tests/net/java/com/android/server/net/ipmemorystore/ |
D | NetworkAttributesTest.java | 39 private static final float EPSILON = 0.0001f; field in NetworkAttributesTest 53 assertEquals(sum, NetworkAttributes.TOTAL_WEIGHT, EPSILON); in testTotalWeight() 65 assertEquals(1.0f, na.getNetworkGroupSamenessConfidence(na), EPSILON); in testTotalWeight()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | HistoryEvaluator.java | 29 private static final float EPSILON = 1e-5f; field in HistoryEvaluator 101 return x <= EPSILON && x >= -EPSILON; in isZero()
|
/frameworks/layoutlib/bridge/src/android/view/math/ |
D | Math3DHelper.java | 21 private static final float EPSILON = 0.0000001f; field in Math3DHelper 428 if (((x - x1) * (x - x2) > EPSILON) in lineIntersection() 429 || ((x - x3) * (x - x4) > EPSILON) in lineIntersection() 430 || ((y - y1) * (y - y2) > EPSILON) in lineIntersection() 431 || ((y - y3) * (y - y4) > EPSILON)) { in lineIntersection()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 51 static const float EPSILON = 0.001f; variable 1868 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 1869 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 1870 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 1871 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 1880 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords() 1881 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords() 1886 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords() 1887 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords() 3686 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | EdgeEffect.java | 82 private static final float EPSILON = 0.001f; field in EdgeEffect 407 if (t >= 1.f - EPSILON) { in update()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Path_Delegate.java | 62 private static final float EPSILON = 1e-4f; field in Path_Delegate 705 if (Math.abs(dx) < EPSILON && Math.abs(dy) < EPSILON) { in rLineTo()
|
/frameworks/native/libs/ui/ |
D | Transform.cpp | 42 static const float EPSILON = 0.0f; variable 45 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 82 private static final int EPSILON = 2; field in TaskLaunchParamsModifier 870 return (Math.abs(right.width() - left.width()) < EPSILON) 871 && (Math.abs(right.height() - left.height()) < EPSILON);
|
/frameworks/base/core/java/android/util/ |
D | Half.java | 105 public static final @HalfFloat short EPSILON = (short) 0x1400; field in Half
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 79 private static final float EPSILON = 0.01f; field in DisplayModeDirector 270 if (refreshRate < (minRefreshRate - EPSILON) in filterModes() 271 || refreshRate > (maxRefreshRate + EPSILON)) { in filterModes()
|
/frameworks/base/libs/hwui/ |
D | Matrix.cpp | 34 static const float EPSILON = 0.0000001f; variable 70 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.cpp | 34 static constexpr float EPSILON = 0.0000001f; variable 37 return fabs(f) <= EPSILON; in isZero()
|
/frameworks/native/libs/math/tests/ |
D | mat_test.cpp | 374 #define TEST_MATRIX_INVERSE(MATRIX, EPSILON) \ argument 382 EXPECT_NEAR(ident1[row][col], IDENTITY[row][col], EPSILON); \
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 49252 field @HalfFloat public static final short EPSILON = 5120; // 0x1400
|
/frameworks/base/api/ |
D | current.txt | 49396 field @HalfFloat public static final short EPSILON = 5120; // 0x1400
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 81164 Landroid/widget/EdgeEffect;->EPSILON:F
|