/packages/modules/Connectivity/netd/ |
D | BpfHandlerTest.cpp | 38 constexpr uint32_t TEST_TAG = 42; variable 140 int v4socket = setUpSocketAndTag(AF_INET, &sockCookie, TEST_TAG, TEST_UID, TEST_UID); in TEST_F() 141 expectUidTag(sockCookie, TEST_UID, TEST_TAG); in TEST_F() 149 int v4socket = setUpSocketAndTag(AF_INET, &sockCookie, TEST_TAG, TEST_UID, TEST_UID); in TEST_F() 150 expectUidTag(sockCookie, TEST_UID, TEST_TAG); in TEST_F() 151 ASSERT_EQ(0, mBh.tagSocket(v4socket, TEST_TAG + 1, TEST_UID + 1, TEST_UID + 1)); in TEST_F() 152 expectUidTag(sockCookie, TEST_UID + 1, TEST_TAG + 1); in TEST_F() 158 int v4socket1 = setUpSocketAndTag(AF_INET, &sockCookie1, TEST_TAG, TEST_UID, TEST_UID); in TEST_F() 159 setUpSocketAndTag(AF_INET, &sockCookie2, TEST_TAG, TEST_UID, TEST_UID); in TEST_F() 160 expectUidTag(sockCookie1, TEST_UID, TEST_TAG); in TEST_F() [all …]
|
D | BpfBaseTest.cpp | 50 constexpr uint32_t TEST_TAG = 42; variable 71 ASSERT_EQ(0, qtaguid_tagSocket(sock, TEST_TAG, TEST_UID)); in TEST_F() 75 ASSERT_EQ(TEST_TAG, tagResult.value().tag); in TEST_F() 89 ASSERT_EQ(0, qtaguid_tagSocket(sock, TEST_TAG, TEST_UID)); in TEST_F() 93 ASSERT_EQ(TEST_TAG, tagResult.value().tag); in TEST_F()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStatsTest.cpp | 52 constexpr uint32_t TEST_TAG = 42; variable 148 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F() 177 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F() 304 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 305 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX2, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 306 populateFakeStats(TEST_UID1, TEST_TAG + 1, IFACE_INDEX1, TEST_COUNTERSET0, value1, in TEST_F() 308 populateFakeStats(TEST_UID2, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 451 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX1, TEST_COUNTERSET0, value1, mFakeStatsMap); in TEST_F() 455 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines[1]); in TEST_F() 459 populateFakeStats(TEST_UID1, TEST_TAG, IFACE_INDEX2, TEST_COUNTERSET0, value2, mFakeStatsMap); in TEST_F() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | SettingsFragmentTestCase.java | 62 protected static final String TEST_TAG = "test_tag"; field in SettingsFragmentTestCase 167 mFragment.showDialog(dialogFragment, TEST_TAG); in showDialog_withTag_launchesDialogFragment() 168 verify(dialogFragment).show(mFragment.getFragmentManager(), TEST_TAG); in showDialog_withTag_launchesDialogFragment() local 176 mFragment.showDialog(dialogFragment, TEST_TAG); in findDialogByTag_retrieveOriginalDialog_returnsDialog() 179 assertThat(mFragment.findDialogByTag(TEST_TAG)).isEqualTo(dialogFragment); in findDialogByTag_retrieveOriginalDialog_returnsDialog() 188 mFragment.getFragmentManager().beginTransaction().add(fragment, TEST_TAG).commit(); in findDialogByTag_notDialogFragment_returnsNull() 189 assertThat(mFragment.findDialogByTag(TEST_TAG)).isNull(); in findDialogByTag_notDialogFragment_returnsNull() 196 assertThat(mFragment.findDialogByTag(TEST_TAG)).isNull(); in findDialogByTag_noSuchFragment_returnsNull()
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | NetworkStatsIntegrationTest.kt | 69 private const val TEST_TAG = 0xF00D in <lambda>() constant 241 TEST_TAG in <lambda>() 414 val taggedSummary = getTaggedNetworkSummary(iface, TEST_TAG) in <lambda>() 415 val taggedUid = getUidDetail(iface, TEST_TAG) in <lambda>()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTest.java | 184 private static final String TEST_TAG = "TestTag"; field in WifiMetricsTest 5494 new int[]{TEST_UID}, new String[]{TEST_TAG}, 100000, true, false, false); in testWifiLockActiveSession() 5497 new String[]{TEST_TAG}, in testWifiLockActiveSession() 5502 new int[]{TEST_UID}, new String[]{TEST_TAG}, 10000, true, true, false); in testWifiLockActiveSession() 5505 new String[]{TEST_TAG}, in testWifiLockActiveSession() 5510 new int[]{TEST_UID}, new String[]{TEST_TAG}, 10000000, true, true, true); in testWifiLockActiveSession() 5513 new String[]{TEST_TAG}, in testWifiLockActiveSession() 5518 new int[]{TEST_UID}, new String[]{TEST_TAG}, 1000, false, false, false); in testWifiLockActiveSession() 5521 new String[]{TEST_TAG}, in testWifiLockActiveSession() 5526 new int[]{TEST_UID}, new String[]{TEST_TAG}, 90000, false, false, false); in testWifiLockActiveSession() [all …]
|