Home
last modified time | relevance | path

Searched refs:getDefault (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DDurationMetricsTests.java54 RunUtil.getDefault().sleep(1000); in setUp()
103 RunUtil.getDefault().sleep(2000); in testDurationMetric()
108 RunUtil.getDefault().sleep(2000); in testDurationMetric()
179 RunUtil.getDefault().sleep(10); in testDurationMetricWithCondition()
181 RunUtil.getDefault().sleep(2_000); in testDurationMetricWithCondition()
186 RunUtil.getDefault().sleep(10); in testDurationMetricWithCondition()
191 RunUtil.getDefault().sleep(10); in testDurationMetricWithCondition()
196 RunUtil.getDefault().sleep(10); in testDurationMetricWithCondition()
198 RunUtil.getDefault().sleep(2_000); in testDurationMetricWithCondition()
203 RunUtil.getDefault().sleep(10); in testDurationMetricWithCondition()
[all …]
DMetricActivationTests.java72 RunUtil.getDefault().sleep(1000); in setUp()
180 RunUtil.getDefault().sleep(10L); in testCancellation()
185 RunUtil.getDefault().sleep(10L); in testCancellation()
190 RunUtil.getDefault().sleep(10L); in testCancellation()
195 RunUtil.getDefault().sleep(10L); in testCancellation()
200 RunUtil.getDefault().sleep(10L); in testCancellation()
205 RunUtil.getDefault().sleep(10L); in testCancellation()
210 RunUtil.getDefault().sleep(10L); in testCancellation()
215 RunUtil.getDefault().sleep(10L); in testCancellation()
220 RunUtil.getDefault().sleep(10L); in testCancellation()
[all …]
DGaugeMetricsTests.java65 RunUtil.getDefault().sleep(1000); in setUp()
128 RunUtil.getDefault().sleep(10); in testGaugeMetric()
131 RunUtil.getDefault().sleep(10); in testGaugeMetric()
134 RunUtil.getDefault().sleep(2000); in testGaugeMetric()
137 RunUtil.getDefault().sleep(10); in testGaugeMetric()
140 RunUtil.getDefault().sleep(10); in testGaugeMetric()
145 RunUtil.getDefault().sleep(10); in testGaugeMetric()
148 RunUtil.getDefault().sleep(2000); in testGaugeMetric()
151 RunUtil.getDefault().sleep(10); in testGaugeMetric()
156 RunUtil.getDefault().sleep(2000); in testGaugeMetric()
[all …]
DValueMetricsTests.java59 RunUtil.getDefault().sleep(1000); in setUp()
105 RunUtil.getDefault().sleep(1000); in testValueMetric()
114 RunUtil.getDefault().sleep(1000); in testValueMetric()
188 RunUtil.getDefault().sleep(2 * 60_000 + 10_000); in testPullerAcrossBuckets()
193 RunUtil.getDefault().sleep(1_000); in testPullerAcrossBuckets()
271 RunUtil.getDefault().sleep(GAP_INTERVAL); in testMultipleEventsPerBucket()
274 RunUtil.getDefault().sleep(GAP_INTERVAL); in testMultipleEventsPerBucket()
278 RunUtil.getDefault().sleep(1_000); in testMultipleEventsPerBucket()
345 RunUtil.getDefault().sleep(60_000 + 10_000); in testPullerAcrossBucketsWithActivation()
348 RunUtil.getDefault().sleep(1_000); in testPullerAcrossBucketsWithActivation()
[all …]
DCountMetricsTests.java62 RunUtil.getDefault().sleep(1000); in setUp()
91 RunUtil.getDefault().sleep(100); in testSimpleEventCountMetric()
94 RunUtil.getDefault().sleep(2000); // Wait for the metrics to propagate to statsd. in testSimpleEventCountMetric()
147 RunUtil.getDefault().sleep(10); in testEventCountWithCondition()
150 RunUtil.getDefault().sleep(10); in testEventCountWithCondition()
153 RunUtil.getDefault().sleep(10); in testEventCountWithCondition()
156 RunUtil.getDefault().sleep(10); in testEventCountWithCondition()
159 RunUtil.getDefault().sleep(2000); // Wait for the metrics to propagate to statsd. in testEventCountWithCondition()
230 RunUtil.getDefault().sleep(10); in testEventCountWithConditionAndActivation()
235 RunUtil.getDefault().sleep(10); in testEventCountWithConditionAndActivation()
[all …]
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/
DProcStatsValidationTests.java55 RunUtil.getDefault().sleep(half); in toggleScreenAndSleep()
57 RunUtil.getDefault().sleep(half); in toggleScreenAndSleep()
64 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testProcessStateByPulling()
68 RunUtil.getDefault().sleep(SLEEP_OF_FOREGROUND_SERVICE + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling()
72 RunUtil.getDefault().sleep(SLEEP_OF_ACTION_BACKGROUND_SLEEP + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling()
75 RunUtil.getDefault().sleep(SLEEP_OF_ACTION_SLEEP_WHILE_TOP + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling()
80 RunUtil.getDefault().sleep(cacheTime); in testProcessStateByPulling()
84 RunUtil.getDefault().sleep(EXTRA_WAIT_TIME_MS + 5_000); in testProcessStateByPulling()
86 RunUtil.getDefault().sleep(60_000); in testProcessStateByPulling()
90 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testProcessStateByPulling()
[all …]
/packages/modules/StatsD/tests/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java104 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in setUp()
128 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in tearDown()
155 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testCountAnomalyDetection()
165 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testCountAnomalyDetection()
175 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in testCountAnomalyDetection()
185 RunUtil.getDefault().sleep(WAIT_AFTER_BREADCRUMB_MS); in testCountAnomalyDetection()
222 RunUtil.getDefault().sleep(6_000); // Recorded duration at end: 6s in testDurationAnomalyDetection()
228 RunUtil.getDefault().sleep(4_000); // Recorded duration at end: 6s in testDurationAnomalyDetection()
235 RunUtil.getDefault().sleep(9_000); // Recorded duration at end: 13s in testDurationAnomalyDetection()
248 RunUtil.getDefault().sleep(3_000); // Recorded duration at end: 13s in testDurationAnomalyDetection()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceFieldSizeValidator.java105 Locale.getDefault(), in addValidation()
120 Locale.getDefault(), in addValidation()
135 Locale.getDefault(), in addValidation()
146 Locale.getDefault(), in addValidation()
157 Locale.getDefault(), in addValidation()
169 Locale.getDefault(), in addValidation()
177 Locale.getDefault(), in addValidation()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DLocalDateTimeFormatter.kt65 val systemFormat = getBestDateTimePattern(Locale.getDefault(), "dMMMM") in <lambda>()
66 DateTimeFormatter.ofPattern(systemFormat, Locale.getDefault()) in <lambda>()
69 val systemFormat = getBestDateTimePattern(Locale.getDefault(), "MMMMYYYY") in <lambda>()
70 DateTimeFormatter.ofPattern(systemFormat, Locale.getDefault()) in <lambda>()
73 val systemFormat = getBestDateTimePattern(Locale.getDefault(), "MMMM") in <lambda>()
74 DateTimeFormatter.ofPattern(systemFormat, Locale.getDefault()) in <lambda>()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceFieldSizeValidatorTest.java63 Locale.getDefault(), in testNameTooLong()
81 Locale.getDefault(), in testBiddingLogicUriTooLong()
99 Locale.getDefault(), in testDailyUpdateUriTooLong()
116 Locale.getDefault(), in testUserBiddingSignalsTooBig()
141 Locale.getDefault(), in testTrustedBiddingDataTooBig()
166 Locale.getDefault(), in testAdsTooBig()
191 Locale.getDefault(), in testAdsCountTooBig()
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/
DMetadataTests.java58 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testConfigTtl()
62 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testConfigTtl()
80 RunUtil.getDefault().sleep(10); in testConfigTtl()
85 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testConfigTtl()
182 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in testSystemServerLossErrorCode()
195 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in testSystemServerLossErrorCode()
291 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_SHORT); in runTestUntilLossAtomReported()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DMmsWapPushReceiver.java39 if (PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
41 final int subId = PhoneUtils.getDefault().getEffectiveIncomingSubIdFromSystem( in onReceive()
50 if (!PhoneUtils.getDefault().isSmsEnabled()) { in mmsReceived()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DDateTimeUtils.java82 return getDateTimeString(when, DATE_FORMAT_SKELETON_WITH_TIME, Locale.getDefault()); in getDateTimeStringForContentDesc()
107 return getDateTimeString(when, skeleton, Locale.getDefault()); in getDateHeaderString()
145 ULocale.getDefault(), null, LONG, CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in getTodayString()
152 ULocale.getDefault(), null, LONG, CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE); in getYesterdayString()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DResolutionSelectionUtils.java41 HALF_UP).locale(Locale.getDefault()); in getRefreshRateString()
46 return String.format(Locale.getDefault(), "%.2f", in getRefreshRateString()
84 Locale.getDefault()); in getResolutionSummary()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTest.java99 Locale defaultLocale = Locale.getDefault(); in getFriendlyNameMatchingDefaultLocale()
124 if (nonDefaultLocale.equals(Locale.getDefault())) { in getFriendlyNameNotMatchingDefaultLocale()
159 Locale defaultLocale = Locale.getDefault(); in getServiceDescriptionMatchingDefaultLocale()
185 if (nonDefaultLocale.equals(Locale.getDefault())) { in getServiceDescriptionNotMatchingDefaultLocale()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryListPreferenceController.java127 if (!localeSet.contains(Locale.getDefault().getLanguage())) { in getUserDictionaryLocalesSet()
128 localeSet.add(Locale.getDefault().toString()); in getUserDictionaryLocalesSet()
197 newPref.setTitle(Locale.getDefault().getDisplayName()); in createUserDictionaryPreference()
198 newPref.setKey(Locale.getDefault().toString()); in createUserDictionaryPreference()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.kt115 formatted = String.format(Locale.getDefault(), sign + "%0" + length + "d", value) in getFormattedNumber()
139 val format = SimpleDateFormat("ccccc", Locale.getDefault()) in getShortWeekday()
168 val format = SimpleDateFormat("EEEE", Locale.getDefault()) in getLongWeekday()
/packages/services/Telecomm/src/com/android/server/telecom/voip/
DTransactionManager.java203 pw.println(String.format(Locale.getDefault(), "%s: <NO STATS>", t.mTransactionName)); in printPendingTransactionStats()
206 pw.println(String.format(Locale.getDefault(), in printPendingTransactionStats()
232 pw.println(String.format(Locale.getDefault(), "%s: <NO STATS>", t.mTransactionName)); in printCompleteTransactionStats()
235 pw.println(String.format(Locale.getDefault(), in printCompleteTransactionStats()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java42 return new LocaleSet(LocaleList.getDefault(), in newDefault()
107 return Locale.getDefault(); in getPrimaryLocale()
163 return Objects.equals(mLocaleList, LocaleList.getDefault()); in isCurrent()
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/
DUidMapTests.java56 RunUtil.getDefault().sleep(1000); in setUp()
118 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in testChangeFromInstallation()
147 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in testChangeFromReinstall()
175 RunUtil.getDefault().sleep(AtomTestUtils.WAIT_TIME_LONG); in testChangeFromUninstall()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DInputMethodAndSubtypeUtil.java184 return Locale.getDefault(); in getDisplayLocale()
187 return Locale.getDefault(); in getDisplayLocale()
191 return Locale.getDefault(); in getDisplayLocale()
195 return Locale.getDefault(); in getDisplayLocale()
/packages/apps/Settings/src/com/android/settings/development/storage/
DSharedDataUtils.java36 TimeZone.getDefault(), Locale.getDefault());
/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/
DMainlineModuleVersionPreferenceController.java126 String format = DateFormat.getBestDateTimePattern(Locale.getDefault(), "dMMMMyyyy"); in getSummary()
134 Locale.getDefault()); in parseDateFromVersionName()
135 simpleDateFormat.setTimeZone(TimeZone.getDefault()); in parseDateFromVersionName()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryList.java102 if (!localeSet.contains(Locale.getDefault().getLanguage().toString())) { in getUserDictionaryLocalesSet()
103 localeSet.add(Locale.getDefault().toString()); in getUserDictionaryLocalesSet()
143 newPref.setTitle(Locale.getDefault().getDisplayName()); in createUserDictionaryPreference()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java299 selectedProfile.toLowerCase(Locale.getDefault())) in updateToQuietModeErrorMessage()
348 selectedProfileLabel.toLowerCase(Locale.getDefault())); in getErrorTitlePrivateSpaceEnabled()
351 selectedProfileLabel.toLowerCase(Locale.getDefault())); in getErrorTitlePrivateSpaceEnabled()
404 selectedProfileLabel.toLowerCase(Locale.getDefault()), in getErrorMessagePrivateSpaceEnabled()
405 sourceProfileLabel.toLowerCase(Locale.getDefault())); in getErrorMessagePrivateSpaceEnabled()
408 sourceProfileLabel.toLowerCase(Locale.getDefault()), in getErrorMessagePrivateSpaceEnabled()
409 selectedProfileLabel.toLowerCase(Locale.getDefault())); in getErrorMessagePrivateSpaceEnabled()

12345678910>>...17