/packages/apps/Settings/tests/unit/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/modules/Nfc/framework/java/android/nfc/ |
D | NfcActivityManager.java | 56 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/ |
D | AppStateInstallAppsBridge.java | 47 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()
|
D | AppStateAppOpsBridge.java | 58 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()
|
D | AppStateWriteSettingsBridge.java | 39 public AppStateWriteSettingsBridge(Context context, ApplicationsState appState, Callback in AppStateWriteSettingsBridge() argument 41 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 | 48 public AppStateUsageBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateUsageBridge() argument 49 super(context, appState, callback, APP_OPS_OP_CODES, PM_PERMISSIONS); in AppStateUsageBridge()
|
D | AppStateMediaManagementAppsBridge.java | 38 public AppStateMediaManagementAppsBridge(Context context, ApplicationsState appState, in AppStateMediaManagementAppsBridge() argument 40 super(context, appState, callback, in AppStateMediaManagementAppsBridge()
|
D | AppStateTurnScreenOnBridge.java | 42 public AppStateTurnScreenOnBridge(Context context, ApplicationsState appState, in AppStateTurnScreenOnBridge() argument 44 super(context, appState, callback, AppOpsManager.strOpToOp(APP_OP_STR), PERMISSIONS); in AppStateTurnScreenOnBridge()
|
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 | 33 public AppStateSmsPremBridge(Context context, ApplicationsState appState, Callback callback) { in AppStateSmsPremBridge() argument 34 super(appState, callback); in AppStateSmsPremBridge()
|
D | AppStateManageExternalStorageBridge.java | 40 public AppStateManageExternalStorageBridge(Context context, ApplicationsState appState, in AppStateManageExternalStorageBridge() argument 42 super(context, appState, callback, AppOpsManager.strOpToOp(APP_OP_STR), PERMISSIONS); in AppStateManageExternalStorageBridge()
|
D | AppStateClonedAppsBridge.java | 46 public AppStateClonedAppsBridge(Context context, ApplicationsState appState, in AppStateClonedAppsBridge() argument 48 super(appState, callback); in AppStateClonedAppsBridge()
|
D | AppStateLongBackgroundTasksBridge.java | 52 public AppStateLongBackgroundTasksBridge(Context context, ApplicationsState appState, in AppStateLongBackgroundTasksBridge() argument 54 super(appState, callback); in AppStateLongBackgroundTasksBridge()
|
D | AppStateBaseBridge.java | 41 public AppStateBaseBridge(ApplicationsState appState, Callback callback) { in AppStateBaseBridge() argument 42 mAppState = appState; in AppStateBaseBridge()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | SummarizationPreferenceFragment.java | 60 ApplicationsState appState = null; in onAttach() local 67 appState = ApplicationsState.getInstance(app); in onAttach() 70 appState, this, new NotificationBackend(), KEY_SUMMARIZATION); in onAttach()
|
D | BundlePreferenceFragment.java | 74 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/ |
D | AlarmsAndRemindersDetailPreferenceController.java | 66 final AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState appState = in isCandidate() local 69 return appState.shouldBeVisible(); in isCandidate()
|
D | ExternalSourceDetailPreferenceController.java | 66 AppStateInstallAppsBridge.InstallAppsState appState = in isPotentialAppSource() local 69 return appState.isPotentialAppSource(); in isPotentialAppSource()
|
D | LongBackgroundTasksDetailsPreferenceController.java | 83 final AppStateLongBackgroundTasksBridge.LongBackgroundTasksState appState = in isCandidate() local 87 return appState.shouldBeVisible(); in isCandidate()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeBypassingAppsPreferenceController.java | 50 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/ |
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/wifi/ |
D | AppStateChangeWifiStateBridge.java | 47 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/ |
D | AppStateBaseBridge.java | 39 public AppStateBaseBridge(ApplicationsState appState, Callback callback) { in AppStateBaseBridge() argument 40 mAppState = appState; in AppStateBaseBridge()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AppStateNfcTagAppsBridge.java | 48 public AppStateNfcTagAppsBridge(Context context, ApplicationsState appState, in AppStateNfcTagAppsBridge() argument 50 super(appState, callback); in AppStateNfcTagAppsBridge()
|