Home
last modified time | relevance | path

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

12

/hardware/google/easel/amber/camera/libhdrplusclient/
DHdrPlusClientUtils.cpp181 diff += abs(static_cast<int32_t>(c) - r); in comparePpm()
183 diff += abs(static_cast<int32_t>(c) - g); in comparePpm()
185 diff += abs(static_cast<int32_t>(c) - b); in comparePpm()
/hardware/qcom/audio/hal/audio_extn/
Dcirrus_playback.c714 zL / r_scale_factor, abs(zL) % r_scale_factor); in audio_extn_cirrus_failure_detect_thread()
721 zR / r_scale_factor, abs(zR) % r_scale_factor); in audio_extn_cirrus_failure_detect_thread()
762 rdL = abs(zL - rL); in audio_extn_cirrus_failure_detect_thread()
763 rdR = abs(zR - rR); in audio_extn_cirrus_failure_detect_thread()
768 abs(rL % r_scale_factor)); in audio_extn_cirrus_failure_detect_thread()
773 abs(rR % r_scale_factor)); in audio_extn_cirrus_failure_detect_thread()
778 abs(tL % t_scale_factor)); in audio_extn_cirrus_failure_detect_thread()
783 abs(tR % t_scale_factor)); in audio_extn_cirrus_failure_detect_thread()
/hardware/google/av/media/codecs/g711/
DC2SoftG711Dec.cpp273 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw() local
275 *out++ = (x < 0x80) ? -abs : abs; in DecodeMLaw()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensor.cpp189 range = std::max(std::max(std::abs((digest.maxRaw + digest.b) * digest.a), in HidRawSensor()
190 std::abs((digest.minRaw + digest.b) * digest.a)), in HidRawSensor()
348 std::abs((reportX.maxRaw + reportX.b) * reportX.a), in processTriAxisUsage()
349 std::abs((reportX.minRaw + reportX.b) * reportX.a)); in processTriAxisUsage()
/hardware/interfaces/thermal/1.0/vts/functional/
DVtsHalThermalV1_0TargetTest.cpp129 std::abs(temperature.currentValue) < MAX_DEVICE_TEMPERATURE || in checkDeviceTemperature()
/hardware/interfaces/sensors/common/vts/utils/
DSensorsHidlTestBase.cpp511 EXPECT_LT(std::abs(minDelayAverageInterval - minSamplingPeriodInNs), in testSamplingRateHotSwitchOperation()
515 EXPECT_LT(std::abs(maxDelayAverageInterval - maxSamplingPeriodInNs), in testSamplingRateHotSwitchOperation()
/hardware/interfaces/health/2.0/vts/functional/
DVtsHalHealthV2_0TargetTest.cpp412 auto difference = abs(dividend - divisor); in IsValueSimilar()
413 if (difference > factor * abs(divisor)) { in IsValueSimilar()
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DStream.h171 halInfo.buffer_size_frames = abs(halInfo.buffer_size_frames); in createMmapBuffer()
/hardware/qcom/camera/msm8998/QCamera2/HAL/test/
Dqcamera_test.cpp1986 delta = abs((currentVideoSize.width *currentVideoSize.height)- in getPreviewSizeFromVideoSizes()
1990 if(abs(currentVideoSize.width * currentVideoSize.height) - in getPreviewSizeFromVideoSizes()
1994 delta = abs((currentVideoSize.width * in getPreviewSizeFromVideoSizes()
2004 delta = abs( in getPreviewSizeFromVideoSizes()
2009 if(abs( in getPreviewSizeFromVideoSizes()
2014 delta = abs( in getPreviewSizeFromVideoSizes()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp259 if (std::abs(sampleRate) > std::numeric_limits<float>::epsilon()) { in checkSampleRate()
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dcommon.cpp231 return abs((int)rssi_wo_noise_floor - 96); in get_rssi()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraUtils.cpp146 return (std::abs(ar1 - ar2) < kAspectRatioMatchThres); in isAspectRatioClose()
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_hdmi.cpp856 if (abs(pre_refresh_rate_diff) > abs(cur_refresh_rate_diff)) { in GetDynamicFrameRateMode()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/
Dhw_hdmi.cpp868 if (abs(pre_refresh_rate_diff) > abs(cur_refresh_rate_diff)) { in GetDynamicFrameRateMode()
/hardware/qcom/sm8150/display/sdm/libs/core/fb/
Dhw_hdmi.cpp884 if (abs(pre_refresh_rate_diff) > abs(cur_refresh_rate_diff)) { in GetDynamicFrameRateMode()
/hardware/qcom/display/msm8909/sdm/libs/core/fb/
Dhw_hdmi.cpp885 if (abs(pre_refresh_rate_diff) > abs(cur_refresh_rate_diff)) { in GetDynamicFrameRateMode()
/hardware/qcom/sdm845/display/sdm/libs/core/fb/
Dhw_hdmi.cpp877 if (abs(pre_refresh_rate_diff) > abs(cur_refresh_rate_diff)) { in GetDynamicFrameRateMode()
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp568 int dst_w = abs(dst.right - dst.left); in calculate_crop_rects()
569 int dst_h = abs(dst.bottom - dst.top); in calculate_crop_rects()
/hardware/google/av/media/eco/
DECOSession.cpp330 abs(currAverageQp - mLastReportedQp) > mListenerQpCondition.mQpChangeThreshold; in processFrameStats()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_session.cpp866 strerror(abs(err)), hwc_session->hotplug_pending_event_ == kHotPlugEvent ? "deferred" : in RegisterCallback()
2520 strerror(abs(err)), (hotplug_pending_event_ == kHotPlugEvent) ? in UEventHandler()
2752 DLOGE("All displays could not be connected. Error %d '%s'.", status, strerror(abs(status))); in HandlePluggableDisplays()
2848 strerror(abs(err))); in HandleConnectedDisplays()
3221 strerror(abs(err))); in HandleHotplugPending()
/hardware/google/av/media/sfplugin/
DCodec2Buffer.cpp281 planeSize += std::abs(plane.rowInc) * align(mHeight, 64) in GraphicView2MediaImageConverter()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp491 if(abs((int)(stdRefreshRates[i] - refreshRate)) < 2) { in roundOff()
1263 int dst_w = abs(dst.right - dst.left); in calculate_crop_rects()
1264 int dst_h = abs(dst.bottom - dst.top); in calculate_crop_rects()
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp1058 int dst_w = abs(dst.right - dst.left); in calculate_crop_rects()
1059 int dst_h = abs(dst.bottom - dst.top); in calculate_crop_rects()
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp1045 int dst_w = abs(dst.right - dst.left); in calculate_crop_rects()
1046 int dst_h = abs(dst.bottom - dst.top); in calculate_crop_rects()
/hardware/qcom/sm8150/gps/gnss/
DGnssAdapter.cpp4559 (abs(msInWeek - (int)reports.mTimeAndClock.back().mGpsTowMs) < 2000)) { in getAgcInformation()
4614 (abs(msInWeek - (int)reports.mTimeAndClock.back().mGpsTowMs) < 2000)) { in getDataInformation()

12