/cts/hostsidetests/packagemanager/installedloadingprogess/apps/src/com/android/tests/loadingprogress/registerapp/ |
D | MainActivity.java | 56 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/ |
D | LauncherAppsTest.java | 98 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/ |
D | ShortcutConfirmPin.java | 45 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/ |
D | LauncherCallbackTestsService.java | 142 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/ |
D | AppWidgetConfirmPin.java | 38 final LauncherApps launcherApps = getSystemService(LauncherApps.class); in onCreate() local 39 mRequest = launcherApps.getPinItemRequest(getIntent()); in onCreate()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | DistractingPackageTest.java | 103 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()
|
D | SuspendPackagesTest.java | 247 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/ |
D | TestActivity.java | 561 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/ |
D | LauncherAppsEnumerationTests.java | 318 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/ |
D | SplashscreenTests.java | 510 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/ |
D | TestAppInstance.java | 394 public RemoteLauncherApps launcherApps() { in launcherApps() method in TestAppInstance
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppInstanceTest.java | 394 assertThat(testAppInstance.launcherApps().hasShortcutHostPermission()).isFalse(); in launcherApps_returnsUsableInstance()
|