Home
last modified time | relevance | path

Searched refs:forRestore (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/app/
DNotificationChannel.java961 private void populateFromXml(TypedXmlPullParser parser, boolean forRestore, in populateFromXml() argument
963 Preconditions.checkArgument(!forRestore || context != null, in populateFromXml()
973 setSound(forRestore ? restoreSoundUri(context, sound) : sound, safeAudioAttributes(parser)); in populateFromXml()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java724 public void readXml(TypedXmlPullParser parser, boolean forRestore, int userId) in readXml() argument
730 if (forRestore) { in readXml()
743 if (forRestore) { in readXml()
755 && (forRestore || config.version < ZenModeConfig.XML_VERSION)) { in readXml()
DPreferencesHelper.java208 public void readXml(TypedXmlPullParser parser, boolean forRestore, int userId) in readXml() argument
225 if (forRestore && userId != UserHandle.USER_SYSTEM) { in readXml()
234 if (forRestore) { in readXml()
319 if (forRestore) { in readXml()
DManagedServices.java612 boolean forRestore, in readXml() argument
631 final int resolvedUserId = forRestore in readXml()
DNotificationManagerService.java950 void readPolicyXml(InputStream stream, boolean forRestore, int userId) in readPolicyXml() argument
953 if (forRestore) { in readPolicyXml()
961 boolean ineligibleForManagedServices = forRestore && mUm.isManagedProfile(userId); in readPolicyXml()
965 mZenModeHelper.readXml(parser, forRestore, userId); in readPolicyXml()
967 mPreferencesHelper.readXml(parser, forRestore, userId); in readPolicyXml()
973 mListeners.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
979 mAssistants.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
986 parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
992 if (forRestore && userId != UserHandle.USER_SYSTEM) { in readPolicyXml()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java298 private void loadStreamXml(ByteArrayOutputStream stream, boolean forRestore, int userId) in loadStreamXml() argument
300 loadByteArrayXml(stream.toByteArray(), forRestore, userId); in loadStreamXml() local
303 private void loadByteArrayXml(byte[] byteArray, boolean forRestore, int userId) in loadByteArrayXml() argument
308 mHelper.readXml(parser, forRestore, userId); in loadByteArrayXml()