Home
last modified time | relevance | path

Searched refs:mAppEntry (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java99 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()
275 if (mPm.isPackageStateProtected(mAppEntry.info.packageName, mUserId)) { in onClick()
293 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult()
[all …]
DAppInfoDashboardFragment.java108 private ApplicationsState.AppEntry mAppEntry; field in AppInfoDashboardFragment
319 return mAppEntry; in getAppEntry()
323 mAppEntry = appEntry; in setAppEntry()
388 menu.findItem(UNINSTALL_ALL_USERS_MENU).setVisible(shouldShowUninstallForAll(mAppEntry)); in onPrepareOptionsMenu()
389 mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in onPrepareOptionsMenu()
407 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected()
410 uninstallPkg(mAppEntry.info.packageName, false, false); in onOptionsItemSelected()
462 if (mAppEntry == null) { in refreshUi()
470 mState.ensureIcon(mAppEntry); in refreshUi()
483 mShowUninstalled = (mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0; in refreshUi()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/premiumsms/
DPremiumSmsAccess.java106 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/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationPreferenceController.java33 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()
DApplicationActionButtonsPreferenceController.java110 private ApplicationsState.AppEntry mAppEntry; field in ApplicationActionButtonsPreferenceController
125 int userId = UserHandle.getUserId(mAppEntry.info.uid);
243 mAppEntry = appEntry; in setAppEntry()
264 if (mAppEntry == null || mApplicationsState == null || mPackageName == null) { in checkInitialized()
306 if (mAppEntry == null) { in updateState()
315 mAppEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); in refreshAppEntry()
316 if (mAppEntry != null) { in refreshAppEntry()
333 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in updateForceStopButton()
340 intent.putExtra(Intent.EXTRA_UID, mAppEntry.info.uid); in updateForceStopButton()
342 UserHandle.getUserId(mAppEntry.info.uid)); in updateForceStopButton()
[all …]
DApplicationDetailsFragment.java45 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).setPackageName(mPackageName); in onAttach()
97 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry()
98 if (mAppEntry != null) { in retrieveAppEntry()
DStoragePreferenceController.java34 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/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DNotificationsPreferenceTest.java60 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()
DRecentAppsPreferenceControllerTest.java90 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/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java69 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 …]
DAppsPreferenceControllerTest.java64 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()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DBridgedAppsPreferenceControllerTest.java68 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()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSettings.java211 } 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 …]
DAppInfoBase.java71 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))) {
DClearDefaultsPreference.java50 protected ApplicationsState.AppEntry mAppEntry; field in ClearDefaultsPreference
100 mAppEntry = entry; in setAppEntry()
140 mAppWidgetManager.hasBindAppWidgetPermission(mAppEntry.info.packageName); in updateUI()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsPreferenceControllerTest.java69 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/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java106 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).isSameInstanceAs(appEntry); in forceStopPackage_methodInvokedAndUpdated()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java81 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()
DAppStorageSettingsDetailsFragment.java52 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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsItemManagerTest.java68 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/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DAppLaunchSettingsBasePreferenceController.java52 private ApplicationsState.AppEntry mAppEntry; field in AppLaunchSettingsBasePreferenceController
62 mAppEntry = entry; in setAppEntry()
67 return mAppEntry; in getAppEntry()
72 return mAppEntry.info.packageName; in getPackageName()
DApplicationLaunchSettingsFragment.java40 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/fuelgauge/
DAdvancedPowerUsageDetailTest.java111 private ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetailTest
186 mAppEntry.info = mock(ApplicationInfo.class); in setUp()
240 mFragment.mAppEntry = null; in testInitHeader_NoAppEntry_BuildByBundle()
256 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_BuildByAppEntry()
259 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry()
260 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry()
273 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_InstantApp()
276 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_InstantApp()
277 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_InstantApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/
DDomainAppPreferenceControllerTest.java39 private ApplicationsState.AppEntry mAppEntry; field in DomainAppPreferenceControllerTest
47 mAppEntry = new ApplicationsState.AppEntry( in setUp()
54 mContext, mIconDrawableFactory, mAppEntry); in getLayoutResource_shouldUseAppPreferenceLayout()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java98 ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetail
257 mAppEntry = mState.getEntry(packageName, UserHandle.myUserId()); in onCreate()
290 if (mAppEntry == null) { in initHeader()
300 mState.ensureIcon(mAppEntry); in initHeader()
301 controller.setLabel(mAppEntry); in initHeader()
302 controller.setIcon(mAppEntry); in initHeader()
303 controller.setIsInstantApp(AppUtils.isInstant(mAppEntry.info)); in initHeader()

12