Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkStatsUtilsTest.kt66 NetworkStatsUtils.constrain(5, 6, 3) // low > high in testConstrain()
68 assertEquals(3, NetworkStatsUtils.constrain(5, 1, 3)) in testConstrain()
69 assertEquals(3, NetworkStatsUtils.constrain(3, 1, 3)) in testConstrain()
70 assertEquals(2, NetworkStatsUtils.constrain(2, 1, 3)) in testConstrain()
71 assertEquals(1, NetworkStatsUtils.constrain(1, 1, 3)) in testConstrain()
72 assertEquals(1, NetworkStatsUtils.constrain(0, 1, 3)) in testConstrain()
74 assertEquals(11, NetworkStatsUtils.constrain(15, 11, 11)) in testConstrain()
75 assertEquals(11, NetworkStatsUtils.constrain(11, 11, 11)) in testConstrain()
76 assertEquals(11, NetworkStatsUtils.constrain(1, 11, 11)) in testConstrain()
/packages/providers/MediaProvider/src/com/android/providers/media/playlist/
DPlaylist.java84 index = constrain(index, 0, size); in add()
97 from = constrain(from, 0, size - 1); in move()
98 to = constrain(to, 0, size - 1); in move()
111 index = constrain(index, 0, size - 1); in remove()
139 private static int constrain(int amount, int low, int high) { in constrain() method in Playlist
/packages/apps/TV/src/com/android/tv/menu/
DPlaybackProgressBar.java101 start = constrain(start, 0, mMax); in setProgressRange()
102 end = constrain(end, start, mMax); in setProgressRange()
103 mProgress = constrain(mProgress, start, end); in setProgressRange()
113 progress = constrain(progress, mProgressStart, mProgressEnd); in setProgress()
120 private long constrain(long value, long min, long max) { in constrain() method in PlaybackProgressBar
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkStatsUtils.java90 public static int constrain(int amount, int low, int high) { in constrain() method in NetworkStatsUtils
98 public static long constrain(long amount, long low, long high) { in constrain() method in NetworkStatsUtils
/packages/services/Car/service/src/com/android/car/util/
DBrightnessUtils.java204 public static float constrain(float amount, float low, float high) { in constrain() method in BrightnessUtils.MathUtils
233 return constrain(value, 0.0f, 1.0f); in saturate()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java495 final float clampedTargetY = MathUtils.constrain( in onTouchEvent()
504 final float clampedTargetX = MathUtils.constrain( in onTouchEvent()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsHistory.java456 return NetworkStatsUtils.constrain(index, 0, bucketCount - 1); in getIndexBefore()
471 return NetworkStatsUtils.constrain(index, 0, bucketCount - 1); in getIndexAfter()
DNetworkStatsCollection.java271 final int bucketEstimate = (int) NetworkStatsUtils.constrain( in getHistory()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsRecorder.java149 mPersistThresholdBytes = NetworkStatsUtils.constrain( in setPersistThreshold()
DNetworkStatsService.java2032 mPersistThreshold = NetworkStatsUtils.constrain(thresholdBytes,
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java812 retryAfter = MathUtils.constrain(retryAfter, Constants.MIN_RETRY_AFTER, in parseUnavailableHeaders()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz