Home
last modified time | relevance | path

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

12345678910>>...29

/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()
353 final Context context = Factory.get().getApplicationContext(); in getUriContentLength()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java188 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
193 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
196 LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver( in TestConnection()
216 mRttChatbot = new RttChatbot(getApplicationContext(), in startOutgoing()
238 mRttChatbot = new RttChatbot(getApplicationContext(), in onAnswer()
296 mRttChatbot = new RttChatbot(getApplicationContext(), rttTextStream); in handleRttUpgradeResponse()
307 mRttChatbot = new RttChatbot(getApplicationContext(), textStream); in onStartRtt()
320 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
322 LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(
381 Toast.makeText(getApplicationContext(), "Got subject :" + callSubject,
[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()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsApplication.java54 return ((DocumentsApplication) context.getApplicationContext()).mProviders; in getProvidersCache()
58 final DocumentsApplication app = (DocumentsApplication) context.getApplicationContext(); in getThumbnailCache()
74 return ((DocumentsApplication) context.getApplicationContext()).mClipper; in getDocumentClipper()
78 return ((DocumentsApplication) context.getApplicationContext()).mClipStore; in getClipStore()
82 return ((DocumentsApplication) context.getApplicationContext()).mDragAndDropManager; in getDragAndDropManager()
86 return ((DocumentsApplication) context.getApplicationContext()).mFileTypeLookup; in getFileTypeLookup()
135 SearchHistoryManager.getInstance(getApplicationContext()); in onCreate()
/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/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/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/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java107 TelephonyManager telephonyManager = getApplicationContext() in onLoadConfig()
111 for (String file : getApplicationContext().getAssets().list("")) { in onLoadConfig()
113 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
117 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
120 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in onLoadConfig()
136 parser.setInput(getApplicationContext().getAssets().open( in onLoadConfig()
149 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()
408 getApplicationContext(), true); in onStop()
470 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), subId); in getLinkMethod()
532 Context context = getApplicationContext(); in updateAlertText()
631 if (CellBroadcastSettings.getResources(getApplicationContext(), in onNewIntent()
725 getApplicationContext(), subId); in dismiss()
767 if (CellBroadcastSettings.getResources(getApplicationContext(), message.getSubscriptionId()) in onKeyDown()
DCellBroadcastAlertService.java138 mContext = getApplicationContext(); in onStartCommand()
160 getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); in onCreate()
163 getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in onCreate()
300 if (CellBroadcastReceiver.isTestingMode(getApplicationContext()) in handleCellBroadcastIntent()
378 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled()
412 getApplicationContext()) in isChannelEnabled()
466 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in isChannelEnabled()
784 getApplicationContext().getSystemService(Context.AUDIO_SERVICE);
814 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.java645 final Context context = Factory.get().getApplicationContext(); in groupMmsEnabled()
697 final Context context = Factory.get().getApplicationContext(); in getMediaFileSize()
734 final Context context = Factory.get().getApplicationContext(); in getRecipientsByThread()
746 final Context context = Factory.get().getApplicationContext(); in getRawRecipientIdsForThread()
1118 final Context context = Factory.get().getApplicationContext(); in allowMmsAutoRetrieve()
1181 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsStatusAndDateSent()
1236 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMediaMessages()
1330 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in deleteMessagesOlderThan()
1357 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateSmsReadStatus()
1396 final ContentResolver resolver = Factory.get().getApplicationContext().getContentResolver(); in updateReadStatusForMmsMessage()
[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/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java149 Context applicationContext = spy(RuntimeEnvironment.application.getApplicationContext()); in onResume_shouldRegisterCallback()
150 when(mContext.getApplicationContext()).thenReturn(applicationContext); in onResume_shouldRegisterCallback()
162 Context applicationContext = spy(RuntimeEnvironment.application.getApplicationContext()); in onPause_shouldUnRegisterCallback()
163 when(mContext.getApplicationContext()).thenReturn(applicationContext); in onPause_shouldUnRegisterCallback()
213 Context applicationContext = spy(RuntimeEnvironment.application.getApplicationContext()); in onMatch_shouldUpdatedList()
214 when(mContext.getApplicationContext()).thenReturn(applicationContext); in onMatch_shouldUpdatedList()
/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/apps/Settings/src/com/android/settings/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.java54 GsmCellBroadcastHandler.makeGsmCellBroadcastHandler(getApplicationContext()); in onCreate()
56 CellBroadcastHandler.makeCellBroadcastHandler(getApplicationContext()); in onCreate()
58 CdmaServiceCategoryProgramHandler.makeScpHandler(getApplicationContext()); in onCreate()
89 SmsCbMessage message = parseBroadcastSms(getApplicationContext(), slotIndex, plmn, in onCdmaCellBroadcastSms()
/packages/apps/Car/Settings/src/com/android/car/settings/setupservice/
DInitialLockSetupService.java72 int userId = new CarUserManagerHelper(getApplicationContext()).getCurrentProcessUserId(); in onBind()
73 LockPatternUtils lockPatternUtils = new LockPatternUtils(getApplicationContext()); in onBind()
141 InitialLockSetupService.this.getApplicationContext()) in setLock()
144 InitialLockSetupService.this.getApplicationContext()); in setLock()
/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/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DSendDpcBroadcastService.java46 UserHandle managedProfileUserHandle = utils.getManagedProfile(getApplicationContext()); in onStartCommand()
50 managedProfileUserIdentifier, utils, getApplicationContext()); in onStartCommand()
64 params, managedProfileUserIdentifier, utils, getApplicationContext()); in onStartCommand()

12345678910>>...29