/frameworks/base/core/java/android/util/ |
H A D | LongSparseArray.java | 41 * as deleted. The entry can then be re-used for the same key, or compacted later in 100 * Gets the Object mapped from the specified key, or <code>null</code> 103 public E get(long key) { argument 104 return get(key, null); 108 * Gets the Object mapped from the specified key, or the specified Object 112 public E get(long key, E valueIfKeyNotFound) { argument 113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 123 * Removes the mapping from the specified key, if there was any. 125 public void delete(long key) { argument 126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 139 remove(long key) argument 186 put(long key, E value) argument 281 indexOfKey(long key) argument 328 append(long key, E value) argument [all...] |
H A D | SparseArray.java | 41 * as deleted. The entry can then be re-used for the same key, or compacted later in 100 * Gets the Object mapped from the specified key, or <code>null</code> 103 public E get(int key) { argument 104 return get(key, null); 108 * Gets the Object mapped from the specified key, or the specified Object 112 public E get(int key, E valueIfKeyNotFound) { argument 113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 123 * Removes the mapping from the specified key, if there was any. 125 public void delete(int key) { argument 126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 139 remove(int key) argument 199 put(int key, E value) argument 294 indexOfKey(int key) argument 343 append(int key, E value) argument [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LongSparseArray.java | 38 * as deleted. The entry can then be re-used for the same key, or compacted later in 92 * Gets the Object mapped from the specified key, or <code>null</code> 95 public E get(long key) { argument 96 return get(key, null); 100 * Gets the Object mapped from the specified key, or the specified Object 104 public E get(long key, E valueIfKeyNotFound) { argument 105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 115 * Removes the mapping from the specified key, if there was any. 117 public void delete(long key) { argument 118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 131 remove(long key) argument 178 put(long key, E value) argument 282 indexOfKey(long key) argument 329 append(long key, E value) argument [all...] |
H A D | SparseArrayCompat.java | 72 * Gets the Object mapped from the specified key, or <code>null</code> 75 public E get(int key) { argument 76 return get(key, null); 80 * Gets the Object mapped from the specified key, or the specified Object 84 public E get(int key, E valueIfKeyNotFound) { argument 85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 95 * Removes the mapping from the specified key, if there was any. 97 public void delete(int key) { argument 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 111 public void remove(int key) { argument 171 put(int key, E value) argument 275 indexOfKey(int key) argument 324 append(int key, E value) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | PositionMap.java | 23 * Like a SparseArray, but with the ability to offset key ranges for bulk insertions/deletions. 74 * Gets the Object mapped from the specified key, or <code>null</code> 77 public E get(int key) { argument 78 return get(key, null); 82 * Gets the Object mapped from the specified key, or the specified Object 86 public E get(int key, E valueIfKeyNotFound) { argument 87 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 97 * Removes the mapping from the specified key, if there was any. 99 public void delete(int key) { argument 100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); 113 remove(int key) argument 181 put(int key, E value) argument 285 indexOfKey(int key) argument 334 append(int key, E value) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiNetworkScoreCache.java | 46 // The key is of the form "<ssid>"<bssid> 131 String key = buildNetworkKey(result); 132 if (key == null) return null; 136 ScoredNetwork network = mNetworkCache.get(key); 145 String key = network.networkKey.wifiKey.ssid; 146 if (key == null) return null; 148 key = key + network.networkKey.wifiKey.bssid; 150 return key; 159 StringBuilder key [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | BackupData_test.cpp | 95 String8 key; local 97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) 99 EXPECT_EQ(mKey1, key) 100 << "wrong key from ReadEntityHeader"; 130 String8 key; local 135 reader->ReadEntityHeader(&key, &dataSize); 145 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) 147 EXPECT_EQ(mKey2, key) 148 << "wrong key from ReadEntityHeader on second entity"; 180 String8 key; local 232 String8 key; local 273 String8 key; local 333 String8 key; local 399 String8 key; local [all...] |
/frameworks/base/core/java/android/net/nsd/ |
H A D | NsdServiceInfo.java | 99 public void setAttribute(String key, byte[] value) { argument 101 for (int i = 0; i < key.length(); ++i) { 102 char character = key.charAt(i); 111 if (key.length() + (value == null ? 0 : value.length) >= 255) { 115 // Warn if key is > 9 characters, as recommended by RFC 6763 section 6.4. 116 if (key.length() > 9) { 117 Log.w(TAG, "Key lengths > 9 are discouraged: " + key); 123 int futureSize = txtRecordSize + key.length() + (value == null ? 0 : value.length) + 2; 130 mTxtRecord.put(key, value); 134 * Add a service attribute as a key/valu 145 setAttribute(String key, String value) argument 154 removeAttribute(String key) argument [all...] |
H A D | NsdManager.java | 137 * The lookup key for an int that indicates whether network service discovery is enabled 318 Log.d(TAG, "Stale key " + message.arg2); 379 // return its key. 383 int key; 390 key = mListenerKey++; 391 } while (key == INVALID_LISTENER_KEY); 392 mListenerMap.put(key, listener); 393 mServiceMap.put(key, s); 395 return key; 398 private Object getListener(int key) { argument 405 getNsdService(int key) argument 411 removeListener(int key) argument [all...] |
/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...] |
/frameworks/base/tools/split-select/ |
H A D | TestRules.h | 49 const Rule EqRule(Rule::Key key, long value); 50 const Rule LtRule(Rule::Key key, long value); 51 const Rule GtRule(Rule::Key key, long value); 52 const Rule ContainsAnyRule(Rule::Key key, const char* str1); 53 const Rule ContainsAnyRule(Rule::Key key, const char* str1, const char* str2);
|
/frameworks/base/core/java/android/app/backup/ |
H A D | AbsoluteFileBackupHelper.java | 68 String key = data.getKey(); 69 if (isKeyInList(key, mFiles)) { 70 File f = new File(key);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationDelegate.java | 22 void onNotificationClick(int callingUid, int callingPid, String key); argument 23 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex); argument 34 void onNotificationExpansionChanged(String key, boolean userAction, boolean expanded); argument
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | StringString.java | 7 public String key; field in class:StringString 33 out.writeString(key); 38 key = in.readString();
|
H A D | IPredictor.aidl | 22 boolean setPredictorParameter(in String key, in String value);
|
/frameworks/av/include/drm/ |
H A D | DrmConstraints.h | 68 * Iterator for key 119 String8 key = keyIt.next(); local 120 const char* value = this->getAsByteArray(&key); 137 * Adds constraint information as <key, value> pair to this instance 139 * @param[in] key Key to add 143 status_t put(const String8* key, const char* value); 146 * Retrieves the value of given key 148 * @param key Key whose value to be retrieved 151 String8 get(const String8& key) const; 154 * Retrieves the value as byte array of given key [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | UnrefedBitmapCache.java | 32 * when the same key is used to retrieve the value, a {@link NullReusableBitmap} singleton will 120 public ReusableBitmap get(final RequestKey key, final boolean incrementRefCount) { argument 121 if (mNullRequests != null && mNullRequests.get(key) != null) { 124 return super.get(key, incrementRefCount); 131 public ReusableBitmap put(final RequestKey key, final ReusableBitmap value) { argument 133 mNullRequests.put(key, NullReusableBitmap.getInstance()); 137 return super.put(key, value);
|
/frameworks/webview/chromium/tools/ |
H A D | memreport.py | 89 for key in mem_usage: 91 if (key+'=') in token: 93 if key != 'shared_app': 94 mem_usage[key] += int(field) 98 mem_usage[key] += float(array[i]) / (i + 2) 131 _DumpCSV(_CollectMemoryStats(sys.stdin, [value for (key, value) in _ENTRIES]))
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraMetadataNative.java | 130 * specific key might look like {@code "com.google.nexus.data.private"}.</p> 132 * @return String representation of the key name 147 * Compare this key against other native keys, request keys, result keys, and 152 * <p>Note that the equality against non-native keys is one-way. A native key may be equal 153 * to a result key; but that same result key will not be equal to a native key.</p> 185 * Get the tag corresponding to this key. This enables insertion into the 202 * Get the raw class backing the type {@code T} for this key. 213 * Get the type reference backing the type {@code T} for this key 321 get(CameraCharacteristics.Key<T> key) argument 328 get(CaptureResult.Key<T> key) argument 335 get(CaptureRequest.Key<T> key) argument 345 get(Key<T> key) argument 381 set(Key<T> key, T value) argument 391 set(CaptureRequest.Key<T> key, T value) argument 395 set(CaptureResult.Key<T> key, T value) argument 399 set(CameraCharacteristics.Key<T> key, T value) argument 439 getBase(CameraCharacteristics.Key<T> key) argument 443 getBase(CaptureResult.Key<T> key) argument 447 getBase(CaptureRequest.Key<T> key) argument 451 getBase(Key<T> key) argument 840 getMaxRegions(Key<T> key) argument 863 getMaxNumOutputs(Key<T> key) argument 903 setBase(CameraCharacteristics.Key<T> key, T value) argument 907 setBase(CaptureResult.Key<T> key, T value) argument 911 setBase(CaptureRequest.Key<T> key, T value) argument 915 setBase(Key<T> key, T value) argument 1104 getTag(String key) argument 1182 getMarshalerForKey(Key<T> key) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Annotation.java | 22 * Annotations are simple key-value pairs that are preserved across 30 public Annotation(String key, String value) { argument 31 mKey = key;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LongSparseLongArrayTest.java | 82 final long key = r.nextLong(); 84 map.put(key, value); 85 array.put(key, value); 89 final long key = getKeyAtIndex(map, index); 90 map.remove(key); 91 array.delete(key); 98 final long key = e.getKey(); 100 assertEquals(value, array.get(key));
|
/frameworks/base/media/mca/filterfw/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | utilities.h | 58 // Given an STL container consisting of (key, value) pairs, STLDeleteValues 71 // If the key is present a const pointer to the associated value is returned, 76 const typename Collection::value_type::first_type& key) { 77 typename Collection::const_iterator it = collection.find(key); 123 // If the key is present a const pointer to the associated value is returned, 125 // This function does not distinguish between a missing key and a key mapped 130 const typename Collection::value_type::first_type& key) { 131 typename Collection::const_iterator it = collection.find(key); 138 // Test to see if a set, map, hash_set or hash_map contains a particular key 75 FindOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 129 FindPtrOrNull(const Collection& collection, const typename Collection::value_type::first_type& key) argument 141 ContainsKey(const Collection& collection, const Key& key) argument 150 InsertIfNotPresent(Collection * const collection, const Key& key, const Value& value) argument [all...] |
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | StringEntry.h | 33 key_type key() function in class:mcld::StringEntry 36 const key_type key() const function in class:mcld::StringEntry 55 { return (0 == key().compare(pX)); } 58 { return (0 == key().compare(pX)); } 83 key_type key() function in class:mcld::StringEntry 86 const key_type key() const function in class:mcld::StringEntry 109 { return (0 == key().compare(pX)); } 112 { return (0 == key().compare(pX)); }
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/util/ |
H A D | SystemProperties.java | 30 * Gets system properties set by <code>adb shell setprop <em>key</em> <em>value</em></code> 32 * @param key the property key. 37 public static String get(String key, String defaultValue) { argument 41 return (String) get.invoke(null, key, defaultValue);
|