Searched refs:shouldPlayRingtone (Results 1 – 3 of 3) sorted by relevance
73 assertFalse(mRingtoneManagerEnabled.shouldPlayRingtone(0, RINGTONE_URI)); in testShouldPlayRingtone_M()80 assertFalse(mRingtoneManagerEnabled.shouldPlayRingtone(State.INCOMING, null)); in testShouldPlayRingtone_N_NullUri()87 assertFalse(mRingtoneManagerDisabled.shouldPlayRingtone(State.INCOMING, RINGTONE_URI)); in testShouldPlayRingtone_N_Disabled()94 assertFalse(mRingtoneManagerEnabled.shouldPlayRingtone(State.ACTIVE, RINGTONE_URI)); in testShouldPlayRingtone_N_NotIncoming()102 assertFalse(mRingtoneManagerEnabled.shouldPlayRingtone(State.CALL_WAITING, RINGTONE_URI)); in testShouldPlayRingtone_N_CallWaitingByState()110 assertFalse(mRingtoneManagerEnabled.shouldPlayRingtone(State.INCOMING, RINGTONE_URI)); in testShouldPlayRingtone_N_CallWaitingByActiveCall()117 assertTrue(mRingtoneManagerEnabled.shouldPlayRingtone(State.INCOMING, RINGTONE_URI)); in testShouldPlayRingtone_N()
68 public boolean shouldPlayRingtone(int callState, @Nullable Uri ringtoneUri) { in shouldPlayRingtone() method in DialerRingtoneManager
321 if (mDialerRingtoneManager.shouldPlayRingtone(callState, contactInfo.contactRingtoneUri)) { in buildAndSendNotification()