/frameworks/support/compat/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 | LruCache.java | 72 * Returns the value for {@code key} if it exists in the cache or can be 77 public final V get(K key) { argument 78 if (key == null) { 79 throw new NullPointerException("key == null"); 84 mapValue = map.get(key); 99 V createdValue = create(key); 106 mapValue = map.put(key, createdValue); 110 map.put(key, mapValue); 112 size += safeSizeOf(key, createdValue); 117 entryRemoved(false, key, createdValu 131 put(K key, V value) argument 192 remove(K key) argument 227 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument 244 create(K key) argument 248 safeSizeOf(K key, V value) argument 263 sizeOf(K key, V 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/emoji/core/src/android/support/text/emoji/ |
H A D | MetadataRepo.java | 216 Node get(final int key) { argument 217 return mChildren == null ? null : mChildren.get(key);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/ |
H A D | Settings.java | 78 * Returns the boolean preference for the given key. 80 public boolean getBoolean(String key) { argument 81 return getOrSetBoolean(key, false, false); 85 * Sets the boolean preference for the given key. If an app uses this api to override 88 public void setBoolean(String key, boolean value) { argument 89 getOrSetBoolean(key, true, value); 92 boolean getOrSetBoolean(String key, boolean set, boolean value) { argument 93 if (key.compareTo(PREFER_STATIC_SHADOWS) == 0) { 96 throw new IllegalArgumentException("Invalid key");
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | GuidedDatePickerAction.java | 180 public void onSaveInstanceState(Bundle bundle, String key) { argument 181 bundle.putLong(key, getDate()); 185 public void onRestoreInstanceState(Bundle bundle, String key) { argument 186 setDate(bundle.getLong(key, getDate()));
|
/frameworks/av/drm/libmediadrm/ |
H A D | Crypto.cpp | 237 ssize_t Crypto::decrypt(const uint8_t key[16], const uint8_t iv[16], argument 264 ssize_t result = mPlugin->decrypt(secure, key, iv, mode, pattern, srcPtr, subSamples,
|
H A D | ICrypto.cpp | 99 virtual ssize_t decrypt(const uint8_t key[16], const uint8_t iv[16], argument 112 if (key == NULL) { 113 key = kDummy; 120 data.write(key, 16); 318 uint8_t key[16]; local 319 data.read(key, sizeof(key)); 393 result = decrypt(key, iv, mode, pattern, source, offset,
|
/frameworks/av/media/libmedia/ |
H A D | AudioParameter.cpp | 60 String8 key = String8(pair, eqIdx); local 67 if (mParameters.indexOfKey(key) < 0) { 68 mParameters.add(key, value); 70 mParameters.replaceValueFor(key, value); 73 ALOGV("AudioParameter() cstor empty key value pair"); 102 status_t AudioParameter::add(const String8& key, const String8& value) argument 104 if (mParameters.indexOfKey(key) < 0) { 105 mParameters.add(key, value); 108 mParameters.replaceValueFor(key, value); 113 status_t AudioParameter::addKey(const String8& key) argument 118 addInt(const String8& key, const int value) argument 129 addFloat(const String8& key, const float value) argument 140 remove(const String8& key) argument 150 get(const String8& key, String8& value) const argument 160 getInt(const String8& key, int& value) const argument 176 getFloat(const String8& key, float& value) const argument 202 getAt(size_t index, String8& key, String8& value) const argument [all...] |
H A D | IMediaMetadataRetriever.cpp | 235 String8 key = data.readString8(); local 237 headers.add(key, value);
|
H A D | MediaCodecInfo.cpp | 271 void MediaCodecInfo::addDetail(const AString &key, const AString &value) { argument 272 mCurrentCaps->mDetails->setString(key.c_str(), value.c_str()); 275 void MediaCodecInfo::addFeature(const AString &key, int32_t value) { argument 277 tag.append(key); 281 void MediaCodecInfo::addFeature(const AString &key, const char *value) { argument 283 tag.append(key);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDrm.cpp | 235 uint8_t key[kBlockSize], 250 memcpy(ret->key, key, kBlockSize); 300 const void *key; local 302 if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) { 328 (uint8_t*) key, 233 makeCryptoInfo( int numSubSamples, uint8_t key[kBlockSize], uint8_t iv[kBlockSize], CryptoPlugin::Mode mode, size_t *clearbytes, size_t *encryptedbytes) argument
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | MetaData.cpp | 48 bool MetaData::remove(uint32_t key) { argument 49 ssize_t i = mItems.indexOfKey(key); 60 bool MetaData::setCString(uint32_t key, const char *value) { argument 61 return setData(key, TYPE_C_STRING, value, strlen(value) + 1); 64 bool MetaData::setInt32(uint32_t key, int32_t value) { argument 65 return setData(key, TYPE_INT32, &value, sizeof(value)); 68 bool MetaData::setInt64(uint32_t key, int64_t value) { argument 69 return setData(key, TYPE_INT64, &value, sizeof(value)); 72 bool MetaData::setFloat(uint32_t key, float value) { argument 73 return setData(key, TYPE_FLOA 76 setPointer(uint32_t key, void *value) argument 80 setRect( uint32_t key, int32_t left, int32_t top, int32_t right, int32_t bottom) argument 96 findCString(uint32_t key, const char **value) argument 109 findInt32(uint32_t key, int32_t *value) argument 124 findInt64(uint32_t key, int64_t *value) argument 139 findFloat(uint32_t key, float *value) argument 154 findPointer(uint32_t key, void **value) argument 169 findRect( uint32_t key, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom) argument 191 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument 210 findData(uint32_t key, uint32_t *type, const void **data, size_t *size) const argument 373 int32_t key = mItems.keyAt(i); local 386 int32_t key = mItems.keyAt(i); local 402 int32_t key = mItems.keyAt(i); local 443 int32_t key; local [all...] |
H A D | ParsedMessage.cpp | 48 AString key = name; local 49 key.tolower(); 51 ssize_t index = mDict.indexOfKey(key); 141 AString key(line, 0, colonPos); 142 key.trim(); 143 key.tolower(); 147 lastDictIndex = mDict.add(key, line); 232 const AString &key = mDict.keyAt(i); local 235 if (key == AString("_")) { 239 line.append(key); 252 GetAttribute( const char *s, const char *key, AString *value) argument 282 GetInt32Attribute( const char *s, const char *key, int32_t *value) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 38 static bool GetAttribute(const char *s, const char *key, AString *value) { argument 41 size_t keyLen = strlen(key); 54 && !strncasecmp(s, key, keyLen)) { 68 const char *s, const char *key, unsigned *x) { 72 if (!GetAttribute(s, key, &val)) { 67 GetIntegerAttribute( const char *s, const char *key, unsigned *x) argument
|
H A D | ASessionDescription.cpp | 97 AString key, value; local 101 key = line; 103 key.setTo(line, 0, colonPos); 105 if (key == "a=fmtp" || key == "a=rtpmap" 106 || key == "a=framesize") { 112 key.setTo(line, 0, spacePos); 120 key.trim(); 123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); 125 mTracks.editItemAt(mTracks.size() - 1).add(key, valu 141 AString key, value; local 179 findAttribute( size_t index, const char *key, AString *value) const argument 214 char key[20]; local 233 char key[20]; local [all...] |
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | BenchmarkState.java | 267 public void sendFullStatusReport(Instrumentation instrumentation, String key) { argument 268 Log.i(TAG, key + summaryLine()); 270 status.putLong(key + "_median", median()); 271 status.putLong(key + "_mean", mean()); 272 status.putLong(key + "_min", min()); 273 status.putLong(key + "_standardDeviation", standardDeviation());
|
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 56 * bucket for a particular key, state, metered and roaming combination. In case of the user-wide 64 * Therefore there can be multiple buckets for a particular key but all Bucket's state is going to 465 private static Object getObject(Message msg, String key) { argument 466 return msg.getData().getParcelable(key);
|
/frameworks/base/core/java/android/content/ |
H A D | ContentValues.java | 92 * @param key the name of the value to put 95 public void put(String key, String value) { argument 96 mValues.put(key, value); 111 * @param key the name of the value to put 114 public void put(String key, Byte value) { argument 115 mValues.put(key, value); 121 * @param key the name of the value to put 124 public void put(String key, Short value) { argument 125 mValues.put(key, value); 131 * @param key th 134 put(String key, Integer value) argument 144 put(String key, Long value) argument 154 put(String key, Float value) argument 164 put(String key, Double value) argument 174 put(String key, Boolean value) argument 184 put(String key, byte[] value) argument 193 putNull(String key) argument 222 remove(String key) argument 239 containsKey(String key) argument 251 get(String key) argument 261 getAsString(String key) argument 272 getAsLong(String key) argument 297 getAsInteger(String key) argument 322 getAsShort(String key) argument 347 getAsByte(String key) argument 372 getAsDouble(String key) argument 397 getAsFloat(String key) argument 422 getAsBoolean(String key) argument 450 getAsByteArray(String key) argument 505 putStringArrayList(String key, ArrayList<String> value) argument 515 getStringArrayList(String key) argument [all...] |
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 48 * authenticating with a key. {@see #authenticateSectorWithKeyA} and 55 * <li>{@link #KEY_DEFAULT} is the default factory key for MIFARE Classic. 56 * <li>{@link #KEY_MIFARE_APPLICATION_DIRECTORY} is the well-known key for 59 * <li>{@link #KEY_NFC_FORUM} is the well-known key for MIFARE Classic cards that 77 * The default factory key. 82 * The well-known key for tags formatted according to the 88 * The well-known key for tags formatted according to the 316 * Authenticate a sector with key A. 318 * <p>Successful authentication of a sector with key A enables other 319 * I/O operations on that sector. The set of operations granted by key 338 authenticateSectorWithKeyA(int sectorIndex, byte[] key) argument 365 authenticateSectorWithKeyB(int sectorIndex, byte[] key) argument 369 authenticate(int sector, byte[] key, boolean keyA) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | UserManagerInternal.java | 71 public abstract boolean getUserRestriction(int userId, String key); argument
|
/frameworks/base/core/java/android/os/health/ |
H A D | HealthStats.java | 36 * (COUNT, MS, etc) will always be in the name of the constant for the key to 197 * Return whether this object contains a TimerStat for the supplied key. 199 public boolean hasTimer(int key) { argument 200 return getIndex(mTimerKeys, key) >= 0; 204 * Return a TimerStat object for the given key. 209 * @throws IndexOutOfBoundsException When the key is not present in this object. 210 * @see #hasTimer hasTimer(int) To check if a value for the given key is present. 212 public TimerStat getTimer(int key) { argument 213 final int index = getIndex(mTimerKeys, key); 215 throw new IndexOutOfBoundsException("Bad timer key dataTyp 227 getTimerCount(int key) argument 242 getTimerTime(int key) argument 274 hasMeasurement(int key) argument 284 getMeasurement(int key) argument 316 hasStats(int key) argument 326 getStats(int key) argument 358 hasTimers(int key) argument 368 getTimers(int key) argument 400 hasMeasurements(int key) argument 410 getMeasurements(int key) argument 443 getIndex(int[] keys, int key) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceFragment.java | 72 * {@link Activity} can specify meta-data in the manifest (via the key 344 * Finds a {@link Preference} based on its key. 346 * @param key The key of the preference to retrieve. 347 * @return The {@link Preference} with the key, or null. 350 public Preference findPreference(CharSequence key) { argument 354 return mPreferenceManager.findPreference(key);
|
/frameworks/base/core/java/android/printservice/ |
H A D | PrintJob.java | 368 * may set as a tag the key of the print job returned by a remote 404 * @param key The option key. 408 public String getAdvancedStringOption(String key) { argument 410 return getInfo().getAdvancedStringOption(key); 417 * @param key The option key. 421 public boolean hasAdvancedOption(String key) { argument 423 return getInfo().hasAdvancedOption(key); 429 * @param key Th 433 getAdvancedIntOption(String key) argument [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | StatusBarNotification.java | 36 private final String key; field in class:StatusBarNotification 66 this.key = key(); 89 this.key = key(); 112 this.key = key(); 116 private String key() { method in class:StatusBarNotification 132 return key; 224 "StatusBarNotification(pkg=%s user=%s id=%d tag=%s key [all...] |