Home
last modified time | relevance | path

Searched refs:appState (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateInstallAppsBridgeTest.java32 AppStateInstallAppsBridge.InstallAppsState appState = in testInstallAppsStateCanInstallApps() local
34 assertThat(appState.canInstallApps()).isFalse(); in testInstallAppsStateCanInstallApps()
36 appState.permissionRequested = true; in testInstallAppsStateCanInstallApps()
37 assertThat(appState.canInstallApps()).isFalse(); in testInstallAppsStateCanInstallApps()
39 appState.appOpMode = AppOpsManager.MODE_ALLOWED; in testInstallAppsStateCanInstallApps()
40 assertThat(appState.canInstallApps()).isTrue(); in testInstallAppsStateCanInstallApps()
42 appState.appOpMode = AppOpsManager.MODE_ERRORED; in testInstallAppsStateCanInstallApps()
43 assertThat(appState.canInstallApps()).isFalse(); in testInstallAppsStateCanInstallApps()
48 AppStateInstallAppsBridge.InstallAppsState appState = in testInstallAppsStateIsPotentialAppSource() local
50 assertThat(appState.isPotentialAppSource()).isFalse(); in testInstallAppsStateIsPotentialAppSource()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateInstallAppsBridge.java46 public AppStateInstallAppsBridge(Context context, ApplicationsState appState, in AppStateInstallAppsBridge() argument
48 super(appState, callback); in AppStateInstallAppsBridge()
93 final InstallAppsState appState = new InstallAppsState(); in createInstallAppsStateFor() local
94 appState.permissionRequested = hasRequestedAppOpPermission( in createInstallAppsStateFor()
96 appState.appOpMode = getAppOpMode(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, uid, in createInstallAppsStateFor()
98 return appState; in createInstallAppsStateFor()
DAppStateAppOpsBridge.java59 public AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
61 this(context, appState, callback, appOpsOpCode, permissions, in AppStateAppOpsBridge()
66 AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
68 super(appState, callback); in AppStateAppOpsBridge()
DAppStateWriteSettingsBridge.java41 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument
43 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateWriteSettingsBridge()
DAppStatePowerBridge.java35 public AppStatePowerBridge(Context context, ApplicationsState appState, Callback callback) { in AppStatePowerBridge() argument
36 super(appState, callback); in AppStatePowerBridge()
DAppStateUsageBridge.java41 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument
42 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateUsageBridge()
DAppStateOverlayBridge.java43 public AppStateOverlayBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateOverlayBridge() argument
44 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateOverlayBridge()
DAppStateSmsPremBridge.java36 public AppStateSmsPremBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateSmsPremBridge() argument
37 super(appState, callback); in AppStateSmsPremBridge()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java46 public AppStateInstallAppsBridge(Context context, ApplicationsState appState, in AppStateInstallAppsBridge() argument
48 super(appState, callback); in AppStateInstallAppsBridge()
93 final InstallAppsState appState = new InstallAppsState(); in createInstallAppsStateFor() local
94 appState.permissionRequested = hasRequestedAppOpPermission( in createInstallAppsStateFor()
96 appState.appOpMode = getAppOpMode(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, uid, in createInstallAppsStateFor()
98 return appState; in createInstallAppsStateFor()
DAppStateAppOpsBridge.java59 public AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
61 this(context, appState, callback, appOpsOpCode, permissions, in AppStateAppOpsBridge()
66 AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
68 super(appState, callback); in AppStateAppOpsBridge()
DAppStateWriteSettingsBridge.java41 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument
43 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateWriteSettingsBridge()
DAppStatePowerBridge.java35 public AppStatePowerBridge(Context context, ApplicationsState appState, Callback callback) { in AppStatePowerBridge() argument
36 super(appState, callback); in AppStatePowerBridge()
DAppStateUsageBridge.java41 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument
42 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateUsageBridge()
DAppStateOverlayBridge.java43 public AppStateOverlayBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateOverlayBridge() argument
44 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateOverlayBridge()
DAppStateSmsPremBridge.java36 public AppStateSmsPremBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateSmsPremBridge() argument
37 super(appState, callback); in AppStateSmsPremBridge()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java61 public LauncherAppState appState; field in BaseModelUpdateTaskTestCase
78 appState = mock(LauncherAppState.class); in setUp()
82 when(appState.getModel()).thenReturn(model); in setUp()
96 when(appState.getIconCache()).thenReturn(iconCache); in setUp()
97 when(appState.getInvariantDeviceProfile()).thenReturn(idp); in setUp()
98 when(appState.getContext()).thenReturn(targetContext); in setUp()
109 task.init(appState, model, bgDataModel, allAppsList, mockExecutor); in executeTaskForTest()
DAddWorkspaceItemsTaskTest.java74 .findSpaceForItem(appState, bgDataModel, existingScreens, newScreens, 1, 1); in testFindSpaceForItem_prefers_second()
81 .findSpaceForItem(appState, bgDataModel, existingScreens, newScreens, 2, 3); in testFindSpaceForItem_prefers_second()
94 .findSpaceForItem(appState, bgDataModel, existingScreens, newScreens, 3, 3); in testFindSpaceForItem_adds_new_screen()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java527 LauncherAppState appState = LauncherAppState.getInstance(launcher); in getFullDrawable() local
532 return (activityInfo != null) ? appState.getIconCache() in getFullDrawable()
539 return activityInfo.getFullResIcon(appState.getIconCache()); in getFullDrawable()
550 appState.getInvariantDeviceProfile().fillResIconDpi); in getFullDrawable()
573 LauncherAppState appState = LauncherAppState.getInstance(launcher); in getBadge() local
574 int iconSize = appState.getInvariantDeviceProfile().iconBitmapSize; in getBadge()
584 LauncherIcons li = LauncherIcons.obtain(appState.getContext()); in getBadge()
585 Bitmap badge = li.getShortcutInfoBadge(si, appState.getIconCache()).iconBitmap; in getBadge()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DExternalSourceDetailPreferenceController.java66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local
69 return appState.isPotentialAppSource(); in isPotentialAppSource()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppStateDataUsageBridge.java28 public AppStateDataUsageBridge(ApplicationsState appState, Callback callback, in AppStateDataUsageBridge() argument
30 super(appState, callback); in AppStateDataUsageBridge()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DExternalSourceDetailPreferenceController.java66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local
69 return appState.isPotentialAppSource(); in isPotentialAppSource()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppStateDataUsageBridge.java28 public AppStateDataUsageBridge(ApplicationsState appState, Callback callback, in AppStateDataUsageBridge() argument
30 super(appState, callback); in AppStateDataUsageBridge()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DAppStateChangeWifiStateBridge.java46 public AppStateChangeWifiStateBridge(Context context, ApplicationsState appState, Callback in AppStateChangeWifiStateBridge() argument
48 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateChangeWifiStateBridge()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java46 public AppStateChangeWifiStateBridge(Context context, ApplicationsState appState, Callback in AppStateChangeWifiStateBridge() argument
48 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateChangeWifiStateBridge()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java192 LauncherAppState appState = LauncherAppState.getInstanceNoCreate();
193 if (appState != null) {
194 appState.getModel().onSessionFailure(packageName, key.mUser);

12