Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DBaseWallpaperInjector.java57 mPartnerProvider = new DefaultPartnerProvider(context.getApplicationContext()); in getPartnerProvider()
65 mPrefs = new DefaultWallpaperPreferences(context.getApplicationContext()); in getPreferences()
73 mWallpaperPersister = new DefaultWallpaperPersister(context.getApplicationContext()); in getWallpaperPersister()
81 mWallpaperRefresher = new DefaultWallpaperRefresher(context.getApplicationContext()); in getWallpaperRefresher()
89 mRequester = new WallpaperRequester(context.getApplicationContext()); in getRequester()
106 new DefaultCurrentWallpaperInfoFactory(context.getApplicationContext()); in getCurrentWallpaperFactory()
114 … mNetworkStatusNotifier = new DefaultNetworkStatusNotifier(context.getApplicationContext()); in getNetworkStatusNotifier()
123 context.getApplicationContext()); in getPackageStatusNotifier()
131 mAlarmManagerWrapper = new DefaultAlarmManagerWrapper(context.getApplicationContext()); in getAlarmManagerWrapper()
139 … mExploreIntentChecker = new DefaultExploreIntentChecker(context.getApplicationContext()); in getExploreIntentChecker()
[all …]
/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.java155 pfd = Factory.get().getApplicationContext() in getContentSize()
196 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace()
209 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace()
247 final Context context = Factory.get().getApplicationContext(); in persistContent()
266 final Context context = Factory.get().getApplicationContext(); in persistContent()
354 final Context context = Factory.get().getApplicationContext(); in getUriContentLength()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java189 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
194 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
197 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
217 mRttChatbot = new RttChatbot(getApplicationContext(), in startOutgoing()
239 mRttChatbot = new RttChatbot(getApplicationContext(), in onAnswer()
297 mRttChatbot = new RttChatbot(getApplicationContext(), rttTextStream); in handleRttUpgradeResponse()
308 mRttChatbot = new RttChatbot(getApplicationContext(), textStream); in onStartRtt()
321 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
323 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
382 Toast.makeText(getApplicationContext(), "Got subject :" + callSubject,
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsApplication.java75 return ((DocumentsApplication) context.getApplicationContext()).mProviders; in getProvidersCache()
79 final DocumentsApplication app = (DocumentsApplication) context.getApplicationContext(); in getThumbnailCache()
95 return ((DocumentsApplication) context.getApplicationContext()).mClipper; in getDocumentClipper()
99 return ((DocumentsApplication) context.getApplicationContext()).mClipStore; in getClipStore()
103 return ((DocumentsApplication) context.getApplicationContext()).mUserIdManager; in getUserIdManager()
107 return ((DocumentsApplication) context.getApplicationContext()).mDragAndDropManager; in getDragAndDropManager()
111 return ((DocumentsApplication) context.getApplicationContext()).mFileTypeLookup; in getFileTypeLookup()
166 SearchHistoryManager.getInstance(getApplicationContext()); in onCreate()
/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.java143 final Intent intent = new Intent(Factory.get().getApplicationContext(), in makeIntent()
159 final Intent intent = new Intent(Factory.get().getApplicationContext(), in makeIntent()
168 final Context context = Factory.get().getApplicationContext(); in scheduleAlarm()
230 final Context context = Factory.get().getApplicationContext(); in startServiceWithIntent()
/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()
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactoryImpl.java108 context.getApplicationContext()); in getPowerUsageFeatureProvider()
117 context.getApplicationContext()); in getDashboardFeatureProvider()
133 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider()
154 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider()
191 context.getApplicationContext()); in getSuggestionFeatureProvider()
199 mUserFeatureProvider = new UserFeatureProviderImpl(context.getApplicationContext()); in getUserFeatureProvider()
240 context.getApplicationContext()); in getContextualCardFeatureProvider()
249 context.getApplicationContext()); in getBluetoothFeatureProvider()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/overlay/
DFeatureFactoryImpl.java105 context.getApplicationContext()); in getPowerUsageFeatureProvider()
114 context.getApplicationContext()); in getDashboardFeatureProvider()
130 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider()
151 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider()
188 context.getApplicationContext()); in getSuggestionFeatureProvider()
196 mUserFeatureProvider = new UserFeatureProviderImpl(context.getApplicationContext()); in getUserFeatureProvider()
237 context.getApplicationContext()); in getContextualCardFeatureProvider()
246 context.getApplicationContext()); in getBluetoothFeatureProvider()
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java91 TelephonyManager telephonyManager = getApplicationContext() in onLoadConfig()
95 for (String file : getApplicationContext().getAssets().list("")) { in onLoadConfig()
97 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
101 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
104 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
120 parser.setInput(getApplicationContext().getAssets().open( in onLoadConfig()
133 XmlPullParser vendorInput = getApplicationContext().getResources().getXml(R.xml.vendor); in onLoadConfig()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java218 mWarningIcon = CellBroadcastSettings.getResources(getApplicationContext(), in initDrawableAndImageView()
303 if (!CellBroadcastSettings.getResources(getApplicationContext(), in onCreate()
358 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), in onCreate()
364 getApplicationContext())); in onCreate()
416 getApplicationContext(), true); in onStop()
478 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), subId); in getLinkMethod()
540 Context context = getApplicationContext(); in updateAlertText()
639 if (CellBroadcastSettings.getResources(getApplicationContext(), in onNewIntent()
733 getApplicationContext(), subId); in dismiss()
775 if (CellBroadcastSettings.getResources(getApplicationContext(), message.getSubscriptionId()) in onKeyDown()
DCellBroadcastAlertService.java142 mContext = getApplicationContext(); in onStartCommand()
164 getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); in onCreate()
167 getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in onCreate()
314 if (CellBroadcastReceiver.isTestingMode(getApplicationContext()) in handleCellBroadcastIntent()
392 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled()
426 getApplicationContext()) in isChannelEnabled()
480 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled()
798 getApplicationContext().getSystemService(Context.AUDIO_SERVICE);
828 getApplicationContext().getSystemService( in playPendingAlert()
/packages/apps/Messaging/src/com/android/messaging/sms/
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()
DMmsUtils.java647 final Context context = Factory.get().getApplicationContext(); in groupMmsEnabled()
699 final Context context = Factory.get().getApplicationContext(); in getMediaFileSize()
736 final Context context = Factory.get().getApplicationContext(); in getRecipientsByThread()
748 final Context context = Factory.get().getApplicationContext(); in getRawRecipientIdsForThread()
1152 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in isDataRoamingEnabled()
1165 final Context context = Factory.get().getApplicationContext(); in allowMmsAutoRetrieve()
1226 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsStatusAndDateSent()
1281 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMediaMessages()
1375 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMessagesOlderThan()
1402 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsReadStatus()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/notification/
DNotificationService.java73 Intent inCallActivityIntent = new Intent(getApplicationContext(), in onStartCommand()
82 TelecomUtils.markCallLogAsRead(getApplicationContext(), callId); in onStartCommand()
86 TelecomUtils.markCallLogAsRead(getApplicationContext(), callId); in onStartCommand()
89 TelecomUtils.markCallLogAsRead(getApplicationContext(), callId); in onStartCommand()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java75 if (!Utils.isStorageManagerEnabled(getApplicationContext())) { in onStartJob()
78 maybeShowNotificationIntent.setClass(getApplicationContext(), in onStartJob()
80 getApplicationContext().sendBroadcast(maybeShowNotificationIntent); in onStartJob()
129 Context context = getApplicationContext(); in preconditionsFulfilled()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTtsEnginePreferenceFragment.java61 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
63 mTts = new TextToSpeech(getActivity().getApplicationContext(), null); in onCreate()
149 mTts = new TextToSpeech(getActivity().getApplicationContext(), mUpdateListener, engine); in updateDefaultEngine()
174 getActivity().getApplicationContext(), null, mPreviousEngine); in onUpdateEngine()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DDefaultCellBroadcastService.java56 GsmCellBroadcastHandler.makeGsmCellBroadcastHandler(getApplicationContext()); in onCreate()
58 CellBroadcastHandler.makeCellBroadcastHandler(getApplicationContext()); in onCreate()
60 CdmaServiceCategoryProgramHandler.makeScpHandler(getApplicationContext()); in onCreate()
97 SmsCbMessage message = parseCdmaBroadcastSms(getApplicationContext(), slotIndex, plmn, in onCdmaCellBroadcastSms()
/packages/apps/Traceur/src/com/android/traceur/
DTraceService.java86 Context context = getApplicationContext(); in onHandleIntent()
107 Context context = getApplicationContext(); in startTracingInternal()
150 Context context = getApplicationContext(); in stopTracingInternal()
175 FileSender.postNotification(getApplicationContext(), file); in stopTracingInternal()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestInjector.java108 mWallpaperPersister = new TestWallpaperPersister(context.getApplicationContext()); in getWallpaperPersister()
116 mWallpaperRefresher = new TestWallpaperRefresher(context.getApplicationContext()); in getWallpaperRefresher()
130 context.getApplicationContext()); in getWallpaperManagerCompat()
139 new TestCurrentWallpaperInfoFactory(context.getApplicationContext()); in getCurrentWallpaperFactory()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DFaceReEnrollDialog.java65 mFaceManager = Utils.getFaceManagerOrNull(getApplicationContext()); in onCreate()
67 final Context context = getApplicationContext(); in onCreate()
110 final Context context = getApplicationContext(); in removeFaceAndReEnroll()
/packages/apps/TV/src/com/android/tv/license/
DLicenses.java40 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1) in hasLicenses()
48 context.getApplicationContext(), R.raw.third_party_license_metadata, 0, -1), in getLicenses()
91 context.getApplicationContext().getResources().openRawResource(resourcesIdentifier); in getTextFromResource()

12345678910>>...31