/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 102 PackageLite pkg = null; 106 pkg = PackageParser.parsePackageLite(packageFile, 0); 107 handle = NativeLibraryHelper.Handle.create(pkg); 108 return copyPackageToContainerInner(pkg, handle, containerId, key, isExternal, 133 PackageLite pkg = null; 136 pkg = PackageParser.parsePackageLite(packageFile, 0); 137 return copyPackageInner(pkg, target); 165 final PackageParser.PackageLite pkg; 168 pkg = PackageParser.parsePackageLite(packageFile, 0); 169 sizeBytes = PackageHelper.calculateInstalledSize(pkg, isForwardLocked, abiOverride); [all …]
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 37 void cancelAllNotifications(String pkg, int userId); in cancelAllNotifications() argument 39 void enqueueToast(String pkg, ITransientNotification callback, int duration); in enqueueToast() argument 40 void cancelToast(String pkg, ITransientNotification callback); in cancelToast() argument 41 void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id, in enqueueNotificationWithTag() argument 43 void cancelNotificationWithTag(String pkg, String tag, int id, int userId); in cancelNotificationWithTag() argument 45 void setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled); in setNotificationsEnabledForPackage() argument 46 boolean areNotificationsEnabledForPackage(String pkg, int uid); in areNotificationsEnabledForPackage() argument 48 void setPackagePriority(String pkg, int uid, int priority); in setPackagePriority() argument 49 int getPackagePriority(String pkg, int uid); in getPackagePriority() argument 51 void setPackageVisibilityOverride(String pkg, int uid, int visibility); in setPackageVisibilityOverride() argument [all …]
|
D | NotificationManager.java | 141 String pkg = mContext.getPackageName(); in notify() local 148 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify() 152 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notify() 168 String pkg = mContext.getPackageName(); in notifyAsUser() local 175 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notifyAsUser() 179 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser() 206 String pkg = mContext.getPackageName(); in cancel() local 207 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")"); in cancel() 209 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId()); in cancel() 220 String pkg = mContext.getPackageName(); in cancelAsUser() local [all …]
|
/frameworks/base/core/java/android/nfc/ |
D | INfcAdapterExtras.aidl | 26 Bundle open(in String pkg, IBinder b); in open() argument 27 Bundle close(in String pkg, IBinder b); in close() argument 28 Bundle transceive(in String pkg, in byte[] data_in); in transceive() argument 29 int getCardEmulationRoute(in String pkg); in getCardEmulationRoute() argument 30 void setCardEmulationRoute(in String pkg, int route); in setCardEmulationRoute() argument 31 void authenticate(in String pkg, in byte[] token); in authenticate() argument 32 String getDriverName(in String pkg); in getDriverName() argument
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 29 private final String pkg; field in StatusBarNotification 45 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, in StatusBarNotification() argument 47 this(pkg, opPkg, id, tag, uid, initialPid, score, notification, user, in StatusBarNotification() 51 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, in StatusBarNotification() argument 54 if (pkg == null) throw new NullPointerException(); in StatusBarNotification() 57 this.pkg = pkg; in StatusBarNotification() 72 this.pkg = in.readString(); in StatusBarNotification() 91 return user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid; in key() 101 return user.getIdentifier() + "|" + pkg + "|" + in groupKey() 108 out.writeString(this.pkg); in writeToParcel() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 667 for (PackageParser.Package pkg : mPackages.values()) { in writeInternal() 668 if (pkg.mLastPackageUsageTimeInMills == 0) { in writeInternal() 672 sb.append(pkg.packageName); in writeInternal() 674 sb.append((long)pkg.mLastPackageUsageTimeInMills); in writeInternal() 708 PackageParser.Package pkg = mPackages.get(packageName); in readLP() local 709 if (pkg == null) { in readLP() 719 pkg.mLastPackageUsageTimeInMills = timeInMillis; in readLP() 1035 res.pkg.applicationInfo.packageName, in doHandleMessage() 1042 res.pkg.applicationInfo.packageName, in doHandleMessage() 1046 res.pkg.applicationInfo.packageName, in doHandleMessage() [all …]
|
D | Settings.java | 281 PackageSetting getPackageLPw(PackageParser.Package pkg, PackageSetting origPackage, in getPackageLPw() argument 285 final String name = pkg.packageName; in getPackageLPw() 288 pkg.mVersionCode, pkgFlags, user, add, true /* allowInstall */); in getPackageLPw() 347 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in disableSystemPackageLPw() 348 p.pkg.applicationInfo.flags |= ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in disableSystemPackageLPw() 370 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in enableSystemPackageLPw() 371 p.pkg.applicationInfo.flags &= ~ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in enableSystemPackageLPw() 652 void insertPackageSettingLPw(PackageSetting p, PackageParser.Package pkg) { in insertPackageSettingLPw() argument 653 p.pkg = pkg; in insertPackageSettingLPw() 656 final String codePath = pkg.applicationInfo.getCodePath(); in insertPackageSettingLPw() [all …]
|
D | KeySetManagerService.java | 85 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr() local 86 if (pkg == null) { in packageIsSignedByLPr() 89 if (pkg.keySetData == null) { in packageIsSignedByLPr() 96 return pkg.keySetData.packageIsSignedBy(id); in packageIsSignedByLPr() 109 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr() local 110 if (pkg == null) { in packageIsSignedByExactlyLPr() 113 if (pkg.keySetData == null in packageIsSignedByExactlyLPr() 114 || pkg.keySetData.getProperSigningKeySet() in packageIsSignedByExactlyLPr() 119 return pkg.keySetData.getProperSigningKeySet() == id; in packageIsSignedByExactlyLPr() 133 PackageSetting pkg = mPackages.get(packageName); in addDefinedKeySetToPackageLPw() local [all …]
|
D | SELinuxMMAC.java | 112 void putPkg(String pkg, String seinfoValue) { in putPkg() argument 113 pkgMap.put(pkg, seinfoValue); in putPkg() 231 String pkg = parser.getAttributeValue(null, "name"); in readPolicyTags() local 232 if (!validatePackageName(pkg)) { in readPolicyTags() 241 policy.putPkg(pkg, seinfo); in readPolicyTags() 347 public static boolean assignSeinfoValue(PackageParser.Package pkg) { in assignSeinfoValue() argument 350 for (Signature s : pkg.mSignatures) { in assignSeinfoValue() 356 String seinfo = policy.checkPolicy(pkg.packageName); in assignSeinfoValue() 358 pkg.applicationInfo.seinfo = seinfo; in assignSeinfoValue() 360 Slog.i(TAG, "package (" + pkg.packageName + in assignSeinfoValue() [all …]
|
D | BackgroundDexOptService.java | 77 for (String pkg : pkgs) { in onStartJob() 83 if (sFailedPackageNames.contains(pkg)) { in onStartJob() 87 if (!pm.performDexOpt(pkg, null /* instruction set */, true)) { in onStartJob() 90 sFailedPackageNames.add(pkg); in onStartJob()
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 47 public ComponentName(String pkg, String cls) { in ComponentName() argument 48 if (pkg == null) throw new NullPointerException("package name is null"); in ComponentName() 50 mPackage = pkg; in ComponentName() 62 public ComponentName(Context pkg, String cls) { in ComponentName() argument 64 mPackage = pkg.getPackageName(); in ComponentName() 76 public ComponentName(Context pkg, Class<?> cls) { in ComponentName() argument 77 mPackage = pkg.getPackageName(); in ComponentName() 212 String pkg = str.substring(0, sep); in unflattenFromString() local 215 cls = pkg + cls; in unflattenFromString() 217 return new ComponentName(pkg, cls); in unflattenFromString() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageMonitor.java | 274 String pkg = uri != null ? uri.getSchemeSpecificPart() : null; in getPackageName() local 275 return pkg; in getPackageName() 293 String pkg = getPackageName(intent); in onReceive() local 299 if (pkg != null) { in onReceive() 301 mTempArray[0] = pkg; in onReceive() 305 onPackageUpdateFinished(pkg, uid); in onReceive() 306 onPackageModified(pkg); in onReceive() 309 onPackageAdded(pkg, uid); in onReceive() 311 onPackageAppeared(pkg, mChangeType); in onReceive() 314 mUpdatingPackages.remove(pkg); in onReceive() [all …]
|
/frameworks/base/media/java/android/service/media/ |
D | MediaBrowserService.java | 86 String pkg; field in MediaBrowserService.ConnectionRecord 155 public void connect(final String pkg, final Bundle rootHints, in connect() argument 159 if (!isValidPackage(pkg, uid)) { in connect() 161 + " package=" + pkg); in connect() 173 connection.pkg = pkg; in connect() 177 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); in connect() 181 Log.i(TAG, "No root for client " + pkg + " from service " in connect() 187 + "pkg=" + pkg); in connect() 198 + "pkg=" + pkg); in connect() 344 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); in setSessionToken() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 309 final Iterator<StatusBarNotification> iter, final String pkg, final int userId) { in filter() argument 316 if ((pkg == null || nr.getPackageName() == pkg) in filter() 358 public StatusBarNotification[] getArray(int count, String pkg, int userId) { in getArray() argument 362 Iterator<StatusBarNotification> iter = filter(descendingIterator(), pkg, userId); in getArray() 458 private boolean noteNotificationOp(String pkg, int uid) { in noteNotificationOp() argument 459 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg) in noteNotificationOp() 461 Slog.v(TAG, "notifications are disabled by AppOps for " + pkg); in noteNotificationOp() 470 final String pkg; field in ToastRecord 474 ToastRecord(int pid, String pkg, ITransientNotification callback, int duration) in ToastRecord() argument 477 this.pkg = pkg; in ToastRecord() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AttributeCache.java | 100 Package pkg = mPackages.get(packageName); in get() local 103 if (pkg != null) { in get() 104 map = pkg.mMap.get(resId); in get() 122 pkg = new Package(context); in get() 123 mPackages.put(packageName, pkg); in get() 128 pkg.mMap.put(resId, map); in get() 132 ent = new Entry(pkg.context, in get() 133 pkg.context.obtainStyledAttributes(resId, styleable)); in get()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationBlacklist.java | 105 private boolean inWhitelist(String pkg) { in inWhitelist() argument 108 if (pkg.startsWith(white)) return true; in inWhitelist() 137 for (String pkg : splitStrings) { in getStringArrayLocked() 138 pkg = pkg.trim(); in getStringArrayLocked() 139 if (pkg.isEmpty()) { in getStringArrayLocked() 142 result.add(pkg); in getStringArrayLocked()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 319 PackageParser.Package pkg = packageParser.parseMonolithicPackage(sourceFile, 0); in parsePackage() local 321 return pkg; in parsePackage() 407 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { in assertInstall() argument 409 String pkgName = pkg.packageName; in assertInstall() 591 PackageParser.Package pkg; field in PackageManagerTests.InstallParams 594 this.pkg = getParsedPackage(outFileName, rawResId); in InstallParams() 595 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams() 598 InstallParams(PackageParser.Package pkg) { in InstallParams() argument 599 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams() 600 this.pkg = pkg; in InstallParams() [all …]
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | StatusBarManagerService.java | 76 String pkg; field in StatusBarManagerService.DisableRecord 81 Slog.i(TAG, "binder died for pkg=" + pkg); in binderDied() 82 disableInternal(userId, 0, token, pkg); in binderDied() 196 public void disable(int what, IBinder token, String pkg) { in disable() argument 197 disableInternal(mCurrentUserId, what, token, pkg); in disable() 200 private void disableInternal(int userId, int what, IBinder token, String pkg) { in disableInternal() argument 204 disableLocked(userId, what, token, pkg); in disableInternal() 208 private void disableLocked(int userId, int what, IBinder token, String pkg) { in disableLocked() argument 213 manageDisableListLocked(userId, what, token, pkg); in disableLocked() 561 public void onNotificationError(String pkg, String tag, int id, in onNotificationError() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 247 public ClipData getPrimaryClip(String pkg) { in getPrimaryClip() argument 250 pkg) != AppOpsManager.MODE_ALLOWED) { in getPrimaryClip() 253 addActiveOwnerLocked(Binder.getCallingUid(), pkg); in getPrimaryClip() local 341 private final void grantUriLocked(Uri uri, String pkg, int userId) { in grantUriLocked() argument 346 mAm.grantUriPermissionFromOwner(mPermissionOwner, Process.myUid(), pkg, in grantUriLocked() 354 private final void grantItemLocked(ClipData.Item item, String pkg, int userId) { in grantItemLocked() argument 356 grantUriLocked(item.getUri(), pkg, userId); in grantItemLocked() local 360 grantUriLocked(intent.getData(), pkg, userId); in grantItemLocked() local 364 private final void addActiveOwnerLocked(int uid, String pkg) { in addActiveOwnerLocked() argument 369 PackageInfo pi = pm.getPackageInfo(pkg, 0, targetUserHandle); in addActiveOwnerLocked() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 790 final Package pkg = parseBaseApk(baseApk, assets, flags); in parseClusterPackage() local 791 if (pkg == null) { in parseClusterPackage() 798 pkg.splitNames = lite.splitNames; in parseClusterPackage() 799 pkg.splitCodePaths = lite.splitCodePaths; in parseClusterPackage() 800 pkg.splitRevisionCodes = lite.splitRevisionCodes; in parseClusterPackage() 801 pkg.splitFlags = new int[num]; in parseClusterPackage() 804 parseSplitApk(pkg, i, assets, flags); in parseClusterPackage() 808 pkg.codePath = packageDir.getAbsolutePath(); in parseClusterPackage() 809 return pkg; in parseClusterPackage() 837 final Package pkg = parseBaseApk(apkFile, assets, flags); in parseMonolithicPackage() local [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 142 PackageInfo pkg = pkgs.get(a); in getStorableApplications() local 143 if (!BackupManagerService.appIsEligibleForBackup(pkg.applicationInfo)) { in getStorableApplications() 264 for (PackageInfo pkg : mAllPackages) { in onBackup() 265 String packName = pkg.packageName; in onBackup() 527 String pkg = in.readUTF(); in parseStateFile() local 530 if (pkg.equals(STATE_FILE_HEADER)) { in parseStateFile() 537 pkg = in.readUTF(); in parseStateFile() 549 if (pkg.equals(DEFAULT_HOME_KEY)) { in parseStateFile() 555 pkg = in.readUTF(); // set up for the next block of state in parseStateFile() 561 if (pkg.equals(GLOBAL_METADATA_KEY)) { in parseStateFile() [all …]
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 160 String pkg = nextArg(); in doBackup() local 161 if (pkg == null) { in doBackup() 167 mBmgr.dataChanged(pkg); in doBackup() 177 String pkg; in doFullTransportBackup() local 179 while ((pkg = nextArg()) != null) { in doFullTransportBackup() 180 allPkgs.add(pkg); in doFullTransportBackup() 220 String pkg = nextArg(); in doWipe() local 221 if (pkg == null) { in doWipe() 227 mBmgr.clearBackupData(transport, pkg); in doWipe() 228 System.out.println("Wiped backup data for " + pkg + " on " + transport); in doWipe() [all …]
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | ClientTest.java | 62 EditText pkg = (EditText) findViewById(R.id.pkg); in onCreate() 72 pkg.getText().toString(), in onCreate() 82 pkg.getText().toString(), in onCreate() 98 EditText pkg = (EditText) findViewById(R.id.pkg); in onCreate() 107 pkg.getText().toString(), in onCreate()
|
/frameworks/base/tools/apilint/ |
D | apilint.py | 113 def __init__(self, pkg, raw, blame): argument 114 self.pkg = pkg 135 self.fullname = self.pkg.name + "." + self.fullname 156 pkg = None 173 pkg = Package(raw, blame) 175 clazz = Class(pkg, raw, blame) 202 res += "\n in " + repr(clazz.pkg) 320 prefix = clazz.pkg.name + ".action" 345 if clazz.pkg.name == "android.content" and clazz.name == "Intent": 347 elif clazz.pkg.name == "android.app.admin": [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ActivityInstrumentationTestCase.java | 47 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass) { in ActivityInstrumentationTestCase() argument 48 this(pkg, activityClass, false); in ActivityInstrumentationTestCase() 59 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass, in ActivityInstrumentationTestCase() argument
|