HomeSort by relevance Sort by last modified time
    Searched refs:key (Results 351 - 375 of 15685) sorted by null

<<11121314151617181920>>

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
LocaleObjectCache.java 27 public V get(K key) {
31 CacheEntry<K, V> entry = _map.get(key);
36 key = normalizeKey(key);
37 V newVal = createObject(key);
38 if (key == null || newVal == null) {
39 // subclass must return non-null key/value object
43 CacheEntry<K, V> newEntry = new CacheEntry<K, V>(key, newVal, _queue);
47 entry = _map.putIfAbsent(key, newEntry);
67 protected abstract V createObject(K key);
    [all...]
  /frameworks/opt/telephony/src/java/com/google/android/mms/util/
AbstractCache.java 37 public boolean put(K key, V value) {
39 Log.v(TAG, "Trying to put " + key + " into cache.");
51 if (key != null) {
54 mCacheMap.put(key, cacheEntry);
57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
64 public V get(K key) {
66 Log.v(TAG, "Trying to get " + key + " from cache.");
69 if (key != null) {
70 CacheEntry<V> cacheEntry = mCacheMap.get(key);
74 Log.v(TAG, key + " hit " + cacheEntry.hit + " times.")
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
SystemScope.java 45 // Identities hash: key is the identity name
48 // Identities hash: key is the public key
92 public synchronized Identity getIdentity(PublicKey key) {
93 if (key == null) {
96 return (Identity) keys.get(key);
112 PublicKey key = identity.getPublicKey(); local
113 if (key != null && keys.containsKey(key)) {
114 throw new KeyManagementException("key '" + key + "' is already used")
142 PublicKey key = identity.getPublicKey(); local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/mmslib/util/
AbstractCache.java 35 public boolean put(K key, V value) {
37 Log.v(TAG, "Trying to put " + key + " into cache.");
49 if (key != null) {
52 mCacheMap.put(key, cacheEntry);
55 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
62 public V get(K key) {
64 Log.v(TAG, "Trying to get " + key + " from cache.");
67 if (key != null) {
68 CacheEntry<V> cacheEntry = mCacheMap.get(key);
72 Log.v(TAG, key + " hit " + cacheEntry.hit + " times.")
    [all...]
  /system/update_engine/common/
fake_prefs.h 31 // a key in a std::map, suitable for testing. It doesn't allow to set a value on
32 // a key with a different type than the previously set type. This enforces the
33 // type of a given key to be fixed. Also the class checks that the Get*()
34 // methods aren't called on a key set with a different type.
42 bool GetString(const std::string& key, std::string* value) const override;
43 bool SetString(const std::string& key, const std::string& value) override;
44 bool GetInt64(const std::string& key, int64_t* value) const override;
45 bool SetInt64(const std::string& key, const int64_t value) override;
46 bool GetBoolean(const std::string& key, bool* value) const override;
47 bool SetBoolean(const std::string& key, const bool value) override
    [all...]
  /external/chromium-trace/catapult/devil/devil/android/
settings.py 122 System properties are key/value pairs as exposed by adb shell content.
148 key, value = _ParseContentRow(row)
149 if not key:
151 yield key, value
153 def __getitem__(self, key):
156 '--where', "name='%s'" % key],
160 raise KeyError('key=%s not found' % key)
161 if parsed_key != key:
162 raise KeyError('Expected key=%s, but got key=%s' % (key, parsed_key)
    [all...]
  /external/mesa3d/src/gallium/drivers/freedreno/ir3/
ir3_nir.c 67 /* for given shader key, are any steps handled in nir? */
69 ir3_key_lowers_nir(const struct ir3_shader_key *key)
71 return key->fsaturate_s | key->fsaturate_t | key->fsaturate_r |
72 key->vsaturate_s | key->vsaturate_t | key->vsaturate_r |
73 key->ucp_enables | key->color_two_side
    [all...]
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreKeyFactorySpi.java 23 import java.security.Key;
44 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpecClass)
46 if (key == null) {
47 throw new InvalidKeySpecException("key == null");
48 } else if ((!(key instanceof AndroidKeyStorePrivateKey))
49 && (!(key instanceof AndroidKeyStorePublicKey))) {
51 "Unsupported key type: " + key.getClass().getName()
55 // key is an Android Keystore private or public ke
    [all...]
  /external/mesa3d/src/gallium/drivers/freedreno/
freedreno_batch_cache.c 42 * It does this via hashtable, with key that roughly matches the
45 * Batch Cache hashtable key:
47 * To serialize the key, and to avoid dealing with holding a reference to
49 * the whole refcnting thing), the key is variable length and inline's the
62 * in their hashtable key.
77 struct key { struct
88 static struct key *
91 struct key *key = local
92 CALLOC_VARIANT_LENGTH_STRUCT(key, sizeof(key->surf[0]) * num_surfs)
99 const struct key *key = _key; local
178 struct key *key = (struct key *)batch->key; local
371 struct key *key = key_alloc(n); local
    [all...]
  /external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
ResourceBundlePerf.java 65 String key;
67 GetStringJava(String key, String expected) {
68 this.key = key;
72 String s = javaRes.getString(key);
78 String key;
80 GetStringIcu(String key, String expected) {
81 this.key = key;
85 String s = icuRes.getString(key);
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
weakref.py 52 self._pending_removals.append(wr.key)
54 del self.data[wr.key]
69 def __getitem__(self, key):
70 o = self.data[key]()
72 raise KeyError, key
76 def __delitem__(self, key):
79 del self.data[key]
81 def __contains__(self, key):
83 o = self.data[key]()
88 def has_key(self, key):
    [all...]
  /external/brotli/csharp/org/brotli/dec/
Huffman.cs 19 /// <summary>Returns reverse(reverse(key, len) + 1, len).</summary>
21 /// Returns reverse(reverse(key, len) + 1, len).
22 /// <p> reverse(key, len) is the bit-wise reversal of the len least significant bits of key.
24 private static int GetNextKey(int key, int len)
27 while ((key & step) != 0)
31 return (key & (step - 1)) + step;
74 int key;
109 for (key = 0; key < totalSize; key++)
    [all...]
  /external/brotli/java/org/brotli/dec/
Huffman.java 17 * Returns reverse(reverse(key, len) + 1, len).
19 * <p> reverse(key, len) is the bit-wise reversal of the len least significant bits of key.
21 private static int getNextKey(int key, int len) {
23 while ((key & step) != 0) {
26 return (key & (step - 1)) + step;
64 int key; // Reversed prefix code. local
95 for (key = 0; key < totalSize; key++)
    [all...]
  /external/guice/core/test/com/google/inject/internal/
WeakKeySetUtils.java 24 import com.google.inject.Key;
37 public static void assertBlacklisted(Injector injector, Key<?> key) {
38 assertBlacklistState(injector, key, true);
41 public static void assertNotBlacklisted(Injector injector, Key<?> key) {
42 assertBlacklistState(injector, key, false);
45 public static void assertNotInSet(WeakKeySet set, Key<?> key) {
48 if (!set.contains(key)) {
    [all...]
  /external/javassist/src/main/javassist/scopedpool/
SoftValueHashMap.java 34 public Object key; field in class:SoftValueHashMap.SoftValueRef
36 private SoftValueRef(Object key, Object val, ReferenceQueue q) {
38 this.key = key;
41 private static SoftValueRef create(Object key, Object val,
46 return new SoftValueRef(key, val, q);
72 if (ref == (SoftValueRef)hash.get(ref.key)) {
75 hash.remove(ref.key);
139 * Returns the number of key-value mappings in this map. <strong>Note:</strong>
150 * Returns <code>true</code> if this map contains no key-value mappings
    [all...]
  /external/slf4j/slf4j-api/src/main/java/org/slf4j/
MDC.java 71 * An adapter to remove the key when done.
74 private final String key; field in class:MDC.MDCCloseable
76 private MDCCloseable(String key) {
77 this.key = key;
81 MDC.remove(this.key);
109 * <code>key</code> parameter into the current thread's diagnostic context map. The
110 * <code>key</code> parameter cannot be null. The <code>val</code> parameter
116 * @param key non-null key
    [all...]
  /external/vboot_reference/tests/
vb21_host_key_tests.c 5 * Tests for host library vboot2 key functions
36 struct vb2_private_key *key, *k2; local
46 TEST_SUCC(vb2_private_key_read_pem(&key, pemfile), "Read pem - good");
47 TEST_PTR_NEQ(key, NULL, " key_ptr");
48 TEST_PTR_NEQ(key->rsa_private_key, NULL, " rsa_private_key");
49 TEST_PTR_EQ(key->desc, NULL, " desc");
50 vb2_private_key_free(key);
52 TEST_EQ(vb2_private_key_read_pem(&key, "no_such_key"),
53 VB2_ERROR_READ_PEM_FILE_OPEN, "Read pem - no key");
54 TEST_PTR_EQ(key, NULL, " key_ptr")
171 struct vb2_public_key *key, k2; local
    [all...]
  /frameworks/base/core/java/android/util/
LongSparseLongArray.java 91 * Gets the long mapped from the specified key, or <code>0</code>
94 public long get(long key) {
95 return get(key, 0);
99 * Gets the long mapped from the specified key, or the specified value
102 public long get(long key, long valueIfKeyNotFound) {
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
113 * Removes the mapping from the specified key, if there was any.
115 public void delete(long key) {
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key);
133 * Adds a mapping from the specified key to the specified value
252 long key = keyAt(i); local
    [all...]
  /libcore/ojluni/src/main/java/javax/crypto/spec/
DESKeySpec.java 31 * This class specifies a DES key.
40 * The constant which defines the length of a DES key in bytes.
44 private byte[] key; field in class:DESKeySpec
50 * each is both a key and a dual giving 12 keys with duals. The last
117 * <code>key</code> as the key material for the DES key.
119 * <p> The bytes that constitute the DES key are those between
120 * <code>key[0]</code> and <code>key[7]</code> inclusive
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
ArmenianPhonetic.java 58 return joinKeys(key("!", joinMoreKeys("\u055C", "\u00A1")),
59 key("?", joinMoreKeys("\u055E", "\u00BF")),
66 return isPhone ? joinKeys(key("\u055D", SETTINGS_KEY))
67 : joinKeys(key("\u055D", SETTINGS_KEY));
73 final ExpectedKey fullStopKey = key("\u0589", getPunctuationMoreKeys(isPhone));
85 private static final ExpectedKey ARMENIAN_ALPHABET_KEY = key(
123 key("\u0567", moreKey("1")),
125 key("\u0569", moreKey("2")),
127 key("\u0583", moreKey("3")),
129 key("\u0571", moreKey("4"))
    [all...]
Greek.java 49 private static final ExpectedKey GREEK_ALPHABET_KEY = key(
76 private static final ExpectedKey ROW1_1_SEMICOLON = key(";", joinMoreKeys("1", ":"));
77 private static final ExpectedKey ROW1_1_COLON = key(":", joinMoreKeys("1", ";"));
81 private static final ExpectedKey ROW1_2_FINAL_SIGMA = key("\u03C2", moreKey("2"));
85 key(ROW1_1, moreKey("1")),
86 key(ROW1_2, moreKey("2")),
89 key("\u03B5", joinMoreKeys("\u03AD", "3")),
91 key("\u03C1", moreKey("4")),
93 key("\u03C4", moreKey("5")),
98 key("\u03C5", joinMoreKeys("\u03CD", "6", "\u03CB", "\u03B0"))
    [all...]
SymbolsShifted.java 64 Symbols.POUND_SIGN, Symbols.YEN_SIGN, key(Symbols.DOLLAR_SIGN, Symbols.CENT_SIGN),
68 Symbols.POUND_SIGN, Symbols.EURO_SIGN, key(Symbols.DOLLAR_SIGN, Symbols.CENT_SIGN),
83 key("\u2022", joinMoreKeys("\u266A", "\u2665", "\u2660", "\u2666", "\u2663")),
88 key("\u03C0", moreKey("\u03A0")),
94 key("\u00B6", moreKey("\u00A7")),
103 key("^", joinMoreKeys("\u2191", "\u2193", "\u2190", "\u2192")),
107 key("\u00B0", joinMoreKeys("\u2032", "\u2033")),
111 key("=", joinMoreKeys("\u2260", "\u2248", "\u221E")),
124 key("<", joinMoreKeys("\u2039", "\u2264", "\u00AB")),
129 key(">", joinMoreKeys("\u203A", "\u2265", "\u00BB"))
    [all...]
  /system/core/libcutils/
properties.cpp 33 int8_t property_get_bool(const char *key, int8_t default_value) {
34 if (!key) {
41 int len = property_get(key, buf, "");
61 static intmax_t property_get_imax(const char *key, intmax_t lower_bound, intmax_t upper_bound,
63 if (!key) {
71 int len = property_get(key, buf, "");
81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value);
85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value);
89 ALOGV("%s(%s,%" PRIdMAX ") - numeric conversion failed", __FUNCTION__, key,
99 int64_t property_get_int64(const char *key, int64_t default_value)
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLECKeyFactory.java 21 import java.security.Key;
76 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec)
78 if (key == null) {
79 throw new InvalidKeySpecException("key == null");
86 if (!"EC".equals(key.getAlgorithm())) {
87 throw new InvalidKeySpecException("Key must be an EC key");
90 if (key instanceof ECPublicKey && ECPublicKeySpec.class.isAssignableFrom(keySpec)) {
91 ECPublicKey ecKey = (ECPublicKey) key;
    [all...]
  /frameworks/base/core/java/android/os/
BaseBundle.java 497 * Returns true if the given key is contained in the mapping
500 * @param key a String key
501 * @return true if the key is part of the mapping, false otherwise
503 public boolean containsKey(String key) {
505 return mMap.containsKey(key);
509 * Returns the entry with the given key as an object.
511 * @param key a String key
515 public Object get(String key) {
    [all...]

Completed in 1678 milliseconds

<<11121314151617181920>>