/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateInstallAppsBridgeTest.java | 32 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/ |
D | AppStateInstallAppsBridge.java | 46 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()
|
D | AppStateAppOpsBridge.java | 59 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()
|
D | AppStateWriteSettingsBridge.java | 41 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument 43 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateWriteSettingsBridge()
|
D | AppStatePowerBridge.java | 35 public AppStatePowerBridge(Context context, ApplicationsState appState, Callback callback) { in AppStatePowerBridge() argument 36 super(appState, callback); in AppStatePowerBridge()
|
D | AppStateUsageBridge.java | 41 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument 42 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateUsageBridge()
|
D | AppStateOverlayBridge.java | 43 public AppStateOverlayBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateOverlayBridge() argument 44 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateOverlayBridge()
|
D | AppStateSmsPremBridge.java | 36 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/ |
D | AppStateInstallAppsBridge.java | 46 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()
|
D | AppStateAppOpsBridge.java | 59 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()
|
D | AppStateWriteSettingsBridge.java | 41 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument 43 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateWriteSettingsBridge()
|
D | AppStatePowerBridge.java | 35 public AppStatePowerBridge(Context context, ApplicationsState appState, Callback callback) { in AppStatePowerBridge() argument 36 super(appState, callback); in AppStatePowerBridge()
|
D | AppStateUsageBridge.java | 41 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument 42 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateUsageBridge()
|
D | AppStateOverlayBridge.java | 43 public AppStateOverlayBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateOverlayBridge() argument 44 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSION); in AppStateOverlayBridge()
|
D | AppStateSmsPremBridge.java | 36 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/ |
D | BaseModelUpdateTaskTestCase.java | 61 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()
|
D | AddWorkspaceItemsTaskTest.java | 74 .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/ |
D | Utilities.java | 527 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/ |
D | ExternalSourceDetailPreferenceController.java | 66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local 69 return appState.isPotentialAppSource(); in isPotentialAppSource()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppStateDataUsageBridge.java | 28 public AppStateDataUsageBridge(ApplicationsState appState, Callback callback, in AppStateDataUsageBridge() argument 30 super(appState, callback); in AppStateDataUsageBridge()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | ExternalSourceDetailPreferenceController.java | 66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local 69 return appState.isPotentialAppSource(); in isPotentialAppSource()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | AppStateDataUsageBridge.java | 28 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/ |
D | AppStateChangeWifiStateBridge.java | 46 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/ |
D | AppStateChangeWifiStateBridge.java | 46 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/ |
D | PackageInstallerCompatVL.java | 192 LauncherAppState appState = LauncherAppState.getInstanceNoCreate(); 193 if (appState != null) { 194 appState.getModel().onSessionFailure(packageName, key.mUser);
|