/frameworks/base/media/jni/ |
H A D | android_media_Utils.h | 33 JNIEnv *env, jobjectArray keys, jobjectArray values, 41 JNIEnv *env, jobjectArray keys, jobjectArray values,
|
H A D | android_media_Utils.cpp | 32 JNIEnv *env, jobjectArray keys, jobjectArray values, 37 if (keys != NULL && values != NULL) { 38 nKeyValuePairs = env->GetArrayLength(keys); 43 failed = ((keys != NULL && values == NULL) || 44 (keys == NULL && values != NULL)); 48 ALOGE("keys and values arrays have different length"); 56 jstring key = (jstring) env->GetObjectArrayElement(keys, i); 283 JNIEnv *env, jobjectArray keys, jobjectArray values, 300 if (keys != NULL) { 305 numEntries = env->GetArrayLength(keys); 31 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument 282 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | FileBackupHelperBase.java | 54 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
|
H A D | WallpaperBackupHelper.java | 50 // 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;
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/ |
H A D | StochasticLinearRanker.java | 64 * 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 D | StochasticLinearRankerWithPrior.java | 88 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...] |
H A D | Learning_StochasticLinearRanker.java | 77 String[] keys = new String[temp.size()]; 80 keys[i] = temp.get(i).key; 85 return mLearningSlRanker.scoreSample(keys,values);
|
/frameworks/base/core/java/android/test/ |
H A D | InstrumentationTestCase.java | 240 * 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 D | android_backup_FileBackupHelperBase.cpp | 42 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 D | android_media_AudioSystem.cpp | 108 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument 110 const jchar* c_keys = env->GetStringCritical(keys, 0); 112 if (keys) { 113 c_keys8 = String8(c_keys, env->GetStringLength(keys)); 114 env->ReleaseStringCritical(keys, c_keys);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 102 * (in ByteBuffer entries with keys "csd-0", "csd-1", ...) is automatically 247 String[] keys = null; 251 keys = new String[formatMap.size()]; 256 keys[i] = entry.getKey(); 262 native_configure(keys, values, surface, crypto, flags); 266 String[] keys, Object[] values, 608 String[] keys = new String[params.size()]; 613 keys[i] = key; 618 setParameters(keys, values); 621 private native final void setParameters(String[] keys, Objec argument 265 native_configure( String[] keys, Object[] values, Surface surface, MediaCrypto crypto, int flags) argument [all...] |
H A D | MediaExtractor.java | 126 String[] keys = null; 130 keys = new String[headers.size()]; 135 keys[i] = entry.getKey(); 140 setDataSource(path, keys, values); 144 String path, String[] keys, String[] values) throws IOException; 143 setDataSource( String path, String[] keys, String[] values) argument
|
H A D | MediaMuxer.java | 91 private static native int nativeAddTrack(int nativeObject, String[] keys, argument 268 String[] keys = null; 272 keys = new String[mapSize]; 276 keys[i] = entry.getKey(); 280 trackIndex = nativeAddTrack(mNativeObject, keys, values);
|
H A D | MediaMetadataRetriever.java | 96 String[] keys = new String[headers.size()]; 99 keys[i] = entry.getKey(); 103 _setDataSource(uri, keys, values); 107 String uri, String[] keys, String[] values) 106 _setDataSource( String uri, String[] keys, String[] values) argument
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LongSparseLongArrayTest.java | 105 final Iterator<E> keys = map.keySet().iterator(); 107 keys.next(); 109 return keys.next();
|
/frameworks/base/services/java/com/android/server/ |
H A D | SystemBackupAgent.java | 58 // Use old keys to keep legacy data compatibility and avoid writing two wallpapers 69 String[] keys = new String[] { WALLPAPER_IMAGE_KEY, WALLPAPER_INFO_KEY }; 75 keys = new String[] { WALLPAPER_INFO_KEY }; 77 addHelper("wallpaper", new WallpaperBackupHelper(SystemBackupAgent.this, files, keys));
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 297 ArrayList<Key> keys = keysByIdent.get(key.ident); 298 if (keys == null) { 299 keys = Lists.newArrayList(); 300 keysByIdent.put(key.ident, keys); 302 keys.add(key); 310 final ArrayList<Key> keys = keysByIdent.get(ident); 313 out.writeInt(keys.size()); 314 for (Key key : keys) { 468 final ArrayList<Key> keys = Lists.newArrayList(); 469 keys [all...] |
/frameworks/base/core/java/android/os/ |
H A D | TokenWatcher.java | 136 Set<IBinder> keys = mTokens.keySet(); 139 for (IBinder b: keys) {
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | KeySetManager.java | 76 * keys in the KeySet. 79 * keys in the given KeySet. 99 * in its manifest that a) contains the given keys and b) is named 103 Set<PublicKey> keys, String alias) { 104 if ((packageName == null) || (keys == null) || (alias == null)) { 109 KeySet ks = addKeySetLocked(keys); 230 * Creates a new KeySet corresponding to the given keys. 240 private KeySet addKeySetLocked(Set<PublicKey> keys) { argument 241 if (keys == null) { 242 throw new NullPointerException("Provided keys canno 102 addDefinedKeySetToPackage(String packageName, Set<PublicKey> keys, String alias) argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | BackupHelpers.h | 135 char const* const* files, char const* const *keys, int fileCount);
|
/frameworks/base/core/java/android/util/ |
H A D | LongSparseArray.java | 25 * auto-boxing keys and its data structure doesn't rely on an extra entry object 29 * using a binary search to find keys. The implementation is not intended to be appropriate for 37 * keys: instead of compacting its array immediately, it leaves the removed entry marked 44 * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using 46 * keys in ascending order, or the values corresponding to the keys in ascending 156 long[] keys = mKeys; 164 keys[o] = keys[i]; 248 * <p>The keys correspondin [all...] |
H A D | SparseArray.java | 25 * auto-boxing keys and its data structure doesn't rely on an extra entry object 29 * using a binary search to find keys. The implementation is not intended to be appropriate for 37 * keys: instead of compacting its array immediately, it leaves the removed entry marked 44 * {@link #keyAt(int)} and {@link #valueAt(int)}. Iterating over the keys using 46 * keys in ascending order, or the values corresponding to the keys in ascending 169 int[] keys = mKeys; 177 keys[o] = keys[i]; 261 * <p>The keys correspondin [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | SparseWeakArray.java | 124 int[] keys = mKeys; 134 keys[o] = keys[i]; 276 * specified key, or a negative number if no keys map to the 279 * and that multiple keys can map to the same value and this will 311 * the key is greater than all existing keys in the array.
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LongSparseArray.java | 25 * auto-boxing keys and its data structure doesn't rely on an extra entry object 29 * using a binary search to find keys. The implementation is not intended to be appropriate for 37 * keys: instead of compacting its array immediately, it leaves the removed entry marked 150 long[] keys = mKeys; 158 keys[o] = keys[i]; 292 * specified key, or a negative number if no keys map to the 295 * and that multiple keys can map to the same value and this will 327 * the key is greater than all existing keys in the array.
|
H A D | SparseArrayCompat.java | 143 int[] keys = mKeys; 151 keys[o] = keys[i]; 285 * specified key, or a negative number if no keys map to the 288 * and that multiple keys can map to the same value and this will 322 * the key is greater than all existing keys in the array.
|