Searched refs:keys (Results 1 - 25 of 1413) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-1150.js28 // Test that Object.keys is working correctly on the global object.
32 var keys = Object.keys(global);
33 assertTrue(keys.indexOf("a") > 0);
H A Dregress-3294.js6 var keys = Object.keys(e);
8 assertEquals(keys, Object.keys(e));
H A Dregress-crbug-148376.js35 var keys = Object.keys(this);
H A Dregress-crbug-158185.js29 Object.keys(JSON.parse('{"0023456": 1}'))[0]);
31 Object.keys(JSON.parse('{"1234567890123": 1}'))[0]);
33 Object.keys(JSON.parse('{"123456789ABCD": 1}'))[0]);
35 Object.keys(JSON.parse('{"12A": 1}'))[0]);
/external/chromium_org/v8/test/mjsunit/third_party/
H A Dobject-keys.js32 // Based on LayoutTests/fast/js/Object-keys.html
34 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([]), []);
[all...]
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
H A DSparseSwitchPayloadDecodedInstruction.java26 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;
37 SparseSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] keys, int[] targets) argument
/external/chromium_org/chrome/browser/extensions/
H A Dwindow_controller.cc30 namespace keys = tabs_constants;
35 result->SetInteger(keys::kIdKey, GetWindowId());
36 result->SetString(keys::kWindowTypeKey, GetWindowTypeText());
37 result->SetBoolean(keys::kFocusedKey, window()->IsActive());
38 result->SetBoolean(keys::kIncognitoKey, profile_->IsOffTheRecord());
39 result->SetBoolean(keys::kAlwaysOnTopKey, window()->IsAlwaysOnTop());
43 window_state = keys::kShowStateValueMinimized;
45 window_state = keys::kShowStateValueFullscreen;
47 window_state = keys::kShowStateValueMaximized;
49 window_state = keys
[all...]
/external/libcxx/test/localization/locale.categories/
H A D__scan_keyword.pass.cpp49 std::string keys[] = {"a", "abb"}; local
52 keys, keys+sizeof(keys)/sizeof(keys[0]),
54 assert(k - keys == 0);
61 std::string keys[] = {"a", "abb"}; local
64 keys, keys+sizeof(keys)/sizeo
73 std::string keys[] = {"a", "abb"}; local
85 std::string keys[] = {"Mon", "Monday", "Tue", "Tuesday"}; local
97 std::string keys[] = {"Mon", "Monday", "Tue", "Tuesday"}; local
109 std::string keys[] = {"Mon", "Monday", "Tue", "Tuesday"}; local
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/asm/tree/
H A DLookupSwitchInsnNode.java54 * The values of the keys. This list is a list of {@link Integer} objects.
56 public List keys; field in class:LookupSwitchInsnNode
68 * @param keys the values of the keys.
70 * the beginning of the handler block for the <tt>keys[i]</tt> key.
74 final int[] keys,
79 this.keys = new ArrayList(keys == null ? 0 : keys.length);
81 if (keys !
72 LookupSwitchInsnNode( final LabelNode dflt, final int[] keys, final LabelNode[] labels) argument
[all...]
/external/chromium_org/chrome/common/extensions/api/spellcheck/
H A Dspellcheck_handler.cc12 namespace keys = manifest_keys;
29 if (!extension->manifest()->GetDictionary(keys::kSpellcheck,
36 if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryLanguage) ||
37 !spellcheck_value->GetString(keys::kSpellcheckDictionaryLanguage,
42 if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryLocale) ||
43 !spellcheck_value->GetString(keys::kSpellcheckDictionaryLocale,
48 if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryFormat) ||
49 !spellcheck_value->GetString(keys::kSpellcheckDictionaryFormat,
54 if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryPath) ||
55 !spellcheck_value->GetString(keys
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/
H A DFixedKeySet.java24 public FixedKeySet(String[] keys) { argument
25 size = keys.length;
26 set = Collections.unmodifiableSet(new HashSet(Arrays.asList(keys)));
/external/chromium_org/third_party/skia/src/core/
H A DSkScalar.cpp13 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], argument
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/skia/src/core/
H A DSkScalar.cpp13 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], argument
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/hostapd/src/eap_common/
H A Dikev2_common.c36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */
368 struct ikev2_keys *keys, int initiator,
377 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr;
391 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len,
426 struct ikev2_keys *keys, int initiator,
437 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er;
438 const u8 *SK_a = initiator ? keys->SK_ai : keys
366 ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg, const u8 *ID, size_t ID_len, u8 ID_type, struct ikev2_keys *keys, int initiator, const u8 *shared_secret, size_t shared_secret_len, const u8 *nonce, size_t nonce_len, const u8 *key_pad, size_t key_pad_len, u8 *auth_data) argument
425 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) argument
527 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) argument
605 ikev2_keys_set(struct ikev2_keys *keys) argument
612 ikev2_free_keys(struct ikev2_keys *keys) argument
626 ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf, const struct ikev2_integ_alg *integ, const struct ikev2_encr_alg *encr, const u8 *skeyseed, const u8 *data, size_t data_len, struct ikev2_keys *keys) argument
[all...]
/external/wpa_supplicant_8/src/eap_common/
H A Dikev2_common.c36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */
368 struct ikev2_keys *keys, int initiator,
377 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr;
391 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len,
426 struct ikev2_keys *keys, int initiator,
437 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er;
438 const u8 *SK_a = initiator ? keys->SK_ai : keys
366 ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg, const u8 *ID, size_t ID_len, u8 ID_type, struct ikev2_keys *keys, int initiator, const u8 *shared_secret, size_t shared_secret_len, const u8 *nonce, size_t nonce_len, const u8 *key_pad, size_t key_pad_len, u8 *auth_data) argument
425 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) argument
527 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) argument
605 ikev2_keys_set(struct ikev2_keys *keys) argument
612 ikev2_free_keys(struct ikev2_keys *keys) argument
626 ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf, const struct ikev2_integ_alg *integ, const struct ikev2_encr_alg *encr, const u8 *skeyseed, const u8 *data, size_t data_len, struct ikev2_keys *keys) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Dikev2_common.c36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */
368 struct ikev2_keys *keys, int initiator,
377 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr;
391 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len,
426 struct ikev2_keys *keys, int initiator,
437 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er;
438 const u8 *SK_a = initiator ? keys->SK_ai : keys
366 ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg, const u8 *ID, size_t ID_len, u8 ID_type, struct ikev2_keys *keys, int initiator, const u8 *shared_secret, size_t shared_secret_len, const u8 *nonce, size_t nonce_len, const u8 *key_pad, size_t key_pad_len, u8 *auth_data) argument
425 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) argument
527 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) argument
605 ikev2_keys_set(struct ikev2_keys *keys) argument
612 ikev2_free_keys(struct ikev2_keys *keys) argument
626 ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf, const struct ikev2_integ_alg *integ, const struct ikev2_encr_alg *encr, const u8 *skeyseed, const u8 *data, size_t data_len, struct ikev2_keys *keys) argument
[all...]
/external/qemu/android/utils/
H A Dintmap.c20 * 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...]
/external/chromium_org/content/common/indexed_db/
H A Dindexed_db_key_unittest.cc18 std::vector<IndexedDBKey> keys; local
21 keys.push_back(IndexedDBKey());
24 keys.push_back(IndexedDBKey(blink::WebIDBKeyTypeNull));
28 keys.push_back(IndexedDBKey(number, blink::WebIDBKeyTypeNumber));
32 keys.push_back(IndexedDBKey(date, blink::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[
[all...]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
H A DDummyMap.java14 HashSet<K> keys = new HashSet<K>(); field in class:DummyMap
25 public void addKeys(K[] keys) { argument
26 Collections.addAll(this.keys, keys);
31 return keys.size();
35 return keys.isEmpty();
39 return keys.contains(key);
47 return keys.contains(key) ? value : null;
52 keys.add(key);
58 keys
[all...]
/external/chromium_org/chrome/common/extensions/api/speech/
H A Dtts_engine_manifest_handler.cc18 namespace keys = manifest_keys;
40 extension->GetManifestData(keys::kTtsVoices));
54 if (!extension->manifest()->GetDictionary(keys::kTtsEngine, &tts_dict)) {
59 if (!tts_dict->HasKey(keys::kTtsVoices))
63 if (!tts_dict->GetList(keys::kTtsVoices, &tts_voices)) {
76 if (one_tts_voice->HasKey(keys::kTtsVoicesVoiceName)) {
78 keys::kTtsVoicesVoiceName, &voice_data.voice_name)) {
83 if (one_tts_voice->HasKey(keys::kTtsVoicesLang)) {
85 keys::kTtsVoicesLang, &voice_data.lang) ||
91 if (one_tts_voice->HasKey(keys
[all...]
/external/chromium_org/chrome/common/extensions/manifest_tests/
H A Dextension_manifests_storage_unittest.cc10 namespace keys = extensions::manifest_keys;
15 base_manifest.SetString(keys::kName, "test");
16 base_manifest.SetString(keys::kVersion, "0.1");
19 base_manifest.Set(keys::kPermissions, permissions);
34 manifest_with_version.SetInteger(keys::kManifestVersion, 1);
44 manifest_with_version.SetInteger(keys::kManifestVersion, 2);
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/
H A Dtest_parser_unittest.py50 self.assertTrue('test' in test_info.keys(), 'did not find a test file')
51 self.assertTrue('reference' in test_info.keys(), 'did not find a reference file')
53 self.assertFalse('refsupport' in test_info.keys(), 'there should be no refsupport files for this test')
54 self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest')
73 self.assertTrue('test' in test_info.keys(), 'did not find a test file')
74 self.assertTrue('reference' in test_info.keys(), 'did not find a reference file')
76 self.assertFalse('refsupport' in test_info.keys(), 'there should be no refsupport files for this test')
77 self.assertFalse('jstest' in test_info.keys(), 'test should not have been analyzed as a jstest')
99 self.assertTrue('test' in test_info.keys(), 'did not find a test file')
100 self.assertTrue('reference' in test_info.keys(), 'di
[all...]
/external/chromium_org/v8/test/perf-test/Collections/
H A Dweakset.js17 var keys = []; variable
21 keys[i] = {};
28 ws.add(keys[i]);
46 if (!ws.has(keys[i])) {
51 if (ws.has(keys[i])) {
62 ws.delete(keys[i]);
/external/chromium_org/chrome/common/extensions/api/extension_action/
H A Dpage_action_handler.cc17 namespace keys = 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)) {
93 std::vector<std::string> keys; local
94 keys.push_back(keys::kPageAction);
95 keys
[all...]
/external/chromium_org/extensions/common/manifest_handlers/
H A Dkiosk_mode_info.cc16 namespace keys = manifest_keys;
28 extension->GetManifestData(keys::kKioskMode));
35 extension->GetManifestData(keys::kKioskMode));
40 supported_keys_.push_back(keys::kKioskEnabled);
41 supported_keys_.push_back(keys::kKioskOnly);
49 DCHECK(manifest->HasKey(keys::kKioskEnabled) ||
50 manifest->HasKey(keys::kKioskOnly));
53 if (manifest->HasKey(keys::kKioskEnabled) &&
54 !manifest->GetBoolean(keys::kKioskEnabled, &kiosk_enabled)) {
60 if (manifest->HasKey(keys
[all...]

Completed in 586 milliseconds

1234567891011>>