Home
last modified time | relevance | path

Searched refs:mApplicationInfo (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DNotificationsPreferenceTest.java55 ApplicationInfo mApplicationInfo; field in NotificationsPreferenceTest
84 mApplicationInfo.packageName = PACKAGE_NAME; in setUp()
85 mApplicationInfo.uid = PACKAGE_UID; in setUp()
86 mAppEntry.info = mApplicationInfo; in setUp()
87 mPackageInfo.applicationInfo = mApplicationInfo; in setUp()
95 setNotificationsUnblockableByImportanceLocked(mApplicationInfo, true); in testNotificationsPreference_systemAppNotificationsEnabledInRes()
107 setNotificationsUnblockableByImportanceLocked(mApplicationInfo, false); in testNotificationsPreference_systemAppNotificationsEnabledNotInRes()
119 setNotificationsUnblockableByImportanceLocked(mApplicationInfo, true); in testNotificationsPreference_notSystemAppNotificationsEnabledInRes()
131 setNotificationsUnblockableByImportanceLocked(mApplicationInfo, false); in testNotificationsPreference_notSystemAppNotificationsEnabledNotInRes()
143 setNotificationsUnblockableByImportanceLocked(mApplicationInfo, false); in testNotificationsPreference_systemAppNotificationsDisabledNotInRes()
[all …]
DRecentAppsPreferenceControllerTest.java92 private ApplicationInfo mApplicationInfo; field in RecentAppsPreferenceControllerTest
167 mAppEntry.info = mApplicationInfo; in display_showRecents()
193 stat1Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
194 stat2Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
288 mAppEntry.info = mApplicationInfo; in display_showRecents_formatSummary()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAppBatteryUsageBridgeTest.java31 private ApplicationInfo mApplicationInfo; field in AppStateAppBatteryUsageBridgeTest
42 mApplicationInfo = new ApplicationInfo(); in initMocks()
43 mApplicationInfo.sourceDir = "test_dir"; in initMocks()
55 AppEntry entry = new AppEntry(mContext, mApplicationInfo, 0); in updateExtraInfo_updatesRestricted()
74 AppEntry entry = new AppEntry(mContext, mApplicationInfo, 0); in updateExtraInfo_updatesUnrestricted()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DPackageManagerCompatUtilsTest.java64 @Mock private ApplicationInfo mApplicationInfo; field in PackageManagerCompatUtilsTest
101 doReturn(ImmutableList.of(mApplicationInfo)) in testGetInstalledApplications_SMinus()
107 .isEqualTo(ImmutableList.of(mApplicationInfo)); in testGetInstalledApplications_SMinus()
114 doReturn(ImmutableList.of(mApplicationInfo)) in testGetInstalledApplications_TPlus()
119 .isEqualTo(ImmutableList.of(mApplicationInfo)); in testGetInstalledApplications_TPlus()
187 doReturn(mApplicationInfo) in testGetApplicationInfo_SMinus()
196 .isEqualTo(mApplicationInfo); in testGetApplicationInfo_SMinus()
203 doReturn(mApplicationInfo) in testGetApplicationInfo_TPlus()
210 assertThat(info).isEqualTo(mApplicationInfo); in testGetApplicationInfo_TPlus()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSdkSandboxTest.java88 private ApplicationInfo mApplicationInfo; field in SdkSandboxTest
174 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(SDK_PACKAGE, 0); in setup()
175 mLoader = getClassLoader(mApplicationInfo); in setup()
234 mApplicationInfo, in testLoadingSuccess()
249 mApplicationInfo, in testLoadingWithoutInitializingFails()
305 mApplicationInfo, in testDuplicateLoadingFails()
317 mApplicationInfo, in testDuplicateLoadingFails()
337 mApplicationInfo, in testRequestSurfacePackage()
369 mApplicationInfo, in testSurfacePackageError()
411 mApplicationInfo, in testDump_WithSdk()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java77 private ApplicationInfo mApplicationInfo; field in NotificationsAppListPreferenceControllerTest
109 mApplicationInfo = new ApplicationInfo(); in setUp()
110 mApplicationInfo.packageName = PKG_NAME; in setUp()
111 mApplicationInfo.uid = UID; in setUp()
112 mApplicationInfo.sourceDir = ""; in setUp()
113 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.TIRAMISU; in setUp()
115 new ApplicationsState.AppEntry(mContext, mApplicationInfo, ID); in setUp()
236 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
256 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_policyFixedFlag_isNotEnabled()
276 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_doesNotHavePermission_isEnabled()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppLocaleDetails.java64 private ApplicationInfo mApplicationInfo; field in AppLocaleDetails
94 mApplicationInfo = getApplicationInfo(mPackageName, uid); in onCreate()
140 .setIcon(Utils.getBadgedIcon(getContext(), mApplicationInfo)) in onActivityCreated()
141 .setLabel(mApplicationInfo.loadLabel(getContext().getPackageManager())) in onActivityCreated()
142 .setIsInstantApp(AppUtils.isInstant(mApplicationInfo)) in onActivityCreated()
144 .setUid(mApplicationInfo.uid) in onActivityCreated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java79 private ApplicationInfo mApplicationInfo; field in RecentAppStatsMixinTest
125 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
160 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
196 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
215 statEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
274 stat1Entry.info = mApplicationInfo; in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule()
275 stat2Entry.info = mApplicationInfo; in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule()
322 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_powerSaverModeOn_shouldHaveEmptyList()
362 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
416 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeUniquePerProfile()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/compat/
DPlatformCompatDashboardTest.java79 private ApplicationInfo mApplicationInfo; field in PlatformCompatDashboardTest
112 mApplicationInfo.packageName = APP_NAME; in setUp()
115 doReturn(mApplicationInfo).when(mDashboard).getApplicationInfo(); in setUp()
136 mApplicationInfo.targetSdkVersion = 1; in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
138 when(mApplicationInfo.loadIcon(any(PackageManager.class))).thenReturn(icon); in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
140 Preference appPreference = mDashboard.createAppPreference(mApplicationInfo); in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java77 private ApplicationInfo mApplicationInfo; field in NotificationAccessPreferenceControllerTest
112 mApplicationInfo = new ApplicationInfo(); in setUp()
113 mApplicationInfo.uid = 123; in setUp()
114 mApplicationInfo.name = "SomeApplicationInfo"; in setUp()
115 mListenerServiceInfo.applicationInfo = mApplicationInfo; in setUp()
263 /* flags= */ 0, UserHandle.myUserId())).thenReturn(mApplicationInfo); in setupPreferenceController()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java45 private ApplicationInfo mApplicationInfo; field in EnterprisePrivacyFeatureProviderImplTest
200 doReturn(mApplicationInfo).when(mSpiedPm).getApplicationInfoAsUser(packageName, in mockGetApplicationInfoLabel()
202 doReturn(mApplicationInfo).when(mSpiedPm).getApplicationInfoAsUser(packageName, in mockGetApplicationInfoLabel()
204 when(mApplicationInfo.loadLabel(mSpiedPm)).thenReturn(label); in mockGetApplicationInfoLabel()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DAppsStorageStatsManagerTest.java64 private ApplicationInfo mApplicationInfo; field in AppsStorageStatsManagerTest
71 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in setUp()
123 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, true, in callback_cachedCleared_listenerOnDataLoadedCalled()
140 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in callback_userDataCleared_listenerOnDataLoadedCalled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffDataTest.java51 @Mock private ApplicationInfo mApplicationInfo; field in BatteryDiffDataTest
77 mAppEntry.info = mApplicationInfo; in needsCombineInSystemApp_isSystemApp_returnTrue()
78 mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in needsCombineInSystemApp_isSystemApp_returnTrue()
95 mAppEntry.info = mApplicationInfo; in needsCombineInSystemApp_notSystemApp_returnFalse()
96 mApplicationInfo.flags = 0; in needsCombineInSystemApp_notSystemApp_returnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/
DWhenToDreamPreferenceControllerTest.java61 private ApplicationInfo mApplicationInfo; field in WhenToDreamPreferenceControllerTest
73 mApplicationInfo.uid = 1; in setup()
80 mApplicationInfo); in setup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java115 private ApplicationInfo mApplicationInfo; field in UtilsTest
241 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser( in getBadgedIcon_usePackageNameAndUserId()
248 verify(mIconDrawableFactory).getBadgedIcon(mApplicationInfo, USER_ID); in getBadgedIcon_usePackageNameAndUserId()
254 mApplicationInfo.enabled = true; in isPackageEnabled_appEnabled_returnTrue()
255 when(mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)).thenReturn(mApplicationInfo); in isPackageEnabled_appEnabled_returnTrue()
263 mApplicationInfo.enabled = false; in isPackageEnabled_appDisabled_returnTrue()
264 when(mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)).thenReturn(mApplicationInfo); in isPackageEnabled_appDisabled_returnTrue()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsItemManagerTest.java70 private ApplicationInfo mApplicationInfo; field in RecentAppsItemManagerTest
95 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
123 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
DApplicationActionButtonsPreferenceControllerTest.java100 private ApplicationInfo mApplicationInfo; field in ApplicationActionButtonsPreferenceControllerTest
182 mApplicationInfo.enabledSetting = in onCreate_bundledApp_enabled_disableUntilUsed_showsEnableButton()
184 mMockAppEntry.info = mApplicationInfo; in onCreate_bundledApp_enabled_disableUntilUsed_showsEnableButton()
813 mApplicationInfo = new ApplicationInfo(); in setApplicationInfo()
815 mApplicationInfo.flags |= ApplicationInfo.FLAG_STOPPED; in setApplicationInfo()
818 mApplicationInfo.enabled = false; in setApplicationInfo()
821 mApplicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in setApplicationInfo()
823 mMockAppEntry.info = mApplicationInfo; in setApplicationInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAmbientDisplayAlwaysOnPreferenceControllerTest.java60 private ApplicationInfo mApplicationInfo; field in AmbientDisplayAlwaysOnPreferenceControllerTest
76 mApplicationInfo.uid = 1; in setUp()
80 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo( in setUp()
DAppGridViewTest.java62 private ApplicationInfo mApplicationInfo; field in AppGridViewTest
74 mInfo.activityInfo.applicationInfo = mApplicationInfo; in setUp()
82 when(mPackageManager.loadUnbadgedItemIcon(mActivityInfo, mApplicationInfo)) in appEntry_shouldLoadIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DPasswordUtilsTest.java63 private ApplicationInfo mApplicationInfo; field in PasswordUtilsTest
113 .thenReturn(mApplicationInfo); in getCallingAppLabel_returnsLabel()
114 when(mApplicationInfo.loadLabel(mPackageManager)).thenReturn("label"); in getCallingAppLabel_returnsLabel()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DButtonRoleHolderControllerTest.java76 private ApplicationInfo mApplicationInfo; field in ButtonRoleHolderControllerTest
89 when(mApplicationInfo.loadIcon(any())).thenReturn(mAppIcon); in setUp()
92 doReturn(mApplicationInfo).when(mPackageManager) in setUp()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/privacy/
DCameraQcPanelTest.java80 private ApplicationInfo mApplicationInfo; field in CameraQcPanelTest
87 .thenReturn(mApplicationInfo); in setUp()
274 when(mApplicationInfo.loadSafeLabel(any(), anyFloat(), anyInt())) in getPrivacyElement()
276 when(mPackageManager.getApplicationIcon(mApplicationInfo)).thenReturn(mTestDrawable); in getPrivacyElement()
DMicQcPanelTest.java80 private ApplicationInfo mApplicationInfo; field in MicQcPanelTest
87 .thenReturn(mApplicationInfo); in setUp()
272 when(mApplicationInfo.loadSafeLabel(any(), anyFloat(), anyInt())) in getPrivacyElement()
274 when(mPackageManager.getApplicationIcon(mApplicationInfo)).thenReturn(mTestDrawable); in getPrivacyElement()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java76 @Mock private ApplicationInfo mApplicationInfo; field in RestrictedAppDetailsTest
117 doReturn(mApplicationInfo) in refreshUi_displayPreference()
120 doReturn(APP_NAME).when(mPackageManager).getApplicationLabel(mApplicationInfo); in refreshUi_displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTipTest.java68 @Mock private ApplicationInfo mApplicationInfo; field in RestrictAppTipTest
79 doReturn(mApplicationInfo) in setUp()
89 doReturn(DISPLAY_NAME).when(mApplicationInfo).loadLabel(mPackageManager); in setUp()

12