/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 100 ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceController 161 mAppEntry = mState.getEntry(packageName, mUserId); in AppButtonsPreferenceController() 219 final String packageName = mAppEntry.info.packageName; in onClick() 240 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in onClick() 241 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 246 mAppEntry.info.enabled in onClick() 250 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() 253 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in onClick() 270 if (mPm.isPackageStateProtected(mAppEntry.info.packageName, mUserId)) { in onClick() 298 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleDialogClick() [all …]
|
D | AppInfoDashboardFragment.java | 120 private ApplicationsState.AppEntry mAppEntry; field in AppInfoDashboardFragment 228 advancedAppInfo.setAppEntry(mAppEntry); in onAttach() 347 return mAppEntry; in getAppEntry() 351 mAppEntry = appEntry; in setAppEntry() 421 shouldShowUninstallForAll(mAppEntry) && !mAppsControlDisallowedBySystem); in onPrepareOptionsMenu() 427 mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in onPrepareOptionsMenu() 487 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected() 490 uninstallPkg(mAppEntry.info.packageName, false, false); in onOptionsItemSelected() 514 mAppEntry.label); in onOptionsItemSelected() 591 if (mAppEntry == null) { in refreshUi() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationPreferenceController.java | 33 private AppEntry mAppEntry; field in ApplicationPreferenceController 48 mAppEntry = appEntry; in setAppEntry() 60 if (mAppEntry == null || mApplicationsState == null) { in checkInitialized() 73 mAppEntry.ensureLabel(getContext()); in getAppName() 74 return mAppEntry.label; in getAppName() 78 mApplicationsState.ensureIcon(mAppEntry); in getAppIcon() 79 return mAppEntry.icon; in getAppIcon() 83 return mAppEntry.getVersion(getContext()); in getAppVersion()
|
D | StoragePreferenceController.java | 38 private ApplicationsState.AppEntry mAppEntry; field in StoragePreferenceController 95 mAppEntry = appEntry; in setAppEntry() 115 if (mAppEntry == null || mApplicationsState == null || mPackageName == null) { in checkInitialized() 140 if (mAppEntry == null) { in updateState() 142 } else if (mAppEntry.sizeStr == null) { in updateState() 147 getContext().getString(R.string.storage_type_internal, mAppEntry.sizeStr)); in updateState() 160 mAppEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); in refreshAppEntry()
|
D | ApplicationActionButtonsPreferenceController.java | 120 private ApplicationsState.AppEntry mAppEntry; field in ApplicationActionButtonsPreferenceController 135 int userId = UserHandle.getUserId(mAppEntry.info.uid); 139 mAppEntry.info.loadLabel(mPm)), Toast.LENGTH_LONG).show(); 263 mAppEntry = appEntry; in setAppEntry() 284 if (mAppEntry == null || mApplicationsState == null || mPackageName == null) { in checkInitialized() 326 if (mAppEntry == null) { in updateState() 335 mAppEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); in refreshAppEntry() 336 if (mAppEntry != null) { in refreshAppEntry() 353 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in updateForceStopButton() 360 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid); in updateForceStopButton() [all …]
|
D | ApplicationDetailsFragment.java | 46 private ApplicationsState.AppEntry mAppEntry; field in ApplicationDetailsFragment 77 .setAppEntry(mAppEntry).setAppState(mAppState); in onAttach() 80 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 89 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 101 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 102 if (mAppEntry != null) { in retrieveAppEntry()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/premiumsms/ |
D | PremiumSmsAccess.java | 108 logSpecialPermissionChange(smsState, pref.mAppEntry.info.packageName); in onPreferenceChange() 109 mSmsBackend.setSmsState(pref.mAppEntry.info.packageName, smsState); in onPreferenceChange() 211 private final AppEntry mAppEntry; field in PremiumSmsAccess.PremiumSmsPreference 215 mAppEntry = appEntry; in PremiumSmsPreference() 216 mAppEntry.ensureLabel(context); in PremiumSmsPreference() 217 setTitle(mAppEntry.label); in PremiumSmsPreference() 218 if (mAppEntry.icon != null) { in PremiumSmsPreference() 219 setIcon(mAppEntry.icon); in PremiumSmsPreference() 233 return mAppEntry.extraInfo instanceof SmsState in getCurrentValue() 234 ? ((SmsState) mAppEntry.extraInfo).smsState in getCurrentValue() [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | NotificationsPreferenceTest.java | 57 ApplicationsState.AppEntry mAppEntry; field in NotificationsPreferenceTest 86 mAppEntry.info = mApplicationInfo; in setUp() 96 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsEnabledInRes() 108 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes() 120 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes() 132 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes() 144 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes() 156 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEDisabledInRes() 168 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsDisabledNotInRes() 180 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsDisabledInRes()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | NotificationsPreferenceController.java | 45 private ApplicationsState.AppEntry mAppEntry; field in NotificationsPreferenceController 52 mAppEntry = appEntry; in NotificationsPreferenceController() 61 mAppEntry = entry; in setEntry() 79 mPreferenceCompat.setEnabled(isBlockable(mContext, mAppEntry.info)); in update() 83 mAppEntry.info.packageName, mAppEntry.info.uid)); in update() 86 + mAppEntry.info.packageName, e); in update() 159 mAppEntry.info.packageName, mAppEntry.info.uid, checked); in setNotificationsEnabled()
|
D | AppActionPreferenceController.java | 31 ApplicationsState.AppEntry mAppEntry; field in AppActionPreferenceController 43 mAppEntry = appEntry; in AppActionPreferenceController() 52 mAppEntry = entry; in setEntry() 57 if (mAppEntry == null) { in getAppName() 60 mAppEntry.ensureLabel(mContext); in getAppName() 61 return mAppEntry.label; in getAppName()
|
D | ForceStopPreferenceController.java | 65 if (mAppEntry == null) { in update() 81 boolean isPackageHibernated = ahm.isHibernatingForUser(mAppEntry.info.packageName); in update() 83 if (dpm.packageHasActiveAdmins(mAppEntry.info.packageName)) { in update() 89 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in update() 95 Uri.fromParts("package", mAppEntry.info.packageName, null)); in update() 97 mAppEntry.info.packageName}); in update() 98 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid); in update() 99 intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mAppEntry.info.uid)); in update()
|
D | UninstallPreferenceController.java | 50 if (mAppEntry == null) { in update() 99 return (mDpm != null && mDpm.packageHasActiveAdmins(mAppEntry.info.packageName)); in isActiveDeviceAdmin() 103 final Uri packageURI = Uri.parse("package:" + mAppEntry.info.packageName); in getUninstallIntent() 116 return canUninstall(mAppEntry); in canUninstall() 130 return (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in canUninstallUpdates()
|
D | AppStoragePreferenceController.java | 48 if (mAppEntry == null) { in update() 51 final ApplicationInfo applicationInfo = mAppEntry.info; in update() 60 final String size = mAppEntry.sizeStr; in update() 68 mAppEntry.sizeStr, volumeDesc)); in update()
|
D | ClearCachePreferenceController.java | 49 if (mAppEntry == null) { in update() 57 mAppEntry.cacheSize + mAppEntry.externalCacheSize)); in update() 58 mPreferenceCompat.setEnabled(!mClearingCache && mAppEntry.cacheSize > 0); in update()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 77 private ApplicationsState.AppEntry mAppEntry; field in RecentAppStatsMixinTest 120 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 125 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 151 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 153 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 155 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 160 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 187 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 189 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 196 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainUrlsPreferenceControllerTest.java | 69 private ApplicationsState.AppEntry mAppEntry; field in DomainUrlsPreferenceControllerTest 92 mAppEntry = new ApplicationsState.AppEntry(mContext, info, TEST_PACKAGE_ID); in setUp() 114 mPreferenceController.setAppEntry(mAppEntry); in onCreate_isBrowserApp_isDisabled() 125 mPreferenceController.setAppEntry(mAppEntry); in onCreate_isNotBrowserApp_isEnabled() 135 mPreferenceController.setAppEntry(mAppEntry); in onCreate_hasNoDomains_isDisabled() 146 mPreferenceController.setAppEntry(mAppEntry); in onCreate_isBrowserApp_summarySet() 157 mPreferenceController.setAppEntry(mAppEntry); in onCreate_isNotBrowserApp_summarySet() 168 mPreferenceController.setAppEntry(mAppEntry); in performClick_isNotBrowserApp_opensDialog()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStorageSettings.java | 213 } else if (mAppEntry.info.manageSpaceActivityName != null) { in handleClearDataClick() 216 intent.setClassName(mAppEntry.info.packageName, in handleClearDataClick() 217 mAppEntry.info.manageSpaceActivityName); in handleClearDataClick() 257 mAppEntry.info); in onClick() 261 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, mAppEntry.info.packageName); in onClick() 270 if (mAppEntry == null) { in refreshUi() 277 .getPackageCurrentVolume(mAppEntry.info); in refreshUi() 292 final boolean appHasSpaceManagementUI = mAppEntry.info.manageSpaceActivityName != null; in initDataButtons() 296 (mAppEntry.info.flags & (FLAG_SYSTEM | FLAG_ALLOW_CLEAR_USER_DATA)) == FLAG_SYSTEM; in initDataButtons() 301 intent.setClassName(mAppEntry.info.packageName, mAppEntry.info.manageSpaceActivityName); in initDataButtons() [all …]
|
D | AppInfoBase.java | 72 protected ApplicationsState.AppEntry mAppEntry; field in AppInfoBase 143 mAppEntry = mState.getEntry(mPackageName, mUserId); in retrieveAppEntry() 144 if (mAppEntry != null) { in retrieveAppEntry() 148 mAppEntry.info.packageName, in retrieveAppEntry() 156 Log.e(TAG, "Exception when retrieving package:" + mAppEntry.info.packageName, e); in retrieveAppEntry() 315 if (!mFinishing && (mAppEntry == null || mAppEntry.info == null 316 || TextUtils.equals(mAppEntry.info.packageName, packageName))) {
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | BridgedAppsPreferenceControllerTest.java | 68 private ApplicationsState.AppEntry mAppEntry; field in BridgedAppsPreferenceControllerTest 90 mAppEntry = new ApplicationsState.AppEntry(mContext, ai, 0); in setUp() 93 mAppEntry.info = ai; in setUp() 94 mAppEntry.label = "hi"; in setUp() 110 entries.add(mAppEntry); in onRebuildComplete_AddsToScreen() 128 entries.add(mAppEntry); in onRebuildComplete_doesNotReaddToScreen() 146 entries.add(mAppEntry); in onRebuildComplete_removesExtras() 160 entries.add(mAppEntry); in onRebuildComplete_buildsSetting()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | RecentAppsItemManagerTest.java | 68 private ApplicationsState.AppEntry mAppEntry; field in RecentAppsItemManagerTest 90 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 95 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 114 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 116 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 123 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerBackgroundUsageDetailTest.java | 119 @Mock private ApplicationsState.AppEntry mAppEntry; field in PowerBackgroundUsageDetailTest 175 mAppEntry.info = mock(ApplicationInfo.class); in setUp() 215 mFragment.mAppEntry = null; in initHeader_NoAppEntry_BuildByBundle() 233 mFragment.mAppEntry = mAppEntry; in initHeader_HasAppEntry_BuildByAppEntry() 236 verify(mEntityHeaderController).setIcon(mAppEntry); in initHeader_HasAppEntry_BuildByAppEntry() 237 verify(mEntityHeaderController).setLabel(mAppEntry); in initHeader_HasAppEntry_BuildByAppEntry() 252 mFragment.mAppEntry = mAppEntry; in initHeader_HasAppEntry_InstantApp() 255 verify(mEntityHeaderController).setIcon(mAppEntry); in initHeader_HasAppEntry_InstantApp() 256 verify(mEntityHeaderController).setLabel(mAppEntry); in initHeader_HasAppEntry_InstantApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 108 private ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceControllerTest 143 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in setUp() 150 mAppEntry.info = mAppInfo; in setUp() 195 assertThat(mController.mAppEntry).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull() 206 assertThat(mController.mAppEntry).isNull(); in retrieveAppEntry_noAppEntry_null() 213 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in retrieveAppEntry_throwException_null() 219 assertThat(mController.mAppEntry).isNotNull(); in retrieveAppEntry_throwException_null() 253 mController.mAppEntry = mAppEntry; in isAvailable_nonInstantApp() 259 mController.mAppEntry = mAppEntry; in isAvailable_instantApp() 453 assertThat(mController.mAppEntry).isSameInstanceAs(appEntry); in forceStopPackage_methodInvokedAndUpdated() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageApplicationActionButtonsPreferenceController.java | 81 private ApplicationsState.AppEntry mAppEntry; field in StorageApplicationActionButtonsPreferenceController 122 mAppEntry = appEntry; in setAppEntry() 155 if (mAppEntry == null || mPackageName == null || mAppsStorageStatsManager == null in checkInitialized() 267 if (mAppEntry.info.manageSpaceActivityName != null) { in handleClearDataClick() 268 intent.setClassName(mAppEntry.info.packageName, in handleClearDataClick() 269 mAppEntry.info.manageSpaceActivityName); in handleClearDataClick() 290 String packageName = mAppEntry.info.packageName; in initiateClearUserData() 311 String packageName = mAppEntry.info.packageName; in processClearMsg()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | ApplicationLaunchSettingsFragment.java | 40 private ApplicationsState.AppEntry mAppEntry; field in ApplicationLaunchSettingsFragment 64 mAppEntry = mState.getEntry(pkgName, UserHandle.myUserId()); in onAttach() 70 appController.setAppEntry(mAppEntry); in onAttach() 81 controller.setAppEntry(mAppEntry); in onAttach()
|
D | AppLaunchSettingsBasePreferenceController.java | 52 private ApplicationsState.AppEntry mAppEntry; field in AppLaunchSettingsBasePreferenceController 70 mAppEntry = entry; in setAppEntry() 75 return mAppEntry; in getAppEntry() 80 return mAppEntry.info.packageName; in getPackageName()
|