Home
last modified time | relevance | path

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

/packages/services/Car/tools/keventreader/common/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()
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.java82 abstract void playTone(int keycode); in playTone() argument
141 public void onKeypadKeyDown(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyDown() argument
142 String digit = sDialValueMap.get(keycode).toString(); in onKeypadKeyDown()
146 mCurrentlyPlayingTone = keycode; in onKeypadKeyDown()
147 playTone(keycode); in onKeypadKeyDown()
152 public void onKeypadKeyUp(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyUp() argument
153 if (mDTMFToneEnabled && keycode == mCurrentlyPlayingTone) { in onKeypadKeyUp()
DInCallDialpadFragment.java105 void playTone(int keycode) { in playTone() argument
106 L.d(TAG, "start DTMF tone for %s", keycode); in playTone()
108 mActiveCall.getValue().playDtmfTone(sDialValueMap.get(keycode)); in playTone()
126 public void onKeypadKeyLongPressed(int keycode) { in onKeypadKeyLongPressed() argument
DDialpadFragment.java242 public void onKeypadKeyLongPressed(@KeypadFragment.DialKeyCode int keycode) { in onKeypadKeyLongPressed() argument
243 switch (keycode) { in onKeypadKeyLongPressed()
261 void playTone(int keycode) { in playTone() argument
262 L.d(TAG, "start key pressed tone for %s", keycode); in playTone()
263 mToneGenerator.startTone(mToneMap.get(keycode), TONE_LENGTH_INFINITE); in playTone()
DKeypadFragment.java74 void onKeypadKeyLongPressed(@DialKeyCode int keycode); in onKeypadKeyLongPressed() argument
77 void onKeypadKeyDown(@DialKeyCode int keycode); in onKeypadKeyDown() argument
80 void onKeypadKeyUp(@DialKeyCode int keycode); in onKeypadKeyUp() argument
/packages/services/Car/tools/keventreader/common/
Devent.h28 KeypressEvent(const std::string source = "", uint32_t keycode = 0, bool keydown = false);
31 uint32_t keycode; member
/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.java444 int keycode = mute ? KeyEvent.KEYCODE_MEDIA_PAUSE : KeyEvent.KEYCODE_MEDIA_PLAY; in setMasterMute() local
446 dispatchMediaKeyEvent(keycode); in setMasterMute()
449 private void dispatchMediaKeyEvent(int keycode) { in dispatchMediaKeyEvent() argument
452 KeyEvent.ACTION_DOWN, keycode, /* repeat= */ 0); in dispatchMediaKeyEvent()
456 KeyEvent.ACTION_UP, keycode, /* repeat= */ 0); in dispatchMediaKeyEvent()