/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/ |
D | MediaQualityThreshold.cpp | 40 MediaQualityThreshold::MediaQualityThreshold(const MediaQualityThreshold& threshold) in MediaQualityThreshold() argument 42 mRtpInactivityTimerMillis = threshold.mRtpInactivityTimerMillis; in MediaQualityThreshold() 43 mRtcpInactivityTimerMillis = threshold.mRtcpInactivityTimerMillis; in MediaQualityThreshold() 44 mRtpHysteresisTimeInMillis = threshold.mRtpHysteresisTimeInMillis; in MediaQualityThreshold() 45 mRtpPacketLossDurationMillis = threshold.mRtpPacketLossDurationMillis; in MediaQualityThreshold() 46 mRtpPacketLossRate = threshold.mRtpPacketLossRate; in MediaQualityThreshold() 47 mRtpJitterMillis = threshold.mRtpJitterMillis; in MediaQualityThreshold() 48 mNotifyCurrentStatus = threshold.mNotifyCurrentStatus; in MediaQualityThreshold() 49 mVideoBitrateBps = threshold.mVideoBitrateBps; in MediaQualityThreshold() 54 MediaQualityThreshold& MediaQualityThreshold::operator=(const MediaQualityThreshold& threshold) in operator =() argument [all …]
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CbSendMessageCalculatorTest.java | 79 float threshold = 100; in testSingleSquareOutside() local 82 testSquareOutside(coor, threshold - 10, threshold); in testSingleSquareOutside() 83 testSquareOutside(coor, threshold + 10, threshold); in testSingleSquareOutside() 86 void testSquareOutside(LatLng coor, float accuracy, float threshold) { in testSquareOutside() argument 87 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareOutside() 95 float threshold = 100; in testSingleSquareInside() local 96 testSquareInside(coor, threshold - 10, threshold); in testSingleSquareInside() 97 testSquareInside(coor, threshold + 10, threshold); in testSingleSquareInside() 100 void testSquareInside(LatLng coor, float accuracy, float threshold) { in testSquareInside() argument 101 CbSendMessageCalculator calculator = createCalculator(threshold, mSquare); in testSquareInside() [all …]
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/ |
D | MediaQualityThresholdTest.cpp | 34 MediaQualityThreshold threshold; member in MediaQualityThresholdTest 39 threshold.setRtpInactivityTimerMillis(kRtpInactivityTimerMillis); in SetUp() 40 threshold.setRtcpInactivityTimerMillis(kRtcpInactivityTimerMillis); in SetUp() 41 threshold.setRtpHysteresisTimeInMillis(kRtpHysteresisTimeInMillis); in SetUp() 42 threshold.setRtpPacketLossDurationMillis(kRtpPacketLossDurationMillis); in SetUp() 43 threshold.setRtpPacketLossRate(kRtpPacketLossRate); in SetUp() 44 threshold.setRtpJitterMillis(kRtpJitterMillis); in SetUp() 45 threshold.setNotifyCurrentStatus(kNotifyCurrentStatus); in SetUp() 46 threshold.setVideoBitrateBps(kVideoBitrateBps); in SetUp() 54 EXPECT_EQ(threshold.getRtpInactivityTimerMillis(), kRtpInactivityTimerMillis); in TEST_F() [all …]
|
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | MediaQualityAnalyzerTest.cpp | 299 MediaQualityThreshold threshold; in TEST_F() local 300 threshold.setRtpInactivityTimerMillis(std::vector<int32_t>{0}); in TEST_F() 301 mAnalyzer->setMediaQualityThreshold(threshold); in TEST_F() 306 threshold.setRtpInactivityTimerMillis(std::vector<int32_t>{2000}); in TEST_F() 309 mAnalyzer->setMediaQualityThreshold(threshold); in TEST_F() 319 MediaQualityThreshold threshold; in TEST_F() local 320 threshold.setRtpInactivityTimerMillis(std::vector<int32_t>{4000}); in TEST_F() 321 mAnalyzer->setMediaQualityThreshold(threshold); in TEST_F() 342 MediaQualityThreshold threshold; in TEST_F() local 343 threshold.setRtpInactivityTimerMillis(std::vector<int32_t>{2000}); in TEST_F() [all …]
|
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/ |
D | MediaQualityThresholdTest.java | 44 MediaQualityThreshold threshold = createMediaQualityThreshold(); in testConstructorAndGetters() local 45 assertThat(Arrays.equals(threshold.getRtpInactivityTimerMillis(), RTP_TIMEOUT)).isTrue(); in testConstructorAndGetters() 46 assertThat(threshold.getRtcpInactivityTimerMillis()).isEqualTo(RTCP_TIMEOUT); in testConstructorAndGetters() 47 assertThat(threshold.getRtpHysteresisTimeInMillis()).isEqualTo(RTP_HYSTERESIS_TIME); in testConstructorAndGetters() 48 assertThat(threshold.getRtpPacketLossDurationMillis()).isEqualTo(RTP_PACKET_LOSS_DURATION); in testConstructorAndGetters() 49 assertThat(Arrays.equals(threshold.getRtpPacketLossRate(), PACKET_LOSS_RATE)).isTrue(); in testConstructorAndGetters() 50 assertThat(Arrays.equals(threshold.getRtpJitterMillis(), JITTER_THRESHOLD)).isTrue(); in testConstructorAndGetters() 51 assertThat(threshold.getNotifyCurrentStatus()).isEqualTo(NOTIFY_STATUS); in testConstructorAndGetters() 52 assertThat(threshold.getVideoBitrateBps()).isEqualTo(VIDEO_BITRATE_BPS); in testConstructorAndGetters() 57 MediaQualityThreshold threshold = createMediaQualityThreshold(); in testParcel() local [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | CellularQualityMonitor.java | 187 Threshold threshold; in checkAndNotifySignalStrength() local 193 threshold = th.copy(); in checkAndNotifySignalStrength() 194 threshold.setThreshold(signalStrength); in checkAndNotifySignalStrength() 195 matchedThresholds.add(threshold); in checkAndNotifySignalStrength() 468 for (Threshold threshold : ths) { in validateThresholdList() 469 if (!isValidThreshold(threshold.getMeasurementType(), threshold.getThreshold())) { in validateThresholdList() 477 private static boolean isValidThreshold(int type, int threshold) { in isValidThreshold() argument 480 return threshold >= SignalThresholdInfo.SIGNAL_RSSI_MIN_VALUE in isValidThreshold() 481 && threshold <= SignalThresholdInfo.SIGNAL_RSSI_MAX_VALUE; in isValidThreshold() 483 return threshold >= SignalThresholdInfo.SIGNAL_RSCP_MIN_VALUE in isValidThreshold() [all …]
|
D | Threshold.java | 40 Threshold(int accessNetwork, int measurementType, int threshold, int matchType, int waitTime) { in Threshold() argument 45 this.mThreshold = threshold; in Threshold() 110 void setThreshold(int threshold) { in setThreshold() argument 111 this.mThreshold = threshold; in setThreshold() 131 boolean isMatching(int threshold) { in isMatching() argument 132 if (threshold != INVALID) { in isMatching() 135 return this.mThreshold == threshold; in isMatching() 137 return this.mThreshold <= threshold; in isMatching() 139 return this.mThreshold >= threshold; in isMatching()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | OveruseConfigurationCache.java | 170 PerStateBytes threshold = null; in fetchThreshold() local 173 threshold = mIoThresholdsBySystemPackages.get(genericPackageName); in fetchThreshold() 174 if (threshold != null) { in fetchThreshold() 175 return copyPerStateBytes(threshold); in fetchThreshold() 179 threshold = mIoThresholdsByVendorPackages.get(genericPackageName); in fetchThreshold() 180 if (threshold != null) { in fetchThreshold() 181 return copyPerStateBytes(threshold); in fetchThreshold() 189 threshold = fetchAppCategorySpecificThresholdLocked(genericPackageName); in fetchThreshold() 190 if (threshold != null) { in fetchThreshold() 191 return copyPerStateBytes(threshold); in fetchThreshold() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | QnsCarrierConfigManagerTest.java | 1171 QnsCarrierConfigManager.QnsConfigArray threshold = in loadAndValidateArrayForNull() local 1173 Assert.assertNull(threshold); in loadAndValidateArrayForNull() 1181 QnsCarrierConfigManager.QnsConfigArray threshold = in loadAndValidateForThresholds() local 1184 assert threshold != null; in loadAndValidateForThresholds() 1185 validateForThreshold(threshold, an, callType, measurementType); in loadAndValidateForThresholds() 1242 QnsCarrierConfigManager.QnsConfigArray threshold = in loadAndValidateArrayForInvalidValueWithPref() local 1245 Assert.assertEquals(0x0000FFFF, threshold.mGood); in loadAndValidateArrayForInvalidValueWithPref() 1246 Assert.assertEquals(0x0000FFFF, threshold.mBad); in loadAndValidateArrayForInvalidValueWithPref() 1247 Assert.assertEquals(0x0000FFFF, threshold.mWorst); in loadAndValidateArrayForInvalidValueWithPref() 1417 int[] threshold; in testInvalidThresholdConfig() local [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallOrientationEventListener.java | 83 private static boolean isWithinThreshold(int value, int center, int threshold) { in isWithinThreshold() argument 84 return isWithinRange(value, center - threshold, center + threshold); in isWithinThreshold() 87 private static boolean isInLeftRange(int value, int center, int threshold) { in isInLeftRange() argument 88 return isWithinRange(value, center - threshold, center); in isInLeftRange() 91 private static boolean isInRightRange(int value, int center, int threshold) { in isInRightRange() argument 92 return isWithinRange(value, center, center + threshold); in isInRightRange()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 453 int threshold = 70; in getRotationForUserDegreesRotated() local 456 if (degrees > 180 && degrees < (360 - threshold)) { in getRotationForUserDegreesRotated() 459 if (degrees < 180 && degrees > threshold) { in getRotationForUserDegreesRotated() 464 if (degrees < (90 - threshold) || in getRotationForUserDegreesRotated() 465 (degrees > (270 + threshold) && degrees < 360)) { in getRotationForUserDegreesRotated() 468 if (degrees > (90 + threshold) && degrees < 180) { in getRotationForUserDegreesRotated() 472 if (degrees > (180 + threshold) && degrees < 360) { in getRotationForUserDegreesRotated() 477 if (degrees < (180 - threshold)) { in getRotationForUserDegreesRotated() 480 if (degrees > (180 + threshold)) { in getRotationForUserDegreesRotated() 485 if (degrees < (270 - threshold) && degrees > 90) { in getRotationForUserDegreesRotated() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | OveruseConfigurationTestUtils.cpp | 118 PerStateIoOveruseThreshold threshold; in toPerStateIoOveruseThreshold() local 119 threshold.name = name; in toPerStateIoOveruseThreshold() 120 threshold.perStateWriteBytes = perStateBytes; in toPerStateIoOveruseThreshold() 121 return threshold; in toPerStateIoOveruseThreshold() 152 IoOveruseAlertThreshold threshold; in toIoOveruseAlertThreshold() local 153 threshold.durationInSeconds = durationInSeconds; in toIoOveruseAlertThreshold() 154 threshold.writtenBytesPerSecond = writtenBytesPerSecond; in toIoOveruseAlertThreshold() 155 return threshold; in toIoOveruseAlertThreshold()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoOveruseMonitor.cpp | 135 PerStateBytes threshold) { in calculateOveruseAndForgivenBytes() argument 148 int32_t foregroundOveruses = div(writtenBytes.foregroundBytes, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes() 149 int32_t backgroundOveruses = div(writtenBytes.backgroundBytes, threshold.backgroundBytes); in calculateOveruseAndForgivenBytes() 150 int32_t garageModeOveruses = div(writtenBytes.garageModeBytes, threshold.garageModeBytes); in calculateOveruseAndForgivenBytes() 154 forgivenWriteBytes.foregroundBytes = mul(foregroundOveruses, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes() 155 forgivenWriteBytes.backgroundBytes = mul(backgroundOveruses, threshold.backgroundBytes); in calculateOveruseAndForgivenBytes() 156 forgivenWriteBytes.garageModeBytes = mul(garageModeOveruses, threshold.garageModeBytes); in calculateOveruseAndForgivenBytes() 309 const auto threshold = mIoOveruseConfigs->fetchThreshold(dailyIoUsage->packageInfo); in onPeriodicCollection() local 314 calculateOveruseAndForgivenBytes(deltaWrittenBytes, threshold); in onPeriodicCollection() 327 stats.ioOveruseStats.remainingWriteBytes = diff(threshold, deltaWrittenBytes); in onPeriodicCollection() [all …]
|
D | IoOveruseConfigs.h | 57 aidl::android::automotive::watchdog::internal::PerStateIoOveruseThreshold threshold; in defaultThreshold() local 58 threshold.name = kDefaultThresholdName; in defaultThreshold() 59 threshold.perStateWriteBytes.foregroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 60 threshold.perStateWriteBytes.backgroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 61 threshold.perStateWriteBytes.garageModeBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold() 62 return threshold; in defaultThreshold() 116 threshold) const;
|
D | IoOveruseConfigs.cpp | 107 Result<void> containsValidThreshold(const IoOveruseAlertThreshold& threshold) { in containsValidThreshold() argument 108 if (threshold.durationInSeconds <= 0) { in containsValidThreshold() 111 if (threshold.writtenBytesPerSecond <= 0) { in containsValidThreshold() 148 for (const auto& threshold : ioOveruseConfig.systemWideThresholds) { in isValidIoOveruseConfiguration() local 149 if (auto result = containsValidThreshold(threshold); !result.ok()) { in isValidIoOveruseConfiguration() 346 const IoOveruseAlertThreshold& threshold) const { in operator ()() 347 return std::hash<std::string>{}(std::to_string(threshold.durationInSeconds)); in operator ()() 626 for (const auto& [packageName, threshold] : componentSpecificConfig.mPerPackageThresholds) { in get() 627 ioOveruseConfiguration.packageSpecificThresholds.push_back(threshold); in get() 635 for (const auto& [category, threshold] : mPerCategoryThresholds) { in get() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/ |
D | TextManager.cpp | 131 void TextManager::setMediaQualityThreshold(const int sessionId, MediaQualityThreshold* threshold) in setMediaQualityThreshold() argument 138 (session->second)->setMediaQualityThreshold(*threshold); in setMediaQualityThreshold() 202 MediaQualityThreshold* threshold = new MediaQualityThreshold(); in sendMessage() local 203 threshold->readFromParcel(&parcel); in sendMessage() 205 "TEXT_REQUEST_EVENT", nMsg, sessionId, reinterpret_cast<uint64_t>(threshold)); in sendMessage() 283 MediaQualityThreshold* threshold = reinterpret_cast<MediaQualityThreshold*>(paramA); in processEvent() local 285 if (threshold != nullptr) in processEvent() 288 static_cast<int>(sessionId), threshold); in processEvent() 289 delete threshold; in processEvent()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/ |
D | VideoManager.cpp | 153 void VideoManager::setMediaQualityThreshold(const int sessionId, MediaQualityThreshold* threshold) in setMediaQualityThreshold() argument 160 (session->second)->setMediaQualityThreshold(*threshold); in setMediaQualityThreshold() 216 MediaQualityThreshold* threshold = new MediaQualityThreshold(); in sendMessage() local 217 threshold->readFromParcel(&parcel); in sendMessage() 219 "VIDEO_REQUEST_EVENT", nMsg, sessionId, reinterpret_cast<uint64_t>(threshold)); in sendMessage() 331 MediaQualityThreshold* threshold = reinterpret_cast<MediaQualityThreshold*>(paramA); in processEvent() local 333 if (threshold != nullptr) in processEvent() 336 static_cast<int>(sessionId), threshold); in processEvent() 337 delete threshold; in processEvent()
|
D | VideoStreamGraphRtpRx.cpp | 207 bool VideoStreamGraphRtpRx::setMediaQualityThreshold(MediaQualityThreshold* threshold) in setMediaQualityThreshold() argument 209 if (threshold != nullptr) in setMediaQualityThreshold() 216 decoder->SetInactivityTimerSec(threshold->getRtpInactivityTimerMillis().empty() in setMediaQualityThreshold() 218 : threshold->getRtpInactivityTimerMillis().front() / 1000); in setMediaQualityThreshold() 227 decoder->SetPacketLossParam(threshold->getRtpPacketLossDurationMillis(), in setMediaQualityThreshold() 228 threshold->getRtpPacketLossRate().empty() in setMediaQualityThreshold() 230 : threshold->getRtpPacketLossRate().front()); in setMediaQualityThreshold()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcher.java | 232 float threshold = emailBased in matchName() local 235 if (distance > threshold) { in matchName() 284 public List<Long> prepareSecondaryMatchCandidates(int threshold) { in prepareSecondaryMatchCandidates() argument 294 if (s >= threshold) { in prepareSecondaryMatchCandidates() 311 public long pickBestMatch(int threshold, boolean allowMultipleMatches) { in pickBestMatch() argument 329 if (s >= threshold) { in pickBestMatch() 347 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() argument 348 int scaledThreshold = threshold * MatchScore.SCORE_SCALE; in pickBestMatches()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_count_e2e_test.cpp | 32 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold, int refractory_period_sec) { in CreateStatsdConfig() argument 51 alert->set_trigger_if_sum_gt(threshold); in CreateStatsdConfig() 59 const int threshold = 3; in TEST() local 61 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 176 const int threshold = 3; in TEST() local 178 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 246 const int threshold = 0; in TEST() local 248 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() 271 const int threshold = 0; in TEST() local 273 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST() [all …]
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardFeatureProviderImpl.java | 46 final long threshold = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS; in getContextualCards() local 49 final String[] selectionArgs = {String.valueOf(threshold)}; in getContextualCards() 53 ThreadUtils.postOnBackgroundThread(() -> resetDismissedTime(threshold)); in getContextualCards() 70 int resetDismissedTime(long threshold) { in resetDismissedTime() argument 77 final String[] selectionArgs = {String.valueOf(threshold)}; in resetDismissedTime()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | UsageBytesThresholdPickerDialog.java | 156 void setThresholdEditor(long threshold) { in setThresholdEditor() argument 157 updateCurrentView(threshold); in setThresholdEditor() 160 private void updateCurrentView(long threshold) { in updateCurrentView() argument 162 if (threshold > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in updateCurrentView() 163 bytesText = formatText(threshold / (float) GIB_IN_BYTES); in updateCurrentView() 166 bytesText = formatText(threshold / (float) MIB_IN_BYTES); in updateCurrentView()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | InternalIoOveruseConfigurationSubject.java | 105 public static String toString(PerStateIoOveruseThreshold threshold) { in toString() argument 107 builder.append("{Name: ").append(threshold.name).append(", WriteBytes: "); in toString() 108 InternalPerStateBytesSubject.toStringBuilder(builder, threshold.perStateWriteBytes); in toString() 113 public static String toString(IoOveruseAlertThreshold threshold) { in toString() argument 115 builder.append("{durationInSeconds: ").append(threshold.durationInSeconds) in toString() 116 .append(", writtenBytesPerSecond: ").append(threshold.writtenBytesPerSecond) in toString()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/include/ |
D | MediaQualityThreshold.h | 40 MediaQualityThreshold(const MediaQualityThreshold& threshold); 42 MediaQualityThreshold& operator=(const MediaQualityThreshold& threshold); 43 bool operator==(const MediaQualityThreshold& threshold) const; 44 bool operator!=(const MediaQualityThreshold& threshold) const;
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/ |
D | TextLocalSession.java | 92 public void setMediaQualityThreshold(final MediaQualityThreshold threshold) { in setMediaQualityThreshold() argument 93 Log.d(TAG, "setMediaQualityThreshold: " + threshold); in setMediaQualityThreshold() 96 if (threshold != null) { in setMediaQualityThreshold() 97 threshold.writeToParcel(parcel, 0); in setMediaQualityThreshold()
|