Home
last modified time | relevance | path

Searched refs:shouldRingForContact (Results 1 – 5 of 5) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DRingerAttributes.java55 public RingerAttributes.Builder setShouldRingForContact(boolean shouldRingForContact) { in setShouldRingForContact() argument
56 mShouldRingForContact = shouldRingForContact; in setShouldRingForContact()
88 boolean shouldRingForContact, boolean silentRingingRequested, in RingerAttributes() argument
95 mShouldRingForContact = shouldRingForContact; in RingerAttributes()
120 public boolean shouldRingForContact() { in shouldRingForContact() method in RingerAttributes
DRinger.java335 final boolean shouldFlash = attributes.shouldRingForContact(); in startRinging()
346 isVibratorEnabled(mContext, attributes.shouldRingForContact()); in startRinging()
433 boolean vibratorReserved = isVibratorEnabled && attributes.shouldRingForContact() in startRinging()
657 public boolean shouldRingForContact(Call call) { in shouldRingForContact() method in Ringer
689 private boolean isVibratorEnabled(Context context, boolean shouldRingForContact) { in isVibratorEnabled() argument
698 || (zenModeOn && shouldRingForContact)); in isVibratorEnabled()
709 boolean shouldRingForContact = shouldRingForContact(call); in getRingerAttributes()
716 boolean isRingerAudible = isVolumeOverZero && shouldRingForContact; in getRingerAttributes()
721 isVolumeOverZero, shouldRingForContact); in getRingerAttributes()
754 ((isHfpDeviceAttached && shouldRingForContact) || isSelfManaged); in getRingerAttributes()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDndCallFilteringTests.java101 when(mRinger.shouldRingForContact(mCall)).thenReturn(false); in testShouldSuppressCall()
123 when(mRinger.shouldRingForContact(mCall)).thenReturn(true); in testCallShouldRingAndNotBeSuppressed()
DRingerTest.java670 assertFalse(mRingerUnderTest.shouldRingForContact(mockCall1)); in testShouldRingForContact_CallSuppressed()
691 assertTrue(mRingerUnderTest.shouldRingForContact(mockCall1)); in testShouldRingForContact_CallShouldRing()
711 assertFalse(mRingerUnderTest.shouldRingForContact(mockCall1)); in testShouldRingForContact_matchesCallFilterIsAlreadyComputed()
725 assertFalse(mRingerUnderTest.shouldRingForContact(mockCall2)); in testNoFlashNotificationWhenCallSuppressed()
739 assertTrue(mRingerUnderTest.shouldRingForContact(mockCall2)); in testStartFlashNotificationWhenRingStarts()
765 assertTrue(mRingerUnderTest.shouldRingForContact(mockCall2)); in testStopFlashNotificationWhenRingStops()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DDndCallFilter.java56 boolean shouldSuppress = !mRinger.shouldRingForContact(mCall); in startFilterLookup()