Home
last modified time | relevance | path

Searched refs:bucketWidth (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/net/
DRssiCurve.java65 public final int bucketWidth; field in RssiCurve
86 public RssiCurve(int start, int bucketWidth, byte[] rssiBuckets) { in RssiCurve() argument
87 this(start, bucketWidth, rssiBuckets, DEFAULT_ACTIVE_NETWORK_RSSI_BOOST); in RssiCurve()
98 public RssiCurve(int start, int bucketWidth, byte[] rssiBuckets, int activeNetworkRssiBoost) { in RssiCurve() argument
100 this.bucketWidth = bucketWidth; in RssiCurve()
110 bucketWidth = in.readInt(); in RssiCurve()
125 out.writeInt(bucketWidth); in writeToParcel()
157 int index = (rssi - start) / bucketWidth; in lookupScore()
184 bucketWidth == rssiCurve.bucketWidth && in equals()
191 … return Objects.hash(start, bucketWidth, activeNetworkRssiBoost) ^ Arrays.hashCode(rssiBuckets); in hashCode()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DScoredNetworkTest.java190 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWhenAllFieldsSet()
216 assertEquals(CURVE.bucketWidth, newNetwork.rssiCurve.bucketWidth); in shouldWriteAndReadFromParcelWithoutBundle()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp440 static int32_t clampToNearestBucket(Fps fps, size_t bucketWidth) { in clampToNearestBucket() argument
441 return std::round(fps.getValue() / bucketWidth) * bucketWidth; in clampToNearestBucket()
/frameworks/base/core/api/
Dsystem-current.txt9719 field @Deprecated public final int bucketWidth;