Home
last modified time | relevance | path

Searched refs:key2 (Results 1 – 25 of 48) sorted by relevance

12

/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DObjectCounterTest.java45 public String key2; field in ObjectCounterTest.TestKey
48 public TestKey(int key1, String key2, boolean key3) { in TestKey() argument
50 this.key2 = key2; in TestKey()
62 && Objects.equals(key2, testKey.key2); in equals()
68 return Objects.hash(key1, key2, key3); in hashCode()
76 + ", key2='" + key2 + '\'' in toString()
87 public String key2; field in ObjectCounterTest.TestKeyProto
91 public TestKeyProto(int key1, String key2, boolean key3, int count) { in TestKeyProto() argument
93 this.key2 = key2; in TestKeyProto()
106 && Objects.equals(key2, that.key2); in equals()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DScanResultMatchInfoTest.java178 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
179 assertTrue(key2.equals(key1)); in testEqualityRulesForTransitionMode()
182 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
183 assertTrue(key2.equals(key3)); in testEqualityRulesForTransitionMode()
187 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
188 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
189 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
190 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
211 assertTrue(key1.equals(key2)); in testEqualityRulesForPsk()
212 assertTrue(key2.equals(key1)); in testEqualityRulesForPsk()
[all …]
H A DWifiNetworkScoreCacheTest.java141 WifiKey key2 = new WifiKey("\"ssid2\"", BSSID); in onScoresUpdatedShouldAddNewNetwork() local
142 ScoredNetwork network2 = buildScoredNetwork(key2, mMockRssiCurve); in onScoresUpdatedShouldAddNewNetwork()
/aosp12/frameworks/base/keystore/tests/src/android/security/keystore2/
H A DAndroidKeyStoreSpiTest.java116 assertThat("Identity should yield true", key2.equals(key2)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
118 key2.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
119 assertThat("Different keys should differ", !key1.equals(key2)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
121 key1.hashCode(), key2.hashCode()); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
129 assertThat("anything.equal(null) should yield false", !key2.equals(null)); in testKeystoreKeysAdhereToContractBetweenEqualsAndHashCode()
143 assertThat("Identity should yield true", key2.equals(key2)); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
145 key2.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
149 assertThat("Different keys should differ", !key1.equals(key2)); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
151 key1.hashCode(), key2.hashCode()); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
155 assertThat("Different keys should differ", !key2.equals(key3)); in testKeystorePublicKeysAdhereToContractBetweenEqualsAndHashCode()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DKeyEventTest.java156 compareKeys(key1, key2); in testParcelUnparcel()
162 KeyEvent key2 = new KeyEvent(key1); in testConstructor() local
163 compareKeys(key1, key2); in testConstructor()
172 assertEquals(key1.getId(), key2.getId()); in compareKeys()
173 assertEquals(key1.getDownTime(), key2.getDownTime()); in compareKeys()
175 assertEquals(key1.getAction(), key2.getAction()); in compareKeys()
176 assertEquals(key1.getKeyCode(), key2.getKeyCode()); in compareKeys()
179 assertEquals(key1.getDeviceId(), key2.getDeviceId()); in compareKeys()
180 assertEquals(key1.getScanCode(), key2.getScanCode()); in compareKeys()
181 assertEquals(key1.getFlags(), key2.getFlags()); in compareKeys()
[all …]
/aosp12/system/extras/simpleperf/scripts/test/
H A Dpprof_proto_generator_test.py54 key2 = 'PlayScene::DoFrame()' # function in thread 10463
58 self.assertIn(key2, output)
61 self.assertNotIn(key2, output)
64 self.assertIn(key2, output)
68 key2 = 'PlayScene::DoFrame()' # function in thread 'e.sample.tunnel'
72 self.assertIn(key2, output)
75 self.assertNotIn(key2, output)
78 self.assertIn(key2, output)
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
H A DMediaSessionBasedFilterTest.kt290 val key2 = "KEY_2" regex
303 filter.onMediaDataLoaded(key2, null, mediaData2)
317 val key2 = "KEY_2" regex
330 filter.onMediaDataLoaded(key2, null, mediaData2)
384 val key2 = "KEY_2" regex
396 filter.onMediaDataLoaded(key2, key1, mediaData2)
407 val key2 = "KEY_2" regex
420 filter.onMediaDataLoaded(key2, key1, mediaData1)
421 filter.onMediaDataLoaded(key2, key1, mediaData2)
426 filter.onMediaDataLoaded(key2, null, mediaData2)
[all …]
/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
H A DNsdManagerTest.java178 int key2 = verifyRequest(NsdManager.RESOLVE_SERVICE); in doTestResolveService() local
196 int key2 = verifyRequest(NsdManager.RESOLVE_SERVICE); in doTestParallelResolveService() local
220 int key2 = verifyRequest(NsdManager.REGISTER_SERVICE); in doTestRegisterService() local
248 assertEquals(key2, key2again); in doTestRegisterService()
282 int key2 = verifyRequest(NsdManager.DISCOVER_SERVICES); in doTestDiscoverService() local
289 sendResponse(NsdManager.SERVICE_FOUND, 0, key2, reply1); in doTestDiscoverService()
292 sendResponse(NsdManager.SERVICE_FOUND, 0, key2, reply2); in doTestDiscoverService()
295 sendResponse(NsdManager.SERVICE_LOST, 0, key2, reply2); in doTestDiscoverService()
302 assertEquals(key2, key2again); in doTestDiscoverService()
306 sendResponse(NsdManager.SERVICE_LOST, 0, key2, reply1); in doTestDiscoverService()
[all …]
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/
H A DTertiaryKeysTableTest.java91 TertiaryKey key2 = generateTertiaryKey(alias2, PACKAGE_NAME); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local
94 long primaryKey2 = mTertiaryKeysTable.addKey(key2); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
101 assertTertiaryKeysEqual(mTertiaryKeysTable.getKey(alias2, PACKAGE_NAME).get(), key2); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local
133 TertiaryKey key2 = generateTertiaryKey(SECONDARY_ALIAS, package2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local
134 mTertiaryKeysTable.addKey(key2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary()
145 assertTertiaryKeysEqual(keysByPackageName.get(package2), key2); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local
/aosp12/build/soong/android/
H A Donceper_test.go134 key2 := NewOnceKey("key")
137 b := once.Once(key2, func() interface{} { return "b" }).(string)
154 key2 := NewCustomOnceKey(key{"key"})
157 b := once.Once(key2, func() interface{} { return "b" }).(string)
171 key2 := NewOnceKey("key")
173 …a := once.Once(key1, func() interface{} { return once.Once(key2, func() interface{} { return "a" }…
/aosp12/packages/modules/StatsD/statsd/tests/metrics/
H A DMaxDurationTracker_test.cpp49 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); variable
55 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
77 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey()); in TEST()
78 tracker.noteStop(key2, bucketStartTimeNs + 40, false /*stop all*/); in TEST()
89 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
107 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey()); in TEST()
124 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
163 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
333 tracker.noteStart(key2, true, eventStartTimeNs2, conditionKey2); // Condition is on already. in TEST()
354 tracker.noteStop(key2, eventStopTimeNs, false); in TEST()
[all …]
H A DEventMetricProducer_test.cpp152 ConditionKey key2; in TEST() local
153 key2[StringToId("APP_IN_BACKGROUND_PER_UID")] = { in TEST()
160 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
H A DInitializeRecoverableSecondaryKeyTaskTest.java123 RecoverableKeyStoreSecondaryKey key2 = mTask.run(); in testRun_doesNotGenerateANewKeyIfOneIsAvailable() local
125 assertThat(key1.getAlias()).isEqualTo(key2.getAlias()); in testRun_doesNotGenerateANewKeyIfOneIsAvailable()
126 assertThat(key2.getSecretKey()).isEqualTo(key2.getSecretKey()); in testRun_doesNotGenerateANewKeyIfOneIsAvailable()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
H A DTertiaryKeyGeneratorTest.java69 SecretKey key2 = mTertiaryKeyGenerator.generate(); in generate_generatesNewKeys() local
71 assertThat(key1).isNotEqualTo(key2); in generate_generatesNewKeys()
H A DTertiaryKeyStoreTest.java172 SecretKey key2 = generateAesKey(); in getAll_returnsAllKeysSaved() local
176 mTertiaryKeyStore.save(package2, key2); in getAll_returnsAllKeysSaved()
181 assertThat(keys).containsExactly(package1, key1, package2, key2, package3, key3); in getAll_returnsAllKeysSaved()
/aosp12/system/update_engine/common/
H A Dprefs_unittest.cc56 auto key2 = common_prefs_->CreateSubKey({"ns1", "nsB", "key"}); in MultiNamespaceKeyTest() local
62 EXPECT_FALSE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
68 EXPECT_TRUE(common_prefs_->SetString(key2, "")); in MultiNamespaceKeyTest()
75 EXPECT_TRUE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
80 EXPECT_THAT(keys2, ElementsAre(key2)); in MultiNamespaceKeyTest()
87 EXPECT_FALSE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
426 auto key2 = prefs_.CreateSubKey({name_space, sub_pref, sub_key2}); in TEST_F() local
430 ASSERT_TRUE(prefs_.SetInt64(key2, 0)); in TEST_F()
437 ASSERT_TRUE(prefs_.Delete(key2)); in TEST_F()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/
H A DCryptoSettingsTest.java191 String key2 = "key2"; in clearAllSettingsForBackup_clearsStateForBackup() local
194 setAliasIsInRecoveryController(key2); in clearAllSettingsForBackup_clearsStateForBackup()
196 mCryptoSettings.setNextSecondaryAlias(key2); in clearAllSettingsForBackup_clearsStateForBackup()
/aosp12/frameworks/av/camera/
H A DCameraParameters2.cpp150 status_t CameraParameters2::compareSetOrder(const char *key1, const char *key2, in compareSetOrder() argument
155 } else if (key2 == NULL) { in compareSetOrder()
164 ssize_t index2 = mMap.indexOfKey(String8(key2)); in compareSetOrder()
169 ALOGW("%s: Key2 (%s) was not set", __FUNCTION__, key2); in compareSetOrder()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardLayoutTest.java50 Key key2 = new Key("label2", 201, 103, "201", "201hint", 203, 204, 205, 206, 2100, 2101, in testNewKeyboardLayout() local
55 sortedKeys.add(key2); in testNewKeyboardLayout()
/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
H A DPropertyNodeTest.cc61 std::string key2 = _InitProperty("test.libperfmgr.key2"); in TEST() local
62 PropertyNode t2("t2", key2, {{"value0"}, {"value1"}, {"value2"}}, 0, true); in TEST()
64 _VerifyPropertyValue(key2, "value0"); in TEST()
/aosp12/system/core/libutils/
H A DLruCache_test.cpp334 KeyWithPointer key2; in TEST_F() local
335 key2.ptr = new int(2); in TEST_F()
341 cache.put(key2, "two"); in TEST_F()
343 EXPECT_STREQ("two", cache.get(key2)); in TEST_F()
/aosp12/frameworks/base/tools/obbtool/
H A Dmkobb.sh117 hidden_prompt "Encryption key (again): " key2
119 if [ "${key}x" != "${key2}x" ]; then \
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
H A DAesXCbcImpl.java72 byte[] key2 = encryptAesBlock(keyBytes, HexDump.hexStringToByteArray(KEY2_SEED_HEX_STRING)); in mac()
104 message = xorByteArrays(message, key2); in mac()
/aosp12/art/test/922-properties/src/art/
H A DTest922.java58 String key2 = generateUnique(allProperties); in doTest() local
59 checkProperty(key2); in doTest()
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
H A DCredential.java1222 private static boolean isPrivateKeyEquals(PrivateKey key1, PrivateKey key2) { in isPrivateKeyEquals() argument
1223 if (key1 == null && key2 == null) { in isPrivateKeyEquals()
1228 if (key1 == null || key2 == null) { in isPrivateKeyEquals()
1232 return TextUtils.equals(key1.getAlgorithm(), key2.getAlgorithm()) && in isPrivateKeyEquals()
1233 Arrays.equals(key1.getEncoded(), key2.getEncoded()); in isPrivateKeyEquals()

12