/third_party/curl/tests/unit/ |
H A D | unit1603.c | 55 char key1[] = "key1"; variable 66 if(Curl_hash_str(key1, strlen(key1), slots) != 1 || 73 nodep = Curl_hash_add(&hash_static, &key1, strlen(key1), &key1); 75 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1)); 76 fail_unless(nodep == key1, "has [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_rd_single_ver_natural_store_testcase.cpp | 95 Key key1; in SyncDatabaseOperate006() local 96 DistributedDBToolsUnitTest::GetRandomKeyValue(key1, 30); // 30 as random size in SyncDatabaseOperate006() 97 Key key2 = key1; in SyncDatabaseOperate006() 99 Key key3 = key1; in SyncDatabaseOperate006() 107 EXPECT_EQ(connection->Put(option, key1, value1), E_OK); in SyncDatabaseOperate006() 116 EXPECT_EQ(connection->GetEntries(option, key1, entriesRead), E_OK); in SyncDatabaseOperate006() 151 Key key1; in DataBaseCommonPutOperate() local 155 * @tc.steps: step1/2. Set Ioption to the local data and insert a record of key1 and value1. in DataBaseCommonPutOperate() 158 DistributedDBToolsUnitTest::GetRandomKeyValue(key1); in DataBaseCommonPutOperate() 160 EXPECT_EQ(connection->Put(option, key1, value in DataBaseCommonPutOperate() 244 Key key1; DataBaseCommonDeleteOperate() local 288 Key key1; DataBaseCommonGetOperate() local [all...] |
H A D | distributeddb_storage_single_ver_natural_store_testcase.cpp | 59 Key key1; in GetSyncData001() local 61 DistributedDBToolsUnitTest::GetRandomKeyValue(key1); in GetSyncData001() 64 EXPECT_EQ(connection->Put(option, key1, value1), E_OK); in GetSyncData001() 75 DataItem item = {key1, value1, 0, 0}; in GetSyncData001() 147 Key key1; in GetSyncData003() local 149 DistributedDBToolsUnitTest::GetRandomKeyValue(key1); in GetSyncData003() 152 EXPECT_EQ(connection->Put(option, key1, value1), E_OK); in GetSyncData003() 314 Key key1; in PutSyncData001() local 316 DistributedDBToolsUnitTest::GetRandomKeyValue(key1, 13); // random size in PutSyncData001() 320 * @tc.steps:step1/2. Set Ioption to synchronous data and insert a (key1, value in PutSyncData001() 409 Key key1; PutSyncData002() local 616 Key key1; GetCurrentMaxTimestamp001() local 876 Key key1; SyncDatabaseOperate006() local 1567 Key key1; TestMetaDataPutAndGet() local 1672 Key key1; DataBaseCommonPutOperate() local 1767 Key key1; DataBaseCommonDeleteOperate() local 1811 Key key1; DataBaseCommonGetOperate() local [all...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | ep93xx_keypad.c | 72 int key1; member 85 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local 90 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 96 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() 97 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 99 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler() 102 input_report_key(input_dev, key1, in ep93xx_keypad_irq_handler() [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | ep93xx_keypad.c | 75 int key1; member 88 int keycode, key1, key2; in ep93xx_keypad_irq_handler() local 93 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 99 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() 100 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 102 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler() 105 input_report_key(input_dev, key1, in ep93xx_keypad_irq_handler() [all...] |
/third_party/node/deps/openssl/openssl/crypto/des/ |
H A D | str2key.c | 46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument 51 memset(key1, 0, 8); in DES_string_to_2keys() 59 (*key1)[i % 8] ^= (j << 1); in DES_string_to_2keys() 67 (*key1)[7 - (i % 8)] ^= j; in DES_string_to_2keys() 73 memcpy(key2, key1, 8); in DES_string_to_2keys() 74 DES_set_odd_parity(key1); in DES_string_to_2keys() 76 DES_set_key_unchecked(key1, &ks); in DES_string_to_2keys() 77 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1); in DES_string_to_2keys() 81 DES_set_odd_parity(key1); in DES_string_to_2keys() [all...] |
/third_party/openssl/crypto/des/ |
H A D | str2key.c | 46 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) in DES_string_to_2keys() argument 51 memset(key1, 0, 8); in DES_string_to_2keys() 59 (*key1)[i % 8] ^= (j << 1); in DES_string_to_2keys() 67 (*key1)[7 - (i % 8)] ^= j; in DES_string_to_2keys() 73 memcpy(key2, key1, 8); in DES_string_to_2keys() 74 DES_set_odd_parity(key1); in DES_string_to_2keys() 76 DES_set_key_unchecked(key1, &ks); in DES_string_to_2keys() 77 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1); in DES_string_to_2keys() 81 DES_set_odd_parity(key1); in DES_string_to_2keys() [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | tsxStatelessFunctionComponentsWithTypeArguments1.js | 4 declare function ComponentWithTwoAttributes<K,V>(l: {key1: K, value: V}): JSX.Element; 7 function Baz<T,U>(key1: T, value: U) { 8 let a0 = <ComponentWithTwoAttributes key1={key1} value={value} /> 9 let a1 = <ComponentWithTwoAttributes {...{key1, value: value}} key="Component" /> 38 function Baz(key1, value) {
39 var a0 = <ComponentWithTwoAttributes key1={key1} value={value}/>;
40 var a1 = <ComponentWithTwoAttributes {...{ key1: key1, valu [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/ |
H A D | conf.c | 343 static int conf_get_by_keys(snd_config_t *root, const char *key1, in conf_get_by_keys() argument 348 if (key1) { in conf_get_by_keys() 349 ret = snd_config_search(root, key1, &root); in conf_get_by_keys() 360 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2) in conf_get_subtree() argument 366 ret = conf_get_by_keys(root, key1, key2, &root); in conf_get_subtree() 370 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_subtree() 374 int conf_get_count(snd_config_t *root, const char *key1, const char *key2) in conf_get_count() argument 382 ret = conf_get_by_keys(root, key1, key2, &cfg); in conf_get_count() 386 ksft_exit_fail_msg("key '%s'.'%s' search error: %s\n", key1, key2, snd_strerror(ret)); in conf_get_count() 388 ksft_exit_fail_msg("key '%s'.'%s' is not a compound\n", key1, key in conf_get_count() 395 conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def) conf_get_string() argument 413 conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def) conf_get_long() argument 431 conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def) conf_get_bool() argument 449 conf_get_string_array(snd_config_t *root, const char *key1, const char *key2, const char **array, int array_size, const char *def) conf_get_string_array() argument [all...] |
H A D | alsa-local.h | 19 snd_config_t *conf_get_subtree(snd_config_t *root, const char *key1, const char *key2); 20 int conf_get_count(snd_config_t *root, const char *key1, const char *key2); 21 const char *conf_get_string(snd_config_t *root, const char *key1, const char *key2, const char *def); 22 long conf_get_long(snd_config_t *root, const char *key1, const char *key2, long def); 23 int conf_get_bool(snd_config_t *root, const char *key1, const char *key2, int def); 24 void conf_get_string_array(snd_config_t *root, const char *key1, const char *key2,
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_symtab.c | 154 intptr_t sum = ckey->key1 + ckey->key2 + ckey->key3 + ckey->key4; in cil_complex_symtab_hash() 186 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 194 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 199 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 205 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 235 if (ckey->key1 in cil_complex_symtab_search() [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_btree.h | 163 * Difference between key2 and key1 -- positive if key1 > key2, 164 * negative if key1 < key2, and zero if equal. If the @mask parameter 169 const union xfs_btree_key *key1, 188 * Given two btree keys @key1 and @key2, decide if it is impossible for 190 * @key1 < K < @key2. To determine if two btree records are 191 * immediately adjacent, @key1 should be the high key of the first 197 const union xfs_btree_key *key1, 584 const union xfs_btree_key *key1, 600 const union xfs_btree_key *key1, in xfs_btree_keycmp_lt() 598 xfs_btree_keycmp_lt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_lt() argument 607 xfs_btree_keycmp_gt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_gt() argument 616 xfs_btree_keycmp_eq( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_eq() argument 625 xfs_btree_keycmp_le( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_le() argument 634 xfs_btree_keycmp_ge( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_ge() argument 643 xfs_btree_keycmp_ne( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2) xfs_btree_keycmp_ne() argument 653 xfs_btree_masked_keycmp_lt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_lt() argument 663 xfs_btree_masked_keycmp_gt( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_gt() argument 673 xfs_btree_masked_keycmp_ge( struct xfs_btree_cur *cur, const union xfs_btree_key *key1, const union xfs_btree_key *key2, const union xfs_btree_key *mask) xfs_btree_masked_keycmp_ge() argument [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | sha256.c | 113 FILLP_UINT32 key1; in FillpSha256Compile() local 129 key1 = ((FILLP_UINT32)(index + FILLP_SHA_NINE_PAR)) & FILLP_SHAWK_ARRAY_SZ_MOD; in FillpSha256Compile() 132 buf[key3] += FILLP_G_1(buf[key0]) + buf[key1] + FILLP_G_0(buf[key2]); in FillpSha256Compile() 140 key1 = index + jdex; in FillpSha256Compile() 141 hash[key0] += g_k256[key1]; in FillpSha256Compile() 143 key1 = ((FILLP_UINT32)(FILLP_SHA_FOUR_PAR - index)) & FILLP_HASH_ARRAY_SZ_MOD; in FillpSha256Compile() 144 hash[key0] += FILLP_S_1(hash[key1]); in FillpSha256Compile() 148 hash[key0] += FILLP_CH(hash[key1], hash[key2], hash[key3]); in FillpSha256Compile() 150 key1 = ((FILLP_UINT32)(FILLP_SHA_THREE_PAR - index)) & FILLP_HASH_ARRAY_SZ_MOD; in FillpSha256Compile() 151 hash[key1] in FillpSha256Compile() [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A D | hmac.c | 43 uint8_t key1[20], key3[131], data3[50]; in main() local 54 memset(key1, 0x0b, sizeof(key1)); in main() 64 test(hmac, key1, hmac->hashlen, data1, sizeof(data1)); in main() 78 test(hmac, key1, sizeof(key1), data1, sizeof(data1)); in main()
|
/kernel/linux/linux-5.10/fs/befs/ |
H A D | btree.c | 119 static int befs_compare_strings(const void *key1, int keylen1, 702 * @key1: pointer to the first key to be compared 703 * @keylen1: length in bytes of key1 707 * Returns 0 if @key1 and @key2 are equal. 708 * Returns >0 if @key1 is greater. 712 befs_compare_strings(const void *key1, int keylen1, in befs_compare_strings() argument 716 int result = strncmp(key1, key2, len); in befs_compare_strings() 725 btree_compare_int32(cont void *key1, int keylen1, const void *key2, int keylen2) 727 return *(int32_t *) key1 - *(int32_t *) key2; 731 btree_compare_uint32(cont void *key1, in [all...] |
/kernel/linux/linux-6.6/fs/befs/ |
H A D | btree.c | 119 static int befs_compare_strings(const void *key1, int keylen1, 702 * @key1: pointer to the first key to be compared 703 * @keylen1: length in bytes of key1 707 * Returns 0 if @key1 and @key2 are equal. 708 * Returns >0 if @key1 is greater. 712 befs_compare_strings(const void *key1, int keylen1, in befs_compare_strings() argument 716 int result = strncmp(key1, key2, len); in befs_compare_strings() 725 btree_compare_int32(cont void *key1, int keylen1, const void *key2, int keylen2) 727 return *(int32_t *) key1 - *(int32_t *) key2; 731 btree_compare_uint32(cont void *key1, in [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityautostartupdatamanagerb_fuzzer/ |
H A D | abilityautostartupdatamanagerb_fuzzer.cpp | 89 DistributedKv::Key key1(jsonKey1); in AbilityAutoStartupDataManagerFuzztest1() 92 dataMgr->ConvertAutoStartupInfoFromKeyAndValue(key1, value1); in AbilityAutoStartupDataManagerFuzztest1() 103 nlohmann::json jsonObject = nlohmann::json::parse(key1.ToString(), nullptr, false); in AbilityAutoStartupDataManagerFuzztest1() 112 dataMgr->IsEqual(key1, info); in AbilityAutoStartupDataManagerFuzztest1() 116 dataMgr->IsEqual(key1, "token"); in AbilityAutoStartupDataManagerFuzztest1() 117 dataMgr->IsEqual(key1, "NaN"); in AbilityAutoStartupDataManagerFuzztest1() 120 dataMgr->IsEqual(key1, 100); // 100 means userid in AbilityAutoStartupDataManagerFuzztest1() 121 dataMgr->IsEqual(key1, int32Param); in AbilityAutoStartupDataManagerFuzztest1()
|
/test/xts/acts/startup_lite/syspara_posix/src/ |
H A D | ParameterTest.cpp | 96 char key1[] = "rw.sys.version.version.version"; in HWTEST_F() local 98 ret = SetParameter(key1, value1); in HWTEST_F() 145 char key1[] = "rw.sys.version.version.version.version.version.version.version.version.version.version.version.v"; in HWTEST_F() local 147 ret = SetParameter(key1, value1); in HWTEST_F() 180 char key1[] = "rw.sys.version.version"; in HWTEST_F() local 182 ret = SetParameter(key1, value1); in HWTEST_F() 236 char key1[] = "rw.sys.version.version.version"; in HWTEST_F() local 239 ret = GetParameter(key1, defSysParam.c_str(), value1, StartUpLite::MAX_LEN); in HWTEST_F() 291 char key1[] = "rw.product.not.exist"; in HWTEST_F() local 293 ret = GetParameter(key1, defSysPara in HWTEST_F() [all...] |
/third_party/skia/tests/ |
H A D | ImageFilterCacheTest.cpp | 47 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() 52 cache->set(key1, filter.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_find_existing() 55 REPORTER_ASSERT(reporter, cache->get(key1, &foundImage)); in test_find_existing() 72 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() 83 REPORTER_ASSERT(reporter, !cache->get(key1, &foundImage)); in test_dont_find_if_diff_key() 96 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() 101 cache->set(key1, filter1.get(), skif::FilterResult(image, skif::LayerSpace<SkIPoint>(offset))); in test_internal_purge() 104 REPORTER_ASSERT(reporter, cache->get(key1, &foundImage)); in test_internal_purge() 112 REPORTER_ASSERT(reporter, !cache->get(key1, &foundImage)); in test_internal_purge() 123 SkImageFilterCacheKey key1( in test_explicit_purging() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_dlp_test.cpp | 187 Key key1 = {'k', '1'}; in HWTEST_F() local 189 delegatePtr1->Put(key1, value1); in HWTEST_F() 195 EXPECT_EQ(delegatePtr1->Get(key1, value), OK); in HWTEST_F() 201 EXPECT_EQ(delegatePtr2->Get(key1, value), NOT_FOUND); in HWTEST_F() 244 Key key1 = {'k', '1'}; in HWTEST_F() local 246 delegatePtr1->Put(key1, value1); in HWTEST_F() 249 EXPECT_EQ(delegatePtr1->Get(key1, value), OK); in HWTEST_F() 253 delegatePtr1->Put(key1, value2); in HWTEST_F() 254 EXPECT_EQ(delegatePtr1->Get(key1, value), OK); in HWTEST_F() 257 EXPECT_EQ(delegatePtr1->Delete(key1), O in HWTEST_F() 297 Key key1 = {'k', '1'}; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/netsys_bpf_stats_test/ |
H A D | netsys_bpf_stats_test.cpp | 251 app_uid_if_stats_key key1 = {0}; in HWTEST_F() local 252 key1.ifIndex = TEST_UID_IF1; in HWTEST_F() 253 key1.uId = TEST_UID1; in HWTEST_F() 254 auto ret = uidIfaceStatsMap.Write(key1, value, BPF_ANY); in HWTEST_F() 310 app_uid_if_stats_key key1 = {0}; in HWTEST_F() local 311 key1.ifIndex = TEST_UID_IF1; in HWTEST_F() 312 key1.uId = TEST_UID1; in HWTEST_F() 313 auto ret = uidIfStatsMap.Write(key1, value, BPF_ANY); in HWTEST_F() 330 app_uid_if_stats_key key1 = {0}; in HWTEST_F() local 331 key1 in HWTEST_F() 357 app_uid_sim_stats_key key1 = {0}; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | aes-ce-core.S | 26 .macro enc_dround, key1, key2 27 enc_round q0, \key1 31 .macro dec_dround, key1, key2 32 dec_round q0, \key1 36 .macro enc_fround, key1, key2, key3 37 enc_round q0, \key1 42 .macro dec_fround, key1, key2, key3 43 dec_round q0, \key1 48 .macro enc_dround_4x, key1, key2 49 enc_round q0, \key1 [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | aes-ce-core.S | 26 .macro enc_dround, key1, key2 27 enc_round q0, \key1 31 .macro dec_dround, key1, key2 32 dec_round q0, \key1 36 .macro enc_fround, key1, key2, key3 37 enc_round q0, \key1 42 .macro dec_fround, key1, key2, key3 43 dec_round q0, \key1 48 .macro enc_dround_4x, key1, key2 49 enc_round q0, \key1 [all...] |
/third_party/python/Lib/test/ |
H A D | test_mailbox.py | 200 key1 = self._box.add(self._template % 1) 206 self.assertEqual(self._box.get_string(key1), self._template % 1) 213 self.assertEqual(self._box.get_string(key1), self._template % 1) 214 method(key1) 216 self.assertRaises(KeyError, lambda: self._box[key1]) 217 self.assertRaises(KeyError, lambda: method(key1)) 222 key1 = self._box.add(self._template % 1) 241 key1 = self._box.add(self._template % 1) 242 msg = self._box.get(key1) 259 key1 [all...] |
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | aes_platform.h | 40 size_t len, const AES_KEY *key1, 43 size_t len, const AES_KEY *key1, 55 const AES_KEY *key1, const AES_KEY *key2, 58 const AES_KEY *key1, const AES_KEY *key2, 196 const AES_KEY *key1, const AES_KEY *key2, 202 const AES_KEY *key1, const AES_KEY *key2, 292 size_t blocks, const AES_KEY *key1, 295 size_t blocks, const AES_KEY *key1, 298 size_t blocks, const AES_KEY *key1, 301 size_t blocks, const AES_KEY *key1, [all...] |