Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java66 final Locale originalLocale = Locale.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
67 final LocaleList originalLocaleList = LocaleList.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
74 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
75 final LocaleList firstResult = LocaleList.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
76 assertEquals("ae,en,ja", LocaleList.getDefault().toLanguageTags()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
79 assertSame(firstResult, LocaleList.getDefault()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsActivity.java212 EventBus.getDefault().post(new RecentsDrawnEvent());
286 EventBus.getDefault().send(dismissEvent); in dismissRecentsToHome()
316 EventBus.getDefault().register(this, EVENT_BUS_PRIORITY); in onCreate()
369 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true)); in onStart()
445 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in reloadStackView()
479 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in onEnterAnimationComplete()
484 EventBus.getDefault().send(new SetWaitingForTransitionStartEvent(false)); in onEnterAnimationComplete()
506 EventBus.getDefault().send(new ConfigurationChangedEvent(false /* fromMultiWindow */, in onConfigurationChanged()
533 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false)); in onStop()
567 EventBus.getDefault().unregister(this); in onDestroy()
[all …]
DRecentsSystemUser.java98 EventBus.getDefault().post(new RecentsDrawnEvent()); in sendRecentsDrawnEvent()
103 EventBus.getDefault().post(new DockedTopTaskEvent(initialRect)); in sendDockingTopTaskEvent()
108 EventBus.getDefault().post(new RecentsActivityStartingEvent()); in sendLaunchRecentsEvent()
113 EventBus.getDefault().post(new DockedFirstAnimationFrameEvent()); in sendDockedFirstAnimationFrameEvent()
118 EventBus.getDefault().post(new SetWaitingForTransitionStartEvent( in setWaitingForTransitionStartEvent()
DRecentsImpl.java198 EventBus.getDefault().send(new ActivityPinnedEvent(taskId)); in onActivityPinned()
210 EventBus.getDefault().send(new ActivityUnpinnedEvent()); in onActivityUnpinned()
221 EventBus.getDefault().send(new TaskSnapshotChangedEvent(taskId, snapshot)); in onTaskSnapshotChanged()
413 EventBus.getDefault().post(new HideRecentsEvent(triggeredFromAltTab, in hideRecents()
449 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
451 EventBus.getDefault().post(new LaunchMostRecentTaskRequestEvent()); in toggleRecents()
455 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
466 EventBus.getDefault().post(new ToggleRecentsEvent()); in toggleRecents()
542 EventBus.getDefault().sendOntoMainThread(new DraggingInRecentsEvent(distanceFromTop));
546 EventBus.getDefault().sendOntoMainThread(new DraggingInRecentsEndedEvent(velocity));
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp171 return getDefault(); in getProductStrategyForAttributes()
201 product_strategy_t ProductStrategyMap::getDefault() const in getDefault() function in android::ProductStrategyMap
234 return getDefault(); in getProductStrategyForStream()
243 product_strategy_t defaultStrategy = getDefault(); in getDeviceTypesForProductStrategy()
247 return at(getDefault())->getDeviceTypes(); in getDeviceTypesForProductStrategy()
256 product_strategy_t defaultStrategy = getDefault(); in getDeviceAddressForProductStrategy()
260 return at(getDefault())->getDeviceAddress(); in getDeviceAddressForProductStrategy()
290 product_strategy_t defaultStrategy = getDefault(); in getDefaultVolumeGroup()
299 mDefaultStrategy = getDefault(); in initialize()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DSmsManagerPermissionTest.java43 SmsManager.getDefault().sendTextMessage(SRC_NUMBER, DEST_NUMBER, MSG_CONTENTS, null, in testSendTextMessage()
59 SmsManager.getDefault().sendDataMessage(SRC_NUMBER, DEST_NUMBER, DEST_PORT, in testSendDataMessage()
78 SmsManager.getDefault().sendMultipartTextMessage(SRC_NUMBER, DEST_NUMBER, msgParts, in testSendMultipartMessage()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsViewTouchHandler.java109 EventBus.getDefault().send(new HideRecentsEvent(false, true)); in onTouchEvent()
145 EventBus.getDefault().send(new ShowIncompatibleAppOverlayEvent()); in onBusEvent()
159 EventBus.getDefault().send(new DragStartInitializeDropTargetsEvent(event.task, in onBusEvent()
171 EventBus.getDefault().send(new HideIncompatibleAppOverlayEvent()); in onBusEvent()
256 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, in handleTouchEvent()
268 EventBus.getDefault().send(new DismissAllTaskViewsEvent()); in handleTouchEvent()
275 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, null)); in handleTouchEvent()
277 EventBus.getDefault().send(new DragEndEvent(mDragTask, mTaskView, in handleTouchEvent()
DRecentsView.java338 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null, false));
354 EventBus.getDefault().send(new ExpandPipEvent());
362 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null, false));
405 EventBus.getDefault().register(this, RecentsActivity.EVENT_BUS_PRIORITY + 1);
406 EventBus.getDefault().register(mTouchHandler, RecentsActivity.EVENT_BUS_PRIORITY + 2);
413 EventBus.getDefault().unregister(this);
414 EventBus.getDefault().unregister(mTouchHandler);
542 EventBus.getDefault().send(new HideStackActionButtonEvent(false /* translate */));
549 EventBus.getDefault().send(new HideStackActionButtonEvent());
617 EventBus.getDefault().send(new DockedFirstAnimationFrameEvent());
[all …]
DTaskStackView.java297 EventBus.getDefault().register(this, RecentsActivity.EVENT_BUS_PRIORITY + 1); in onAttachedToWindow()
305 EventBus.getDefault().unregister(this); in onDetachedFromWindow()
1010 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(null)); in setRelativeFocusedTask()
1225 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in onMeasure()
1423 EventBus.getDefault().send(new AllTaskViewsDismissedEvent(fromDockGesture in onStackTaskRemoved()
1427 EventBus.getDefault().send(new ShowEmptyViewEvent()); in onStackTaskRemoved()
1448 EventBus.getDefault().send(new AllTaskViewsDismissedEvent( in onStackTasksRemoved()
1651 EventBus.getDefault().send( in onStackScrollChanged()
1659 EventBus.getDefault().send(new ShowStackActionButtonEvent(true /* translate */)); in onStackScrollChanged()
1662 EventBus.getDefault().send(new HideStackActionButtonEvent()); in onStackScrollChanged()
[all …]
/frameworks/base/core/java/android/text/format/
DDateUtils.java201 LocaleData d = LocaleData.get(Locale.getDefault()); in getDayOfWeekString()
223 return LocaleData.get(Locale.getDefault()).amPm[ampm - Calendar.AM]; in getAMPMString()
239 LocaleData d = LocaleData.get(Locale.getDefault()); in getMonthString()
303 return RelativeDateTimeFormatter.getRelativeTimeSpanString(Locale.getDefault(), in getRelativeTimeSpanString()
304 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
337 return RelativeDateTimeFormatter.getRelativeDateTimeString(Locale.getDefault(), in getRelativeDateTimeString()
338 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
399 final MeasureFormat formatter = MeasureFormat.getInstance(Locale.getDefault(), width); in formatDuration()
455 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
539 Formatter f = new Formatter(new StringBuilder(50), Locale.getDefault()); in formatDateRange()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java164 ResponseCache installed = ResponseCache.getDefault(); in getInstalled()
183 ResponseCache installed = ResponseCache.getDefault(); in install()
281 if (ResponseCache.getDefault() == this) { in close()
291 if (ResponseCache.getDefault() == this) { in delete()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DWizardManagerHelper.java292 return new ThemeResolver.Builder(ThemeResolver.getDefault()) in getThemeRes()
315 return new ThemeResolver.Builder(ThemeResolver.getDefault()) in getThemeRes()
347 return new ThemeResolver.Builder(ThemeResolver.getDefault()) in getThemeRes()
378 return new ThemeResolver.Builder(ThemeResolver.getDefault()) in getThemeRes()
403 ThemeResolver.getDefault().applyTheme(activity); in applyTheme()
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsMessage.java153 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in createFromPdu()
171 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getTPLayerLengthForPDU()
245 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu()
272 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu()
303 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSubmitPdu()
618 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in getSmsFacility()
DSmsManager.java39 public static final SmsManager getDefault() { in getDefault() method in SmsManager
48 mSmsMgrProxy = android.telephony.SmsManager.getDefault(); in SmsManager()
222 return android.telephony.SmsManager.getDefault().getAllMessagesFromIcc(); in getAllMessagesFromSim()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DAndroidLocale.java50 public static Locale getDefault() { in getDefault() method in AndroidLocale
58 return Locale.getDefault(); in getDefault()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTest.java97 Locale defaultLocale = Locale.getDefault(); in getFriendlyNameMatchingDefaultLocale()
122 if (nonDefaultLocale.equals(Locale.getDefault())) { in getFriendlyNameNotMatchingDefaultLocale()
157 Locale defaultLocale = Locale.getDefault(); in getServiceDescriptionMatchingDefaultLocale()
183 if (nonDefaultLocale.equals(Locale.getDefault())) { in getServiceDescriptionNotMatchingDefaultLocale()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java38 mCurrentZone = TimeZone.getDefault().getID(); in setUp()
65 String newZone = TimeZone.getDefault().getID(); in testSetTimeZonePermissions()
/frameworks/base/telephony/java/android/telephony/
DCellLocation.java65 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in newFromBundle()
101 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in getEmpty()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightState.java54 final ZoneId zoneId = TimeZone.getDefault().toZoneId(); in sunrise()
70 final ZoneId zoneId = TimeZone.getDefault().toZoneId(); in sunset()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java72 final Locale defaultLocale = Locale.getDefault(); in getGmtDisplayName()
164 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName()
180 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); in getDisplayName()
DTimeZoneInfo.java54 private static Formatter mFormatter = new Formatter(mSB, Locale.getDefault());
70 recycledTime.timezone = TimeZone.getDefault().getID(); in getLocalTime()
278 return this.mTz.getDisplayName(Locale.getDefault()).compareTo( in compareTo()
279 other.mTz.getDisplayName(Locale.getDefault())); in compareTo()
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java131 return getDisplayName(locale, Locale.getDefault(), sentenceCase); in getDisplayName()
162 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
177 final Locale dispLocale = displayLocale == null ? Locale.getDefault() : displayLocale; in getDisplayLocaleList()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DImageClock.java40 private final Calendar mTime = Calendar.getInstance(TimeZone.getDefault());
100 mTime.setTimeZone(mTimeZone != null ? mTimeZone : TimeZone.getDefault()); in onAttachedToWindow()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTtsEnginesTests.java65 assertEquals(Locale.getDefault(), in testGetLocalePrefForEngine()
67 assertEquals(Locale.getDefault(), in testGetLocalePrefForEngine()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java80 private static SimpleDateFormat YEAR_FORMAT = new SimpleDateFormat("yyyy", Locale.getDefault());
81 private static SimpleDateFormat DAY_FORMAT = new SimpleDateFormat("dd", Locale.getDefault());
340 Locale.getDefault()).toUpperCase(Locale.getDefault())); in updateDisplay()
344 Locale.getDefault()).toUpperCase(Locale.getDefault())); in updateDisplay()

123456789