/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppCounterTest.java | 86 private PackageManagerWrapper mPackageManager; field in InstalledAppCounterTest 116 when(mPackageManager.queryIntentActivitiesAsUser( in expectQueryIntentActivities() 138 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), eq(MAIN_USER_ID)); in testCountInstalledAppsAcrossAllUsers() 139 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), in testCountInstalledAppsAcrossAllUsers() 141 verify(mPackageManager, atLeast(0)).queryIntentActivitiesAsUser(any(Intent.class), anyInt(), in testCountInstalledAppsAcrossAllUsers() 143 verifyNoMoreInteractions(mPackageManager); in testCountInstalledAppsAcrossAllUsers() 154 mPackageManager, mApp1)).isTrue(); in testIncludeInCount() 156 mPackageManager, mApp2)).isTrue(); in testIncludeInCount() 158 mPackageManager, mApp3)).isTrue(); in testIncludeInCount() 160 mPackageManager, mApp4)).isFalse(); in testIncludeInCount() [all …]
|
D | AppWithAdminGrantedPermissionsCounterTest.java | 84 @Mock private PackageManagerWrapper mPackageManager; field in AppWithAdminGrantedPermissionsCounterTest 128 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), eq(MAIN_USER_ID)); in verifyCountInstalledApps() 129 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), in verifyCountInstalledApps() 131 verify(mPackageManager, atLeast(0)).getInstallReason(anyObject(), anyObject()); in verifyCountInstalledApps() 132 verifyNoMoreInteractions(mPackageManager); in verifyCountInstalledApps() 142 mDevicePolicyManager, mPackageManager, mPackageManagerService, mApp1)).isTrue(); in testIncludeInCount() 145 mDevicePolicyManager, mPackageManager, mPackageManagerService, mApp2)).isFalse(); in testIncludeInCount() 148 mDevicePolicyManager, mPackageManager, mPackageManagerService, mApp3)).isTrue(); in testIncludeInCount() 151 mDevicePolicyManager, mPackageManager, mPackageManagerService, mApp4)).isFalse(); in testIncludeInCount() 154 mDevicePolicyManager, mPackageManager, mPackageManagerService, mApp5)).isFalse(); in testIncludeInCount() [all …]
|
D | AppPermissionsPreferenceControllerTest.java | 68 private PackageManager mPackageManager; field in AppPermissionsPreferenceControllerTest 95 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 98 when(mPackageManager.getPermissionGroupInfo(eq(PERM_LOCATION), anyInt())) in setUp() 100 when(mGroupLocation.loadLabel(mPackageManager)).thenReturn(LABEL_LOCATION); in setUp() 101 when(mPackageManager.getPermissionGroupInfo(eq(PERM_MICROPHONE), anyInt())) in setUp() 103 when(mGroupMic.loadLabel(mPackageManager)).thenReturn(LABEL_MICROPHONE); in setUp() 104 when(mPackageManager.getPermissionGroupInfo(eq(PERM_CAMERA), anyInt())) in setUp() 106 when(mGroupCamera.loadLabel(mPackageManager)).thenReturn(LABEL_CAMERA); in setUp() 107 when(mPackageManager.getPermissionGroupInfo(eq(PERM_SMS), anyInt())).thenReturn(mGroupSms); in setUp() 108 when(mGroupSms.loadLabel(mPackageManager)).thenReturn(LABEL_SMS); in setUp() [all …]
|
D | InstalledAppListerTest.java | 77 @Mock private PackageManagerWrapper mPackageManager; field in InstalledAppListerTest 87 when(mPackageManager.queryIntentActivitiesAsUser( in expectQueryIntentActivities() 108 when(mPackageManager.getInstalledApplicationsAsUser(PackageManager.GET_DISABLED_COMPONENTS in testCountInstalledAppsAcrossAllUsers() 127 when(mPackageManager.getInstallReason(APP_1, mainUser)) in testCountInstalledAppsAcrossAllUsers() 129 when(mPackageManager.getInstallReason(APP_2, mainUser)) in testCountInstalledAppsAcrossAllUsers() 131 when(mPackageManager.getInstallReason(APP_3, mainUser)) in testCountInstalledAppsAcrossAllUsers() 133 when(mPackageManager.getInstallReason(APP_4, mainUser)) in testCountInstalledAppsAcrossAllUsers() 139 when(mPackageManager.getInstalledApplicationsAsUser(PackageManager.GET_DISABLED_COMPONENTS in testCountInstalledAppsAcrossAllUsers() 150 when(mPackageManager.getInstallReason(APP_5, managedProfileUser)) in testCountInstalledAppsAcrossAllUsers() 152 when(mPackageManager.getInstallReason(APP_6, managedProfileUser)) in testCountInstalledAppsAcrossAllUsers() [all …]
|
D | AppWithAdminGrantedPermissionsListerTest.java | 82 @Mock private PackageManagerWrapper mPackageManager; field in AppWithAdminGrantedPermissionsListerTest 111 when(mPackageManager.getInstalledApplicationsAsUser(PackageManager.GET_DISABLED_COMPONENTS in verifyListInstalledApps() 153 when(mPackageManager.getInstallReason(APP_1, mainUser)) in verifyListInstalledApps() 155 when(mPackageManager.getInstallReason(APP_2, mainUser)) in verifyListInstalledApps() 157 when(mPackageManager.getInstallReason(APP_3, mainUser)) in verifyListInstalledApps() 159 when(mPackageManager.getInstallReason(APP_4, mainUser)) in verifyListInstalledApps() 161 when(mPackageManager.getInstallReason(APP_5, mainUser)) in verifyListInstalledApps() 166 when(mPackageManager.getInstalledApplicationsAsUser(PackageManager.GET_DISABLED_COMPONENTS in verifyListInstalledApps() 181 when(mPackageManager.getInstallReason(APP_6, managedProfileUser)) in verifyListInstalledApps() 203 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), eq(MAIN_USER_ID)); in verifyListInstalledApps() [all …]
|
D | ApplicationFeatureProviderImplTest.java | 74 private @Mock PackageManagerWrapper mPackageManager; field in ApplicationFeatureProviderImplTest 90 mProvider = new ApplicationFeatureProviderImpl(mContext, mPackageManager, in setUp() 97 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfPolicyInstalledApps() 99 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfPolicyInstalledApps() 115 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListPolicyInstalledApps() 117 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListPolicyInstalledApps() 149 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 151 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions() 186 when(mPackageManager.getInstallReason(APP_1, new UserHandle(MAIN_USER_ID))) in testListAppsWithAdminGrantedPermissions() 188 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListAppsWithAdminGrantedPermissions() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
D | DefaultHomePreferenceControllerTest.java | 55 private PackageManagerWrapper mPackageManager; field in DefaultHomePreferenceControllerTest 65 ReflectionHelpers.setField(mController, "mPackageManager", mPackageManager); in setUp() 77 verify(mPackageManager).getHomeActivities(anyList()); in getDefaultApp_shouldGetDefaultBrowserPackage() 82 when(mPackageManager.getHomeActivities(anyList())).thenReturn(null); in updateState_noDefaultApp_shouldAskPackageManagerForOnlyApp() 85 verify(mPackageManager, atLeastOnce()).getHomeActivities(anyList()); in updateState_noDefaultApp_shouldAskPackageManagerForOnlyApp() 90 when(mPackageManager.getHomeActivities(anyList())).thenReturn(null); in testIsHomeDefault_noDefaultSet_shouldReturnTrue() 91 assertThat(DefaultHomePreferenceController.isHomeDefault("test.pkg", mPackageManager)) in testIsHomeDefault_noDefaultSet_shouldReturnTrue() 100 when(mPackageManager.getHomeActivities(anyList())).thenReturn(defaultHome); in testIsHomeDefault_defaultSetToPkg_shouldReturnTrue() 102 assertThat(DefaultHomePreferenceController.isHomeDefault(pkgName, mPackageManager)) in testIsHomeDefault_defaultSetToPkg_shouldReturnTrue() 111 when(mPackageManager.getHomeActivities(anyList())).thenReturn(defaultHome); in testIsHomeDefault_defaultSetToOtherPkg_shouldReturnFalse() [all …]
|
D | DefaultBrowserPreferenceControllerTest.java | 60 private PackageManagerWrapper mPackageManager; field in DefaultBrowserPreferenceControllerTest 70 ReflectionHelpers.setField(mController, "mPackageManager", mPackageManager); in setUp() 75 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in isAvailable_noBrowser_shouldReturnFalse() 84 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in isAvailable_hasBrowser_shouldReturnTrue() 91 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in getSoleAppLabel_hasNoApp_shouldNotReturnLabel() 103 verify(mPackageManager).getDefaultBrowserPackageNameAsUser(anyInt()); in getDefaultApp_shouldGetDefaultBrowserPackage() 109 when(mPackageManager.getDefaultBrowserPackageNameAsUser(anyInt())) in isBrowserDefault_onlyApp_shouldReturnTrue() 111 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in isBrowserDefault_onlyApp_shouldReturnTrue()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | CrossProfileIntentFiltersSetterTest.java | 50 @Mock PackageManager mPackageManager; field in CrossProfileIntentFiltersSetterTest 59 mSetter = new CrossProfileIntentFiltersSetter(mPackageManager, mUserManager); in setUp() 68 verify(mPackageManager, times(CrossProfileIntentFiltersSetter.FILTERS.size())) in testSetFilters() 72 verify(mPackageManager).addCrossProfileIntentFilter( in testSetFilters() 78 verify(mPackageManager).addCrossProfileIntentFilter( in testSetFilters() 95 verifyZeroInteractions(mPackageManager); in testResetFilters_NoProfiles() 110 verify(mPackageManager).clearCrossProfileIntentFilters(TEST_PARENT_USER_ID); in testResetFilters_OneProfile() 111 verify(mPackageManager).clearCrossProfileIntentFilters(TEST_PROFILE_USER_ID); in testResetFilters_OneProfile() 114 verify(mPackageManager, times(CrossProfileIntentFiltersSetter.FILTERS.size())) in testResetFilters_OneProfile()
|
D | SetDevicePolicyTaskTest.java | 50 @Mock private PackageManager mPackageManager; field in SetDevicePolicyTaskTest 68 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 73 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in setUp() 87 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp_DefaultToDefault() 94 verify(mPackageManager, never()).setApplicationEnabledSetting(eq(ADMIN_PACKAGE_NAME), in testEnableDevicePolicyApp_DefaultToDefault() 105 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp_DisabledToDefault() 112 verify(mPackageManager).setApplicationEnabledSetting(ADMIN_PACKAGE_NAME, in testEnableDevicePolicyApp_DisabledToDefault() 124 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp_EnabledToEnabled() 131 verify(mPackageManager, never()).setApplicationEnabledSetting(eq(ADMIN_PACKAGE_NAME), in testEnableDevicePolicyApp_EnabledToEnabled() 142 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp_PackageNotFound()
|
D | DeleteNonRequiredAppsTaskTest.java | 62 private FakePackageManager mPackageManager; field in DeleteNonRequiredAppsTaskTest 70 mPackageManager = new FakePackageManager(); in setUp() 72 when(mTestContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 85 mPackageManager.setInstalledApps(setFromArray("app.a")); in testNoAppsToDelete() 107 mPackageManager.setInstalledApps(setFromArray("app.a", "app.c")); in testAppsToDelete() 148 mPackageManager.setInstalledApps(setFromArray("app.a")); in testDeletionFailed() 151 mPackageManager.setDeletionSucceeds(false); in testDeletionFailed()
|
D | InstallExistingPackageTaskTest.java | 53 @Mock private PackageManager mPackageManager; field in InstallExistingPackageTaskTest 61 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 70 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) in testSuccess() 77 verify(mPackageManager).installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID); in testSuccess() 85 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) in testPackageNotFound() 99 when(mPackageManager.installExistingPackageAsUser(INSTALL_PACKAGE_NAME, TEST_USER_ID)) in testInstallFailed()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactDirectoryManagerTest.java | 56 private ContactsMockPackageManager mPackageManager; field in ContactDirectoryManagerTest 121 mPackageManager = (ContactsMockPackageManager) getProvider() in setUp() 159 mPackageManager.setInstalledPackages( in testScanAllProviders() 233 mPackageManager.setInstalledPackages( in testScanAllProviders_scanCondition() 240 mPackageManager.setInstalledPackages( in testScanAllProviders_scanCondition() 246 mPackageManager.setInstalledPackages( in testScanAllProviders_scanCondition() 255 mPackageManager.setInstalledPackages( in testPackageInstalled() 284 mPackageManager.getInstalledPackages(0).add( in testPackageInstalled() 306 mPackageManager.setInstalledPackages( in testPackageUninstalled() 336 mPackageManager.getInstalledPackages(0).remove(1); in testPackageUninstalled() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultBrowserPreferenceController.java | 68 final String packageName = mPackageManager.getDefaultBrowserPackageNameAsUser(mUserId); in getDefaultAppInfo() 70 return new DefaultAppInfo(mPackageManager, in getDefaultAppInfo() 71 mPackageManager.getPackageManager().getApplicationInfo(packageName, 0)); in getDefaultAppInfo() 103 return mPackageManager.queryIntentActivitiesAsUser(BROWSE_PROBE, PackageManager.MATCH_ALL, in getCandidates() 112 final String label = info.loadLabel(mPackageManager.getPackageManager()).toString(); in getOnlyAppLabel() 128 return info.loadIcon(mPackageManager.getPackageManager()); in getOnlyAppIcon() 148 String defaultPackage = mPackageManager.getDefaultBrowserPackageNameAsUser(userId); in isBrowserDefault() 153 final List<ResolveInfo> list = mPackageManager.queryIntentActivitiesAsUser(BROWSE_PROBE, in isBrowserDefault()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | MoveAppActivity.java | 45 private PackageManager mPackageManager; field in MoveAppActivity 76 mPackageManager = getPackageManager(); in onCreate() 77 mPackageManager.registerMoveCallback(mMoveCallback, new Handler()); in onCreate() 101 mPackageManager.unregisterMoveCallback(mMoveCallback); in onDestroy() 106 mAppMoveId = mPackageManager.movePackage(packageName, destination); in onRequestMovePackageToVolume() 109 applicationInfo = mPackageManager in onRequestMovePackageToVolume() 116 .newInstance(mPackageManager.getApplicationLabel(applicationInfo)); in onRequestMovePackageToVolume()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | Compatibility.java | 110 PackageManager mPackageManager; field in Compatibility.Service 119 if (mPackageManager == null) { in onHandleIntent() 120 mPackageManager = getPackageManager(); in onHandleIntent() 150 …List<ResolveInfo> ris = mPackageManager.queryIntentActivities(i, PackageManager.GET_DISABLED_COMPO… in pickDefaultControlPanel() 200 …List<ResolveInfo> ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COM… in setDefault() 204 … ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COMPONENTS); in setDefault() 226 mPackageManager.setComponentEnabledSetting(comp, in setupReceivers() 231 mPackageManager.setComponentEnabledSetting(comp, in setupReceivers()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DefaultLayoutParser.java | 109 ResolveInfo resolved = mPackageManager.resolveActivity(metaIntent, in invalidPackageOrClass() 111 final List<ResolveInfo> appList = mPackageManager.queryIntentActivities( in invalidPackageOrClass() 129 final Intent intent = mPackageManager.getLaunchIntentForPackage(info.packageName); in invalidPackageOrClass() 136 return addShortcut(info.loadLabel(mPackageManager).toString(), intent, in invalidPackageOrClass() 145 ApplicationInfo info = mPackageManager.getApplicationInfo( in getSingleSystemActivity() 239 final Partner partner = Partner.get(mPackageManager); in parseAndAdd() 282 mPackageManager.getReceiverInfo(cn, 0); in verifyAndInsert() 284 String[] packages = mPackageManager.currentToCanonicalPackageNames( in verifyAndInsert() 288 mPackageManager.getReceiverInfo(cn, 0); in verifyAndInsert()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 56 private PackageManager mPackageManager; field in ThemePreferenceControllerTest 68 when(mPackageManager.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in setUp() 69 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 85 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeSet_shouldSetPreferenceValue() 104 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeNull_shouldSetDefaultSummary()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppsAsyncLoader.java | 73 private PackageManagerWrapper mPackageManager; field in AppsAsyncLoader 89 mPackageManager = pm; in AppsAsyncLoader() 111 mPackageManager.getInstalledApplicationsAsUser(0, mUserId); in loadApps() 145 .setIcon(mPackageManager.getUserBadgedIcon(app)) in loadApps() 146 .setLabel(mPackageManager.loadLabel(app)) in loadApps() 149 if (mFilter.filterApp(extraInfo) && !isDefaultLauncher(mPackageManager, extraInfo)) { in loadApps() 231 private PackageManagerWrapper mPackageManager; field in AppsAsyncLoader.Builder 255 this.mPackageManager = packageManager; in setPackageManager() 275 mPackageManager, in build() 400 pi = mPackageManager.getPackageInfo(packageName, 0); in getDaysSinceInstalled()
|
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
D | LensPickerAdapter.java | 50 private PackageManager mPackageManager; field in LensPickerAdapter 59 mPackageManager = context.getPackageManager(); in LensPickerAdapter() 98 mPackageManager); in doInBackground() 105 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in doInBackground() 111 displayName = rInfo.loadLabel(mPackageManager).toString(); in doInBackground() 158 return mPackageManager.getApplicationIcon(aInfo); in getComponentIcon() 162 CharSequence appLabel = mPackageManager.getApplicationLabel(aInfo); in getComponentLabel()
|
D | LensPickerActivity.java | 43 private PackageManager mPackageManager; field in LensPickerActivity 56 mPackageManager = getPackageManager(); in onCreate() 90 mPackageManager); in onResume() 167 Collections.sort(filteredPackageList, new DisplayNameComparator(mPackageManager)); in getComponents() 179 return mPackageManager.queryIntentActivities(intent, 0); in resolvePackage() 187 return mPackageManager.queryIntentActivities(intent, 0); in resolveCategory() 193 return mPackageManager.queryIntentServices(intent, PackageManager.GET_RESOLVED_FILTER); in resolveMediaBrowserServices()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
D | AppPermissionGroup.java | 46 private final PackageManager mPackageManager; field in AppPermissionGroup 195 mPackageManager = mContext.getPackageManager(); in AppPermissionGroup() 244 mPackageManager.updatePermissionFlags(permission.getName(), in resetReviewRequired() 362 mPackageManager.grantRuntimePermission(mPackageInfo.packageName, in grantRuntimePermissions() 373 mPackageManager.updatePermissionFlags(permission.getName(), in grantRuntimePermissions() 420 mPackageManager.updatePermissionFlags(permission.getName(), in grantRuntimePermissions() 458 mPackageManager.revokeRuntimePermission(mPackageInfo.packageName, in revokeRuntimePermissions() 468 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions() 480 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions() 522 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppPrefLoaderTest.java | 53 private PackageManager mPackageManager; field in AppPrefLoaderTest 65 new AppPrefLoader(RuntimeEnvironment.application, pkgs, mPackageManager); in setUp() 71 when(mPackageManager.getApplicationInfo(anyString(), anyInt())) in loadInBackground_packageNotFound_shouldReturnEmptySet() 81 when(mPackageManager.getApplicationInfo(anyString(), anyInt())).thenReturn(info); in loadInBackground_shouldReturnPreference() 84 when(info.loadIcon(mPackageManager)).thenReturn(drawable); in loadInBackground_shouldReturnPreference() 85 when(info.loadLabel(mPackageManager)).thenReturn(label); in loadInBackground_shouldReturnPreference()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | AppLinkCardView.java | 66 private final PackageManager mPackageManager; field in AppLinkCardView 85 mPackageManager = context.getPackageManager(); in AppLinkCardView() 134 return mPackageManager.getApplicationLabel(appInfo); in onBind() 168 return mPackageManager.getApplicationIcon(appInfo); in onBind() 201 return mPackageManager.getApplicationLabel(appInfo); in onBind() 311 banner = mPackageManager.getActivityBanner(mIntent); 313 banner = mPackageManager.getActivityIcon(mIntent); 349 banner = mPackageManager.getApplicationBanner(appInfo); 352 banner = mPackageManager.getApplicationIcon(appInfo);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppPermissionsPreferenceController.java | 48 private final PackageManager mPackageManager; field in AppPermissionsPreferenceController 52 mPackageManager = context.getPackageManager(); in AppPermissionsPreferenceController() 98 mPackageManager.getInstalledPackages(PackageManager.GET_PERMISSIONS); in getGrantedPermissionGroups() 123 final PermissionGroupInfo groupInfo = mPackageManager.getPermissionGroupInfo(group, 0); in getPermissionGroupLabel() 124 return groupInfo.loadLabel(mPackageManager); in getPermissionGroupLabel() 136 mPackageManager.queryPermissionsByGroup(group, 0); in getAllPermissionsInGroups()
|