Home
last modified time | relevance | path

Searched refs:minDiff (Results 1 – 7 of 7) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java381 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSize() local
401 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
403 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
411 minDiff = Double.MAX_VALUE; in getOptimalPreviewSize()
413 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
415 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java540 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex() local
558 if (heightDiff < minDiff) { in getOptimalPreviewSizeIndex()
560 minDiff = heightDiff; in getOptimalPreviewSizeIndex()
561 } else if (heightDiff == minDiff) { in getOptimalPreviewSizeIndex()
566 minDiff = heightDiff; in getOptimalPreviewSizeIndex()
574 minDiff = Double.MAX_VALUE; in getOptimalPreviewSizeIndex()
577 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { in getOptimalPreviewSizeIndex()
579 minDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java845 int minDiff = Integer.MAX_VALUE; in computeExpectedPeriod() local
848 if (diff < minDiff) { in computeExpectedPeriod()
849 minDiff = diff; in computeExpectedPeriod()
860 int minDiff = Integer.MAX_VALUE; in computeExpectedPeriod() local
864 if (diff < minDiff) { in computeExpectedPeriod()
865 minDiff = diff; in computeExpectedPeriod()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java170 double minDiff = singleFrameMs / 2000.0; // Half frame time in seconds in computeParams() local
173 if ((duration - edgeTime) < minDiff) { in computeParams()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRecentsOrientedState.java597 float minDiff = Float.MAX_VALUE; in getLauncherDeviceProfile() local
600 if (diff < minDiff) { in getLauncherDeviceProfile()
601 minDiff = diff; in getLauncherDeviceProfile()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java511 int minDiff = Integer.MAX_VALUE; in findBestRegularBucketIndex() local
514 if (diff < minDiff) { in findBestRegularBucketIndex()
515 minDiff = diff; in findBestRegularBucketIndex()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java531 float minDiff = Float.MAX_VALUE; in getDeviceProfile() local
536 if (diff < minDiff) { in getDeviceProfile()
537 minDiff = diff; in getDeviceProfile()