Home
last modified time | relevance | path

Searched refs:keycode (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tools/keventreader/client/src/com/android/car/keventreader/
DKeypressEvent.java582 public final int keycode; field in KeypressEvent
598 keycode = in.readInt(); in KeypressEvent()
610 dest.writeInt(keycode); in writeToParcel()
619 other.keycode == keycode && in equals()
627 return"Event{source = " + source + ", keycode = " + keycode + in toString()
632 return keycodeToString(keycode); in keycodeToString()
641 public static String keycodeToString(int keycode) { in keycodeToString() argument
642 String ret = KEYCODE_NAME_MAP.get(keycode); in keycodeToString()
643 return ret != null ? ret : "0x" + Integer.toHexString(keycode); in keycodeToString()
/packages/services/Car/tools/keventreader/server/
Devent.cpp24 KeypressEvent::KeypressEvent(const std::string source, uint32_t keycode, bool keydown) { in KeypressEvent() argument
26 this->keycode = keycode; in KeypressEvent()
33 parcel->writeUint32(keycode); in writeToParcel()
42 keycode = parcel->readUint32(); in readFromParcel()
Devent.h28 KeypressEvent(const std::string source = "", uint32_t keycode = 0, bool keydown = false);
31 uint32_t keycode; member
Dkeymap.cpp31 std::string Keymap::getDisplayName(int keycode) { in getDisplayName() argument
32 auto iter = mKeyMap.find(keycode), end = mKeyMap.end(); in getDisplayName()
35 ss << "unknown " << keycode; in getDisplayName()
Dkeymap.h28 std::string getDisplayName(int keycode);
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DAbstractDialpadFragment.java75 abstract void playTone(int keycode); in playTone() argument
126 public void onKeypadKeyDown(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyDown() argument
127 String digit = sDialValueMap.get(keycode).toString(); in onKeypadKeyDown()
131 mCurrentlyPlayingTone = keycode; in onKeypadKeyDown()
132 playTone(keycode); in onKeypadKeyDown()
137 public void onKeypadKeyUp(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyUp() argument
138 if (mDTMFToneEnabled && keycode == mCurrentlyPlayingTone) { in onKeypadKeyUp()
DInCallDialpadFragment.java101 void playTone(int keycode) { in playTone() argument
102 L.d(TAG, "start DTMF tone for %s", keycode); in playTone()
104 mActiveCall.getValue().playDtmfTone(sDialValueMap.get(keycode)); in playTone()
122 public void onKeypadKeyLongPressed(int keycode) { in onKeypadKeyLongPressed() argument
DDialpadFragment.java205 public void onKeypadKeyLongPressed(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyLongPressed() argument
206 switch (keycode) { in onKeypadKeyLongPressed()
224 void playTone(int keycode) { in playTone() argument
225 L.d(TAG, "start key pressed tone for %s", keycode); in playTone()
226 mToneGenerator.startTone(mToneMap.get(keycode), TONE_LENGTH_INFINITE); in playTone()
DKeypadFragment.java70 void onKeypadKeyLongPressed(@DialKeyCode int keycode); in onKeypadKeyLongPressed() argument
73 void onKeypadKeyDown(@DialKeyCode int keycode); in onKeypadKeyDown() argument
76 void onKeypadKeyUp(@DialKeyCode int keycode); in onKeypadKeyUp() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DInputTestFragment.java171 mEventReaderServiceKeyDownCounter.count(keypressEvent.keycode, keypressEvent.isKeydown);
194 int keycode = vpv.value.int32Values.get(1);
197 mVhalKeyDownCounter.count(keycode, true);
200 mVhalKeyDownCounter.count(keycode, false);
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java375 int keycode = mute ? KeyEvent.KEYCODE_MEDIA_PAUSE : KeyEvent.KEYCODE_MEDIA_PLAY; in setMasterMute() local
376 mAudioManager.dispatchMediaKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, keycode)); in setMasterMute()
377 mAudioManager.dispatchMediaKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, keycode)); in setMasterMute()