Searched refs:key (Results 101 - 125 of 403) sorted by relevance

1234567891011>>

/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DStochasticLinearRankerWithPrior.java176 public boolean setModelParameter(String key, String value){ argument
177 if (key.equals(USE_AUTO_ALPHA)){
179 } else if (key.equals(USE_PRIOR)){
181 } else if (key.equals(SET_ALPHA)){
183 }else if (key.equals(SET_AUTO_ALPHA)){
185 }else if (key.equals(SET_FORGET_RATE)){
187 }else if (key.equals(SET_MIN_TRAIN_PAIR)){
189 }else if (key.equals(SET_USER_PERF)){
191 }else if (key.equals(SET_PRIOR_PERF)){
193 }else if (key
[all...]
H A DLearning_StochasticLinearRanker.java56 keys_1[i] = temp_1.get(i).key;
63 keys_2[i] = temp_2.get(i).key;
80 keys[i] = temp.get(i).key;
92 weights.put(temp.get(i).key, temp.get(i).value);
98 public boolean SetModelParameter(String key, String value) { argument
101 return mLearningSlRanker.setModelParameter(key,value);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DImportTestProvider.java103 for (String key: keyToBeRemoved) {
104 actualContentValues.remove(key);
184 final String key = entry.getKey();
187 if (Data.MIMETYPE.equals(key)) {
190 TestCase.assertNotNull(key);
191 sortedMap.put(key, valueString);
199 final String key = entry.getKey();
202 builder.append(key);
219 final String key = entry.getKey();
221 if (!actual.containsKey(key)) {
[all...]
/frameworks/av/include/camera/
H A DCameraParameters.h50 void set(const char *key, const char *value);
51 void set(const char *key, int value);
52 void setFloat(const char *key, float value);
53 const char *get(const char *key) const;
54 int getInt(const char *key) const;
55 float getFloat(const char *key) const;
57 void remove(const char *key);
331 // "false" or this key not existing means it is not supported.
348 // means it is, and "false" or this key not existing means it is
405 // is not supported if the value is not "true" or the key doe
[all...]
/frameworks/base/tools/obbtool/
H A Dmkobb.sh110 hidden_prompt " Encryption key: " key
112 if [ "${key}x" = "x" ]; then \
113 echo "ERROR: An empty key is not allowed!"
117 hidden_prompt "Encryption key (again): " key2
119 if [ "${key}x" != "${key2}x" ]; then \
152 echo " -k <key> Use <key> to encrypt OBB file"
153 echo " -K Prompt for key to encrypt OBB file"
171 -k) key
[all...]
/frameworks/native/libs/utils/tests/
H A DBasicHashtable_test.cpp123 const TKey& key, const TValue& value) {
124 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value));
129 ssize_t index, const TKey& key) {
130 return h.find(index, hash_type(key), key);
135 const TKey& key) {
136 ssize_t index = find(h, -1, key);
145 static void getKeyValue(const TEntry& entry, int* key, int* value);
147 template <> void getKeyValue(const SimpleEntry& entry, int* key, in argument
122 add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, const TKey& key, const TValue& value) argument
128 find(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, ssize_t index, const TKey& key) argument
134 remove(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, const TKey& key) argument
152 getKeyValue(const ComplexEntry& entry, int* key, int* value) argument
166 int key, value; local
[all...]
H A DBlobCache_test.cpp117 char key[MAX_KEY_SIZE+1]; local
120 key[i] = 'a';
122 mBC->set(key, MAX_KEY_SIZE+1, "bbbb", 4);
123 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE+1, buf, 4));
153 char key[MAX_KEY_SIZE];
156 key[i] = 'a';
162 mBC->set(key, MAX_KEY_SIZE, buf, MAX_VALUE_SIZE);
163 ASSERT_EQ(size_t(0), mBC->get(key, MAX_KEY_SIZE, NULL, 0));
167 char key[MAX_KEY_SIZE];
170 key[
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DBassBoost.java228 * Settings class constructor from a key=value; pairs formatted string. The string is
238 String key = st.nextToken();
239 if (!key.equals("BassBoost")) {
241 "invalid settings for BassBoost: " + key);
244 key = st.nextToken();
245 if (!key.equals("strength")) {
246 throw new IllegalArgumentException("invalid key name: " + key);
250 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DVirtualizer.java230 * Settings class constructor from a key=value; pairs formatted string. The string is
240 String key = st.nextToken();
241 if (!key.equals("Virtualizer")) {
243 "invalid settings for Virtualizer: " + key);
246 key = st.nextToken();
247 if (!key.equals("strength")) {
248 throw new IllegalArgumentException("invalid key name: " + key);
252 throw new IllegalArgumentException("invalid value for key: " + key);
[all...]
H A DEqualizer.java463 * Settings class constructor from a key=value; pairs formatted string. The string is
473 String key = st.nextToken();
474 if (!key.equals("Equalizer")) {
476 "invalid settings for Equalizer: " + key);
479 key = st.nextToken();
480 if (!key.equals("curPreset")) {
481 throw new IllegalArgumentException("invalid key name: " + key);
484 key = st.nextToken();
485 if (!key
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseGeneralTest.java486 String key = DatabaseUtils.getHexCollationKey("Frederic Hjonneva");
488 "SELECT count(*) from tokens where token GLOB '" + key + "*'", null));
490 "SELECT source from tokens where token GLOB '" + key + "*'", null));
492 "SELECT token_index from tokens where token GLOB '" + key + "*'", null));
493 key = DatabaseUtils.getHexCollationKey("Hjonneva");
495 "SELECT count(*) from tokens where token GLOB '" + key + "*'", null));
497 "SELECT source from tokens where token GLOB '" + key + "*'", null));
499 "SELECT token_index from tokens where token GLOB '" + key + "*'", null));
501 key = DatabaseUtils.getHexCollationKey("some string ok");
503 "SELECT count(*) from tokens where token GLOB '" + key
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DCommandQueue.java72 IBinder key; field in class:CommandQueue.NotificationQueueEntry
84 public void addNotification(IBinder key, StatusBarNotification notification); argument
85 public void updateNotification(IBinder key, StatusBarNotification notification); argument
86 public void removeNotification(IBinder key); argument
124 public void addNotification(IBinder key, StatusBarNotification notification) { argument
127 ne.key = key;
133 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
136 ne.key = key;
142 removeNotification(IBinder key) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLockSettingsService.java62 private static final String LOCK_PATTERN_FILE = "gesture.key";
63 private static final String LOCK_PASSWORD_FILE = "password.key";
125 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument
128 writeToDb(key, value ? "1" : "0", userId);
132 public void setLong(String key, long value, int userId) throws RemoteException { argument
135 writeToDb(key, Long.toString(value), userId);
139 public void setString(String key, String value, int userId) throws RemoteException { argument
142 writeToDb(key, value, userId);
146 public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException { argument
149 String value = readFromDb(key, nul
155 getLong(String key, long defaultValue, int userId) argument
163 getString(String key, String defaultValue, int userId) argument
309 writeToDb(String key, String value, int userId) argument
313 writeToDb(SQLiteDatabase db, String key, String value, int userId) argument
330 readFromDb(String key, String defaultValue, int userId) argument
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp275 const AString &line, sp<AMessage> *meta, const char *key) {
292 (*meta)->setInt32(key, x);
299 const AString &line, sp<AMessage> *meta, const char *key) {
316 (*meta)->setInt64(key, (int64_t)x * 1E6);
348 AString key(attr, 0, equalPos);
349 key.trim();
354 ALOGV("key=%s value=%s", key.c_str(), val.c_str());
356 if (!strcasecmp("bandwidth", key.c_str())) {
426 AString key(att
274 parseMetaData( const AString &line, sp<AMessage> *meta, const char *key) argument
298 parseMetaDataDuration( const AString &line, sp<AMessage> *meta, const char *key) argument
[all...]
/frameworks/av/camera/
H A DCameraParameters.cpp207 // Find the bounds of the key name.
212 // Create the key string.
232 void CameraParameters::set(const char *key, const char *value) argument
235 if (strchr(key, '=') || strchr(key, ';')) {
236 //XXX ALOGE("Key \"%s\"contains invalid character (= or ;)", key);
240 if (strchr(value, '=') || strchr(key, ';')) {
245 mMap.replaceValueFor(String8(key), String8(value));
248 void CameraParameters::set(const char *key, int value) argument
252 set(key, st
255 setFloat(const char *key, float value) argument
285 remove(const char *key) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderOperation.java273 * key refers to a column and the value is an index of the back reference whose
296 String key = entry.getKey();
297 Integer backRefIndex = mValuesBackReferences.getAsInteger(key);
300 throw new IllegalArgumentException("values backref " + key + " is not an integer");
302 values.put(key, backRefToValue(backRefs, numBackRefs, backRefIndex));
309 * the key is an index into the selection argument array (see {@link Builder#withSelection})
440 * Add a {@link ContentValues} of back references. The key is the name of the column
464 public Builder withValueBackReference(String key, int previousResult) { argument
472 mValuesBackReferences.put(key, previousResult);
517 * @param key th
522 withValue(String key, Object value) argument
[all...]
H A DSyncOperation.java34 public final String key; field in class:SyncOperation
69 this.key = toKey();
90 this.key = toKey();
144 for (String key : bundle.keySet()) {
145 sb.append(key).append("=").append(bundle.get(key)).append(" ");
/frameworks/base/voip/java/android/net/sip/
H A DSimpleSessionDescription.java169 * Returns the encryption key or {@code null} if it is not present.
176 * Sets the encryption method and the encryption key. The field will be
179 public void setEncryption(String method, String key) { argument
180 mFields.setEncryption(method, key);
385 * has three parts: a key, a delimiter, and a value. Delimiters are special
439 * Returns the encryption key or {@code null} if it is not present.
451 * Sets the encryption method and the encryption key. The field will be
454 public void setEncryption(String method, String key) { argument
455 set("k", '=', (method == null || key == null) ?
456 method : method + ':' + key);
568 find(String key, char delimiter) argument
584 set(String key, char delimiter, String value) argument
603 get(String key, char delimiter) argument
[all...]
/frameworks/base/core/java/android/os/
H A DUEventObserver.java127 // collection of key=value pairs parsed from the uevent message
140 // key is before the equals sign, and value is after
149 public String get(String key) { argument
150 return mMap.get(key);
153 public String get(String key, String defaultValue) { argument
154 String result = mMap.get(key);
196 final String key = (String)mKeysAndObservers.get(i);
197 if (message.contains(key)) {
224 /** Removes every key/value pair where value=observer from mObservers */
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataOutput.cpp46 writeEntityHeader_native(JNIEnv* env, jobject clazz, int w, jstring key, int dataSize) argument
51 const char* keyUTF = env->GetStringUTFChars(key, NULL);
57 env->ReleaseStringUTFChars(key, keyUTF);
/frameworks/wilhelm/src/autogen/
H A DIID_to_MPH.c248 unsigned key = asso_values[((unsigned char *)iid)[8]] + local
250 if (key <= MAX_HASH_VALUE) {
251 int MPH = hash_to_MPH[key];
/frameworks/av/media/libmediaplayerservice/
H A DTestPlayerStub.h99 virtual status_t setParameter(int key, const Parcel &request) { argument
100 return mPlayer->setParameter(key, request);
102 virtual status_t getParameter(int key, Parcel *reply) { argument
103 return mPlayer->getParameter(key, reply);
/frameworks/base/core/java/android/app/backup/
H A DWallpaperBackupHelper.java118 final String key = data.getKey();
119 if (isKeyInList(key, mKeys)) {
120 if (key.equals(WALLPAPER_IMAGE_KEY)) {
155 } else if (key.equals(WALLPAPER_INFO_KEY)) {
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DSettingsActivity.java61 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { argument
/frameworks/native/include/android/
H A Dstorage_manager.h103 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key,

Completed in 282 milliseconds

1234567891011>>