/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 55 private PackageManager mPackageManager; field in ComponentTest 112 mPackageManager = mContext.getPackageManager(); in setUp() 136 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testResolveDisabledActivity() 140 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0); in testResolveDisabledActivity() 143 final ResolveInfo info2 = mPackageManager.resolveActivity( in testResolveDisabledActivity() 152 mPackageManager.setComponentEnabledSetting(ENABLED_ACTIVITY_COMPONENTNAME, in testResolveEnabledActivity() 156 final ResolveInfo info = mPackageManager.resolveActivity(mEnabledActivityIntent, 0); in testResolveEnabledActivity() 165 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testQueryDisabledActivity() 170 mPackageManager.queryIntentActivities(mDisabledActivityIntent, 0); in testQueryDisabledActivity() 174 mPackageManager.queryIntentActivities(mDisabledActivityIntent, in testQueryDisabledActivity() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 71 private PackageManager mPackageManager; field in CarrierAppUtilsTest 94 mPackageManager = Mockito.mock(PackageManager.class); in setUp() 101 Mockito.when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 125 Mockito.verifyNoMoreInteractions(mPackageManager, mTelephonyManager); in testDisableCarrierAppsUntilPrivileged_EmptyList() 131 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 142 Mockito.verify(mPackageManager, Mockito.never()).setSystemAppState(Mockito.anyString(), in testDisableCarrierAppsUntilPrivileged_MissingApp() 144 Mockito.verify(mPackageManager, Mockito.never()).setSystemAppState(Mockito.anyString(), in testDisableCarrierAppsUntilPrivileged_MissingApp() 146 Mockito.verify(mPackageManager, Mockito.never()).setSystemAppState(Mockito.anyString(), in testDisableCarrierAppsUntilPrivileged_MissingApp() 148 Mockito.verify(mPackageManager, Mockito.never()).setSystemAppState(Mockito.anyString(), in testDisableCarrierAppsUntilPrivileged_MissingApp() 157 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() [all …]
|
D | CarrierPrivilegesTrackerTest.java | 190 when(mPackageManager.getPackageInfo( in setupInstalledPackages() 193 when(mPackageManager.getPackageUidAsUser( in setupInstalledPackages() 199 when(mPackageManager.getInstalledPackagesAsUser(eq(PM_FLAGS), eq(SYSTEM.getIdentifier()))) in setupInstalledPackages() 582 when(mPackageManager.queryBroadcastReceivers(any(), anyInt())).thenReturn( in testSimStateChangedSimStateReadyThenLoaded() 715 when(mPackageManager.getPackageInfo(eq(PACKAGE_1), eq(PM_FLAGS))) in testPackageAddedOrReplacedNoSignatures() 787 when(mPackageManager.getPackageUid(eq(PACKAGE_1), anyInt())).thenReturn(UID_1); in testPackageDisabledAndThenEnabled() 788 when(mPackageManager.getPackageUid(eq(PACKAGE_2), anyInt())).thenReturn(UID_2); in testPackageDisabledAndThenEnabled() 791 .when(mPackageManager) in testPackageDisabledAndThenEnabled() 796 when(mPackageManager.getApplicationEnabledSetting(eq(PACKAGE_1))).thenReturn( in testPackageDisabledAndThenEnabled() 799 mPackageManager).queryIntentServices(any(), anyInt()); in testPackageDisabledAndThenEnabled() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerServiceInjector.java | 83 private PackageManagerService mPackageManager; field in PackageManagerServiceInjector 246 this.mPackageManager = pm; in bootstrap() 266 return mUserManagerProducer.get(this, mPackageManager); in getUserManagerService() 278 return mCrossProfileIntentFilterHelperProducer.get(this, mPackageManager); in getCrossProfileIntentFilterHelper() 286 return mComponentResolverProducer.get(this, mPackageManager); in getComponentResolver() 290 return mPermissionManagerServiceProducer.get(this, mPackageManager); in getPermissionManagerServiceInternal() 298 return mSettingsProducer.get(this, mPackageManager); in getSettings() 302 return mAppsFilterProducer.get(this, mPackageManager); in getAppsFilter() 306 return mPlatformCompatProducer.get(this, mPackageManager); in getCompatibility() 310 return mSystemConfigProducer.get(this, mPackageManager); in getSystemConfig() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/ |
D | ConnectivitySubsystemsRecoveryManagerTest.java | 47 PackageManager mPackageManager; field in ConnectivitySubsystemsRecoveryManagerTest 53 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 54 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in setUp() 55 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setUp() 60 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in startTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash() 69 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in stopTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash() 78 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in startTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash() 87 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in stopTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | DefaultAppInfoTest.java | 51 private PackageManager mPackageManager; field in DefaultAppInfoTest 64 doReturn(mPackageManager).when(mContext).getPackageManager(); in setUp() 65 when(mPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), in setUp() 67 when(mPackageManager.loadUnbadgedItemIcon(mPackageItemInfo, mApplicationInfo)).thenReturn( in setUp() 74 mInfo = new DefaultAppInfo(mContext, mPackageManager, 0 /* uid */, mPackageItemInfo); in initInfoWithActivityInfo_shouldLoadInfo() 80 verify(mPackageItemInfo).loadLabel(mPackageManager); in initInfoWithActivityInfo_shouldLoadInfo() 87 mInfo = new DefaultAppInfo(mContext, mPackageManager, 0 /* uid */, mComponentName); in initInfoWithComponent_shouldLoadInfo()
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/ |
D | CarDisplayCompatScaleProviderUpdatableTest.java | 103 private PackageManager mPackageManager; field in CarDisplayCompatScaleProviderUpdatableTest 121 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 122 when(mPackageManager.hasSystemFeature(eq(FEATURE_CAR_DISPLAY_COMPATIBILITY))) in setUp() 148 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in noApplicationInfo_returnsFalse() 160 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataDataDisplayCompat_requiredFalse_returnsFalse() 177 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataData_notDisplayCompat_returnsTrue() 180 when(mPackageManager.checkSignatures(eq(PLATFORM_PACKAGE_NAME), eq("package1"))) in hasMedataData_notDisplayCompat_returnsTrue() 195 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataDataDisplayCompat_requiredTrue_returnsTrue() 198 when(mPackageManager.checkSignatures(eq(PLATFORM_PACKAGE_NAME), eq("package1"))) in hasMedataDataDisplayCompat_requiredTrue_returnsTrue() 259 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in isPrivileged_returnsFalse() [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayActorEnforcer.java | 45 private final PackageManagerHelper mPackageManager; field in OverlayActorEnforcer 80 mPackageManager = packageManager; in OverlayActorEnforcer() 114 var targetPkgState = mPackageManager.getPackageStateForUser(targetPackageName, userId); in isAllowedActor() 124 String[] callingPackageNames = mPackageManager.getPackagesForUid(callingUid); in isAllowedActor() 138 if (mPackageManager.doesTargetDefineOverlayable(targetPackageName, userId)) { in isAllowedActor() 143 mPackageManager.enforcePermission( in isAllowedActor() 159 targetOverlayable = mPackageManager.getOverlayableForTarget(targetPackageName, in isAllowedActor() 173 mPackageManager.enforcePermission( in isAllowedActor() 183 Map<String, Map<String, String>> namedActors = mPackageManager.getNamedActors(); in isAllowedActor() 191 var actorPackageState = mPackageManager.getPackageStateForUser(actorPackageName, userId); in isAllowedActor()
|
D | IdmapManager.java | 77 private final PackageManagerHelper mPackageManager; field in IdmapManager 88 mPackageManager = packageManager; in IdmapManager() 208 if (mPackageManager.signaturesMatching(targetPackage.getPackageName(), in calculateFulfilledPolicies() 222 && mPackageManager.signaturesMatching(mConfigSignaturePackage, in calculateFulfilledPolicies() 260 if (targetOverlayableName != null && !mPackageManager.getNamedActors().isEmpty()) { in matchesActorSignature() 262 OverlayableInfo overlayableInfo = mPackageManager.getOverlayableForTarget( in matchesActorSignature() 266 overlayableInfo.actor, mPackageManager.getNamedActors()).first; in matchesActorSignature() 267 if (mPackageManager.signaturesMatching(actorPackageName, in matchesActorSignature()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileUtilsTest.java | 88 private PackageManager mPackageManager; field in TileUtilsTest 107 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 108 when(mPackageManager.getResourcesForApplication(anyString())).thenReturn(mResources); in setUp() 109 when(mPackageManager.getResourcesForApplication((String) isNull())).thenReturn(mResources); in setUp() 110 when(mPackageManager.getApplicationInfo(eq("abc"), anyInt())) in setUp() 126 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in getTilesForIntent_shouldParseCategory() 128 when(mPackageManager.queryIntentContentProvidersAsUser(any(Intent.class), anyInt(), in getTilesForIntent_shouldParseCategory() 148 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in getTilesForIntent_shouldParseKeyHintForSystemApp() 150 when(mPackageManager.queryIntentContentProvidersAsUser(any(Intent.class), anyInt(), in getTilesForIntent_shouldParseKeyHintForSystemApp() 169 when(mPackageManager.queryIntentActivitiesAsUser(any(Intent.class), anyInt(), anyInt())) in getTilesForIntent_shouldSkipNonSystemApp() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiPermissionCheckerTest.java | 51 PackageManager mPackageManager; field in WifiPermissionCheckerTest 61 when(mActivity.getPackageManager()).thenReturn(mPackageManager); in setUp() 74 when(mPackageManager.checkPermission(ACCESS_WIFI_STATE, LAUNCHED_PACKAGE)) in canAccessWifiState_noPermission_returnFalse() 82 when(mPackageManager.checkPermission(ACCESS_WIFI_STATE, LAUNCHED_PACKAGE)) in canAccessWifiState_hasPermission_returnTrue() 90 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, LAUNCHED_PACKAGE)) in canAccessFineLocation_noPermission_returnFalse() 98 when(mPackageManager.checkPermission(ACCESS_FINE_LOCATION, LAUNCHED_PACKAGE)) in canAccessFineLocation_hasPermission_returnTrue()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiPermissionChecker.java | 39 private PackageManager mPackageManager; field in WifiPermissionChecker 48 mPackageManager = activity.getPackageManager(); in WifiPermissionChecker() 74 if (mPackageManager == null || TextUtils.isEmpty(mLaunchedPackage)) { in checkPermission() 76 + " {PackageManager:" + mPackageManager in checkPermission() 81 if (mPackageManager.checkPermission(permission, mLaunchedPackage) == PERMISSION_GRANTED) { in checkPermission()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 65 private PackageManager mPackageManager; field in FontsContractTest 75 mPackageManager = mock(PackageManager.class); in setUp() 238 when(mPackageManager.resolveContentProvider(anyString(), anyInt())).thenReturn(null); in testGetProvider_providerNotFound() 241 FontsContract.getProvider(mPackageManager, request); in testGetProvider_providerNotFound() 251 when(mPackageManager.resolveContentProvider(anyString(), anyInt())).thenReturn(info); in testGetProvider_providerIsSystemApp() 253 ProviderInfo result = FontsContract.getProvider(mPackageManager, request); in testGetProvider_providerIsSystemApp() 261 when(mPackageManager.resolveContentProvider(anyString(), anyInt())).thenReturn(info); in testGetProvider_providerIsSystemAppWrongPackage() 265 mPackageManager, in testGetProvider_providerIsSystemAppWrongPackage() 278 assertNull(FontsContract.getProvider(mPackageManager, request)); in testGetProvider_providerIsNonSystemAppNoCerts() 291 assertNull(FontsContract.getProvider(mPackageManager, requestWrongCerts)); in testGetProvider_providerIsNonSystemAppWrongCerts() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthenticationStatsCollectorTest.java | 74 private PackageManager mPackageManager; field in AuthenticationStatsCollectorTest 95 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 120 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in authenticate_authenticationSucceeded_mapShouldBeUpdated() 122 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in authenticate_authenticationSucceeded_mapShouldBeUpdated() 140 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in authenticate_authenticationFailed_mapShouldBeUpdated() 142 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in authenticate_authenticationFailed_mapShouldBeUpdated() 191 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in authenticate_frrNotExceeded_notificationNotExceeded_shouldNotSendNotification() 193 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in authenticate_frrNotExceeded_notificationNotExceeded_shouldNotSendNotification() 242 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) in authenticate_frrExceeded_bothBiometricsEnrolled_shouldNotSendNotification() 244 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_FACE)).thenReturn(true); in authenticate_frrExceeded_bothBiometricsEnrolled_shouldNotSendNotification() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | OptPropFactoryTest.java | 50 private PackageManager mPackageManager; field in OptPropFactoryTest 55 mPackageManager = mock(PackageManager.class); in setUp() 56 mOptPropFactory = new OptPropFactory(mPackageManager, ""); in setUp() 63 verify(mPackageManager, never()).getProperty(anyString(), anyString()); in optProp_laziness() 70 verify(mPackageManager).getProperty(anyString(), anyString()); in optProp_laziness() 242 Mockito.clearInvocations(mPackageManager); in initPropAs() 245 when(mPackageManager.getProperty(anyString(), anyString())).thenReturn(prop); in initPropAs() 249 Mockito.clearInvocations(mPackageManager); in initPropAsWithException() 250 when(mPackageManager.getProperty("", "")).thenThrow( in initPropAsWithException()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | PackageManagerAdapter.java | 37 private PackageManager mPackageManager; field in PackageManagerAdapter 44 mPackageManager = context.getPackageManager(); in PackageManagerAdapter() 55 return mPackageManager.getServiceInfo(component, flags); in getServiceInfo() 60 return mPackageManager.getPackageInfoAsUser(packageName, flags, userId); in getPackageInfoAsUser()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | FakeContextBuilder.java | 54 private final PackageManager mPackageManager; field in FakeContextBuilder 61 mPackageManager = mock(PackageManager.class); in FakeContextBuilder() 62 when(mPackageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(null); in FakeContextBuilder() 66 return mPackageManager; in FakeContextBuilder() 106 when(mPackageManager.resolveActivity(any(Intent.class), anyInt())).thenAnswer( in build() 114 when(mPackageManager.getApplicationLabel(any(ApplicationInfo.class))).thenAnswer( in build()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStart.java | 53 private PackageManager mPackageManager; field in InstallStart 78 mPackageManager = getPackageManager(); in onCreate() 79 mPackageInstaller = mPackageManager.getPackageInstaller(); in onCreate() 127 mPackageManager, callingUid) != null; in onCreate() 164 && mPackageManager.checkPermission(Manifest.permission.INSTALL_PACKAGES, in onCreate() 237 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in isUidRequestingPermission() 244 packageInfo = mPackageManager.getPackageInfo(packageName, in isUidRequestingPermission() 264 return mPackageManager.getApplicationInfo(callingPackage, 0); in getSourceInfo() 273 ProviderInfo info = mPackageManager.resolveContentProvider(packageUri.getAuthority(), in canPackageQuery() 280 String[] callingPackages = mPackageManager.getPackagesForUid(callingUid); in canPackageQuery() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppCopyHelper.java | 53 private final PackageManager mPackageManager; field in AppCopyHelper 69 mPackageManager = injector.getPackageManager(); in AppCopyHelper() 153 final List<ApplicationInfo> installedApps = mPackageManager.getInstalledApplications(0); in addCurrentUsersApps() 163 info.appName = app.loadLabel(mPackageManager); in addCurrentUsersApps() 164 info.icon = app.loadIcon(mPackageManager); in addCurrentUsersApps() 189 final List<ApplicationInfo> userAppInfos = mPackageManager.getInstalledApplicationsAsUser( in removeSecondUsersApp() 212 final List<ResolveInfo> intentApps = mPackageManager.queryIntentActivities(intent, 0); in addSystemApps() 221 info.appName = app.activityInfo.applicationInfo.loadLabel(mPackageManager); in addSystemApps() 222 info.icon = app.activityInfo.loadIcon(mPackageManager); in addSystemApps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesToolItemParserTest.java | 59 private PackageManager mPackageManager; field in HearingDevicesToolItemParserTest 76 mContext.setMockPackageManager(mPackageManager); in setUp() 78 when(mPackageManager.getActivityInfo(eq(TEST_COMPONENT), anyInt())).thenReturn( in setUp() 80 when(mPackageManager.getActivityInfo(eq(TEST_NO_EXIST_COMPONENT), anyInt())).thenThrow( in setUp() 82 when(mActivityInfo.loadLabel(mPackageManager)).thenReturn(TEST_LABEL); in setUp() 83 when(mActivityInfo.loadIcon(mPackageManager)).thenReturn(mDrawable); in setUp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/emergencynumber/ |
D | EmergencyNumberUtilsTest.java | 63 private PackageManager mPackageManager; field in EmergencyNumberUtilsTest 76 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setup() 84 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in getDefaultPoliceNumber_noTelephony_shouldReturnDefault() 93 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getDefaultPoliceNumber_hasTelephony_shouldLoadFromTelephony() 104 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasUserOverride_shouldLoadFromUserOverride() 119 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_noUserOverride_shouldLoadFromTelephony() 130 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in getPoliceNumber_hasCarrierPrefix_shouldRemovePrefix()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | PlatformCompatTest.java | 59 private PackageManager mPackageManager; field in PlatformCompatTest 73 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 74 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp() 78 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in setUp() 201 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverrides() 216 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerNotCalledOnWrongPackage() 230 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesTwoListeners() 258 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesForTest() 272 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesForTestTwoListeners() 300 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnClearOverrides() [all …]
|
D | OverrideValidatorImplTest.java | 59 private PackageManager mPackageManager; field in OverrideValidatorImplTest 90 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 104 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 148 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() 189 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride() 220 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride() 239 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride() 262 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildAnyChangeReleaseApp_rejectOverride() 301 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptin_allowOverride() 325 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptout_rejectOverride() [all …]
|
/frameworks/base/core/tests/coretests/src/android/accessibilityservice/ |
D | AccessibilityShortcutInfoTest.java | 57 private PackageManager mPackageManager; field in AccessibilityShortcutInfoTest 65 mPackageManager = mTargetContext.getPackageManager(); in setUp() 78 mShortcutInfo.loadDescription(mPackageManager), is(description)); in testDescription() 88 mShortcutInfo.loadSummary(mPackageManager), is(summary)); in testSummary() 98 mShortcutInfo.loadIntro(mPackageManager), is(intro)); in testIntro() 120 mShortcutInfo.loadHtmlDescription(mPackageManager), is(htmlDescription)); in testHtmlDescription()
|
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameClassifierImpl.java | 26 private final PackageManager mPackageManager; field in GameClassifierImpl 29 mPackageManager = packageManager; in GameClassifierImpl() 39 mPackageManager.getApplicationInfoAsUser( in isGame()
|