Home
last modified time | relevance | path

Searched refs:appContext (Results 1 – 25 of 156) sorted by relevance

1234567

/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/
DContactDisplayPreferencesImpl.java32 private final Context appContext; field in ContactDisplayPreferencesImpl
38 ContactDisplayPreferencesImpl(@ApplicationContext Context appContext) { in ContactDisplayPreferencesImpl() argument
39 this.appContext = appContext; in ContactDisplayPreferencesImpl()
42 this.sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); in ContactDisplayPreferencesImpl()
43 displayOrderKey = appContext.getString(R.string.display_options_view_names_as_key); in ContactDisplayPreferencesImpl()
44 sortOrderKey = appContext.getString(R.string.display_options_sort_list_by_key); in ContactDisplayPreferencesImpl()
53 return DisplayOrder.fromValue(appContext, sharedPreferences.getString(displayOrderKey, null)); in getDisplayOrder()
58 sharedPreferences.edit().putString(displayOrderKey, displayOrder.getValue(appContext)).apply(); in setDisplayOrder()
67 return SortOrder.fromValue(appContext, sharedPreferences.getString(sortOrderKey, null)); in getSortOrder()
72 sharedPreferences.edit().putString(sortOrderKey, sortOrder.getValue(appContext)).apply(); in setSortOrder()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockedNumbersAutoMigrator.java41 @NonNull private final Context appContext; field in BlockedNumbersAutoMigrator
54 @NonNull Context appContext, in BlockedNumbersAutoMigrator()
57 this.appContext = Assert.isNotNull(appContext); in BlockedNumbersAutoMigrator()
64 .createNonUiTaskBuilder(new ShouldAttemptAutoMigrate(appContext)) in asyncAutoMigrate()
90 FilteredNumberCompat.setHasMigratedToNewBlocking(appContext, true); in autoMigrate()
96 private final Context appContext; field in BlockedNumbersAutoMigrator.ShouldAttemptAutoMigrate
98 ShouldAttemptAutoMigrate(Context appContext) { in ShouldAttemptAutoMigrate() argument
99 this.appContext = appContext; in ShouldAttemptAutoMigrate()
105 if (!UserManagerCompat.isUserUnlocked(appContext)) { in doInBackground()
110 PreferenceManager.getDefaultSharedPreferences(appContext); in doInBackground()
[all …]
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java73 private final Context appContext; field in PreferredAccountWorkerImpl
82 @ApplicationContext Context appContext, in PreferredAccountWorkerImpl()
84 this.appContext = appContext; in PreferredAccountWorkerImpl()
91 appContext.getSystemService(TelecomManager.class).getCallCapablePhoneAccounts()) in getVoicemailDialogOptions()
107 Optional<PhoneAccountHandle> preferred = getPreferredAccount(appContext, dataId.get()); in doInBackground()
114 appContext in doInBackground()
122 SimSuggestionComponent.get(appContext) in doInBackground()
124 .getSuggestion(appContext, phoneNumber); in doInBackground()
145 Logger.get(appContext).logImpression(Type.DUAL_SIM_SELECTION_PREFERRED_USED); in usePreferredSim()
148 Logger.get(appContext).logImpression(Type.DUAL_SIM_SELECTION_PREFERRED_NOT_SELECTABLE); in usePreferredSim()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/overlay/
DFeatureFactoryImplTwoPanel.java67 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
68 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider()
69 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
70 appContext.getPackageManager(), in getEnterprisePrivacyFeatureProvider()
71 UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
72 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
73 appContext.getSystemService(VpnManager.class), in getEnterprisePrivacyFeatureProvider()
74 appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
82 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
83 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
[all …]
DFeatureFactoryImpl.java66 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
67 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider()
68 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
69 appContext.getPackageManager(), UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
70 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
71 appContext.getSystemService(VpnManager.class), appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
79 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
80 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
81 appContext.getPackageManager(), in getApplicationFeatureProvider()
83 appContext.getSystemService(DevicePolicyManager.class)); in getApplicationFeatureProvider()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/overlay/
DFeatureFactoryImpl.java77 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
78 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider()
79 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
80 appContext.getPackageManager(), UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
81 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
82 appContext.getSystemService(VpnManager.class), appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
90 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
91 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
92 appContext.getPackageManager(), in getApplicationFeatureProvider()
94 appContext.getSystemService(DevicePolicyManager.class)); in getApplicationFeatureProvider()
DFeatureFactoryImplTwoPanel.java83 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local
84 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider()
85 appContext.getSystemService(DevicePolicyManager.class), in getEnterprisePrivacyFeatureProvider()
86 appContext.getPackageManager(), in getEnterprisePrivacyFeatureProvider()
87 UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider()
88 appContext.getSystemService(ConnectivityManager.class), in getEnterprisePrivacyFeatureProvider()
89 appContext.getSystemService(VpnManager.class), in getEnterprisePrivacyFeatureProvider()
90 appContext.getResources()); in getEnterprisePrivacyFeatureProvider()
98 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local
99 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider()
[all …]
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java81 private final Context appContext; field in CountryDetector
85 Context appContext, in CountryDetector() argument
92 this.appContext = appContext; in CountryDetector()
98 registerForLocationUpdates(appContext, locationManager); in CountryDetector()
127 Context appContext = context.getApplicationContext(); in getInstance() local
130 appContext, in getInstance()
134 new Geocoder(appContext)); in getInstance()
168 || !hasLocationPermissions(appContext) in getLocationBasedCountryIso()
169 || !UserManagerCompat.isUserUnlocked(appContext)) { in getLocationBasedCountryIso()
172 return PreferenceManager.getDefaultSharedPreferences(appContext) in getLocationBasedCountryIso()
[all …]
/packages/apps/TV/src/com/android/tv/receiver/
DAbstractGlobalKeyReceiver.java49 Context appContext = context.getApplicationContext(); in onReceive() local
52 handleIntent(appContext, intent); in onReceive()
58 appContext.getContentResolver(), in onReceive()
69 handleIntent(appContext, intent); in onReceive()
76 private void handleIntent(Context appContext, Intent intent) { in handleIntent() argument
88 ((TvApplication) appContext).handleDvrKey(); in handleIntent()
91 ((TvApplication) appContext).handleGuideKey(); in handleIntent()
94 ((TvApplication) appContext).handleTvKey(); in handleIntent()
97 ((TvApplication) appContext).handleTvInputKey(); in handleIntent()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDailyLoggingAlarmReceiver.java53 Context appContext = context.getApplicationContext(); in onReceive() local
55 UserEventLogger logger = injector.getUserEventLogger(appContext); in onReceive()
56 WallpaperPreferences preferences = injector.getPreferences(appContext); in onReceive()
65 logDailyWallpaperRotationStatus(appContext); in onReceive()
68 DiskBasedLogger.clearOldLogs(appContext); in onReceive()
77 private void logDailyWallpaperRotationStatus(Context appContext) { in logDailyWallpaperRotationStatus() argument
81 PowerManager powerManager = appContext.getSystemService(PowerManager.class); in logDailyWallpaperRotationStatus()
88 injector.getWallpaperRefresher(appContext).refresh(new RefreshListener() { in logDailyWallpaperRotationStatus()
99 WallpaperPreferences preferences = injector.getPreferences(appContext); in logDailyWallpaperRotationStatus()
126 UserEventLogger logger = injector.getUserEventLogger(appContext); in logDailyWallpaperRotationStatus()
DDailyLoggingAlarmScheduler.java40 public static void setAlarm(Context appContext) { in setAlarm() argument
42 AlarmManagerWrapper alarmManagerWrapper = injector.getAlarmManagerWrapper(appContext); in setAlarm()
43 WallpaperPreferences preferences = injector.getPreferences(appContext); in setAlarm()
69 PendingIntent pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm()
72 pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm()
80 private static PendingIntent createAlarmReceiverPendingIntent(Context appContext) { in createAlarmReceiverPendingIntent() argument
81 Intent intent = new Intent(appContext, DailyLoggingAlarmReceiver.class); in createAlarmReceiverPendingIntent()
83 appContext, UNUSED_REQUEST_CODE, intent, FLAG_IMMUTABLE); in createAlarmReceiverPendingIntent()
DRotationWallpaperUpdateReceiver.java58 Context appContext = context.getApplicationContext(); in onReceive() local
59 Context deviceProtectedContext = appContext.createDeviceProtectedStorageContext(); in onReceive()
62 moveFileToProtectedStorage(appContext, deviceProtectedContext); in onReceive()
68 switchToStaticWallpaper(appContext, wallpaperFile); in onReceive()
87 private void switchToStaticWallpaper(Context appContext, File wallpaperFile) { in switchToStaticWallpaper() argument
90 WallpaperPreferences wallpaperPreferences = injector.getPreferences(appContext); in switchToStaticWallpaper()
97 injector.getWallpaperPersister(appContext).setWallpaperInRotation(bitmap, in switchToStaticWallpaper()
107 DiskBasedLogger.e(TAG, "Unable to set static wallpaper", appContext); in switchToStaticWallpaper()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java75 private final Context appContext; field in SystemCallLogDataSource
87 @ApplicationContext Context appContext, in SystemCallLogDataSource()
93 this.appContext = appContext; in SystemCallLogDataSource()
105 if (!PermissionsUtil.hasCallLogReadPermissions(appContext)) { in registerContentObservers()
114 appContext in registerContentObservers()
119 if (!PermissionsUtil.hasAddVoicemailPermissions(appContext)) { in registerContentObservers()
124 appContext in registerContentObservers()
131 appContext.getContentResolver().unregisterContentObserver(markDirtyObserver); in unregisterContentObservers()
159 && PermissionsUtil.hasCallLogReadPermissions(appContext)) { in isDirty()
199 if (!PermissionsUtil.hasPermission(appContext, permission.READ_CALL_LOG)) { in fillInternal()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemePickerInjector.kt218 val appContext = context.applicationContext in <lambda>() constant
226 context = appContext, in <lambda>()
227 infoFactory = getCurrentWallpaperInfoFactory(appContext), in <lambda>()
228 wallpaperManager = WallpaperManager.getInstance(appContext) in <lambda>()
230 wallpaperPreferences = getPreferences(context = appContext), in <lambda>()
235 getColorCustomizationManager(appContext).currentColorSource, in <lambda>()
269 val appContext = context.applicationContext in <lambda>() constant
275 appContext in <lambda>()
279 getKeyguardQuickAffordanceSnapshotRestorer(appContext) in <lambda>()
316 val appContext = context.applicationContext in <lambda>() constant
[all …]
/packages/apps/Dialer/java/com/android/dialer/commandline/impl/
DCallCommand.java38 private final Context appContext; field in CallCommand
41 CallCommand(@ApplicationContext Context appContext) { in CallCommand() argument
42 this.appContext = appContext; in CallCommand()
67 TelecomManager telecomManager = appContext.getSystemService(TelecomManager.class); in run()
77 appContext in run()
81 Intent intent = PreCall.getIntent(appContext, callIntentBuilder); in run()
83 appContext.startActivity(intent); in run()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cequint/
DCequintPhoneLookup.java45 private final Context appContext; field in CequintPhoneLookup
51 @ApplicationContext Context appContext, in CequintPhoneLookup()
54 this.appContext = appContext; in CequintPhoneLookup()
60 public ListenableFuture<CequintInfo> lookup(Context appContext, Call call) { in lookup() argument
61 if (!CequintCallerIdManager.isCequintCallerIdEnabled(appContext)) { in lookup()
70 TelecomCallUtil.getNumber(call), GeoUtil.getCurrentCountryIso(appContext)); in lookup()
82 appContext, in lookup()
91 if (!CequintCallerIdManager.isCequintCallerIdEnabled(appContext)) { in lookup()
99 appContext, dialerPhoneNumber.getNormalizedNumber()))); in lookup()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/blockednumber/
DSystemBlockedNumberPhoneLookup.java53 private final Context appContext; field in SystemBlockedNumberPhoneLookup
59 @ApplicationContext Context appContext, in SystemBlockedNumberPhoneLookup()
62 this.appContext = appContext; in SystemBlockedNumberPhoneLookup()
69 if (!FilteredNumberCompat.useNewFiltering(appContext)) { in lookup()
86 if (!FilteredNumberCompat.useNewFiltering(appContext)) { in getMostRecentInfo()
104 appContext in queryNumbers()
122 appContext in queryNumbers()
167 appContext in registerContentObservers()
177 appContext.getContentResolver().unregisterContentObserver(markDirtyObserver); in unregisterContentObservers()
/packages/apps/Dialer/java/com/android/dialer/main/impl/bottomnav/
DMissedCallCountObserver.java36 private final Context appContext; field in MissedCallCountObserver
41 Context appContext, BottomNavBar bottomNavBar, UiListener<Integer> uiListener) { in MissedCallCountObserver() argument
43 this.appContext = appContext; in MissedCallCountObserver()
52 DialerExecutorComponent.get(appContext) in onChange()
57 appContext in onChange()
75 appContext, in onChange()
/packages/apps/Dialer/java/com/android/dialer/calllog/
DClearMissedCalls.java46 private final Context appContext; field in ClearMissedCalls
52 @ApplicationContext Context appContext, in ClearMissedCalls()
55 this.appContext = appContext; in ClearMissedCalls()
69 MissedCallNotificationCanceller.cancelAll(appContext); in clearAll()
100 MissedCallNotificationCanceller.cancelSingle(appContext, callUri); in clearBySystemCallLogId()
127 if (!UserManagerCompat.isUserUnlocked(appContext)) {
131 if (!PermissionsUtil.hasCallLogWritePermissions(appContext)) {
152 appContext
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java89 private final Context appContext; field in SpeedDialUiItemMutator
98 @ApplicationContext Context appContext, in SpeedDialUiItemMutator()
102 this.appContext = appContext; in SpeedDialUiItemMutator()
175 appContext in unstarContact()
197 appContext in insertNewContactEntry()
212 appContext.getResources(), cursor, CallUtil.isVideoEnabled(appContext)); in insertNewContactEntry()
218 appContext in insertNewContactEntry()
311 ContactsComponent.get(appContext).highResolutionPhotoLoader(); in requestHighResolutionPhoto()
373 appContext in updateContactIdsAndLookupKeys()
425 appContext in getSpeedDialUiItemsFromEntries()
[all …]
/packages/apps/Dialer/java/com/android/dialer/promotion/impl/
DDuoPromotion.java43 private final Context appContext; field in DuoPromotion
54 this.appContext = context; in DuoPromotion()
73 if (!duo.isEnabled(appContext) || !duo.isActivated(appContext)) { in isEligibleToBeShown()
115 return appContext.getString(R.string.duo_disclosure_title); in getTitle()
120 return new ContentWithLearnMoreSpanner(appContext) in getDetails()
122 appContext.getString(R.string.duo_disclosure_details), in getDetails()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactory.kt42 private val appContext: Context, in <lambda>() constant in com.android.customization.picker.clock.ui.view.ClockViewFactory
47 private val resources = appContext.resources in <lambda>()
85 val smallClockFrame = FrameLayout(appContext) in <lambda>()
99 getStatusBarHeight(appContext.resources) + in <lambda>()
100 appContext.resources.getDimensionPixelSize(R.dimen.small_clock_padding_top) in <lambda>()
103 appContext.resources.getDimensionPixelSize(R.dimen.clock_padding_start) in <lambda>()
129 .onTimeFormatChanged(android.text.format.DateFormat.is24HourFormat(appContext)) in <lambda>()
138 timeTickListeners[hashCode] = TimeTicker.registerNewReceiver(appContext) { onTimeTick() } in <lambda>()
142 timeTickListeners.forEach { (_, timeTicker) -> appContext.unregisterReceiver(timeTicker) } in <lambda>()
158 appContext.unregisterReceiver(it) in <lambda>()
/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/
DRefreshAnnotatedCallLogNotifier.java43 private final Context appContext; field in RefreshAnnotatedCallLogNotifier
48 @ApplicationContext Context appContext, @Unencrypted SharedPreferences sharedPreferences) { in RefreshAnnotatedCallLogNotifier()
49 this.appContext = appContext; in RefreshAnnotatedCallLogNotifier()
81 LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent); in notify()
97 LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent); in cancel()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSectionViewModel.kt30 val appContext: Context = context.applicationContext in <lambda>() constant
32 ClockColorViewModel.getPresetColorMap(appContext.resources) in <lambda>()
38 ?: appContext.getString(R.string.default_theme_title) in <lambda>()
41 ClockSize.SMALL -> appContext.getString(R.string.clock_size_small) in <lambda>()
42 ClockSize.DYNAMIC -> appContext.getString(R.string.clock_size_dynamic) in <lambda>()
44 appContext in <lambda>()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2ExtendedDirectoryPhoneLookup.java65 private final Context appContext; field in Cp2ExtendedDirectoryPhoneLookup
74 @ApplicationContext Context appContext, in Cp2ExtendedDirectoryPhoneLookup()
80 this.appContext = appContext; in Cp2ExtendedDirectoryPhoneLookup()
90 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) { in lookup()
115 Logger.get(appContext) in lookup()
127 appContext in queryCp2ForExtendedDirectoryIds()
192 appContext
218 Cp2Projections.buildCp2ContactInfoFromCursor(appContext, cursor, directoryId));
248 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) {
261 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) {

1234567