Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 14 of 14) sorted by relevance

/system/teeui/libteeui/src/
Dutils.cpp42 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/
Dgetevent.c194 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/
DUtils.java75 offsetMillis = Math.abs(offsetMillis); in toUtcOffsetString()
/system/core/bootstat/
Dboot_event_record_store_test.cpp67 return (abs(a - b) <= FUZZ_SECONDS); in FuzzUptimeEquals()
Dbootstat.cpp1395 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/
DChreCrossValidatorSensor.java529 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/
DArmExidx.cpp844 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/
Dvariadic_tests.cpp28 EXPECT_NEAR((e), (v), abs((e) * std::numeric_limits<decltype(e)>::epsilon() * 8))
Dprimitives_tests.cpp64 int diff = abs(uval - uval2); in testClamp8()
84 int diff = abs(ival - ival2); in testClamp16()
104 int diff = abs(ival - ival2); in testClamp24()
Dstatistics_tests.cpp109 EXPECT_NEAR((e), (v), abs((e) * std::numeric_limits<decltype(e)>::epsilon() * 8))
/system/teeui/libteeui/include/teeui/
Dutils.h190 inline long double abs(long double v) {
193 inline double abs(double v) {
367 Coordinate abs() const { return bits::abs(value_); }
/system/core/healthd/
DBatteryMonitor.cpp358 abs(props.batteryTemperature / 10), abs(props.batteryTemperature % 10), in logValues()
/system/core/adb/fdevent/
Dfdevent_test.cpp315 diff.push_back(std::abs(time_deltas[i] - expected[i])); in TEST_F()
/system/netd/server/
DNetdNativeService.cpp319 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()