Home
last modified time | relevance | path

Searched refs:forBackup (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageItem.java148 public abstract void saveToXml(@NonNull TypedXmlSerializer out, boolean forBackup) in saveToXml() argument
151 public void saveToFile(File path, boolean forBackup) { in saveToFile() argument
159 if (forBackup) { in saveToFile()
167 saveToXml(itemOut, forBackup); in saveToFile()
DShortcutUser.java352 public void saveToXml(TypedXmlSerializer out, boolean forBackup) in saveToXml() argument
356 if (!forBackup) { in saveToXml()
370 if (!forBackup) { in saveToXml()
381 saveShortcutPackageItem(out, mLaunchers.valueAt(i), forBackup); in saveToXml()
387 saveShortcutPackageItem(out, mPackages.valueAt(i), forBackup); in saveToXml()
395 boolean forBackup) throws IOException, XmlPullParserException { in saveShortcutPackageItem() argument
396 if (forBackup) { in saveShortcutPackageItem()
400 spi.saveToXml(out, forBackup); in saveShortcutPackageItem()
409 spi.saveToFile(path, forBackup); in saveShortcutPackageItem()
DShortcutLauncher.java227 public void saveToXml(TypedXmlSerializer out, boolean forBackup) in saveToXml() argument
229 if (forBackup && !getPackageInfo().isBackupAllowed()) { in saveToXml()
241 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
246 if (forBackup && (pu.userId != getOwnerUserId())) { in saveToXml()
DShortcutPackageInfo.java209 public void saveToXml(ShortcutService s, TypedXmlSerializer out, boolean forBackup) in saveToXml() argument
211 if (forBackup && !mBackupAllowedInitialized) { in saveToXml()
DShortcutPackage.java1733 public void saveToXml(@NonNull TypedXmlSerializer out, boolean forBackup) in saveToXml() argument
1747 if (!forBackup) { in saveToXml()
1756 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
1759 saveShortcut(out, mShortcuts.valueAt(j), forBackup, getPackageInfo().isBackupAllowed()); in saveToXml()
1762 if (!forBackup) { in saveToXml()
1771 private void saveShortcut(TypedXmlSerializer out, ShortcutInfo si, boolean forBackup, in saveShortcut() argument
1777 if (forBackup) { in saveShortcut()
1786 !forBackup // It's not backup in saveShortcut()
1820 if (forBackup) { in saveShortcut()
1858 if (!forBackup) { // Don't backup the persons field. in saveShortcut()
DShortcutService.java1072 boolean forBackup) throws IOException, XmlPullParserException { in saveUserInternalLocked() argument
1076 if (forBackup) { in saveUserInternalLocked()
1084 getUserShortcutsLocked(userId).saveToXml(out, forBackup); in saveUserInternalLocked()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java163 BackupEligibilityRules.forBackup(packageManager, pmi, userId); in installApk()
DBackupEligibilityRules.java84 public static BackupEligibilityRules forBackup(PackageManager packageManager, in forBackup() method in BackupEligibilityRules
DTarBackupReader.java393 BackupEligibilityRules.forBackup(packageManager, pmi, userId)); in chooseRestorePolicy()
/frameworks/base/core/java/android/app/
DNotificationChannel.java1048 private void writeXml(TypedXmlSerializer out, boolean forBackup, @Nullable Context context) in writeXml() argument
1050 Preconditions.checkArgument(!forBackup || context != null, in writeXml()
1069 Uri sound = forBackup ? getSoundForBackup(context) : getSound(); in writeXml()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java482 public void writeXml(TypedXmlSerializer out, boolean forBackup, int userId) throws IOException { in writeXml() argument
489 if (forBackup) { in writeXml()
497 if (forBackup && approvedUserId != userId) { in writeXml()
526 if (!forBackup && isPrimary) { in writeXml()
DPreferencesHelper.java525 public void writeXml(TypedXmlSerializer out, boolean forBackup, int userId) throws IOException { in writeXml() argument
529 && (!forBackup || userId == UserHandle.USER_SYSTEM)) { in writeXml()
539 if (forBackup && UserHandle.getUserId(r.uid) != userId) { in writeXml()
580 if (!forBackup) { in writeXml()
603 if (forBackup) { in writeXml()
DZenModeHelper.java783 public void writeXml(TypedXmlSerializer out, boolean forBackup, Integer version, int userId) in writeXml() argument
788 if (forBackup && mConfigs.keyAt(i) != userId) { in writeXml()
DNotificationManagerService.java1067 private void writePolicyXml(OutputStream stream, boolean forBackup, int userId) in writePolicyXml() argument
1070 if (forBackup) { in writePolicyXml()
1079 mZenModeHelper.writeXml(out, forBackup, null, userId); in writePolicyXml()
1080 mPreferencesHelper.writeXml(out, forBackup, userId); in writePolicyXml()
1081 mListeners.writeXml(out, forBackup, userId); in writePolicyXml()
1082 mAssistants.writeXml(out, forBackup, userId); in writePolicyXml()
1084 mConditionProviders.writeXml(out, forBackup, userId); in writePolicyXml()
1085 if (!forBackup || userId == UserHandle.USER_SYSTEM) { in writePolicyXml()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java283 String pkg, int uid, boolean forBackup, int userId, String... channelIds) in writeXmlAndPurge() argument
289 mHelper.writeXml(serializer, forBackup, userId); in writeXmlAndPurge()