Searched refs:HeadsetMediaButton (Results 1 – 7 of 7) sorted by relevance
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | HeadsetMediaButtonTest.java | 36 import com.android.server.telecom.HeadsetMediaButton; 37 import com.android.server.telecom.HeadsetMediaButton.MediaSessionWrapper; 53 private HeadsetMediaButton mHeadsetMediaButton; 57 @Mock private HeadsetMediaButton.MediaSessionAdapter mMediaSessionAdapter; 68 mHeadsetMediaButton = new HeadsetMediaButton(mContext, mMockCallsManager, mLock, in setUp() 167 verify(mMockCallsManager, times(1)).onMediaButton(HeadsetMediaButton.SHORT_PRESS); in testCallbackReceivesKeyEventShortClick() 175 verify(mMockCallsManager, times(1)).onMediaButton(HeadsetMediaButton.LONG_PRESS); in testCallbackReceivesKeyEventLongClick() 179 verify(mMockCallsManager, times(1)).onMediaButton(HeadsetMediaButton.LONG_PRESS); in testCallbackReceivesKeyEventLongClick()
|
D | TelecomSystemTest.java | 84 import com.android.server.telecom.HeadsetMediaButton; 143 public HeadsetMediaButton create(Context context, CallsManager callsManager, in create() 207 @Mock HeadsetMediaButton mHeadsetMediaButton;
|
D | CallsManagerTest.java | 115 import com.android.server.telecom.HeadsetMediaButton; 274 @Mock private HeadsetMediaButton mHeadsetMediaButton; 1530 mCallsManager.onMediaButton(HeadsetMediaButton.SHORT_PRESS); in testAcceptIncomingCallWhenHeadsetMediaButtonShortPress() 1548 mCallsManager.onMediaButton(HeadsetMediaButton.LONG_PRESS); in testRejectIncomingCallWhenHeadsetMediaButtonLongPress() 1562 mCallsManager.onMediaButton(HeadsetMediaButton.SHORT_PRESS); in testHangupOngoingCallWhenHeadsetMediaButtonShortPress() 1576 mCallsManager.onMediaButton(HeadsetMediaButton.LONG_PRESS); in testToggleMuteWhenHeadsetMediaButtonLongPressDuringOngoingCall() 1598 mCallsManager.onMediaButton(HeadsetMediaButton.SHORT_PRESS); in testSwapCallsWhenHeadsetMediaButtonShortPressDuringTwoCalls() 1620 mCallsManager.onMediaButton(HeadsetMediaButton.LONG_PRESS); in testHangupActiveCallWhenHeadsetMediaButtonLongPressDuringTwoCalls()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | HeadsetMediaButton.java | 34 public class HeadsetMediaButton extends CallsManagerListenerBase { class 126 HeadsetMediaButton.class.getSimpleName()); 165 public HeadsetMediaButton( in HeadsetMediaButton() method in HeadsetMediaButton 185 public HeadsetMediaButton( in HeadsetMediaButton() method in HeadsetMediaButton
|
D | HeadsetMediaButtonFactory.java | 32 HeadsetMediaButton create( in create()
|
D | CallsManager.java | 453 private final HeadsetMediaButton mHeadsetMediaButton; 4285 if (HeadsetMediaButton.SHORT_PRESS == type) { 4309 } else if (HeadsetMediaButton.LONG_PRESS == type) {
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | TelecomService.java | 50 import com.android.server.telecom.HeadsetMediaButton; 146 public HeadsetMediaButton create( 150 return new HeadsetMediaButton(context, callsManager, lock);
|