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.java333 public void saveToXml(XmlSerializer out, boolean forBackup) in saveToXml() argument
337 if (!forBackup) { in saveToXml()
357 saveShortcutPackageItem(out, mLaunchers.valueAt(i), forBackup); in saveToXml()
363 saveShortcutPackageItem(out, mPackages.valueAt(i), forBackup); in saveToXml()
371 ShortcutPackageItem spi, boolean forBackup) throws IOException, XmlPullParserException { in saveShortcutPackageItem() argument
372 if (forBackup) { in saveShortcutPackageItem()
377 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.java1338 public void saveToXml(@NonNull XmlSerializer out, boolean forBackup) in saveToXml() argument
1351 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
1354 saveShortcut(out, mShortcuts.valueAt(j), forBackup, in saveToXml()
1361 private void saveShortcut(XmlSerializer out, ShortcutInfo si, boolean forBackup, in saveShortcut() argument
1367 if (forBackup) { in saveShortcut()
1376 !forBackup // It's not backup in saveShortcut()
1405 if (forBackup) { in saveShortcut()
DShortcutService.java986 boolean forBackup) throws IOException, XmlPullParserException { in saveUserInternalLocked() argument
995 getUserShortcutsLocked(userId).saveToXml(out, forBackup); in saveUserInternalLocked()
/frameworks/base/core/java/android/app/
DNotificationChannel.java697 private void writeXml(XmlSerializer out, boolean forBackup, @Nullable Context context) in writeXml() argument
699 Preconditions.checkArgument(!forBackup || context != null, in writeXml()
721 Uri sound = forBackup ? getSoundForBackup(context) : getSound(); in writeXml()
/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java391 public void writeXml(XmlSerializer out, boolean forBackup) throws IOException { in writeXml() argument
400 if (forBackup && UserHandle.getUserId(r.uid) != UserHandle.USER_SYSTEM) { in writeXml()
427 if (!forBackup) { in writeXml()
436 if (forBackup) { in writeXml()
DManagedServices.java297 public void writeXml(XmlSerializer out, boolean forBackup) throws IOException { in writeXml() argument
302 if (forBackup) { in writeXml()
323 if (!forBackup && isPrimary) { in writeXml()
DSnoozeHelper.java354 protected void writeXml(XmlSerializer out, boolean forBackup) throws IOException { in writeXml() argument
DZenModeHelper.java652 public void writeXml(XmlSerializer out, boolean forBackup, Integer version) throws IOException { in writeXml() argument
656 if (forBackup && mConfigs.keyAt(i) != UserHandle.USER_SYSTEM) { in writeXml()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java110 private ByteArrayOutputStream writeXmlAndPurge(boolean forBackup, Integer version) in writeXmlAndPurge() argument
116 mZenModeHelperSpy.writeXml(serializer, forBackup, version); in writeXmlAndPurge()
DRankingHelperTest.java243 private ByteArrayOutputStream writeXmlAndPurge(String pkg, int uid, boolean forBackup, in writeXmlAndPurge() argument
250 mHelper.writeXml(serializer, forBackup); in writeXmlAndPurge()