/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/ |
D | ContactDisplayPreferencesImpl.java | 32 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/preferredsim/impl/ |
D | PreferredAccountWorkerImpl.java | 73 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/Dialer/java/com/android/dialer/blocking/ |
D | BlockedNumbersAutoMigrator.java | 41 @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/location/ |
D | CountryDetector.java | 81 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/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
D | SystemCallLogDataSource.java | 75 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/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | CategoryFragment.java | 538 Context appContext = getActivity().getApplicationContext(); in bindWallpaperText() local 542 appContext, presentationMode)); in bindWallpaperText() 544 List<String> attributions = mWallpaperInfo.getAttributions(appContext); in bindWallpaperText() 561 final Context appContext = getActivity().getApplicationContext(); in bindWallpaperActionButtons() local 563 final String actionUrl = mWallpaperInfo.getActionUrl(appContext); in bindWallpaperActionButtons() 569 InjectorProvider.getInjector().getExploreIntentChecker(appContext); in bindWallpaperActionButtons() 592 final Context appContext = getActivity().getApplicationContext(); in updateExploreSectionVisibility() local 594 InjectorProvider.getInjector().getUserEventLogger(appContext); in updateExploreSectionVisibility() 601 mWallpaperInfo.getActionIconRes(appContext))); in updateExploreSectionVisibility() 603 getString(mWallpaperInfo.getActionLabelRes(appContext))); in updateExploreSectionVisibility() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DailyLoggingAlarmReceiver.java | 53 Context appContext = context.getApplicationContext(); in onReceive() local 55 UserEventLogger logger = injector.getUserEventLogger(appContext); in onReceive() 56 WallpaperPreferences preferences = injector.getPreferences(appContext); in onReceive() 64 logDailyWallpaperRotationStatus(appContext); in onReceive() 67 DiskBasedLogger.clearOldLogs(appContext); in onReceive() 76 private void logDailyWallpaperRotationStatus(Context appContext) { in logDailyWallpaperRotationStatus() argument 80 … PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE); in logDailyWallpaperRotationStatus() 87 injector.getWallpaperRefresher(appContext).refresh(new RefreshListener() { in logDailyWallpaperRotationStatus() 98 WallpaperPreferences preferences = injector.getPreferences(appContext); in logDailyWallpaperRotationStatus() 124 UserEventLogger logger = injector.getUserEventLogger(appContext); in logDailyWallpaperRotationStatus()
|
D | DailyLoggingAlarmScheduler.java | 39 public static void setAlarm(Context appContext) { in setAlarm() argument 41 AlarmManagerWrapper alarmManagerWrapper = injector.getAlarmManagerWrapper(appContext); in setAlarm() 42 WallpaperPreferences preferences = injector.getPreferences(appContext); in setAlarm() 68 PendingIntent pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm() 71 pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm() 79 private static PendingIntent createAlarmReceiverPendingIntent(Context appContext) { in createAlarmReceiverPendingIntent() argument 80 Intent intent = new Intent(appContext, DailyLoggingAlarmReceiver.class); in createAlarmReceiverPendingIntent() 82 appContext, UNUSED_REQUEST_CODE, intent, UNUSED_REQUEST_FLAGS); in createAlarmReceiverPendingIntent()
|
D | RotationWallpaperUpdateReceiver.java | 60 Context appContext = context.getApplicationContext(); in onReceive() local 61 Context deviceProtectedContext = appContext.createDeviceProtectedStorageContext(); in onReceive() 64 moveFileToProtectedStorage(appContext, deviceProtectedContext); in onReceive() 70 switchToStaticWallpaper(appContext, wallpaperFile); in onReceive() 89 private void switchToStaticWallpaper(Context appContext, File wallpaperFile) { in switchToStaticWallpaper() argument 92 WallpaperPreferences wallpaperPreferences = injector.getPreferences(appContext); in switchToStaticWallpaper() 99 injector.getWallpaperPersister(appContext).setWallpaperInRotation(bitmap, in switchToStaticWallpaper() 108 DiskBasedLogger.e(TAG, "Unable to set static wallpaper", appContext); in switchToStaticWallpaper()
|
/packages/apps/TV/src/com/android/tv/receiver/ |
D | AbstractGlobalKeyReceiver.java | 49 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/Dialer/java/com/android/dialer/speeddial/loader/ |
D | SpeedDialUiItemMutator.java | 89 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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | TileSizeCalculator.java | 115 Context appContext = activity.getApplicationContext(); in getCategoryTileSize() local 119 return getTileSize(appContext, columnCount, windowWidthPx); in getCategoryTileSize() 126 Context appContext = activity.getApplicationContext(); in getIndividualTileSize() local 130 return getTileSize(appContext, columnCount, windowWidthPx); in getIndividualTileSize() 138 public static Point getSuggestedThumbnailSize(@NonNull Context appContext) { in getSuggestedThumbnailSize() argument 141 int windowWidthPx = getDeviceDisplayWidthPx(appContext); in getSuggestedThumbnailSize() 143 appContext, windowWidthPx, INDIVIDUAL_FEWER_COLUMNS, INDIVIDUAL_MORE_COLUMNS); in getSuggestedThumbnailSize() 144 return getTileSize(appContext, columnCount, windowWidthPx); in getSuggestedThumbnailSize() 198 private static int getDeviceDisplayWidthPx(Context appContext) { in getDeviceDisplayWidthPx() argument 200 (WindowManager) appContext.getSystemService(Context.WINDOW_SERVICE); in getDeviceDisplayWidthPx()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cequint/ |
D | CequintPhoneLookup.java | 45 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/ |
D | SystemBlockedNumberPhoneLookup.java | 53 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/overlay/ |
D | FeatureFactoryImpl.java | 130 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local 131 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider() 132 appContext.getPackageManager(), in getApplicationFeatureProvider() 134 (DevicePolicyManager) appContext in getApplicationFeatureProvider() 151 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local 152 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider() 153 (DevicePolicyManager) appContext.getSystemService( in getEnterprisePrivacyFeatureProvider() 155 appContext.getPackageManager(), in getEnterprisePrivacyFeatureProvider() 156 UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider() 157 (ConnectivityManager) appContext.getSystemService(Context.CONNECTIVITY_SERVICE), in getEnterprisePrivacyFeatureProvider() [all …]
|
/packages/apps/Settings/src/com/android/settings/overlay/ |
D | FeatureFactoryImpl.java | 133 final Context appContext = context.getApplicationContext(); in getApplicationFeatureProvider() local 134 mApplicationFeatureProvider = new ApplicationFeatureProviderImpl(appContext, in getApplicationFeatureProvider() 135 appContext.getPackageManager(), in getApplicationFeatureProvider() 137 (DevicePolicyManager) appContext in getApplicationFeatureProvider() 154 final Context appContext = context.getApplicationContext(); in getEnterprisePrivacyFeatureProvider() local 155 mEnterprisePrivacyFeatureProvider = new EnterprisePrivacyFeatureProviderImpl(appContext, in getEnterprisePrivacyFeatureProvider() 156 (DevicePolicyManager) appContext.getSystemService( in getEnterprisePrivacyFeatureProvider() 158 appContext.getPackageManager(), in getEnterprisePrivacyFeatureProvider() 159 UserManager.get(appContext), in getEnterprisePrivacyFeatureProvider() 160 (ConnectivityManager) appContext.getSystemService(Context.CONNECTIVITY_SERVICE), in getEnterprisePrivacyFeatureProvider() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/commandline/impl/ |
D | CallCommand.java | 40 private final Context appContext; field in CallCommand 43 CallCommand(@ApplicationContext Context appContext) { in CallCommand() argument 44 this.appContext = appContext; in CallCommand() 69 TelecomManager telecomManager = appContext.getSystemService(TelecomManager.class); in run() 81 appContext in run() 85 Intent intent = PreCall.getIntent(appContext, callIntentBuilder); in run() 87 appContext.startActivity(intent); in run()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ |
D | ClearMissedCalls.java | 46 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/calllog/datasources/phonelookup/ |
D | PhoneLookupDataSource.java | 68 private final Context appContext; field in PhoneLookupDataSource 94 @ApplicationContext Context appContext, in PhoneLookupDataSource() 99 this.appContext = appContext; in PhoneLookupDataSource() 110 () -> queryDistinctDialerPhoneNumbersFromAnnotatedCallLog(appContext)); in isDirty() 160 () -> collectIdAndNumberFromAnnotatedCallLogAndPendingInserts(appContext, mutations)); in fill() 167 queryPhoneLookupHistoryForNumbers(appContext, annotatedCallLogIdsByNumber.keySet()), in fill() 251 backgroundExecutorService.submit(() -> writePhoneLookupHistory(appContext)); in onSuccessfulFill() 262 private Void writePhoneLookupHistory(Context appContext) in writePhoneLookupHistory() argument 285 appContext in writePhoneLookupHistory() 319 queryDistinctDialerPhoneNumbersFromAnnotatedCallLog(Context appContext) { in queryDistinctDialerPhoneNumbersFromAnnotatedCallLog() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
D | Cp2ExtendedDirectoryPhoneLookup.java | 65 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)) {
|
D | Cp2DefaultDirectoryPhoneLookup.java | 72 private final Context appContext; field in Cp2DefaultDirectoryPhoneLookup 83 @ApplicationContext Context appContext, in Cp2DefaultDirectoryPhoneLookup() 89 this.appContext = appContext; in Cp2DefaultDirectoryPhoneLookup() 99 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) { in lookup() 138 Cp2Projections.buildCp2ContactInfoFromCursor(appContext, cursor, Directory.DEFAULT)); in lookupInternal() 150 if (!PermissionsUtil.hasContactsReadPermissions(appContext)) { in isDirty() 279 appContext 395 return appContext 409 appContext 431 appContext [all …]
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/bottomnav/ |
D | MissedCallCountObserver.java | 36 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/promotion/impl/ |
D | DuoPromotion.java | 43 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/Dialer/java/com/android/dialer/calllog/datasources/voicemail/ |
D | VoicemailDataSource.java | 43 private final Context appContext; field in VoicemailDataSource 48 @ApplicationContext Context appContext, in VoicemailDataSource() 50 this.appContext = appContext; in VoicemailDataSource() 65 if (!PermissionsUtil.hasReadPhoneStatePermissions(appContext)) { in fill() 74 TelecomManager telecomManager = appContext.getSystemService(TelecomManager.class); in fill() 94 appContext, phoneAccountHandle); in fill()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/ |
D | RefreshAnnotatedCallLogNotifier.java | 43 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()
|