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

1234567891011>>

/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportReceiver.java177 private static File getFileExtra(Intent intent, String key) { argument
178 final String path = intent.getStringExtra(key);
/frameworks/base/services/core/java/com/android/server/
H A DCertBlacklister.java57 public BlacklistObserver(String key, String name, String path, ContentResolver cr) { argument
59 mKey = key;
128 // set up the public key blacklist observer
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingReconsideration.java37 public RankingReconsideration(String key) { argument
38 this(key, IMMEDIATE);
41 public RankingReconsideration(String key, long delay) { argument
43 mKey = key;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCertBlacklisterTest.java45 private void overrideSettings(String key, String value) throws Exception { argument
46 Settings.Secure.putString(mContext.getContentResolver(), key, value);
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java45 * protected int sizeOf(String key, Bitmap value) {
53 * if (cache.get(key) == null) {
54 * cache.put(key, value);
58 * <p>This class does not allow null to be used as a key or value. A return
60 * unambiguous: the key was not in the cache.
110 * Returns the value for {@code key} if it exists in the cache or can be
115 public final V get(K key) { argument
116 if (key == null) {
117 throw new NullPointerException("key == null");
122 mapValue = map.get(key);
169 put(K key, V value) argument
240 remove(K key) argument
275 entryRemoved(boolean evicted, K key, V oldValue, V newValue) argument
292 create(K key) argument
296 safeSizeOf(K key, V value) argument
311 sizeOf(K key, V value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeSharedPreferences.java37 public String getString(String key, String defValue) { argument
42 public Set<String> getStringSet(String key, Set<String> defValues) { argument
47 public int getInt(String key, int defValue) { argument
52 public long getLong(String key, long defValue) { argument
57 public float getFloat(String key, float defValue) { argument
62 public boolean getBoolean(String key, boolean defValue) { argument
67 public boolean contains(String key) { argument
78 public Editor putString(String key, String value) {
83 public Editor putStringSet(String key, Set<String> values) {
88 public Editor putInt(String key, in
[all...]
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSInfoReader.cpp46 const char *key = pInfo.getStringFromPool(pItem.key); local
49 if (key == NULL) {
50 ALOGE("Invalid string index %d for key in RS pragma list.", pItem.key);
59 pResult.push(std::make_pair(key, value));
/frameworks/compile/mclinker/lib/LD/
H A DDiagnosticInfos.cpp84 DiagStaticInfo key = { static_cast<uint16_t>(pID), DiagnosticEngine::None, 0, 0 }; local
85 const DiagStaticInfo *result = std::lower_bound(static_info, static_info + info_size, key);
/frameworks/compile/mclinker/unittests/
H A DHashTableTest.cpp111 int key = 100; local
112 HashTableTy::entry_type* val = hashTable->insert(key, exist);
117 HashTableTy::iterator entry = hashTable->find(key);
129 for (int key=0; key<100; ++key) {
130 entry = hashTable->insert(key, exist);
134 EXPECT_TRUE(key == entry->key());
135 entry->setValue(key
318 unsigned int key = 0; local
[all...]
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java70 * the template's selection for that {@code key}; the difference here is
75 * @param key Which setting to alter.
81 * @throws NullPointerException If {@code key} is {@code null}.
83 public <T> boolean set(Key<T> key, T value) { argument
84 if (key == null) {
85 throw new NullPointerException("Received a null key");
88 Object currentValue = get(key);
90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) {
91 mDictionary.put(key, value);
105 * @param key Whic
111 unset(Key<?> key) argument
134 get(Key<T> key) argument
155 contains(Key<?> key) argument
172 matches(Key<T> key, T value) argument
247 setRequestFieldIfNonNull(Builder requestBuilder, Key<T> key) argument
[all...]
/frameworks/ex/common/java/com/android/common/content/
H A DProjectionMap.java84 public String put(String key, String value) { argument
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxRanker.java33 * Data is represented as sparse key, value pair. And key is a String, value
49 v.key = x.getKey();
129 public boolean setParameter(String key, String value) { argument
133 return mRanker.SetModelParameter(key, value);
H A DLearning_StochasticLinearRanker.java56 keys_1[i] = temp_1.get(i).key;
63 keys_2[i] = temp_2.get(i).key;
80 keys[i] = temp.get(i).key;
92 weights.put(temp.get(i).key, temp.get(i).value);
98 public boolean SetModelParameter(String key, String value) { argument
101 return mLearningSlRanker.setModelParameter(key,value);
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DContiguousFIFOAggregator.java30 * . All tasks that is given to {@link #execute(Object, Runnable)} must correspond to a key. This
31 * key must have been previously declared with {@link #expect(Object, Callback)}.
32 * The task will be scheduled to run when its corresponding key becomes the first expected key
35 * If on {@link #execute(Object, Runnable)} the key is not expected, the task will be executed
41 * the first expected key.</li>
42 * <li>Execute task <b>2</b> for key <b>B</b>. The first expected key is <b>A</b>,
44 * <li>Execute task <b>4</b> for key <b>Z</b>. We store task <b>4</b>. </li>
45 * <li>Execute task <b>1</b> for key <
94 expect(final T key, final Callback<T> callback) argument
126 forget(final T key) argument
165 execute(final T key, final Runnable task) argument
223 onFirstExpectedChanged(final T key) argument
239 contains(final T key) argument
292 onBecomeFirstExpected(final T key) argument
[all...]
H A DUnrefedBitmapCache.java32 * 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);
H A DUnrefedPooledCache.java72 public V get(K key, boolean incrementRefCount) { argument
75 V result = mCache.get(key);
77 result = mNonPooledCache.get(key);
88 public V put(K key, V value) { argument
98 prev = mCache.put(key, value);
100 prev = mNonPooledCache.put(key, value);
193 sb.append("\n\tcache key=");
203 sb.append("\n\tnon-pooled cache key=");
227 protected int sizeOf(K key, V value) { argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSparseArrayObjectAdapter.java8 * with an integer key which determines its order relative to other objects.
55 * Returns the index for the given key in the adapter.
57 * @param key The key to find in the array.
60 public int indexOf(int key) { argument
61 return mItems.indexOfKey(key);
76 * Sets the item for the given key.
78 * @param key The key associated with the item.
79 * @param item The item associated with the key
81 set(int key, Object item) argument
100 clear(int key) argument
123 lookup(int key) argument
[all...]
/frameworks/support/v4/api21/android/support/v4/media/
H A DMediaMetadataCompatApi21.java30 public static Bitmap getBitmap(Object metadataObj, String key) { argument
31 return ((MediaMetadata)metadataObj).getBitmap(key);
34 public static long getLong(Object metadataObj, String key) { argument
35 return ((MediaMetadata)metadataObj).getLong(key);
38 public static Object getRating(Object metadataObj, String key) { argument
39 return ((MediaMetadata)metadataObj).getRating(key);
42 public static CharSequence getText(Object metadataObj, String key) { argument
43 return ((MediaMetadata) metadataObj).getText(key);
51 public static void putBitmap(Object builderObj, String key, Bitmap value) { argument
52 ((MediaMetadata.Builder)builderObj).putBitmap(key, valu
55 putLong(Object builderObj, String key, long value) argument
59 putRating(Object builderObj, String key, Object ratingObj) argument
63 putText(Object builderObj, String key, CharSequence value) argument
67 putString(Object builderObj, String key, String value) argument
[all...]
/frameworks/support/v4/kitkat/android/support/v4/media/session/
H A DMediaSessionCompatApi19.java79 public void onMetadataUpdate(int key, Object newValue) { argument
80 if (key == MediaMetadataEditor.RATING_KEY_BY_USER && newValue instanceof Rating) {
/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/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/av/drm/mediadrm/plugins/clearkey/
H A DJsonWebKey.cpp46 * Parses a JSON Web Key Set string, initializes a KeyMap with key id:key
47 * pairs from the JSON Web Key Set. Both key ids and keys are base64url
48 * encoded. The KeyMap contains base64url decoded key id:key pairs.
61 // all the base64 encoded keys. Each key is also stored separately as
81 ALOGE("Must have both key id and key in the JsonWebKey set.");
86 ALOGE("Failed to decode key id(%s)", encodedKeyId.string());
91 ALOGE("Failed to decode key(
135 String8 key, value; local
154 findValue(const String8 &key, String8* 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/av/media/libmediaplayerservice/
H A DTestPlayerStub.h101 virtual status_t setParameter(int key, const Parcel &request) { argument
102 return mPlayer->setParameter(key, request);
104 virtual status_t getParameter(int key, Parcel *reply) { argument
105 return mPlayer->getParameter(key, reply);

Completed in 3016 milliseconds

1234567891011>>