Home
last modified time | relevance | path

Searched refs:instant (Results 1 – 25 of 31) sorted by relevance

12

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DSplitTests.java237 private void testSingleBase(boolean instant) throws Exception { in testSingleBase() argument
238 new InstallMultiple(instant).addFile(APK).run(); in testSingleBase()
252 private void testDensitySingle(boolean instant) throws Exception { in testDensitySingle() argument
253 new InstallMultiple(instant).addFile(APK).addFile(APK_mdpi).run(); in testDensitySingle()
267 private void testDensityAll(boolean instant) throws Exception { in testDensityAll() argument
268 … new InstallMultiple(instant).addFile(APK).addFile(APK_mdpi).addFile(APK_hdpi).addFile(APK_xhdpi) in testDensityAll()
287 private void testDensityBest(boolean instant) throws Exception { in testDensityBest() argument
288 new InstallMultiple(instant).addFile(APK).addFile(APK_mdpi).run(); in testDensityBest()
292 new InstallMultiple(instant).inheritFrom(PKG).addFile(APK_xxhdpi).run(); in testDensityBest()
310 private void testApi(boolean instant) throws Exception { in testApi() argument
[all …]
DMajorVersionTest.java62 private void testInstallMinorVersion(boolean instant) throws Exception { in testInstallMinorVersion() argument
63 new InstallMultiple(instant).addFile(APK_000000000000ffff).run(); in testInstallMinorVersion()
78 private void testInstallMajorVersion(boolean instant) throws Exception { in testInstallMajorVersion() argument
79 new InstallMultiple(instant).addFile(APK_000000ff00000000).run(); in testInstallMajorVersion()
94 private void testInstallUpdateAcrossMinorMajorVersion(boolean instant) throws Exception { in testInstallUpdateAcrossMinorMajorVersion() argument
95 new InstallMultiple(instant).addFile(APK_000000000000ffff).run(); in testInstallUpdateAcrossMinorMajorVersion()
98 new InstallMultiple(instant).addFile(APK_00000000ffffffff).run(); in testInstallUpdateAcrossMinorMajorVersion()
101 new InstallMultiple(instant).addFile(APK_000000ff00000000).run(); in testInstallUpdateAcrossMinorMajorVersion()
104 new InstallMultiple(instant).addFile(APK_000000ffffffffff).run(); in testInstallUpdateAcrossMinorMajorVersion()
119 private void testInstallDowngradeAcrossMajorMinorVersion(boolean instant) throws Exception { in testInstallDowngradeAcrossMajorMinorVersion() argument
[all …]
DUseProcessTest.java68 private void testInstallUsePackageSuccess(boolean instant) throws Exception { in testInstallUsePackageSuccess() argument
69 new InstallMultiple(instant).addFile(APK_SUCCESS).run(); in testInstallUsePackageSuccess()
85 private void testInstallUsePackageFailApplication(boolean instant) throws Exception { in testInstallUsePackageFailApplication() argument
86 new InstallMultiple(instant).addFile(APK_FAIL_APPLICATION).runExpectingFailure( in testInstallUsePackageFailApplication()
102 private void testInstallUsePackageFailActivity(boolean instant) throws Exception { in testInstallUsePackageFailActivity() argument
103 new InstallMultiple(instant).addFile(APK_FAIL_ACTIVITY).runExpectingFailure( in testInstallUsePackageFailActivity()
119 private void testInstallUsePackageFailService(boolean instant) throws Exception { in testInstallUsePackageFailService() argument
120 new InstallMultiple(instant).addFile(APK_FAIL_SERVICE).runExpectingFailure( in testInstallUsePackageFailService()
136 private void testInstallUsePackageFailReceiver(boolean instant) throws Exception { in testInstallUsePackageFailReceiver() argument
137 new InstallMultiple(instant).addFile(APK_FAIL_RECEIVER).runExpectingFailure( in testInstallUsePackageFailReceiver()
[all …]
DIsolatedSplitsTests.java97 private void testInstallBase(boolean instant) throws Exception { in testInstallBase() argument
98 new InstallMultiple(instant).addFile(APK_BASE).run(); in testInstallBase()
114 private void testInstallBaseAndConfigSplit(boolean instant) throws Exception { in testInstallBaseAndConfigSplit() argument
115 new InstallMultiple(instant).addFile(APK_BASE).addFile(APK_BASE_pl).run(); in testInstallBaseAndConfigSplit()
131 private void testInstallMissingDependency_usesSplit(boolean instant) throws Exception { in testInstallMissingDependency_usesSplit() argument
132 new InstallMultiple(instant).addFile(APK_BASE).addFile(APK_FEATURE_B).runExpectingFailure(); in testInstallMissingDependency_usesSplit()
147 private void testInstallMissingDependency_configForSplit(boolean instant) throws Exception { in testInstallMissingDependency_configForSplit() argument
148 new InstallMultiple(instant).addFile(APK_BASE).addFile( in testInstallMissingDependency_configForSplit()
159 private void testInstallOneFeatureSplit(boolean instant) throws Exception { in testInstallOneFeatureSplit() argument
160 new InstallMultiple(instant).addFile(APK_BASE).addFile(APK_FEATURE_A).run(); in testInstallOneFeatureSplit()
[all …]
DBaseAppSecurityTest.java56 protected void installTestAppForUser(String apk, boolean instant, int userId) throws Exception { in installTestAppForUser() argument
60 new InstallMultiple(instant) in installTestAppForUser()
69 String testMethodName, boolean instant) throws DeviceNotAvailableException { in runDeviceTests() argument
71 if (instant) { in runDeviceTests()
93 public InstallMultiple(boolean instant) { in InstallMultiple() argument
94 this(instant, true); in InstallMultiple()
96 public InstallMultiple(boolean instant, boolean grantPermissions) { in InstallMultiple() argument
98 addArg(instant ? "--instant" : ""); in InstallMultiple()
DPackageResolutionHostTest.java59 private void testResolveOrderedActivity(boolean instant) throws Exception { in testResolveOrderedActivity() argument
60 new InstallMultiple(instant) in testResolveOrderedActivity()
77 private void testResolveOrderedService(boolean instant) throws Exception { in testResolveOrderedService() argument
78 new InstallMultiple(instant) in testResolveOrderedService()
95 private void testResolveOrderedReceiver(boolean instant) throws Exception { in testResolveOrderedReceiver() argument
96 new InstallMultiple(instant) in testResolveOrderedReceiver()
DAppSecurityTests.java130 private void testAppUpgradeDifferentCerts(boolean instant) throws Exception { in testAppUpgradeDifferentCerts() argument
136 new InstallMultiple(instant).addFile(SIMPLE_APP_APK).run(); in testAppUpgradeDifferentCerts()
137 new InstallMultiple(instant).addFile(SIMPLE_APP_DIFF_CERT_APK) in testAppUpgradeDifferentCerts()
158 private void testAppFailAccessPrivateData(boolean instant) in testAppFailAccessPrivateData() argument
168 new InstallMultiple(instant).addFile(APP_ACCESS_DATA_APK).run(); in testAppFailAccessPrivateData()
169 runDeviceTests(APP_ACCESS_DATA_PKG, null, null, instant); in testAppFailAccessPrivateData()
189 private void testUninstallRemovesData(boolean instant) throws Exception { in testUninstallRemovesData() argument
194 new InstallMultiple(instant).addFile(APP_WITH_DATA_APK).run(); in testUninstallRemovesData()
200 new InstallMultiple(instant).addFile(APP_WITH_DATA_APK).run(); in testUninstallRemovesData()
366 private void testAdbInstallFile(boolean instant) throws Exception { in testAdbInstallFile() argument
[all …]
DInstantCookieHostTest.java110 private String installPackage(String apk, boolean replace, boolean instant) throws Exception { in installPackage() argument
112 instant ? "--instant" : "--full"); in installPackage()
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/
DClassloaderSplitsTest.java69 private void testBaseClassLoader(boolean instant) throws Exception { in testBaseClassLoader() argument
70 new InstallMultiple(instant).addApk(APK_BASE).run(); in testBaseClassLoader()
84 private void testFeatureAClassLoader(boolean instant) throws Exception { in testFeatureAClassLoader() argument
85 new InstallMultiple(instant).addApk(APK_BASE).addApk(APK_FEATURE_A).run(); in testFeatureAClassLoader()
100 private void testFeatureBClassLoader(boolean instant) throws Exception { in testFeatureBClassLoader() argument
101 new InstallMultiple(instant) in testFeatureBClassLoader()
113 private void testReceiverClassLoaders(boolean instant) throws Exception { in testReceiverClassLoaders() argument
114 new InstallMultiple(instant) in testReceiverClassLoaders()
130 private void testServiceClassLoaders(boolean instant) throws Exception { in testServiceClassLoaders() argument
131 new InstallMultiple(instant) in testServiceClassLoaders()
[all …]
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUsesLibraryHostTest.java59 private void testUsesLibrary(boolean instant) throws Exception { in testUsesLibrary() argument
60 new InstallMultiple(instant).addApk(APK).run(); in testUsesLibrary()
69 public void testMissingLibrary(boolean instant) throws Exception { in testMissingLibrary() argument
70 new InstallMultiple(instant).addApk(APK).run(); in testMissingLibrary()
79 public void testDuplicateLibrary(boolean instant) throws Exception { in testDuplicateLibrary() argument
80 new InstallMultiple(instant).addApk(APK).run(); in testDuplicateLibrary()
88 public InstallMultiple(boolean instant) { in InstallMultiple() argument
90 addArg(instant ? "--instant" : ""); in InstallMultiple()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/common/
DShellCommandUtils.java52 boolean instant) { in installExistingPackageAsUser() argument
53 return "pm install-existing --wait --user " + userId + (instant ? " --instant " in installExistingPackageAsUser()
83 public static String installExisting(String packageName, int userId, boolean instant) { in installExisting() argument
86 if (instant) { in installExisting()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DInputMethodServiceLifecycleTest.java130 String apkFileName, String packageName, boolean instant) throws Exception { in installPossibleInstantPackage() argument
131 if (instant) { in installPossibleInstantPackage()
138 private void testSwitchToHandwritingIme(boolean instant) throws Exception { in testSwitchToHandwritingIme() argument
141 EditTextAppConstants.APK, EditTextAppConstants.PACKAGE, instant); in testSwitchToHandwritingIme()
172 private void testSwitchToNextInput(boolean instant, boolean imeForceQueryable) in testSwitchToNextInput() argument
176 EditTextAppConstants.APK, EditTextAppConstants.PACKAGE, instant); in testSwitchToNextInput()
226 private void testSwitchToPreviousInput(boolean instant, boolean imeForceQueryable) in testSwitchToPreviousInput() argument
230 EditTextAppConstants.APK, EditTextAppConstants.PACKAGE, instant); in testSwitchToPreviousInput()
278 private void testInputUnbindsOnImeStopped(boolean instant) throws Exception { in testInputUnbindsOnImeStopped() argument
281 EditTextAppConstants.APK, EditTextAppConstants.PACKAGE, instant); in testInputUnbindsOnImeStopped()
[all …]
DShellCommandFromAppTest.java43 private void runDeviceTestMethodWithoutHiddenApiCheck(TestInfo testInfo, boolean instant) in runDeviceTestMethodWithoutHiddenApiCheck() argument
45 if (instant) { in runDeviceTestMethodWithoutHiddenApiCheck()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java107 private void testGetActiveSessions_primaryUser(boolean instant) throws Exception { in testGetActiveSessions_primaryUser() argument
111 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, userIdForTesting, instant); in testGetActiveSessions_primaryUser()
144 private void testGetActiveSessions_additionalUser(boolean instant) throws Exception { in testGetActiveSessions_additionalUser() argument
153 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_additionalUser()
177 private void testGetActiveSessions_restrictedProfiles(boolean instant) in testGetActiveSessions_restrictedProfiles() argument
189 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_restrictedProfiles()
213 private void testGetActiveSessions_managedProfiles(boolean instant) in testGetActiveSessions_managedProfiles() argument
226 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUser, instant); in testGetActiveSessions_managedProfiles()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java136 public static AutoCloseable launchSync(boolean instant, long timeout) { in launchSync() argument
137 return launchSync(instant, timeout, null); in launchSync()
148 public static AutoCloseable launchSync(boolean instant, long timeout, in launchSync() argument
151 if (instant) { in launchSync()
187 public static AutoCloseable launchAsUser(int userId, boolean instant, in launchAsUser() argument
190 if (instant) { in launchAsUser()
226 public static AutoCloseable launchSyncAsUser(int userId, boolean instant, in launchSyncAsUser() argument
241 if (instant) { in launchSyncAsUser()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostJUnit4DeviceTest.java100 private void installPackage(boolean instant) throws Exception { in installPackage() argument
101 installPackage(TEST_APP, instant ? new String[]{"--instant"} : new String[0]); in installPackage()
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp2/src/test/instant/cookie/
DCookieTest.java17 package test.instant.cookie;
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DPackageVisibilityTest.java73 private void testTargetPackageIsVisibleFromIme(boolean instant) throws Exception { in testTargetPackageIsVisibleFromIme() argument
81 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testTargetPackageIsVisibleFromIme()
DInputConnectionLifecycleTest.java309 final boolean instant = in testCloseConnectionWithLosingWindowFocus()
311 try (AutoCloseable unused = MockTestActivityUtil.launchSync(instant, TIMEOUT)) { in testCloseConnectionWithLosingWindowFocus()
DInputMethodStartInputLifecycleTest.java250 final boolean instant = in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
266 MockTestActivityUtil.launchSync(instant, TIMEOUT, Map.of( in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
345 final boolean instant = in testInvalidateInputBeforeInputMethodSessionBecomesAvailable()
348 try (AutoCloseable closeable = MockTestActivityUtil.launchSync(instant, in testInvalidateInputBeforeInputMethodSessionBecomesAvailable()
/cts/hostsidetests/ui/src/android/ui/cts/
DInstallTimeTest.java87 private void testInstallTime(boolean instant) throws Exception { in testInstallTime() argument
100 {AbiUtils.createAbiFlag(mAbi.getName()), instant ? "--instant" : ""}; in testInstallTime()
DTaskSwitchingTest.java84 private void installPackages(boolean instant) throws Exception { in installPackages() argument
88 instant && !PACKAGES[i].contains("control") ? "--instant" : ""}; in installPackages()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DSeekTestPlayerListener.java52 long seed = Clock.tick(Clock.systemUTC(), Duration.ofDays(1)).instant().toEpochMilli(); in getSeed()
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/
DCookieTest.java17 package test.instant.cookie;
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserTest.java438 boolean instant = false; in isInstantApp()
446 instant = true; in isInstantApp()
448 return instant; in isInstantApp()

12