Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/unit/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/modules/Nfc/framework/java/android/nfc/
DNfcActivityManager.java56 for (NfcApplicationState appState : mApps) { in findAppState()
57 if (appState.app == app) { in findAppState()
58 return appState; in findAppState()
68 NfcApplicationState appState = findAppState(app); in registerApplication() local
69 if (appState == null) { in registerApplication()
70 appState = new NfcApplicationState(app, this); in registerApplication()
71 mApps.add(appState); in registerApplication()
73 appState.register(); in registerApplication()
80 NfcApplicationState appState = findAppState(app); in unregisterApplication() local
81 if (appState == null) { in unregisterApplication()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java47 public AppStateInstallAppsBridge(Context context, ApplicationsState appState, in AppStateInstallAppsBridge() argument
49 super(appState, callback); in AppStateInstallAppsBridge()
94 final InstallAppsState appState = new InstallAppsState(); in createInstallAppsStateFor() local
96 appState.permissionRequested = hasRequestedAppOpPermission( in createInstallAppsStateFor()
98 appState.appOpMode = getAppOpMode(AppOpsManager.OP_REQUEST_INSTALL_PACKAGES, uid, in createInstallAppsStateFor()
100 return appState; in createInstallAppsStateFor()
DAppStateAppOpsBridge.java58 public AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
60 this(context, appState, callback, appOpsOpCode, permissions, in AppStateAppOpsBridge()
64 AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
66 this(context, appState, callback, appOpsOpCodes, permissions, in AppStateAppOpsBridge()
71 AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
73 this(context, appState, callback, new int[]{appOpsOpCode}, permissions, in AppStateAppOpsBridge()
77 AppStateAppOpsBridge(Context context, ApplicationsState appState, Callback callback, in AppStateAppOpsBridge() argument
79 super(appState, callback); in AppStateAppOpsBridge()
DAppStateWriteSettingsBridge.java39 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument
41 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.java48 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument
49 super(context, appState, callback, APP_OPS_OP_CODES, PM_PERMISSIONS); in AppStateUsageBridge()
DAppStateMediaManagementAppsBridge.java38 public AppStateMediaManagementAppsBridge(Context context, ApplicationsState appState, in AppStateMediaManagementAppsBridge() argument
40 super(context, appState, callback, in AppStateMediaManagementAppsBridge()
DAppStateTurnScreenOnBridge.java42 public AppStateTurnScreenOnBridge(Context context, ApplicationsState appState, in AppStateTurnScreenOnBridge() argument
44 super(context, appState, callback, AppOpsManager.strOpToOp(APP_OP_STR), PERMISSIONS); in AppStateTurnScreenOnBridge()
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.java33 public AppStateSmsPremBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateSmsPremBridge() argument
34 super(appState, callback); in AppStateSmsPremBridge()
DAppStateManageExternalStorageBridge.java40 public AppStateManageExternalStorageBridge(Context context, ApplicationsState appState, in AppStateManageExternalStorageBridge() argument
42 super(context, appState, callback, AppOpsManager.strOpToOp(APP_OP_STR), PERMISSIONS); in AppStateManageExternalStorageBridge()
DAppStateClonedAppsBridge.java46 public AppStateClonedAppsBridge(Context context, ApplicationsState appState, in AppStateClonedAppsBridge() argument
48 super(appState, callback); in AppStateClonedAppsBridge()
DAppStateLongBackgroundTasksBridge.java52 public AppStateLongBackgroundTasksBridge(Context context, ApplicationsState appState, in AppStateLongBackgroundTasksBridge() argument
54 super(appState, callback); in AppStateLongBackgroundTasksBridge()
DAppStateBaseBridge.java41 public AppStateBaseBridge(ApplicationsState appState, Callback callback) { in AppStateBaseBridge() argument
42 mAppState = appState; in AppStateBaseBridge()
/packages/apps/Settings/src/com/android/settings/notification/
DSummarizationPreferenceFragment.java60 ApplicationsState appState = null; in onAttach() local
67 appState = ApplicationsState.getInstance(app); in onAttach()
70 appState, this, new NotificationBackend(), KEY_SUMMARIZATION); in onAttach()
DBundlePreferenceFragment.java74 ApplicationsState appState = null; in onAttach() local
81 appState = ApplicationsState.getInstance(app); in onAttach()
84 appState, this, new NotificationBackend(), KEY_TYPE); in onAttach()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAlarmsAndRemindersDetailPreferenceController.java66 final AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState appState = in isCandidate() local
69 return appState.shouldBeVisible(); in isCandidate()
DExternalSourceDetailPreferenceController.java66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local
69 return appState.isPotentialAppSource(); in isPotentialAppSource()
DLongBackgroundTasksDetailsPreferenceController.java83 final AppStateLongBackgroundTasksBridge.LongBackgroundTasksState appState = in isCandidate() local
87 return appState.shouldBeVisible(); in isCandidate()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeBypassingAppsPreferenceController.java50 private ZenModeBypassingAppsPreferenceController(Context context, ApplicationsState appState, in ZenModeBypassingAppsPreferenceController() argument
53 if (appState != null && host != null) { in ZenModeBypassingAppsPreferenceController()
54 mAppSession = appState.newSession(mAppSessionCallbacks, host.getLifecycle()); in ZenModeBypassingAppsPreferenceController()
/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/wifi/
DAppStateChangeWifiStateBridge.java47 public AppStateChangeWifiStateBridge(Context context, ApplicationsState appState, Callback in AppStateChangeWifiStateBridge() argument
49 super(context, appState, callback, APP_OPS_OP_CODE, PM_PERMISSIONS); in AppStateChangeWifiStateBridge()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateBaseBridge.java39 public AppStateBaseBridge(ApplicationsState appState, Callback callback) { in AppStateBaseBridge() argument
40 mAppState = appState; in AppStateBaseBridge()
/packages/apps/Settings/src/com/android/settings/nfc/
DAppStateNfcTagAppsBridge.java48 public AppStateNfcTagAppsBridge(Context context, ApplicationsState appState, in AppStateNfcTagAppsBridge() argument
50 super(appState, callback); in AppStateNfcTagAppsBridge()

12