Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResultMatchInfoTest.java99 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in testEqualityRulesForTransitionMode() local
104 assertTrue(key1.equals(key1)); in testEqualityRulesForTransitionMode()
107 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
108 assertTrue(key2.equals(key1)); in testEqualityRulesForTransitionMode()
111 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
113 assertTrue(key1.equals(key3)); in testEqualityRulesForTransitionMode()
116 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
117 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
118 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
119 assertTrue(key1.equals(key2)); in testEqualityRulesForTransitionMode()
[all …]
DWifiCandidatesTest.java141 WifiCandidates.Key key1 = new WifiCandidates.Key(matchInfo1, mac1, 1); in testKeyEquivalence() local
143 assertFalse(key1.equals(null)); in testKeyEquivalence()
144 assertFalse(key1.equals((Integer) 0)); in testKeyEquivalence()
146 assertEquals(key1, new WifiCandidates.Key(matchInfo1, mac1, 1)); in testKeyEquivalence()
148 assertEquals(key1, new WifiCandidates.Key(matchInfo1Prime, mac1, 1)); in testKeyEquivalence()
150 assertEquals(key1.hashCode(), key1.hashCode()); in testKeyEquivalence()
151 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1, mac1, 1).hashCode()); in testKeyEquivalence()
152 assertEquals(key1.hashCode(), new WifiCandidates.Key(matchInfo1Prime, mac1, 1).hashCode()); in testKeyEquivalence()
155 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo2, mac1, 1))); in testKeyEquivalence()
156 assertFalse(key1.equals(new WifiCandidates.Key(matchInfo1, mac2, 1))); in testKeyEquivalence()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DObjectCounterTest.java43 public int key1; field in ObjectCounterTest.TestKey
47 public TestKey(int key1, String key2, boolean key3) { in TestKey() argument
48 this.key1 = key1; in TestKey()
59 return key1 == testKey.key1 in equals()
67 return Objects.hash(key1, key2, key3); in hashCode()
74 + "key1=" + key1 in toString()
85 public int key1; field in ObjectCounterTest.TestKeyProto
90 public TestKeyProto(int key1, String key2, boolean key3, int count) { in TestKeyProto() argument
91 this.key1 = key1; in TestKeyProto()
102 return key1 == that.key1 in equals()
[all …]
/frameworks/base/cmds/statsd/tests/metrics/
DMaxDurationTracker_test.cpp46 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); variable
52 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST() local
70 tracker.noteStart(key1, true, bucketStartTimeNs, ConditionKey()); in TEST()
72 tracker.noteStart(key1, true, bucketStartTimeNs + 3, ConditionKey()); in TEST()
74 tracker.noteStop(key1, bucketStartTimeNs + 10, false); in TEST()
88 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST() local
106 tracker.noteStart(key1, true, bucketStartTimeNs + 1, ConditionKey()); in TEST()
125 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST() local
166 const HashableDimensionKey key1 = getMockedDimensionKey(TagId, 1, "1"); in TEST() local
203 const HashableDimensionKey conditionDimKey = key1; in TEST()
[all …]
DOringDurationTracker_test.cpp192 ConditionKey key1; in TEST() local
193 key1[StringToId("APP_BACKGROUND")] = kConditionKey1; in TEST()
195 EXPECT_CALL(*wizard, query(_, key1, _, _, _, _)) // #4 in TEST()
210 tracker.noteStart(kEventKey1, true, eventStartTimeNs, key1); in TEST()
230 ConditionKey key1; in TEST() local
231 key1[StringToId("APP_BACKGROUND")] = kConditionKey1; in TEST()
233 EXPECT_CALL(*wizard, query(_, key1, _, _, _, _)) in TEST()
250 tracker.noteStart(kEventKey1, true, eventStartTimeNs, key1); in TEST()
272 ConditionKey key1; in TEST() local
273 key1[StringToId("APP_BACKGROUND")] = kConditionKey1; in TEST()
[all …]
DEventMetricProducer_test.cpp106 ConditionKey key1; in TEST() local
107key1[StringToId("APP_IN_BACKGROUND_PER_UID")] = {getMockedDimensionKey(conditionTagId, 2, "111")}; in TEST()
116 EXPECT_CALL(*wizard, query(_, key1, _, _, _, _)).WillOnce(Return(ConditionState::kFalse)); in TEST()
DCountMetricProducer_test.cpp178 ConditionKey key1; in TEST() local
179 key1[StringToId("APP_IN_BACKGROUND_PER_UID")] = in TEST()
190 EXPECT_CALL(*wizard, query(_, key1, _, _, _, _)).WillOnce(Return(ConditionState::kFalse)); in TEST()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/storage/
DTertiaryKeysTableTest.java90 TertiaryKey key1 = generateTertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local
93 long primaryKey1 = mTertiaryKeysTable.addKey(key1); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey()
99 mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).get(), key1); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() local
130 TertiaryKey key1 = generateTertiaryKey(SECONDARY_ALIAS, PACKAGE_NAME); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local
131 mTertiaryKeysTable.addKey(key1); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary()
143 assertTertiaryKeysEqual(keysByPackageName.get(PACKAGE_NAME), key1); in getAllKeys_withMatchingKeys_returnsAllKeysWrappedWithSecondary() local
/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java94 int key1 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testResolveService() local
96 sendResponse(NsdManager.RESOLVE_SERVICE_FAILED, err, key1, null); in testResolveService()
116 int key1 = verifyRequest(NsdManager.RESOLVE_SERVICE); in testParallelResolveService() local
122 sendResponse(NsdManager.RESOLVE_SERVICE_SUCCEEDED, 0, key1, reply); in testParallelResolveService()
141 int key1 = verifyRequest(NsdManager.REGISTER_SERVICE); in testRegisterService() local
151 sendResponse(NsdManager.REGISTER_SERVICE_FAILED, err, key1, request1); in testRegisterService()
199 int key1 = verifyRequest(NsdManager.DISCOVER_SERVICES); in testDiscoverService() local
202 sendResponse(NsdManager.DISCOVER_SERVICES_FAILED, err, key1, null); in testDiscoverService()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGeneratorTest.java68 SecretKey key1 = mTertiaryKeyGenerator.generate(); in generate_generatesNewKeys() local
71 assertThat(key1).isNotEqualTo(key2); in generate_generatesNewKeys()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationRequestStatisticsTest.java98 PackageProviderKey key1 = new PackageProviderKey(PACKAGE1, PROVIDER1); in testSinglePackage_multipleProviders() local
99 PackageStatistics stats1 = mStatistics.statistics.get(key1); in testSinglePackage_multipleProviders()
129 PackageProviderKey key1 = new PackageProviderKey(PACKAGE1, PROVIDER1); in testMultiplePackages() local
130 PackageStatistics stats1 = mStatistics.statistics.get(key1); in testMultiplePackages()
/frameworks/av/camera/
DCameraParameters2.cpp149 status_t CameraParameters2::compareSetOrder(const char *key1, const char *key2, in compareSetOrder() argument
151 if (key1 == NULL) { in compareSetOrder()
162 ssize_t index1 = mMap.indexOfKey(String8(key1)); in compareSetOrder()
165 ALOGW("%s: Key1 (%s) was not set", __FUNCTION__, key1); in compareSetOrder()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiCandidates.java362 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(config); in add() local
364 if (!key1.equals(key2)) return failure(key1, key2); in add()
365 Key key = new Key(key1, bssid, config.networkId); in add()
/frameworks/base/cmds/bootanimation/iot/
DBootParameters_test.cpp152 "param_names":["key1", "key2"], in TEST()
187 "param_names":["key1", "key2"], in TEST()
205 "param_names":["key1", "key2"], in TEST()
/frameworks/base/core/tests/coretests/assets/
Dbackup_mock.gld1 key1:
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DCredential.java1205 private static boolean isPrivateKeyEquals(PrivateKey key1, PrivateKey key2) { in isPrivateKeyEquals() argument
1206 if (key1 == null && key2 == null) { in isPrivateKeyEquals()
1211 if (key1 == null || key2 == null) { in isPrivateKeyEquals()
1215 return TextUtils.equals(key1.getAlgorithm(), key2.getAlgorithm()) && in isPrivateKeyEquals()
1216 Arrays.equals(key1.getEncoded(), key2.getEncoded()); in isPrivateKeyEquals()
/frameworks/av/camera/include/camera/
DCameraParameters2.h60 status_t compareSetOrder(const char *key1, const char *key2,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_test.cc640 int32 key1 = 0; in TEST_P() local
648 map1[key1] = value1a; in TEST_P()
655 map2[key1] = value1b; in TEST_P()
743 int32 key1 = 0; in TEST_P() local
749 map[key1] = value1; in TEST_P()
758 EXPECT_TRUE(map_.end() == map_.find(key1)); in TEST_P()
779 int32 key1 = 0; in CopyConstructorHelper() local
785 map[key1] = value1; in CopyConstructorHelper()
793 EXPECT_EQ(value1, other.at(key1)); in CopyConstructorHelper()
807 int32 key1 = 0; in TEST_P() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dhash.h263 bool operator()(const Key& key1, const Key& key2) const {
264 return !equalkey_(key1, key2);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DMapForProto2LiteTest.java516 private static <K, V> Map<K, V> newMap(K key1, V value1) { in newMap() argument
518 map.put(key1, value1); in newMap()
522 private static <K, V> Map<K, V> newMap(K key1, V value1, K key2, V value2) { in newMap() argument
524 map.put(key1, value1); in newMap()
DMapForProto2Test.java677 KeyType key1, ValueType value1, KeyType key2, ValueType value2) { in mapForValues() argument
679 map.put(key1, value1); in mapForValues()
1146 private static <K, V> Map<K, V> newMap(K key1, V value1) { in newMap() argument
1148 map.put(key1, value1); in newMap()
1152 private static <K, V> Map<K, V> newMap(K key1, V value1, K key2, V value2) { in newMap() argument
1154 map.put(key1, value1); in newMap()
DMapTest.java789 KeyType key1, ValueType value1, KeyType key2, ValueType value2) { in mapForValues() argument
791 map.put(key1, value1); in mapForValues()
1310 private static <K, V> Map<K, V> newMap(K key1, V value1) { in newMap() argument
1312 map.put(key1, value1); in newMap()
1316 private static <K, V> Map<K, V> newMap(K key1, V value1, K key2, V value2) { in newMap() argument
1318 map.put(key1, value1); in newMap()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPINView.java95 findViewById(R.id.key1), findViewById(R.id.key2), in onFinishInflate()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs369 var key1 = 10; in MapNonContiguousEntries()
374 output.WriteInt32(key1); in MapNonContiguousEntries()
402 MapInt32Int32 = { { key1, value1 }, { key3, value3 } }, in MapNonContiguousEntries()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBRootObject.m88 const char *key1 = (const char *)value1;
90 return strcmp(key1, key2) == 0;

12