Home
last modified time | relevance | path

Searched refs:getSound (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java94 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, newChannel.getSound()); in testInheritFromLegacy_keepsUserLockedLegacySettings()
103 assertEquals(null, newChannel.getSound()); in testInheritFromLegacy_dropsUnlockedLegacySettings()
113 assertEquals(null, newChannel.getSound()); in testInheritFromLegacy_noLegacyExists()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationIntrusivenessExtractor.java52 if (record.getSound() != null && record.getSound() != Uri.EMPTY) { in process()
DNotificationRecord.java239 Uri sound = mChannel.getSound(); in calculateSound()
436 if (getSound() != null) { in dump()
437 proto.write(NotificationRecordProto.SOUND, getSound().toString()); in dump()
1025 public Uri getSound() { in getSound() method in NotificationRecord
1229 visitGrantableUri(channel.getSound(), (channel.getUserLockedFields() in calculateGrantableUris()
DPreferencesHelper.java1406 if (!Objects.equals(original.getSound(), update.getSound())) { in lockFieldsForUpdateLocked()
DNotificationManagerService.java5713 Uri soundUri = record.getSound();
7289 record.getSound() != null || record.getVibration() != null,
/frameworks/base/core/java/android/app/
DNotificationChannel.java542 public Uri getSound() { in getSound() method in NotificationChannel
771 Uri sound = getSound(); in getSoundForBackup()
810 Uri sound = forBackup ? getSoundForBackup(context) : getSound(); in writeXml()
879 if (getSound() != null) { in toJson()
880 record.put(ATT_SOUND, getSound().toString()); in toJson()
1003 && Objects.equals(getSound(), that.getSound()) in equals()
1014 getLockscreenVisibility(), getSound(), mLights, getLightColor(), in hashCode()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelTest.java95 assertNull(restored.getSound()); in testBackupEmptySound()
DNotificationRecordTest.java184 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); in testSound_default_preUpgradeUsesNotification()
197 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_custom_preUpgradeUsesNotification()
211 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_userLocked_preUpgrade()
223 assertNull(record.getSound()); in testSound_noSound_preUpgrade()
236 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_upgradeUsesChannel()
DBuzzBeepBlinkTest.java696 assertTrue(r.getSound() != null); in testNoDemoteSoundToVibrateIfVibrateGiven()
716 assertTrue(r.getSound() != null); in testNoDemoteSoundToVibrateIfNonNotificationStream()
734 assertTrue(r.getSound() != null); in testDemoteSoundToVibrate()
754 assertTrue(r.getSound() != null); in testDemoteInsistentSoundToVibrate()
DPreferencesHelperTest.java219 assertEquals(expected.getSound(), actual.getSound()); in compareChannels()
493 assertEquals(localUri, actualChannel.getSound()); in testRestoreXml_withExistentCanonicalizedSoundUri()
515 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, actualChannel.getSound()); in testRestoreXml_withNonExistentCanonicalizedSoundUri()
542 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, actualChannel.getSound()); in testRestoreXml_withUncanonicalizedNonLocalSoundUri()
558 assertEquals(null, actualChannel.getSound()); in testBackupRestoreXml_withNullSoundUri()
1499 PKG_N_MR1, UID_N_MR1, channel.getId(), false).getSound()); in testCreateChannel_noOverrideSound()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java126 screenshotChannel.setSound(legacySS.getSound(), legacySS.getAudioAttributes()); in createScreenshotChannel()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java78 return (channel != null) ? channel.getSound() : getRingTonePreference(context); in getRingtoneUri()
DNotificationChannelController.java163 callforwardChannel.setSound(deprecatedChannel.getSound(), in migrateCallFowardNotificationChannel()
/frameworks/base/api/
Dcurrent.txt5768 method public android.net.Uri getSound();