/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 99 ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceController 163 mAppEntry = mState.getEntry(packageName, mUserId); in AppButtonsPreferenceController() 221 final String packageName = mAppEntry.info.packageName; in onClick() 241 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in onClick() 242 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 254 mAppEntry.info.enabled in onClick() 257 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() 260 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in onClick() 286 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult() 300 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleDialogClick() [all …]
|
D | AppInfoDashboardFragment.java | 107 private ApplicationsState.AppEntry mAppEntry; field in AppInfoDashboardFragment 307 return mAppEntry; in getAppEntry() 311 mAppEntry = appEntry; in setAppEntry() 376 menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(shouldShowUninstallForAll(mAppEntry)); in onPrepareOptionsMenu() 377 mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in onPrepareOptionsMenu() 395 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected() 398 uninstallPkg(mAppEntry.info.packageName, false, false); in onOptionsItemSelected() 450 if (mAppEntry == null) { in refreshUi() 458 mState.ensureIcon(mAppEntry); in refreshUi() 471 mShowUninstalled = (mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0; in refreshUi() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 93 ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceController 152 mAppEntry = mState.getEntry(packageName, mUserId); in AppButtonsPreferenceController() 163 return mAppEntry != null && !AppUtils.isInstant(mAppEntry.info) in getAvailabilityStatus() 214 final String packageName = mAppEntry.info.packageName; in onClick() 234 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in onClick() 235 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 247 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() 279 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult() [all …]
|
D | AppInfoDashboardFragment.java | 106 private ApplicationsState.AppEntry mAppEntry; field in AppInfoDashboardFragment 288 return mAppEntry; in getAppEntry() 292 mAppEntry = appEntry; in setAppEntry() 357 menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(shouldShowUninstallForAll(mAppEntry)); in onPrepareOptionsMenu() 358 mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in onPrepareOptionsMenu() 376 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected() 379 uninstallPkg(mAppEntry.info.packageName, false, false); in onOptionsItemSelected() 431 if (mAppEntry == null) { in refreshUi() 439 mState.ensureIcon(mAppEntry); in refreshUi() 452 mShowUninstalled = (mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0; in refreshUi() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/premiumsms/ |
D | PremiumSmsAccess.java | 106 logSpecialPermissionChange(smsState, pref.mAppEntry.info.packageName); in onPreferenceChange() 107 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() 232 return mAppEntry.extraInfo instanceof SmsState in getCurrentValue() 233 ? ((SmsState) mAppEntry.extraInfo).smsState in getCurrentValue() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/premiumsms/ |
D | PremiumSmsAccess.java | 109 logSpecialPermissionChange(smsState, pref.mAppEntry.info.packageName); in onPreferenceChange() 110 mSmsBackend.setSmsState(pref.mAppEntry.info.packageName, smsState); in onPreferenceChange() 214 private final AppEntry mAppEntry; field in PremiumSmsAccess.PremiumSmsPreference 218 mAppEntry = appEntry; in PremiumSmsPreference() 219 mAppEntry.ensureLabel(context); in PremiumSmsPreference() 220 setTitle(mAppEntry.label); in PremiumSmsPreference() 221 if (mAppEntry.icon != null) { in PremiumSmsPreference() 222 setIcon(mAppEntry.icon); in PremiumSmsPreference() 235 return mAppEntry.extraInfo instanceof SmsState in getCurrentValue() 236 ? ((SmsState) mAppEntry.extraInfo).smsState in getCurrentValue() [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 | ApplicationDetailsFragment.java | 101 private ApplicationsState.AppEntry mAppEntry; field in ApplicationDetailsFragment 146 .setAppEntry(mAppEntry).setAppState(mAppState); in onAttach() 153 .setAppEntry(mAppEntry).setPackageName(mPackageName); in onAttach() 198 if (mAppEntry == null) { in refresh() 206 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 207 if (mAppEntry != null) { in retrieveAppEntry() 224 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in updateForceStopButton() 231 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid); in updateForceStopButton() 232 intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mAppEntry.info.uid)); in updateForceStopButton() 346 boolean isBundledApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in shouldDisableUninstallForHomeApp() [all …]
|
D | StoragePreferenceController.java | 34 private ApplicationsState.AppEntry mAppEntry; field in StoragePreferenceController 48 mAppEntry = appEntry; in setAppEntry() 61 if (mAppEntry == null || mPackageName == null) { in checkInitialized() 70 getContext().getString(R.string.storage_type_internal, mAppEntry.sizeStr)); in updateState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 69 private ApplicationsState.AppEntry mAppEntry; field in RecentAppStatsMixinTest 101 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 106 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 132 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 134 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 136 .thenReturn(mAppEntry); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 141 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 168 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 170 .thenReturn(mAppEntry); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 177 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() [all …]
|
D | RecentAppsPreferenceControllerTest.java | 75 private ApplicationsState.AppEntry mAppEntry; field in RecentAppsPreferenceControllerTest 143 .thenReturn(mAppEntry); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime() 145 .thenReturn(mAppEntry); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime() 147 .thenReturn(mAppEntry); in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime() 148 mAppEntry.info = mApplicationInfo; in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStorageSettings.java | 211 } else if (mAppEntry.info.manageSpaceActivityName != null) { in handleClearDataClick() 214 intent.setClassName(mAppEntry.info.packageName, in handleClearDataClick() 215 mAppEntry.info.manageSpaceActivityName); in handleClearDataClick() 255 mAppEntry.info); in onClick() 259 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, mAppEntry.info.packageName); in onClick() 268 if (mAppEntry == null) { in refreshUi() 275 .getPackageCurrentVolume(mAppEntry.info); in refreshUi() 290 final boolean appHasSpaceManagementUI = mAppEntry.info.manageSpaceActivityName != null; in initDataButtons() 294 (mAppEntry.info.flags & (FLAG_SYSTEM | FLAG_ALLOW_CLEAR_USER_DATA)) == FLAG_SYSTEM; in initDataButtons() 299 intent.setClassName(mAppEntry.info.packageName, mAppEntry.info.manageSpaceActivityName); in initDataButtons() [all …]
|
D | AppInfoBase.java | 71 protected ApplicationsState.AppEntry mAppEntry; field in AppInfoBase 142 mAppEntry = mState.getEntry(mPackageName, mUserId); in retrieveAppEntry() 143 if (mAppEntry != null) { in retrieveAppEntry() 146 mPackageInfo = mPm.getPackageInfoAsUser(mAppEntry.info.packageName, in retrieveAppEntry() 151 Log.e(TAG, "Exception when retrieving package:" + mAppEntry.info.packageName, e); in retrieveAppEntry() 294 if (!mFinishing && (mAppEntry == null || mAppEntry.info == null 295 || TextUtils.equals(mAppEntry.info.packageName, packageName))) {
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStorageSettings.java | 210 } else if (mAppEntry.info.manageSpaceActivityName != null) { in handleClearDataClick() 213 intent.setClassName(mAppEntry.info.packageName, in handleClearDataClick() 214 mAppEntry.info.manageSpaceActivityName); in handleClearDataClick() 254 mAppEntry.info); in onClick() 258 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, mAppEntry.info.packageName); in onClick() 267 if (mAppEntry == null) { in refreshUi() 274 .getPackageCurrentVolume(mAppEntry.info); in refreshUi() 289 final boolean appHasSpaceManagementUI = mAppEntry.info.manageSpaceActivityName != null; in initDataButtons() 293 (mAppEntry.info.flags & (FLAG_SYSTEM | FLAG_ALLOW_CLEAR_USER_DATA)) == FLAG_SYSTEM; in initDataButtons() 298 intent.setClassName(mAppEntry.info.packageName, mAppEntry.info.manageSpaceActivityName); in initDataButtons() [all …]
|
D | AppInfoBase.java | 71 protected ApplicationsState.AppEntry mAppEntry; field in AppInfoBase 142 mAppEntry = mState.getEntry(mPackageName, mUserId); in retrieveAppEntry() 143 if (mAppEntry != null) { in retrieveAppEntry() 146 mPackageInfo = mPm.getPackageInfoAsUser(mAppEntry.info.packageName, in retrieveAppEntry() 151 Log.e(TAG, "Exception when retrieving package:" + mAppEntry.info.packageName, e); in retrieveAppEntry() 294 if (!mFinishing && (mAppEntry == null || mAppEntry.info == null 295 || TextUtils.equals(mAppEntry.info.packageName, packageName))) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 106 private ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceControllerTest 141 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in setUp() 148 mAppEntry.info = mAppInfo; in setUp() 193 assertThat(mController.mAppEntry).isNotNull(); in retrieveAppEntry_hasAppEntry_notNull() 204 assertThat(mController.mAppEntry).isNull(); in retrieveAppEntry_noAppEntry_null() 211 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in retrieveAppEntry_throwException_null() 217 assertThat(mController.mAppEntry).isNotNull(); in retrieveAppEntry_throwException_null() 251 mController.mAppEntry = mAppEntry; in isAvailable_nonInstantApp() 257 mController.mAppEntry = mAppEntry; in isAvailable_instantApp() 423 assertThat(mController.mAppEntry).isSameAs(appEntry); in forceStopPackage_methodInvokedAndUpdated() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainUrlsPreferenceControllerTest.java | 62 private ApplicationsState.AppEntry mAppEntry; field in DomainUrlsPreferenceControllerTest 78 mAppEntry = new ApplicationsState.AppEntry(mContext, info, TEST_PACKAGE_ID); in setUp() 90 mController.setAppEntry(mAppEntry); in refreshUi_isBrowserApp_isDisabled() 103 mController.setAppEntry(mAppEntry); in refreshUi_isNotBrowserApp_isEnabled() 116 mController.setAppEntry(mAppEntry); in refreshUi_isBrowserApp_summarySet() 129 mController.setAppEntry(mAppEntry); in refreshUi_isNotBrowserApp_summarySet() 142 mController.setAppEntry(mAppEntry); in performClick_isNotBrowserApp_opensDialog()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetailTest.java | 111 private ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetailTest 188 mAppEntry.info = mock(ApplicationInfo.class); in setUp() 222 mFragment.mAppEntry = null; in testInitHeader_NoAppEntry_BuildByBundle() 238 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_BuildByAppEntry() 241 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 242 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 255 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_InstantApp() 258 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_InstantApp() 259 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_InstantApp()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | AppStorageSettingsDetailsFragment.java | 86 private ApplicationsState.AppEntry mAppEntry; field in AppStorageSettingsDetailsFragment 139 mAppEntry = mAppState.getEntry(mPackageName, mUserId); in onAttach() 154 .setAppEntry(mAppEntry) in onAttach() 260 } else if (mAppEntry.info.manageSpaceActivityName != null) { in handleClearDataClick() 262 intent.setClassName(mAppEntry.info.packageName, in handleClearDataClick() 263 mAppEntry.info.manageSpaceActivityName); in handleClearDataClick() 277 String packageName = mAppEntry.info.packageName; in initiateClearUserData() 298 String packageName = mAppEntry.info.packageName; in processClearMsg()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 91 ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetail 201 mAppEntry = mState.getEntry(mPackageName, UserHandle.myUserId()); in onCreate() 224 if (mAppEntry == null) { in initHeader() 234 mState.ensureIcon(mAppEntry); in initHeader() 235 controller.setLabel(mAppEntry); in initHeader() 236 controller.setIcon(mAppEntry); in initHeader() 237 boolean isInstantApp = AppUtils.isInstant(mAppEntry.info); in initHeader() 238 controller.setIsInstantApp(AppUtils.isInstant(mAppEntry.info)); in initHeader()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | AdvancedPowerUsageDetail.java | 91 ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetail 201 mAppEntry = mState.getEntry(mPackageName, UserHandle.myUserId()); in onCreate() 224 if (mAppEntry == null) { in initHeader() 234 mState.ensureIcon(mAppEntry); in initHeader() 235 controller.setLabel(mAppEntry); in initHeader() 236 controller.setIcon(mAppEntry); in initHeader() 237 boolean isInstantApp = AppUtils.isInstant(mAppEntry.info); in initHeader() 238 controller.setIsInstantApp(AppUtils.isInstant(mAppEntry.info)); in initHeader()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 90 private ApplicationsState.AppEntry mAppEntry; field in RecentAppsPreferenceControllerTest 158 .thenReturn(mAppEntry); in display_showRecents() 160 .thenReturn(mAppEntry); in display_showRecents() 167 mAppEntry.info = mApplicationInfo; in display_showRecents() 233 mAppEntry.info = null; in display_showRecentsWithNullAppEntryOrInfo() 235 .thenReturn(mAppEntry); in display_showRecentsWithNullAppEntryOrInfo() 283 .thenReturn(mAppEntry); in display_showRecents_formatSummary() 288 mAppEntry.info = mApplicationInfo; in display_showRecents_formatSummary()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | AppLaunchSettingsBasePreferenceController.java | 52 private ApplicationsState.AppEntry mAppEntry; field in AppLaunchSettingsBasePreferenceController 62 mAppEntry = entry; in setAppEntry() 67 return mAppEntry; in getAppEntry() 72 return mAppEntry.info.packageName; in getPackageName()
|
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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreferenceControllerTest.java | 39 private ApplicationsState.AppEntry mAppEntry; field in DomainAppPreferenceControllerTest 47 mAppEntry = new ApplicationsState.AppEntry( in setUp() 54 mContext, mIconDrawableFactory, mAppEntry); in getLayoutResource_shouldUseAppPreferenceLayout()
|