Home
last modified time | relevance | path

Searched refs:newPackage (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateServiceImpl.java125 PackageInfo newPackage = null; in packageStateChanged() local
128 newPackage = findPreferredWebViewPackage(); in packageStateChanged()
136 provider.packageName.equals(newPackage.packageName) in packageStateChanged()
144 onWebViewProviderChanged(newPackage); in packageStateChanged()
285 PackageInfo newPackage = updateCurrentWebViewPackage(newProviderName); in changeProviderAndSetting() local
286 if (newPackage == null) return ""; in changeProviderAndSetting()
287 return newPackage.packageName; in changeProviderAndSetting()
297 PackageInfo newPackage = null; in updateCurrentWebViewPackage() local
307 newPackage = findPreferredWebViewPackage(); in updateCurrentWebViewPackage()
309 || !newPackage.packageName.equals(oldPackage.packageName); in updateCurrentWebViewPackage()
[all …]
DWebViewUpdateServiceShellCommand.java64 String newPackage = mInterface.changeProviderAndSetting(shellChosenPackage); in setWebViewImplementation() local
65 if (shellChosenPackage.equals(newPackage)) { in setWebViewImplementation()
71 shellChosenPackage, newPackage)); in setWebViewImplementation()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/dex/
DDexManagerTests.java353 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallUsedByOther() local
356 List<String> newSecondaries = newPackage.getSecondaryDexPaths(); in testNotifyPackageInstallUsedByOther()
360 assertNoUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
361 assertNoDclInfo(newPackage); in testNotifyPackageInstallUsedByOther()
364 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther()
368 PackageUseInfo pui = getPackageUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
369 assertIsUsedByOtherApps(newPackage, pui, false); in testNotifyPackageInstallUsedByOther()
371 assertSecondaryUse(newPackage, pui, newSecondaries, /*isUsedByOtherApps*/true, mUser0); in testNotifyPackageInstallUsedByOther()
372 assertHasDclInfo(newPackage, mFooUser0, newSecondaries); in testNotifyPackageInstallUsedByOther()
377 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallSelfUse() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java270 String newPackage = "newPackage"; in testSetActiveScorer_validPackage() local
272 final ComponentName recoComponent = new ComponentName(newPackage, "class1"); in testSetActiveScorer_validPackage()
277 assertTrue(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_validPackage()
279 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, newPackage); in testSetActiveScorer_validPackage()
288 String newPackage = "newPackage"; in testSetActiveScorer_invalidPackage() local
292 assertFalse(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_invalidPackage()
/frameworks/base/core/java/android/net/
DIVpnManager.aidl31 boolean prepareVpn(String oldPackage, String newPackage, int userId); in prepareVpn() argument
DVpnManager.java245 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
248 return mService.prepareVpn(oldPackage, newPackage, userId); in prepareVpn()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java303 final Package newPackage = new Package(packageName, targetPackage, in build() local
305 newPackage.overlayableNames.addAll(overlayableNames); in build()
306 return newPackage; in build()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java906 String oldPackage, String newPackage, @VpnManager.VpnType int vpnType) { in prepare() argument
932 if (newPackage == null || (!newPackage.equals(VpnConfig.LEGACY_VPN) && in prepare()
933 isCurrentPreparedPackage(newPackage))) { in prepare()
941 if (mAlwaysOn && !isCurrentPreparedPackage(newPackage)) { in prepare()
945 prepareInternal(newPackage); in prepare()
958 private void prepareInternal(String newPackage) { in prepareInternal() argument
991 Log.i(TAG, "Switched from " + mPackage + " to " + newPackage); in prepareInternal()
992 mPackage = newPackage; in prepareInternal()
993 mOwnerUID = getAppUid(newPackage, mUserId); in prepareInternal()
994 mIsPackageTargetingAtLeastQ = doesPackageTargetAtLeastQ(newPackage); in prepareInternal()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java844 final ApkLite newPackage = parseResult.getResult();
846 final String packageName = newPackage.getPackageName();
848 session.rollbackDataPolicy, newPackage.getRollbackDataPolicy());
905 return rollback.enableForPackage(packageName, newPackage.getVersionCode(),
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java2197 @NonNull AndroidPackage newPackage, in revokeStoragePermissionsIfScopeExpandedInternal()
2200 && newPackage.getTargetSdkVersion() < Build.VERSION_CODES.Q; in revokeStoragePermissionsIfScopeExpandedInternal()
2202 && newPackage.getTargetSdkVersion() >= Build.VERSION_CODES.Q; in revokeStoragePermissionsIfScopeExpandedInternal()
2204 && newPackage.isRequestLegacyExternalStorage(); in revokeStoragePermissionsIfScopeExpandedInternal()
2212 int numRequestedPermissions = newPackage.getRequestedPermissions().size(); in revokeStoragePermissionsIfScopeExpandedInternal()
2215 newPackage.getRequestedPermissions().get(i), in revokeStoragePermissionsIfScopeExpandedInternal()
2216 newPackage.getPackageName(), 0); in revokeStoragePermissionsIfScopeExpandedInternal()
2221 EventLog.writeEvent(0x534e4554, "171430330", newPackage.getUid(), in revokeStoragePermissionsIfScopeExpandedInternal()
2223 + newPackage.getPackageName() + " as either the sdk downgraded " in revokeStoragePermissionsIfScopeExpandedInternal()
2228 revokeRuntimePermissionInternal(newPackage.getPackageName(), permInfo.name, in revokeStoragePermissionsIfScopeExpandedInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/
DVpnManagerService.java194 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
202 return vpn.prepare(oldPackage, newPackage, VpnManager.TYPE_VPN_SERVICE); in prepareVpn()
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java347 final PackageInfo activePackage, final PackageInfo newPackage) in checkDowngrade() argument
350 final long newVersionCode = newPackage.applicationInfo.longVersionCode; in checkDowngrade()
358 "Downgrade of APEX package " + newPackage.packageName in checkDowngrade()
DSettings.java1143 void writeUserRestrictionsLPw(PackageSetting newPackage, PackageSetting oldPackage) {
1145 if (getPackageLPr(newPackage.name) == null) {
1157 if (!oldUserState.equals(newPackage.readUserState(user.id))) {
DPackageManagerService.java19047 private void updateSettingsLI(AndroidPackage newPackage, InstallArgs installArgs, in updateSettingsLI() argument
19049 updateSettingsInternalLI(newPackage, installArgs, allUsers, res); in updateSettingsLI()
24048 final boolean newPackage = components == null;
24049 if (newPackage) {
24061 if (newPackage) {
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java696 UserHandle userHandle, @Nullable String oldPackage, @Nullable String newPackage) { in broadcastSmsAppChange() argument
701 getApplicationForPackage(apps, newPackage)); in broadcastSmsAppChange()