/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
D | Vvm3VoicemailMessageCreator.java | 77 final Context context, in create() argument 81 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 88 context.getString(R.string.vvm3_error_vms_dns_failure_title), in create() 89 getCustomerSupportString(context, R.string.vvm3_error_vms_dns_failure_message), in create() 90 VoicemailErrorMessage.createRetryAction(context, status), in create() 91 createCallCustomerSupportAction(context)); in create() 96 context.getString(R.string.vvm3_error_vmg_dns_failure_title), in create() 97 getCustomerSupportString(context, R.string.vvm3_error_vmg_dns_failure_message), in create() 98 VoicemailErrorMessage.createRetryAction(context, status), in create() 99 createCallCustomerSupportAction(context)); in create() [all …]
|
D | OmtpVoicemailMessageCreator.java | 49 Context context, VoicemailStatus status, final VoicemailStatusReader statusReader) { in create() argument 51 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage(); in create() 59 return checkQuota(context, status, statusReader); in create() 67 context.getString(R.string.voicemail_error_activating_title), in create() 68 context.getString(R.string.voicemail_error_activating_message), in create() 69 VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle())); in create() 73 return createNoSignalMessage(context, status); in create() 78 context.getString(R.string.voicemail_error_activation_failed_title), in create() 79 context.getString(R.string.voicemail_error_activation_failed_message), in create() 80 VoicemailErrorMessage.createCallVoicemailAction(context, status.getPhoneAccountHandle()), in create() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SharedPreferenceUtil.java | 64 public static boolean getHamburgerPromoDisplayedBefore(Context context) { in getHamburgerPromoDisplayedBefore() argument 65 return getSharedPreferences(context) in getHamburgerPromoDisplayedBefore() 69 public static void setHamburgerPromoDisplayedBefore(Context context) { in setHamburgerPromoDisplayedBefore() argument 70 getSharedPreferences(context).edit() in setHamburgerPromoDisplayedBefore() 73 new BackupManager(context).dataChanged(); in setHamburgerPromoDisplayedBefore() 76 public static boolean getHamburgerMenuClickedBefore(Context context) { in getHamburgerMenuClickedBefore() argument 77 return getSharedPreferences(context) in getHamburgerMenuClickedBefore() 81 public static void setHamburgerMenuClickedBefore(Context context) { in setHamburgerMenuClickedBefore() argument 82 getSharedPreferences(context).edit() in setHamburgerMenuClickedBefore() 85 new BackupManager(context).dataChanged(); in setHamburgerMenuClickedBefore() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 167 private static void updateNextAlarm(Context context) { in updateNextAlarm() argument 168 final AlarmInstance nextAlarm = getNextFiringAlarm(context); in updateNextAlarm() 171 updateNextAlarmInSystemSettings(context, nextAlarm); in updateNextAlarm() 173 updateNextAlarmInAlarmManager(context, nextAlarm); in updateNextAlarm() 183 public static AlarmInstance getNextFiringAlarm(Context context) { in getNextFiringAlarm() argument 184 final ContentResolver cr = context.getContentResolver(); in getNextFiringAlarm() 202 private static void updateNextAlarmInSystemSettings(Context context, AlarmInstance nextAlarm) { in updateNextAlarmInSystemSettings() argument 206 time = AlarmUtils.getFormattedTime(context, nextAlarm.getAlarmTime()); in updateNextAlarmInSystemSettings() 211 Settings.System.putString(context.getContentResolver(), NEXT_ALARM_FORMATTED, time); in updateNextAlarmInSystemSettings() 216 context.sendBroadcast(new Intent(ACTION_ALARM_CHANGED)); in updateNextAlarmInSystemSettings() [all …]
|
D | AlarmNotifications.java | 115 static synchronized void showLowPriorityNotification(Context context, in showLowPriorityNotification() argument 120 context, ALARM_LOW_PRIORITY_NOTIFICATION_CHANNEL_ID) in showLowPriorityNotification() 122 .setContentTitle(context.getString( in showLowPriorityNotification() 125 context, instance, true /* includeLabel */)) in showLowPriorityNotification() 126 .setColor(ContextCompat.getColor(context, R.color.default_background)) in showLowPriorityNotification() 140 Intent hideIntent = AlarmStateManager.createStateChangeIntent(context, in showLowPriorityNotification() 144 builder.setDeleteIntent(PendingIntent.getService(context, id, in showLowPriorityNotification() 148 Intent dismissIntent = AlarmStateManager.createStateChangeIntent(context, in showLowPriorityNotification() 151 context.getString(R.string.alarm_alert_dismiss_text), in showLowPriorityNotification() 152 PendingIntent.getService(context, id, in showLowPriorityNotification() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
D | TelecomUtil.java | 74 public static void showInCallScreen(Context context, boolean showDialpad) { in showInCallScreen() argument 75 if (hasReadPhoneStatePermission(context)) { in showInCallScreen() 77 getTelecomManager(context).showInCallScreen(showDialpad); in showInCallScreen() 85 public static void silenceRinger(Context context) { in silenceRinger() argument 86 if (hasModifyPhoneStatePermission(context)) { in silenceRinger() 88 getTelecomManager(context).silenceRinger(); in silenceRinger() 96 public static void cancelMissedCallsNotification(Context context) { in cancelMissedCallsNotification() argument 97 if (hasModifyPhoneStatePermission(context)) { in cancelMissedCallsNotification() 99 getTelecomManager(context).cancelMissedCallsNotification(); in cancelMissedCallsNotification() 106 public static Uri getAdnUriForPhoneAccount(Context context, PhoneAccountHandle handle) { in getAdnUriForPhoneAccount() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DevelopmentSettingsDashboardFragment.java | 90 public void onReceive(Context context, Intent intent) { 101 public void onReceive(Context context, Intent intent) { 353 protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { in createPreferenceControllers() argument 358 mPreferenceControllers = buildPreferenceControllers(context, getActivity(), in createPreferenceControllers() 431 private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, in buildPreferenceControllers() argument 435 controllers.add(new MemoryUsagePreferenceController(context)); in buildPreferenceControllers() 436 controllers.add(new BugReportPreferenceController(context)); in buildPreferenceControllers() 437 controllers.add(new BugReportHandlerPreferenceController(context)); in buildPreferenceControllers() 438 controllers.add(new SystemServerHeapDumpPreferenceController(context)); in buildPreferenceControllers() 439 controllers.add(new LocalBackupPasswordPreferenceController(context)); in buildPreferenceControllers() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | DevelopmentSettingsDashboardFragment.java | 80 public void onReceive(Context context, Intent intent) { 91 public void onReceive(Context context, Intent intent) { 328 protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { in createPreferenceControllers() argument 333 mPreferenceControllers = buildPreferenceControllers(context, getActivity(), in createPreferenceControllers() 401 private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, in buildPreferenceControllers() argument 405 controllers.add(new MemoryUsagePreferenceController(context)); in buildPreferenceControllers() 406 controllers.add(new SystemServerHeapDumpPreferenceController(context)); in buildPreferenceControllers() 407 controllers.add(new LocalBackupPasswordPreferenceController(context)); in buildPreferenceControllers() 408 controllers.add(new StayAwakePreferenceController(context, lifecycle)); in buildPreferenceControllers() 409 controllers.add(new HdcpCheckingPreferenceController(context)); in buildPreferenceControllers() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | UIIntentsImpl.java | 90 private Intent getConversationActivityIntent(final Context context, in getConversationActivityIntent() argument 93 final Intent intent = new Intent(context, ConversationActivity.class); in getConversationActivityIntent() 129 if (!(context instanceof Activity)) { in getConversationActivityIntent() 138 public void launchPermissionCheckActivity(final Context context) { in launchPermissionCheckActivity() argument 139 final Intent intent = new Intent(context, PermissionCheckActivity.class); in launchPermissionCheckActivity() 140 context.startActivity(intent); in launchPermissionCheckActivity() 146 private Intent getConversationListActivityIntent(final Context context) { in getConversationListActivityIntent() argument 147 return new Intent(context, ConversationListActivity.class); in getConversationListActivityIntent() 151 public void launchConversationListActivity(final Context context) { in launchConversationListActivity() argument 152 final Intent intent = getConversationListActivityIntent(context); in launchConversationListActivity() [all …]
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | Permissions.java | 81 @NonNull Context context) { in grant() argument 87 PackageInfo packageInfo = getPackageInfo(packageName, context); in grant() 97 PermissionManager permissionManager = context.getSystemService(PermissionManager.class); in grant() 124 PackageInfo disabledSystemPackageInfo = getFactoryPackageInfo(packageName, context); in grant() 146 if (isForegroundPermission(permission, context)) { in grant() 158 PackageManager packageManager = context.getPackageManager(); in grant() 179 context); in grant() 187 boolean setSystemFixed, @NonNull Context context) { in grantSingle() argument 189 context); in grantSingle() 190 if (isPermissionFixed(packageName, permission, false, overrideUserSetAndFixed, context) in grantSingle() [all …]
|
D | Role.java | 313 public void onRoleAdded(@NonNull Context context) { in onRoleAdded() argument 315 mBehavior.onRoleAdded(this, context); in onRoleAdded() 327 public boolean isAvailableAsUser(@NonNull UserHandle user, @NonNull Context context) { in isAvailableAsUser() argument 329 return mBehavior.isAvailableAsUser(this, user, context); in isAvailableAsUser() 341 public boolean isAvailable(@NonNull Context context) { in isAvailable() argument 342 return isAvailableAsUser(Process.myUserHandle(), context); in isAvailable() 354 public List<String> getDefaultHolders(@NonNull Context context) { in getDefaultHolders() argument 357 return mBehavior.getDefaultHolders(this, context); in getDefaultHolders() 362 Resources resources = context.getResources(); in getDefaultHolders() 383 if (!isDefaultHolderQualified(resourceValue, context)) { in getDefaultHolders() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | CallServiceNotifier.java | 90 public void updateNotification(Context context) { in updateNotification() argument 94 getNotificationManager(context).createNotificationChannel(channel); in updateNotification() 95 getNotificationManager(context).notify(CALL_NOTIFICATION_ID, getMainNotification(context)); in updateNotification() 96 getNotificationManager(context).notify( in updateNotification() 97 PHONE_ACCOUNT_NOTIFICATION_ID, getPhoneAccountNotification(context)); in updateNotification() 103 public void cancelNotifications(Context context) { in cancelNotifications() argument 105 getNotificationManager(context).cancel(CALL_NOTIFICATION_ID); in cancelNotifications() 106 getNotificationManager(context).cancel(PHONE_ACCOUNT_NOTIFICATION_ID); in cancelNotifications() 112 public void registerPhoneAccount(Context context) { in registerPhoneAccount() argument 114 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in registerPhoneAccount() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | VoicemailClientImpl.java | 80 public boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle) { in hasCarrierSupport() argument 81 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccountHandle); in hasCarrierSupport() 86 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled() argument 87 return VisualVoicemailSettingsUtil.isEnabled(context, phoneAccountHandle); in isVoicemailEnabled() 92 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) { in setVoicemailEnabled() argument 93 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccountHandle, enabled); in setVoicemailEnabled() 97 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled() argument 98 return VisualVoicemailSettingsUtil.isArchiveEnabled(context, phoneAccountHandle); in isVoicemailArchiveEnabled() 102 public boolean isVoicemailArchiveAvailable(Context context) { in isVoicemailArchiveAvailable() argument 108 if (!ConfigProviderComponent.get(context) in isVoicemailArchiveAvailable() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | PermissionsUtil.java | 82 public static boolean hasPhonePermissions(Context context) { in hasPhonePermissions() argument 83 return hasPermission(context, permission.CALL_PHONE); in hasPhonePermissions() 86 public static boolean hasReadPhoneStatePermissions(Context context) { in hasReadPhoneStatePermissions() argument 87 return hasPermission(context, permission.READ_PHONE_STATE); in hasReadPhoneStatePermissions() 90 public static boolean hasContactsReadPermissions(Context context) { in hasContactsReadPermissions() argument 91 return hasPermission(context, permission.READ_CONTACTS); in hasContactsReadPermissions() 94 public static boolean hasContactsWritePermissions(Context context) { in hasContactsWritePermissions() argument 95 return hasPermission(context, permission.WRITE_CONTACTS); in hasContactsWritePermissions() 98 public static boolean hasLocationPermissions(Context context) { in hasLocationPermissions() argument 99 return hasPermission(context, permission.ACCESS_FINE_LOCATION); in hasLocationPermissions() [all …]
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | Receiver.java | 73 public void onReceive(Context context, Intent intent) { in onReceive() argument 74 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() 77 createNotificationChannels(context); in onReceive() 78 updateDeveloperOptionsWatcher(context); in onReceive() 82 updateTracing(context, /* assumeTracingIsOff= */ true); in onReceive() 84 … prefs.edit().putBoolean(context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() 85 updateTracing(context); in onReceive() 87 context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); in onReceive() 88 context.startActivity(new Intent(context, MainActivity.class) in onReceive() 96 public static void updateTracing(Context context) { in updateTracing() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberCompat.java | 60 public static String getIdColumnName(Context context) { in getIdColumnName() argument 61 return useNewFiltering(context) ? BlockedNumbers.COLUMN_ID : FilteredNumberColumns._ID; in getIdColumnName() 69 public static String getTypeColumnName(Context context) { in getTypeColumnName() argument 70 return useNewFiltering(context) ? null : FilteredNumberColumns.TYPE; in getTypeColumnName() 78 public static String getSourceColumnName(Context context) { in getSourceColumnName() argument 79 return useNewFiltering(context) ? null : FilteredNumberColumns.SOURCE; in getSourceColumnName() 83 public static String getOriginalNumberColumnName(Context context) { in getOriginalNumberColumnName() argument 84 return useNewFiltering(context) in getOriginalNumberColumnName() 94 public static String getCountryIsoColumnName(Context context) { in getCountryIsoColumnName() argument 95 return useNewFiltering(context) ? null : FilteredNumberColumns.COUNTRY_ISO; in getCountryIsoColumnName() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ |
D | CommonPreferences.java | 88 public static void initialize(final Context context) { in initialize() argument 93 if (useContentProvider(context)) { in initialize() 94 loadPreferences(context); in initialize() 99 loadPreferences(context); in initialize() 102 context.getContentResolver() in initialize() 108 getSharedPreferences(context); in initialize() 116 public static synchronized void release(Context context) { in release() argument 117 if (useContentProvider(context) && sContentObserver != null) { in release() 118 context.getContentResolver().unregisterContentObserver(sContentObserver); in release() 136 public static void loadPreferences(Context context) { in loadPreferences() argument [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SliceBuilderUtils.java | 77 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() argument 79 final BasePreferenceController controller = getPreferenceController(context, sliceData); in buildSlice() 80 FeatureFactory.getFactory(context).getMetricsFeatureProvider() in buildSlice() 93 return buildUnavailableSlice(context, sliceData); in buildSlice() 97 return buildCopyableSlice(context, sliceData, controller); in buildSlice() 102 return buildIntentSlice(context, sliceData, controller); in buildSlice() 104 return buildToggleSlice(context, sliceData, controller); in buildSlice() 106 return buildSliderSlice(context, sliceData, controller); in buildSlice() 117 public static int getSliceType(Context context, String controllerClassName, in getSliceType() argument 119 BasePreferenceController controller = getPreferenceController(context, controllerClassName, in getSliceType() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityGestureNavigationTutorial.java | 87 public static void showGestureNavigationSettingsTutorialDialog(Context context, in showGestureNavigationSettingsTutorialDialog() argument 89 final AlertDialog alertDialog = new AlertDialog.Builder(context) in showGestureNavigationSettingsTutorialDialog() 90 .setView(createTutorialDialogContentView(context, in showGestureNavigationSettingsTutorialDialog() 101 static AlertDialog showAccessibilityButtonTutorialDialog(Context context) { in showAccessibilityButtonTutorialDialog() argument 102 final AlertDialog alertDialog = createDialog(context, in showAccessibilityButtonTutorialDialog() 105 if (!AccessibilityUtil.isGestureNavigateEnabled(context)) { in showAccessibilityButtonTutorialDialog() 106 updateMessageWithIcon(context, alertDialog); in showAccessibilityButtonTutorialDialog() 112 static AlertDialog showGestureNavigationTutorialDialog(Context context) { in showGestureNavigationTutorialDialog() argument 113 return createDialog(context, DialogType.LAUNCH_SERVICE_BY_GESTURE_NAVIGATION); in showGestureNavigationTutorialDialog() 116 static AlertDialog createAccessibilityTutorialDialog(Context context, int shortcutTypes) { in createAccessibilityTutorialDialog() argument [all …]
|
D | AccessibilityEditDialogUtils.java | 75 public static AlertDialog showEditShortcutDialog(Context context, CharSequence dialogTitle, in showEditShortcutDialog() argument 77 final AlertDialog alertDialog = createDialog(context, DialogType.EDIT_SHORTCUT_GENERIC, in showEditShortcutDialog() 92 public static AlertDialog showMagnificationEditShortcutDialog(Context context, in showMagnificationEditShortcutDialog() argument 94 final AlertDialog alertDialog = createDialog(context, in showMagnificationEditShortcutDialog() 109 public static AlertDialog showMagnificationModeDialog(Context context, in showMagnificationModeDialog() argument 111 final AlertDialog alertDialog = createDialog(context, in showMagnificationModeDialog() 118 private static AlertDialog createDialog(Context context, int dialogType, in createDialog() argument 121 final AlertDialog alertDialog = new AlertDialog.Builder(context) in createDialog() 122 .setView(createEditDialogContentView(context, dialogType)) in createDialog() 150 private static View createEditDialogContentView(Context context, int dialogType) { in createEditDialogContentView() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBuilderUtils.java | 75 public static Slice buildSlice(Context context, SliceData sliceData) { in buildSlice() argument 77 final BasePreferenceController controller = getPreferenceController(context, sliceData); in buildSlice() 78 FeatureFactory.getFactory(context).getMetricsFeatureProvider() in buildSlice() 91 return buildUnavailableSlice(context, sliceData); in buildSlice() 95 return buildCopyableSlice(context, sliceData, controller); in buildSlice() 100 return buildIntentSlice(context, sliceData, controller); in buildSlice() 102 return buildToggleSlice(context, sliceData, controller); in buildSlice() 104 return buildSliderSlice(context, sliceData, controller); in buildSlice() 147 public static BasePreferenceController getPreferenceController(Context context, in getPreferenceController() argument 149 return getPreferenceController(context, sliceData.getPreferenceController(), in getPreferenceController() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | TransactionContextTest.java | 33 TransactionContext context = new TransactionContext(false); in testClearExceptSearchIndexUpdates_returnsNewSets() local 34 context.markRawContactDirtyAndChanged(1L, false); in testClearExceptSearchIndexUpdates_returnsNewSets() 35 context.rawContactUpdated(1L); in testClearExceptSearchIndexUpdates_returnsNewSets() 36 context.rawContactInserted(1L, 1L); in testClearExceptSearchIndexUpdates_returnsNewSets() 37 context.syncStateUpdated(1L, new Object()); in testClearExceptSearchIndexUpdates_returnsNewSets() 39 context.clearExceptSearchIndexUpdates(); in testClearExceptSearchIndexUpdates_returnsNewSets() 41 Set<Long> newDirty = context.getDirtyRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 42 Set<Long> newChanged = context.getChangedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 43 Set<Long> newInserted = context.getInsertedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() 44 Set<Long> newUpdated = context.getUpdatedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorMainPortal.java | 34 private final Context context; field in SimulatorMainPortal 43 this.context = activity.getApplicationContext(); in SimulatorMainPortal() 47 public SimulatorMainPortal(Context context) { in SimulatorMainPortal() argument 49 this.context = context; in SimulatorMainPortal() 75 DialerExecutorComponent.get(context) in execute() 94 .put("Populate database", () -> SimulatorUtils.populateDatabase(context)) in buildMainPortal() 95 .put("Populate voicemail", () -> SimulatorUtils.populateVoicemail(context)) in buildMainPortal() 98 () -> SimulatorUtils.fastPopulateDatabase(context)) in buildMainPortal() 101 () -> SimulatorUtils.populateVoicemailFast(context)) in buildMainPortal() 102 .put("Clean database", () -> SimulatorUtils.cleanDatabase(context)) in buildMainPortal() [all …]
|
D | SimulatorUtils.java | 47 public static void populateDatabase(@NonNull Context context) { in populateDatabase() argument 48 DialerExecutorComponent.get(context) in populateDatabase() 52 .executeSerial(new PopulateDatabaseWorkerInput(context, false)); in populateDatabase() 56 public static void populateVoicemail(@NonNull Context context) { in populateVoicemail() argument 57 DialerExecutorComponent.get(context) in populateVoicemail() 61 .executeSerial(new PopulateDatabaseWorkerInput(context, false)); in populateVoicemail() 65 public static void populateVoicemailFast(@NonNull Context context) { in populateVoicemailFast() argument 66 DialerExecutorComponent.get(context) in populateVoicemailFast() 70 .executeSerial(new PopulateDatabaseWorkerInput(context, true)); in populateVoicemailFast() 74 public static void fastPopulateDatabase(@NonNull Context context) { in fastPopulateDatabase() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | UpdateHandler.java | 146 private static void writeMetadataDownloadId(final Context context, final String uri, in writeMetadataDownloadId() argument 148 MetadataDbHelper.registerMetadataDownloadId(context, uri, downloadId); in writeMetadataDownloadId() 158 public static void setDownloadOverMeteredSetting(final Context context, in setDownloadOverMeteredSetting() argument 160 final SharedPreferences prefs = CommonPreferences.getCommonPreferences(context); in setDownloadOverMeteredSetting() 172 public static int getDownloadOverMeteredSetting(final Context context) { in getDownloadOverMeteredSetting() argument 173 final SharedPreferences prefs = CommonPreferences.getCommonPreferences(context); in getDownloadOverMeteredSetting() 184 public static boolean tryUpdate(final Context context) { in tryUpdate() argument 187 final Cursor cursor = MetadataDbHelper.queryClientIds(context); in tryUpdate() 194 MetadataDbHelper.getMetadataUriAsString(context, clientId); in tryUpdate() 210 updateClientsWithMetadataUri(context, metadataUri); in tryUpdate() [all …]
|