Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/tests/coretests/src/android/os/
DLocaleListTest.java65 final Locale originalLocale = Locale.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
66 final LocaleList originalLocaleList = LocaleList.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
73 assertEquals("en", Locale.getDefault().toLanguageTag()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
74 final LocaleList firstResult = LocaleList.getDefault(); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
75 assertEquals("ae,en,ja", LocaleList.getDefault().toLanguageTags()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
78 assertSame(firstResult, LocaleList.getDefault()); in testGetDefault_localeSetDefaultCalledButNoChangeNecessary()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsActivity.java235 EventBus.getDefault().post(new RecentsDrawnEvent());
310 EventBus.getDefault().send(dismissEvent); in dismissRecentsToHome()
340 EventBus.getDefault().register(this, EVENT_BUS_PRIORITY); in onCreate()
401 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true)); in onStart()
491 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in reloadStackView()
525 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in onEnterAnimationComplete()
530 EventBus.getDefault().send(new SetWaitingForTransitionStartEvent(false)); in onEnterAnimationComplete()
553 EventBus.getDefault().send(new ConfigurationChangedEvent(false /* fromMultiWindow */, in onConfigurationChanged()
576 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false)); in onStop()
610 EventBus.getDefault().unregister(this); in onDestroy()
[all …]
DRecentsSystemUser.java97 EventBus.getDefault().post(new RecentsDrawnEvent()); in sendRecentsDrawnEvent()
102 EventBus.getDefault().post(new DockedTopTaskEvent(dragMode, initialRect)); in sendDockingTopTaskEvent()
107 EventBus.getDefault().post(new RecentsActivityStartingEvent()); in sendLaunchRecentsEvent()
112 EventBus.getDefault().post(new SetWaitingForTransitionStartEvent( in setWaitingForTransitionStartEvent()
DRecentsImpl.java186 EventBus.getDefault().send(new ActivityPinnedEvent(taskId)); in onActivityPinned()
198 EventBus.getDefault().send(new ActivityUnpinnedEvent()); in onActivityUnpinned()
209 EventBus.getDefault().send(new TaskSnapshotChangedEvent(taskId, in onTaskSnapshotChanged()
378 EventBus.getDefault().post(new HideRecentsEvent(triggeredFromAltTab, in hideRecents()
416 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
418 EventBus.getDefault().post(new LaunchMostRecentTaskRequestEvent()); in toggleRecents()
423 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
426 EventBus.getDefault().post(new IterateRecentsEvent()); in toggleRecents()
438 EventBus.getDefault().post(new ToggleRecentsEvent()); in toggleRecents()
507 EventBus.getDefault().sendOntoMainThread(new DraggingInRecentsEvent(distanceFromTop));
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsTransitionHelper.java94 EventBus.getDefault().send(new ScreenPinningRequestEvent(mContext, taskId)); in run()
133 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
134 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
145 EventBus.getDefault().send(new SetWaitingForTransitionStartEvent(false)); in launchTaskFromRecents()
164 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
165 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
170 EventBus.getDefault().send(new SetWaitingForTransitionStartEvent(false)); in launchTaskFromRecents()
176 EventBus.getDefault().send(new SetWaitingForTransitionStartEvent(true)); in launchTaskFromRecents()
195 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
197 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
[all …]
DRecentsViewTouchHandler.java112 EventBus.getDefault().send(new HideRecentsEvent(false, true)); in onTouchEvent()
148 EventBus.getDefault().send(new ShowIncompatibleAppOverlayEvent()); in onBusEvent()
162 EventBus.getDefault().send(new DragStartInitializeDropTargetsEvent(event.task, in onBusEvent()
174 EventBus.getDefault().send(new HideIncompatibleAppOverlayEvent()); in onBusEvent()
259 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, in handleTouchEvent()
271 EventBus.getDefault().send(new DismissAllTaskViewsEvent()); in handleTouchEvent()
278 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, null)); in handleTouchEvent()
280 EventBus.getDefault().send(new DragEndEvent(mDragTask, mTaskView, in handleTouchEvent()
DRecentsView.java335 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null,
352 EventBus.getDefault().send(new ExpandPipEvent());
360 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null,
377 EventBus.getDefault().send(new LaunchTaskEvent(tv, task, taskBounds,
426 EventBus.getDefault().register(this, RecentsActivity.EVENT_BUS_PRIORITY + 1);
427 EventBus.getDefault().register(mTouchHandler, RecentsActivity.EVENT_BUS_PRIORITY + 2);
434 EventBus.getDefault().unregister(this);
435 EventBus.getDefault().unregister(mTouchHandler);
569 EventBus.getDefault().send(new HideStackActionButtonEvent(false /* translate */));
577 EventBus.getDefault().send(new HideStackActionButtonEvent());
[all …]
/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/core/java/android/text/format/
DDateUtils.java200 LocaleData d = LocaleData.get(Locale.getDefault()); in getDayOfWeekString()
222 return LocaleData.get(Locale.getDefault()).amPm[ampm - Calendar.AM]; in getAMPMString()
238 LocaleData d = LocaleData.get(Locale.getDefault()); in getMonthString()
302 return RelativeDateTimeFormatter.getRelativeTimeSpanString(Locale.getDefault(), in getRelativeTimeSpanString()
303 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
336 return RelativeDateTimeFormatter.getRelativeDateTimeString(Locale.getDefault(), in getRelativeDateTimeString()
337 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
396 final MeasureFormat formatter = MeasureFormat.getInstance(Locale.getDefault(), width); in formatDuration()
452 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
536 Formatter f = new Formatter(new StringBuilder(50), Locale.getDefault()); in formatDateRange()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java165 ResponseCache installed = ResponseCache.getDefault(); in getInstalled()
184 ResponseCache installed = ResponseCache.getDefault(); in install()
278 if (ResponseCache.getDefault() == this) { in close()
288 if (ResponseCache.getDefault() == this) { in delete()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DOsuProviderInfoTest.java96 Locale defaultLocale = Locale.getDefault(); in getFriendlyNameMatchingDefaultLocale()
121 if (nonDefaultLocale.equals(Locale.getDefault())) { in getFriendlyNameNotMatchingDefaultLocale()
156 Locale defaultLocale = Locale.getDefault(); in getServiceDescriptionMatchingDefaultLocale()
182 if (nonDefaultLocale.equals(Locale.getDefault())) { in getServiceDescriptionNotMatchingDefaultLocale()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java37 mCurrentZone = TimeZone.getDefault().getID(); in setUp()
64 String newZone = TimeZone.getDefault().getID(); in testSetTimeZonePermissions()
/frameworks/base/telephony/java/android/telephony/
DCellLocation.java63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in newFromBundle()
97 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in getEmpty()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DAndroidLocale.java62 public static Locale getDefault() { in getDefault() method in AndroidLocale
70 return Locale.getDefault(); in getDefault()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DRecentsPackageMonitor.java59 EventBus.getDefault().post(new PackagesChangedEvent(this, packageName, eventUserId)); in onPackageRemoved()
72 EventBus.getDefault().post(new PackagesChangedEvent(this, packageName, eventUserId)); in onPackageModified()
/frameworks/support/compat/java/android/support/v4/os/
DLocaleListCompat.java313 return LocaleListCompat.create(Locale.getDefault()); in getAdjustedDefault()
329 public static LocaleListCompat getDefault() { in getDefault() method in LocaleListCompat
331 return LocaleListCompat.wrap(LocaleList.getDefault()); in getDefault()
333 return LocaleListCompat.create(Locale.getDefault()); in getDefault()
/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/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DForcedResizableInfoActivityController.java77 EventBus.getDefault().register(this); in ForcedResizableInfoActivityController()
129 EventBus.getDefault().send(new ShowUserToastEvent( in activityDismissingDockedStack()
134 EventBus.getDefault().send(new ShowUserToastEvent( in activityLaunchOnSecondaryDisplayFailed()
/frameworks/base/core/java/com/android/internal/app/
DLocaleHelper.java128 return getDisplayName(locale, Locale.getDefault(), sentenceCase); in getDisplayName()
149 return ULocale.getDisplayCountry(locale.toLanguageTag(), ULocale.getDefault()); in getDisplayCountry()
164 final Locale dispLocale = displayLocale == null ? Locale.getDefault() : displayLocale; in getDisplayLocaleList()
/frameworks/support/design/tests/src/android/support/design/widget/
DTextInputLayoutPseudoLocaleTest.java40 private static final String ORIGINAL_LANGUAGE = Locale.getDefault().getLanguage();
41 private static final String ORIGINAL_COUNTRY = Locale.getDefault().getLanguage();
/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/telephony/java/com/android/internal/telephony/
DSms7BitEncodingTranslator.java163 if (!SmsManager.getDefault().isImsSmsSupported()) { in useCdmaFormatForMoSms()
165 return TelephonyManager.getDefault().getCurrentPhoneType() in useCdmaFormatForMoSms()
169 return (SmsConstants.FORMAT_3GPP2.equals(SmsManager.getDefault().getImsSmsFormat())); in useCdmaFormatForMoSms()

123456789