Home
last modified time | relevance | path

Searched refs:getDefault (Results 1 – 25 of 210) 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.java220 EventBus.getDefault().post(new RecentsDrawnEvent());
295 EventBus.getDefault().send(dismissEvent); in dismissRecentsToHome()
325 EventBus.getDefault().register(this, EVENT_BUS_PRIORITY); in onCreate()
379 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true)); in onStart()
433 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in reloadStackView()
467 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in onEnterAnimationComplete()
485 EventBus.getDefault().send(new ConfigurationChangedEvent(false /* fromMultiWindow */, in onConfigurationChanged()
505 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false)); in onStop()
537 EventBus.getDefault().unregister(this); in onDestroy()
543 EventBus.getDefault().register(mScrimViews, EVENT_BUS_PRIORITY); in onAttachedToWindow()
[all …]
DRecentsSystemUser.java96 EventBus.getDefault().post(new RecentsDrawnEvent()); in sendRecentsDrawnEvent()
101 EventBus.getDefault().post(new DockedTopTaskEvent(dragMode, initialRect)); in sendDockingTopTaskEvent()
106 EventBus.getDefault().post(new RecentsActivityStartingEvent()); in sendLaunchRecentsEvent()
DRecentsImpl.java180 EventBus.getDefault().send(new ActivityPinnedEvent(taskId)); in onActivityPinned()
192 EventBus.getDefault().send(new ActivityUnpinnedEvent()); in onActivityUnpinned()
203 EventBus.getDefault().send(new TaskSnapshotChangedEvent(taskId, in onTaskSnapshotChanged()
358 EventBus.getDefault().post(new HideRecentsEvent(triggeredFromAltTab, in hideRecents()
386 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
388 EventBus.getDefault().post(new LaunchMostRecentTaskRequestEvent()); in toggleRecents()
393 EventBus.getDefault().post(new LaunchNextTaskRequestEvent()); in toggleRecents()
396 EventBus.getDefault().post(new IterateRecentsEvent()); in toggleRecents()
408 EventBus.getDefault().post(new ToggleRecentsEvent()); in toggleRecents()
472 EventBus.getDefault().sendOntoMainThread(new DraggingInRecentsEvent(distanceFromTop));
[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/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsViewTouchHandler.java110 EventBus.getDefault().send(new HideRecentsEvent(false, true)); in onTouchEvent()
146 EventBus.getDefault().send(new ShowIncompatibleAppOverlayEvent()); in onBusEvent()
160 EventBus.getDefault().send(new DragStartInitializeDropTargetsEvent(event.task, in onBusEvent()
172 EventBus.getDefault().send(new HideIncompatibleAppOverlayEvent()); in onBusEvent()
232 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, in handleTouchEvent()
248 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, null)); in handleTouchEvent()
250 EventBus.getDefault().send(new DragEndEvent(mDragTask, mTaskView, in handleTouchEvent()
DRecentsTransitionHelper.java93 EventBus.getDefault().send(new ScreenPinningRequestEvent(mContext, taskId)); in run()
123 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
124 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
139 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
140 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
163 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
165 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
210 EventBus.getDefault().send(new LaunchTaskSucceededEvent(taskIndexFromFront));
218 EventBus.getDefault().send(new LaunchTaskFailedEvent());
DRecentsView.java151 EventBus.getDefault().send(new DismissAllTaskViewsEvent()); in RecentsView()
240 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null, in launchFocusedTask()
257 EventBus.getDefault().send(new ExpandPipEvent()); in launchPreviousTask()
265 EventBus.getDefault().send(new LaunchTaskEvent(taskView, task, null, in launchPreviousTask()
282 EventBus.getDefault().send(new LaunchTaskEvent(tv, task, taskBounds, in launchTask()
318 EventBus.getDefault().register(this, RecentsActivity.EVENT_BUS_PRIORITY + 1); in onAttachedToWindow()
319 EventBus.getDefault().register(mTouchHandler, RecentsActivity.EVENT_BUS_PRIORITY + 2); in onAttachedToWindow()
326 EventBus.getDefault().unregister(this); in onDetachedFromWindow()
327 EventBus.getDefault().unregister(mTouchHandler); in onDetachedFromWindow()
522 EventBus.getDefault().send(new DockedFirstAnimationFrameEvent()); in onBusEvent()
[all …]
/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/base/telephony/java/android/telephony/
DSmsMessage.java172 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in createFromPdu()
761 if (!SmsManager.getDefault().isImsSmsSupported()) { in useCdmaFormatForMoSms()
766 return (SmsConstants.FORMAT_3GPP2.equals(SmsManager.getDefault().getImsSmsFormat())); in useCdmaFormatForMoSms()
775 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in isCdmaVoice()
792 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in hasEmsSupport()
793 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport()
824 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in shouldAppendPageNumberAsPrefix()
825 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
DCellLocation.java63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in newFromBundle()
97 switch(TelephonyManager.getDefault().getCurrentPhoneType()) { in getEmpty()
/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/tools/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/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()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTtsEnginesTests.java65 assertEquals(Locale.getDefault(), in testGetLocalePrefForEngine()
67 assertEquals(Locale.getDefault(), in testGetLocalePrefForEngine()

123456789