Searched defs:key (Results 76 - 100 of 259) sorted by relevance

1234567891011

/frameworks/base/core/java/android/content/
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/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java65 * 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 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/java/android/preference/
H A DPreferenceGroup.java221 * Finds a {@link Preference} based on its key. If two {@link Preference}
222 * share the same key (not recommended), the first to appear will be
223 * returned (to retrieve the other preference with the same key, call this
224 * method on the first preference). If this preference has the key, it will
230 * @param key The key of the preference to retrieve.
231 * @return The {@link Preference} with the key, or null.
233 public Preference findPreference(CharSequence key) { argument
234 if (TextUtils.equals(getKey(), key)) {
242 if (curKey != null && curKey.equals(key)) {
[all...]
/frameworks/base/core/java/android/util/
H A DLongSparseArray.java69 * Gets the Object mapped from the specified key, or <code>null</code>
72 public E get(long key) { argument
73 return get(key, null);
77 * Gets the Object mapped from the specified key, or the specified Object
81 public E get(long key, E valueIfKeyNotFound) { argument
82 int i = binarySearch(mKeys, 0, mSize, key);
92 * Removes the mapping from the specified key, if there was any.
94 public void delete(long key) { argument
95 int i = binarySearch(mKeys, 0, mSize, key);
108 public void remove(long key) { argument
155 put(long key, E value) argument
259 indexOfKey(long key) argument
306 append(long key, E value) argument
336 binarySearch(long[] a, int start, int len, long key) argument
[all...]
H A DSparseArray.java69 * 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
81 public E get(int key, E valueIfKeyNotFound) { argument
82 int i = binarySearch(mKeys, 0, mSize, key);
92 * Removes the mapping from the specified key, if there was any.
94 public void delete(int key) { argument
95 int i = binarySearch(mKeys, 0, mSize, key);
108 public void remove(int key) { argument
155 put(int key, E value) argument
259 indexOfKey(int key) argument
306 append(int key, E value) argument
336 binarySearch(int[] a, int start, int len, int key) argument
[all...]
H A DSparseLongArray.java68 * Gets the long mapped from the specified key, or <code>0</code>
71 public long get(int key) { argument
72 return get(key, 0);
76 * Gets the long mapped from the specified key, or the specified value
79 public long get(int key, long valueIfKeyNotFound) { argument
80 int i = binarySearch(mKeys, 0, mSize, key);
90 * Removes the mapping from the specified key, if there was any.
92 public void delete(int key) { argument
93 int i = binarySearch(mKeys, 0, mSize, key);
110 * Adds a mapping from the specified key t
114 put(int key, long value) argument
168 indexOfKey(int key) argument
199 append(int key, long value) argument
228 binarySearch(int[] a, int start, int len, long key) argument
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DVpnProfile.java49 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 Dandroid_os_SystemProperties.cpp34 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 Dandroid_util_Log.cpp61 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 DAndroidKeyStore.java59 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key,
61 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE
85 UnrecoverableKeyException t = new UnrecoverableKeyException("Can't get key");
195 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
201 if (key instanceof PrivateKey) {
202 setPrivateKeyEntry(alias, (PrivateKey) key, chain);
208 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain) argument
213 if (key instanceof OpenSSLRSAPrivateKey) {
214 pkeyAlias = ((OpenSSLRSAPrivateKey) key).getPkeyAlias();
215 } else if (key instanceo
[all...]
/frameworks/base/services/java/com/android/server/
H A DCountryDetectorService.java146 private void removeListener(IBinder key) { argument
148 mReceivers.remove(key);
/frameworks/base/services/java/com/android/server/location/
H A DLocationBlacklist.java126 private String[] getStringArrayLocked(String key) { argument
129 flatString = Settings.Secure.getStringForUser(mContext.getContentResolver(), key,
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DLayoutTestController.java63 public void overridePreference(String key, boolean value) { argument
64 mLayoutTestsExecutor.overridePreference(key, value);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java69 * 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 DSymbolResolvers.h82 const SymbolMap key = { pName, NULL }; local
85 ::bsearch(&key, Subclass::SymbolArray,
/frameworks/ex/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java180 protected void entryRemoved(boolean evicted, String key, argument
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
H A DStochasticLinearRanker.java77 * 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 DBordeauxSessionManager.java82 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 DBordeauxSessionStorage.java35 // 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...]
/frameworks/native/libs/utils/
H A DPropertyMap.cpp50 void PropertyMap::addProperty(const String8& key, const String8& value) { argument
51 mProperties.add(key, value);
54 bool PropertyMap::hasProperty(const String8& key) const {
55 return mProperties.indexOfKey(key) >= 0;
58 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const { argument
59 ssize_t index = mProperties.indexOfKey(key);
68 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const { argument
70 if (!tryGetProperty(key, intValue)) {
78 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const { argument
80 if (! tryGetProperty(key, stringValu
95 tryGetProperty(const String8& key, float& outValue) const argument
[all...]
/frameworks/native/opengl/libs/EGL/
H A Dtrace.cpp59 GLenumString key = {e, ""}; local
61 &key, g_enumnames,
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java184 protected void entryRemoved(boolean evicted, String key, argument
/frameworks/support/renderscript/v8/rs_support/
H A DrsScriptC.cpp165 const char * key = mHal.info.exportedPragmaKeyList[i]; local
168 if (!strcmp(key, "version")) {
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java67 * Gets the Object mapped from the specified key, or <code>null</code>
70 public E get(long key) { argument
71 return get(key, null);
75 * Gets the Object mapped from the specified key, or the specified Object
79 public E get(long key, E valueIfKeyNotFound) { argument
80 int i = binarySearch(mKeys, 0, mSize, key);
90 * Removes the mapping from the specified key, if there was any.
92 public void delete(long key) { argument
93 int i = binarySearch(mKeys, 0, mSize, key);
106 public void remove(long key) { argument
153 put(long key, E value) argument
257 indexOfKey(long key) argument
304 append(long key, E value) argument
334 binarySearch(long[] a, int start, int len, long key) argument
[all...]

Completed in 651 milliseconds

1234567891011