Home
last modified time | relevance | path

Searched refs:getApplicationContext (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java62 getApplicationContext().getResources().getInteger(
66 getApplicationContext().getResources().getInteger(
70 getApplicationContext().getResources().getInteger(
74 getApplicationContext().getResources().getInteger(
88 UiUtils.showToastAtBottom(getApplicationContext().getString(messageId)); in showToastAtBottom()
93 final Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG); in showToastAtBottom()
100 final Toast toast = Toast.makeText(getApplicationContext(), in showToast()
101 getApplicationContext().getString(messageId), Toast.LENGTH_LONG); in showToast()
108 final Toast toast = Toast.makeText(getApplicationContext(), in showToast()
109 getApplicationContext().getResources().getQuantityString(pluralsMessageId, count), in showToast()
[all …]
DUriUtil.java142 pfd = Factory.get().getApplicationContext() in getContentSize()
183 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace()
196 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace()
234 final Context context = Factory.get().getApplicationContext(); in persistContent()
253 final Context context = Factory.get().getApplicationContext(); in persistContent()
341 final Context context = Factory.get().getApplicationContext(); in getUriContentLength()
DNotificationPlayer.java86 (AudioManager) Factory.get().getApplicationContext() in run()
91 player.setDataSource(Factory.get().getApplicationContext(), mCmd.uri); in run()
346 final PowerManager pm = (PowerManager) Factory.get().getApplicationContext() in setUsesWakeLock()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java218 NotificationManagerCompat.from(Factory.get().getApplicationContext()); in cancel()
243 final Context context = Factory.get().getApplicationContext(); in cancel()
305 final Context context = Factory.get().getApplicationContext(); in shouldNotify()
325 final Context context = Factory.get().getApplicationContext(); in shouldVibrate()
349 final Context context = Factory.get().getApplicationContext(); in buildNotificationTag()
397 final Resources resources = Factory.get().getApplicationContext().getResources(); in checkInitialized()
413 final Context context = Factory.get().getApplicationContext(); in processAndSend()
616 final Context context = Factory.get().getApplicationContext(); in createMessageNotification()
683 final Context context = Factory.get().getApplicationContext(); in sendNotification()
778 final Context context = Factory.get().getApplicationContext(); in fireOffNotification()
[all …]
DMessagingContentProvider.java107 final Context context = Factory.get().getApplicationContext(); in notifyEverythingChanged()
129 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyParticipantsChanged()
134 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllMessagesChanged()
139 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllParticipantsChanged()
183 final Context context = Factory.get().getApplicationContext(); in notifyMessagesChanged()
203 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyConversationMetadataChanged()
209 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyPartsChanged()
214 final Context context = Factory.get().getApplicationContext(); in notifyConversationListChanged()
DMessageNotificationState.java347 Factory.get().getApplicationContext(), in getClearIntent()
369 mTitle = Factory.get().getApplicationContext().getResources().getQuantityString( in MultiConversationNotificationState()
399 final Context context = Factory.get().getApplicationContext(); in build()
474 final Context context = Factory.get().getApplicationContext(); in MultiMessageNotificationState()
625 final Context context = Factory.get().getApplicationContext(); in scanFirstNames()
664 final Context context = Factory.get().getApplicationContext(); in buildConversationPageForWearable()
827 final Context context = Factory.get().getApplicationContext(); in createConversationInfoList()
1194 final Context context = Factory.get().getApplicationContext(); in checkFailedMessages()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java123 getApplicationContext())); in onStartCommand()
125 getApplicationContext(), mElapsedTime, readLapsFromPrefs())); in onStartCommand()
157 Intent activityIntent = new Intent(getApplicationContext(), DeskClock.class); in onDestroy()
167 Context context = getApplicationContext(); in setNotification()
279 getApplicationContext()); in saveNotification()
297 getApplicationContext()); in showSavedNotification()
318 getApplicationContext()); in clearSavedNotification()
334 getApplicationContext()); in readFromSharedPrefs()
342 getApplicationContext()); in readLapsFromPrefs()
361 getApplicationContext()); in writeToSharedPrefs()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java76 if (AccessibilityUtil.isTouchExplorationEnabled(Factory.get().getApplicationContext())) { in onSendMessageOrManualDownloadActionCompleted()
100 final Context context = Factory.get().getApplicationContext(); in onMessageReceived()
124 Toast.makeText(getApplicationContext(), in showToast()
125 getApplicationContext().getString(messageResId), Toast.LENGTH_LONG).show(); in showToast()
134 Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show(); in showToast()
139 private static Context getApplicationContext() { in getApplicationContext() method in BugleActionToasts
140 return Factory.get().getApplicationContext(); in getApplicationContext()
DActionServiceImpl.java136 final Intent intent = new Intent(Factory.get().getApplicationContext(), in makeIntent()
152 final Intent intent = new Intent(Factory.get().getApplicationContext(), in makeIntent()
161 final Context context = Factory.get().getApplicationContext(); in scheduleAlarm()
226 final Context context = Factory.get().getApplicationContext(); in startServiceWithIntent()
DInsertNewMessageAction.java265 final long threadId = MmsUtils.getOrCreateThreadId(Factory.get().getApplicationContext(), in createMessage()
295 final Context context = Factory.get().getApplicationContext(); in insertBroadcastSmsMessage()
352 final Context context = Factory.get().getApplicationContext(); in insertSendingSmsMessage()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java640 final Context context = Factory.get().getApplicationContext(); in groupMmsEnabled()
692 final Context context = Factory.get().getApplicationContext(); in getMediaFileSize()
729 final Context context = Factory.get().getApplicationContext(); in getRecipientsByThread()
741 final Context context = Factory.get().getApplicationContext(); in getRawRecipientIdsForThread()
1144 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in isDataRoamingEnabled()
1157 final Context context = Factory.get().getApplicationContext(); in allowMmsAutoRetrieve()
1217 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsStatusAndDateSent()
1272 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMediaMessages()
1366 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMessagesOlderThan()
1393 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsReadStatus()
[all …]
DSmsStorageStatusManager.java63 final Context context = Factory.get().getApplicationContext(); in postStorageLowNotification()
83 NotificationManagerCompat.from(Factory.get().getApplicationContext()); in postStorageLowNotification()
94 NotificationManagerCompat.from(Factory.get().getApplicationContext()); in cancelStorageLowNotification()
100 return Factory.get().getApplicationContext().getPackageName() + ":smsstoragelow"; in getNotificationTag()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java169 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
174 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
250 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver( in cleanup()
252 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver( in cleanup()
306 Toast.makeText(getApplicationContext(), "Got subject :" + callSubject, in onCreateOutgoingConnection()
429 new TestVideoProvider(getApplicationContext(), connection); in addVideoProvider()
491 MediaPlayer mediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.beep_boop); in createMediaPlayer()
/packages/apps/Settings/tests/src/com/android/settings/
DSettingsHookTests.java70 Context context = mSettings.getApplicationContext(); in testSettingsHookTestAppAvailable()
82 Context context = mSettings.getApplicationContext(); in testOperatorIntentFilter()
100 Context context = mSettings.getApplicationContext(); in testManufacturerIntentFilter()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java262 final Context context = Factory.get().getApplicationContext(); in postNewMessageSecondaryUserNotification()
282 NotificationManagerCompat.from(Factory.get().getApplicationContext()); in postNewMessageSecondaryUserNotification()
299 NotificationManagerCompat.from(Factory.get().getApplicationContext()); in cancelSecondaryUserNotification()
305 return Factory.get().getApplicationContext().getPackageName() + ":secondaryuser"; in getNotificationTag()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java209 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
213 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
216 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
304 verify(mComponentContextFixture.getTestDouble().getApplicationContext()) in startOutgoingPhoneCall()
668 .getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in testAudioManagerOperations()
DPhoneAccountRegistrarTest.java58 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in setUp()
62 mComponentContextFixture.getTestDouble().getApplicationContext(), in setUp()
70 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in tearDown()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java169 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate()
170 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
535 mTts = new TextToSpeech(getActivity().getApplicationContext(), mUpdateListener, engine); in updateDefaultEngine()
556 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener, in onUpdateEngine()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java143 findRecordBySlotId(getApplicationContext(), i); in onCreate()
297 getApplicationContext(), mSir.getSubscriptionId()) in updatePreferences()
391 if (!SubscriptionManager.getResourcesForSubId(getApplicationContext(), in updatePreferences()
402 getApplicationContext(), mSir.getSubscriptionId()).getBoolean( in updatePreferences()
/packages/apps/Browser/src/com/android/browser/
DAddBookmarkPage.java754 mContext = ctx.getApplicationContext(); in SaveBookmarkRunnable()
788 mContext = context.getApplicationContext(); in UpdateBookmarkTask()
914 new UpdateBookmarkTask(getApplicationContext(), id).execute(values); in save()
955 Thread t = new Thread(new SaveBookmarkRunnable(getApplicationContext(), msg)); in save()
1073 mContext = context.getApplicationContext(); in EditBookmarkInfoLoader()
DBrowser.java42 BrowserSettings.initialize(getApplicationContext()); in onCreate()
43 Preloader.initialize(getApplicationContext()); in onCreate()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java430 Factory.get().getApplicationContext().getContentResolver().delete( in destroyAsync()
443 Factory.get().getApplicationContext().getContentResolver().delete( in destroySync()
454 Factory.get().getApplicationContext(), mContentUri); in decodeAndSaveSizeIfImage()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompat.java38 sInstance = new UserManagerCompatVL(context.getApplicationContext()); in getInstance()
40 sInstance = new UserManagerCompatV17(context.getApplicationContext()); in getInstance()
DAppWidgetManagerCompat.java44 sInstance = new AppWidgetManagerCompatVL(context.getApplicationContext()); in getInstance()
46 sInstance = new AppWidgetManagerCompatV16(context.getApplicationContext()); in getInstance()
/packages/apps/InCallUI/src/com/android/incallui/
DInCallServiceImpl.java63 final Context context = getApplicationContext(); in onBind()
66 getApplicationContext(), in onBind()

12345678910>>...12