Searched refs:key (Results 26 - 50 of 578) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/util/
H A DSparseIntArray.java89 * Gets the int mapped from the specified key, or <code>0</code>
92 public int get(int key) { argument
93 return get(key, 0);
97 * Gets the int mapped from the specified key, or the specified value
100 public int get(int key, int valueIfKeyNotFound) { argument
101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
111 * Removes the mapping from the specified key, if there was any.
113 public void delete(int key) { argument
114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
131 * Adds a mapping from the specified key t
135 put(int key, int value) argument
191 indexOfKey(int key) argument
222 append(int key, int value) argument
[all...]
H A DSparseLongArray.java89 * Gets the long mapped from the specified key, or <code>0</code>
92 public long get(int key) { argument
93 return get(key, 0);
97 * Gets the long mapped from the specified key, or the specified value
100 public long get(int key, long valueIfKeyNotFound) { argument
101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
111 * Removes the mapping from the specified key, if there was any.
113 public void delete(int key) { argument
114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
131 * Adds a mapping from the specified key t
135 put(int key, long value) argument
191 indexOfKey(int key) argument
222 append(int key, long value) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp47 String8 key = String8(pair, eqIdx); local
54 if (mParameters.indexOfKey(key) < 0) {
55 mParameters.add(key, value);
57 mParameters.replaceValueFor(key, value);
60 ALOGV("AudioParameter() cstor empty key value pair");
87 status_t AudioParameter::add(const String8& key, const String8& value) argument
89 if (mParameters.indexOfKey(key) < 0) {
90 mParameters.add(key, value);
93 mParameters.replaceValueFor(key, value);
98 status_t AudioParameter::addInt(const String8& key, cons argument
109 addFloat(const String8& key, const float value) argument
120 remove(const String8& key) argument
130 get(const String8& key, String8& value) argument
140 getInt(const String8& key, int& value) argument
156 getFloat(const String8& key, float& value) argument
172 getAt(size_t index, String8& key, String8& value) argument
[all...]
H A DMetadata.cpp27 // This file contains code to serialize Metadata triples (key, type,
91 bool Metadata::appendBool(int key, bool val) argument
93 if (!checkKey(key)) {
100 // 4 int32s: size, key, type, value.
102 ok = ok && mData->writeInt32(key) == OK;
111 bool Metadata::appendInt32(int key, int32_t val) argument
113 if (!checkKey(key)) {
120 // 4 int32s: size, key, type, value.
122 ok = ok && mData->writeInt32(key) == OK;
131 // Check the key (
134 checkKey(int key) argument
[all...]
/frameworks/base/core/java/android/app/usage/
H A DTimeSparseArray.java49 long key = -1;
52 key = keyAt(mid);
54 if (time > key) {
56 } else if (time < key) {
63 if (time < key) {
65 } else if (time > key && lo < size) {
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DSystemProperties_Delegate.java37 /*package*/ static String native_get(String key) { argument
38 return native_get(key, "");
42 /*package*/ static String native_get(String key, String def) { argument
44 String value = properties.get(key);
52 /*package*/ static int native_get_int(String key, int def) { argument
54 String value = properties.get(key);
63 /*package*/ static long native_get_long(String key, long def) { argument
65 String value = properties.get(key);
78 /*package*/ static boolean native_get_boolean(String key, boolean def) { argument
80 String value = properties.get(key);
96 native_set(String key, String def) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DGetCommand.java28 * @param key the {@link CameraMetadataNative.Key} to look up.
32 public <T> T getValue(CameraMetadataNative metadata, CameraMetadataNative.Key<T> key); argument
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseIntArray.java37 public int get(int key) { argument
38 return mArray.get(key);
41 public int get(int key, int valueIfKeyNotFound) { argument
42 return mArray.get(key, valueIfKeyNotFound);
/frameworks/rs/
H A DrsCompatibilityLib.h34 int property_get(const char *key, char *value, const char *default_value);
H A DrsCompatibilityLib.cpp22 int property_get(const char *key, char *value, const char *default_value) { argument
25 len = __system_property_get(key, value);
/frameworks/volley/src/com/android/volley/
H A DCache.java28 * @param key Cache key
31 public Entry get(String key); argument
35 * @param key Cache key
38 public void put(String key, Entry entry); argument
48 * @param key Cache key
51 public void invalidate(String key, boolean fullExpire); argument
55 * @param key Cach
57 remove(String key) argument
[all...]
/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...]
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaMetadataCompat.java190 * A String key for identifying the content. This value is specific to the
192 * unique key for the underlying content.
268 * Returns true if the given key is contained in the metadata
270 * @param key a String key
271 * @return true if the key exists in this metadata, false otherwise
273 public boolean containsKey(String key) { argument
274 return mBundle.containsKey(key);
278 * Returns the value associated with the given key, or null if no mapping of
279 * the desired type exists for the given key o
285 getText(String key) argument
297 getString(String key) argument
312 getLong(String key) argument
323 getRating(String key) argument
341 getBitmap(String key) argument
612 putText(String key, CharSequence value) argument
649 putString(String key, String value) argument
676 putLong(String key, long value) argument
700 putRating(String key, RatingCompat value) argument
725 putBitmap(String key, Bitmap value) argument
[all...]
/frameworks/av/include/media/
H A DAudioParameter.h54 status_t add(const String8& key, const String8& value);
55 status_t addInt(const String8& key, const int value);
56 status_t addFloat(const String8& key, const float value);
58 status_t remove(const String8& key);
60 status_t get(const String8& key, String8& value);
61 status_t getInt(const String8& key, int& value);
62 status_t getFloat(const String8& key, float& value);
63 status_t getAt(size_t index, String8& key, String8& value);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DKeyValueMap.java36 throw new RuntimeException("Key-value argument " + i + " must be a key of type "
39 String key = (String)keyValues[i];
41 put(key, value);
51 public String getString(String key) { argument
52 Object result = get(key);
56 public int getInt(String key) { argument
57 Object result = get(key);
61 public float getFloat(String key) { argument
62 Object result = get(key);
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DPooledCache.java21 V get(K key, boolean incrementRefCount); argument
22 V put(K key, V value); argument
/frameworks/av/drm/common/
H A DDrmMetadata.cpp25 status_t DrmMetadata::put(const String8* key, argument
27 if((value != NULL) && (key != NULL)) {
33 mMetadataMap.add(*key, charValue);
38 String8 DrmMetadata::get(const String8& key) const {
39 if (NULL != getValue(&key)) {
40 return String8(getValue(&key));
47 const char* DrmMetadata::getValue(const String8* key) const {
48 if(key != NULL) {
49 if (NAME_NOT_FOUND != mMetadataMap.indexOfKey(*key)) {
50 return mMetadataMap.valueFor(*key);
69 const String8& key = mDrmMetadata->mMetadataMap.keyAt(mIndex); local
[all...]
H A DDrmInfo.cpp44 status_t DrmInfo::put(const String8& key, const String8& value) { argument
45 mAttributes.add(key, value);
49 String8 DrmInfo::get(const String8& key) const {
50 if (NAME_NOT_FOUND != mAttributes.indexOfKey(key)) {
51 return mAttributes.valueFor(key);
56 int DrmInfo::indexOfKey(const String8& key) const {
57 return mAttributes.indexOfKey(key);
79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); local
81 return key;
H A DDrmConstraints.cpp32 status_t DrmConstraints::put(const String8* key, const char* value) { argument
38 mConstraintMap.add(*key, charValue);
43 String8 DrmConstraints::get(const String8& key) const {
44 if (NULL != getValue(&key)) {
45 return String8(getValue(&key));
50 const char* DrmConstraints::getValue(const String8* key) const {
51 if (NAME_NOT_FOUND != mConstraintMap.indexOfKey(*key)) {
52 return mConstraintMap.valueFor(*key);
57 const char* DrmConstraints::getAsByteArray(const String8* key) const {
58 return getValue(key);
66 const String8& key = mDrmConstraints->mConstraintMap.keyAt(mIndex); local
[all...]
/frameworks/volley/tests/src/com/android/volley/mock/
H A DMockCache.java37 public Entry get(String key) { argument
47 public void put(String key, Entry entry) { argument
49 keyPut = key;
54 public void invalidate(String key, boolean fullExpire) { argument
58 public void remove(String key) { argument
/frameworks/base/tools/split-select/
H A DGrouper.cpp42 SplitDescription key(split);
43 key.config.density = 0;
44 key.config.sdkVersion = 0; // Ignore density so we can support anydpi.
45 appendValue(densityGroups, key, split);
47 SplitDescription key(split);
48 key.abi = abi::Variant_none;
49 appendValue(abiGroups, key, split);
51 SplitDescription key(split);
52 key.config.clearLocale();
53 appendValue(localeGroups, key, spli
[all...]
/frameworks/base/libs/hwui/
H A DProgram.h230 * Computes the unique key identifying this program.
232 programid key() const { function in struct:android::uirenderer::ProgramDescription
233 programid key = 0; local
234 if (hasTexture) key |= PROGRAM_KEY_TEXTURE;
235 if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE;
237 key |= PROGRAM_KEY_BITMAP;
239 key |= PROGRAM_KEY_BITMAP_NPOT;
240 key |= getEnumForWrap(bitmapWrapS) << PROGRAM_BITMAP_WRAPS_SHIFT;
241 key |= getEnumForWrap(bitmapWrapT) << PROGRAM_BITMAP_WRAPT_SHIFT;
244 if (hasGradient) key |
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DILockSettings.aidl21 void setBoolean(in String key, in boolean value, in int userId);
22 void setLong(in String key, in long value, in int userId);
23 void setString(in String key, in String value, in int userId);
24 boolean getBoolean(in String key, in boolean defaultValue, in int userId);
25 long getLong(in String key, in long defaultValue, in int userId);
26 String getString(in String key, in String defaultValue, in int userId);
/frameworks/support/v4/jellybean/android/support/v4/app/
H A DBundleUtil.java17 public static Bundle[] getBundleArrayFromBundle(Bundle bundle, String key) { argument
18 Parcelable[] array = bundle.getParcelableArray(key);
24 bundle.putParcelableArray(key, typedArray);
/frameworks/av/media/libstagefright/
H A DMetaData.cpp48 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
359 int32_t key = mItems.keyAt(i); local
[all...]

Completed in 613 milliseconds

1234567891011>>