Home
last modified time | relevance | path

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

12345678910>>...23

/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()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java186 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
191 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
194 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
207 mRttChatbot = new RttChatbot(getApplicationContext(), in startOutgoing()
229 mRttChatbot = new RttChatbot(getApplicationContext(), in onAnswer()
287 mRttChatbot = new RttChatbot(getApplicationContext(), rttTextStream); in handleRttUpgradeResponse()
298 mRttChatbot = new RttChatbot(getApplicationContext(), textStream); in onStartRtt()
311 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
313 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
367 Toast.makeText(getApplicationContext(), "Got subject :" + callSubject,
[all …]
/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/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()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsApplication.java48 return ((DocumentsApplication) context.getApplicationContext()).mProviders; in getProvidersCache()
52 final DocumentsApplication app = (DocumentsApplication) context.getApplicationContext(); in getThumbnailCache()
68 return ((DocumentsApplication) context.getApplicationContext()).mClipper; in getDocumentClipper()
72 return ((DocumentsApplication) context.getApplicationContext()).mClipStore; in getClipStore()
76 return ((DocumentsApplication) context.getApplicationContext()).mDragAndDropManager; in getDragAndDropManager()
80 return ((DocumentsApplication) context.getApplicationContext()).mFileTypeLookup; in getFileTypeLookup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java93 assertThat(mImpl.mContext).isEqualTo(mActivity.getApplicationContext()); in shouldHoldAppContext()
99 ShadowApplication.getInstance().getApplicationContext()); in bindPreference_shouldBindAllData()
121 ShadowApplication.getInstance().getApplicationContext()); in bindPreference_noFragmentMetadata_shouldBindIntent()
147 when(mActivity.getApplicationContext().getSystemService(Context.USER_SERVICE)) in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
195 when(mActivity.getApplicationContext().getPackageName()) in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
278 final Preference preference = new Preference(application.getApplicationContext()); in bindPreference_withIntentActionMetatdata_shouldSetLaunchAction()
304 final Preference preference = new Preference(application.getApplicationContext()); in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything()
358 ShadowApplication.getInstance().getApplicationContext(), in getPreferences_hasTileForCategory_shouldReturnPrefList()
371 final Resources res = mActivity.getApplicationContext().getResources(); in testShouldTintIcon_shouldReturnValueFromResource()
DDashboardFragmentTest.java81 mTestFragment = new TestFragment(ShadowApplication.getInstance().getApplicationContext()); in setUp()
88 mTestFragment.onAttach(ShadowApplication.getInstance().getApplicationContext()); in setUp()
152 mTestFragment.onAttach(ShadowApplication.getInstance().getApplicationContext()); in updateState_skipUnavailablePrefs()
190 ShadowApplication.getInstance().getApplicationContext().getPackageName(), in tintTileIcon_noMetadata_shouldReturnPackageNameCheck()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompat.java37 sInstance = new UserManagerCompatVNMr1(context.getApplicationContext()); in getInstance()
39 sInstance = new UserManagerCompatVN(context.getApplicationContext()); in getInstance()
41 sInstance = new UserManagerCompatVM(context.getApplicationContext()); in getInstance()
43 sInstance = new UserManagerCompatVL(context.getApplicationContext()); in getInstance()
/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/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java207 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in testNonDefaultDaysToRetain()
263 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in disableSmartStorageIfPastThreshold()
282 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in dontDisableSmartStorageIfPastThresholdAndDisabledInThePast()
303 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in logDisabledByPolicyIfPastThreshold()
323 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in dontDisableSmartStorageIfNotPastThreshold()
360 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); in activateASM()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiConnScanReceiver.java53 mWifiManager = (WifiManager) context.getApplicationContext() in onReceive()
85 mContext.getApplicationContext().registerReceiver(mWifiScanReceiver, in ConnectvityScanTask()
117 mContext.getApplicationContext().unregisterReceiver(mWifiScanReceiver); in onCancelled()
134 mContext.getApplicationContext().unregisterReceiver(mWifiScanReceiver); in onPostExecute()
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEnginePreferenceFragment.java57 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
59 mTts = new TextToSpeech(getActivity().getApplicationContext(), null); in onCreate()
147 mTts = new TextToSpeech(getActivity().getApplicationContext(), mUpdateListener, engine); in updateDefaultEngine()
171 getActivity().getApplicationContext(), null, mPreviousEngine); in onUpdateEngine()
/packages/apps/Settings/tests/robotests/src/com/android/settings/backup/
DBackupSettingsActivityTest.java131 mApplication.getApplicationContext(), true); in getNonIndexableKeys_SystemUser()
134 mApplication.getApplicationContext()); in getNonIndexableKeys_SystemUser()
147 mApplication.getApplicationContext(), true); in getNonIndexableKeys_NonSystemUser()
150 mApplication.getApplicationContext()); in getNonIndexableKeys_NonSystemUser()
DBackupSettingsHelperTest.java80 mContext = spy(RuntimeEnvironment.application.getApplicationContext()); in setUp()
325 when(mContext.getApplicationContext()).thenReturn(mContext); in testIsBackupProvidedByManufacturer_WithIntent()
340 when(mContext.getApplicationContext()).thenReturn(mContext); in testIsBackupProvidedByManufacturer_WithoutIntent()
355 when(mContext.getApplicationContext()).thenReturn(mContext); in testGetLabelProvidedByManufacturer()
370 when(mContext.getApplicationContext()).thenReturn(mContext); in testGetIntentProvidedByManufacturer()
/packages/apps/Settings/tests/app/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java340 mSpyContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
341 doReturn(mSpyContext).when(mSpyContext).getApplicationContext(); in setUp()
458 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
462 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
465 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem()
520 .getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in setupAudioService()
658 Context localAppContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in startOutgoingPhoneCallWaitForBroadcaster()
696 verify(mComponentContextFixture.getTestDouble().getApplicationContext(), in startOutgoingPhoneCallPendingCreateConnection()
/packages/apps/TV/src/com/android/tv/license/
DLicenses.java41 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1) in hasLicenses()
49 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1), in getLicenses()
92 context.getApplicationContext().getResources().openRawResource(resourcesIdentifier); in getTextFromResource()
/packages/apps/Settings/tests/app/src/com/android/settings/notification/
DSoundSettingsIntegrationTest.java52 mAudioManager = (AudioManager) mActivityRule.getActivity().getApplicationContext() in soundPreferenceShowsCorrectSummaryOnSilentMode()
63 mAudioManager = (AudioManager) mActivityRule.getActivity().getApplicationContext() in soundPreferenceShowsCorrectSummaryOnVibrateMode()
73 mAudioManager = (AudioManager) mActivityRule.getActivity().getApplicationContext() in soundPreferenceShowsCorrectSummaryOnMaxVolume()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java81 maybeShowNotificationIntent.setClass(getApplicationContext(), in onStartJob()
83 getApplicationContext().sendBroadcast(maybeShowNotificationIntent); in onStartJob()
132 Context context = getApplicationContext(); in preconditionsFulfilled()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java201 getApplicationContext().getSystemService(Context.CARRIER_CONFIG_SERVICE); in getDuplicateExpirationTime()
249 getApplicationContext().getResources().getBoolean(R.bool.duplicate_compare_body); in handleCellBroadcastIntent()
354 Context context = getApplicationContext(); in isRoaming()
414 .getInstance().getCellBroadcastChannelRanges(getApplicationContext()); in isMessageEnabledByUser()
529 .getInstance().getCellBroadcastChannelRanges(getApplicationContext()); in openEmergencyAlertNotification()

12345678910>>...23