Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DNotificationChannel.java503 public Uri getSound() { in getSound() method in NotificationChannel
682 Uri sound = getSound(); in getSoundForBackup()
721 Uri sound = forBackup ? getSoundForBackup(context) : getSound(); in writeXml()
784 if (getSound() != null) { in toJson()
785 record.put(ATT_SOUND, getSound().toString()); in toJson()
911 if (getSound() != null ? !getSound().equals(that.getSound()) : that.getSound() != null) { in equals()
931 result = 31 * result + (getSound() != null ? getSound().hashCode() : 0); in hashCode()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationIntrusivenessExtractor.java52 if (record.getSound() != null && record.getSound() != Uri.EMPTY) { in process()
DNotificationRecord.java215 Uri sound = mChannel.getSound(); in calculateSound()
405 if (getSound() != null) { in dump()
406 proto.write(NotificationRecordProto.SOUND, getSound().toString()); in dump()
925 public Uri getSound() { in getSound() method in NotificationRecord
1050 visitGrantableUri(channel.getSound(), (channel.getUserLockedFields() in calculateGrantableUris()
DRankingHelper.java1068 if (!Objects.equals(original.getSound(), update.getSound())) { in lockFieldsForUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java97 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, newChannel.getSound()); in testInheritFromLegacy_keepsUserLockedLegacySettings()
106 assertEquals(Uri.EMPTY, newChannel.getSound()); in testInheritFromLegacy_dropsUnlockedLegacySettings()
116 assertEquals(Uri.EMPTY, newChannel.getSound()); in testInheritFromLegacy_noLegacyExists()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java192 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, record.getSound()); in testSound_default_preUpgradeUsesNotification()
205 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_custom_preUpgradeUsesNotification()
219 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_userLocked_preUpgrade()
231 assertEquals(null, record.getSound()); in testSound_noSound_preUpgrade()
244 assertEquals(CUSTOM_SOUND, record.getSound()); in testSound_default_upgradeUsesChannel()
DBuzzBeepBlinkTest.java595 assertTrue(r.getSound() != null); in testNoDemoteSoundToVibrateIfVibrateGiven()
613 assertTrue(r.getSound() != null); in testNoDemoteSoundToVibrateIfNonNotificationStream()
630 assertTrue(r.getSound() != null); in testDemoteSoundToVibrate()
649 assertTrue(r.getSound() != null); in testDemoteInsistentSoundToVibrate()
DRankingHelperTest.java278 assertEquals(expected.getSound(), actual.getSound()); in compareChannels()
532 assertEquals(localUri, actualChannel.getSound()); in testRestoreXml_withExistentCanonicalizedSoundUri()
553 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, actualChannel.getSound()); in testRestoreXml_withNonExistentCanonicalizedSoundUri()
579 assertEquals(Settings.System.DEFAULT_NOTIFICATION_URI, actualChannel.getSound()); in testRestoreXml_withUncanonicalizedNonLocalSoundUri()
594 assertEquals(null, actualChannel.getSound()); in testBackupRestoreXml_withNullSoundUri()
1299 PKG, UID, channel.getId(), false).getSound()); in testCreateChannel_noOverrideSound()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java127 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()
/frameworks/base/config/
Dhiddenapi-public-dex.txt3862 Landroid/app/NotificationChannel;->getSound()Landroid/net/Uri;
Dboot-image-profile.txt14958 HSPLandroid/app/NotificationChannel;->getSound()Landroid/net/Uri;
/frameworks/base/api/
Dcurrent.txt5637 method public android.net.Uri getSound();