Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 25 of 209) sorted by relevance

123456789

/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/
DBpfMap.h52 template <class Key, class Value>
55 BpfMapRO<Key, Value>() {};
59 BpfMapRO<Key, Value>(const BpfMapRO<Key, Value>&) = delete;
69 if (bpfGetFdKeySize(mMapFd) != sizeof(Key)) abort(); in abortOnMismatch()
75 explicit BpfMapRO<Key, Value>(const char* pathname) {
80 Result<Key> getFirstKey() const { in getFirstKey()
81 Key firstKey; in getFirstKey()
88 Result<Key> getNextKey(const Key& key) const { in getNextKey()
89 Key nextKey; in getNextKey()
96 Result<Value> readValue(const Key key) const { in readValue()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiSettingsConfigStore.java55 private static final ArrayList<Key> sKeys = new ArrayList<>();
61 public static final Key<Boolean> WIFI_P2P_PENDING_FACTORY_RESET =
62 new Key<>("wifi_p2p_pending_factory_reset", false);
67 public static final Key<Boolean> WIFI_SCAN_ALWAYS_AVAILABLE =
68 new Key<>("wifi_scan_always_enabled", false);
73 public static final Key<Boolean> WIFI_SCAN_THROTTLE_ENABLED =
74 new Key<>("wifi_scan_throttle_enabled", true);
79 public static final Key<Boolean> WIFI_VERBOSE_LOGGING_ENABLED =
80 new Key<>("wifi_verbose_logging_enabled", false);
85 public static final Key<Boolean> WIFI_AWARE_VERBOSE_LOGGING_ENABLED =
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DActualKeyboardBuilder.java19 import com.android.inputmethod.keyboard.Key;
37 public final class ActualKeyboardBuilder extends AbstractKeyboardBuilder<Key> {
38 private static ArrayList<Key> filterOutSpacer(final List<Key> keys) { in filterOutSpacer()
39 final ArrayList<Key> filteredKeys = new ArrayList<>(); in filterOutSpacer()
40 for (final Key key : keys) { in filterOutSpacer()
55 public static Key[][] buildKeyboard(final List<Key> sortedKeys) { in buildKeyboard()
57 final ArrayList<Key> filteredSortedKeys = filterOutSpacer(sortedKeys); in buildKeyboard()
60 final ArrayList<ArrayList<Key>> rows = new ArrayList<>(); in buildKeyboard()
61 ArrayList<Key> elements = new ArrayList<>(); in buildKeyboard()
63 for (final Key key : filteredSortedKeys) { in buildKeyboard()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java68 static enum Key { enum in ControlPanelEffect
186 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
188 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences()
192 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences()
195 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences()
198 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences()
199 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences()
206 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences()
218 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences()
220 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences()
[all …]
DActivityMusic.java336 ControlPanelEffect.Key.eq_num_presets); in onCreate()
340 mCallingPackageName, ControlPanelEffect.Key.eq_preset_name, i); in onCreate()
364 ControlPanelEffect.Key.global_enabled, isChecked); in onCreate()
401 ControlPanelEffect.Key.virt_strength, progress); in onCreate()
409 ControlPanelEffect.Key.virt_enabled, true); in onCreate()
419 ControlPanelEffect.Key.virt_enabled, false); in onCreate()
430 ControlPanelEffect.Key.virt_enabled, isChecked); in onCreate()
465 ControlPanelEffect.Key.bb_strength, progress); in onCreate()
473 ControlPanelEffect.Key.bb_enabled, true); in onCreate()
483 ControlPanelEffect.Key.bb_enabled, false); in onCreate()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java23 import com.android.inputmethod.keyboard.Key;
50 private final ArrayDeque<Key> mPendingKeys = new ArrayDeque<>();
52 private List<Key> mCachedGridKeys;
57 final Key key0 = getTemplateKey(TEMPLATE_KEY_CODE_0); in DynamicGridKeyboard()
58 final Key key1 = getTemplateKey(TEMPLATE_KEY_CODE_1); in DynamicGridKeyboard()
67 private Key getTemplateKey(final int code) { in getTemplateKey()
68 for (final Key key : super.getSortedKeys()) { in getTemplateKey()
76 public void addPendingKey(final Key usedKey) { in addPendingKey()
91 public void addKeyFirst(final Key usedKey) { in addKeyFirst()
98 public void addKeyLast(final Key usedKey) { in addKeyLast()
[all …]
DEmojiPageKeyboardView.java28 import com.android.inputmethod.keyboard.Key;
45 public void onPressKey(Key key); in onPressKey()
46 public void onReleaseKey(Key key); in onReleaseKey()
51 public void onPressKey(final Key key) {}
53 public void onReleaseKey(final Key key) {}
122 final Key key = getKey(e); in onTouchEvent()
130 private Key mCurrentKey;
134 private Key getKey(final MotionEvent e) { in getKey()
141 void callListenerOnReleaseKey(final Key releasedKey, final boolean withKeyRegistering) { in callListenerOnReleaseKey()
149 void callListenerOnPressKey(final Key pressedKey) { in callListenerOnPressKey()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardParams.java21 import com.android.inputmethod.keyboard.Key;
68 public final SortedSet<Key> mSortedKeys = new TreeSet<>(ROW_COLUMN_COMPARATOR);
70 public final ArrayList<Key> mShiftKeys = new ArrayList<>();
72 public final ArrayList<Key> mAltCodeKeysWhileTyping = new ArrayList<>();
94 private static final Comparator<Key> ROW_COLUMN_COMPARATOR = new Comparator<Key>() {
96 public int compare(final Key lhs, final Key rhs) {
119 public void onAddKey(@Nonnull final Key newKey) { in onAddKey()
120 final Key key = mUniqueKeysCache.getUniqueKey(newKey); in onAddKey()
145 for (final Key key : mSortedKeys) { in removeRedundantMoreKeys()
148 final ArrayList<Key> allKeys = new ArrayList<>(mSortedKeys); in removeRedundantMoreKeys()
[all …]
DUniqueKeysCache.java19 import com.android.inputmethod.keyboard.Key;
28 public abstract @Nonnull Key getUniqueKey(@Nonnull Key key); in getUniqueKey()
39 public Key getUniqueKey(Key key) { return key; }
48 private final HashMap<Key, Key> mCache;
67 public Key getUniqueKey(final Key key) { in getUniqueKey()
71 final Key existingKey = mCache.get(key); in getUniqueKey()
DKeyPreviewChoreographer.java25 import com.android.inputmethod.keyboard.Key;
43 private final HashMap<Key,KeyPreviewView> mShowingKeyPreviewViews = new HashMap<>();
51 public KeyPreviewView getKeyPreviewView(final Key key, final ViewGroup placerView) { in getKeyPreviewView()
67 public boolean isShowingKeyPreview(final Key key) { in isShowingKeyPreview()
71 public void dismissKeyPreview(final Key key, final boolean withAnimation) { in dismissKeyPreview()
97 public void placeAndShowKeyPreview(final Key key, final KeyboardIconsSet iconsSet, in placeAndShowKeyPreview()
106 private void placeKeyPreview(final Key key, final KeyPreviewView keyPreviewView, in placeKeyPreview()
144 void showKeyPreview(final Key key, final KeyPreviewView keyPreviewView, in showKeyPreview()
161 public Animator createShowUpAnimator(final Key key, final KeyPreviewView keyPreviewView) { in createShowUpAnimator()
172 private Animator createDismissAnimator(final Key key, final KeyPreviewView keyPreviewView) { in createDismissAnimator()
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DOffloadServiceInfo.java48 private final Key mKey;
68 public OffloadServiceInfo(@NonNull Key key, in OffloadServiceInfo()
92 mKey = in.readParcelable(Key.class.getClassLoader(), in OffloadServiceInfo()
93 Key.class); in OffloadServiceInfo()
133 public Key getKey() { in getKey()
245 public static final class Key implements Parcelable { class in OffloadServiceInfo
257 public Key(@NonNull String serviceName, @NonNull String serviceType) { in Key() method in OffloadServiceInfo.Key
271 public Key(@NonNull Parcel in) { in Key() method in OffloadServiceInfo.Key
303 public static final Creator<Key> CREATOR =
304 new Creator<Key>() {
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java327 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in ordinaryEvents_onMainDisplay_routedToInputManager()
335 send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
345 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener()
499 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesDisplayMainEvent_capturedByInputController()
514 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesDisplayMainEvent_missedByInputController()
529 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesClusterEvents_capturedByInstrumentCluster()
549 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
550 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
563 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
572 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyboardAccessibilityDelegate.java30 import com.android.inputmethod.keyboard.Key;
54 private Key mLastHoverKey;
88 protected final void setLastHoverKey(final Key key) { in setLastHoverKey()
92 protected final Key getLastHoverKey() { in getLastHoverKey()
160 protected final Key getHoverKeyOf(final MotionEvent event) { in getHoverKeyOf()
197 final Key key = getHoverKeyOf(event); in onHoverEnter()
213 final Key lastKey = getLastHoverKey(); in onHoverMove()
214 final Key key = getHoverKeyOf(event); in onHoverMove()
235 final Key lastKey = getLastHoverKey(); in onHoverExit()
242 final Key key = getHoverKeyOf(event); in onHoverExit()
[all …]
DKeyboardAccessibilityNodeProvider.java31 import com.android.inputmethod.keyboard.Key;
102 private Key getKeyOf(final int virtualViewId) { in getKeyOf()
106 final List<Key> sortedKeys = mKeyboard.getSortedKeys(); in getKeyOf()
114 private int getVirtualViewIdOf(final Key key) { in getVirtualViewIdOf()
118 final List<Key> sortedKeys = mKeyboard.getSortedKeys(); in getVirtualViewIdOf()
138 public AccessibilityEvent createAccessibilityEvent(final Key key, final int eventType) { in createAccessibilityEvent()
151 public void onHoverEnterTo(final Key key) { in onHoverEnterTo()
165 public void onHoverExitFrom(final Key key) { in onHoverExitFrom()
208 final List<Key> sortedKeys = mKeyboard.getSortedKeys(); in createAccessibilityNodeInfo()
211 final Key key = sortedKeys.get(index); in createAccessibilityNodeInfo()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbSettingsStore.java79 private static final ArrayList<Key> sKeys = new ArrayList<>();
85 public static final Key<Boolean> SETTINGS_TOGGLE_STATE =
86 new Key<>("settings_toggle", true);
87 public static final Key<String> SETTINGS_LOG_MODE =
88 new Key<>("settings_log_mode", UciLogModeStore.Mode.FILTERED.getMode());
90 public static final Key<Boolean> SETTINGS_FIRST_TOGGLE_DONE =
91 new Key<>("settings_first_toggle_done", false);
93 public static final Key<String> SETTINGS_CACHED_COUNTRY_CODE =
94 new Key<>("settings_cached_country_code", "");
121 void onSettingsChanged(@NonNull Key<T> key, @Nullable T newValue); in onSettingsChanged()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsCollection.java112 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>();
243 final Key key = mStats.keyAt(i); in getRelevantUids()
313 final Key key = mStats.keyAt(i); in getHistory()
401 final Key key = mStats.keyAt(i); in getSummary()
447 public void recordHistory(@NonNull Key key, @NonNull NetworkStatsHistory history) { in recordHistory()
470 final Key key = another.mStats.keyAt(i); in recordCollection()
478 final Key key = new Key(ident, uid, set, tag); in findOrCreateHistory()
528 final Key key = new Key(ident, uid, set, tag); in read()
550 final HashMap<NetworkIdentitySet, ArrayList<Key>> keysByIdent = new HashMap<>(); in write()
551 for (Key key : mStats.keySet()) { in write()
[all …]
/packages/modules/DnsResolver/doh/
Dconfig.rs56 pub fn from_key(key: &Key) -> Result<Self> { in from_key()
93 key_to_config: HashMap<Key, WeakConfig>,
100 fn get_config(&self, key: &Key) -> Option<Config> { in get_config()
129 pub struct Key { struct
144 pub fn get(&self, key: &Key) -> Result<Config> { in get() argument
181 Config::from_key(&Key { cert_path: None, max_idle_timeout: 1000, enable_early_data: true }) in create_quiche_config()
186 Config::from_key(&Key { in create_quiche_config()
200 .get(&Key { cert_path: None, max_idle_timeout: 1000, enable_early_data: true }) in shared_cache()
204 .get(&Key { cert_path: None, max_idle_timeout: 1000, enable_early_data: true }) in shared_cache()
212 let key_a = Key { cert_path: None, max_idle_timeout: 1000, enable_early_data: false }; in different_keys()
[all …]
/packages/modules/Bluetooth/system/gd/common/
Dlist_map.h44 template <typename Key, typename T>
47 using value_type = std::pair<const Key, T>;
49 using node_type = std::pair<Key, T>;
101 const_iterator find(const Key& key) const { in find()
106 iterator find(const Key& key) { in find()
115 bool contains(const Key& key) const { in contains()
123 std::pair<iterator, bool> try_emplace(const_iterator pos, const Key& key, Args&&... args) { in try_emplace()
137 std::pair<iterator, bool> try_emplace_back(const Key& key, Args&&... args) { in try_emplace_back()
143 void insert_or_assign(const_iterator pos, const Key& key, T value) { in insert_or_assign()
154 void insert_or_assign(const Key& key, T value) { in insert_or_assign()
[all …]
Dlru_cache.h54 template <typename Key, typename T>
57 using value_type = typename ListMap<Key, T>::value_type;
59 using node_type = typename ListMap<Key, T>::node_type;
60 using iterator = typename ListMap<Key, T>::iterator;
61 using const_iterator = typename ListMap<Key, T>::const_iterator;
109 const_iterator find(const Key& key) const { in find()
118 iterator find(const Key& key) { in find()
131 bool contains(const Key& key) const { in contains()
141 std::optional<node_type> insert_or_assign(const Key& key, T value) { in insert_or_assign()
164 std::tuple<iterator, bool, std::optional<node_type>> try_emplace(const Key& key, Args&&... args) { in try_emplace()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java42 private static final List<Key> EMPTY_KEY_LIST = Collections.emptyList();
56 private final List<Key> mSortedKeys;
58 private final List<Key>[] mGridNeighbors;
63 @Nonnull final List<Key> sortedKeys, in ProximityInfo()
98 static boolean needsProximityInfo(final Key key) { in needsProximityInfo()
103 private static int getProximityInfoKeysCount(final List<Key> keys) { in getProximityInfoKeysCount()
105 for (final Key key : keys) { in getProximityInfoKeysCount()
115 final List<Key>[] gridNeighborKeys = mGridNeighbors; in createNativeProximityInfo()
119 final List<Key> neighborKeys = gridNeighborKeys[i]; in createNativeProximityInfo()
123 final Key neighborKey = neighborKeys.get(j); in createNativeProximityInfo()
[all …]
DPointerTracker.java122 private Key mCurrentKey = null;
244 private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key, in callListenerOnPressAndCheckKeyboardLayoutChange()
276 private void callListenerOnCodeInput(final Key key, final int primaryCode, final int x, in callListenerOnCodeInput()
309 private void callListenerOnRelease(final Key key, final int primaryCode, in callListenerOnRelease()
372 public Key getKey() { in getKey()
381 public Key getKeyOn(final int x, final int y) { in getKeyOn()
385 private void setReleasedKeyGraphics(@Nullable final Key key, final boolean withAnimation) { in setReleasedKeyGraphics()
393 for (final Key shiftKey : mKeyboard.mShiftKeys) { in setReleasedKeyGraphics()
402 final Key altKey = mKeyboard.getKey(altCode); in setReleasedKeyGraphics()
406 for (final Key k : mKeyboard.mAltCodeKeysWhileTyping) { in setReleasedKeyGraphics()
[all …]
DKeyboard.java86 private final List<Key> mSortedKeys;
88 public final List<Key> mShiftKeys;
90 public final List<Key> mAltCodeKeysWhileTyping;
94 private final SparseArray<Key> mKeyCache = new SparseArray<>();
185 public List<Key> getSortedKeys() { in getSortedKeys()
190 public Key getKey(final int code) { in getKey()
200 for (final Key key : getSortedKeys()) { in getKey()
211 public boolean hasKey(@Nonnull final Key aKey) { in hasKey()
216 for (final Key key : getSortedKeys()) { in hasKey()
238 public List<Key> getNearestKeys(final int x, final int y) { in getNearestKeys()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/util/
DTypedMap.kt35 class MutableTypedMap(val map: MutableMap<Key<Any>, Any> = mutableMapOf()) {
38 operator fun <T : Any> set(key: Key<T>, value: T) { in set()
40 map[key as Key<Any>] = value in set()
44 operator fun <T> get(key: Key<T>): T? { in get()
45 @Suppress("UNCHECKED_CAST") return map[key as Key<Any>] as T in get()
81 interface Key<T> interface
91 operator fun <T> get(key: Key<T>): T? = map[key] in get()
/packages/modules/Connectivity/framework-t/api/
Dsystem-lint-baseline.txt98 …d.OffloadServiceInfo#OffloadServiceInfo(android.net.nsd.OffloadServiceInfo.Key, java.util.List<jav…
99 …ctor android.net.nsd.OffloadServiceInfo(android.net.nsd.OffloadServiceInfo.Key,java.util.List<java…
128 UnflaggedApi: android.net.nsd.OffloadServiceInfo.Key:
129 New API must be flagged with @FlaggedApi: class android.net.nsd.OffloadServiceInfo.Key
130 UnflaggedApi: android.net.nsd.OffloadServiceInfo.Key#CONTENTS_FILE_DESCRIPTOR:
131 …New API must be flagged with @FlaggedApi: field android.net.nsd.OffloadServiceInfo.Key.CONTENTS_FI…
132 UnflaggedApi: android.net.nsd.OffloadServiceInfo.Key#CREATOR:
133 New API must be flagged with @FlaggedApi: field android.net.nsd.OffloadServiceInfo.Key.CREATOR
134 UnflaggedApi: android.net.nsd.OffloadServiceInfo.Key#Key(String, String):
135 …New API must be flagged with @FlaggedApi: constructor android.net.nsd.OffloadServiceInfo.Key(Strin…
[all …]
/packages/modules/adb/crypto/include/adb/crypto/
Dkey.h29 class Key {
31 explicit Key(bssl::UniquePtr<EVP_PKEY>&& pkey, adb::proto::KeyType type) in Key() function
33 Key(Key&&) = default;
34 Key& operator=(Key&&) = default;

123456789