Home
last modified time | relevance | path

Searched refs:xkey (Results 1 – 25 of 39) sorted by relevance

12

/external/dropbear/libtomcrypt/src/ciphers/
Drc2.c72 unsigned *xkey = skey->rc2.xkey; in rc2_setup() local
110 xkey[i] = (unsigned)tmp[2*i] + ((unsigned)tmp[2*i+1] << 8); in rc2_setup()
140 unsigned *xkey; in _rc2_ecb_encrypt() local
147 xkey = skey->rc2.xkey; in _rc2_ecb_encrypt()
155 x10 = (x10 + (x32 & ~x76) + (x54 & x76) + xkey[4*i+0]) & 0xFFFF; in _rc2_ecb_encrypt()
158 x32 = (x32 + (x54 & ~x10) + (x76 & x10) + xkey[4*i+1]) & 0xFFFF; in _rc2_ecb_encrypt()
161 x54 = (x54 + (x76 & ~x32) + (x10 & x32) + xkey[4*i+2]) & 0xFFFF; in _rc2_ecb_encrypt()
164 x76 = (x76 + (x10 & ~x54) + (x32 & x54) + xkey[4*i+3]) & 0xFFFF; in _rc2_ecb_encrypt()
168 x10 = (x10 + xkey[x76 & 63]) & 0xFFFF; in _rc2_ecb_encrypt()
169 x32 = (x32 + xkey[x10 & 63]) & 0xFFFF; in _rc2_ecb_encrypt()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/dga/
DSDL_dgaevents.c82 XKeyEvent xkey; in DGA_DispatchEvent() local
84 SDL_NAME(XDGAKeyEventToXKeyEvent)(&xevent.xkey, &xkey); in DGA_DispatchEvent()
85 keycode = xkey.keycode; in DGA_DispatchEvent()
87 printf("KeyPress (X11 keycode = 0x%X)\n", xkey.keycode); in DGA_DispatchEvent()
100 if ( XLookupString(&xkey, keybuf, sizeof(keybuf), NULL, &state) ) { in DGA_DispatchEvent()
118 XKeyEvent xkey; in DGA_DispatchEvent() local
120 SDL_NAME(XDGAKeyEventToXKeyEvent)(&xevent.xkey, &xkey); in DGA_DispatchEvent()
121 keycode = xkey.keycode; in DGA_DispatchEvent()
123 printf("KeyRelease (X11 keycode = 0x%X)\n", xkey.keycode); in DGA_DispatchEvent()
/external/wpa_supplicant_8/src/crypto/
Dfips_prf_internal.c19 u8 xkey[64]; in fips186_2_prf() local
25 if (seed_len < sizeof(xkey)) in fips186_2_prf()
26 os_memset(xkey + seed_len, 0, sizeof(xkey) - seed_len); in fips186_2_prf()
28 seed_len = sizeof(xkey); in fips186_2_prf()
32 os_memcpy(xkey, seed, seed_len); in fips186_2_prf()
47 SHA1Transform(_t, xkey); in fips186_2_prf()
58 carry += xkey[k] + xpos[k]; in fips186_2_prf()
59 xkey[k] = carry & 0xff; in fips186_2_prf()
Dfips_prf_openssl.c28 u8 xkey[64]; in fips186_2_prf() local
34 if (seed_len < sizeof(xkey)) in fips186_2_prf()
35 os_memset(xkey + seed_len, 0, sizeof(xkey) - seed_len); in fips186_2_prf()
37 seed_len = sizeof(xkey); in fips186_2_prf()
41 os_memcpy(xkey, seed, seed_len); in fips186_2_prf()
56 sha1_transform((u8 *) _t, xkey); in fips186_2_prf()
67 carry += xkey[k] + xpos[k]; in fips186_2_prf()
68 xkey[k] = carry & 0xff; in fips186_2_prf()
/external/chromium_org/chrome/browser/ui/ash/
Devent_rewriter.cc379 if (event->native_event()->xkey.send_event) in Rewrite()
497 XKeyEvent* xkey = &(xev->xkey); in RewriteModifiers() local
498 KeySym keysym = XLookupKeysym(xkey, 0); in RewriteModifiers()
501 KeyCode remapped_native_keycode = xkey->keycode; in RewriteModifiers()
565 GetRemappedModifierMasks(event->flags(), xkey->state, in RewriteModifiers()
594 XKeyEvent* xkey = &(xev->xkey); in RewriteNumPadKeys() local
596 const KeySym keysym = XLookupKeysym(xkey, 0); in RewriteNumPadKeys()
600 xkey->state | Mod2Mask, in RewriteNumPadKeys()
606 xkey->state | Mod2Mask, in RewriteNumPadKeys()
612 xkey->state | Mod2Mask, in RewriteNumPadKeys()
[all …]
Devent_rewriter_unittest.cc45 xevent->xkey.keycode = x_keycode; in GetRewrittenEventAsString()
46 xevent->xkey.state = x_state; in GetRewrittenEventAsString()
52 xevent->xkey.keycode, xevent->xkey.state, xevent->xkey.type); in GetRewrittenEventAsString()
2300 xevent->xkey.keycode = keycode_control_l_; in TEST_F()
2301 xevent->xkey.send_event = True; // XSendEvent() always does this. in TEST_F()
2308 xevent->xkey.keycode, xevent->xkey.state, xevent->xkey.type); in TEST_F()
2354 xevent->xkey.keycode = keycode_f1; in TEST_F()
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dx11_input_method_context_impl_gtk2.cc28 GdkEvent* GdkEventFromXKeyEvent(XKeyEvent& xkey, bool is_modifier) { in GdkEventFromXKeyEvent() argument
29 DCHECK(xkey.type == KeyPress || xkey.type == KeyRelease); in GdkEventFromXKeyEvent()
32 GdkDisplay* display = gdk_x11_lookup_xdisplay(xkey.display); in GdkEventFromXKeyEvent()
44 XLookupString(&xkey, NULL, 0, &keysym, NULL); in GdkEventFromXKeyEvent()
50 gdk_keymap_get_entries_for_keycode(keymap, xkey.keycode, in GdkEventFromXKeyEvent()
64 GdkWindow* window = gdk_x11_window_lookup_for_display(display, xkey.window); in GdkEventFromXKeyEvent()
68 window = gdk_x11_window_foreign_new_for_display(display, xkey.window); in GdkEventFromXKeyEvent()
75 GdkEventType event_type = xkey.type == KeyPress ? in GdkEventFromXKeyEvent()
81 event->key.send_event = xkey.send_event; in GdkEventFromXKeyEvent()
82 event->key.time = xkey.time; in GdkEventFromXKeyEvent()
[all …]
/external/chromium_org/ui/events/test/
Devents_test_utils_x11.cc136 event_->xkey.serial = 0; in InitKeyEvent()
137 event_->xkey.send_event = 0; in InitKeyEvent()
138 event_->xkey.display = display; in InitKeyEvent()
139 event_->xkey.time = 0; in InitKeyEvent()
140 event_->xkey.window = 0; in InitKeyEvent()
141 event_->xkey.root = 0; in InitKeyEvent()
142 event_->xkey.subwindow = 0; in InitKeyEvent()
143 event_->xkey.x = 0; in InitKeyEvent()
144 event_->xkey.y = 0; in InitKeyEvent()
145 event_->xkey.x_root = 0; in InitKeyEvent()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11events.c317 (peekevent.xkey.keycode == event->xkey.keycode) && in X11_KeyRepeat()
318 ((peekevent.xkey.time-event->xkey.time) < 2) ) { in X11_KeyRepeat()
561 KeyCode keycode = xevent.xkey.keycode; in X11_DispatchEvent()
564 printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode); in X11_DispatchEvent()
596 count = Xutf8LookupString(SDL_IC, &xevent.xkey, keydata, sizeof(keybuf), &xkeysym, &status); in X11_DispatchEvent()
606 count = Xutf8LookupString(SDL_IC, &xevent.xkey, keydata, count, &xkeysym, &status); in X11_DispatchEvent()
734 if ( XLookupString(&xevent.xkey, in X11_DispatchEvent()
754 KeyCode keycode = xevent.xkey.keycode; in X11_DispatchEvent()
765 printf("KeyRelease (X11 keycode = 0x%X)\n", xevent.xkey.keycode); in X11_DispatchEvent()
1255 XKeyEvent xkey; in X11_KeyToUnicode() local
[all …]
/external/chromium_org/ui/aura/test/
Dui_controls_factory_aurax11.cc111 xevent.xkey.type = KeyPress; in SendKeyPressNotifyWhenDone()
118 xevent.xkey.keycode = in SendKeyPressNotifyWhenDone()
124 xevent.xkey.type = KeyRelease; in SendKeyPressNotifyWhenDone()
132 DCHECK(!xevent.xkey.state); in SendKeyPressNotifyWhenDone()
230 xevent->xkey.keycode = in SetKeycodeAndSendThenMask()
233 xevent->xkey.state |= mask; in SetKeycodeAndSendThenMask()
239 xevent->xkey.state ^= mask; in UnmaskAndSetKeycodeThenSend()
240 xevent->xkey.keycode = in UnmaskAndSetKeycodeThenSend()
/external/chromium_org/ui/views/test/
Dui_controls_factory_desktop_aurax11.cc131 xevent.xkey.type = KeyPress; in SendKeyPressNotifyWhenDone()
140 xevent.xkey.keycode = in SendKeyPressNotifyWhenDone()
146 xevent.xkey.type = KeyRelease; in SendKeyPressNotifyWhenDone()
156 DCHECK(!xevent.xkey.state); in SendKeyPressNotifyWhenDone()
282 xevent->xkey.keycode = XKeysymToKeycode(x_display_, keysym); in SetKeycodeAndSendThenMask()
284 xevent->xkey.state |= mask; in SetKeycodeAndSendThenMask()
291 xevent->xkey.state ^= mask; in UnmaskAndSetKeycodeThenSend()
292 xevent->xkey.keycode = XKeysymToKeycode(x_display_, keysym); in UnmaskAndSetKeycodeThenSend()
/external/chromium_org/chrome/browser/chromeos/
Dkeyboard_driven_event_rewriter.cc62 XKeyEvent* xkey = &(xev->xkey); in RewriteEvent() local
63 xkey->state &= ~(ControlMask | Mod1Mask | ShiftMask); in RewriteEvent()
Dkeyboard_driven_event_rewriter_unittest.cc43 xevent->xkey.keycode = x_keycode; in GetRewrittenEventAsString()
44 xevent->xkey.state = x_state; in GetRewrittenEventAsString()
49 xevent->xkey.state, in GetRewrittenEventAsString()
/external/wpa_supplicant_8/wpa_supplicant/tests/
Dtest_eap_sim_common.c15 u8 xkey[] = { in test_eap_sim_prf() local
30 eap_sim_prf(xkey, buf, sizeof(buf)); in test_eap_sim_prf()
/external/chromium_org/content/browser/renderer_host/
Dweb_input_event_aura_unittest.cc52 xevent->xkey.keycode = XKeysymToKeycode(gfx::GetXDisplay(), XK_Control_L); in TEST()
62 xevent->xkey.keycode = XKeysymToKeycode(gfx::GetXDisplay(), XK_Control_R); in TEST()
Dweb_input_event_aurax11.cc96 XKeyEvent* native_key_event = &native_event->xkey; in MakeWebKeyboardEventFromAuraEvent()
/external/chromium_org/chrome/browser/extensions/
Dglobal_shortcut_listener_x11.cc178 modifiers |= (x_event->xkey.state & ShiftMask) ? ui::EF_SHIFT_DOWN : 0; in OnXKeyPressEvent()
179 modifiers |= (x_event->xkey.state & ControlMask) ? ui::EF_CONTROL_DOWN : 0; in OnXKeyPressEvent()
180 modifiers |= (x_event->xkey.state & Mod1Mask) ? ui::EF_ALT_DOWN : 0; in OnXKeyPressEvent()
/external/chromium_org/ash/wm/
Dsticky_keys.cc403 XKeyEvent* xkey = &(xev->xkey); in AppendModifier() local
404 AppendNativeEventMask(&xkey->state); in AppendModifier()
419 XButtonEvent* xkey = &(xev->xbutton); in AppendModifier() local
420 AppendNativeEventMask(&xkey->state); in AppendModifier()
/external/skia/src/views/unix/
DSkOSWindow_Unix.cpp165 if (evt.xkey.state & gModi[i].fXMask) { in getModi()
228 int shiftLevel = (evt.xkey.state & ShiftMask) ? 1 : 0; in nextXEvent()
229 KeySym keysym = XkbKeycodeToKeysym(dsp, evt.xkey.keycode, in nextXEvent()
242 this->handleKeyUp(XKeyToSkKey(XkbKeycodeToKeysym(dsp, evt.xkey.keycode, 0, 0))); in nextXEvent()
/external/chromium_org/third_party/skia/src/views/unix/
DSkOSWindow_Unix.cpp165 if (evt.xkey.state & gModi[i].fXMask) { in getModi()
228 int shiftLevel = (evt.xkey.state & ShiftMask) ? 1 : 0; in nextXEvent()
229 KeySym keysym = XkbKeycodeToKeysym(dsp, evt.xkey.keycode, in nextXEvent()
242 this->handleKeyUp(XKeyToSkKey(XkbKeycodeToKeysym(dsp, evt.xkey.keycode, 0, 0))); in nextXEvent()
/external/chromium/chrome/browser/chromeos/
Dsystem_key_event_listener.cc97 int32 keycode = xevent->xkey.keycode; in GdkEventFilter()
100 if (!(xevent->xkey.state & (Mod1Mask | ShiftMask | ControlMask))) { in GdkEventFilter()
/external/chromium_org/ui/events/keycodes/
Dkeyboard_code_conversion_x.cc26 XLookupString(&xev->xkey, NULL, 0, &keysym, NULL); in KeyboardCodeFromXKeyEvent()
29 keysym = DefaultXKeysymFromHardwareKeycode(xev->xkey.keycode); in KeyboardCodeFromXKeyEvent()
445 xev->xkey.keycode); in CodeFromXEvent()
450 int bytes_written = XLookupString(&xev->xkey, buf, 6, NULL, NULL); in GetCharacterFromXEvent()
/external/chromium_org/ui/events/x/
Devents_x.cc50 state_ = native_event->xkey.state; in UpdateStateFromEvent()
326 return GetEventFlagsFromXState(native_event->xkey.state); in EventFlagsFromNative()
383 return base::TimeDelta::FromMilliseconds(native_event->xkey.time); in EventTimeFromNative()
/external/qemu/distrib/sdl-1.2.15/src/video/Xext/extensions/
Dxf86dga.h136 SDL_NAME(XDGAKeyEvent) xkey;
/external/chromium_org/ui/base/ime/chromeos/
Dcharacter_composer.cc422 ::XLookupString(&xevent->xkey, NULL, 0, &keysym, NULL); in FilterKeyPress()
424 return FilterKeyPressInternal(keysym, xevent->xkey.keycode, event.flags()); in FilterKeyPress()

12