/frameworks/base/core/java/android/content/ |
H A D | SharedPreferences.java | 56 * @param key The key of the preference that was changed, added, or 59 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); argument 73 * @param key The name of the preference to modify. 76 * this key. 81 Editor putString(String key, String value); argument 87 * @param key The name of the preference to modify. 90 * this key. 94 Editor putStringSet(String key, Set<String> values); argument 100 * @param key Th 106 putInt(String key, int value) argument 118 putLong(String key, long value) argument 130 putFloat(String key, float value) argument 142 putBoolean(String key, boolean value) argument 158 remove(String key) argument 257 getString(String key, String defValue) argument 275 getStringSet(String key, Set<String> defValues) argument 289 getInt(String key, int defValue) argument 303 getLong(String key, long defValue) argument 317 getFloat(String key, float defValue) argument 331 getBoolean(String key, boolean defValue) argument 340 contains(String key) argument [all...] |
/frameworks/base/core/java/android/net/nsd/ |
H A D | DnsSdTxtRecord.java | 65 * Set a key/value pair. Setting an existing key will replace its value. 66 * @param key Must be ascii with no '=' 67 * @param value matching value to key 69 public void set(String key, String value) { argument 83 keyBytes = key.getBytes("US-ASCII"); 86 throw new IllegalArgumentException("key should be US-ASCII"); 91 throw new IllegalArgumentException("= is not a valid character in key"); 99 int currentLoc = remove(key); 107 * Get a value for a key 112 get(String key) argument 118 remove(String key) argument 150 contains(String key) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | UEventObserver.java | 127 // 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/java/android/preference/ |
H A D | PreferenceGroup.java | 218 * Finds a {@link Preference} based on its key. If two {@link Preference} 219 * share the same key (not recommended), the first to appear will be 220 * returned (to retrieve the other preference with the same key, call this 221 * method on the first preference). If this preference has the key, it will 227 * @param key The key of the preference to retrieve. 228 * @return The {@link Preference} with the key, or null. 230 public Preference findPreference(CharSequence key) { argument 231 if (TextUtils.equals(getKey(), key)) { 239 if (curKey != null && curKey.equals(key)) { [all...] |
/frameworks/base/core/java/android/printservice/ |
H A D | PrintJob.java | 285 * may set as a tag the key of the print job returned by a remote 319 * @param key The option key. 322 public String getAdvancedStringOption(String key) { argument 324 return getInfo().getAdvancedStringOption(key); 331 * @param key The option key. 334 public boolean hasAdvancedOption(String key) { argument 336 return getInfo().hasAdvancedOption(key); 342 * @param key Th 345 getAdvancedIntOption(String key) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseArray.java | 38 * as deleted. The entry can then be re-used for the same key, or compacted later in 98 * Gets the Object mapped from the specified key, or <code>null</code> 101 public E get(long key) { argument 102 return get(key, null); 106 * Gets the Object mapped from the specified key, or the specified Object 110 public E get(long key, E valueIfKeyNotFound) { argument 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 121 * Removes the mapping from the specified key, if there was any. 123 public void delete(long key) { argument 124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 137 remove(long key) argument 184 put(long key, E value) argument 299 indexOfKey(long key) argument 346 append(long key, E value) argument [all...] |
H A D | SparseArray.java | 38 * as deleted. The entry can then be re-used for the same key, or compacted later in 98 * Gets the Object mapped from the specified key, or <code>null</code> 101 public E get(int key) { argument 102 return get(key, null); 106 * Gets the Object mapped from the specified key, or the specified Object 110 public E get(int key, E valueIfKeyNotFound) { argument 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 121 * Removes the mapping from the specified key, if there was any. 123 public void delete(int key) { argument 124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 137 remove(int key) argument 197 put(int key, E value) argument 312 indexOfKey(int key) argument 361 append(int key, E value) argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnProfile.java | 49 public final String key; // -1 field in class:VpnProfile 69 public VpnProfile(String key) { argument 70 this.key = key; 74 key = in.readString(); 95 out.writeString(key); 114 public static VpnProfile decode(String key, byte[] value) { argument 116 if (key == null) { 126 VpnProfile profile = new VpnProfile(key);
|
/frameworks/base/core/jni/ |
H A D | android_os_SystemProperties.cpp | 34 const char* key; local 39 jniThrowNullPointerException(env, "key must not be null."); 43 key = env->GetStringUTFChars(keyJ, NULL); 45 len = property_get(key, buf, ""); 54 env->ReleaseStringUTFChars(keyJ, key); 70 const char* key; local 76 jniThrowNullPointerException(env, "key must not be null."); 80 key = env->GetStringUTFChars(keyJ, NULL); 82 len = property_get(key, buf, ""); 90 env->ReleaseStringUTFChars(keyJ, key); 100 const char* key; local 130 const char* key; local 166 const char* key; local [all...] |
H A D | android_util_Log.cpp | 61 String8 key; local 62 key.append(LOG_NAMESPACE); 63 key.append(tag); 66 if (property_get(key.string(), buf, "") <= 0) {
|
/frameworks/base/keystore/java/android/security/ |
H A D | AndroidKeyStore.java | 62 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key, 64 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE 88 UnrecoverableKeyException t = new UnrecoverableKeyException("Can't get key"); 198 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument 204 if (key instanceof PrivateKey) { 205 setPrivateKeyEntry(alias, (PrivateKey) key, chain, null); 211 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, argument 216 if (key instanceof OpenSSLKeyHolder) { 217 pkeyAlias = ((OpenSSLKeyHolder) key).getOpenSSLKey().getAlias(); 233 final String keyFormat = key [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadataEditor.java | 44 * The metadata key for the content artwork / album art. 50 * The metadata key for the content's average rating, not the user's rating. 51 * The value associated with this key is a {@link Rating} instance. 57 * The metadata key for the content's user rating. 58 * The value associated with this key is a {@link Rating} instance. 59 * This key can be flagged as "editable" (with {@link #addEditableKey(int)}) to enable 67 * Editable key mask 127 * Flags the given key as being editable. 131 * @param key the type of metadata that can be edited. The supported key i 134 addEditableKey(int key) argument 197 putString(int key, String value) argument 226 putLong(int key, long value) argument 250 putBitmap(int key, Bitmap bitmap) argument 281 putObject(int key, Object value) argument 324 getLong(int key, long defaultValue) argument 340 getString(int key, String defaultValue) argument 356 getBitmap(int key, Bitmap defaultValue) argument 373 getObject(int key, Object defaultValue) argument [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_program.cpp | 107 jstring key, 110 ALOGE("Native Program: Attempting to set null value for key %s!", 111 ToCppString(env, key).c_str()); 115 const std::string c_key = ToCppString(env, key); 121 jstring key) { 123 const std::string c_key = ToCppString(env, key); 105 Java_android_filterfw_core_NativeProgram_callNativeSetValue(JNIEnv* env, jobject thiz, jstring key, jstring value) argument 119 Java_android_filterfw_core_NativeProgram_callNativeGetValue(JNIEnv* env, jobject thiz, jstring key) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 34 public IBinder key; field in class:NotificationData.Entry 44 public Entry(IBinder key, StatusBarNotification n, StatusBarIconView ic) { argument 45 this.key = key; 92 public Entry findByKey(IBinder key) { argument 94 if (e.key == key) { 113 public int add(IBinder key, StatusBarNotification notification, ExpandableNotificationRow row, argument 116 entry.key = key; 126 remove(IBinder key) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | CountryDetectorService.java | 146 private void removeListener(IBinder key) { argument 148 mReceivers.remove(key);
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | LocationBlacklist.java | 126 private String[] getStringArrayLocked(String key) { argument 129 flatString = Settings.Secure.getStringForUser(mContext.getContentResolver(), key,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | SparseWeakArray.java | 69 * Gets the Object mapped from the specified key, or <code>null</code> 72 public E get(int key) { argument 73 return get(key, null); 77 * Gets the Object mapped from the specified key, or the specified Object 80 public E get(int key, E valueIfKeyNotFound) { argument 81 int i = binarySearch(mKeys, 0, mSize, key); 91 * Removes the mapping from the specified key, if there was any. 93 public void delete(int key) { argument 94 int i = binarySearch(mKeys, 0, mSize, key); 107 public void remove(int key) { argument 163 put(int key, E value) argument 266 indexOfKey(int key) argument 313 append(int key, E value) argument 353 binarySearch(int[] a, int start, int len, int key) argument [all...] |
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/ |
H A D | SymbolResolvers.h | 82 const SymbolMap key = { pName, NULL }; local 85 ::bsearch(&key, Subclass::SymbolArray,
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/ |
H A D | StochasticLinearRanker.java | 77 * Get the rank score of the sample, a sample is a list of key, value pairs. 133 public boolean setModelParameter(String key, String value){ argument 134 boolean res = nativeSetParameterClassifier(key, value, mNativeClassifier); 191 private native boolean nativeSetParameterClassifier(String key, String value, argument
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BordeauxSessionManager.java | 82 public LearningUpdateCallback(String key) { argument 83 mKey = key; 100 // internal unique key that identifies the learning instance. 104 SessionKey key = new SessionKey(); 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); 106 return key; 109 public IBinder getSessionBinder(Class learnerClass, SessionKey key) { argument 110 if (mSessions.containsKey(key.value)) { 111 return mSessions.get(key.value).learner.getBinder(); 116 Session stored = mSessionStorage.getSession(key 155 saveSession(SessionKey key) argument [all...] |
H A D | BordeauxSessionStorage.java | 35 // unique key for the session 36 public static final String COLUMN_KEY = "key"; 49 " TEXT primary key, " + COLUMN_CLASS + " TEXT, " + 84 private ContentValues createSessionEntry(String key, Class learner, byte[] model) { argument 86 entry.put(COLUMN_KEY, key); 93 boolean saveSession(String key, Class learner, byte[] model) { argument 94 ContentValues content = createSessionEntry(key, learner, model); 115 BordeauxSessionManager.Session getSession(String key) { argument 118 COLUMN_KEY + "=\"" + key + "\"", null, null, null, null, null); 125 throw new RuntimeException("Unexpected duplication in session table for key [all...] |
H A D | Predictor.java | 134 public boolean setPredictorParameter(String key, String value) { argument 135 Log.i(TAG, "setParameter : " + key + ", " + value); 137 if (key.equals(SET_FEATURE)) { 142 } else if (key.equals(SET_PAIRED_FEATURES)) { 148 } else if (key.equals(USE_HISTORY)) { 152 Log.e(TAG,"Setting parameter " + key + " with " + value + " is not valid");
|
/frameworks/native/cmds/service/ |
H A D | service.cpp | 177 char* key = strtok_r(argv[optind], "=", &context1); local 181 if (key == NULL) break; 183 if (strcmp(key, "action") == 0) 187 else if (strcmp(key, "data") == 0) 191 else if (strcmp(key, "type") == 0) 195 else if (strcmp(key, "launchFlags") == 0) 199 else if (strcmp(key, "component") == 0) 203 else if (strcmp(key, "categories") == 0)
|
/frameworks/native/opengl/libs/EGL/ |
H A D | trace.cpp | 58 GLenumString key = {e, ""}; local 60 &key, g_enumnames,
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseFragmentPagerAdapter.java | 183 protected void entryRemoved(boolean evicted, String key, argument
|