/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | MeanLargerThanVerificationTest.java | 44 float[] thresholds = {0.0f, 0.0f, 0.0f}; in testVerify() local 46 MeanLargerThanVerification verification = getVerification(expected, thresholds, values); in testVerify() 52 thresholds = new float[] {0.0f, 0.2f, 0.0f}; in testVerify() 54 verification = getVerification(expected, thresholds, values); in testVerify() 60 thresholds = new float[] {0.0f, 0.0f, 0.0f}; in testVerify() 62 verification = getVerification(expected, thresholds, values); in testVerify() 67 thresholds = new float[] {2.5f, 2.0f, 3.5f}; in testVerify() 69 verification = getVerification(expected, thresholds, values); in testVerify() 80 float[] expected, float[] thresholds, float[]... values) { in getVerification() argument 86 new MeanLargerThanVerification(expected, thresholds); in getVerification()
|
D | MeanLargerThanVerification.java | 47 public MeanLargerThanVerification(float[] expected, float[] thresholds) { in MeanLargerThanVerification() argument 49 mThresholds = thresholds; in MeanLargerThanVerification() 83 float[] thresholds = new float[] {threshold, threshold, threshold}; in getDefault() local 84 return new MeanLargerThanVerification(expectedValues, thresholds); in getDefault()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManager_ThermalTest.java | 181 Map<Integer, Float> thresholds = mPowerManager.getThermalHeadroomThresholds(); in testGetThermalHeadroomThresholds() local 183 thresholds.containsKey(PowerManager.THERMAL_STATUS_SEVERE)); in testGetThermalHeadroomThresholds() 184 float severeThreshold = thresholds.get(PowerManager.THERMAL_STATUS_SEVERE); in testGetThermalHeadroomThresholds() 196 if (thresholds.containsKey(status)) { in testGetThermalHeadroomThresholds() 197 assertFalse(Float.isNaN(thresholds.get(status))); in testGetThermalHeadroomThresholds() 198 headroom = thresholds.get(status); in testGetThermalHeadroomThresholds()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SignalThresholdInfoTest.java | 163 final int[] thresholds = new int[] {params[2]}; in testConstructor_validParams() local 170 .setThresholds(thresholds) in testConstructor_validParams() 176 assertThat(thresholds).isEqualTo(sti.getThresholds()); in testConstructor_validParams() 235 final int[] thresholds = new int[] {params[2]}; in testParcel() local 242 .setThresholds(thresholds) in testParcel() 318 int ran, int signalMeasurementType, int[] thresholds, int hysteresisDb) { in buildWithInvalidParameterThrowException() argument 323 .setThresholds(thresholds) in buildWithInvalidParameterThrowException()
|
/cts/tests/tests/libthermalndk/jni/ |
D | NativeThermalTest.cpp | 322 const AThermalHeadroomThreshold *thresholds = nullptr; in testGetThermalHeadroomThresholds() local 324 auto ret = AThermal_getThermalHeadroomThresholds(ctx.mThermalMgr, &thresholds, &size); in testGetThermalHeadroomThresholds() 332 if (thresholds == nullptr || size == 0) { in testGetThermalHeadroomThresholds() 336 float lastHeadroom = thresholds[0].headroom; in testGetThermalHeadroomThresholds() 337 int lastStatus = thresholds[0].thermalStatus; in testGetThermalHeadroomThresholds() 339 auto headroom = thresholds[i].headroom; in testGetThermalHeadroomThresholds() 340 int status = thresholds[i].thermalStatus; in testGetThermalHeadroomThresholds()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | TrustedPresentationCallbackTest.java | 96 TrustedPresentationThresholds thresholds = new TrustedPresentationThresholds( in registerTrustedPresentationCallback() local 99 t.setTrustedPresentationCallback(sc, thresholds, mActivity.mExecutor, in registerTrustedPresentationCallback() 327 TrustedPresentationThresholds thresholds = new TrustedPresentationThresholds( in testTrustedPresentationListener_multipleSetCallbacks() local 332 t.setTrustedPresentationCallback(sc, thresholds, mActivity.mExecutor, in testTrustedPresentationListener_multipleSetCallbacks() 336 t.setTrustedPresentationCallback(sc, thresholds, mActivity.mExecutor, in testTrustedPresentationListener_multipleSetCallbacks() 397 TrustedPresentationThresholds thresholds = new TrustedPresentationThresholds( in testSetTrustedPresentationListenerAfterClearing() local 400 t.setTrustedPresentationCallback(sc, thresholds, mActivity.mExecutor, in testSetTrustedPresentationListenerAfterClearing()
|
D | TrustedPresentationListenerTest.java | 256 TrustedPresentationThresholds thresholds = new TrustedPresentationThresholds(alpha, in testTrustedPresentationThresholdGetters() local 258 Assert.assertEquals(alpha, thresholds.getMinAlpha()); in testTrustedPresentationThresholdGetters() 259 Assert.assertEquals(fractionRendered, thresholds.getMinFractionRendered()); in testTrustedPresentationThresholdGetters() 260 Assert.assertEquals(stabilityRequirementMs, thresholds.getStabilityRequirementMillis()); in testTrustedPresentationThresholdGetters()
|
/cts/hostsidetests/car/app/src/android/car/cts/app/watchdog/ |
D | IoOveruseConfigurationSubject.java | 118 private static Set<String> toAlertThresholdStrings(List<IoOveruseAlertThreshold> thresholds) { in toAlertThresholdStrings() argument 119 return thresholds.stream().map(x -> String.format("%d:%d", x.getDurationInSeconds(), in toAlertThresholdStrings()
|
/cts/tests/tests/car/src/android/car/cts/utils/watchdog/ |
D | IoOveruseConfigurationSubject.java | 118 private static Set<String> toAlertThresholdStrings(List<IoOveruseAlertThreshold> thresholds) { in toAlertThresholdStrings() argument 119 return thresholds.stream().map(x -> String.format("%d:%d", x.getDurationInSeconds(), in toAlertThresholdStrings()
|