Home
last modified time | relevance | path

Searched refs:applicationContext (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClockApplication.kt35 val applicationContext = applicationContext in onCreate() constant
36 val prefs = getDefaultSharedPreferences(applicationContext) in onCreate()
38 DataModel.dataModel.init(applicationContext, prefs) in onCreate()
39 UiDataModel.uiDataModel.init(applicationContext, prefs) in onCreate()
40 Controller.getController().setContext(applicationContext) in onCreate()
41 Controller.getController().addEventTracker(LogEventTracker(applicationContext)) in onCreate()
DHandleApiCalls.kt63 mAppContext = applicationContext in onCreate()
182 private val mContext: Context = mActivity.applicationContext
497 val context = activity.applicationContext in dismissAlarm()
513 val context = activity.applicationContext in dismissAlarmInstance()
DRingtonePreviewKlaxon.kt43 sAsyncRingtonePlayer = AsyncRingtonePlayer(context.applicationContext) in getAsyncRingtonePlayer()
/packages/apps/Messaging/src/com/android/messaging/
DFactoryImpl.java77 public static Factory register(final Context applicationContext, in register() argument
90 factory.mApplicationContext = applicationContext; in register()
94 factory.mBugleGservices = new BugleGservicesImpl(applicationContext); in register()
95 factory.mBugleApplicationPrefs = new BugleApplicationPrefs(applicationContext); in register()
96 factory.mDataModel = new DataModelImpl(applicationContext); in register()
97 factory.mBugleWidgetPrefs = new BugleWidgetPrefs(applicationContext); in register()
102 factory.mCarrierConfigValuesLoader = new BugleCarrierConfigValuesLoader(applicationContext); in register()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockNumberDialogFragment.java219 final Context applicationContext = getContext().getApplicationContext(); in blockNumber() local
241 Logger.get(applicationContext) in blockNumber()
256 if (FilteredNumbersUtil.hasRecentEmergencyCall(applicationContext)) { in blockNumber()
257 FilteredNumbersUtil.maybeNotifyCallBlockingDisabled(applicationContext); in blockNumber()
270 final Context applicationContext = getContext().getApplicationContext(); in unblockNumber() local
292 Logger.get(applicationContext) in unblockNumber()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPackageBroadcastReceiver.kt61 app.applicationContext.registerReceiverForAllUsers(this@PackageBroadcastReceiver, in <lambda>()
80 app.applicationContext.registerReceiverForAllUsers(this@PackageBroadcastReceiver, in <lambda>()
96 app.applicationContext.unregisterReceiver(this@PackageBroadcastReceiver) in <lambda>()
117 app.applicationContext.unregisterReceiver(this@PackageBroadcastReceiver) in <lambda>()
DPermissionListenerMultiplexer.kt35 private val pm = app.applicationContext.packageManager in <lambda>()
DPreinstalledUserPackageInfosLiveData.kt49 val packageInfos = app.applicationContext.packageManager in <lambda>()
DUserPackageInfosLiveData.kt77 val packageInfos = app.applicationContext.packageManager in <lambda>()
DPermGroupLiveData.kt47 private val context = app.applicationContext!! in <lambda>()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java150 public static FakeFactory register(final Context applicationContext) { in register() argument
151 final FakeContext context = new FakeContext(applicationContext); in register()
152 return registerWithFakeContext(applicationContext, context); in register()
155 public static FakeFactory registerWithoutFakeContext(final Context applicationContext) { in registerWithoutFakeContext() argument
156 return registerWithFakeContext(applicationContext, null); in registerWithoutFakeContext()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationActivity.java362 private Context applicationContext; field in SpamNotificationActivity.FirstTimeSpamCallDialogFragment
379 applicationContext, in onDismiss()
392 applicationContext = context.getApplicationContext(); in onAttach()
410 "spam_notification_title", applicationContext), in onCreateDialog()
411 getFormattedNumber(number, applicationContext))) in onCreateDialog()
435 "spam_notification_was_not_spam_action_text", applicationContext)), in onCreateDialog()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java75 final Context applicationContext = context.getApplicationContext(); in getInstance() local
76 sInstance = new ResolveCache(applicationContext); in getInstance()
84 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter); in getInstance()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactorySingleton.java105 Context applicationContext = context.getApplicationContext(); in get() local
106 if (applicationContext instanceof SharedLibraryConfigProvider) { in get()
108 ((SharedLibraryConfigProvider) applicationContext).getSharedLibraryDenyList(); in get()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManager.java183 Context applicationContext = context.getApplicationContext(); in getInstance() local
184 instance = createContactPhotoManager(applicationContext); in getInstance()
185 applicationContext.registerComponentCallbacks(instance); in getInstance()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DSpecialCharSequenceMgr.java226 Context applicationContext = context.getApplicationContext(); in handleAdnEntry() local
230 applicationContext, PhoneAccount.SCHEME_TEL)); in handleAdnEntry()
233 Uri uri = TelecomUtil.getAdnUriForPhoneAccount(applicationContext, null); in handleAdnEntry()
237 new HandleAdnEntryAccountSelectedCallback(applicationContext, handler, sc); in handleAdnEntry()
/packages/apps/Stk/src/com/android/stk/
DStkMenuConfig.java78 public static StkMenuConfig getInstance(Context applicationContext) { in getInstance() argument
82 sInstance.initialize(applicationContext); in getInstance()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java67 public NotificationEntry(Context applicationContext, PackageManager packageManager, in NotificationEntry() argument
69 mContext = applicationContext; in NotificationEntry()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPermGroupInfo.kt59 return Utils.getGroupInfo(name, app.applicationContext) in toPackageItemInfo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DAndroidUtils.kt40 else -> applicationContext as Application in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerKlaxon.kt92 sAsyncRingtonePlayer = AsyncRingtonePlayer(context.applicationContext) in getAsyncRingtonePlayer()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DTestNetworkStackService.kt53 private fun makeTestContext() = spy(applicationContext).also { in onBind()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DUiDataModel.kt67 mContext = context.applicationContext in init()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java439 Context applicationContext = context.getApplicationContext(); in getInstance() local
440 sInstance = createContactPhotoManager(applicationContext); in getInstance()
441 applicationContext.registerComponentCallbacks(sInstance); in getInstance()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt74 whenever(application.applicationContext).thenReturn(application) in <lambda>()

12