Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 885) sorted by relevance

12345678910>>...36

/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c433 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument
442 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data()
456 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data()
491 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() argument
502 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload()
503 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in ikev2_decrypt_payload()
538 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload()
561 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload()
592 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument
602 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_build_encrypted()
[all …]
/external/v8/test/mjsunit/third_party/
Dobject-keys.js34 assertThrows(function () { Object.keys(2) }, TypeError);
35 assertThrows(function () { Object.keys("foo") }, TypeError);
36 assertThrows(function () { Object.keys(null) }, TypeError);
37 assertThrows(function () { Object.keys(undefined) }, TypeError);
39 assertEquals(Object.keys({}), []);
40 assertEquals(Object.keys({a:null}), ['a']);
41 assertEquals(Object.keys({a:null, b:null}), ['a', 'b']);
42 assertEquals(Object.keys({b:null, a:null}), ['b', 'a']);
43 assertEquals(Object.keys([]), []);
44 assertEquals(Object.keys([null]), ['0']);
[all …]
/external/marisa-trie/tests/
Dtrie-test.cc34 std::vector<std::string> *keys) in PredictCallback() argument
35 : key_ids_(key_ids), keys_(keys) {} in PredictCallback()
63 std::vector<std::string> keys; in TestTrie() local
64 trie.build(keys); in TestTrie()
69 keys.push_back("apple"); in TestTrie()
70 keys.push_back("and"); in TestTrie()
71 keys.push_back("Bad"); in TestTrie()
72 keys.push_back("apple"); in TestTrie()
73 keys.push_back("app"); in TestTrie()
76 trie.build(keys, &key_ids, 1 | MARISA_WITHOUT_TAIL | MARISA_LABEL_ORDER); in TestTrie()
[all …]
Dtail-test.cc19 marisa::Vector<marisa::String> keys; in TestBinaryTail() local
20 tail.build(keys, NULL, MARISA_BINARY_TAIL); in TestBinaryTail()
26 keys.push_back(marisa::String("")); in TestBinaryTail()
28 tail.build(keys, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
34 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
39 keys[0] = marisa::String(binary_key, sizeof(binary_key)); in TestBinaryTail()
40 tail.build(keys, &offsets, MARISA_TEXT_TAIL); in TestBinaryTail()
46 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
50 tail.build(keys, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
56 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
[all …]
/external/marisa-trie/v0_1_5/tests/
Dtrie-test.cc34 std::vector<std::string> *keys) in PredictCallback() argument
35 : key_ids_(key_ids), keys_(keys) {} in PredictCallback()
63 std::vector<std::string> keys; in TestTrie() local
64 trie.build(keys); in TestTrie()
69 keys.push_back("apple"); in TestTrie()
70 keys.push_back("and"); in TestTrie()
71 keys.push_back("Bad"); in TestTrie()
72 keys.push_back("apple"); in TestTrie()
73 keys.push_back("app"); in TestTrie()
76 trie.build(keys, &key_ids, in TestTrie()
[all …]
Dtail-test.cc19 marisa_alpha::Vector<marisa_alpha::String> keys; in TestBinaryTail() local
20 tail.build(keys, NULL, MARISA_ALPHA_BINARY_TAIL); in TestBinaryTail()
26 keys.push_back(marisa_alpha::String("")); in TestBinaryTail()
28 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); in TestBinaryTail()
34 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
39 keys[0] = marisa_alpha::String(binary_key, sizeof(binary_key)); in TestBinaryTail()
40 tail.build(keys, &offsets, MARISA_ALPHA_TEXT_TAIL); in TestBinaryTail()
46 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
50 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); in TestBinaryTail()
56 ASSERT(offsets.size() == keys.size() + 1); in TestBinaryTail()
[all …]
/external/chromium/chrome/browser/
Daccessibility_events.cc14 namespace keys = extension_accessibility_api_constants;
36 dict->SetString(keys::kNameKey, name_); in SerializeToDict()
37 dict->SetString(keys::kTypeKey, type()); in SerializeToDict()
46 return keys::kTypeWindow; in type()
55 return keys::kTypeButton; in type()
63 return keys::kTypeLink; in type()
79 return keys::kTypeRadioButton; in type()
85 dict->SetBoolean(keys::kCheckedKey, checked_); in SerializeToDict()
86 dict->SetInteger(keys::kItemIndexKey, item_index_); in SerializeToDict()
87 dict->SetInteger(keys::kItemCountKey, item_count_); in SerializeToDict()
[all …]
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie-build.cc11 void Trie::build(const char * const *keys, std::size_t num_keys, in build() argument
14 MARISA_ALPHA_THROW_IF((keys == NULL) && (num_keys != 0), in build()
19 MARISA_ALPHA_THROW_IF(keys[i] == NULL, MARISA_ALPHA_PARAM_ERROR); in build()
22 while (keys[i][length] != '\0') { in build()
30 temp_keys[i].set_str(String(keys[i], length)); in build()
36 void Trie::build(const std::vector<std::string> &keys, in build() argument
39 temp_keys.resize(keys.size()); in build()
41 MARISA_ALPHA_THROW_IF(keys[i].length() > MARISA_ALPHA_MAX_LENGTH, in build()
43 temp_keys[i].set_str(String(keys[i].c_str(), keys[i].length())); in build()
49 void Trie::build(const std::vector<std::pair<std::string, double> > &keys, in build() argument
[all …]
/external/marisa-trie/lib/marisa/
Dtrie-build.cc11 void Trie::build(const char * const *keys, std::size_t num_keys, in build() argument
14 MARISA_THROW_IF((keys == NULL) && (num_keys != 0), MARISA_PARAM_ERROR); in build()
18 MARISA_THROW_IF(keys[i] == NULL, MARISA_PARAM_ERROR); in build()
21 while (keys[i][length] != '\0') { in build()
28 temp_keys[i].set_str(String(keys[i], length)); in build()
34 void Trie::build(const std::vector<std::string> &keys, in build() argument
37 temp_keys.resize(keys.size()); in build()
39 MARISA_THROW_IF(keys[i].length() > MARISA_MAX_LENGTH, MARISA_SIZE_ERROR); in build()
40 temp_keys[i].set_str(String(keys[i].c_str(), keys[i].length())); in build()
46 void Trie::build(const std::vector<std::pair<std::string, double> > &keys, in build() argument
[all …]
/external/chromium/chrome/browser/extensions/
Dextension_proxy_api_helpers.cc27 namespace keys = extension_proxy_api_constants;
40 std::string(keys::kPACDataUrlPrefix) + pac_script_base64_encoded; in CreateDataURLFromPACScript()
47 if (pac_script_url_base64_encoded.find(keys::kPACDataUrlPrefix) != 0) in CreatePACScriptFromDataURL()
52 pac_script_url_base64_encoded.substr(strlen(keys::kPACDataUrlPrefix)); in CreatePACScriptFromDataURL()
67 proxy_config->GetStringASCII(keys::kProxyConfigMode, &proxy_mode); in GetProxyModeFromExtensionPref()
79 proxy_config->GetDictionary(keys::kProxyConfigPacScript, &pac_dict); in GetPacUrlFromExtensionPref()
85 if (pac_dict->HasKey(keys::kProxyConfigPacScriptUrl) && in GetPacUrlFromExtensionPref()
86 !pac_dict->GetString(keys::kProxyConfigPacScriptUrl, &pac_url16)) { in GetPacUrlFromExtensionPref()
103 proxy_config->GetDictionary(keys::kProxyConfigPacScript, &pac_dict); in GetPacDataFromExtensionPref()
108 if (pac_dict->HasKey(keys::kProxyConfigPacScriptData) && in GetPacDataFromExtensionPref()
[all …]
Dextension_tabs_module.cc47 namespace keys = extension_tabs_module_constants;
92 return is_loading ? keys::kStatusValueLoading : keys::kStatusValueComplete; in GetTabStatusText()
125 result->SetInteger(keys::kIdKey, ExtensionTabUtil::GetTabId(contents)); in CreateTabValue()
126 result->SetInteger(keys::kIndexKey, tab_index); in CreateTabValue()
127 result->SetInteger(keys::kWindowIdKey, in CreateTabValue()
129 result->SetString(keys::kUrlKey, contents->GetURL().spec()); in CreateTabValue()
130 result->SetString(keys::kStatusKey, GetTabStatusText(contents->is_loading())); in CreateTabValue()
131 result->SetBoolean(keys::kSelectedKey, in CreateTabValue()
133 result->SetBoolean(keys::kPinnedKey, in CreateTabValue()
135 result->SetString(keys::kTitleKey, contents->GetTitle()); in CreateTabValue()
[all …]
Dextension_processes_api.cc27 namespace keys = extension_processes_api_constants;
36 result->SetInteger(keys::kIdKey, process_id); in CreateProcessValue()
37 result->SetString(keys::kTypeKey, type); in CreateProcessValue()
38 result->SetDouble(keys::kCpuKey, cpu); in CreateProcessValue()
39 result->SetDouble(keys::kNetworkKey, static_cast<double>(net)); in CreateProcessValue()
40 result->SetDouble(keys::kPrivateMemoryKey, static_cast<double>(pr_mem)); in CreateProcessValue()
41 result->SetDouble(keys::kSharedMemoryKey, static_cast<double>(sh_mem)); in CreateProcessValue()
79 std::string type = keys::kProcessTypeOther; in OnItemsChanged()
83 type = keys::kProcessTypeBrowser; in OnItemsChanged()
86 type = keys::kProcessTypeRenderer; in OnItemsChanged()
[all …]
Dextension_cookies_api.cc26 namespace keys = extension_cookies_api_constants;
61 dict->SetBoolean(keys::kRemovedKey, details->removed); in CookieChanged()
63 keys::kCookieKey, in CookieChanged()
71 cause = keys::kExplicitChangeCause; in CookieChanged()
75 cause = keys::kOverwriteChangeCause; in CookieChanged()
79 cause = keys::kExpiredChangeCause; in CookieChanged()
83 cause = keys::kEvictedChangeCause; in CookieChanged()
87 cause = keys::kExpiredOverwriteChangeCause; in CookieChanged()
93 dict->SetString(keys::kCauseKey, cause); in CookieChanged()
101 DispatchEvent(profile, keys::kOnChanged, json_args, cookie_domain); in CookieChanged()
[all …]
Dextension_webnavigation_api.cc23 namespace keys = extension_webnavigation_api_constants;
64 dict->SetInteger(keys::kTabIdKey, in DispatchOnBeforeNavigate()
66 dict->SetString(keys::kUrlKey, validated_url.spec()); in DispatchOnBeforeNavigate()
67 dict->SetInteger(keys::kFrameIdKey, GetFrameId(is_main_frame, frame_id)); in DispatchOnBeforeNavigate()
68 dict->SetString(keys::kRequestIdKey, in DispatchOnBeforeNavigate()
70 dict->SetDouble(keys::kTimeStampKey, MilliSecondsFromTime(base::Time::Now())); in DispatchOnBeforeNavigate()
75 DispatchEvent(tab_contents->profile(), keys::kOnBeforeNavigate, json_args); in DispatchOnBeforeNavigate()
86 dict->SetInteger(keys::kTabIdKey, in DispatchOnCommitted()
88 dict->SetString(keys::kUrlKey, url.spec()); in DispatchOnCommitted()
89 dict->SetInteger(keys::kFrameIdKey, GetFrameId(is_main_frame, frame_id)); in DispatchOnCommitted()
[all …]
Dextension_cookies_helpers.cc21 namespace keys = extension_cookies_api_constants;
53 result->SetString(keys::kNameKey, cookie.Name()); in CreateCookieValue()
54 result->SetString(keys::kValueKey, cookie.Value()); in CreateCookieValue()
55 result->SetString(keys::kDomainKey, cookie.Domain()); in CreateCookieValue()
56 result->SetBoolean(keys::kHostOnlyKey, in CreateCookieValue()
58 result->SetString(keys::kPathKey, cookie.Path()); in CreateCookieValue()
59 result->SetBoolean(keys::kSecureKey, cookie.IsSecure()); in CreateCookieValue()
60 result->SetBoolean(keys::kHttpOnlyKey, cookie.IsHttpOnly()); in CreateCookieValue()
61 result->SetBoolean(keys::kSessionKey, !cookie.DoesExpire()); in CreateCookieValue()
63 result->SetDouble(keys::kExpirationDateKey, in CreateCookieValue()
[all …]
Dextension_history_api.cc21 namespace keys = extension_history_api_constants;
31 value->SetString(keys::kIdKey, base::Int64ToString(row.id())); in GetHistoryItemDictionary()
32 value->SetString(keys::kUrlKey, row.url().spec()); in GetHistoryItemDictionary()
33 value->SetString(keys::kTitleKey, row.title()); in GetHistoryItemDictionary()
34 value->SetDouble(keys::kLastVisitdKey, in GetHistoryItemDictionary()
36 value->SetInteger(keys::kTypedCountKey, row.typed_count()); in GetHistoryItemDictionary()
37 value->SetInteger(keys::kVisitCountKey, row.visit_count()); in GetHistoryItemDictionary()
48 value->SetString(keys::kIdKey, base::Int64ToString(row.url_id)); in GetVisitInfoDictionary()
49 value->SetString(keys::kVisitId, base::Int64ToString(row.visit_id)); in GetVisitInfoDictionary()
50 value->SetDouble(keys::kVisitTime, MilliSecondsFromTime(row.visit_time)); in GetVisitInfoDictionary()
[all …]
Dexecute_code_in_tab_function.cc26 namespace keys = extension_tabs_module_constants;
42 error_ = keys::kNoCodeOrFileToExecuteError; in RunImpl()
45 bool has_code = script_info->HasKey(keys::kCodeKey); in RunImpl()
46 bool has_file = script_info->HasKey(keys::kFileKey); in RunImpl()
48 error_ = keys::kMoreThanOneValuesError; in RunImpl()
51 error_ = keys::kNoCodeOrFileToExecuteError; in RunImpl()
67 error_ = keys::kNoCurrentWindowError; in RunImpl()
90 if (script_info->HasKey(keys::kAllFramesKey)) { in RunImpl()
91 if (!script_info->GetBoolean(keys::kAllFramesKey, &all_frames_)) in RunImpl()
96 if (script_info->HasKey(keys::kCodeKey)) { in RunImpl()
[all …]
/external/qemu/android/utils/
Dintmap.c31 int* keys; member
47 map->keys = map->keys0; in aintMap_new()
57 if (map->keys != map->keys0) in aintMap_free()
58 AFREE(map->keys); in aintMap_free()
85 int* keys = map->keys; in aintMap_getWithDefault() local
89 if (keys[index] == key) in aintMap_getWithDefault()
101 void* keys = map->keys; in aintMap_grow() local
104 if (keys == map->keys0) in aintMap_grow()
105 keys = NULL; in aintMap_grow()
115 AARRAY_RENEW(keys, newCapacity); in aintMap_grow()
[all …]
/external/marisa-trie/v0_1_5/tools/
Dmarisa_alpha-benchmark.cc129 void read_keys(std::istream *input, std::vector<Key> *keys) { in read_keys() argument
146 keys->push_back(key); in read_keys()
151 std::vector<Key> *keys) { in read_keys() argument
153 read_keys(&std::cin, keys); in read_keys()
162 read_keys(&input_file, keys); in read_keys()
164 std::cout << "#keys: " << keys->size() << std::endl; in read_keys()
166 for (std::size_t i = 0; i < keys->size(); ++i) { in read_keys()
167 total_length += (*keys)[i].first.length(); in read_keys()
173 void benchmark_build(const std::vector<Key> &keys, int num_tries, in benchmark_build() argument
176 trie->build(keys, key_ids, num_tries in benchmark_build()
[all …]
/external/marisa-trie/tools/
Dmarisa-benchmark.cc129 void read_keys(std::istream *input, std::vector<Key> *keys) { in read_keys() argument
146 keys->push_back(key); in read_keys()
151 std::vector<Key> *keys) { in read_keys() argument
153 read_keys(&std::cin, keys); in read_keys()
162 read_keys(&input_file, keys); in read_keys()
164 std::cout << "#keys: " << keys->size() << std::endl; in read_keys()
166 for (std::size_t i = 0; i < keys->size(); ++i) { in read_keys()
167 total_length += (*keys)[i].first.length(); in read_keys()
173 void benchmark_build(const std::vector<Key> &keys, int num_tries, in benchmark_build() argument
176 trie->build(keys, key_ids, num_tries in benchmark_build()
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
DDummyMap.java14 HashSet<K> keys = new HashSet<K>(); field in DummyMap
25 public void addKeys(K[] keys) { in addKeys() argument
26 Collections.addAll(this.keys, keys); in addKeys()
31 return keys.size(); in size()
35 return keys.isEmpty(); in isEmpty()
39 return keys.contains(key); in containsKey()
47 return keys.contains(key) ? value : null; in get()
52 keys.add(key); in put()
58 keys.remove(key); in remove()
65 this.keys.add(k); in putAll()
[all …]
/external/v8/test/cctest/
Dtest-platform-tls.cc15 static Thread::LocalStorageKey keys[kValueCount]; variable
23 CHECK(!Thread::HasThreadLocal(keys[i])); in DoTest()
26 Thread::SetThreadLocal(keys[i], GetValue(i)); in DoTest()
29 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest()
32 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); in DoTest()
33 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); in DoTest()
36 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); in DoTest()
39 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest()
43 Thread::GetThreadLocal(keys[i])); in DoTest()
45 Thread::GetExistingThreadLocal(keys[i])); in DoTest()
[all …]
/external/webkit/Tools/TestResultServer/model/
Ddatastorefile.py68 def delete_data(self, keys=None): argument
69 if not keys:
70 keys = self.data_keys
72 for key in keys:
94 keys = self.new_data_keys
98 if keys:
99 key = keys[0]
112 if keys:
113 self.delete_data(keys)
118 if keys:
[all …]
/external/dropbear/
Dpacket.c102 blocksize = ses.keys->recv_algo_crypt->blocksize; in read_packet()
159 blocksize = ses.keys->recv_algo_crypt->blocksize; in read_packet_init()
160 macsize = ses.keys->recv_algo_mac->hashsize; in read_packet_init()
195 if (ses.keys->recv_algo_crypt->cipherdesc == NULL) { in read_packet_init()
205 &ses.keys->recv_symmetric_struct) != CRYPT_OK) { in read_packet_init()
235 blocksize = ses.keys->recv_algo_crypt->blocksize; in decrypt_packet()
236 macsize = ses.keys->recv_algo_mac->hashsize; in decrypt_packet()
248 if (ses.keys->recv_algo_crypt->cipherdesc == NULL) { in decrypt_packet()
259 &ses.keys->recv_symmetric_struct) != CRYPT_OK) { in decrypt_packet()
291 if (ses.keys->recv_algo_comp == DROPBEAR_COMP_ZLIB) { in decrypt_packet()
[all …]
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/
DSparseSwitchDataPseudoInstruction.java42 private int[] keys; field in SparseSwitchDataPseudoInstruction
50 public SparseSwitchDataPseudoInstruction(int[] keys, int[] targets) { in SparseSwitchDataPseudoInstruction() argument
53 if (keys.length != targets.length) { in SparseSwitchDataPseudoInstruction()
66 this.keys = keys; in SparseSwitchDataPseudoInstruction()
83 keys = new int[targetCount]; in SparseSwitchDataPseudoInstruction()
87 keys[i] = NumberUtils.decodeInt(buffer, bufferIndex + 4 + i*4); in SparseSwitchDataPseudoInstruction()
100 int key = keys[0]; in writeInstruction()
104 for (int i = 1; i < keys.length; i++) { in writeInstruction()
105 key = keys[i]; in writeInstruction()
106 assert key >= keys[i - 1]; in writeInstruction() local
[all …]

12345678910>>...36