/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
H A D | AppButtonsPreferenceController.java | 99 ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceController 255 mAppEntry.info.enabled in onClick() 370 if (mAppEntry != null) { in retrieveAppEntry() 431 mAppEntry.info.packageName)) { in updateUninstallButton() 472 if (mAppEntry.info.isResourceOverlay()) { in updateUninstallButton() 533 + mAppEntry.info.packageName); in updateForceStopButton() 578 mAppEntry = newEnt; in forceStopPackage() 614 return mAppEntry.info.enabledSetting in isDisabledUntilUsed() 755 return mAppEntry != null && AppUtils.isInstant(mAppEntry.info); in isInstantApp() 759 return mAppEntry != null in isSystemModule() [all …]
|
H A D | AppInfoDashboardFragment.java | 108 private ApplicationsState.AppEntry mAppEntry; field in AppInfoDashboardFragment 319 return mAppEntry; in getAppEntry() 323 mAppEntry = appEntry; in setAppEntry() 462 if (mAppEntry == null) { in refreshUi() 470 mState.ensureIcon(mAppEntry); in refreshUi() 489 mAppEntry.info.packageName, in refreshUi() 603 if (mAppEntry != null) { in retrieveAppEntry() 607 mAppEntry.info.packageName, in retrieveAppEntry() 695 if (mAppEntry == null 696 || mAppEntry.info == null [all …]
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
H A 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()
|
H A 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()
|
H A D | ApplicationDetailsFragment.java | 45 private ApplicationsState.AppEntry mAppEntry; field in ApplicationDetailsFragment 76 .setAppEntry(mAppEntry).setAppState(mAppState); in onAttach() 79 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 86 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 98 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 99 if (mAppEntry != null) { in retrieveAppEntry()
|
H A D | ApplicationActionButtonsPreferenceController.java | 116 private ApplicationsState.AppEntry mAppEntry; field in ApplicationActionButtonsPreferenceController 131 int userId = UserHandle.getUserId(mAppEntry.info.uid); 256 mAppEntry = appEntry; in setAppEntry() 319 if (mAppEntry == null) { in updateState() 329 if (mAppEntry != null) { in refreshAppEntry() 346 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in updateForceStopButton() 353 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid); in updateForceStopButton() 355 UserHandle.getUserId(mAppEntry.info.uid)); in updateForceStopButton() 462 UserHandle user = UserHandle.getUserHandleForUid(mAppEntry.info.uid); in shouldDisableButtonBecauseOfUserRestriction() 537 return (mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isBundledApp() [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/premiumsms/ |
H A D | PremiumSmsAccess.java | 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() 243 mApplicationsState.ensureIcon(mAppEntry); in onBindViewHolder() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
H A D | NotificationsPreferenceTest.java | 60 ApplicationsState.AppEntry mAppEntry; field in NotificationsPreferenceTest 89 mAppEntry.info = mApplicationInfo; in setUp() 97 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsEnabledInRes() 109 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes() 121 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes() 133 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes() 145 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes() 157 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsEDisabledInRes() 169 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_notSystemAppNotificationsDisabledNotInRes() 181 mNotificationsPreference = new NotificationsPreference(mContext, mAppEntry); in testNotificationsPreference_systemAppNotificationsDisabledInRes()
|
H A 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
H A D | RecentAppStatsMixinTest.java | 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() 225 mAppEntry.info = null; in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() 227 .thenReturn(mAppEntry); in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() [all …]
|
H A D | AppsPreferenceControllerTest.java | 64 private ApplicationsState.AppEntry mAppEntry; field in AppsPreferenceControllerTest 160 .thenReturn(mAppEntry); in initRecentApps() 162 .thenReturn(mAppEntry); in initRecentApps() 164 .thenReturn(mAppEntry); in initRecentApps() 165 mAppEntry.info = mApplicationInfo; in initRecentApps()
|
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/ |
H A 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() 96 mAppEntry.icon = icon; in setUp() 112 entries.add(mAppEntry); in onRebuildComplete_AddsToScreen() 130 entries.add(mAppEntry); in onRebuildComplete_doesNotReaddToScreen() 148 entries.add(mAppEntry); in onRebuildComplete_removesExtras() 162 entries.add(mAppEntry); in onRebuildComplete_buildsSetting() 170 assertThat(actual.getIcon()).isEqualTo(mAppEntry.icon); in onRebuildComplete_buildsSetting()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
H A 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/applications/ |
H A 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() 268 if (mAppEntry == null) { in refreshUi() 275 .getPackageCurrentVolume(mAppEntry.info); in refreshUi() 299 intent.setClassName(mAppEntry.info.packageName, mAppEntry.info.manageSpaceActivityName); in initDataButtons() 331 .getPackageCandidateVolumes(mAppEntry.info); in initMoveDialog() 364 String packageName = mAppEntry.info.packageName; in initiateClearUserData() 392 String packageName = mAppEntry.info.packageName; in processClearMsg() [all …]
|
H A 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))) {
|
H A D | ClearDefaultsPreference.java | 50 protected ApplicationsState.AppEntry mAppEntry; field in ClearDefaultsPreference 100 mAppEntry = entry; in setAppEntry() 140 mAppWidgetManager.hasBindAppWidgetPermission(mAppEntry.info.packageName); in updateUI()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
H A 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
H A 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() 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).isSameInstanceAs(appEntry); in forceStopPackage_methodInvokedAndUpdated() 439 mAppEntry.info.enabled = true; in handleDisableable_isAppEnabled_controllable() [all …]
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
H A 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()
|
H A D | AppStorageSettingsDetailsFragment.java | 52 private ApplicationsState.AppEntry mAppEntry; field in AppStorageSettingsDetailsFragment 81 mAppEntry = mAppState.getEntry(mPackageName, mUserId); in onAttach() 95 .setAppEntry(mAppEntry) in onAttach() 99 .setAppEntry(mAppEntry) in onAttach()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
H A 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()
|
H A 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/ |
H A D | DomainAppPreferenceControllerTest.java | 50 private ApplicationsState.AppEntry mAppEntry; field in DomainAppPreferenceControllerTest 64 mAppEntry = new ApplicationsState.AppEntry( in setUp() 79 mContext, mIconDrawableFactory, mAppEntry); in getLayoutResource_shouldUseAppPreferenceLayout()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
H A D | AdvancedPowerUsageDetailTest.java | 113 private ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetailTest 192 mAppEntry.info = mock(ApplicationInfo.class); in setUp() 246 mFragment.mAppEntry = null; in testInitHeader_NoAppEntry_BuildByBundle() 262 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_BuildByAppEntry() 265 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 266 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 279 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_InstantApp() 282 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_InstantApp() 283 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_InstantApp()
|
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | AdvancedPowerUsageDetail.java | 99 ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetail 263 mAppEntry = mState.getEntry(packageName, UserHandle.myUserId()); in onCreate() 319 if (mAppEntry == null) { in initHeader() 329 mState.ensureIcon(mAppEntry); in initHeader() 330 controller.setLabel(mAppEntry); in initHeader() 331 controller.setIcon(mAppEntry); in initHeader() 332 controller.setIsInstantApp(AppUtils.isInstant(mAppEntry.info)); in initHeader()
|