Searched defs:keys (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/app/backup/
H A DWallpaperBackupHelper.java50 // Use old keys to keep legacy data compatibility and avoid writing two wallpapers
76 public WallpaperBackupHelper(Context context, String[] files, String[] keys) { argument
81 mKeys = keys;
H A DFileBackupHelperBase.java54 ParcelFileDescriptor newState, String[] files, String[] keys) {
64 // the length of files and keys must be the same
65 if (files.length != keys.length) {
67 + " keys.length=" + keys.length);
76 int err = performBackup_native(oldStateFd, data.mBackupWriter, newStateFd, files, keys);
122 int data, FileDescriptor newState, String[] files, String[] keys);
53 performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState, String[] files, String[] keys) argument
121 performBackup_native(FileDescriptor oldState, int data, FileDescriptor newState, String[] files, String[] keys) argument
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java240 * of keys is a string containing the key names as specified in KeyEvent, without the
245 * @param keysSequence The sequence of keys.
248 final String[] keys = keysSequence.split(" ");
249 final int count = keys.length;
254 String key = keys[i];
297 * @param keys The series of key codes to send through instrumentation.
299 public void sendKeys(int... keys) { argument
300 final int count = keys.length;
305 instrumentation.sendKeyDownUpSync(keys[i]);
321 * @param keys Th
323 sendRepeatedKeys(int... keys) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_backup_FileBackupHelperBase.cpp42 jobject newState, jobjectArray files, jobjectArray keys)
57 const int keyCount = env->GetArrayLength(keys);
60 keysUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), NULL);
71 env->ReleaseStringUTFChars((jstring)env->GetObjectArrayElement(keys, i), keysUTF[i]);
41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, int data, jobject newState, jobjectArray files, jobjectArray keys) argument
H A Dandroid_media_AudioSystem.cpp100 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument
102 const jchar* c_keys = env->GetStringCritical(keys, 0);
104 if (keys) {
105 c_keys8 = String8(c_keys, env->GetStringLength(keys));
106 env->ReleaseStringCritical(keys, c_keys);
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
H A DStochasticLinearRanker.java64 * keys and values. The first sample should have higher rank than the second
79 public float scoreSample(String[] keys, float[] values) { argument
80 return nativeScoreSample(keys, values, mNativeClassifier);
129 public boolean setModelWeights(String[] keys, float [] values, float normalizer){ argument
130 return nativeSetWeightClassifier(keys, values, normalizer, mNativeClassifier);
178 private native float nativeScoreSample(String[] keys, float[] values, int classifierPtr); argument
180 private native void nativeGetWeightClassifier(String [] keys, float[] values, float normalizer, argument
183 private native void nativeGetParameterClassifier(String [] keys, String[] values, argument
188 private native boolean nativeSetWeightClassifier(String [] keys, float[] values, argument
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStochasticLinearRankerWithPrior.java88 public float scoreSample(String[] keys, float[] values) { argument
90 return super.scoreSample(keys, values);
94 return (1 - mAutoAlpha) * super.scoreSample(keys,values) +
95 mAutoAlpha * priorScoreSample(keys,values);
97 return priorScoreSample(keys,values);
99 return (1 - mAlpha) * super.scoreSample(keys,values) +
100 mAlpha * priorScoreSample(keys,values);
104 public float priorScoreSample(String[] keys, float[] values) { argument
106 for (int i=0; i< keys.length; i++){
107 if (mPriorWeights.get(keys[
[all...]
/frameworks/native/libs/utils/tests/
H A DBasicHashtable_test.cpp97 void assertInstanceCount(ssize_t keys, ssize_t values) { argument
98 if (keys != ComplexKey::instanceCount || values != ComplexValue::instanceCount) {
99 FAIL() << "Expected " << keys << " keys and " << values << " values "
100 "but there were actually " << ComplexKey::instanceCount << " keys and "
/frameworks/base/media/java/android/media/
H A DMediaExtractor.java122 String[] keys = null;
126 keys = new String[headers.size()];
131 keys[i] = entry.getKey();
136 setDataSource(path, keys, values);
140 String path, String[] keys, String[] values);
139 setDataSource( String path, String[] keys, String[] values) argument
H A DMediaMetadataRetriever.java92 String[] keys = new String[headers.size()];
95 keys[i] = entry.getKey();
99 _setDataSource(uri, keys, values);
103 String uri, String[] keys, String[] values)
102 _setDataSource( String uri, String[] keys, String[] values) argument
H A DMediaCodec.java97 * (in ByteBuffer entries with keys "csd-0", "csd-1", ...) is automatically
241 String[] keys = null;
245 keys = new String[formatMap.size()];
250 keys[i] = entry.getKey();
256 native_configure(keys, values, surface, crypto, flags);
260 String[] keys, Object[] values,
259 native_configure( String[] keys, Object[] values, Surface surface, MediaCrypto crypto, int flags) argument
H A DAudioSystem.java133 * param keys list of parameters
137 public static native String getParameters(String keys); argument
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp30 JNIEnv *env, jobjectArray keys, jobjectArray values,
35 if (keys != NULL && values != NULL) {
36 nKeyValuePairs = env->GetArrayLength(keys);
41 failed = ((keys != NULL && values == NULL) ||
42 (keys == NULL && values != NULL));
46 ALOGE("keys and values arrays have different length");
54 jstring key = (jstring) env->GetObjectArrayElement(keys, i);
277 JNIEnv *env, jobjectArray keys, jobjectArray values,
295 if (keys != NULL) {
300 numEntries = env->GetArrayLength(keys);
29 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument
276 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument
[all...]
H A Dandroid_media_MediaMetadataRetriever.cpp84 jobjectArray keys, jobjectArray values) {
122 env, keys, values, &headersVector)) {
82 android_media_MediaMetadataRetriever_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument
H A Dandroid_media_MediaCodec.cpp352 jobjectArray keys, jobjectArray values,
364 status_t err = ConvertKeyValueArraysToMessage(env, keys, values, &format);
349 android_media_MediaCodec_native_configure( JNIEnv *env, jobject thiz, jobjectArray keys, jobjectArray values, jobject jsurface, jobject jcrypto, jint flags) argument
H A Dandroid_media_MediaPlayer.cpp181 jobjectArray keys, jobjectArray values) {
207 env, keys, values, &headersVector)) {
179 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument
/frameworks/base/tests/CoreTests/android/core/
H A DSSLSocketTest.java454 // replace the references to the base64-encoded keys by the JKS versions.
767 private KeyManager[] getKeyManagers(String keys) throws Exception { argument
768 byte[] bytes = new Base64().decode(keys.getBytes());
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DDelegateMethodAdapter2.java427 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { argument
429 mOrgWriter.visitLookupSwitchInsn(dflt, keys, labels);
H A DStubMethodAdapter.java342 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { argument
344 mParentVisitor.visitLookupSwitchInsn(dflt, keys, labels);
H A DAsmAnalyzer.java649 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { argument
H A DDependencyFinder.java589 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { argument
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp30 void CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, argument
35 jstring s = (jstring) env->GetObjectArrayElement(keys, i);
42 void ConvertParameter2Object(JNIEnv* env, jobjectArray *keys, jobjectArray *values, argument
47 env->SetObjectArrayElement(*keys, index, jstrK);
51 void DecomposeSparseWeightVector(JNIEnv* env, jobjectArray *keys, jfloatArray *values, argument
61 env->SetObjectArrayElement(*keys, i, jstr);
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp333 char const* const* files, char const* const* keys, int fileCount)
348 String8 key(keys[i]);
1504 char const* keys[] = {
1523 err = back_up_files(-1, &dataStream, newSnapshotFD, files, keys, 1);
1555 char const* keys[] = {
1576 err = back_up_files(-1, &dataStream, newSnapshotFD, files, keys, 1);
332 back_up_files(int oldSnapshotFD, BackupDataWriter* dataStream, int newSnapshotFD, char const* const* files, char const* const* keys, int fileCount) argument
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp175 String8 AudioSystem::getParameters(audio_io_handle_t ioHandle, const String8& keys) { argument
180 result = af->getParameters(ioHandle, keys);
/frameworks/av/services/audioflinger/
H A DAudioPolicyService.cpp926 // if all keys have been filtered out, remove the command.
1496 const char *keys)
1498 String8 result = AudioSystem::getParameters(io_handle, String8(keys));
1495 aps_get_parameters(void *service, audio_io_handle_t io_handle, const char *keys) argument

Completed in 267 milliseconds

12