Searched refs:abs (Results 1 – 14 of 14) sorted by relevance
/system/teeui/libteeui/src/ |
D | utils.cpp | 42 if (dist.abs() < kEpsilon) { in pixelLineIntersect() 45 } else if (dist.abs() >= kHalfSqrt2) { in pixelLineIntersect() 51 dist_vec = Point<pxs>(dist_vec.x().abs(), dist_vec.y().abs()); in pixelLineIntersect() 111 dist = (line * (px_origin - a)).abs() - width + .5_px; in drawLinePoint() 131 if (a.x().abs() < kEpsilon) { in intersect() 132 if (c.x().abs() < kEpsilon || a.y() < kEpsilon) { in intersect() 140 if (h.abs() < kEpsilon) { in intersect()
|
/system/core/toolbox/ |
D | getevent.c | 194 struct input_absinfo abs; in print_possible_events() local 195 if(ioctl(fd, EVIOCGABS(j * 8 + k), &abs) == 0) { in print_possible_events() 197 abs.value, abs.minimum, abs.maximum, abs.fuzz, abs.flat, in print_possible_events() 198 abs.resolution); in print_possible_events()
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
D | Utils.java | 75 offsetMillis = Math.abs(offsetMillis); in toUtcOffsetString()
|
/system/core/bootstat/ |
D | boot_event_record_store_test.cpp | 67 return (abs(a - b) <= FUZZ_SECONDS); in FuzzUptimeEquals()
|
D | bootstat.cpp | 1395 static_cast<int32_t>(std::abs(current_time_utc))); in RecordFactoryReset() 1400 std::abs(current_time_utc)); in RecordFactoryReset()
|
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/ |
D | ChreCrossValidatorSensor.java | 529 return Math.abs(apDp.timestamp - chreDp.timestamp) < MAX_TIMESTAMP_DIFF_NS; in datapointTimestampsAreSimilar() 556 float diff = Math.abs(apDp.values[i] - chreDp.values[i]); in datapointValuesAreSimilar()
|
/system/core/libunwindstack/ |
D | ArmExidx.cpp | 844 log(log_indent_, "cfa = r%zu %c %d", cfa_reg, sign, abs(log_cfa_offset_)); in LogByReg() 857 log(log_indent_, "r%zu = [cfa %c %d]", entry.first, sign, abs(entry.second)); in LogByReg()
|
/system/media/audio_utils/tests/ |
D | variadic_tests.cpp | 28 EXPECT_NEAR((e), (v), abs((e) * std::numeric_limits<decltype(e)>::epsilon() * 8))
|
D | primitives_tests.cpp | 64 int diff = abs(uval - uval2); in testClamp8() 84 int diff = abs(ival - ival2); in testClamp16() 104 int diff = abs(ival - ival2); in testClamp24()
|
D | statistics_tests.cpp | 109 EXPECT_NEAR((e), (v), abs((e) * std::numeric_limits<decltype(e)>::epsilon() * 8))
|
/system/teeui/libteeui/include/teeui/ |
D | utils.h | 190 inline long double abs(long double v) { 193 inline double abs(double v) { 367 Coordinate abs() const { return bits::abs(value_); }
|
/system/core/healthd/ |
D | BatteryMonitor.cpp | 358 abs(props.batteryTemperature / 10), abs(props.batteryTemperature % 10), in logValues()
|
/system/core/adb/fdevent/ |
D | fdevent_test.cpp | 315 diff.push_back(std::abs(time_deltas[i] - expected[i])); in TEST_F()
|
/system/netd/server/ |
D | NetdNativeService.cpp | 319 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthAddNaughtyApp() 326 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthRemoveNaughtyApp() 333 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthAddNiceApp() 340 std::vector<std::string> appStrUids = {std::to_string(abs(uid))}; in bandwidthRemoveNiceApp()
|