/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/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/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextLanguageTest.java | 40 private static final float EPSILON = 0.000001f; field in TextLanguageTest 64 assertEquals(0.8f, result.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testParcel() 66 assertEquals(0.2f, result.getConfidenceScore(ULocale.GERMAN), EPSILON); in testParcel()
|
D | TextClassificationTest.java | 60 private static final float EPSILON = 1e-7f; field in TextClassificationTest 132 assertEquals(0.7f, result.getConfidenceScore(TextClassifier.TYPE_PHONE), EPSILON); in testParcel() 133 assertEquals(0.3f, result.getConfidenceScore(TextClassifier.TYPE_ADDRESS), EPSILON); in testParcel() 265 EPSILON); in testToBuilder() local 269 EPSILON); in testToBuilder() local
|
D | TextClassificationConstantsTest.java | 32 private static final float EPSILON = 0.0001f; field in TextClassificationConstantsTest
|
/frameworks/base/core/java/com/android/internal/ |
D | BrightnessSynchronizer.java | 52 public static final float EPSILON = 0.001f; field in BrightnessSynchronizer 234 } else if (Math.abs(a - b) < EPSILON) { in floatEquals()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 58 static const float EPSILON = 0.001f; variable 2329 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 2330 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 2331 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 2332 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange() 2341 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords() 2342 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords() 2347 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords() 2348 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords() 4282 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/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/wm/ |
D | TaskLaunchParamsModifier.java | 72 private static final int EPSILON = 2; field in TaskLaunchParamsModifier 931 return (Math.abs(right.width() - left.width()) < EPSILON) 932 && (Math.abs(right.height() - left.height()) < EPSILON);
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.cpp | 335 constexpr auto EPSILON = 0.001f; in getBestRefreshRate() local 344 if (score > max * (1 + EPSILON)) { in getBestRefreshRate()
|
/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/base/libs/hwui/ |
D | Matrix.cpp | 34 static const float EPSILON = 0.0000001f; variable 70 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/tools/aapt2/integration-tests/CommandTests/ |
D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |
/frameworks/base/api/ |
D | current.txt | 51497 field @HalfFloat public static final short EPSILON = 5120; // 0x1400
|