/frameworks/native/services/surfaceflinger/tests/ |
D | LayerTrustedPresentationListener_test.cpp | 49 TrustedPresentationThresholds thresholds; in thresh() local 50 thresholds.minAlpha = 1.0; in thresh() 51 thresholds.minFractionRendered = 1.0; in thresh() 52 thresholds.stabilityRequirementMs = 100; in thresh() 53 return thresholds; in thresh() 61 thresholds = thresh(); in SetUp() 81 thresholds, &pch, mCallback) in thresholdsPrepared() 96 TrustedPresentationThresholds thresholds; member in android::LayerTrustedPresentationListenerTest 156 thresholds.minAlpha = 0.8; in TEST_F() 168 thresholds.minFractionRendered = 0.75; in TEST_F() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | MediaThreshold.java | 239 TreeSet<Integer> thresholds = new TreeSet<>(); in setThresholdsRtpPacketLossRate() local 242 thresholds.add(value); in setThresholdsRtpPacketLossRate() 245 int[] targetArray = new int[thresholds.size()]; in setThresholdsRtpPacketLossRate() 247 for (int element : thresholds) { in setThresholdsRtpPacketLossRate() 269 TreeSet<Integer> thresholds = new TreeSet<>(); in setThresholdsRtpJitterMillis() local 272 thresholds.add(value); in setThresholdsRtpJitterMillis() 275 int[] targetArray = new int[thresholds.size()]; in setThresholdsRtpJitterMillis() 277 for (int element : thresholds) { in setThresholdsRtpJitterMillis() 299 TreeSet<Long> thresholds = new TreeSet<>(); in setThresholdsRtpInactivityTimeMillis() local 302 thresholds.add(value); in setThresholdsRtpInactivityTimeMillis() [all …]
|
/frameworks/base/native/android/tests/thermal/ |
D | NativeThermalUnitTest.cpp | 90 const AThermalHeadroomThreshold* thresholds, in checkThermalHeadroomThresholds() argument 92 if (thresholds == nullptr) { in checkThermalHeadroomThresholds() 96 auto t = thresholds[i]; in checkThermalHeadroomThresholds() 122 const AThermalHeadroomThreshold* thresholds = nullptr; in TEST_F() local 128 ASSERT_EQ(EPIPE, AThermal_getThermalHeadroomThresholds(mThermalManager, &thresholds, &size)); in TEST_F() 129 ASSERT_EQ(nullptr, thresholds); in TEST_F() 133 const AThermalHeadroomThreshold* thresholds = nullptr; in TEST_F() local 139 ASSERT_EQ(ENOSYS, AThermal_getThermalHeadroomThresholds(mThermalManager, &thresholds, &size)); in TEST_F() 140 ASSERT_EQ(nullptr, thresholds); in TEST_F() 144 const AThermalHeadroomThreshold* thresholds = nullptr; in TEST_F() local [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | SignalThresholdInfo.java | 341 @NonNull int[] thresholds, in SignalThresholdInfo() argument 343 Objects.requireNonNull(thresholds, "thresholds must not be null"); in SignalThresholdInfo() 345 validateThresholdRange(signalMeasurementType, thresholds); in SignalThresholdInfo() 351 mThresholds = thresholds; in SignalThresholdInfo() 449 public Builder setThresholds(@NonNull int[] thresholds) { 450 return setThresholds(thresholds, false /*isSystem*/); 464 public Builder setThresholds(@NonNull int[] thresholds, boolean isSystem) { 465 Objects.requireNonNull(thresholds, "thresholds must not be null"); 467 && (thresholds.length < MINIMUM_NUMBER_OF_THRESHOLDS_ALLOWED 468 || thresholds.length > MAXIMUM_NUMBER_OF_THRESHOLDS_ALLOWED)) { [all …]
|
D | CellSignalStrengthNr.java | 468 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument 472 } else if (measure >= thresholds[3]) { in updateLevelWithMeasure() 474 } else if (measure >= thresholds[2]) { in updateLevelWithMeasure() 476 } else if (measure >= thresholds[1]) { in updateLevelWithMeasure() 478 } else if (measure >= thresholds[0]) { in updateLevelWithMeasure()
|
D | CellSignalStrengthLte.java | 370 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument 374 } else if (measure >= thresholds[3]) { in updateLevelWithMeasure() 376 } else if (measure >= thresholds[2]) { in updateLevelWithMeasure() 378 } else if (measure >= thresholds[1]) { in updateLevelWithMeasure() 380 } else if (measure >= thresholds[0]) { in updateLevelWithMeasure()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | DeviceConfigParsingUtils.java | 164 float[] thresholds = new float[thresholdsInt.length]; in displayBrightnessThresholdsIntToFloat() local 165 for (int i = 0; i < thresholds.length; i++) { in displayBrightnessThresholdsIntToFloat() 168 thresholds[i] = thresholdsInt[i]; in displayBrightnessThresholdsIntToFloat() 170 thresholds[i] = BrightnessSynchronizer.brightnessIntToFloat(thresholdsInt[i]); in displayBrightnessThresholdsIntToFloat() 173 return thresholds; in displayBrightnessThresholdsIntToFloat() 186 float[] thresholds = new float[thresholdsInt.length]; in ambientBrightnessThresholdsIntToFloat() local 187 for (int i = 0; i < thresholds.length; i++) { in ambientBrightnessThresholdsIntToFloat() 188 thresholds[i] = thresholdsInt[i]; in ambientBrightnessThresholdsIntToFloat() 190 return thresholds; in ambientBrightnessThresholdsIntToFloat()
|
/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
D | SizeConfigurationBucketsTest.java | 109 final int[] thresholds = new int[] { 360, 600 }; in testCrossesSizeThreshold() local 110 final int nThresholds = thresholds.length; in testCrossesSizeThreshold() 112 final int minValueInBucket = i < 0 ? 0 : thresholds[i]; in testCrossesSizeThreshold() 114 ? thresholds[i + 1] - 1 : Integer.MAX_VALUE; in testCrossesSizeThreshold() 121 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket, false); in testCrossesSizeThreshold() 122 checkCrossesSizeThreshold(thresholds, oldValue, in testCrossesSizeThreshold() 124 checkCrossesSizeThreshold(thresholds, oldValue, maxValueInBucket, false); in testCrossesSizeThreshold() 131 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket - 20, true); in testCrossesSizeThreshold() 132 checkCrossesSizeThreshold(thresholds, oldValue, minValueInBucket - 1, true); in testCrossesSizeThreshold() 136 checkCrossesSizeThreshold(thresholds, oldValue, maxValueInBucket + 1, true); in testCrossesSizeThreshold() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/config/ |
D | HysteresisLevels.java | 306 @Nullable Thresholds thresholds, in createHysteresisLevels() 317 thresholds == null ? null : thresholds.getBrighteningThresholds(); in createHysteresisLevels() 319 thresholds == null ? null : thresholds.getDarkeningThresholds(); in createHysteresisLevels() 356 @Nullable BrightnessThresholds thresholds, in getBrightnessLevelAndPercentage() 360 if (thresholds != null in getBrightnessLevelAndPercentage() 361 && thresholds.getBrightnessThresholdPoints() != null in getBrightnessLevelAndPercentage() 362 && !thresholds.getBrightnessThresholdPoints().getBrightnessThresholdPoint() in getBrightnessLevelAndPercentage() 367 thresholds.getBrightnessThresholdPoints().getBrightnessThresholdPoint(); in getBrightnessLevelAndPercentage()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | SmallAreaDetectionController.java | 40 private static native void nativeUpdateSmallAreaDetection(int[] appIds, float[] thresholds); in nativeUpdateSmallAreaDetection() argument 118 final float[] thresholds = new float[appIdThresholdList.size()]; in updateSmallAreaDetection() local 121 thresholds[i] = appIdThresholdList.valueAt(i); in updateSmallAreaDetection() 123 updateSmallAreaDetection(appIds, thresholds); in updateSmallAreaDetection() 127 void updateSmallAreaDetection(int[] appIds, float[] thresholds) { in updateSmallAreaDetection() argument 128 nativeUpdateSmallAreaDetection(appIds, thresholds); in updateSmallAreaDetection()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_display_SmallAreaDetectionController.cpp | 32 ScopedFloatArrayRO thresholds(env, jthresholds); in nativeUpdateSmallAreaDetection() local 34 if (appIds.size() != thresholds.size()) { in nativeUpdateSmallAreaDetection() 46 thresholdVector.push_back(static_cast<float>(thresholds[i])); in nativeUpdateSmallAreaDetection()
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/ |
D | Swipeable.kt | 195 internal var thresholds: (Float, Float) -> Float by mutableStateOf({ _, _ -> 0f }) in _() variable 248 thresholds = thresholds, 362 thresholds = thresholds, in performFling() 561 thresholds: (from: T, to: T) -> ThresholdConfig = { _, _ -> FixedThreshold(56.dp) }, in swipeable() 573 properties["thresholds"] = thresholds in <lambda>() 590 state.thresholds = { a, b -> in <lambda>() 593 with(thresholds(from, to)) { density.computeThreshold(a, b) } in <lambda>() 752 thresholds: (Float, Float) -> Float, in computeTarget() 768 val threshold = thresholds(lower, upper) in computeTarget() 776 val threshold = thresholds(upper, lower) in computeTarget()
|
/frameworks/base/services/core/java/com/android/server/cpu/ |
D | CpuAvailabilityMonitoringConfig.java | 70 public Builder(int cpuset, int... thresholds) { in Builder() argument 72 for (int threshold : thresholds) { in Builder()
|
D | CpuMonitorService.java | 424 int curAvailabilityPercent, IntArray thresholds) { in didCrossAnyThreshold() argument 428 for (int i = 0; i < thresholds.size(); i++) { in didCrossAnyThreshold() 429 int threshold = thresholds.get(i); in didCrossAnyThreshold()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TrustedPresentationListenerController.java | 99 TrustedPresentationThresholds thresholds, int id) { in register() argument 102 listenersForWindow.add(new TrustedPresentationInfo(thresholds, id, listener)); in register() 172 TrustedPresentationThresholds thresholds, int id) { in registerListener() argument 176 listener, id, window, thresholds); in registerListener() 178 mRegisteredListeners.register(window, listener, thresholds, id); in registerListener() 415 private TrustedPresentationInfo(TrustedPresentationThresholds thresholds, int id, in TrustedPresentationInfo() argument 417 mThresholds = thresholds; in TrustedPresentationInfo()
|
/frameworks/base/native/android/ |
D | thermal.cpp | 221 auto thresholds = std::make_unique<std::vector<float>>(); in getThermalHeadroomThresholds() local 222 binder::Status ret = mThermalSvc->getThermalHeadroomThresholds(thresholds.get()); in getThermalHeadroomThresholds() 230 mThresholdsCount = thresholds->size(); in getThermalHeadroomThresholds() 233 t[i].headroom = (*thresholds)[i]; in getThermalHeadroomThresholds()
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 224 public static boolean crossesSizeThreshold(int[] thresholds, int firstDp, in crossesSizeThreshold() argument 226 if (thresholds == null) { in crossesSizeThreshold() 229 for (int i = thresholds.length - 1; i >= 0; i--) { in crossesSizeThreshold() 230 final int threshold = thresholds[i]; in crossesSizeThreshold()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 121 ArrayList<TemperatureThreshold> thresholds = new ArrayList<>(); in initializeThresholds() local 132 thresholds.add(skinThreshold); in initializeThresholds() 146 thresholds.add(cpuThreshold); in initializeThresholds() 148 return thresholds; in initializeThresholds() 487 ArrayList<TemperatureThreshold> thresholds = new ArrayList<>(); in testGetThermalHeadroomThresholdsOnDefaultHalResult() local 488 mFakeHal.mTemperatureThresholdList = thresholds; in testGetThermalHeadroomThresholdsOnDefaultHalResult() 503 thresholds.add(nanThresholds); in testGetThermalHeadroomThresholdsOnDefaultHalResult()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ThermalManagerService.java | 359 final float[] thresholds; in onPullAtom() local 361 thresholds = Arrays.copyOf(mTemperatureWatcher.mHeadroomThresholds, in onPullAtom() 366 thresholds)); in onPullAtom() 639 List<TemperatureThreshold> thresholds) { in dumpTemperatureThresholds() argument 640 for (TemperatureThreshold threshold : thresholds) { in dumpTemperatureThresholds() 1550 (status, thresholds) -> { in getTemperatureThresholds() 1552 ret.addAll(thresholds.stream().map( in getTemperatureThresholds() 1630 List<TemperatureThreshold> thresholds = in updateThresholds() local 1635 for (int t = 0; t < thresholds.size(); ++t) { in updateThresholds() 1636 TemperatureThreshold threshold = thresholds.get(t); in updateThresholds()
|
/frameworks/native/services/surfaceflinger/FrameTimeline/ |
D | FrameTimeline.h | 164 std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds, 381 DisplayFrame(std::shared_ptr<TimeStats> timeStats, JankClassificationThresholds thresholds, 474 JankClassificationThresholds thresholds = {}, bool useBootTimeClock = true);
|
D | FrameTimeline.cpp | 329 JankClassificationThresholds thresholds, in SurfaceFrame() argument 343 mJankClassificationThresholds(thresholds), 843 JankClassificationThresholds thresholds, bool useBootTimeClock) in FrameTimeline() argument 848 mJankClassificationThresholds(thresholds) { in FrameTimeline() 850 std::make_shared<DisplayFrame>(mTimeStats, thresholds, &mTraceCookieCounter); in FrameTimeline() 894 JankClassificationThresholds thresholds, in DisplayFrame() argument 899 mJankClassificationThresholds(thresholds), in DisplayFrame()
|
/frameworks/base/core/java/android/view/ |
D | WindowManagerImpl.java | 521 @NonNull TrustedPresentationThresholds thresholds, @NonNull Executor executor, in registerTrustedPresentationListener() argument 524 Objects.requireNonNull(thresholds, "thresholds must not be null"); in registerTrustedPresentationListener() 527 mGlobal.registerTrustedPresentationListener(window, thresholds, executor, listener); in registerTrustedPresentationListener()
|
D | WindowManagerGlobal.java | 834 @NonNull TrustedPresentationThresholds thresholds, Executor executor, in registerTrustedPresentationListener() argument 836 mTrustedPresentationListener.addListener(window, thresholds, listener, executor); in registerTrustedPresentationListener() 964 private void addListener(IBinder window, TrustedPresentationThresholds thresholds, in addListener() argument 968 Log.i(TAG, "Updating listener " + listener + " thresholds to " + thresholds); in addListener() 975 .registerTrustedPresentationListener(window, this, thresholds, id); in addListener()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SignalStrengthController.java | 1184 int measurementType, @NonNull int[] thresholds, int ran, boolean isEnabled) { in createSignalThresholdsInfo() argument 1187 .setThresholds(thresholds) in createSignalThresholdsInfo() 1198 int measurementType, @NonNull int[] thresholds, @NonNull int[] defaultThresholds, in validateAndCreateSignalThresholdInfo() argument 1204 .setThresholds(thresholds) in validateAndCreateSignalThresholdInfo() 1223 + ", thresholds=" + Arrays.toString(thresholds) in validateAndCreateSignalThresholdInfo()
|
/frameworks/native/libs/gui/aidl/android/gui/ |
D | ISurfaceComposer.aidl | 501 oneway void updateSmallAreaDetection(in int[] appIds, in float[] thresholds); in updateSmallAreaDetection() argument
|