Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutUser.java337 public void saveToXml(XmlSerializer out, boolean forBackup) in saveToXml() argument
341 if (!forBackup) { in saveToXml()
361 saveShortcutPackageItem(out, mLaunchers.valueAt(i), forBackup); in saveToXml()
367 saveShortcutPackageItem(out, mPackages.valueAt(i), forBackup); in saveToXml()
375 ShortcutPackageItem spi, boolean forBackup) throws IOException, XmlPullParserException { in saveShortcutPackageItem() argument
376 if (forBackup) { in saveShortcutPackageItem()
381 spi.saveToXml(out, forBackup); in saveShortcutPackageItem()
DShortcutLauncher.java219 public void saveToXml(XmlSerializer out, boolean forBackup) in saveToXml() argument
221 if (forBackup && !getPackageInfo().isBackupAllowed()) { in saveToXml()
233 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
238 if (forBackup && (pu.userId != getOwnerUserId())) { in saveToXml()
DShortcutPackageItem.java142 public abstract void saveToXml(@NonNull XmlSerializer out, boolean forBackup) in saveToXml() argument
DShortcutPackageInfo.java208 public void saveToXml(ShortcutService s, XmlSerializer out, boolean forBackup) in saveToXml() argument
210 if (forBackup && !mBackupAllowedInitialized) { in saveToXml()
DShortcutPackage.java1454 public void saveToXml(@NonNull XmlSerializer out, boolean forBackup) in saveToXml() argument
1468 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
1471 saveShortcut(out, mShortcuts.valueAt(j), forBackup, in saveToXml()
1475 if (!forBackup) { in saveToXml()
1484 private void saveShortcut(XmlSerializer out, ShortcutInfo si, boolean forBackup, in saveShortcut() argument
1490 if (forBackup) { in saveShortcut()
1499 !forBackup // It's not backup in saveShortcut()
1532 if (forBackup) { in saveShortcut()
1568 if (!forBackup) { // Don't backup the persons field. in saveShortcut()
DShortcutService.java994 boolean forBackup) throws IOException, XmlPullParserException { in saveUserInternalLocked() argument
1003 getUserShortcutsLocked(userId).saveToXml(out, forBackup); in saveUserInternalLocked()
/frameworks/base/core/java/android/app/
DNotificationChannel.java786 private void writeXml(XmlSerializer out, boolean forBackup, @Nullable Context context) in writeXml() argument
788 Preconditions.checkArgument(!forBackup || context != null, in writeXml()
810 Uri sound = forBackup ? getSoundForBackup(context) : getSound(); in writeXml()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java309 public void writeXml(XmlSerializer out, boolean forBackup, int userId) throws IOException { in writeXml() argument
314 if (forBackup) { in writeXml()
321 if (forBackup && approvedUserId != userId) { in writeXml()
339 if (!forBackup && isPrimary) { in writeXml()
DPreferencesHelper.java390 public void writeXml(XmlSerializer out, boolean forBackup, int userId) throws IOException { in writeXml() argument
394 && (!forBackup || userId == UserHandle.USER_SYSTEM)) { in writeXml()
404 if (forBackup && UserHandle.getUserId(r.uid) != userId) { in writeXml()
436 if (!forBackup) { in writeXml()
460 if (forBackup) { in writeXml()
DSnoozeHelper.java378 protected void writeXml(XmlSerializer out, boolean forBackup) throws IOException { in writeXml() argument
DZenModeHelper.java731 public void writeXml(XmlSerializer out, boolean forBackup, Integer version, int userId) in writeXml() argument
736 if (forBackup && mConfigs.keyAt(i) != userId) { in writeXml()
DNotificationManagerService.java685 private void writePolicyXml(OutputStream stream, boolean forBackup, int userId) in writePolicyXml() argument
692 mZenModeHelper.writeXml(out, forBackup, null, userId); in writePolicyXml()
693 mPreferencesHelper.writeXml(out, forBackup, userId); in writePolicyXml()
694 mListeners.writeXml(out, forBackup, userId); in writePolicyXml()
695 mAssistants.writeXml(out, forBackup, userId); in writePolicyXml()
696 mConditionProviders.writeXml(out, forBackup, userId); in writePolicyXml()
697 if (!forBackup || userId == UserHandle.USER_SYSTEM) { in writePolicyXml()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java183 String pkg, int uid, boolean forBackup, int userId, String... channelIds) in writeXmlAndPurge() argument
189 mHelper.writeXml(serializer, forBackup, userId); in writeXmlAndPurge()