Home
last modified time | relevance | path

Searched refs:HeadsetMediaButton (Results 1 – 7 of 7) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DHeadsetMediaButtonTest.java36 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()
DTelecomSystemTest.java84 import com.android.server.telecom.HeadsetMediaButton;
143 public HeadsetMediaButton create(Context context, CallsManager callsManager, in create()
207 @Mock HeadsetMediaButton mHeadsetMediaButton;
DCallsManagerTest.java115 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/
DHeadsetMediaButton.java34 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
DHeadsetMediaButtonFactory.java32 HeadsetMediaButton create( in create()
DCallsManager.java453 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/
DTelecomService.java50 import com.android.server.telecom.HeadsetMediaButton;
146 public HeadsetMediaButton create(
150 return new HeadsetMediaButton(context, callsManager, lock);