Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/tests/CoreTests/android/core/
DHashtableTest.java72 String[] keys = sKeys; in testHashtableGet() local
75 value = hTable.get(keys[i]); in testHashtableGet()
76 value = hTable.get(keys[i]); in testHashtableGet()
77 value = hTable.get(keys[i]); in testHashtableGet()
78 value = hTable.get(keys[i]); in testHashtableGet()
79 value = hTable.get(keys[i]); in testHashtableGet()
80 value = hTable.get(keys[i]); in testHashtableGet()
81 value = hTable.get(keys[i]); in testHashtableGet()
82 value = hTable.get(keys[i]); in testHashtableGet()
83 value = hTable.get(keys[i]); in testHashtableGet()
[all …]
DTreeMapPerformanceTest.java74 String[] keys = sKeys; in testTreeMapGet() local
76 value = map.get(keys[i]); in testTreeMapGet()
77 value = map.get(keys[i]); in testTreeMapGet()
78 value = map.get(keys[i]); in testTreeMapGet()
79 value = map.get(keys[i]); in testTreeMapGet()
80 value = map.get(keys[i]); in testTreeMapGet()
81 value = map.get(keys[i]); in testTreeMapGet()
82 value = map.get(keys[i]); in testTreeMapGet()
83 value = map.get(keys[i]); in testTreeMapGet()
84 value = map.get(keys[i]); in testTreeMapGet()
[all …]
/frameworks/base/libs/ui/
DKeyCharacterMap.cpp105 Key const* keys = m_keys; in find_char() local
107 if (keys->data[j] == c) { in find_char()
108 *key = keys->keycode; in find_char()
112 keys++; in find_char()
120 Vector<int32_t>* keys, Vector<uint32_t>* modifiers) in getEvents() argument
125 keys->add(k); in getEvents()
137 Key* keys = m_keys; in find_key() local
144 n = keys[mid].keycode; in find_key()
150 return keys + mid; in find_key()
200 Key* keys; in try_file() local
[all …]
/frameworks/base/core/java/android/test/
DInstrumentationTestCase.java232 final String[] keys = keysSequence.split(" "); in sendKeys() local
233 final int count = keys.length; in sendKeys()
238 String key = keys[i]; in sendKeys()
283 public void sendKeys(int... keys) { in sendKeys() argument
284 final int count = keys.length; in sendKeys()
289 instrumentation.sendKeyDownUpSync(keys[i]); in sendKeys()
307 public void sendRepeatedKeys(int... keys) { in sendRepeatedKeys() argument
308 final int count = keys.length; in sendRepeatedKeys()
317 final int keyCount = keys[i]; in sendRepeatedKeys()
318 final int keyCode = keys[i + 1]; in sendRepeatedKeys()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java54 ParcelFileDescriptor newState, String[] files, String[] keys) { in performBackup_checked() argument
65 if (files.length != keys.length) { in performBackup_checked()
67 + " keys.length=" + keys.length); in performBackup_checked()
76 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys); in performBackup_checked()
121 int data, FileDescriptor newState, String[] files, String[] keys); in performBackup_native() argument
/frameworks/base/core/java/android/util/
DLongSparseArray.java67 public void setValues(long[] keys, E uniqueValue) { in setValues() argument
68 int length = keys.length; in setValues()
70 put(keys[i], uniqueValue); in setValues()
122 long[] keys = mKeys; in gc() local
130 keys[o] = keys[i]; in gc()
DSparseArray.java109 int[] keys = mKeys; in gc() local
117 keys[o] = keys[i]; in gc()
/frameworks/base/core/jni/
Dandroid_backup_FileBackupHelperBase.cpp45 jobject newState, jobjectArray files, jobjectArray keys) in performBackup_native() argument
60 const int keyCount = env->GetArrayLength(keys); in performBackup_native()
63 keysUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), NULL); in performBackup_native()
74 env->ReleaseStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), keysUTF[i]); in performBackup_native()
Dandroid_media_AudioSystem.cpp88 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) in android_media_AudioSystem_getParameters() argument
90 const jchar* c_keys = env->GetStringCritical(keys, 0); in android_media_AudioSystem_getParameters()
92 if (keys) { in android_media_AudioSystem_getParameters()
93 c_keys8 = String8(c_keys, env->GetStringLength(keys)); in android_media_AudioSystem_getParameters()
94 env->ReleaseStringCritical(keys, c_keys); in android_media_AudioSystem_getParameters()
Dandroid_text_KeyCharacterMap.cpp107 Vector<int32_t> keys; in getEvents() local
109 bool success = kmap->getEvents(chars, len, &keys, &modifiers); in getEvents()
114 size_t N = keys.size(); in getEvents()
122 v |= keys[i]; in getEvents()
/frameworks/base/services/audioflinger/
DAudioHardwareStub.cpp155 String8 AudioStreamOutStub::getParameters(const String8& keys) in getParameters() argument
157 AudioParameter param = AudioParameter(keys); in getParameters()
201 String8 AudioStreamInStub::getParameters(const String8& keys) in getParameters() argument
203 AudioParameter param = AudioParameter(keys); in getParameters()
DAudioDumpInterface.cpp212 String8 AudioDumpInterface::getParameters(const String8& keys) in getParameters() argument
214 AudioParameter param = AudioParameter(keys); in getParameters()
389 String8 AudioStreamOutDump::getParameters(const String8& keys) in getParameters() argument
391 if (mFinalStream != 0 ) return mFinalStream->getParameters(keys); in getParameters()
393 AudioParameter param = AudioParameter(keys); in getParameters()
546 String8 AudioStreamInDump::getParameters(const String8& keys) in getParameters() argument
548 if (mFinalStream != 0 ) return mFinalStream->getParameters(keys); in getParameters()
550 AudioParameter param = AudioParameter(keys); in getParameters()
DAudioHardwareInterface.cpp142 String8 AudioHardwareBase::getParameters(const String8& keys) in getParameters() argument
144 AudioParameter param = AudioParameter(keys); in getParameters()
DAudioDumpInterface.h54 virtual String8 getParameters(const String8& keys);
96 virtual String8 getParameters(const String8& keys);
147 virtual String8 getParameters(const String8& keys);
DAudioHardwareStub.h43 virtual String8 getParameters(const String8& keys);
59 virtual String8 getParameters(const String8& keys);
DA2dpAudioInterface.h49 virtual String8 getParameters(const String8& keys);
95 virtual String8 getParameters(const String8& keys);
DAudioHardwareGeneric.cpp287 String8 AudioStreamOutGeneric::getParameters(const String8& keys) in getParameters() argument
289 AudioParameter param = AudioParameter(keys); in getParameters()
395 String8 AudioStreamInGeneric::getParameters(const String8& keys) in getParameters() argument
397 AudioParameter param = AudioParameter(keys); in getParameters()
DA2dpAudioInterface.cpp165 String8 A2dpAudioInterface::getParameters(const String8& keys) in getParameters() argument
167 AudioParameter param = AudioParameter(keys); in getParameters()
384 String8 A2dpAudioInterface::A2dpAudioStreamOut::getParameters(const String8& keys) in getParameters() argument
386 AudioParameter param = AudioParameter(keys); in getParameters()
DAudioHardwareGeneric.h57 virtual String8 getParameters(const String8& keys);
90 virtual String8 getParameters(const String8& keys);
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java451 List<Key> keys = mKeyboard.getKeys(); in setKeyboard() local
452 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
592 final Key[] keys = mKeys; in computeProximityThreshold()
593 if (keys == null) return; in computeProximityThreshold()
594 int length = keys.length; in computeProximityThreshold()
597 Key key = keys[i]; in computeProximityThreshold()
645 final Key[] keys = mKeys; in onBufferDraw() local
660 final int keyCount = keys.length; in onBufferDraw()
662 final Key key = keys[i]; in onBufferDraw()
736 final Key[] keys = mKeys; in getKeyIndices() local
[all …]
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java250 long[] keys = getEvents_native(mPointer, chars); in getEvents() local
251 if (keys == null) { in getEvents()
256 int len = keys.length*2; in getEvents()
257 int N = keys.length; in getEvents()
259 int mods = (int)(keys[i] >> 32); in getEvents()
277 int mods = (int)(keys[i] >> 32); in getEvents()
299 int key = (int)(keys[i]); in getEvents()
/frameworks/base/services/java/com/android/server/
DInputManager.java347 public String[] keys; field in InputManager.InputDeviceCalibration
423 ArrayList<VirtualKeyDefinition> keys = new ArrayList<VirtualKeyDefinition>(); in getVirtualKeyDefinitions() local
452 keys.add(key); in getVirtualKeyDefinitions()
466 return keys.toArray(new VirtualKeyDefinition[keys.size()]); in getVirtualKeyDefinitions()
489 calibration.keys = properties.keySet().toArray(new String[properties.size()]); in getInputDeviceCalibration()
/frameworks/base/core/java/android/os/
DTokenWatcher.java119 Set<IBinder> keys = mTokens.keySet(); in dump() local
122 for (IBinder b: keys) { in dump()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java124 int[] keys = mKeys; in gc() local
134 keys[o] = keys[i]; in gc()
/frameworks/base/include/ui/
DKeyCharacterMap.h41 Vector<int32_t>* keys, Vector<uint32_t>* modifiers);

1234