/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
H A D | BaseWallpaperInjector.java | 61 mPartnerProvider = new DefaultPartnerProvider(context.getApplicationContext()); in getPartnerProvider() 69 mPrefs = new DefaultWallpaperPreferences(context.getApplicationContext()); in getPreferences() 77 mWallpaperPersister = new DefaultWallpaperPersister(context.getApplicationContext()); in getWallpaperPersister() 85 mWallpaperRefresher = new DefaultWallpaperRefresher(context.getApplicationContext()); in getWallpaperRefresher() 93 mRequester = new WallpaperRequester(context.getApplicationContext()); in getRequester() 118 new DefaultCurrentWallpaperInfoFactory(context.getApplicationContext()); in getCurrentWallpaperFactory() 135 context.getApplicationContext()); in getPackageStatusNotifier() 143 mAlarmManagerWrapper = new DefaultAlarmManagerWrapper(context.getApplicationContext()); in getAlarmManagerWrapper() 151 … mExploreIntentChecker = new DefaultExploreIntentChecker(context.getApplicationContext()); in getExploreIntentChecker() 167 mFormFactorChecker = new DefaultFormFactorChecker(context.getApplicationContext()); in getFormFactorChecker() [all …]
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/ |
H A D | MyService.java | 66 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | UiUtils.java | 62 getApplicationContext().getResources().getInteger( 66 getApplicationContext().getResources().getInteger( 70 getApplicationContext().getResources().getInteger( 74 getApplicationContext().getResources().getInteger( 88 UiUtils.showToastAtBottom(getApplicationContext().getString(messageId)); 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() 176 private static Context getApplicationContext() { in getApplicationContext() method in UiUtils 177 return Factory.get().getApplicationContext(); in getApplicationContext() [all …]
|
H A D | UriUtil.java | 159 pfd = Factory.get().getApplicationContext() in getContentSize() 200 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace() 213 final Context context = Factory.get().getApplicationContext(); in persistContentToScratchSpace() 251 final Context context = Factory.get().getApplicationContext(); in persistContent() 270 final Context context = Factory.get().getApplicationContext(); in persistContent() 357 final Context context = Factory.get().getApplicationContext(); in getUriContentLength()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
H A D | BugleActionToasts.java | 76 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()
|
/aosp12/packages/apps/CarrierConfig/src/com/android/carrierconfig/ |
H A D | DefaultCarrierConfigService.java | 113 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()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | DocumentsApplication.java | 75 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()
|
/aosp12/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
H A D | RunLocalBenchmarksActivity.java | 306 intent = new Intent(getApplicationContext(), ListViewScrollActivity.class); in runBenchmarkForId() 312 intent = new Intent(getApplicationContext(), ShadowGridActivity.class); in runBenchmarkForId() 315 intent = new Intent(getApplicationContext(), TextScrollActivity.class); in runBenchmarkForId() 320 intent = new Intent(getApplicationContext(), TextScrollActivity.class); in runBenchmarkForId() 325 intent = new Intent(getApplicationContext(), EditTextInputActivity.class); in runBenchmarkForId() 331 intent = new Intent(getApplicationContext(), BitmapUploadActivity.class); in runBenchmarkForId() 335 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId() 340 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId() 345 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId() 350 intent = new Intent(getApplicationContext(), MemoryActivity.class); in runBenchmarkForId() [all …]
|
/aosp12/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | TestConnectionService.java | 188 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( 381 Toast.makeText(getApplicationContext(), "Got subject :" + callSubject, 518 Toast.makeText(getApplicationContext(), "SwitchPhoneAccount: Pass", [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/overlay/ |
H A D | FeatureFactoryImpl.java | 133 context.getApplicationContext()); in getPowerUsageFeatureProvider() 142 context.getApplicationContext()); in getBatteryStatusFeatureProvider() 159 context.getApplicationContext()); in getDashboardFeatureProvider() 175 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() 196 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() 234 context.getApplicationContext()); in getSuggestionFeatureProvider() 242 mUserFeatureProvider = new UserFeatureProviderImpl(context.getApplicationContext()); in getUserFeatureProvider() 283 context.getApplicationContext()); in getContextualCardFeatureProvider() 292 context.getApplicationContext()); in getBluetoothFeatureProvider()
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | EncryptionControllerProvider.java | 31 return getApplicationContext(context).getEncryptionController(); 34 private ManagedProvisioningBaseApplication getApplicationContext(Context context) { 35 return (ManagedProvisioningBaseApplication) context.getApplicationContext();
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
H A D | DecorContextTest.java | 65 mContext = ApplicationProvider.getApplicationContext(); in setUp() 70 final Context baseContext = Mockito.spy(mContext.getApplicationContext()); in testDecorContextWithDefaultDisplay() 90 DecorContext context = new DecorContext(mContext.getApplicationContext(), window); in testDecorContextWithExternalDisplay() 105 final DecorContext decorContext = new DecorContext(mContext.getApplicationContext(), in testGetWindowManagerFromVisualDecorContext() 120 final DecorContext decorContext = new DecorContext(mContext.getApplicationContext(), in testIsUiContextFromVisualDecorContext()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | SmsStorageStatusManager.java | 63 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()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appsearch/stats/ |
H A D | PlatformLoggerTest.java | 64 ApplicationProvider.getApplicationContext(), in testCreateExtraStatsLocked_samplingIntervalNotSet_returnsDefault() 97 ApplicationProvider.getApplicationContext(), mAppSearchConfig); in testCreateExtraStatsLocked_samplingIntervalSet_returnsConfigured() 142 ApplicationProvider.getApplicationContext(), in testShouldLogForTypeLocked_trueWhenSampleIntervalIsOne() 160 ApplicationProvider.getApplicationContext(), in testShouldLogForTypeLocked_falseWhenSampleIntervalIsNegative() 183 ApplicationProvider.getApplicationContext(), in testShouldLogForTypeLocked_falseWhenWithinCoolOffInterval() 210 ApplicationProvider.getApplicationContext(), in testShouldLogForTypeLocked_trueWhenOutsideOfCoolOffInterval()
|
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
H A D | FaceReEnrollDialog.java | 56 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BugleNotifications.java | 305 final Context context = Factory.get().getApplicationContext(); in shouldNotify() 349 final Context context = Factory.get().getApplicationContext(); in buildNotificationTag() 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() 885 final Context context = Factory.get().getApplicationContext(); in addWearableVoiceReplyAction() 935 final Context context = Factory.get().getApplicationContext(); in addDownloadMmsAction() 986 final Context context = Factory.get().getApplicationContext(); in formatInboxMessage() 1040 final Context context = Factory.get().getApplicationContext(); in buildBoldedMessage() [all …]
|
H A D | MessagingContentProvider.java | 107 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()
|
/aosp12/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/ |
H A D | LoginTest.java | 19 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()
|
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
H A D | AutomaticStorageManagementJobService.java | 75 if (!Utils.isStorageManagerEnabled(getApplicationContext())) { in onStartJob() 78 maybeShowNotificationIntent.setClass(getApplicationContext(), in onStartJob() 80 getApplicationContext().sendBroadcast(maybeShowNotificationIntent); in onStartJob() 129 Context context = getApplicationContext(); in preconditionsFulfilled()
|
/aosp12/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
H A D | WifiConnScanReceiver.java | 53 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()
|
/aosp12/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/ |
H A D | InCallModelTest.java | 67 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()
|
/aosp12/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/ |
H A D | ChatActivity.java | 143 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()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/ |
H A D | DefaultAppUtilsTest.java | 37 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_smallerThanLimit() 52 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_largerThanLimit() 67 Context context = ApplicationProvider.getApplicationContext(); in setSafeIcon_noChangeForVectorDrawable()
|
/aosp12/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastAlertDialog.java | 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() 682 Context context = getApplicationContext(); in updateAlertText() 963 removeReadMessageFromNotificationBar(lastMessage, getApplicationContext()); in dismiss() 977 getApplicationContext(), in dismiss() 1042 if (message != null && CellBroadcastSettings.getResources(getApplicationContext(), in onKeyDown() [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
H A D | FaceEnrollIntroduction.java | 139 mFaceFeatureProvider = FeatureFactory.getFactory(getApplicationContext()) in onCreate() 159 mSensorPrivacyManager = getApplicationContext() in onCreate() 162 .getInstance(getApplicationContext()); in onCreate() 257 final int maxFacesEnrollableIfSUW = getApplicationContext().getResources() in maxFacesEnrolled() 330 .getInstance(getApplicationContext()) in onNextButtonClick() 337 mSensorPrivacyManager = getApplicationContext() in onNextButtonClick()
|