/aosp_15_r20/libcore/ojluni/src/test/java/util/Map/ |
H A D | InPlaceOpsCollisions.java | 51 Object[] keys = map.keySet().toArray(); in testPutIfAbsent() local 53 removeOddKeys(map, keys); in testPutIfAbsent() 54 for (int i = 0; i < keys.length; i++) { in testPutIfAbsent() 55 retVal = map.putIfAbsent(keys[i], val); in testPutIfAbsent() 58 assertEquals(retVal, keys[i], in testPutIfAbsent() 60 assertEquals(keys[i], map.get(keys[i]), in testPutIfAbsent() 62 assertTrue(map.containsValue(keys[i]), in testPutIfAbsent() 67 assertEquals(val, map.get(keys[i]), in testPutIfAbsent() 69 assertFalse(map.containsValue(keys[i]), in testPutIfAbsent() 72 assertTrue(map.containsKey(keys[i]), in testPutIfAbsent() [all …]
|
H A D | Defaults.java | 73 @Test(dataProvider = "Map<IntegerEnum,String> rw=all keys=withNull values=withNull") 80 @Test(dataProvider = "Map<IntegerEnum,String> rw=all keys=all values=all") 82 assertTrue(map.containsKey(KEYS[1]), "expected key missing"); in testGetOrDefault() 83 assertSame(map.get(KEYS[1]), map.getOrDefault(KEYS[1], EXTRA_VALUE), "values should match"); in testGetOrDefault() 89 @Test(dataProvider = "Map<IntegerEnum,String> rw=true keys=withNull values=withNull") 113 @Test(dataProvider = "Map<IntegerEnum,String> rw=true keys=all values=all") 116 assertTrue(map.containsKey(KEYS[1])); in testPutIfAbsent() 117 Object expected = map.get(KEYS[1]); in testPutIfAbsent() 119 assertSame(map.putIfAbsent(KEYS[1], EXTRA_VALUE), expected); in testPutIfAbsent() 120 assertSame(map.get(KEYS[1]), expected); in testPutIfAbsent() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_dictviews.py | 10 kt = type({}.keys()) 22 keys = d.keys() 23 self.assertEqual(len(keys), 2) 24 self.assertEqual(set(keys), {1, "a"}) 25 self.assertEqual(keys, {1, "a"}) 26 self.assertNotEqual(keys, {1, "a", "b"}) 27 self.assertNotEqual(keys, {1, "b"}) 28 self.assertNotEqual(keys, {1}) 29 self.assertNotEqual(keys, 42) 30 self.assertIn(1, keys) [all …]
|
/aosp_15_r20/external/chromium-trace/catapult/third_party/polymer/components/iron-a11y-keys-behavior/test/ |
H A D | basic-test.html | 15 <title>iron-a11y-keys</title> 22 <link rel="import" href="../iron-a11y-keys-behavior.html"> 27 <x-a11y-basic-keys></x-a11y-basic-keys> 33 <x-a11y-basic-keys stop-keyboard-event-propagation></x-a11y-basic-keys> 39 <x-a11y-combo-keys></x-a11y-combo-keys> 45 <x-a11y-alternate-event-keys></x-a11y-alternate-event-keys> 51 <x-a11y-behavior-keys></x-a11y-behavior-keys> 57 <x-a11y-prevent-keys></x-a11y-prevent-keys> 63 var keys; 93 is: 'x-a11y-basic-keys', [all …]
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 75 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument 78 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys() 81 memcpy(&val, keys, sizeof(val)); in export_flow_keys() 118 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local 137 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 140 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 146 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local 148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect() 161 return parse_eth_proto(skb, keys->n_proto); in _dissect() 167 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto() local [all …]
|
/aosp_15_r20/external/wpa_supplicant_8/src/eap_common/ |
H A D | ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument 380 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data() 394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data() 429 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() argument 440 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload() 441 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in ikev2_decrypt_payload() 476 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload() 499 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload() 530 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument [all …]
|
/aosp_15_r20/external/skia/bazel/device_specific_configs/ |
H A D | device_specific_configs.go | 26 // benchmark tests, except for keys "cpu_or_gpu" and "cpu_or_gpu_value". See fields CPU and GPU. 27 Keys map[string]string member 47 // Model returns the "model" key in the Keys dictionary. 49 model, ok := d.Keys["model"] 69 // Sort keys for determinism. 70 var keys []string 71 for key := range d.Keys { 72 keys = append(keys, key) 74 sort.Strings(keys) 78 for _, key := range keys { [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/ops/ |
H A D | lookup_ops.py | 164 def lookup(self, keys, name=None): argument 165 """Looks up `keys` in a table, outputs the corresponding values.""" 168 def __getitem__(self, keys): argument 169 """Looks up `keys` in a table, outputs the corresponding values.""" 170 return self.lookup(keys) 226 def lookup(self, keys, name=None): argument 227 """Looks up `keys` in a table, outputs the corresponding values. 229 The `default_value` is used for keys not present in the table. 232 keys: Keys to look up. May be either a `SparseTensor` or dense `Tensor`. 236 A `SparseTensor` if keys are sparse, a `RaggedTensor` if keys are ragged, [all …]
|
/aosp_15_r20/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ExpectedKeyboardBuilder.java | 68 private static ExpectedKey[] replaceKeyAt(final ExpectedKey[] keys, final int columnIndex, in replaceKeyAt() argument 72 keys[columnIndex] = replacingKeys[0]; in replaceKeyAt() 73 return keys; in replaceKeyAt() 75 final int newLength = keys.length - 1 + replacingKeys.length; in replaceKeyAt() 77 final ExpectedKey[] newKeys = Arrays.copyOf(keys, newLength); in replaceKeyAt() 78 System.arraycopy(keys, columnIndex + 1, newKeys, columnIndex + replacingKeys.length, in replaceKeyAt() 79 keys.length - 1 - columnIndex); in replaceKeyAt() 80 // Insert replacing keys at columnIndex. in replaceKeyAt() 91 ExpectedKey[] keys = getRowAt(row); in replaceKeyOf() local 92 for (int columnIndex = 0; columnIndex < keys.length; /* nothing */) { in replaceKeyOf() [all …]
|
/aosp_15_r20/external/python/asn1crypto/tests/ |
D | test_keys.py | 8 from asn1crypto import keys, core, util 28 with open(os.path.join(fixtures_dir, 'keys/test-der.key'), 'rb') as f: 29 key = keys.RSAPrivateKey.load(f.read()) 73 with open(os.path.join(fixtures_dir, 'keys/test-der.key'), 'rb') as f: 117 with open(os.path.join(fixtures_dir, 'keys/test-dsa-der.key'), 'rb') as f: 118 key = keys.DSAPrivateKey.load(f.read()) 146 with open(os.path.join(fixtures_dir, 'keys/test-ec-der.key'), 'rb') as f: 147 key = keys.ECPrivateKey.load(f.read()) 208 with open(os.path.join(fixtures_dir, 'keys/test-public-rsa-der.key'), 'rb') as f: 209 key = keys.RSAPublicKey.load(f.read()) [all …]
|
/aosp_15_r20/external/protobuf/objectivec/ |
H A D | GPBDictionary.h | 64 * Initializes this dictionary, copying the given values and keys. 67 * @param keys The keys under which to store the values. 70 * @return A newly initialized dictionary with a copy of the values and keys. 73 forKeys:(const uint32_t [__nullable])keys 105 * Enumerates the keys and values on this dictionary with the given block. 116 * Adds the keys and values from another dictionary. 159 * Initializes this dictionary, copying the given values and keys. 162 * @param keys The keys under which to store the values. 165 * @return A newly initialized dictionary with a copy of the values and keys. 168 forKeys:(const uint32_t [__nullable])keys [all …]
|
/aosp_15_r20/external/cronet/third_party/protobuf/objectivec/ |
H A D | GPBDictionary.h | 64 * Initializes this dictionary, copying the given values and keys. 67 * @param keys The keys under which to store the values. 70 * @return A newly initialized dictionary with a copy of the values and keys. 73 forKeys:(const uint32_t [__nullable])keys 105 * Enumerates the keys and values on this dictionary with the given block. 116 * Adds the keys and values from another dictionary. 159 * Initializes this dictionary, copying the given values and keys. 162 * @param keys The keys under which to store the values. 165 * @return A newly initialized dictionary with a copy of the values and keys. 168 forKeys:(const uint32_t [__nullable])keys [all …]
|
/aosp_15_r20/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
H A D | JsonWebKeyUnittest.cpp | 53 void verifyKeys(const KeyMap& keys, const String8* clearKeys) { in verifyKeys() argument 54 if (keys.isEmpty()) { in verifyKeys() 59 for (size_t i = 0; i < keys.size(); ++i) { in verifyKeys() 60 stringFromVector(keys.valueAt(i), &keyString); in verifyKeys() 76 KeyMap keys; in TEST_F() local 77 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 78 EXPECT_TRUE(keys.isEmpty()); in TEST_F() 98 KeyMap keys; in TEST_F() local 99 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 100 EXPECT_TRUE(keys.isEmpty()); in TEST_F() [all …]
|
/aosp_15_r20/external/vboot_reference/scripts/image_signing/ |
H A D | sign_uefi.py | 54 class Keys: class 55 """Public and private keys paths. 77 keys: An instance of Keys. 80 def __init__(self, temp_dir: os.PathLike, keys: Keys): argument 82 self.keys = keys 101 self.keys.private_key, 103 self.keys.sign_cert, 108 if is_pkcs11_key_path(self.keys.private_key): 123 ["sbverify", "--cert", self.keys.verify_cert, target], 151 self.keys.crdyshim_private_key, [all …]
|
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/sm/ |
H A D | phase_1_test.cc | 125 KeyDistGen::kEncKey, // initiator keys in TEST_F() 126 KeyDistGen::kEncKey | KeyDistGen::kIdKey // responder keys in TEST_F() 145 0x00, // initiator keys: none - non-bondable mode in TEST_F() 146 0x00 // responder keys: none - non-bondable mode in TEST_F() 161 KeyDistGen::kEncKey | KeyDistGen::kIdKey, // initiator keys in TEST_F() 162 KeyDistGen::kEncKey | KeyDistGen::kIdKey // responder keys in TEST_F() 187 KeyDistGen::kEncKey, // initiator keys in TEST_F() 188 KeyDistGen::kEncKey | KeyDistGen::kIdKey // responder keys in TEST_F() 196 KeyDistGen::kIdKey, // initiator keys - not listed in kRequest in TEST_F() 197 KeyDistGen::kEncKey | KeyDistGen::kIdKey // responder keys in TEST_F() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/kms/target/generated-sources/sdk/software/amazon/awssdk/services/kms/model/ |
H A D | ListKeysResponse.java | 46 .memberName("Keys") 47 .getter(getter(ListKeysResponse::keys)) 48 .setter(setter(Builder::keys)) 49 … .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Keys").build(), 70 private final List<KeyListEntry> keys; field in ListKeysResponse 78 this.keys = builder.keys; in ListKeysResponse() 84 …* For responses, this returns true if the service returned a value for the Keys property. This DOE… 91 return keys != null && !(keys instanceof SdkAutoConstructList); in hasKeys() 96 * A list of KMS keys. 106 * @return A list of KMS keys. [all …]
|
/aosp_15_r20/external/icing/icing/index/numeric/ |
H A D | integer-index_test.cc | 209 std::vector<int64_t> keys) { in Index() argument 213 for (const auto& key : keys) { in Index() 262 kDefaultSectionId, /*keys=*/{1}); in TYPED_TEST() 264 kDefaultSectionId, /*keys=*/{3}); in TYPED_TEST() 266 kDefaultSectionId, /*keys=*/{2}); in TYPED_TEST() 268 kDefaultSectionId, /*keys=*/{0}); in TYPED_TEST() 270 kDefaultSectionId, /*keys=*/{4}); in TYPED_TEST() 272 kDefaultSectionId, /*keys=*/{2}); in TYPED_TEST() 289 kDefaultSectionId, /*keys=*/{1}); in TYPED_TEST() 291 kDefaultSectionId, /*keys=*/{3}); in TYPED_TEST() [all …]
|
/aosp_15_r20/external/federated-compute/fcp/secagg/shared/ |
H A D | ecdh_key_agreement_test.cc | 37 EcdhPregeneratedTestKeys keys; in TEST() local 38 auto ecdh1 = EcdhKeyAgreement::CreateFromKeypair(keys.GetPrivateKey(0), in TEST() 39 keys.GetPublicKey(0)) in TEST() 48 EcdhPregeneratedTestKeys keys; in TEST() local 49 auto ecdh1 = EcdhKeyAgreement::CreateFromKeypair(keys.GetPrivateKey(0), in TEST() 50 keys.GetPublicKey(0)) in TEST() 60 EcdhPregeneratedTestKeys keys; in TEST() local 61 auto ecdh = EcdhKeyAgreement::CreateFromKeypair(keys.GetPrivateKey(0), in TEST() 62 keys.GetPublicKey(0)) in TEST() 68 EcdhPregeneratedTestKeys keys; in TEST() local [all …]
|
/aosp_15_r20/external/tink/go/testutil/ |
H A D | constant.go | 22 // AESCTRHMACAEADKeyVersion is the maximal version of AES-CTR-HMAC-AEAD keys that Tink supports. 24 // AESCTRHMACAEADTypeURL is the type URL of AES-CTR-HMAC-AEAD keys that Tink supports. 27 // AESGCMKeyVersion is the maximal version of AES-GCM keys. 29 // AESGCMTypeURL is the type URL of AES-GCM keys that Tink supports. 32 // AESGCMSIVKeyVersion is the maximal version of AES-GCM-SIV keys. 34 // AESGCMSIVTypeURL is the type URL of AES-GCM-SIV keys that Tink supports. 37 // ChaCha20Poly1305KeyVersion is the maximal version of ChaCha20Poly1305 keys that Tink supports. 39 // ChaCha20Poly1305TypeURL is the type URL of ChaCha20Poly1305 keys. 42 // KMSEnvelopeAEADKeyVersion is the maximal version of KMSEnvelopeAEAD keys that Tink supports. 44 // KMSEnvelopeAEADTypeURL is the type URL of KMSEnvelopeAEAD keys. [all …]
|
/aosp_15_r20/external/leakcanary2/shark-graph/src/main/java/shark/internal/hppc/ |
H A D | LongLongScatterMap.kt | 33 * The array holding keys. 35 private var keys: LongArray = longArrayOf() variable 43 * The number of stored keys (assigned key slots), excluding the special 51 * Mask for slot scans in [.keys]. 56 * Expand (rehash) [.keys] when [.assigned] hits this value. 66 * The load factor for [.keys]. 88 val keys = this.keys in set() constant 91 var existing = keys[slot] in set() 99 existing = keys[slot] in set() 105 keys[slot] = key in set() [all …]
|
H A D | LongObjectScatterMap.kt | 28 * The array holding keys. 30 private var keys: LongArray = longArrayOf() variable in shark.internal.hppc.LongObjectScatterMap 39 * The number of stored keys (assigned key slots), excluding the special 47 * Mask for slot scans in [.keys]. 52 * Expand (rehash) [.keys] when [.assigned] hits this value. 62 * The load factor for [.keys]. 84 val keys = this.keys in set() constant 87 var existing = keys[slot] in set() 95 existing = keys[slot] in set() 101 keys[slot] = key in set() [all …]
|
H A D | LongScatterSet.kt | 27 /** The hash array holding keys. */ 28 private var keys: LongArray = longArrayOf() variable 31 * The number of stored keys (assigned key slots), excluding the special 40 * Mask for slot scans in [.keys]. 45 * Expand (rehash) [.keys] when [.assigned] hits this value. 55 * The load factor for [.keys]. 71 existing = keys[slot] in elementSequence() 100 val keys = this.keys in add() constant 104 var existing = keys[slot] in add() 110 existing = keys[slot] in add() [all …]
|
/aosp_15_r20/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 96 super(Keys.KEY_UPGRADE_VERSION, APP_UPGRADE_VERSION); in AppUpgrader() 147 Keys.KEY_STARTUP_MODULE_INDEX); in upgrade() 170 * Keys.KEY_UPGRADE_VERSION type from int to string; rerunning this on 180 if (defaultPreferences.contains(Keys.KEY_RECORD_LOCATION)) { in upgradeTypesToStrings() 181 boolean location = removeBoolean(defaultPreferences, Keys.KEY_RECORD_LOCATION); in upgradeTypesToStrings() 182 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION, location); in upgradeTypesToStrings() 186 if (defaultPreferences.contains(Keys.KEY_USER_SELECTED_ASPECT_RATIO)) { in upgradeTypesToStrings() 188 Keys.KEY_USER_SELECTED_ASPECT_RATIO); in upgradeTypesToStrings() 189 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_USER_SELECTED_ASPECT_RATIO, in upgradeTypesToStrings() 194 if (defaultPreferences.contains(Keys.KEY_EXPOSURE_COMPENSATION_ENABLED)) { in upgradeTypesToStrings() [all …]
|
/aosp_15_r20/external/guava/android/guava/src/com/google/common/collect/ |
H A D | ImmutableSortedMap.java | 69 * keys and values are the result of applying the provided mapping functions to the input 72 * <p>If the mapped keys contain duplicates (according to the specified comparator), an {@code 91 * keys and values are the result of applying the provided mapping functions to the input 94 * <p>If the mapped keys contain duplicates (according to the comparator), the values are merged 157 * their keys. 159 * @throws IllegalArgumentException if the two keys are equal according to their natural ordering 168 * their keys. 170 * @throws IllegalArgumentException if any two keys are equal according to their natural ordering 179 * their keys. 181 * @throws IllegalArgumentException if any two keys are equal according to their natural ordering [all …]
|
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/ |
D | WifiTetherSettingsTest.java | 270 final List<String> keys = searchIndexProvider.getNonIndexableKeys(mContext); in getNonIndexableKeys_tetherAvailable_keysNotReturned() local 272 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_NETWORK_NAME); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 273 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_SECURITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 274 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_HOTSPOT_SECURITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 275 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_NETWORK_PASSWORD); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 276 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_AUTO_OFF); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 277 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_TETHER_MAXIMIZE_COMPATIBILITY); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 278 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_WIFI_HOTSPOT_SPEED); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 279 assertThat(keys).doesNotContain(WifiTetherSettings.KEY_INSTANT_HOTSPOT); in getNonIndexableKeys_tetherAvailable_keysNotReturned() 288 final List<String> keys = searchIndexProvider.getNonIndexableKeys(mContext); in getNonIndexableKeys_tetherNotAvailable_keysReturned() local [all …]
|