/external/chromium_org/third_party/tlslite/tlslite/utils/ |
H A D | pycrypto_rc4.py | 12 def new(key): 13 return PyCrypto_RC4(key) 17 def __init__(self, key): 18 RC4.__init__(self, key, "pycrypto") 19 key = bytes(key) 20 self.context = Crypto.Cipher.ARC4.new(key)
|
/external/smack/src/org/jivesoftware/smackx/workgroup/settings/ |
H A D | ChatSetting.java | 23 private String key;
field in class:ChatSetting 27 public ChatSetting(String key, String value, int type){
argument 28 setKey(key);
34 return key;
37 public void setKey(String key) {
argument 38 this.key = key;
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | blob_reference_store.py | 17 def _Query(self, namespace, key): 18 return _Model.gql('WHERE key_ = :1', self._MakeKey(namespace, key)).get() 20 def _MakeKey(self, namespace, key): 21 return '.'.join((namespace, key)) 23 def Set(self, namespace, key, value): 24 _Model(key_=self._MakeKey(namespace, key), value=value).put() 26 def Get(self, namespace, key): 27 result = self._Query(namespace, key) 32 def Delete(self, namespace, key): 33 result = self._Query(namespace, key) [all...] |
/external/chromium_org/remoting/webapp/ |
H A D | stats_accumulator.js | 45 for (var key in newValues) { 46 this.getValueList(key).push(newValues[key]); 75 * Calculates the mean of the values for a given key. 77 * @param {string} key 78 * @return {number} the mean of the values for that key 80 remoting.StatsAccumulator.prototype.calcMean = function(key) { 95 return this.map(key, calcMean); 99 * Applies a given map to the list of values for a given key. 101 * @param {string} key [all...] |
/external/lldb/examples/summaries/cocoa/ |
H A D | cache.py | 17 def look_for_key(self,key): 18 if key in self.data: 22 def add_item(self,key,value,ok_to_replace=True): 23 if not(ok_to_replace) and self.look_for_key(key): 25 self.data[key] = value 28 def get_value(self,key,default=None): 29 if self.look_for_key(key): 30 self.statistics.metric_hit('hit',key) 31 return self.data[key] 33 self.statistics.metric_hit('miss',key) [all...] |
/external/chromium_org/ash/audio/ |
H A D | sounds.cc | 16 bool PlaySystemSoundAlways(media::SoundsManager::SoundKey key) { argument 17 return SoundsManager::Get()->Play(key); 20 bool PlaySystemSoundIfSpokenFeedback(SoundsManager::SoundKey key) { argument 23 return SoundsManager::Get()->Play(key); 28 return SoundsManager::Get()->Play(key);
|
/external/chromium_org/base/ |
H A D | supports_user_data_unittest.cc | 17 UsesItself(SupportsUserData* supports_user_data, const void* key) argument 19 key_(key) { 32 char key = 0; local 33 supports_user_data.SetUserData(&key, 34 new UsesItself(&supports_user_data, &key));
|
/external/chromium_org/base/test/ |
H A D | values_test_util.cc | 17 const std::string& key) { 19 EXPECT_TRUE(value.GetBoolean(key, &boolean_value)) << key; 20 EXPECT_EQ(expected_value, boolean_value) << key; 25 const std::string& key) { 27 EXPECT_TRUE(value.GetDictionary(key, &dict_value)) << key; 28 EXPECT_TRUE(Value::Equals(dict_value, &expected_value)) << key; 33 const std::string& key) { 35 EXPECT_TRUE(value.GetInteger(key, 15 ExpectDictBooleanValue(bool expected_value, const DictionaryValue& value, const std::string& key) argument 23 ExpectDictDictionaryValue(const DictionaryValue& expected_value, const DictionaryValue& value, const std::string& key) argument 31 ExpectDictIntegerValue(int expected_value, const DictionaryValue& value, const std::string& key) argument 39 ExpectDictListValue(const ListValue& expected_value, const DictionaryValue& value, const std::string& key) argument 47 ExpectDictStringValue(const std::string& expected_value, const DictionaryValue& value, const std::string& key) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_cache.h | 62 util_cache_create(uint32_t (*hash)(const void *key), 64 void (*destroy)(void *key, void *value), 69 void *key, 74 const void *key); 84 const void *key);
|
/external/chromium_org/third_party/mesa/src/src/glx/ |
H A D | glxhash.h | 10 extern int __glxHashLookup(__glxHashTable * t, unsigned long key, 12 extern int __glxHashInsert(__glxHashTable * t, unsigned long key, 14 extern int __glxHashDelete(__glxHashTable * t, unsigned long key); 15 extern int __glxHashFirst(__glxHashTable * t, unsigned long *key, 17 extern int __glxHashNext(__glxHashTable * t, unsigned long *key,
|
/external/chromium_org/v8/src/ |
H A D | weak_collection.js | 27 function WeakMapGet(key) { 32 if (!(IS_SPEC_OBJECT(key) || IS_SYMBOL(key))) { 33 throw %MakeTypeError('invalid_weakmap_key', [this, key]); 35 return %WeakCollectionGet(this, key); 39 function WeakMapSet(key, value) { 44 if (!(IS_SPEC_OBJECT(key) || IS_SYMBOL(key))) { 45 throw %MakeTypeError('invalid_weakmap_key', [this, key]); 47 return %WeakCollectionSet(this, key, valu [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_cache.h | 62 util_cache_create(uint32_t (*hash)(const void *key), 64 void (*destroy)(void *key, void *value), 69 void *key, 74 const void *key); 84 const void *key);
|
/external/mesa3d/src/glx/ |
H A D | glxhash.h | 10 extern int __glxHashLookup(__glxHashTable * t, unsigned long key, 12 extern int __glxHashInsert(__glxHashTable * t, unsigned long key, 14 extern int __glxHashDelete(__glxHashTable * t, unsigned long key); 15 extern int __glxHashFirst(__glxHashTable * t, unsigned long *key, 17 extern int __glxHashNext(__glxHashTable * t, unsigned long *key,
|
/external/smack/src/org/jivesoftware/smack/util/collections/ |
H A D | AbstractKeyValue.java | 33 * The key 35 protected K key; field in class:AbstractKeyValue 42 * Constructs a new pair with the specified key and given value. 44 * @param key the key for the entry, may be null 47 protected AbstractKeyValue(K key, V value) { argument 49 this.key = key; 54 * Gets the key from the pair. 56 * @return the key [all...] |
/external/smali/util/src/main/java/ds/tree/ |
H A D | RadixTree.java | 46 * Insert a new string key and its value to the tree. 48 * @param key 49 * The string key of the object 52 * key. 55 public void insert(String key, T value); argument 58 * Delete a key and its associated value from the tree. 59 * @param key The key of the node that need to be deleted 62 public boolean delete(String key); argument 65 * Find a value based on its corresponding key 70 find(String key) argument 79 replace(String key, final T value) argument 87 contains(String key) argument [all...] |
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
H A D | ConcurrentHashMap.java | 56 public V putIfAbsent(K key, V value) { argument 57 if (!containsKey(key)) { 58 return put(key, value); 60 return get(key); 64 public boolean remove(Object key, Object value) { argument 65 if (containsKey(key) && get(key).equals(value)) { 66 remove(key); 73 public boolean replace(K key, V oldValue, V newValue) { argument 76 } else if (containsKey(key) 84 replace(K key, V value) argument 94 containsKey(Object key) argument 101 get(Object key) argument 108 put(K key, V value) argument 122 remove(Object key) argument [all...] |
/external/chromium_org/third_party/libaddressinput/src/java/test/com/android/i18n/addressinput/ |
H A D | LookupKeyTest.java | 36 // Data key for Da-an District, Taipei Taiwan 39 // Example key for TW's address (local script) 42 // Example key for TW's address (latin script) 49 LookupKey key = new LookupKey.Builder(KeyType.DATA).build(); 50 assertEquals(ROOT_KEY, key.toString()); 52 LookupKey key2 = new LookupKey.Builder(key.toString()).build(); 57 LookupKey key = new LookupKey.Builder(US_KEY).build(); 58 assertEquals(US_KEY, key.toString()); 65 LookupKey key = new LookupKey.Builder(KeyType.EXAMPLES).build(); 66 assertEquals(ROOT_EXAMPLE_KEY, key [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
H A D | OutputProperties.java | 43 * its "defaults"; this second property list is searched if the property key 114 * @param key the key to be placed into the property list. 115 * @param value the value corresponding to <tt>key</tt>. 118 public void setProperty(QName key, String value) argument 120 setProperty(key.toNamespacedString(), value); 126 * @param key the key to be placed into the property list. 127 * @param value the value corresponding to <tt>key</tt>. 130 public void setProperty(String key, Strin argument 153 getProperty(QName key) argument 167 getProperty(String key) argument 182 setBooleanProperty(QName key, boolean value) argument 194 setBooleanProperty(String key, boolean value) argument 210 getBooleanProperty(QName key) argument 226 getBooleanProperty(String key) argument 238 setIntProperty(QName key, int value) argument 250 setIntProperty(String key, int value) argument 266 getIntProperty(QName key) argument 282 getIntProperty(String key) argument 296 setQNameProperty(QName key, QName value) argument 339 setQNameProperty(String key, QName value) argument 354 getQNameProperty(QName key) argument 369 getQNameProperty(String key) argument 385 getQNameProperty(String key, Properties props) argument 404 setQNameProperties(QName key, Vector v) argument 417 setQNameProperties(String key, Vector v) argument 449 getQNameProperties(QName key) argument 465 getQNameProperties(String key) argument 482 getQNameProperties(String key, Properties props) argument 646 isLegalPropertyKey(String key) argument [all...] |
/external/chromium_org/chrome/browser/chromeos/login/screens/ |
H A D | screen_context.cc | 18 bool ScreenContext::SetBoolean(const KeyType& key, bool value) { argument 19 return Set(key, new base::FundamentalValue(value)); 22 bool ScreenContext::SetInteger(const KeyType& key, int value) { argument 23 return Set(key, new base::FundamentalValue(value)); 26 bool ScreenContext::SetDouble(const KeyType& key, double value) { argument 27 return Set(key, new base::FundamentalValue(value)); 30 bool ScreenContext::SetString(const KeyType& key, const std::string& value) { argument 31 return Set(key, new base::StringValue(value)); 34 bool ScreenContext::SetString(const KeyType& key, const base::string16& value) { argument 35 return Set(key, ne 38 GetBoolean(const KeyType& key) argument 42 GetBoolean(const KeyType& key, bool default_value) argument 46 GetInteger(const KeyType& key) argument 50 GetInteger(const KeyType& key, int default_value) argument 54 GetDouble(const KeyType& key) argument 58 GetDouble(const KeyType& key, double default_value) argument 62 GetString(const KeyType& key) argument 66 GetString(const KeyType& key, const std::string& default_value) argument 71 GetString16(const KeyType& key) argument 75 GetString16(const KeyType& key, const base::string16& default_value) argument 115 Set(const KeyType& key, base::Value* value) argument [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/evp/ |
H A D | e_rc4_hmac_md5.c | 80 void rc4_md5_enc (RC4_KEY *key, const void *in0, void *out, 89 EVP_RC4_HMAC_MD5 *key = data(ctx); local 91 RC4_set_key(&key->ks,EVP_CIPHER_CTX_key_length(ctx), 94 MD5_Init(&key->head); /* handy when benchmarking */ 95 key->tail = key->head; 96 key->md = key->head; 98 key->payload_length = NO_PAYLOAD_LENGTH; 119 EVP_RC4_HMAC_MD5 *key local 222 EVP_RC4_HMAC_MD5 *key = data(ctx); local [all...] |
/external/openssl/crypto/evp/ |
H A D | e_rc4_hmac_md5.c | 80 void rc4_md5_enc (RC4_KEY *key, const void *in0, void *out, 89 EVP_RC4_HMAC_MD5 *key = data(ctx); local 91 RC4_set_key(&key->ks,EVP_CIPHER_CTX_key_length(ctx), 94 MD5_Init(&key->head); /* handy when benchmarking */ 95 key->tail = key->head; 96 key->md = key->head; 98 key->payload_length = NO_PAYLOAD_LENGTH; 119 EVP_RC4_HMAC_MD5 *key local 222 EVP_RC4_HMAC_MD5 *key = data(ctx); local [all...] |
/external/chromium_org/third_party/bintrees/bintrees/ |
H A D | bintree.py | 18 __slots__ = ['key', 'value', 'left', 'right'] 20 def __init__(self, key, value): 21 self.key = key 26 def __getitem__(self, key): 27 """ x.__getitem__(key) <==> x[key], where key is 0 (left) or 1 (right) """ 28 return self.left if key == 0 else self.right 30 def __setitem__(self, key, valu [all...] |
/external/chromium_org/base/prefs/ |
H A D | overlay_user_pref_store.cc | 16 bool OverlayUserPrefStore::IsSetInOverlay(const std::string& key) const { 17 return overlay_.GetValue(key, NULL); 36 bool OverlayUserPrefStore::GetValue(const std::string& key, argument 38 // If the |key| shall NOT be stored in the overlay store, there must not 40 DCHECK(ShallBeStoredInOverlay(key) || !overlay_.GetValue(key, NULL)); 42 if (overlay_.GetValue(key, result)) 44 return underlay_->GetValue(GetUnderlayKey(key), result); 47 bool OverlayUserPrefStore::GetMutableValue(const std::string& key, argument 49 if (!ShallBeStoredInOverlay(key)) 65 SetValue(const std::string& key, base::Value* value) argument 76 SetValueSilently(const std::string& key, base::Value* value) argument 86 RemoveValue(const std::string& key) argument 122 ReportValueChanged(const std::string& key) argument 126 OnPrefValueChanged(const std::string& key) argument 136 RegisterOverlayPref(const std::string& key) argument [all...] |
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/ |
H A D | InMemorySharedPreferences.java | 40 public String getString(String key, String defValue) { argument 42 if (mData.containsKey(key)) { 43 return (String) mData.get(key); 51 public Set<String> getStringSet(String key, Set<String> defValues) { argument 53 if (mData.containsKey(key)) { 54 return Collections.unmodifiableSet((Set<String>) mData.get(key)); 61 public int getInt(String key, int defValue) { argument 63 if (mData.containsKey(key)) { 64 return (Integer) mData.get(key); 71 public long getLong(String key, lon argument 81 getFloat(String key, float defValue) argument 91 getBoolean(String key, boolean defValue) argument 101 contains(String key) argument 133 putString(String key, String value) argument 142 putStringSet(String key, Set<String> values) argument 151 putInt(String key, int value) argument 160 putLong(String key, long value) argument 169 putFloat(String key, float value) argument 178 putBoolean(String key, boolean value) argument 187 remove(String key) argument [all...] |
/external/chromium_org/base/win/ |
H A D | registry_unittest.cc | 32 // Create a temporary key. 33 RegKey key(HKEY_CURRENT_USER, L"", KEY_ALL_ACCESS); 34 key.DeleteKey(kRootKey); 35 ASSERT_NE(ERROR_SUCCESS, key.Open(HKEY_CURRENT_USER, kRootKey, KEY_READ)); 36 ASSERT_EQ(ERROR_SUCCESS, key.Create(HKEY_CURRENT_USER, kRootKey, KEY_READ)); 43 // Clean up the temporary key. 44 RegKey key(HKEY_CURRENT_USER, L"", KEY_SET_VALUE); 45 ASSERT_EQ(ERROR_SUCCESS, key.DeleteKey(kRootKey)); 46 ASSERT_NE(ERROR_SUCCESS, key.Open(HKEY_CURRENT_USER, kRootKey, KEY_READ)); 69 RegKey key; local 130 RegKey key; local 155 RegKey key; local 186 RegKey key; local 284 RegKey key; local 332 RegKey key; local [all...] |