Home
last modified time | relevance | path

Searched refs:mRingtoneUri (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/
DDefaultRingtonePreferenceTest.java57 private Uri mRingtoneUri; field in DefaultRingtonePreferenceTest
86 mRingtoneUri = Uri.parse("content://none"); in setUp()
91 when(mContentResolver.getType(mRingtoneUri)).thenReturn(null); in onSaveRingtone_nullMimeType_shouldNotSetRingtone()
93 mDefaultRingtonePreference.onSaveRingtone(mRingtoneUri); in onSaveRingtone_nullMimeType_shouldNotSetRingtone()
95 verify(mDefaultRingtonePreference, never()).setActualDefaultRingtoneUri(mRingtoneUri); in onSaveRingtone_nullMimeType_shouldNotSetRingtone()
100 when(mContentResolver.getType(mRingtoneUri)).thenReturn("text/plain"); in onSaveRingtone_notAudioMimeType_shouldNotSetRingtone()
102 mDefaultRingtonePreference.onSaveRingtone(mRingtoneUri); in onSaveRingtone_notAudioMimeType_shouldNotSetRingtone()
104 verify(mDefaultRingtonePreference, never()).setActualDefaultRingtoneUri(mRingtoneUri); in onSaveRingtone_notAudioMimeType_shouldNotSetRingtone()
109 mRingtoneUri = Uri.parse("content://" + OTHER_USER_ID + "@ringtone"); in onSaveRingtone_notManagedProfile_shouldNotSetRingtone()
110 when(mContentResolver.getType(mRingtoneUri)).thenReturn("audio/*"); in onSaveRingtone_notManagedProfile_shouldNotSetRingtone()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleOptionsItemData.java54 private Uri mRingtoneUri; field in PeopleOptionsItemData
75 mRingtoneUri = null; in bind()
101 mRingtoneUri = ringtoneUri; in bind()
149 return mRingtoneUri; in getRingtoneUri()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageNotificationState.java201 final String mRingtoneUri; field in MessageNotificationState.ConversationLineInfo
242 mRingtoneUri = ringtoneUri; in ConversationLineInfo()
1109 return mConvList.mConvInfos.get(0).mRingtoneUri; in getRingtoneUri()