Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java85 public static int addValueToLogHistogram(long x, SparseIntArray histogram, LogHistParms hp) { in addValueToLogHistogram() argument
86 double logArg = (double) (x - hp.b) / (double) hp.p; in addValueToLogHistogram()
89 bigBucketIndex = (int) (Math.log(logArg) / hp.mLog); in addValueToLogHistogram()
95 } else if (bigBucketIndex >= hp.n) { in addValueToLogHistogram()
96 bigBucketIndex = hp.n - 1; in addValueToLogHistogram()
97 subBucketIndex = hp.s - 1; in addValueToLogHistogram()
99 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
100 if (subBucketIndex >= hp.s) { // probably a rounding error so move to next big bucket in addValueToLogHistogram()
102 if (bigBucketIndex >= hp.n) { in addValueToLogHistogram()
103 bigBucketIndex = hp.n - 1; in addValueToLogHistogram()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mopria/
DMopriaRecommendationPlugin.java25 import com.android.printservice.recommendation.plugin.hp.MDnsUtils;
26 import com.android.printservice.recommendation.plugin.hp.ServiceRecommendationPlugin;
27 import com.android.printservice.recommendation.plugin.hp.VendorInfo;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java188 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
189 MetricsUtils.addValueToLogHistogram(value, h, hp); in bucketValueAndVerify()
193 private void bucketValueAndVerify(String prefix, int value, SparseIntArray h, int[] hp, in bucketValueAndVerify() argument
195 MetricsUtils.addValueToLinearHistogram(value, h, hp); in bucketValueAndVerify()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java334 HandoverParams hp = new HandoverParams(ApnSetting.TYPE_MMS, in testHandoverNoLiveData() local
336 AsyncResult ar = new AsyncResult(null, hp, null); in testHandoverNoLiveData()
343 hp = new HandoverParams(ApnSetting.TYPE_MMS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN, in testHandoverNoLiveData()
345 ar = new AsyncResult(null, hp, null); in testHandoverNoLiveData()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DVendorInfo.java17 package com.android.printservice.recommendation.plugin.hp;
DServiceRecommendationPlugin.java17 package com.android.printservice.recommendation.plugin.hp;
DMDnsUtils.java17 package com.android.printservice.recommendation.plugin.hp;
DServiceResolveQueue.java17 package com.android.printservice.recommendation.plugin.hp;
DHPRecommendationPlugin.java17 package com.android.printservice.recommendation.plugin.hp;
DServiceListener.java17 package com.android.printservice.recommendation.plugin.hp;
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRecommendationServiceImpl.java27 import com.android.printservice.recommendation.plugin.hp.HPRecommendationPlugin;