Home
last modified time | relevance | path

Searched refs:newPackage (Results 1 – 11 of 11) 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.java220 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallUsedByOther() local
223 List<String> newSecondaries = newPackage.getSecondaryDexPaths(); in testNotifyPackageInstallUsedByOther()
227 assertNoUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
230 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther()
234 PackageUseInfo pui = getPackageUseInfo(newPackage); in testNotifyPackageInstallUsedByOther()
235 assertIsUsedByOtherApps(newPackage, pui, false); in testNotifyPackageInstallUsedByOther()
237 assertSecondaryUse(newPackage, pui, newSecondaries, /*isUsedByOtherApps*/true, mUser0); in testNotifyPackageInstallUsedByOther()
242 TestData newPackage = new TestData("newPackage", in testNotifyPackageInstallSelfUse() local
245 List<String> newSecondaries = newPackage.getSecondaryDexPaths(); in testNotifyPackageInstallSelfUse()
248 notifyDexLoad(newPackage, newSecondaries, mUser0); in testNotifyPackageInstallSelfUse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScorerAppManagerTest.java275 String newPackage = "newPackage"; in testSetActiveScorer_validPackage() local
277 final ComponentName recoComponent = new ComponentName(newPackage, "class1"); in testSetActiveScorer_validPackage()
282 assertTrue(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_validPackage()
284 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, newPackage); in testSetActiveScorer_validPackage()
293 String newPackage = "newPackage"; in testSetActiveScorer_invalidPackage() local
297 assertFalse(mNetworkScorerAppManager.setActiveScorer(newPackage)); in testSetActiveScorer_invalidPackage()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java574 public synchronized boolean prepare(String oldPackage, String newPackage) { in prepare() argument
599 if (newPackage == null || (!newPackage.equals(VpnConfig.LEGACY_VPN) && in prepare()
600 isCurrentPreparedPackage(newPackage))) { in prepare()
608 if (mAlwaysOn && !isCurrentPreparedPackage(newPackage)) { in prepare()
612 prepareInternal(newPackage); in prepare()
623 private void prepareInternal(String newPackage) { in prepareInternal() argument
656 Log.i(TAG, "Switched from " + mPackage + " to " + newPackage); in prepareInternal()
657 mPackage = newPackage; in prepareInternal()
658 mOwnerUID = getAppUid(newPackage, mUserHandle); in prepareInternal()
/frameworks/base/core/java/android/net/
DIConnectivityManager.aidl112 boolean prepareVpn(String oldPackage, String newPackage, int userId); in prepareVpn() argument
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java5899 PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged() argument
5915 final int numNewPackagePermissions = newPackage.permissions.size(); in revokeRuntimePermissionsIfGroupChanged()
5919 newPackage.permissions.get(newPermissionNum); in revokeRuntimePermissionsIfGroupChanged()
5945 newPackage.applicationInfo.uid, in revokeRuntimePermissionsIfGroupChanged()
17732 PackageParser.Package newPackage = scanPackageTracedLI(pkg, policyFlags, scanFlags, in installNewPackageLIF() local
17735 updateSettingsLI(newPackage, installerPackageName, null, res, user, installReason); in installNewPackageLIF()
17738 prepareAppDataAfterInstallLIF(newPackage); in installNewPackageLIF()
18037 final PackageParser.Package newPackage = scanPackageTracedLI(pkg, policyFlags, in replaceNonSystemPackageLIF() local
18039 updateSettingsLI(newPackage, installerPackageName, allUsers, res, user, in replaceNonSystemPackageLIF()
18066 prepareAppDataAfterInstallLIF(newPackage); in replaceNonSystemPackageLIF()
[all …]
DSettings.java911 void writeUserRestrictionsLPw(PackageSetting newPackage, PackageSetting oldPackage) { in writeUserRestrictionsLPw() argument
913 if (getPackageLPr(newPackage.name) == null) { in writeUserRestrictionsLPw()
925 if (!oldUserState.equals(newPackage.readUserState(user.id))) { in writeUserRestrictionsLPw()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java619 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3421 public boolean prepareVpn(@Nullable String oldPackage, @Nullable String newPackage, in prepareVpn() argument
3429 return vpn.prepare(oldPackage, newPackage); in prepareVpn()