HomeSort by relevance Sort by last modified time
    Searched refs:key (Results 126 - 150 of 11773) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
CalendarCache.java 36 public synchronized long get(long key) {
37 return values[findIndex(key)];
43 public synchronized void put(long key, long value)
48 int index = findIndex(key);
50 keys[index] = key;
55 private final int findIndex(long key) {
56 int index = hash(key);
59 while (values[index] != EMPTY && keys[index] != key)
62 delta = hash2(key);
92 * Produce a uniformly-distributed hash value from an integer key
    [all...]
CacheBase.java 12 * implements the createInstance() method, and call get() with the key and the data.
16 * @param <K> Cache lookup key type
24 * Retrieves an instance from the cache. Calls createInstance(key, data) if the cache
25 * does not already contain an instance with this key.
26 * Ignores data if the cache already contains an instance with this key.
27 * @param key Cache lookup key for the requested instance
31 public abstract V getInstance(K key, D data);
33 * Creates an instance for the key and data. Must be overridden.
34 * @param key Cache lookup key for the requested instanc
    [all...]
  /external/mesa3d/src/gallium/tests/unit/
u_cache_test.c 46 cache_test_hash(const void *key)
48 return util_hash_crc32(key, sizeof(cache_test_key));
53 cache_test_destroy(void *key, void *value)
55 free(key);
73 cache_test_key *key; local
88 key = malloc(sizeof(cache_test_key));
89 *key = 0xdeadbeef;
90 value_out = (cache_test_value *) util_cache_get(cache, key);
92 free(key);
99 key = malloc(sizeof(cache_test_key))
    [all...]
  /libcore/luni/src/main/java/libcore/util/
BasicLruCache.java 39 * Returns the value for {@code key} if it exists in the cache or can be
44 public final V get(K key) {
45 if (key == null) {
46 throw new NullPointerException("key == null");
51 result = map.get(key);
58 result = create(key);
61 // NOTE: Another thread might have already inserted a value for |key| into the map.
67 map.put(key, result);
76 * Caches {@code value} for {@code key}. The value is moved to the head of
79 * @return the previous value mapped by {@code key}. Although that entry i
98 K key = toEvict.getKey(); local
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
Symbols.java 38 builder.replaceKeyOfLabel(DOUBLE_QUOTE, key("\"", joinMoreKeys(
40 builder.replaceKeyOfLabel(SINGLE_QUOTE, key("'", joinMoreKeys(
60 // Variations of the "currency" key on the 2nd row.
67 public static final ExpectedKey DOLLAR_SIGN = key("$");
68 public static final ExpectedKey CENT_SIGN = key("\u00A2");
69 public static final ExpectedKey POUND_SIGN = key("\u00A3");
70 public static final ExpectedKey YEN_SIGN = key("\u00A5");
71 public static final ExpectedKey EURO_SIGN = key("\u20AC");
72 public static final ExpectedKey PESO_SIGN = key("\u20B1");
73 public static final ExpectedKey CURRENCY_DOLLAR = key("$"
    [all...]
Hebrew.java 87 private static final ExpectedKey HEBREW_ALPHABET_KEY = key(
90 private static final ExpectedKey CURRENCY_NEW_SHEQEL = key("\u20AA",
93 ",", "?", "!", "#", key(")", "("), key("(", ")"), "/", ";",
97 ",", "'", "#", key(")", "("), key("(", ")"), "/", ";",
111 key("'", joinMoreKeys("1", "\"")),
112 key("-", joinMoreKeys("2", "_")),
114 key("\u05E7", moreKey("3")),
116 key("\u05E8", moreKey("4"))
    [all...]
  /external/selinux/libsepol/src/
avtab.c 92 avtab_insert_node(avtab_t * h, int hvalue, avtab_ptr_t prev, avtab_key_t * key,
102 newnode->key = *key;
104 if (key->specified & AVTAB_XPERMS) {
135 int avtab_insert(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum)
140 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD);
145 hvalue = avtab_hash(key, h->mask);
148 if (key->source_type == cur->key.source_type &&
149 key->target_type == cur->key.target_type &
440 avtab_key_t key; local
    [all...]
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
SecretKeySpecTest.java 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that
44 byte[] key = new byte[] { 1, 2, 3, 4, 5 };
50 + "in the case of empty key.");
57 + "in the case of null key.");
62 new SecretKeySpec(key, null);
68 SecretKeySpec ks = new SecretKeySpec(key, algorithm);
69 key[0]++;
70 assertFalse("The change of key specified in the constructor "
72 key[0] == ks.getEncoded()[0]);
76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) metho
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
ClassSection.java 51 @Nullable Map.Entry<? extends ClassKey, Integer> getClassEntryByType(@Nullable TypeKey key);
53 @Nonnull TypeKey getType(@Nonnull ClassKey key);
54 int getAccessFlags(@Nonnull ClassKey key);
55 @Nullable TypeKey getSuperclass(@Nonnull ClassKey key);
56 @Nullable TypeListKey getInterfaces(@Nonnull ClassKey key);
57 @Nullable StringKey getSourceFile(@Nonnull ClassKey key);
58 @Nullable Collection<? extends EncodedValue> getStaticInitializers(@Nonnull ClassKey key);
60 @Nonnull Collection<? extends FieldKey> getSortedStaticFields(@Nonnull ClassKey key);
61 @Nonnull Collection<? extends FieldKey> getSortedInstanceFields(@Nonnull ClassKey key);
62 @Nonnull Collection<? extends FieldKey> getSortedFields(@Nonnull ClassKey key);
    [all...]
  /external/libgdx/backends/gdx-backend-moe/src/com/badlogic/gdx/backends/iosmoe/
IOSPreferences.java 42 public Preferences putBoolean (String key, boolean val) {
43 nsDictionary.put(convertKey(key), NSNumber.numberWithBool(val));
48 public Preferences putInteger (String key, int val) {
49 nsDictionary.put(convertKey(key), NSNumber.numberWithInt(val));
54 public Preferences putLong (String key, long val) {
55 nsDictionary.put(convertKey(key), NSNumber.numberWithLongLong(val));
60 public Preferences putFloat (String key, float val) {
61 nsDictionary.put(convertKey(key), NSNumber.numberWithFloat(val));
66 public Preferences putString (String key, String val) {
67 nsDictionary.put(convertKey(key), NSString.stringWithString(val));
    [all...]
  /external/libgdx/backends/gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/
IOSPreferences.java 43 public Preferences putBoolean (String key, boolean val) {
44 nsDictionary.put(convertKey(key), NSNumber.valueOf(val));
49 public Preferences putInteger (String key, int val) {
50 nsDictionary.put(convertKey(key), NSNumber.valueOf(val));
55 public Preferences putLong (String key, long val) {
56 nsDictionary.put(convertKey(key), NSNumber.valueOf(val));
61 public Preferences putFloat (String key, float val) {
62 nsDictionary.put(convertKey(key), NSNumber.valueOf(val));
67 public Preferences putString (String key, String val) {
68 nsDictionary.put(convertKey(key), new NSString(val));
    [all...]
  /development/apps/Development/src/com/android/development/
ColumnData.java 25 key = k;
28 public String key; field in class:ColumnData
  /external/clang/test/SemaObjC/
format-strings-system.h 8 #define NSLocalizedString(key) GetLocalizedString(key)
  /external/dagger2/util/
mvn-deploy.sh 3 echo "usage $0 <ssl-key> [<param> ...]"
6 key=$1
9 #validate key
10 keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}')
12 echo "Could not find public key with label ${key}"
20 -Dgpg.skip=false -Dgpg.keyname=${key} \
  /external/guava/guava/src/com/google/common/base/
StandardSystemProperty.java 118 private final String key; field in class:StandardSystemProperty
120 private StandardSystemProperty(String key) {
121 this.key = key;
125 * Returns the key used to lookup this system property.
127 public String key() { method in class:StandardSystemProperty
128 return key;
137 return System.getProperty(key);
144 return key() + "=" + value();
  /external/guava/guava/src/com/google/common/collect/
ForwardingConcurrentMap.java 42 public V putIfAbsent(K key, V value) {
43 return delegate().putIfAbsent(key, value);
47 public boolean remove(Object key, Object value) {
48 return delegate().remove(key, value);
52 public V replace(K key, V value) {
53 return delegate().replace(key, value);
57 public boolean replace(K key, V oldValue, V newValue) {
58 return delegate().replace(key, oldValue, newValue);
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
CacheBase.java 13 * implements the createInstance() method, and call get() with the key and the data.
17 * @param <K> Cache lookup key type
26 * Retrieves an instance from the cache. Calls createInstance(key, data) if the cache
27 * does not already contain an instance with this key.
28 * Ignores data if the cache already contains an instance with this key.
29 * @param key Cache lookup key for the requested instance
33 public abstract V getInstance(K key, D data);
35 * Creates an instance for the key and data. Must be overridden.
36 * @param key Cache lookup key for the requested instanc
    [all...]
  /external/libchrome/base/posix/
global_descriptors.h 34 // It maps from an abstract key to a descriptor. If independent modules each
39 typedef uint32_t Key;
41 Descriptor(Key key, int fd);
42 Descriptor(Key key, int fd, base::MemoryMappedFile::Region region);
44 // Globally unique key.
45 Key key; member in struct:base::GlobalDescriptors::Descriptor
53 // Often we want a canonical descriptor for a given Key. In this case, we ad
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/test/
StubResourceBundle.groovy 20 * and allow dynamic adding or changing of map contents. Automatically define default value for key if no entry
21 * exists for the key.
31 void put(String key, String value) {
32 map.put(key, value)
35 Object handleGetObject(String key) {
37 return map[key] ?: "key=$key arg0={0} arg1={1}".toString()
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/scanner/
SimpleKeyTest.java 23 SimpleKey key = new SimpleKey(1, false, 5, 3, 2, null); local
24 assertTrue(key.toString().contains("SimpleKey"));
  /external/wpa_supplicant_8/src/crypto/
aes-encblock.c 18 * @key: Key for AES
23 int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out)
26 ctx = aes_encrypt_init(key, 16);
  /frameworks/av/include/media/
AudioParameter.h 54 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/wilhelm/tools/hashgen/
part8.c 1 if (key <= MAX_HASH_VALUE) {
2 int MPH = hash_to_MPH[key];
  /libcore/luni/src/main/java/libcore/icu/
CollationKeyICU.java 20 * The key.
22 private final android.icu.text.CollationKey key; field in class:CollationKeyICU
24 public CollationKeyICU(String source, android.icu.text.CollationKey key) {
26 this.key = key;
33 otherKey = ((CollationKeyICU) other).key;
39 return key.compareTo(otherKey);
61 * @return hash value of collation key. Hash value is never 0.
66 return key.hashCode();
71 return key.toByteArray()
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
PBEKeyTest.java 43 checkPBEKey key = new checkPBEKey(); local
45 key.getSerVerUID(), //PBEKey.serialVersionUID
50 checkPBEKey key = new checkPBEKey(); local
52 key.getIterationCount();
56 checkPBEKey key = new checkPBEKey(); local
58 key.getPassword();
62 checkPBEKey key = new checkPBEKey(); local
64 key.getSalt();

Completed in 1044 milliseconds

1 2 3 4 56 7 8 91011>>