/frameworks/base/services/java/com/android/server/ |
D | NotificationManagerService.java | 236 for (String pkg : mBlockedPackages) { in writeBlockDb() 238 out.attribute(null, ATTR_NAME, pkg); in writeBlockDb() 255 public boolean areNotificationsEnabledForPackage(String pkg) { in areNotificationsEnabledForPackage() argument 257 return areNotificationsEnabledForPackageInt(pkg); in areNotificationsEnabledForPackage() 261 private boolean areNotificationsEnabledForPackageInt(String pkg) { in areNotificationsEnabledForPackageInt() argument 262 final boolean enabled = !mBlockedPackages.contains(pkg); in areNotificationsEnabledForPackageInt() 264 Slog.v(TAG, "notifications are " + (enabled?"en":"dis") + "abled for " + pkg); in areNotificationsEnabledForPackageInt() 269 public void setNotificationsEnabledForPackage(String pkg, boolean enabled) { in setNotificationsEnabledForPackage() argument 272 Slog.v(TAG, (enabled?"en":"dis") + "abling notifications for " + pkg); in setNotificationsEnabledForPackage() 275 mBlockedPackages.remove(pkg); in setNotificationsEnabledForPackage() [all …]
|
D | StatusBarManagerService.java | 82 String pkg; field in StatusBarManagerService.DisableRecord 87 Slog.i(TAG, "binder died for pkg=" + pkg); in binderDied() 88 disableInternal(userId, 0, token, pkg); in binderDied() 96 void onNotificationClick(String pkg, String tag, int id); in onNotificationClick() argument 97 void onNotificationClear(String pkg, String tag, int id); in onNotificationClear() argument 99 void onNotificationError(String pkg, String tag, int id, in onNotificationError() argument 155 public void disable(int what, IBinder token, String pkg) { in disable() argument 156 disableInternal(mCurrentUserId, what, token, pkg); in disable() 159 private void disableInternal(int userId, int what, IBinder token, String pkg) { in disableInternal() argument 163 disableLocked(userId, what, token, pkg); in disableInternal() [all …]
|
D | ClipboardService.java | 163 public ClipData getPrimaryClip(String pkg) { in getPrimaryClip() argument 165 addActiveOwnerLocked(Binder.getCallingUid(), pkg); in getPrimaryClip() local 237 private final void grantUriLocked(Uri uri, String pkg) { in grantUriLocked() argument 240 mAm.grantUriPermissionFromOwner(mPermissionOwner, Process.myUid(), pkg, uri, in grantUriLocked() 248 private final void grantItemLocked(ClipData.Item item, String pkg) { in grantItemLocked() argument 250 grantUriLocked(item.getUri(), pkg); in grantItemLocked() local 254 grantUriLocked(intent.getData(), pkg); in grantItemLocked() local 258 private final void addActiveOwnerLocked(int uid, String pkg) { in addActiveOwnerLocked() argument 263 PackageInfo pi = pm.getPackageInfo(pkg, 0, targetUserHandle); in addActiveOwnerLocked() 265 throw new IllegalArgumentException("Unknown package " + pkg); in addActiveOwnerLocked() [all …]
|
D | AttributeCache.java | 113 Package pkg = packages.get(packageName); in get() local 116 if (pkg != null) { in get() 117 map = pkg.mMap.get(resId); in get() 135 pkg = new Package(context); in get() 136 packages.put(packageName, pkg); in get() 141 pkg.mMap.put(resId, map); in get() 145 ent = new Entry(pkg.context, in get() 146 pkg.context.obtainStyledAttributes(resId, styleable)); in get()
|
D | PackageManagerBackupAgent.java | 162 for (PackageInfo pkg : mAllPackages) { in onBackup() 163 String packName = pkg.packageName; in onBackup() 379 String pkg = in.readUTF(); in parseStateFile() local 380 if (pkg.equals(GLOBAL_METADATA_KEY)) { in parseStateFile() 391 pkg = in.readUTF(); in parseStateFile() 393 mExisting.add(pkg); in parseStateFile() 394 mStateVersions.put(pkg, new Metadata(versionCode, null)); in parseStateFile() 416 for (PackageInfo pkg : pkgs) { in writeStateFile() 417 out.writeUTF(pkg.packageName); in writeStateFile() 418 out.writeInt(pkg.versionCode); in writeStateFile()
|
D | BackupManagerService.java | 972 String pkg = in.readUTF(); in initPackageTracking() local 974 info = mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking() 975 mEverStoredApps.add(pkg); in initPackageTracking() 976 temp.writeUTF(pkg); in initPackageTracking() 977 if (MORE_DEBUG) Slog.v(TAG, " + " + pkg); in initPackageTracking() 980 if (MORE_DEBUG) Slog.v(TAG, " - " + pkg); in initPackageTracking() 1426 for (PackageInfo pkg : targetPkgs) { in addPackageParticipantsLockedInner() 1427 if (packageName == null || pkg.packageName.equals(packageName)) { in addPackageParticipantsLockedInner() 1428 int uid = pkg.applicationInfo.uid; in addPackageParticipantsLockedInner() 1434 set.add(pkg.packageName); in addPackageParticipantsLockedInner() [all …]
|
D | ServiceWatcher.java | 69 String pkg = initialPackageNames.get(i); in getSignatureSets() local 72 Signature[] sigs = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES).signatures; in getSignatureSets() 76 Log.w("ServiceWatcher", pkg + " not found"); in getSignatureSets() 162 String pkg; in unbindLocked() local 163 pkg = mPackageName; in unbindLocked() 166 if (pkg != null) { in unbindLocked() 167 if (D) Log.d(mTag, "unbinding " + pkg); in unbindLocked()
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 126 String pkg = mContext.getPackageName(); in notify() local 130 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify() 132 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut, in notify() 148 String pkg = mContext.getPackageName(); in notifyAsUser() local 152 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notifyAsUser() 154 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut, in notifyAsUser() 181 String pkg = mContext.getPackageName(); in cancel() local 182 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")"); in cancel() 184 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId()); in cancel() 195 String pkg = mContext.getPackageName(); in cancelAsUser() local [all …]
|
D | INotificationManager.aidl | 27 void cancelAllNotifications(String pkg, int userId); in cancelAllNotifications() argument 29 void enqueueToast(String pkg, ITransientNotification callback, int duration); in enqueueToast() argument 30 void cancelToast(String pkg, ITransientNotification callback); in cancelToast() argument 31 void enqueueNotificationWithTag(String pkg, String tag, int id, in enqueueNotificationWithTag() argument 33 void cancelNotificationWithTag(String pkg, String tag, int id, int userId); in cancelNotificationWithTag() argument 35 void setNotificationsEnabledForPackage(String pkg, boolean enabled); in setNotificationsEnabledForPackage() argument 36 boolean areNotificationsEnabledForPackage(String pkg); in areNotificationsEnabledForPackage() argument
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 45 public ComponentName(String pkg, String cls) { in ComponentName() argument 46 if (pkg == null) throw new NullPointerException("package name is null"); in ComponentName() 48 mPackage = pkg; in ComponentName() 60 public ComponentName(Context pkg, String cls) { in ComponentName() argument 62 mPackage = pkg.getPackageName(); in ComponentName() 74 public ComponentName(Context pkg, Class<?> cls) { in ComponentName() argument 75 mPackage = pkg.getPackageName(); in ComponentName() 164 String pkg = str.substring(0, sep); in unflattenFromString() local 167 cls = pkg + cls; in unflattenFromString() 169 return new ComponentName(pkg, cls); in unflattenFromString() [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/com/android/internal/content/ |
D | PackageMonitor.java | 253 String pkg = uri != null ? uri.getSchemeSpecificPart() : null; in getPackageName() local 254 return pkg; in getPackageName() 272 String pkg = getPackageName(intent); in onReceive() local 278 if (pkg != null) { in onReceive() 280 mTempArray[0] = pkg; in onReceive() 284 onPackageUpdateFinished(pkg, uid); in onReceive() 285 onPackageModified(pkg); in onReceive() 288 onPackageAdded(pkg, uid); in onReceive() 290 onPackageAppeared(pkg, mChangeType); in onReceive() 293 mUpdatingPackages.remove(pkg); in onReceive() [all …]
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | StatusBarNotification.java | 40 public final String pkg; field in StatusBarNotification 53 public StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, in StatusBarNotification() argument 55 this(pkg, id, tag, uid, initialPid, score, notification, UserHandle.OWNER); in StatusBarNotification() 58 public StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, in StatusBarNotification() argument 60 if (pkg == null) throw new NullPointerException(); in StatusBarNotification() 63 this.pkg = pkg; in StatusBarNotification() 75 this.pkg = in.readString(); in StatusBarNotification() 91 out.writeString(this.pkg); in writeToParcel() 126 return new StatusBarNotification(this.pkg, this.id, this.tag, this.uid, this.initialPid, in clone() 132 return "StatusBarNotification(pkg=" + pkg + " id=" + id + " tag=" + tag + " score=" + score in toString()
|
D | IStatusBarService.aidl | 29 void disable(int what, IBinder token, String pkg); in disable() argument 44 void onNotificationClick(String pkg, String tag, int id); in onNotificationClick() argument 45 void onNotificationError(String pkg, String tag, int id, in onNotificationError() argument 48 void onNotificationClear(String pkg, String tag, int id); in onNotificationClear() argument
|
/frameworks/base/services/java/com/android/server/pm/ |
D | PackageManagerService.java | 746 res.pkg.applicationInfo.packageName, in doHandleMessage() 753 res.pkg.applicationInfo.packageName, in doHandleMessage() 757 res.pkg.applicationInfo.packageName, in doHandleMessage() 761 res.pkg.applicationInfo.packageName, null, updateUsers); in doHandleMessage() 1682 if((ps == null) || (ps.pkg == null) || (ps.pkg.applicationInfo == null)) { in getPackageUid() 1685 p = ps.pkg; in getPackageUid() 1789 if (ps.pkg == null) { in generateApplicationInfoFromSettingsLPw() 1797 return PackageParser.generateApplicationInfo(ps.pkg, flags, in generateApplicationInfoFromSettingsLPw() 1808 PackageParser.Package pkg = ps.pkg; in generatePackageInfoFromSettingsLPw() local 1809 if (pkg == null) { in generatePackageInfoFromSettingsLPw() [all …]
|
D | Settings.java | 193 PackageSetting getPackageLPw(PackageParser.Package pkg, PackageSetting origPackage, in getPackageLPw() argument 196 final String name = pkg.packageName; in getPackageLPw() 198 resourcePath, nativeLibraryPathString, pkg.mVersionCode, pkgFlags, in getPackageLPw() 253 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in disableSystemPackageLPw() 254 p.pkg.applicationInfo.flags |= ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in disableSystemPackageLPw() 276 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in enableSystemPackageLPw() 277 p.pkg.applicationInfo.flags &= ~ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in enableSystemPackageLPw() 523 void insertPackageSettingLPw(PackageSetting p, PackageParser.Package pkg) { in insertPackageSettingLPw() argument 524 p.pkg = pkg; in insertPackageSettingLPw() 527 final String codePath = pkg.applicationInfo.sourceDir; in insertPackageSettingLPw() [all …]
|
D | PackageSetting.java | 28 PackageParser.Package pkg; field in PackageSetting 45 pkg = orig.pkg; in PackageSetting()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 311 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, in parsePackage() local 314 return pkg; in parsePackage() 400 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { in assertInstall() argument 402 String pkgName = pkg.packageName; in assertInstall() 579 PackageParser.Package pkg; field in PackageManagerTests.InstallParams 582 this.pkg = getParsedPackage(outFileName, rawResId); in InstallParams() 583 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); in InstallParams() 586 InstallParams(PackageParser.Package pkg) { in InstallParams() argument 587 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); in InstallParams() 588 this.pkg = pkg; in InstallParams() [all …]
|
/frameworks/base/services/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/java/android/content/pm/ |
D | PackageParser.java | 524 Package pkg = null; in parsePackage() local 528 pkg = parsePackage(res, parser, flags, errorText); in parsePackage() 535 if (pkg == null) { in parsePackage() 559 pkg.mPath = destCodePath; in parsePackage() 560 pkg.mScanPath = mArchiveSourcePath; in parsePackage() 563 pkg.mSignatures = null; in parsePackage() 565 return pkg; in parsePackage() 568 public boolean collectCertificates(Package pkg, int flags) { in collectCertificates() argument 569 pkg.mSignatures = null; in collectCertificates() 598 Slog.e(TAG, "Package " + pkg.packageName in collectCertificates() [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/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 154 String pkg = nextArg(); in doBackup() local 155 if (pkg == null) { in doBackup() 161 mBmgr.dataChanged(pkg); in doBackup() 190 String pkg = nextArg(); in doWipe() local 191 if (pkg == null) { in doWipe() 197 mBmgr.clearBackupData(pkg); in doWipe() 198 System.out.println("Wiped backup data for " + pkg); in doWipe() 349 private void doRestorePackage(String pkg) { in doRestorePackage() argument 351 mRestore = mBmgr.beginRestoreSession(pkg, null); in doRestorePackage() 358 int err = mRestore.restorePackage(pkg, observer); in doRestorePackage() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ActivityInstrumentationTestCase.java | 49 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass) { in ActivityInstrumentationTestCase() argument 50 this(pkg, activityClass, false); in ActivityInstrumentationTestCase() 61 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass, in ActivityInstrumentationTestCase() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | Ticker.java | 195 if (n.pkg.equals(seg.notification.pkg) in addEntry() 205 new StatusBarIcon(n.pkg, n.user, n.notification.icon, n.notification.iconLevel, 0, in addEntry() 213 if (n.id == seg.notification.id && n.pkg.equals(seg.notification.pkg)) { in addEntry() 241 if (n.id == seg.notification.id && n.pkg.equals(seg.notification.pkg)) { in removeEntry()
|
/frameworks/base/tests/backup/ |
D | test_backup.sh | 27 for pkg in $b_pkgs; do 28 a shell bmgr wipe "$pkg"
|