Home
last modified time | relevance | path

Searched refs:testInfo (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Connectivity/staticlibs/testutils/host/com/android/testutils/
DConnectivityTestTargetPreparer.kt67 override fun setUp(testInfo: TestInformation) { in <lambda>()
69 disableGmsUpdate(testInfo) in <lambda>()
70 originalTestChainEnabled = getTestChainEnabled(testInfo) in <lambda>()
71 originalUpdaterPkgsStatus.putAll(getUpdaterPkgsStatus(testInfo)) in <lambda>()
73 testInfo, in <lambda>()
77 runConnectivityCheckApk(testInfo) in <lambda>()
78 refreshTime(testInfo) in <lambda>()
81 private fun runConnectivityCheckApk(testInfo: TestInformation) { in <lambda>()
85 installer.setUp(testInfo) in <lambda>()
96 runTestMethod(testInfo, it) in <lambda>()
[all …]
DDisableConfigSyncTargetPreparer.kt32 override fun setUp(testInfo: TestInformation) { in setUp()
34 syncDisabledOriginalValue = readSyncDisabledOriginalValue(testInfo) in setUp()
37 testInfo.exec("cmd device_config set_sync_disabled_for_tests until_reboot") in setUp()
40 override fun tearDown(testInfo: TestInformation, e: Throwable?) { in tearDown()
43 testInfo.exec("cmd device_config set_sync_disabled_for_tests $syncDisabledOriginalValue") in tearDown()
46 private fun readSyncDisabledOriginalValue(testInfo: TestInformation): String { in readSyncDisabledOriginalValue()
47 return when (val reply = testInfo.exec("cmd device_config get_sync_disabled_for_tests")) { in readSyncDisabledOriginalValue()
50 else -> when (testInfo.exec("cmd device_config is_sync_disabled_for_tests")) { in readSyncDisabledOriginalValue()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java73 final TcpKeepalivePacketDataParcelable testInfo = new TcpKeepalivePacketDataParcelable(); in testFromTcpKeepaliveStableParcelable() local
74 testInfo.srcAddress = IPV4_KEEPALIVE_SRC_ADDR; in testFromTcpKeepaliveStableParcelable()
75 testInfo.srcPort = srcPort; in testFromTcpKeepaliveStableParcelable()
76 testInfo.dstAddress = IPV4_KEEPALIVE_DST_ADDR; in testFromTcpKeepaliveStableParcelable()
77 testInfo.dstPort = dstPort; in testFromTcpKeepaliveStableParcelable()
78 testInfo.seq = seq; in testFromTcpKeepaliveStableParcelable()
79 testInfo.ack = ack; in testFromTcpKeepaliveStableParcelable()
80 testInfo.rcvWnd = wnd; in testFromTcpKeepaliveStableParcelable()
81 testInfo.rcvWndScale = wndScale; in testFromTcpKeepaliveStableParcelable()
82 testInfo.tos = tos; in testFromTcpKeepaliveStableParcelable()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTrackerTest.java446 final TestKeepaliveInfo testInfo = new TestKeepaliveInfo(kpd); in doStartNattKeepalive() local
449 testInfo.socketKeepaliveCallback, mNai, kpd, intervalSeconds, in doStartNattKeepalive()
450 KeepaliveInfo.TYPE_NATT, testInfo.fd); in doStartNattKeepalive()
453 mAOOKeepaliveTracker.startNattKeepalive(mNai, testInfo.fd, intervalSeconds, in doStartNattKeepalive()
454 testInfo.socketKeepaliveCallback, srcAddress.toString(), srcPort, in doStartNattKeepalive()
456 testInfo.underpinnedNetwork); in doStartNattKeepalive()
459 return testInfo; in doStartNattKeepalive()
491 final TestKeepaliveInfo testInfo = doStartNattKeepalive(); in testAlarm() local
508 assertEquals(testInfo.socketKeepaliveCallback, mTestHandler.mLastAutoKi.getCallback()); in testAlarm()
509 assertEquals(testInfo.underpinnedNetwork, mTestHandler.mLastAutoKi.getUnderpinnedNetwork()); in testAlarm()
[all …]
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideNetworkTestCase.java44 public static void setUpOnceBase(TestInformation testInfo) throws Exception { in setUpOnceBase() argument
45 DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(testInfo.getDevice()); in setUpOnceBase()
48 uninstallPackage(testInfo, TEST_PKG, false); in setUpOnceBase()
49 installPackage(testInfo, testApk); in setUpOnceBase()
53 public static void tearDownOnceBase(TestInformation testInfo) in tearDownOnceBase() argument
55 uninstallPackage(testInfo, TEST_PKG, true); in tearDownOnceBase()
60 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() argument
62 assertNotNull(testInfo); in installPackage()
63 final int userId = testInfo.getDevice().getCurrentUser(); in installPackage()
72 installer.setUp(testInfo); in installPackage()
[all …]
/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideNetworkPolicyTestCase.java57 public static void setUpOnceBase(TestInformation testInfo) throws Exception { in setUpOnceBase() argument
58 uninstallPackage(testInfo, TEST_PKG, false); in setUpOnceBase()
59 installPackage(testInfo, TEST_APK); in setUpOnceBase()
63 public static void tearDownOnceBase(TestInformation testInfo) in tearDownOnceBase() argument
65 uninstallPackage(testInfo, TEST_PKG, true); in tearDownOnceBase()
70 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() argument
72 assertNotNull(testInfo); in installPackage()
73 final int userId = testInfo.getDevice().getCurrentUser(); in installPackage()
82 installer.setUp(testInfo); in installPackage()
85 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor(), e.getErrorId()); in installPackage()
[all …]
DHostsideConnOnActivityStartTest.java37 public static void setUpOnce(TestInformation testInfo) throws Exception { in setUpOnce() argument
38 uninstallPackage(testInfo, TEST_APP2_PKG, false); in setUpOnce()
39 installPackage(testInfo, TEST_APP2_APK); in setUpOnce()
43 public static void tearDownOnce(TestInformation testInfo) throws DeviceNotAvailableException { in tearDownOnce() argument
44 uninstallPackage(testInfo, TEST_APP2_PKG, true); in tearDownOnce()
/packages/modules/common/java/com/android/modules/targetprep/
DClasspathFetcher.java92 public void setUp(TestInformation testInfo) in setUp() argument
94 Objects.requireNonNull(testInfo.getDevice()); in setUp()
96 testInfo.properties().put(APEX_PKG_TAG, mApexPackage); in setUp()
99 if (testInfo.properties().containsKey(DEVICE_JAR_ARTIFACTS_TAG)) { in setUp()
104 testInfo.properties().put(DEVICE_JAR_ARTIFACTS_TAG, in setUp()
107 getClassesInClasspath(testInfo.getDevice(), BOOTCLASSPATH) in setUp()
109 getClassesInClasspath(testInfo.getDevice(), SYSTEMSERVERCLASSPATH) in setUp()
119 public void tearDown(TestInformation testInfo, Throwable e) { in tearDown() argument
122 final String path = testInfo.properties().get(DEVICE_JAR_ARTIFACTS_TAG); in tearDown()
130 testInfo.properties().remove(DEVICE_JAR_ARTIFACTS_TAG); in tearDown()
/packages/modules/Connectivity/tests/common/java/android/net/
DUnderlyingNetworkInfoTest.kt40 val testInfo = UnderlyingNetworkInfo(TEST_OWNER_UID, TEST_IFACE, TEST_IFACE_LIST) in testParcelUnparcel() constant
41 assertEquals(TEST_OWNER_UID, testInfo.getOwnerUid()) in testParcelUnparcel()
42 assertEquals(TEST_IFACE, testInfo.getInterface()) in testParcelUnparcel()
43 assertEquals(TEST_IFACE_LIST, testInfo.getUnderlyingInterfaces()) in testParcelUnparcel()
44 assertParcelingIsLossless(testInfo) in testParcelUnparcel()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/user/
DUserHelperTest.java125 UserInfo testInfo = newUser(userId); in testGrantAdminPermissions_nonAdmin() local
129 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantAdminPermissions_nonAdmin()
136 UserInfo testInfo = newUser(userId); in testGrantAdminPermissions_admin() local
140 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantAdminPermissions_admin()
148 UserInfo testInfo = newUser(testUserId); in testGrantingAdminPermissionsRemovesNonAdminRestrictions() local
153 UserHelper.grantAdminPermissions(mContext, testInfo.getUserHandle()); in testGrantingAdminPermissionsRemovesNonAdminRestrictions()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DSmsCbContactInfoTest.java64 SmsCbConcatInfo testInfo = new SmsCbConcatInfo( in testHasCode() local
66 assertNotSame(testInfo.hashCode(), mSmsCbConcatInfo.hashCode()); in testHasCode()
72 SmsCbConcatInfo testInfo = new SmsCbConcatInfo( in testEquals() local
74 assertFalse(testInfo.equals(mSmsCbConcatInfo)); in testEquals()
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/preparer/
DDisableMicrodroidDebugPolicyPreparer.java49 public void setUp(TestInformation testInfo) in setUp() argument
51 ITestDevice device = testInfo.getDevice(); in setUp()
73 public void tearDown(TestInformation testInfo, Throwable e) throws DeviceNotAvailableException { in tearDown() argument
74 ITestDevice device = testInfo.getDevice(); in tearDown()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/
DSdkSandboxShellHostTest.java59 public static void beforeClassWithDevice(TestInformation testInfo) throws Exception { in beforeClassWithDevice() argument
60 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice()
65 public static void afterClassWithDevice(TestInformation testInfo) throws Exception { in afterClassWithDevice() argument
66 testInfo.getDevice().disableAdbRoot(); in afterClassWithDevice()
DSdkSandboxLifecycleHostTest.java79 public static void beforeClassWithDevice(TestInformation testInfo) throws Exception { in beforeClassWithDevice() argument
80 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice()
85 public static void afterClassWithDevice(TestInformation testInfo) throws Exception { in afterClassWithDevice() argument
86 testInfo.getDevice().disableAdbRoot(); in afterClassWithDevice()
/packages/modules/Virtualization/authfs/tests/common/src/java/com/android/fs/common/
DAuthFsTestRule.java93 public static void setUpAndroid(TestInformation testInfo) throws Exception { in setUpAndroid() argument
94 assertNotNull(testInfo.getDevice()); in setUpAndroid()
95 if (!(testInfo.getDevice() instanceof TestDevice)) { in setUpAndroid()
99 sTestInfo = testInfo; in setUpAndroid()
/packages/modules/common/javatests/com/android/modules/conformanceframework/
DDuplicateClassesTest.java89 public static void setupOnce(TestInformation testInfo) throws Exception { in setupOnce() argument
91 testInfo.properties().get(ClasspathFetcher.DEVICE_JAR_ARTIFACTS_TAG)); in setupOnce()
92 sApexPackage = testInfo.properties().get(ClasspathFetcher.APEX_PKG_TAG); in setupOnce()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DAllApps.java362 final Bundle testInfo = mLauncher.getTestInfo(TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS); in getFreezeFlags() local
363 return testInfo == null ? 0 : testInfo.getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getFreezeFlags()
DLauncherInstrumentation.java2287 final Bundle testInfo = getTestInfo(TestProtocol.REQUEST_PID); in getPid() local
2288 return testInfo != null ? testInfo.getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD) : null; in getPid()
/packages/modules/Virtualization/authfs/tests/hosttests/java/src/com/android/fs/
DAuthFsHostTest.java76 public static void beforeClassWithDevice(TestInformation testInfo) throws Exception { in beforeClassWithDevice() argument
77 AuthFsTestRule.setUpAndroid(testInfo); in beforeClassWithDevice()
85 public static void afterClassWithDevice(TestInformation testInfo) in afterClassWithDevice() argument
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/
DTestHarness.h263 const ::testing::TestInfo* const testInfo = in getQuant8AllowedError() local
265 const std::string testCaseName = testInfo->test_case_name(); in getQuant8AllowedError()
266 const std::string testName = testInfo->name(); in getQuant8AllowedError()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestHarness.cpp46 const ::testing::TestInfo* const testInfo = in getQuant8AllowedError() local
48 const std::string testCaseName = testInfo->test_case_name(); in getQuant8AllowedError()
49 const std::string testName = testInfo->name(); in getQuant8AllowedError()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp179 const ::testing::TestInfo* const testInfo = in SetUp() local
181 mTestName = mTestName + testInfo->test_case_name() + "_" + testInfo->name(); in SetUp()