Home
last modified time | relevance | path

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

1234

/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java61 static enum Key { enum in ControlPanelEffect
167 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
169 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in initEffectsPreferences()
173 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences()
176 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences()
179 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences()
180 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences()
187 editor.putBoolean(Key.virt_strength_supported.toString(), in initEffectsPreferences()
199 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences()
201 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences()
[all …]
DActivityMusic.java285 mAudioSession, ControlPanelEffect.Key.eq_num_presets); in onCreate()
289 mCallingPackageName, mAudioSession, ControlPanelEffect.Key.eq_preset_name, i); in onCreate()
309 mAudioSession, ControlPanelEffect.Key.global_enabled, isChecked); in onCreate()
346 mAudioSession, ControlPanelEffect.Key.virt_strength, progress); in onCreate()
354 mAudioSession, ControlPanelEffect.Key.virt_enabled, true); in onCreate()
364 mAudioSession, ControlPanelEffect.Key.virt_enabled, false); in onCreate()
375 mAudioSession, ControlPanelEffect.Key.virt_enabled, isChecked); in onCreate()
408 mAudioSession, ControlPanelEffect.Key.bb_strength, progress); in onCreate()
416 mAudioSession, ControlPanelEffect.Key.bb_enabled, true); in onCreate()
426 mAudioSession, ControlPanelEffect.Key.bb_enabled, false); in onCreate()
[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/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java108 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in ordinaryEvents_onMainDisplay_routedToInputManager()
115 send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager()
125 KeyEvent event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in ordinaryEvents_onInstrumentClusterDisplay_routedToListener()
142 event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
146 event = send(Key.DOWN, KeyEvent.KEYCODE_ENTER, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
150 event = send(Key.DOWN, KeyEvent.KEYCODE_MENU, Display.MAIN); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
154 event = send(Key.DOWN, KeyEvent.KEYCODE_MENU, Display.INSTRUMENT_CLUSTER); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents()
165 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
166 send(Key.UP, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_shortPress_withRegisteredEventHandler_triggersEventHandler()
179 send(Key.DOWN, KeyEvent.KEYCODE_VOICE_ASSIST, Display.MAIN); in voiceKey_longPress_withRegisteredEventHandler_triggersEventHandler()
[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 …]
DEmojiCategory.java29 import com.android.inputmethod.keyboard.Key;
381 final Key[][] sortedKeys = sortKeysIntoPages( in getKeyboard()
387 for (final Key emojiKey : sortedKeys[pageId]) { in getKeyboard()
408 private static Comparator<Key> EMOJI_KEY_COMPARATOR = new Comparator<Key>() {
410 public int compare(final Key lhs, final Key rhs) {
430 private static Key[][] sortKeysIntoPages(final List<Key> inKeys, final int maxPageCount) { in sortKeysIntoPages()
431 final ArrayList<Key> keys = new ArrayList<>(inKeys); in sortKeysIntoPages()
434 final Key[][] retval = new Key[pageCount][maxPageCount]; in sortKeysIntoPages()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
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 …]
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 …]
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 …]
DKey.java52 public class Key implements Comparable<Key> { class
214 public Key(@Nullable final String label, final int iconId, final int code, in Key() method in Key
255 public Key(@Nullable final String keySpec, @Nonnull final TypedArray keyAttr, in Key() method in Key
414 protected Key(@Nonnull final Key key) { in Key() method in Key
418 private Key(@Nonnull final Key key, @Nullable final MoreKeySpec[] moreKeys) { in Key() method in Key
445 public static Key removeRedundantMoreKeys(@Nonnull final Key key, in removeRedundantMoreKeys()
450 return (filteredMoreKeys == moreKeys) ? key : new Key(key, filteredMoreKeys); in removeRedundantMoreKeys()
466 private static int computeHashCode(final Key key) { in computeHashCode()
493 private boolean equalsInternal(final Key o) { in equalsInternal()
511 public int compareTo(Key o) { in compareTo()
[all …]
DKeyboardLayout.java45 public KeyboardLayout(ArrayList<Key> layoutKeys, int mostCommonKeyWidth, in KeyboardLayout()
59 Key key = layoutKeys.get(i); in KeyboardLayout()
109 public static KeyboardLayout newKeyboardLayout(@Nonnull final List<Key> sortedKeys, in newKeyboardLayout()
112 final ArrayList<Key> layoutKeys = new ArrayList<Key>(); in newKeyboardLayout()
113 for (final Key key : sortedKeys) { in newKeyboardLayout()
DMoreKeysKeyboardView.java49 private Key mCurrentKey;
87 protected void onDrawKeyTopVisuals(final Key key, final Canvas canvas, final Paint paint, in onDrawKeyTopVisuals()
195 protected void onKeyInput(final Key key, final int x, final int y) { in onKeyInput()
209 private Key detectKey(int x, int y) { in detectKey()
210 final Key oldKey = mCurrentKey; in detectKey()
211 final Key newKey = mKeyDetector.detectHitKey(x, y); in detectKey()
227 private void updateReleaseKeyGraphics(final Key key) { in updateReleaseKeyGraphics()
232 private void updatePressKeyGraphics(final Key key) { in updatePressKeyGraphics()
/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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java70 private enum Key { DOWN, UP } enum in InputHalServiceTest
94 ImmutableList.of(makeKeyPropValue(Key.DOWN, KeyEvent.KEYCODE_ENTER))); in ignoresSetListener_beforeKeyInputSupported()
116 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_single_toListener()
136 makeKeyPropValue(Key.DOWN, KeyEvent.KEYCODE_ENTER), in dispatchesInputEvent_multiple_toListener()
137 makeKeyPropValue(Key.DOWN, KeyEvent.KEYCODE_MENU))); in dispatchesInputEvent_multiple_toListener()
149 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys()
157 event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys()
166 event = dispatchSingleEvent(Key.UP, KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys()
175 event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys()
211 KeyEvent event = dispatchSingleEvent(Key.UP, KeyEvent.KEYCODE_ENTER); in handlesKeyUp_withoutKeyDown()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java68 private final Map<Key, Loader> mArchives = new HashMap<>();
289 final Key key = Key.fromArchiveId(archiveId); in acquireArchive()
307 final Key key = Key.fromArchiveId(archiveId); in releaseArchive()
320 final Key key = Key.fromArchiveId(id); in getLoaderOrThrow()
330 private static class Key { class in ArchivesProvider
334 public Key(Uri archiveUri, int accessMode) { in Key() method in ArchivesProvider.Key
339 public static Key fromArchiveId(ArchiveId id) { in fromArchiveId()
340 return new Key(id.mArchiveUri, id.mAccessMode); in fromArchiveId()
348 if (!(other instanceof Key)) { in equals()
351 return archiveUri.equals(((Key) other).archiveUri) && in equals()
[all …]
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java35 import android.inputmethodservice.Keyboard.Key;
177 private final Map<Key,View> mMiniKeyboardCache;
178 private Key[] mKeys;
230 private Key mInvalidatedKey;
379 mMiniKeyboardCache = new HashMap<Key,View>(); in KeyboardView()
537 List<Key> keys = mKeyboard.getKeys(); in setKeyboard()
538 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
685 final Key[] keys = mKeys; in computeProximityThreshold()
690 Key key = keys[i]; in computeProximityThreshold()
742 final Key[] keys = mKeys; in onBufferDraw()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DTranscriptionClientFactory.java145 private static final Metadata.Key<String> API_KEY_HEADER =
146 Metadata.Key.of("X-Goog-Api-Key", Metadata.ASCII_STRING_MARSHALLER);
147 private static final Metadata.Key<String> ANDROID_PACKAGE_HEADER =
148 Metadata.Key.of("X-Android-Package", Metadata.ASCII_STRING_MARSHALLER);
149 private static final Metadata.Key<String> ANDROID_CERT_HEADER =
150 Metadata.Key.of("X-Android-Cert", Metadata.ASCII_STRING_MARSHALLER);
151 private static final Metadata.Key<String> AUTHORIZATION_HEADER =
152 Metadata.Key.of("authorization", Metadata.ASCII_STRING_MARSHALLER);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutTest.java35 .newKeyboardLayout(new ArrayList<Key>(), 11, 12, 13, 14); in testNewKeyboardLayout()
48 Key key1 = new Key("label1", 101, 102, "101", "101hint", 103, 104, 105, 106, 1100, 1101, in testNewKeyboardLayout()
50 Key key2 = new Key("label2", 201, 103, "201", "201hint", 203, 204, 205, 206, 2100, 2101, in testNewKeyboardLayout()
53 ArrayList<Key> sortedKeys = new ArrayList<>(2); in testNewKeyboardLayout()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md31 Key("hello", 5, true)
33 Key("t", 1, true)
35 Key("f", 1, true)
37 Key("n", 1, true)
39 Key("i")
41 Key("pi")
43 Key("a")
75 bool Key(const char* str, SizeType length, bool copy) {
76 cout << "Key(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl;
111 bool Key(const Ch* str, SizeType length, bool copy);
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java23 import android.hardware.camera2.CaptureResult.Key;
97 public void onImageMetadataChange(Key<?> key, Object second, Object newValue, in onImageMetadataChange()
309 private final Map<Key<?>, Pair<Long, Object>>
310 mMetadata = new ConcurrentHashMap<CaptureResult.Key<?>, Pair<Long, Object>>();
316 private final Map<Key<?>, Set<MetadataChangeListener>>
317 mMetadataChangeListeners = new ConcurrentHashMap<Key<?>, Set<MetadataChangeListener>>();
361 public <T> void addMetadataChangeListener(Key<T> key, MetadataChangeListener listener) { in addMetadataChangeListener()
382 public <T> boolean removeMetadataChangeListener(Key<T> key, MetadataChangeListener listener) { in removeMetadataChangeListener()
430 for (final Key<?> key : result.getKeys()) { in updateMetadataChangeListeners()

1234