Home
last modified time | relevance | path

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

12345678910>>...46

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DBaseWallpaperInjector.java58 mPartnerProvider = new DefaultPartnerProvider(context.getApplicationContext()); in getPartnerProvider()
66 mPrefs = new DefaultWallpaperPreferences(context.getApplicationContext()); in getPreferences()
74 mWallpaperPersister = new DefaultWallpaperPersister(context.getApplicationContext()); in getWallpaperPersister()
82 mWallpaperRefresher = new DefaultWallpaperRefresher(context.getApplicationContext()); in getWallpaperRefresher()
90 mRequester = new WallpaperRequester(context.getApplicationContext()); in getRequester()
107 new DefaultCurrentWallpaperInfoFactory(context.getApplicationContext()); in getCurrentWallpaperFactory()
115 … mNetworkStatusNotifier = new DefaultNetworkStatusNotifier(context.getApplicationContext()); in getNetworkStatusNotifier()
124 context.getApplicationContext()); in getPackageStatusNotifier()
132 mAlarmManagerWrapper = new DefaultAlarmManagerWrapper(context.getApplicationContext()); in getAlarmManagerWrapper()
140 … mExploreIntentChecker = new DefaultExploreIntentChecker(context.getApplicationContext()); in getExploreIntentChecker()
[all …]
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
DMyService.java66 final Context context = getApplicationContext();
77 return MyBroadcastReceiver.getCounter(getApplicationContext(), action, receiverName);
82 return MyBroadcastReceiver.checkNetworkStatus(getApplicationContext());
87 return MyBroadcastReceiver.getRestrictBackgroundStatus(getApplicationContext());
92 MyBroadcastReceiver .sendNotification(getApplicationContext(), NOTIFICATION_CHANNEL_ID,
164 final JobScheduler jobScheduler = getApplicationContext()
177 final Context context = getApplicationContext(); in onCreate()
181 mCm = (ConnectivityManager) getApplicationContext() in onCreate()
187 final Context context = getApplicationContext(); in onDestroy()
192 getApplicationContext().unregisterReceiver(mReceiver); in onDestroy()
/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/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java113 String sku = getApplicationContext().getResources().getString(R.string.sku_filter); in loadConfig()
118 parser.setInput(getApplicationContext().getAssets().open( in loadConfig()
124 getApplicationContext().getResources().getXml(R.xml.vendor_no_sim); in loadConfig()
140 TelephonyManager telephonyManager = getApplicationContext() in loadConfig()
144 for (String file : getApplicationContext().getAssets().list("")) { in loadConfig()
146 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
150 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
153 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
169 parser.setInput(getApplicationContext().getAssets().open( in loadConfig()
181 XmlPullParser vendorInput = getApplicationContext().getResources().getXml(R.xml.vendor); in loadConfig()
/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/Settings/tests/unit/src/com/android/settings/panel/
DInternetConnectivityPanelTest.java58 ApplicationProvider.getApplicationContext(), "provider_internet_settings");
60 ApplicationProvider.getApplicationContext(), "airplane_mode");
62 ResourcesUtils.getResourcesString(ApplicationProvider.getApplicationContext(),
65 ResourcesUtils.getResourcesString(ApplicationProvider.getApplicationContext(),
68 ResourcesUtils.getResourcesString(ApplicationProvider.getApplicationContext(),
71 ResourcesUtils.getResourcesString(ApplicationProvider.getApplicationContext(),
74 ApplicationProvider.getApplicationContext(), "turn_on_wifi");
76 ApplicationProvider.getApplicationContext(), "turn_off_wifi");
115 mContext = spy(ApplicationProvider.getApplicationContext()); in setUp()
117 when(mContext.getApplicationContext()).thenReturn(mContext); in setUp()
/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()
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactoryImpl.java130 context.getApplicationContext()); in getPowerUsageFeatureProvider()
139 context.getApplicationContext()); in getBatteryStatusFeatureProvider()
156 context.getApplicationContext()); in getDashboardFeatureProvider()
172 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider()
193 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider()
231 context.getApplicationContext()); in getSuggestionFeatureProvider()
239 mUserFeatureProvider = new UserFeatureProviderImpl(context.getApplicationContext()); in getUserFeatureProvider()
280 context.getApplicationContext()); in getContextualCardFeatureProvider()
289 context.getApplicationContext()); in getBluetoothFeatureProvider()
/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/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/
DLoginTest.java19 import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
93 Context ctx = getApplicationContext(); in invalidEmail()
102 Context ctx = getApplicationContext(); in invalidPassword()
156 toPackage(getApplicationContext().getPackageName()), in startTokenActivity()
166 Intent intent = new Intent(getApplicationContext(), TokenActivity.class); in returnedFromTokenActivityOK()
170 toPackage(getApplicationContext().getPackageName()), in returnedFromTokenActivityOK()
189 Intent intent = new Intent(getApplicationContext(), TokenActivity.class); in returnedFromTokenActivityCancelled()
193 toPackage(getApplicationContext().getPackageName()), in returnedFromTokenActivityCancelled()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java251 mWarningIcon = CellBroadcastSettings.getResources(getApplicationContext(), in initDrawableAndImageView()
287 getApplicationContext(), message.getSubscriptionId()); in startScreenOnTimer()
357 if (!CellBroadcastSettings.getResourcesForDefaultSubId(getApplicationContext()) in onCreate()
413 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), in onCreate()
419 getApplicationContext())); in onCreate()
477 getApplicationContext(), true, true, false); in onStop()
552 Resources res = CellBroadcastSettings.getResources(getApplicationContext(), subId); in getLinkMethod()
670 Context localizedContext = getApplicationContext().createConfigurationContext(conf); in overrideTranslation()
682 Context context = getApplicationContext(); in updateAlertText()
852 if (CellBroadcastSettings.getResourcesForDefaultSubId(getApplicationContext()) in onNewIntent()
[all …]
DCellBroadcastConfigService.java72 SubscriptionManager subManager = (SubscriptionManager) getApplicationContext() in onHandleIntent()
94 Context c = getApplicationContext(); in onHandleIntent()
120 CellBroadcastSettings.resetAllPreferences(getApplicationContext()); in onHandleIntent()
192 && CellBroadcastSettings.isTestAlertsToggleVisible(getApplicationContext()) in enableCellBroadcastChannels()
239 getApplicationContext(), subId); in enableCellBroadcastChannels()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DChatActivity.java143 ChatManager.getInstance(getApplicationContext(), mSubId).initChatSession( in initChatButton()
171 if (!ChatManager.getInstance(getApplicationContext(), mSubId).isRegistered() in initChatButton()
197 Uri result = ChatManager.getInstance(getApplicationContext(), mSubId).addNewMessage( in sendChatMessage()
201 ChatManager.getInstance(getApplicationContext(), in sendChatMessage()
209 ChatManager.getInstance(getApplicationContext(), mSubId).updateMsgResult( in sendChatMessage()
216 ChatManager.getInstance(getApplicationContext(), mSubId).updateMsgResult( in sendChatMessage()
297 ChatManager.getInstance(getApplicationContext(), mSubId).terminateSession(mDestNumber); in onDestroy()
/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()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DFaceReEnrollDialog.java56 final PackageManager pm = getApplicationContext().getPackageManager(); in onCreate()
69 mFaceManager = Utils.getFaceManagerOrNull(getApplicationContext()); in onCreate()
71 final Context context = getApplicationContext(); in onCreate()
114 final Context context = getApplicationContext(); in removeFaceAndReEnroll()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DEncryptionControllerProvider.java31 return getApplicationContext(context).getEncryptionController();
34 private ManagedProvisioningBaseApplication getApplicationContext(Context context) {
35 return (ManagedProvisioningBaseApplication) context.getApplicationContext();
/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/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DInCallModelTest.java67 mContext = ApplicationProvider.getApplicationContext(); in setUp()
72 ApplicationProvider.getApplicationContext().getResources().getString( in setUp()
78 mInCallModel.onDestroy(ApplicationProvider.getApplicationContext()); in tearDown()
101 ApplicationProvider.getApplicationContext(), PHONE_NUMBER); in updateModelWithPhoneNumber_setsPhoneNumber()
/packages/apps/Traceur/src/com/android/traceur/
DTraceService.java94 Context context = getApplicationContext(); in onHandleIntent()
117 Context context = getApplicationContext(); in startTracingInternal()
165 Context context = getApplicationContext(); in stopTracingInternal()
207 FileSender.postNotification(getApplicationContext(), file); in stopTracingInternal()
217 Context context = getApplicationContext(); in getBaseTraceurNotification()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DDefaultCellBroadcastService.java58 GsmCellBroadcastHandler.makeGsmCellBroadcastHandler(getApplicationContext()); in onCreate()
60 CellBroadcastHandler.makeCellBroadcastHandler(getApplicationContext()); in onCreate()
62 CdmaServiceCategoryProgramHandler.makeScpHandler(getApplicationContext()); in onCreate()
99 SmsCbMessage message = parseCdmaBroadcastSms(getApplicationContext(), slotIndex, plmn, in onCdmaCellBroadcastSms()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtilsTest.java37 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_smallerThanLimit()
52 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_largerThanLimit()
67 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_noChangeForVectorDrawable()

12345678910>>...46