| /external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
| trie-build.cc | 11 void Trie::build(const char * const *keys, std::size_t num_keys, 14 MARISA_ALPHA_THROW_IF((keys == NULL) && (num_keys != 0), 19 MARISA_ALPHA_THROW_IF(keys[i] == NULL, MARISA_ALPHA_PARAM_ERROR); 22 while (keys[i][length] != '\0') { 30 temp_keys[i].set_str(String(keys[i], length)); 36 void Trie::build(const std::vector<std::string> &keys, 39 temp_keys.resize(keys.size()); 41 MARISA_ALPHA_THROW_IF(keys[i].length() > MARISA_ALPHA_MAX_LENGTH, 43 temp_keys[i].set_str(String(keys[i].c_str(), keys[i].length())) [all...] |
| /external/chromium_org/chrome/browser/extensions/api/web_navigation/ |
| web_navigation_api_helpers.cc | 26 namespace keys = web_navigation_api_constants; 70 dict->SetInteger(keys::kTabIdKey, ExtensionTabUtil::GetTabId(web_contents)); 71 dict->SetString(keys::kUrlKey, validated_url.spec()); 72 dict->SetInteger(keys::kProcessIdKey, render_process_id); 73 dict->SetInteger(keys::kFrameIdKey, GetFrameId(is_main_frame, frame_id)); 74 dict->SetInteger(keys::kParentFrameIdKey, 76 dict->SetDouble(keys::kTimeStampKey, MilliSecondsFromTime(base::Time::Now())); 80 keys::kOnBeforeNavigate, 95 dict->SetInteger(keys::kTabIdKey, ExtensionTabUtil::GetTabId(web_contents)); 96 dict->SetString(keys::kUrlKey, url.spec()) [all...] |
| /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
| KeyStore_Impl2Test.java | 89 private void checkResult(KeyStore keyS) throws KeyStoreException, 94 keyS.load(null, pass); 95 assertNull("getKey must return null", keyS.getKey(alias, pass)); 96 assertNull("getCertificate must return null", keyS 98 assertNull("getCertificateChain must return null", keyS 100 assertEquals("Incorrect result of getCreationDate", keyS 102 assertEquals("Incorrect result of size", keyS.size(), 0); 103 assertFalse("Incorrect result of isCertificateEntry", keyS 105 assertFalse("Incorrect result of isKeyEntry", keyS.isKeyEntry(alias)); 106 assertFalse("Incorrect result of containsAlias", keyS [all...] |
| /external/v8/test/cctest/ |
| test-platform-tls.cc | 15 static Thread::LocalStorageKey keys[kValueCount]; variable 23 CHECK(!Thread::HasThreadLocal(keys[i])); 26 Thread::SetThreadLocal(keys[i], GetValue(i)); 29 CHECK(Thread::HasThreadLocal(keys[i])); 32 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); 33 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); 36 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); 39 CHECK(Thread::HasThreadLocal(keys[i])); 43 Thread::GetThreadLocal(keys[i])); 45 Thread::GetExistingThreadLocal(keys[i])) [all...] |
| /external/chromium/chrome/browser/ |
| accessibility_events.cc | 14 namespace keys = extension_accessibility_api_constants; 36 dict->SetString(keys::kNameKey, name_); 37 dict->SetString(keys::kTypeKey, type()); 46 return keys::kTypeWindow; 55 return keys::kTypeButton; 63 return keys::kTypeLink; 79 return keys::kTypeRadioButton; 85 dict->SetBoolean(keys::kCheckedKey, checked_); 86 dict->SetInteger(keys::kItemIndexKey, item_index_); 87 dict->SetInteger(keys::kItemCountKey, item_count_) [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
| Delegator.py | 16 for key in self.__cache.keys(): 24 keys = self.__cache.keys() 25 keys.sort() 26 print keys
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
| Delegator.py | 16 for key in self.__cache.keys(): 24 keys = self.__cache.keys() 25 keys.sort() 26 print keys
|
| /external/chromium_org/content/common/indexed_db/ |
| indexed_db_key_unittest.cc | 18 std::vector<IndexedDBKey> keys; local 21 keys.push_back(IndexedDBKey()); 24 keys.push_back(IndexedDBKey(WebKit::WebIDBKeyTypeNull)); 28 keys.push_back(IndexedDBKey(number, WebKit::WebIDBKeyTypeNumber)); 32 keys.push_back(IndexedDBKey(date, WebKit::WebIDBKeyTypeDate)); 36 keys.push_back(IndexedDBKey(string)); 46 keys.push_back(IndexedDBKey(array)); 50 ASSERT_EQ(keys.size(), estimates.size()); 51 for (size_t i = 0; i < keys.size(); ++i) { 52 EXPECT_EQ(estimates[i], keys[i].size_estimate()) [all...] |
| /external/marisa-trie/v0_1_5/tests/ |
| trie-test.cc | 34 std::vector<std::string> *keys) 35 : key_ids_(key_ids), keys_(keys) {} 63 std::vector<std::string> keys; local 64 trie.build(keys); 69 keys.push_back("apple"); 70 keys.push_back("and"); 71 keys.push_back("Bad"); 72 keys.push_back("apple"); 73 keys.push_back("app"); 76 trie.build(keys, &key_ids 186 std::vector<std::string> keys; local 427 std::vector<std::string> keys; local 529 std::vector<std::string> keys; local 593 std::vector<std::string> keys; local [all...] |
| tail-test.cc | 19 marisa_alpha::Vector<marisa_alpha::String> keys; local 20 tail.build(keys, NULL, MARISA_ALPHA_BINARY_TAIL); 26 keys.push_back(marisa_alpha::String("")); 28 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); 34 ASSERT(offsets.size() == keys.size() + 1); 39 keys[0] = marisa_alpha::String(binary_key, sizeof(binary_key)); 40 tail.build(keys, &offsets, MARISA_ALPHA_TEXT_TAIL); 46 ASSERT(offsets.size() == keys.size() + 1); 50 tail.build(keys, &offsets, MARISA_ALPHA_BINARY_TAIL); 56 ASSERT(offsets.size() == keys.size() + 1) 144 marisa_alpha::Vector<marisa_alpha::String> keys; local [all...] |
| /external/marisa-trie/tests/ |
| trie-test.cc | 34 std::vector<std::string> *keys) 35 : key_ids_(key_ids), keys_(keys) {} 63 std::vector<std::string> keys; local 64 trie.build(keys); 69 keys.push_back("apple"); 70 keys.push_back("and"); 71 keys.push_back("Bad"); 72 keys.push_back("apple"); 73 keys.push_back("app"); 76 trie.build(keys, &key_ids, 1 | MARISA_WITHOUT_TAIL | MARISA_LABEL_ORDER) 184 std::vector<std::string> keys; local 409 std::vector<std::string> keys; local 511 std::vector<std::string> keys; local 575 std::vector<std::string> keys; local [all...] |
| tail-test.cc | 19 marisa::Vector<marisa::String> keys; local 20 tail.build(keys, NULL, MARISA_BINARY_TAIL); 26 keys.push_back(marisa::String("")); 28 tail.build(keys, &offsets, MARISA_BINARY_TAIL); 34 ASSERT(offsets.size() == keys.size() + 1); 39 keys[0] = marisa::String(binary_key, sizeof(binary_key)); 40 tail.build(keys, &offsets, MARISA_TEXT_TAIL); 46 ASSERT(offsets.size() == keys.size() + 1); 50 tail.build(keys, &offsets, MARISA_BINARY_TAIL); 56 ASSERT(offsets.size() == keys.size() + 1) 140 marisa::Vector<marisa::String> keys; local [all...] |
| /external/chromium_org/chrome/common/extensions/api/extension_action/ |
| page_action_handler.cc | 15 namespace keys = extension_manifest_keys; 30 if (extension->manifest()->HasKey(keys::kPageActions)) { 32 if (!extension->manifest()->GetList(keys::kPageActions, &list_value)) { 51 } else if (extension->manifest()->HasKey(keys::kPageAction)) { 52 if (!extension->manifest()->GetDictionary(keys::kPageAction, 60 if (extension->manifest()->HasKey(keys::kBrowserAction)) { 92 const std::vector<std::string> PageActionHandler::Keys() const { 93 std::vector<std::string> keys; local 94 keys.push_back(keys::kPageAction) [all...] |
| action_info.cc | 16 namespace keys = extension_manifest_keys; 64 if (dict->HasKey(keys::kPageActionIcons) && 65 dict->GetList(keys::kPageActionIcons, &icons)) { 81 if (dict->HasKey(keys::kPageActionId)) { 82 if (!dict->GetString(keys::kPageActionId, &id)) { 93 if (dict->HasKey(keys::kPageActionDefaultIcon)) { 96 if (dict->GetDictionary(keys::kPageActionDefaultIcon, &icons_value)) { 105 } else if (dict->GetString(keys::kPageActionDefaultIcon, &default_icon) && 118 if (dict->HasKey(keys::kPageActionDefaultTitle)) { 119 if (!dict->GetString(keys::kPageActionDefaultTitle [all...] |
| /external/chromium_org/chrome/common/extensions/ |
| manifest_unittest.cc | 22 namespace keys = extension_manifest_keys; 61 // Verifies that extensions can access the correct keys. 64 manifest_value->SetString(keys::kName, "extension"); 65 manifest_value->SetString(keys::kVersion, "1"); 67 manifest_value->SetString(keys::kBackgroundPageLegacy, "bg.html"); 81 EXPECT_TRUE(manifest->GetString(keys::kBackgroundPageLegacy, &value)); 92 &manifest, keys::kManifestVersion, new base::FundamentalValue(2)); 122 value->SetString(keys::kName, "extension"); 123 value->SetString(keys::kVersion, "1"); 138 &manifest, keys::kTheme, new base::DictionaryValue()) [all...] |
| /dalvik/dx/src/com/android/dx/io/instructions/ |
| SparseSwitchPayloadDecodedInstruction.java | 26 private final int[] keys; field in class:SparseSwitchPayloadDecodedInstruction 38 int opcode, int[] keys, int[] targets) { 41 if (keys.length != targets.length) { 42 throw new IllegalArgumentException("keys/targets length mismatch"); 45 this.keys = keys; 55 return keys;
|
| /external/chromium_org/chrome/common/extensions/manifest_handlers/ |
| kiosk_enabled_info.cc | 14 namespace keys = extension_manifest_keys; 28 extension->GetManifestData(keys::kKioskEnabled)); 39 DCHECK(extension->manifest()->HasKey(keys::kKioskEnabled)); 42 if (!extension->manifest()->GetBoolean(keys::kKioskEnabled, &kiosk_enabled)) { 51 extension->SetManifestData(keys::kKioskEnabled, 56 const std::vector<std::string> KioskEnabledHandler::Keys() const { 57 return SingleKey(keys::kKioskEnabled);
|
| /external/chromium_org/third_party/skia/src/core/ |
| SkScalar.cpp | 13 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], 16 SkASSERT(keys != NULL); 20 SkASSERT(keys[i] >= keys[i-1]); 23 while (right < length && searchKey > keys[right]) 32 SkScalar rightKey = keys[right]; 33 SkScalar leftKey = keys[right-1];
|
| /external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
| SparseSwitchPayloadDecodedInstruction.java | 26 private final int[] keys; field in class:SparseSwitchPayloadDecodedInstruction 38 int opcode, int[] keys, int[] targets) { 41 if (keys.length != targets.length) { 42 throw new IllegalArgumentException("keys/targets length mismatch"); 45 this.keys = keys; 55 return keys;
|
| /external/skia/src/core/ |
| SkScalar.cpp | 13 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], 16 SkASSERT(keys != NULL); 20 SkASSERT(keys[i] >= keys[i-1]); 23 while (right < length && searchKey > keys[right]) 32 SkScalar rightKey = keys[right]; 33 SkScalar leftKey = keys[right-1];
|
| /external/wpa_supplicant_8/src/eap_common/ |
| ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 433 struct ikev2_keys *keys, int initiator, 442 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; 456 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, 491 struct ikev2_keys *keys, int initiator, 502 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; 503 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar [all...] |
| /external/chromium/chrome/browser/extensions/ |
| extension_bookmark_helpers.cc | 12 namespace keys = extension_bookmarks_module_constants; 21 dict->SetString(keys::kIdKey, base::Int64ToString(node->id())); 25 dict->SetString(keys::kParentIdKey, base::Int64ToString(parent->id())); 26 dict->SetInteger(keys::kIndexKey, parent->GetIndexOf(node)); 30 dict->SetString(keys::kUrlKey, node->GetURL().spec()); 36 dict->SetDouble(keys::kDateFolderModifiedKey, 40 dict->SetString(keys::kTitleKey, node->GetTitle()); 44 dict->SetDouble(keys::kDateAddedKey, 58 dict->Set(keys::kChildrenKey, children); 90 *error = keys::kNoNodeError [all...] |
| /external/chromium_org/v8/test/webkit/ |
| Object-keys-expected.txt | 24 Test to ensure correct behaviour of Object.keys 29 PASS Object.keys({}) is [] 30 PASS Object.keys({a:null}) is ['a'] 31 PASS Object.keys({a:null, b:null}) is ['a', 'b'] 32 PASS Object.keys({b:null, a:null}) is ['b', 'a'] 33 PASS Object.keys([]) is [] 34 PASS Object.keys([null]) is ['0'] 35 PASS Object.keys([null,null]) is ['0','1'] 36 PASS Object.keys([null,null,,,,null]) is ['0','1','5'] 37 PASS Object.keys({__proto__:{a:null}}) is [ [all...] |
| /external/dropbear/ |
| TODO | 5 - default private dbclient keys 22 - Be able to use OpenSSH keys for the client? or at least have some form of 23 encrypted keys.
|
| /external/qemu/android/utils/ |
| intmap.c | 20 * One array for the integer keys, and the other one 31 int* keys; member in struct:AIntMap 47 map->keys = map->keys0; 57 if (map->keys != map->keys0) 58 AFREE(map->keys); 85 int* keys = map->keys; local 89 if (keys[index] == key) 101 void* keys = map->keys; local 128 int* keys; local 161 int* keys; local [all...] |