Home
last modified time | relevance | path

Searched refs:mods (Results 1 – 25 of 140) sorted by relevance

123456

/external/libxkbcommon/src/xkbcomp/
Dtypes.c47 xkb_mod_mask_t mods; member
58 struct xkb_mod_set mods; member
68 return ModMaskText(info->ctx, &info->mods, entry->mods.mods); in MapEntryTxt()
80 return ModMaskText(info->ctx, &info->mods, type->mods); in TypeMaskTxt()
103 const struct xkb_mod_set *mods) in InitKeyTypesInfo() argument
107 info->mods = *mods; in InitKeyTypesInfo()
184 into->mods = from->mods; in MergeIncludedKeyTypes()
213 InitKeyTypesInfo(&included, info->ctx, &info->mods); in HandleIncludeKeyTypes()
228 InitKeyTypesInfo(&next_incl, info->ctx, &included.mods); in HandleIncludeKeyTypes()
250 xkb_mod_mask_t mods; in SetModifiers() local
[all …]
Dkeymap.c35 ComputeEffectiveMask(struct xkb_keymap *keymap, struct xkb_mods *mods) in ComputeEffectiveMask() argument
37 mods->mask = mod_mask_get_effective(keymap, mods->mods); in ComputeEffectiveMask()
48 if (act->mods.flags & ACTION_MODS_LOOKUP_MODMAP) in UpdateActionMods()
49 act->mods.mods.mods = modmap; in UpdateActionMods()
50 ComputeEffectiveMask(keymap, &act->mods.mods); in UpdateActionMods()
61 .mods = 0,
92 xkb_mod_mask_t mods; in FindInterpForKey() local
100 mods = 0; in FindInterpForKey()
102 mods = key->modmap; in FindInterpForKey()
106 found = !(interp->mods & mods); in FindInterpForKey()
[all …]
Dvmod.c35 HandleVModDef(struct xkb_context *ctx, struct xkb_mod_set *mods, in HandleVModDef() argument
50 if (!ExprResolveModMask(ctx, stmt->value, MOD_REAL, mods, &mapping)) { in HandleVModDef()
61 xkb_mods_enumerate(i, mod, mods) { in HandleVModDef()
84 ModMaskText(ctx, mods, use), in HandleVModDef()
85 ModMaskText(ctx, mods, ignore)); in HandleVModDef()
95 if (mods->num_mods >= XKB_MAX_MODS) { in HandleVModDef()
102 mods->mods[mods->num_mods].name = stmt->name; in HandleVModDef()
103 mods->mods[mods->num_mods].type = MOD_VIRT; in HandleVModDef()
104 mods->mods[mods->num_mods].mapping = mapping; in HandleVModDef()
105 mods->num_mods++; in HandleVModDef()
Dkeymap-dump.c131 xkb_mods_foreach(mod, &keymap->mods) { in write_vmods()
210 ModMaskText(keymap->ctx, &keymap->mods, type->mods.mods)); in write_types()
220 if (entry->level == 0 && entry->preserve.mods == 0) in write_types()
223 str = ModMaskText(keymap->ctx, &keymap->mods, entry->mods.mods); in write_types()
227 if (entry->preserve.mods) in write_types()
229 str, ModMaskText(keymap->ctx, &keymap->mods, in write_types()
230 entry->preserve.mods)); in write_types()
267 ModMaskText(keymap->ctx, &keymap->mods, led->mods.mods)); in write_led_map()
314 if (action->mods.flags & ACTION_MODS_LOOKUP_MODMAP) in write_action()
317 args = ModMaskText(keymap->ctx, &keymap->mods, in write_action()
[all …]
Dcompat.c95 struct xkb_mod_set mods; member
111 ModMaskText(info->ctx, &info->mods, si->interp.mods)); in siText()
149 ActionsInfo *actions, const struct xkb_mod_set *mods) in InitCompatInfo() argument
154 info->mods = *mods; in InitCompatInfo()
174 old->interp.mods == new->interp.mods && in FindMatchingInterp()
286 return ExprResolveModMask(info->ctx, expr, MOD_REAL, &info->mods, in ResolveStateAndPredicate()
323 if (old->led.mods.mods == new->led.mods.mods && in AddLedMap()
345 old->led.mods = new->led.mods; in AddLedMap()
388 into->mods = from->mods; in MergeIncludedCompatMaps()
431 InitCompatInfo(&included, info->ctx, info->actions, &info->mods); in HandleIncludeCompatMap()
[all …]
Daction.c226 HandleNoAction(struct xkb_context *ctx, const struct xkb_mod_set *mods, in HandleNoAction() argument
257 CheckModifierField(struct xkb_context *ctx, const struct xkb_mod_set *mods, in CheckModifierField() argument
276 if (!ExprResolveModMask(ctx, value, MOD_BOTH, mods, mods_rtrn)) in CheckModifierField()
312 HandleSetLatchLockMods(struct xkb_context *ctx, const struct xkb_mod_set *mods, in HandleSetLatchLockMods() argument
316 struct xkb_mod_action *act = &action->mods; in HandleSetLatchLockMods()
320 return CheckModifierField(ctx, mods, action->type, array_ndx, value, in HandleSetLatchLockMods()
321 &act->flags, &act->mods.mods); in HandleSetLatchLockMods()
379 HandleSetLatchLockGroup(struct xkb_context *ctx, const struct xkb_mod_set *mods, in HandleSetLatchLockGroup() argument
404 HandleMovePtr(struct xkb_context *ctx, const struct xkb_mod_set *mods, in HandleMovePtr() argument
452 HandlePtrBtn(struct xkb_context *ctx, const struct xkb_mod_set *mods, in HandlePtrBtn() argument
[all …]
/external/libxkbcommon/src/
Dstate.c89 xkb_mod_mask_t mods; /**< effective */ member
122 get_entry_for_mods(const struct xkb_key_type *type, xkb_mod_mask_t mods) in get_entry_for_mods() argument
126 type->entries[i].mods.mask == mods) in get_entry_for_mods()
136 xkb_mod_mask_t active_mods = state->components.mods & type->mods.mask; in get_entry_for_key_state()
343 state->set_mods = filter->action.mods.mods.mask; in xkb_filter_mod_set_new()
353 filter->action.mods.flags &= ~ACTION_LOCK_CLEAR; in xkb_filter_mod_set_func()
365 state->clear_mods = filter->action.mods.mods.mask; in xkb_filter_mod_set_func()
366 if (filter->action.mods.flags & ACTION_LOCK_CLEAR) in xkb_filter_mod_set_func()
367 state->components.locked_mods &= ~filter->action.mods.mods.mask; in xkb_filter_mod_set_func()
377 filter->action.mods.mods.mask); in xkb_filter_mod_lock_new()
[all …]
Dkeymap.h181 xkb_mod_mask_t mods; /* original real+virtual mods in definition */ member
188 struct xkb_mods mods; member
236 struct xkb_mod_action mods; member
248 struct xkb_mods mods; member
254 struct xkb_mods mods; member
265 xkb_mod_mask_t mods; member
277 struct xkb_mods mods; member
357 struct xkb_mod mods[XKB_MAX_MODS]; member
385 struct xkb_mod_set mods; member
408 for ((iter) = (mods_)->mods; \
[all …]
Dkeymap-priv.c47 keymap->mods.mods[i].name = xkb_atom_intern(keymap->ctx, in update_builtin_keymap_fields()
50 keymap->mods.mods[i].type = MOD_REAL; in update_builtin_keymap_fields()
52 keymap->mods.num_mods = ARRAY_SIZE(builtin_mods); in update_builtin_keymap_fields()
131 XkbModNameToIndex(const struct xkb_mod_set *mods, xkb_atom_t name, in XkbModNameToIndex() argument
137 xkb_mods_enumerate(i, mod, mods) in XkbModNameToIndex()
Dtext.c213 ModIndexText(struct xkb_context *ctx, const struct xkb_mod_set *mods, in ModIndexText() argument
219 if (ndx >= mods->num_mods) in ModIndexText()
222 return xkb_atom_text(ctx, mods->mods[ndx].name); in ModIndexText()
257 ModMaskText(struct xkb_context *ctx, const struct xkb_mod_set *mods, in ModMaskText() argument
271 xkb_mods_enumerate(i, mod, mods) { in ModMaskText()
/external/openssh/regress/
Dmodpipe.c88 struct modification mods[MAX_MODIFICATIONS]; in main() local
96 parse_modification(optarg, &(mods[num_mods++])); in main()
116 if (mods[i].offset < total || in main()
117 mods[i].offset >= total + s) in main()
119 switch (mods[i].what) { in main()
121 buf[mods[i].offset - total] ^= mods[i].m1; in main()
124 buf[mods[i].offset - total] &= mods[i].m1; in main()
125 buf[mods[i].offset - total] |= mods[i].m2; in main()
144 if (mods[i].offset < total) in main()
/external/selinux/semodule-utils/semodule_link/
Dsemodule_link.c81 sepol_module_package_t *base, **mods; in main() local
126 mods = in main()
129 if (!mods) { in main()
133 memset(mods, 0, sizeof(sepol_module_package_t *) * num_mods); in main()
136 mods[i] = load_module(argv[optind]); in main()
137 if (!mods[i]) { in main()
145 if (sepol_link_packages(NULL, base, mods, num_mods, verbose)) { in main()
173 sepol_module_package_free(mods[i]); in main()
174 free(mods); in main()
/external/libxkbcommon/src/x11/
Dkeymap.c140 action->mods.mods.mods = translate_mods(wire->setmods.realMods, in translate_action()
143 action->mods.mods.mask = translate_mods(wire->setmods.mask, 0, 0); in translate_action()
146 action->mods.flags |= ACTION_LOCK_CLEAR; in translate_action()
148 action->mods.flags |= ACTION_LATCH_TO_LOCK; in translate_action()
150 action->mods.flags |= ACTION_MODS_LOOKUP_MODMAP; in translate_action()
156 action->mods.mods.mods = translate_mods(wire->latchmods.realMods, in translate_action()
159 action->mods.mods.mask = translate_mods(wire->latchmods.mask, 0, 0); in translate_action()
162 action->mods.flags |= ACTION_LOCK_CLEAR; in translate_action()
164 action->mods.flags |= ACTION_LATCH_TO_LOCK; in translate_action()
166 action->mods.flags |= ACTION_MODS_LOOKUP_MODMAP; in translate_action()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DAdoptingModifierStore.java18 final Modifier[] mods; field in AdoptingModifierStore
32 this.mods = null; in AdoptingModifierStore()
48 this.mods = new Modifier[4 * StandardPlural.COUNT]; in AdoptingModifierStore()
54 mods[getModIndex(signum, plural)] = mod; in setModifier()
63 assert mods == null; in getModifierWithoutPlural()
83 return mods[getModIndex(signum, plural)]; in getModifier()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DAdoptingModifierStore.java20 final Modifier[] mods; field in AdoptingModifierStore
34 this.mods = null; in AdoptingModifierStore()
50 this.mods = new Modifier[4 * StandardPlural.COUNT]; in AdoptingModifierStore()
56 mods[getModIndex(signum, plural)] = mod; in setModifier()
65 assert mods == null; in getModifierWithoutPlural()
85 return mods[getModIndex(signum, plural)]; in getModifier()
/external/python/cpython3/Tools/freeze/
Dcheckextensions.py20 (mods, vars), liba = edict[e]
21 if mod not in mods:
31 for m in list(mods.keys()):
32 files = files + select(e, mods, vars,
35 files = files + select(e, mods, vars, mod, 0)
39 def select(e, mods, vars, mod, skipofiles): argument
41 for w in mods[mod]:
/external/python/cpython2/Tools/freeze/
Dcheckextensions.py20 (mods, vars), liba = edict[e]
21 if not mods.has_key(mod):
31 for m in mods.keys():
32 files = files + select(e, mods, vars,
35 files = files + select(e, mods, vars, mod, 0)
39 def select(e, mods, vars, mod, skipofiles): argument
41 for w in mods[mod]:
/external/javassist/src/main/javassist/
DSerialVersionUID.java125 int mods = field.getModifiers(); in calculateDefault() local
126 if (((mods & Modifier.PRIVATE) == 0) || in calculateDefault()
127 ((mods & (Modifier.STATIC | Modifier.TRANSIENT)) == 0)) { in calculateDefault()
129 out.writeInt(mods); in calculateDefault()
153 int mods = constructor.getModifiers(); in calculateDefault() local
154 if ((mods & Modifier.PRIVATE) == 0) { in calculateDefault()
156 out.writeInt(mods); in calculateDefault()
177 int mods = method.getModifiers() in calculateDefault() local
182 if ((mods & Modifier.PRIVATE) == 0) { in calculateDefault()
184 out.writeInt(mods); in calculateDefault()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DEvent.java44 public final List<EventMod> mods; field in Event
49 Event(byte eventKind, byte suspendPolicy, List<EventMod> mods) { in Event() argument
52 this.mods = Collections.unmodifiableList(mods); in Event()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DModifierOrderer.java108 List<Modifier> mods = new ArrayList<>(); in reorderModifiers() local
111 mods.add(mod); in reorderModifiers()
121 mods.add(mod); in reorderModifiers()
126 if (!Ordering.natural().isOrdered(mods)) { in reorderModifiers()
127 Collections.sort(mods); in reorderModifiers()
129 for (int i = 0; i < mods.size(); i++) { in reorderModifiers()
133 replacement.append(mods.get(i).toString()); in reorderModifiers()
/external/python/cpython3/Modules/
Dmakesetup154 mods=
190 [a-zA-Z_]*) mods="$mods $arg";;
198 MODS="$MODS $mods"
199 BUILT="$BUILT $mods"
202 BUILT="$BUILT $mods"
205 DISABLED="$DISABLED $mods"
244 for mod in $mods
/external/turbine/java/com/google/turbine/tree/
DTree.java659 private final ImmutableSet<TurbineModifier> mods; field in Tree.VarDecl
668 Set<TurbineModifier> mods, in VarDecl() argument
675 this.mods = ImmutableSet.copyOf(mods); in VarDecl()
693 public ImmutableSet<TurbineModifier> mods() { in mods() method in Tree.VarDecl
694 return mods; in mods()
724 private final ImmutableSet<TurbineModifier> mods; field in Tree.MethDecl
736 Set<TurbineModifier> mods, in MethDecl() argument
746 this.mods = ImmutableSet.copyOf(mods); in MethDecl()
767 public ImmutableSet<TurbineModifier> mods() { in mods() method in Tree.MethDecl
768 return mods; in mods()
[all …]
/external/mesa3d/src/panfrost/bifrost/test/
Dbi_test_pack.c408 for (unsigned mods = 0; mods < max_mods; ++mods) { in bit_fcmp_helper() local
413 ins.swizzle[i][0] = ((mods >> (i * 2)) & 1) ? 1 : 0; in bit_fcmp_helper()
414 ins.swizzle[i][1] = ((mods >> (i * 2)) & 2) ? 1 : 0; in bit_fcmp_helper()
417 ins.src_abs[0] = (mods & 16) ? true : false; in bit_fcmp_helper()
418 ins.src_abs[1] = (mods & 32) ? true : false; in bit_fcmp_helper()
425 ins.src_abs[0] = (mods & 1) ? true : false; in bit_fcmp_helper()
426 ins.src_abs[1] = (mods & 2) ? true : false; in bit_fcmp_helper()
427 ins.src_neg[0] = (mods & 4) ? true : false; in bit_fcmp_helper()
428 ins.src_neg[1] = (mods & 8) ? true : false; in bit_fcmp_helper()
551 for (unsigned mods = 0; mods < 4; ++mods) { in bit_bitwise_helper() local
[all …]
/external/mesa3d/src/intel/tools/imgui/
Dimgui_impl_gtk3.cpp137 } mods[] = { in ImGui_ImplGtk3_HandleEvent() local
147 for (unsigned i = 0; i < ARRAY_SIZE(mods); i++) in ImGui_ImplGtk3_HandleEvent()
149 *mods[i].var = (mods[i].modifier & e->state); in ImGui_ImplGtk3_HandleEvent()
152 for (int j = 0; mods[i].keyvals[j] != 0; j++) in ImGui_ImplGtk3_HandleEvent()
153 if (e->keyval == mods[i].keyvals[j]) in ImGui_ImplGtk3_HandleEvent()
157 *mods[i].var = type == GDK_KEY_PRESS; in ImGui_ImplGtk3_HandleEvent()
/external/icu/icu4c/source/i18n/
Dnumber_modifiers.h293 U_ASSERT(mods[getModIndex(signum, plural)] == nullptr); in adoptModifier()
294 mods[getModIndex(signum, plural)] = mod; in adoptModifier()
302 U_ASSERT(mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)] == nullptr); in adoptModifierWithoutPlural()
303 mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)] = mod; in adoptModifierWithoutPlural()
308 const Modifier* modifier = mods[getModIndex(signum, plural)]; in getModifier()
310 modifier = mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)]; in getModifier()
317 return mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)]; in getModifierWithoutPlural()
322 const Modifier *mods[4 * StandardPlural::COUNT] = {};

123456