Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java176 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForTransitionMode() local
183 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
184 assertTrue(key2.equals(key1)); in testEqualityRulesForTransitionMode()
187 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
188 assertTrue(key2.equals(key3)); in testEqualityRulesForTransitionMode()
192 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
193 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
194 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
195 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
209 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForPsk() local
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
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 …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DTaskKeyByLastActiveTimeCacheTest.java42 Task.TaskKey key2 = new Task.TaskKey(2, 0, new Intent(), in add() local
45 cache.put(key2, data2); in add()
49 assertEquals(data2, cache.getAndInvalidateIfModified(key2)); in add()
53 assertEquals(key2, cache.getQueue().poll()); in add()
65 Task.TaskKey key2 = new Task.TaskKey(1, 0, new Intent(), in addSameTasksWithSameLastActiveTimeTwice() local
68 cache.put(key2, data2); in addSameTasksWithSameLastActiveTimeTwice()
71 assertEquals(data2, cache.getAndInvalidateIfModified(key2)); in addSameTasksWithSameLastActiveTimeTwice()
74 assertEquals(key2, cache.getQueue().poll()); in addSameTasksWithSameLastActiveTimeTwice()
87 Task.TaskKey key2 = new Task.TaskKey(1, 0, new Intent(), in addSameTasksWithDifferentLastActiveTime() local
90 cache.put(key2, data2); in addSameTasksWithDifferentLastActiveTime()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/
DFingerprintEnrollmentViewModelTest.kt121 val key2 = "test2" in testOverrideActivityResult_shallCreateNew_woIntent_withChallenge() constant
124 putInt(key2, 9999) in testOverrideActivityResult_shallCreateNew_woIntent_withChallenge()
141 assertThat(retExtra.getInt(key2)).isEqualTo(extra.getInt(key2)) in testOverrideActivityResult_shallCreateNew_woIntent_withChallenge()
150 val key2 = "test2" in testOverrideActivityResult_shallNotMerge_nonAdded_woIntent_withChallenge() constant
152 putExtra(key2, 3456L) in testOverrideActivityResult_shallNotMerge_nonAdded_woIntent_withChallenge()
165 assertThat(retExtra.getString(key2)).isEqualTo(intent.extras!!.getString(key2)) in testOverrideActivityResult_shallNotMerge_nonAdded_woIntent_withChallenge()
171 val key2 = "test2" in testOverrideActivityResult_shallMerge_added_woIntent_withChallenge() constant
174 putInt(key2, 9999) in testOverrideActivityResult_shallMerge_added_woIntent_withChallenge()
194 assertThat(retExtra.getInt(key2)).isEqualTo(extra.getInt(key2)) in testOverrideActivityResult_shallMerge_added_woIntent_withChallenge()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DFederatedComputeEncryptionKeyDaoTest.java76 FederatedComputeEncryptionKey key2 = createRandomPublicKeyWithConstantTTL(3600); in testInsertEncryptionKey_success() local
79 assertTrue(mEncryptionKeyDao.insertEncryptionKey(key2)); in testInsertEncryptionKey_success()
93 FederatedComputeEncryptionKey key2 = in testInsertDuplicateEncryptionKey_success() local
101 assertTrue(mEncryptionKeyDao.insertEncryptionKey(key2)); in testInsertDuplicateEncryptionKey_success()
107 assertThat(keyList.get(0)).isEqualTo(key2); in testInsertDuplicateEncryptionKey_success()
159 FederatedComputeEncryptionKey key2 = createRandomPublicKeyWithConstantTTL(2000000L); in findExpiryKeys_success() local
162 mEncryptionKeyDao.insertEncryptionKey(key2); in findExpiryKeys_success()
169 assertThat(keyList.get(1)).isEqualTo(key2); in findExpiryKeys_success()
176 FederatedComputeEncryptionKey key2 = createRandomPublicKeyWithConstantTTL(2000000L); in findExpiryKeysWithlimit_success() local
179 mEncryptionKeyDao.insertEncryptionKey(key2); in findExpiryKeysWithlimit_success()
[all …]
DFederatedComputeEncryptionKeyTest.java48 FederatedComputeEncryptionKey key2 = in testBuilderAndEquals() local
57 assertEquals(key1, key2); in testBuilderAndEquals()
69 assertNotEquals(key2, key3); in testBuilderAndEquals()
/packages/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdManagerTest.java190 int key2 = getRequestKey(req -> in doTestResolveService() local
192 mCallback.onResolveServiceSucceeded(key2, reply); in doTestResolveService()
209 int key2 = getRequestKey(req -> in doTestParallelResolveService() local
212 mCallback.onResolveServiceSucceeded(key2, reply); in doTestParallelResolveService()
267 int key2 = getRequestKey(req -> in doTestRegisterService() local
271 mCallback.onRegisterServiceSucceeded(key2, request2); in doTestRegisterService()
298 assertEquals(key2, key2again); in doTestRegisterService()
334 int key2 = getRequestKey(req -> in doTestDiscoverService() local
337 mCallback.onDiscoverServicesStarted(key2, request1); in doTestDiscoverService()
342 mCallback.onServiceFound(key2, reply1); in doTestDiscoverService()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestStatsdTelemetry.cpp107 auto key2 = key1; in TEST() local
108 key2.errorCode = ANEURALNETWORKS_DEAD_OBJECT; in TEST()
109 EXPECT_LT(key1, key2); in TEST()
175 auto key2 = key1; in TEST() local
176 key2.executionMode = ExecutionMode::ASYNC; in TEST()
182 aggregator.push({key2, value2}); in TEST()
209 AtomKey key2 = key1; in TEST() local
210 key2.executionMode = ExecutionMode::ASYNC; in TEST()
217 aggregator.push({key2, value2}); in TEST()
224 EXPECT_EQ(resultKey2, key2); in TEST()
/packages/modules/StatsD/statsd/tests/metrics/
DMaxDurationTracker_test.cpp49 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); variable
55 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
79 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey(), in TEST()
81 tracker.noteStop(key2, bucketStartTimeNs + 40, false /*stop all*/); in TEST()
92 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
111 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey(), in TEST()
129 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
169 const HashableDimensionKey key2 = getMockedDimensionKey(TagId, 1, "2"); in TEST() local
344 tracker.noteStart(key2, true, eventStartTimeNs2, conditionKey2, in TEST()
366 tracker.noteStop(key2, eventStopTimeNs, false); in TEST()
[all …]
DCountMetricProducer_test.cpp226 ConditionKey key2; in TEST() local
227 key2[StringToId("APP_IN_BACKGROUND_PER_UID")] = { in TEST()
234 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST()
DEventMetricProducer_test.cpp170 ConditionKey key2; in TEST_F() local
171 key2[StringToId("APP_IN_BACKGROUND_PER_UID")] = { in TEST_F()
178 EXPECT_CALL(*wizard, query(_, key2, _)).WillOnce(Return(ConditionState::kTrue)); in TEST_F()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EImpressionNoiseMockTest.java142 for (String key2 : expectedDistribution.keySet()) { in evaluateResults()
143 if (!actualDistribution.containsKey(key2) || !actualDistribution.get(key2).equals( in evaluateResults()
144 expectedDistribution.get(key2))) { in evaluateResults()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DObexAppParametersTest.java179 final byte key2 = 0x02; in getHeader_withTwoEntries()
181 params.add(key2, value2); in getHeader_withTwoEntries()
191 assertThat(result.get()).isEqualTo(key2); in getHeader_withTwoEntries()
194 } else if (firstKey == key2) { in getHeader_withTwoEntries()
/packages/modules/Connectivity/tests/common/java/android/net/netstats/
DNetworkStatsCollectionTest.kt45 val key2 = NetworkStatsCollection.Key(ident, /* uid */ 1, /* set */ 0, /* tag */ 0) in testBuilder() constant
56 .addEntry(key2, history2) in testBuilder()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
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()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/data/
DPreferenceControllerState.java164 protected static boolean keyEquals(String[] key1, String[] key2) { in keyEquals() argument
165 return Arrays.equals(key1, key2); in keyEquals()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DAesXCbcImpl.java72 byte[] key2 = encryptAesBlock(keyBytes, HexDump.hexStringToByteArray(KEY2_SEED_HEX_STRING)); in mac()
104 message = xorByteArrays(message, key2); in mac()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DCredential.java1274 private static boolean isPrivateKeyEquals(PrivateKey key1, PrivateKey key2) { in isPrivateKeyEquals() argument
1275 if (key1 == null && key2 == null) { in isPrivateKeyEquals()
1280 if (key1 == null || key2 == null) { in isPrivateKeyEquals()
1284 return TextUtils.equals(key1.getAlgorithm(), key2.getAlgorithm()) && in isPrivateKeyEquals()
1285 Arrays.equals(key1.getEncoded(), key2.getEncoded()); in isPrivateKeyEquals()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCandidates.java762 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromWifiConfiguration(config); in validConfigAndScanDetail() local
763 if (!key1.equals(key2)) { in validConfigAndScanDetail()
764 return failure(key1, key2); in validConfigAndScanDetail()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsCollectionTest.java593 final Key key2 = new Key(Set.of(testIdent), 1, 0, 0); in testRemoveHistoryBefore() local
614 .addEntry(key2, history2) in testRemoveHistoryBefore()
621 expectedEntries.put(key2, history2); in testRemoveHistoryBefore()
635 cutoff1Entries1.put(key2, history2); in testRemoveHistoryBefore()
645 cutoffEntries2.put(key2, history2); in testRemoveHistoryBefore()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobTest.java371 String key2 = "key2"; in addTestData() local
377 new VendorData.Builder().setKey(key2).setData(new byte[10]).build(), in addTestData()
387 List<String> retainedKeys = List.of(key1, key2, KEY_LARGE, KEY_LARGE_2); in addTestData()
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp403 ConfigKey key2(2000, configId); // shell uid in TEST_F() local
404 processor->OnConfigUpdated(configAddedTimeNs + 1 * NS_PER_SEC, key2, config); in TEST_F()
427 dbutils::deleteDb(key2); in TEST_F()
431 ConfigKey key2(config_app_uid + 1, configId); in TEST_F() local
432 processor->OnConfigUpdated(configAddedTimeNs + 1 * NS_PER_SEC, key2, config); in TEST_F()
460 dbutils::deleteDb(key2); in TEST_F()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DRkpdDatabaseTest.java194 ProvisionedKey key2 = new ProvisionedKey(TEST_KEY_BLOB_2, TEST_HAL_1, TEST_KEY_BLOB_2, in testGetTotalExpiringKeysForIrpc() local
198 mKeyDao.insertKeys(List.of(key1, key2, key3)); in testGetTotalExpiringKeysForIrpc()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java49 static final int[] PIN_PAD_DIGIT_KEYS = {R.id.key0, R.id.key1, R.id.key2, R.id.key3,
/packages/apps/Car/SystemUI/src/com/android/systemui/car/biometrics/
DPinPadView.java52 static final int[] PIN_PAD_DIGIT_KEYS = {R.id.key0, R.id.key1, R.id.key2, R.id.key3,

12