Home
last modified time | relevance | path

Searched refs:launcherApps (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/packagemanager/installedloadingprogess/apps/src/com/android/tests/loadingprogress/registerapp/
DMainActivity.java56 final LauncherApps launcherApps = getApplicationContext().getSystemService( in onCreate() local
58 if (launcherApps != null) { in onCreate()
59 launcherApps.registerCallback(callback, new Handler(getMainLooper())); in onCreate()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DLauncherAppsTest.java98 LauncherApps launcherApps = contextAsUser.getSystemService(LauncherApps.class); in shortcutIconDrawable_currentToOtherProfile_withUsersFullPermission_isNotNull() local
100 Drawable drawable = launcherApps.getShortcutIconDrawable(shortcuts.get(0), DENSITY_DEFAULT); in shortcutIconDrawable_currentToOtherProfile_withUsersFullPermission_isNotNull()
114 LauncherApps launcherApps = contextAsUser.getSystemService(LauncherApps.class); in shortcutIconDrawable_currentToOtherProfile_withoutUsersFullPermission_isNull() local
120 Drawable drawable = launcherApps.getShortcutIconDrawable(shortcuts.get(0), DENSITY_DEFAULT); in shortcutIconDrawable_currentToOtherProfile_withoutUsersFullPermission_isNull()
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java45 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in onCreate() local
46 final PinItemRequest request = launcherApps.getPinItemRequest(getIntent()); in onCreate()
88 final Drawable icon = launcherApps.getShortcutBadgedIconDrawable( in onCreate()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java142 LauncherApps launcherApps = (LauncherApps) getSystemService( in setup() local
146 launcherApps.unregisterCallback(mCallback); in setup()
152 launcherApps.registerCallback(mCallback, new Handler(mCallbackThread.getLooper())); in setup()
158 LauncherApps launcherApps = (LauncherApps) getSystemService( in teardown() local
162 launcherApps.unregisterCallback(mCallback); in teardown()
/cts/tests/tests/appwidget/packages/src/android/appwidget/cts/packages/
DAppWidgetConfirmPin.java38 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in onCreate() local
39 mRequest = launcherApps.getPinItemRequest(getIntent()); in onCreate()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDistractingPackageTest.java103 final LauncherApps launcherApps = mContext.getSystemService(LauncherApps.class); in testShouldHideFromSuggestions() local
105 launcherApps.shouldHideFromSuggestions(TEST_APP_PACKAGE_NAME, in testShouldHideFromSuggestions()
110 launcherApps.shouldHideFromSuggestions(TEST_APP_PACKAGE_NAME, in testShouldHideFromSuggestions()
DSuspendPackagesTest.java247 final LauncherApps launcherApps = mContext.getSystemService(LauncherApps.class); in testLauncherCallback() local
248 launcherApps.registerCallback(testCallback, new Handler(Looper.getMainLooper())); in testLauncherCallback()
254 launcherApps.unregisterCallback(testCallback); in testLauncherCallback()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java561 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in awaitLauncherAppsCallback() local
577 launcherApps.unregisterCallback(this); in awaitLauncherAppsCallback()
621 launcherApps.registerCallback(launcherAppsCallback); in awaitLauncherAppsCallback()
628 launcherApps.unregisterCallback(launcherAppsCallback); in awaitLauncherAppsCallback()
788 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in sendIsActivityEnabled() local
791 result.putBoolean(EXTRA_RETURN_RESULT, launcherApps.isActivityEnabled(componentName, in sendIsActivityEnabled()
801 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in sendGetSuspendedPackageLauncherExtras() local
805 launcherApps.getSuspendedPackageLauncherExtras(packageName, in sendGetSuspendedPackageLauncherExtras()
981 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in sendLauncherAppsShouldHideFromSuggestions() local
982 final boolean hideFromSuggestions = launcherApps.shouldHideFromSuggestions( in sendLauncherAppsShouldHideFromSuggestions()
[all …]
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DLauncherAppsEnumerationTests.java318 final LauncherApps launcherApps = sContext.getSystemService(LauncherApps.class); in sessionCallback_sessionOwner_canSeeSession() local
348 launcherApps.unregisterPackageInstallerSessionCallback(this); in sessionCallback_sessionOwner_canSeeSession()
353 launcherApps.registerPackageInstallerSessionCallback(sContext.getMainExecutor(), in sessionCallback_sessionOwner_canSeeSession()
432 final LauncherApps launcherApps = sContext.getSystemService(LauncherApps.class); in getAllPkgInstallerSessions_sessionOwner_canSeeSessions() local
433 final Integer[] sessionIds = launcherApps.getAllPackageInstallerSessions().stream() in getAllPkgInstallerSessions_sessionOwner_canSeeSessions()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DSplashscreenTests.java510 final LauncherApps launcherApps = mContext.getSystemService(LauncherApps.class); in testShortcutChangeTheme() local
512 assumeTrue(launcherApps != null && shortcutManager != null); in testShortcutChangeTheme()
526 runWithShellPermission(() -> launcherApps.startShortcut(shortcut, null, null)); in testShortcutChangeTheme()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppInstance.java394 public RemoteLauncherApps launcherApps() { in launcherApps() method in TestAppInstance
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppInstanceTest.java394 assertThat(testAppInstance.launcherApps().hasShortcutHostPermission()).isFalse(); in launcherApps_returnsUsableInstance()