Home
last modified time | relevance | path

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

1234567891011

/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.java125 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent());
189 EventBus.getDefault().post(new RecentsDrawnEvent());
255 EventBus.getDefault().send(dismissEvent); in dismissRecentsToHome()
285 EventBus.getDefault().register(this, EVENT_BUS_PRIORITY); in onCreate()
339 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true)); in onStart()
393 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in reloadStackView()
454 EventBus.getDefault().send(new ConfigurationChangedEvent(false /* fromMultiWindow */, in onConfigurationChanged()
482 EventBus.getDefault().send(new ConfigurationChangedEvent(true /* fromMultiWindow */, in onMultiWindowModeChanged()
485 EventBus.getDefault().send(new MultiWindowStateChangedEvent(isInMultiWindowMode, in onMultiWindowModeChanged()
496 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false)); in onStop()
[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()
/frameworks/base/core/java/android/app/
DActivityManager.java786 return ActivityManagerNative.getDefault().getFrontActivityScreenCompatMode(); in getFrontActivityScreenCompatMode()
795 ActivityManagerNative.getDefault().setFrontActivityScreenCompatMode(mode); in setFrontActivityScreenCompatMode()
804 return ActivityManagerNative.getDefault().getPackageScreenCompatMode(packageName); in getPackageScreenCompatMode()
813 ActivityManagerNative.getDefault().setPackageScreenCompatMode(packageName, mode); in setPackageScreenCompatMode()
822 return ActivityManagerNative.getDefault().getPackageAskScreenCompat(packageName); in getPackageAskScreenCompat()
831 ActivityManagerNative.getDefault().setPackageAskScreenCompat(packageName, ask); in setPackageAskScreenCompat()
1126 return ActivityManagerNative.getDefault().getTaskDescriptionIcon(iconFilename, in loadTaskDescriptionIcon()
1515 return ActivityManagerNative.getDefault().getRecentTasks(maxNum, in getRecentTasks()
1540 return ActivityManagerNative.getDefault().getRecentTasks(maxNum, in getRecentTasksForUser()
1686 appTasks = ActivityManagerNative.getDefault().getAppTasks(mContext.getPackageName()); in getAppTasks()
[all …]
DPendingIntent.java342 ActivityManagerNative.getDefault().getIntentSender( in getActivity()
367 ActivityManagerNative.getDefault().getIntentSender( in getActivityAsUser()
484 ActivityManagerNative.getDefault().getIntentSender( in getActivities()
510 ActivityManagerNative.getDefault().getIntentSender( in getActivitiesAsUser()
562 ActivityManagerNative.getDefault().getIntentSender( in getBroadcastAsUser()
605 ActivityManagerNative.getDefault().getIntentSender( in getService()
632 ActivityManagerNative.getDefault().cancelIntentSender(mTarget); in cancel()
836 int res = ActivityManagerNative.getDefault().sendIntentSender( in send()
856 return ActivityManagerNative.getDefault() in getTargetPackage()
885 return ActivityManagerNative.getDefault() in getCreatorPackage()
[all …]
DActivity.java1310 && ActivityManagerNative.getDefault().isRootVoiceInteraction(mToken); in isVoiceInteractionRoot()
1333 return ActivityManagerNative.getDefault().supportsLocalVoiceInteraction(); in isLocalVoiceInteractionSupported()
1347 ActivityManagerNative.getDefault().startLocalVoiceInteraction(mToken, privateOptions); in startLocalVoiceInteraction()
1376 ActivityManagerNative.getDefault().stopLocalVoiceInteraction(mToken); in stopLocalVoiceInteraction()
1750 return ActivityManagerNative.getDefault().showAssistFromActivity(mToken, args); in showAssist()
1866 ActivityManagerNative.getDefault().reportActivityFullyDrawn(mToken); in reportFullyDrawn()
1892 return ActivityManagerNative.getDefault().isInMultiWindowMode(mToken); in isInMultiWindowMode()
1917 return ActivityManagerNative.getDefault().isInPictureInPictureMode(mToken); in isInPictureInPictureMode()
1929 ActivityManagerNative.getDefault().enterPictureInPictureMode(mToken); in enterPictureInPictureMode()
2963 ActivityManagerNative.getDefault().exitFreeformMode(mToken); in exitFreeformMode()
[all …]
DContextImpl.java800 ActivityManagerNative.getDefault().startActivityAsUser( in startActivityAsUser()
862 int result = ActivityManagerNative.getDefault() in startIntentSender()
881 ActivityManagerNative.getDefault().broadcastIntent( in sendBroadcast()
898 ActivityManagerNative.getDefault().broadcastIntent( in sendBroadcast()
913 ActivityManagerNative.getDefault().broadcastIntent( in sendBroadcastMultiplePermissions()
930 ActivityManagerNative.getDefault().broadcastIntent( in sendBroadcast()
947 ActivityManagerNative.getDefault().broadcastIntent( in sendBroadcast()
964 ActivityManagerNative.getDefault().broadcastIntent( in sendOrderedBroadcast()
1027 ActivityManagerNative.getDefault().broadcastIntent( in sendOrderedBroadcast()
1041 ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(), in sendBroadcastAsUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
DRecentsTvTransitionHelper.java65 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
66 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
74 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
85 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
100 EventBus.getDefault().send(new LaunchTaskSucceededEvent(taskIndexFromFront)); in startTaskActivity()
103 EventBus.getDefault().send(new LaunchTaskFailedEvent()); in startTaskActivity()
/frameworks/base/services/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java63 IBinder permissionOwner = ActivityManagerNative.getDefault(). in take()
73 ActivityManagerNative.getDefault().grantUriPermissionFromOwner( in doTake()
102 permissionOwner = ActivityManagerNative.getDefault(). in release()
117 ActivityManagerNative.getDefault().revokeUriPermissionFromOwner( in release()
/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.java194 LocaleData d = LocaleData.get(Locale.getDefault()); in getDayOfWeekString()
216 return LocaleData.get(Locale.getDefault()).amPm[ampm - Calendar.AM]; in getAMPMString()
232 LocaleData d = LocaleData.get(Locale.getDefault()); in getMonthString()
296 return RelativeDateTimeFormatter.getRelativeTimeSpanString(Locale.getDefault(), in getRelativeTimeSpanString()
297 TimeZone.getDefault(), time, now, minResolution, flags); in getRelativeTimeSpanString()
330 return RelativeDateTimeFormatter.getRelativeDateTimeString(Locale.getDefault(), in getRelativeDateTimeString()
331 TimeZone.getDefault(), time, System.currentTimeMillis(), minResolution, in getRelativeDateTimeString()
418 Formatter f = new Formatter(sb, Locale.getDefault()); in formatElapsedTime()
502 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/core/java/android/content/
DIntentSender.java190 int res = ActivityManagerNative.getDefault().sendIntentSender(mTarget, in sendIntent()
210 return ActivityManagerNative.getDefault() in getTargetPackage()
229 return ActivityManagerNative.getDefault() in getCreatorPackage()
248 return ActivityManagerNative.getDefault() in getCreatorUid()
269 int uid = ActivityManagerNative.getDefault() in getCreatorUserHandle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsTransitionHelper.java87 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()
142 EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(task)); in launchTaskFromRecents()
143 EventBus.getDefault().send(new ExitRecentsWindowFirstAnimationFrameEvent()); in launchTaskFromRecents()
164 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
166 EventBus.getDefault().send(launchStartedEvent); in launchTaskFromRecents()
209 EventBus.getDefault().send(new LaunchTaskSucceededEvent(taskIndexFromFront));
217 EventBus.getDefault().send(new LaunchTaskFailedEvent());
DRecentsViewTouchHandler.java169 EventBus.getDefault().send(new ShowIncompatibleAppOverlayEvent()); in onBusEvent()
182 EventBus.getDefault().send(new DragStartInitializeDropTargetsEvent(event.task, in onBusEvent()
188 EventBus.getDefault().send(new HideIncompatibleAppOverlayEvent()); in onBusEvent()
247 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, in handleTouchEvent()
263 EventBus.getDefault().send(new DragDropTargetChangedEvent(mDragTask, null)); in handleTouchEvent()
265 EventBus.getDefault().send(new DragEndEvent(mDragTask, mTaskView, in handleTouchEvent()
/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/services/core/java/com/android/server/
DInputContentUriTokenHandler.java67 mPermissionOwnerToken = ActivityManagerNative.getDefault() in take()
81 ActivityManagerNative.getDefault().grantUriPermissionFromOwner( in doTakeLocked()
99 ActivityManagerNative.getDefault().revokeUriPermissionFromOwner( in release()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/
DRecentsTvActivity.java303 EventBus.getDefault().register(this, EVENT_BUS_PRIORITY); in onCreate()
355 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in onEnterAnimationComplete()
373 EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); in onResume()
378 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, true)); in onResume()
404 EventBus.getDefault().send(new DeleteTaskDataEvent(focusedTask)); in onResume()
440 EventBus.getDefault().send(new RecentsVisibilityChangedEvent(this, false)); in onStop()
466 EventBus.getDefault().unregister(this); in onDestroy()
482 EventBus.getDefault().send(new DismissFocusedTaskViewEvent()); in onKeyDown()
493 EventBus.getDefault().send(new UserInteractionEvent()); in onUserInteraction()
499 EventBus.getDefault().send(new ToggleRecentsEvent()); in onBackPressed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java69 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in onReceive()
99 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in wipeGuestSession()
125 ActivityManagerNative.getDefault().switchUser(UserHandle.USER_SYSTEM); in wipeGuestSession()
130 ActivityManagerNative.getDefault().switchUser(newGuest.id); in wipeGuestSession()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsMessage.java169 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in createFromPdu()
767 if (!SmsManager.getDefault().isImsSmsSupported()) { in useCdmaFormatForMoSms()
772 return (SmsConstants.FORMAT_3GPP2.equals(SmsManager.getDefault().getImsSmsFormat())); in useCdmaFormatForMoSms()
781 int activePhone = TelephonyManager.getDefault().getCurrentPhoneType(); in isCdmaVoice()
798 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in hasEmsSupport()
799 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in hasEmsSupport()
830 simOperator = TelephonyManager.getDefault().getSimOperatorNumeric(); in shouldAppendPageNumberAsPrefix()
831 gid = TelephonyManager.getDefault().getGroupIdLevel1(); in shouldAppendPageNumberAsPrefix()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DWindowManagerProxy.java75 ActivityManagerNative.getDefault()
91 ActivityManagerNative.getDefault().moveTasksToFullscreenStack(
103 ActivityManagerNative.getDefault().resizeStack(
127 ActivityManagerNative.getDefault().swapDockedAndFullscreenStack();
/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/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()

1234567891011