Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdater.java86 PackageInfo newPackage = null; in packageStateChanged() local
89 newPackage = findPreferredWebViewPackage(); in packageStateChanged()
93 && newPackage.packageName.equals(oldProviderName)) { in packageStateChanged()
99 if (newPackage.packageName.equals(oldProviderName) in packageStateChanged()
100 && (newPackage.lastUpdateTime in packageStateChanged()
110 provider.packageName.equals(newPackage.packageName) in packageStateChanged()
118 onWebViewProviderChanged(newPackage); in packageStateChanged()
165 PackageInfo newPackage = updateCurrentWebViewPackage(newProviderName); in changeProviderAndSetting() local
166 if (newPackage == null) return ""; in changeProviderAndSetting()
167 return newPackage.packageName; in changeProviderAndSetting()
[all …]
DWebViewUpdateServiceShellCommand.java69 String newPackage = mInterface.changeProviderAndSetting(shellChosenPackage); in setWebViewImplementation() local
70 if (shellChosenPackage.equals(newPackage)) { in setWebViewImplementation()
76 shellChosenPackage, newPackage)); in setWebViewImplementation()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DCustomBindingTest.java43 com.android.test.CustomBinding newPackage = in testCustomBindings() local
45 newPackage.executePendingBindings(); in testCustomBindings()
46 assertEquals("hello android", newPackage.textView.getText().toString()); in testCustomBindings()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java242 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallUsedByOther() local
245 List<String> newSecondaries = newPackage.getSecondaryDexPaths(); in testNotifyPackageInstallUsedByOther()
249 assertNoUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
252 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther()
256 PackageUseInfo pui = getPackageUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
257 assertIsUsedByOtherApps(newPackage, pui, false); in testNotifyPackageInstallUsedByOther()
259 assertSecondaryUse(newPackage, pui, newSecondaries, /*isUsedByOtherApps*/true, mUser0); in testNotifyPackageInstallUsedByOther()
264 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallSelfUse() local
267 List<String> newSecondaries = newPackage.getSecondaryDexPaths(); in testNotifyPackageInstallSelfUse()
270 notifyDexLoad(newPackage, newSecondaries, mUser0); in testNotifyPackageInstallSelfUse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java271 String newPackage = "newPackage"; in testSetActiveScorer_validPackage() local
273 final ComponentName recoComponent = new ComponentName(newPackage, "class1"); in testSetActiveScorer_validPackage()
278 assertTrue(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_validPackage()
280 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, newPackage); in testSetActiveScorer_validPackage()
289 String newPackage = "newPackage"; in testSetActiveScorer_invalidPackage() local
293 assertFalse(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_invalidPackage()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java655 public synchronized boolean prepare(String oldPackage, String newPackage) { in prepare() argument
680 if (newPackage == null || (!newPackage.equals(VpnConfig.LEGACY_VPN) && in prepare()
681 isCurrentPreparedPackage(newPackage))) { in prepare()
689 if (mAlwaysOn && !isCurrentPreparedPackage(newPackage)) { in prepare()
693 prepareInternal(newPackage); in prepare()
704 private void prepareInternal(String newPackage) { in prepareInternal() argument
737 Log.i(TAG, "Switched from " + mPackage + " to " + newPackage); in prepareInternal()
738 mPackage = newPackage; in prepareInternal()
739 mOwnerUID = getAppUid(newPackage, mUserHandle); in prepareInternal()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerInternal.java105 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
DPermissionManagerService.java406 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
423 final int numNewPackagePermissions = newPackage.permissions.size(); in revokeRuntimePermissionsIfGroupChanged()
427 newPackage.permissions.get(newPermissionNum); in revokeRuntimePermissionsIfGroupChanged()
451 newPackage.applicationInfo.uid, in revokeRuntimePermissionsIfGroupChanged()
2060 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
2064 PermissionManagerService.this.revokeRuntimePermissionsIfGroupChanged(newPackage, in revokeRuntimePermissionsIfGroupChanged()
/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl111 boolean prepareVpn(String oldPackage, String newPackage, int userId); in prepareVpn() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java614 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java16313 PackageParser.Package newPackage = scanPackageTracedLI(pkg, parseFlags, scanFlags,
16316 updateSettingsLI(newPackage, installerPackageName, null, res, user, installReason);
16319 prepareAppDataAfterInstallLIF(newPackage);
16592 final PackageParser.Package newPackage = scanPackageTracedLI(pkg, parseFlags,
16594 updateSettingsLI(newPackage, installerPackageName, allUsers, res, user,
16617 prepareAppDataAfterInstallLIF(newPackage);
16619 mDexManager.notifyPackageUpdated(newPackage.packageName,
16620 newPackage.baseCodePath, newPackage.splitCodePaths);
16729 PackageParser.Package newPackage = null;
16732 newPackage = scanPackageTracedLI(pkg, parseFlags, scanFlags, 0, user);
[all …]
DSettings.java902 void writeUserRestrictionsLPw(PackageSetting newPackage, PackageSetting oldPackage) { in writeUserRestrictionsLPw() argument
904 if (getPackageLPr(newPackage.name) == null) { in writeUserRestrictionsLPw()
916 if (!oldUserState.equals(newPackage.readUserState(user.id))) { in writeUserRestrictionsLPw()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3638 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
3646 return vpn.prepare(oldPackage, newPackage); in prepareVpn()