/frameworks/base/core/tests/hosttests/src/android/content/pm/ |
D | PackageManagerHostTestUtils.java | 137 private CollectingTestRunListener doRunTests(String pkgName, String className, in doRunTests() argument 140 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, runnerName, in doRunTests() 173 public boolean runDeviceTestsDidAllTestsPass(String pkgName, String className, in runDeviceTestsDidAllTestsPass() argument 176 CollectingTestRunListener listener = doRunTests(pkgName, className, methodName, in runDeviceTestsDidAllTestsPass() 192 public boolean runDeviceTestsDidAllTestsPass(String pkgName) throws IOException, in runDeviceTestsDidAllTestsPass() argument 194 CollectingTestRunListener listener = doRunTests(pkgName, null, null, null, null); in runDeviceTestsDidAllTestsPass() 685 public void installAppAndVerifyExistsOnSDCard(String apkPath, String pkgName, boolean overwrite) in installAppAndVerifyExistsOnSDCard() argument 691 mDevice.uninstallPackage(pkgName); in installAppAndVerifyExistsOnSDCard() 693 assertFalse(doesPackageExist(pkgName)); in installAppAndVerifyExistsOnSDCard() 697 assertTrue(doesAppExistOnSDCard(pkgName)); in installAppAndVerifyExistsOnSDCard() [all …]
|
D | PackageManagerStressHostTests.java | 226 String pkgName = LARGE_APPS[i][APK.PACKAGENAME.ordinal()]; in testInstallManyLargeAppsOnSD() local 229 mPMHostUtils.uninstallApp(pkgName); in testInstallManyLargeAppsOnSD() 231 assertFalse(mPMHostUtils.doesPackageExist(pkgName)); in testInstallManyLargeAppsOnSD() 238 assertTrue(mPMHostUtils.doesAppExistOnSDCard(pkgName)); in testInstallManyLargeAppsOnSD() 239 assertTrue(mPMHostUtils.doesPackageExist(pkgName)); in testInstallManyLargeAppsOnSD() 246 String pkgName = LARGE_APPS[i][APK.PACKAGENAME.ordinal()]; in testInstallManyLargeAppsOnSD() local 250 mPMHostUtils.uninstallApp(pkgName); in testInstallManyLargeAppsOnSD() 252 assertFalse(mPMHostUtils.doesPackageExist(pkgName)); in testInstallManyLargeAppsOnSD() 253 assertFalse(mPMHostUtils.doesAppExistOnSDCard(pkgName)); in testInstallManyLargeAppsOnSD()
|
D | PackageManagerHostTests.java | 205 private void doStandardInstall(String apkName, String pkgName, in doStandardInstall() argument 212 getTestAppFilePath(apkName), pkgName, false); in doStandardInstall() local 216 getTestAppFilePath(apkName), pkgName, false); in doStandardInstall() local
|
/frameworks/base/services/java/com/android/server/am/ |
D | UsageStatsService.java | 342 String pkgName = in.readString(); in readStatsFLOCK() local 343 if (pkgName == null) { in readStatsFLOCK() 346 if (localLOGV) Slog.v(TAG, "Reading package #" + N + ": " + pkgName); in readStatsFLOCK() 349 mStats.put(pkgName, pus); in readStatsFLOCK() 682 String pkgName; in noteResumeComponent() local 685 ((pkgName = componentName.getPackageName()) == null)) { in noteResumeComponent() 689 final boolean samePackage = pkgName.equals(mLastResumedPkg); in noteResumeComponent() 694 if (REPORT_UNEXPECTED) Slog.i(TAG, "Unexpected resume of " + pkgName in noteResumeComponent() 707 mLastResumedPkg = pkgName; in noteResumeComponent() 710 if (localLOGV) Slog.i(TAG, "started component:" + pkgName); in noteResumeComponent() [all …]
|
D | ActivityManagerService.java | 11754 String pkgName = data.getSchemeSpecificPart(); in broadcastIntentLocked() local 11755 if (pkgName != null) { in broadcastIntentLocked() 11756 skipPackages = new String[] { pkgName }; in broadcastIntentLocked()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 140 String pkgName; field in PackageManagerTests.InstallReceiver 142 InstallReceiver(String pkgName) { in InstallReceiver() argument 143 this.pkgName = pkgName; in InstallReceiver() 156 if (pkgName.equals(installedPkg)) { in notifyNow() 358 String pkgName = pkg.packageName; in assertInstall() local 359 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertInstall() 361 assertEquals(pkgName, info.packageName); in assertInstall() 432 private void assertNotInstalled(String pkgName) { in assertNotInstalled() argument 434 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertNotInstalled() 435 fail(pkgName + " shouldnt be installed"); in assertNotInstalled() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | AppWidgetService.java | 1404 String pkgName = p.info.provider.getPackageName(); 1405 updateProvidersForPackageLocked(pkgName); 1425 String pkgName = uri.getSchemeSpecificPart(); 1426 if (pkgName == null) { 1429 pkgList = new String[] { pkgName }; 1442 for (String pkgName : pkgList) { 1444 updateProvidersForPackageLocked(pkgName); 1448 for (String pkgName : pkgList) { 1449 addProvidersForPackageLocked(pkgName); 1461 for (String pkgName : pkgList) { [all …]
|
D | NotificationManagerService.java | 337 String pkgName = uri.getSchemeSpecificPart(); 338 if (pkgName == null) { 341 pkgList = new String[]{pkgName}; 344 for (String pkgName : pkgList) { 345 cancelAllNotificationsInt(pkgName, 0, 0, !queryRestart);
|
D | BackupManagerService.java | 209 BackupRequest(String pkgName) { in BackupRequest() argument 210 packageName = pkgName; in BackupRequest() 872 String pkgName = tf.readUTF(); in initPackageTracking() local 873 mAncestralPackages.add(pkgName); in initPackageTracking() 1288 String pkgName = uri.getSchemeSpecificPart(); 1289 if (pkgName != null) { 1290 pkgList = new String[] { pkgName }; 1294 if (MORE_DEBUG) Slog.d(TAG, "PACKAGE_REPLACED, updating package " + pkgName); 1313 for (String pkgName : pkgList) { 1316 updatePackageParticipantsLocked(pkgName); [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfoSource.java | 49 protected ClassPathPackageInfo load(String pkgName) { 50 return createPackageInfo(pkgName); 71 public ClassPathPackageInfo getPackageInfo(String pkgName) { in getPackageInfo() argument 72 return cache.get(pkgName); in getPackageInfo()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PkgUsageStats.java | 53 public PkgUsageStats(String pkgName, int count, long time, Map<String, Long> lastResumeTimes) { in PkgUsageStats() argument 54 packageName = pkgName; in PkgUsageStats()
|
D | BatteryStatsImpl.java | 5210 String pkgName = in.readString(); in readSummaryFromParcel() local 5211 Uid.Pkg p = u.getPackageStatsLocked(pkgName); in readSummaryFromParcel() 5220 Uid.Pkg.Serv s = u.getServiceStatsLocked(pkgName, servName); in readSummaryFromParcel()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageStats.java | 102 public PackageStats(String pkgName) { in PackageStats() argument 103 packageName = pkgName; in PackageStats()
|
D | PackageParser.java | 723 String pkgName = attrs.getAttributeValue(null, "package"); in parsePackageName() local 724 if (pkgName == null || pkgName.length() == 0) { in parsePackageName() 728 String nameError = validateName(pkgName, true); in parsePackageName() 729 if (nameError != null && !"android".equals(pkgName)) { in parsePackageName() 731 + pkgName + "\": " + nameError; in parsePackageName() 735 return pkgName.intern(); in parsePackageName() 758 String pkgName = attrs.getAttributeValue(null, "package"); in parsePackageLite() local 759 if (pkgName == null || pkgName.length() == 0) { in parsePackageLite() 763 String nameError = validateName(pkgName, true); in parsePackageLite() 764 if (nameError != null && !"android".equals(pkgName)) { in parsePackageLite() [all …]
|
D | IPackageManager.aidl | 77 int checkPermission(String permName, String pkgName); in checkPermission() argument
|
D | PackageManager.java | 1419 public abstract int checkPermission(String permName, String pkgName); in checkPermission() argument
|
/frameworks/base/services/java/com/android/server/pm/ |
D | PackageManagerService.java | 1834 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 1836 PackageParser.Package p = mPackages.get(pkgName); in checkPermission() 2259 final String pkgName = intent.getPackage(); in queryIntentActivities() local 2260 if (pkgName == null) { in queryIntentActivities() 2263 final PackageParser.Package pkg = mPackages.get(pkgName); in queryIntentActivities() 2456 String pkgName = intent.getPackage(); in queryIntentReceivers() local 2457 if (pkgName == null) { in queryIntentReceivers() 2460 final PackageParser.Package pkg = mPackages.get(pkgName); in queryIntentReceivers() 2495 String pkgName = intent.getPackage(); in queryIntentServices() local 2496 if (pkgName == null) { in queryIntentServices() [all …]
|
D | Installer.java | 309 public int getSizeInfo(String pkgName, String apkPath, String fwdLockApkPath, in getSizeInfo() argument 313 builder.append(pkgName); in getSizeInfo()
|
D | Settings.java | 175 void setInstallStatus(String pkgName, int status) { in setInstallStatus() argument 176 PackageSetting p = mPackages.get(pkgName); in setInstallStatus() 184 void setInstallerPackageName(String pkgName, in setInstallerPackageName() argument 186 PackageSetting p = mPackages.get(pkgName); in setInstallerPackageName()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | SearchablesTest.java | 435 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 437 assertNotNull(pkgName); in checkPermission() 440 return mRealPackageManager.checkPermission(permName, pkgName); in checkPermission()
|
/frameworks/base/tools/aapt/ |
D | Main.h | 45 const sp<AaptAssets>& assets, const String8& pkgName, bool includePrivate);
|
D | Command.cpp | 375 const char *getComponentName(String8 &pkgName, String8 &componentName) { in getComponentName() argument 377 String8 retStr(pkgName); in getComponentName()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewCore.java | 2664 String pkgName = pluginManager.getPluginsAPKName(libName); in getPluginClass() local 2665 if (pkgName == null) { in getPluginClass() 2671 return pluginManager.getPluginClass(pkgName, clsName); in getPluginClass() 2673 Log.e(LOGTAG, "Unable to find plugin classloader for the apk (" + pkgName + ")"); in getPluginClass() 2676 ") in the apk (" + pkgName + ")"); in getPluginClass()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 143 public int checkPermission(String permName, String pkgName) { in checkPermission() argument
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 299 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 301 return mPM.checkPermission(permName, pkgName); in checkPermission()
|