/frameworks/base/cmds/am/src/com/android/commands/am/ |
H A D | Am.java | 1034 String pkg = nextArgRequired(); 1035 mAm.setDebugApp(pkg, wait, persistent); 1102 public boolean activityResuming(String pkg) { argument 1104 System.out.println("** Activity resuming: " + pkg); 1110 public boolean activityStarting(Intent intent, String pkg) { argument 1112 System.out.println("** Activity starting: " + pkg);
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
H A D | Bmgr.java | 154 String pkg = nextArg(); 155 if (pkg == null) { 161 mBmgr.dataChanged(pkg); 190 String pkg = nextArg(); 191 if (pkg == null) { 197 mBmgr.clearBackupData(pkg); 198 System.out.println("Wiped backup data for " + pkg); 349 private void doRestorePackage(String pkg) { argument 351 mRestore = mBmgr.beginRestoreSession(pkg, null); 358 int err = mRestore.restorePackage(pkg, observe [all...] |
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
H A D | Pm.java | 684 String pkg = nextArg(); 685 if (pkg == null) { 689 displayPackageFilePath(pkg); 693 String pkg = nextArg(); 694 if (pkg == null) { 698 ActivityManager.dumpPackageStateStatic(FileDescriptor.out, pkg); 1106 String pkg = nextArg(); 1107 if (pkg == null) { 1112 boolean result = deletePackage(pkg, unInstallFlags); 1120 private boolean deletePackage(String pkg, in argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityManagerNative.java | 1298 String pkg = data.readString(); 1302 startRunning(pkg, cls, action, indata); 1464 String pkg = data.readString(); 1467 killApplicationWithAppId(pkg, appid, reason); 1698 String pkg = data.readString(); 1699 int mode = getPackageScreenCompatMode(pkg); 1708 String pkg = data.readString(); 1710 setPackageScreenCompatMode(pkg, mode); 1802 String pkg = data.readString(); 1803 boolean ask = getPackageAskScreenCompat(pkg); 3676 startRunning(String pkg, String cls, String action, String indata) argument 3872 killApplicationWithAppId(String pkg, int appid, String reason) argument [all...] |
H A D | ActivityThread.java | 524 String pkg; field in class:ActivityThread.UpdateCompatibilityData 1249 public void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) { argument 1251 ucd.pkg = pkg; 2115 + ", pkg=" + r.packageInfo.getPackageName() 2195 String pkgName = SystemProperties.get("debug.second-display.pkg"); 2393 + ", pkg=" + packageInfo.getPackageName() 3320 LoadedApk apk = peekPackageInfo(data.pkg, false); 3324 apk = peekPackageInfo(data.pkg, true);
|
H A D | ApplicationThreadNative.java | 506 String pkg = data.readString(); 508 updatePackageCompatibilityInfo(pkg, compat); 1166 public void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) argument 1170 data.writeString(pkg);
|
H A D | IActivityManager.java | 253 public void startRunning(String pkg, String cls, String action, argument 294 public void killApplicationWithAppId(String pkg, int appid, String reason) argument
|
H A D | IApplicationThread.java | 128 void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) throws RemoteException; argument
|
/frameworks/base/core/java/android/content/ |
H A D | ComponentName.java | 42 * @param pkg The name of the package that the component exists in. Can 44 * @param cls The name of the class inside of <var>pkg</var> that 47 public ComponentName(String pkg, String cls) { argument 48 if (pkg == null) throw new NullPointerException("package name is null"); 50 mPackage = pkg; 57 * @param pkg A Context for the package implementing the component, 59 * @param cls The name of the class inside of <var>pkg</var> that 62 public ComponentName(Context pkg, String cls) { argument 64 mPackage = pkg.getPackageName(); 71 * @param pkg 76 ComponentName(Context pkg, Class<?> cls) argument 334 ComponentName(String pkg, Parcel in) argument [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageParser.java | 539 Package pkg = null; 543 pkg = parsePackage(res, parser, flags, errorText); 550 if (pkg == null) { 574 pkg.mPath = destCodePath; 575 pkg.mScanPath = mArchiveSourcePath; 576 //pkg.applicationInfo.sourceDir = destCodePath; 577 //pkg.applicationInfo.publicSourceDir = destRes; 578 pkg.mSignatures = null; 580 return pkg; 584 * Gathers the {@link ManifestDigest} for {@code pkg} i 588 collectManifestDigest(Package pkg) argument 605 collectCertificates(Package pkg, int flags) argument 1429 parseUsesPermission(Package pkg, Resources res, XmlResourceParser parser, AttributeSet attrs, String[] outError) argument 1476 buildClassName(String pkg, CharSequence clsSeq, String[] outError) argument 1500 buildCompoundName(String pkg, CharSequence procSeq, String type, String[] outError) argument 1528 buildProcessName(String pkg, String defProc, CharSequence procSeq, int flags, String[] separateProcesses, String[] outError) argument 1548 buildTaskAffinityName(String pkg, String defProc, CharSequence procSeq, String[] outError) argument [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationListenerService.java | 108 * @param pkg Package of the notifying app. 114 public final void cancelNotification(String pkg, String tag, int id) { argument 116 getNotificationInterface().cancelNotificationFromListener(mWrapper, pkg, tag, id);
|
H A D | StatusBarNotification.java | 29 private final String pkg; field in class:StatusBarNotification 43 public StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, argument 45 this(pkg, null, id, tag, uid, initialPid, score, notification, user); 49 public StatusBarNotification(String pkg, String basePkg, int id, String tag, int uid, argument 51 this(pkg, basePkg, id, tag, uid, initialPid, score, notification, user, 55 public StatusBarNotification(String pkg, String basePkg, int id, String tag, int uid, argument 58 if (pkg == null) throw new NullPointerException(); 61 this.pkg = pkg; 62 this.basePkg = pkg; [all...] |
/frameworks/base/core/java/android/test/ |
H A D | InstrumentationTestCase.java | 80 * <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the 84 * @param pkg The package hosting the activity to be launched. 90 String pkg, 97 return launchActivityWithIntent(pkg, activityCls, intent); 103 * <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the 107 * @param pkg The package hosting the activity to be launched. 114 String pkg, 117 intent.setClassName(pkg, activityCls.getName()); 89 launchActivity( String pkg, Class<T> activityCls, Bundle extras) argument 113 launchActivityWithIntent( String pkg, Class<T> activityCls, Intent intent) argument
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessStats.java | 242 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid 259 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid 1651 if (DEBUG) Slog.d(TAG, "GETPROC also using for pkg " + commonProc); 1668 if (DEBUG) Slog.d(TAG, "GETPROC setting clone to pkg " + commonProc.mPackage 1689 if (DEBUG) Slog.d(TAG, "GETPROC created new pkg " + ps); 1696 if (DEBUG) Slog.d(TAG, "GETPROC created new pkg " + ps); 1699 if (DEBUG) Slog.d(TAG, "GETPROC adding new pkg " + ps); 1733 pw.print(" pkg="); pw.println(proc.mCommonProcess.mPackage); 2353 public ProcessState(ProcessStats processStats, String pkg, int uid, String name) { argument 2356 mPackage = pkg; 2365 ProcessState(ProcessState commonProcess, String pkg, int uid, String name, long now) argument 2375 clone(String pkg, long now) argument 2878 ServiceState(ProcessStats processStats, String pkg, String name, String processName, ProcessState proc) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 3135 Uid.Pkg pkg = pkgEntry.getValue(); 3136 pkg.writeToParcelLocked(out); 3240 Uid.Pkg pkg = new Pkg(); 3241 pkg.readFromParcelLocked(in); 3242 mPackageStats.put(packageName, pkg); 4219 public Pkg.Serv getServiceStatsLocked(String pkg, String serv) { argument 4220 Pkg ps = getPackageStatsLocked(pkg); 5081 public Uid.Pkg getPackageStatsLocked(int uid, String pkg) { argument 5083 return u.getPackageStatsLocked(pkg); 5090 public Uid.Pkg.Serv getServiceStatsLocked(int uid, String pkg, Strin argument [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageManagerTests.java | 311 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, 314 return pkg; 400 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { argument 402 String pkgName = pkg.packageName; 579 PackageParser.Package pkg; field in class:PackageManagerTests.InstallParams 582 this.pkg = getParsedPackage(outFileName, rawResId); 583 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); 586 InstallParams(PackageParser.Package pkg) { argument 587 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); 588 this.pkg [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 2521 Package* pkg = packages[i]; local 2522 if (pkg->owner == owner) { 2523 delete pkg; 2531 Package* pkg = packages[0]; local 2535 const Type* type = pkg->getType(i); 3299 printf("Found value: pkg=%d, type=%d, str=%s, int=%d\n", 3507 ALOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, T, E); 3874 ALOGW("ResTable_entry at %d (pkg=%d type=%d ent=%d) is not on an integer boundary when looking for %s:%s/%s", 5002 const ResTable_package* const pkg = package->package; local 5107 status_t ResTable::parsePackage(const ResTable_package* const pkg, argument 5350 const Package* pkg = pg->packages[0]; local 5549 print_value(const Package* pkg, const Res_value& value) const argument 5618 const Package* pkg = pg->packages[pkgIndex]; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | BaseStatusBar.java | 709 public NotificationClicker makeClicker(PendingIntent intent, String pkg, String tag, int id) { argument 710 return new NotificationClicker(intent, pkg, tag, id); 719 public NotificationClicker(PendingIntent intent, String pkg, String tag, int id) { argument 721 mPkg = pkg;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | ImmersiveModeConfirmation.java | 119 public void immersiveModeChanged(String pkg, boolean isImmersiveMode) { argument 120 if (pkg == null) { 125 mLastPackage = pkg; 126 if (DEBUG_SHOW_EVERY_TIME || !mConfirmedPackages.contains(pkg)) { 127 mHandler.sendMessageDelayed(mHandler.obtainMessage(H.SHOW, pkg), mShowDelayMs); 154 private void unconfirmPackage(String pkg) { argument 155 if (pkg != null) { 156 if (DEBUG) Slog.d(TAG, "Unconfirming immersive mode confirmation for " + pkg); 157 mConfirmedPackages.remove(pkg); 299 private void handleShow(String pkg) { argument 315 confirmAction(final String pkg) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | BackupManagerService.java | 221 return "BackupRequest{pkg=" + packageName + "}"; 979 String pkg = in.readUTF(); 981 info = mPackageManager.getPackageInfo(pkg, 0); 982 mEverStoredApps.add(pkg); 983 temp.writeUTF(pkg); 984 if (MORE_DEBUG) Slog.v(TAG, " + " + pkg); 987 if (MORE_DEBUG) Slog.v(TAG, " - " + pkg); 1430 for (PackageInfo pkg : targetPkgs) { 1431 if (packageName == null || pkg.packageName.equals(packageName)) { 1432 int uid = pkg 2355 backupObbs(PackageInfo pkg, OutputStream out) argument 2811 backupOnePackage(PackageInfo pkg, OutputStream out) argument 2873 writeApkToBackup(PackageInfo pkg, BackupDataOutput output) argument 2910 writeAppManifest(PackageInfo pkg, File manifestFile, boolean withApk) argument 2949 tearDown(PackageInfo pkg) argument [all...] |
H A D | ClipboardService.java | 192 public ClipData getPrimaryClip(String pkg) { argument 195 pkg) != AppOpsManager.MODE_ALLOWED) { 198 addActiveOwnerLocked(Binder.getCallingUid(), pkg); 284 private final void grantUriLocked(Uri uri, String pkg) { argument 287 mAm.grantUriPermissionFromOwner(mPermissionOwner, Process.myUid(), pkg, uri, 295 private final void grantItemLocked(ClipData.Item item, String pkg) { argument 297 grantUriLocked(item.getUri(), pkg); 301 grantUriLocked(intent.getData(), pkg); 305 private final void addActiveOwnerLocked(int uid, String pkg) { argument 310 PackageInfo pi = pm.getPackageInfo(pkg, [all...] |
H A D | NotificationManagerService.java | 317 final Iterator<StatusBarNotification> iter, final String pkg, final int userId) { 324 if ((pkg == null || nr.getPackageName() == pkg) 366 public StatusBarNotification[] getArray(int count, String pkg, int userId) { argument 370 Iterator<StatusBarNotification> iter = filter(descendingIterator(), pkg, userId); 434 public boolean areNotificationsEnabledForPackage(String pkg, int uid) { argument 436 return (mAppOps.checkOpNoThrow(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg) 444 private boolean noteNotificationOp(String pkg, int uid) { argument 445 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_POST_NOTIFICATION, uid, pkg) 447 Slog.v(TAG, "notifications are disabled by AppOps for " + pkg); 316 filter( final Iterator<StatusBarNotification> iter, final String pkg, final int userId) argument 453 setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) argument 877 cancelNotificationFromListener(INotificationListener token, String pkg, String tag, int id) argument 1003 final String pkg; field in class:NotificationManagerService.ToastRecord 1007 ToastRecord(int pid, String pkg, ITransientNotification callback, int duration) argument 1415 enqueueToast(String pkg, ITransientNotification callback, int duration) argument 1481 cancelToast(String pkg, ITransientNotification callback) argument 1570 indexOfToastLocked(String pkg, ITransientNotification callback) argument 1620 enqueueNotificationWithTag(String pkg, String basePkg, String tag, int id, Notification notification, int[] idOut, int userId) argument 1634 enqueueNotificationInternal(final String pkg, String basePkg, final int callingUid, final int callingPid, final String tag, final int id, final Notification notification, int[] idOut, int incomingUserId) argument 2056 cancelNotification(final String pkg, final String tag, final int id, final int mustHaveFlags, final int mustNotHaveFlags, final boolean sendDelete, final int userId) argument 2109 cancelAllNotificationsInt(String pkg, int mustHaveFlags, int mustNotHaveFlags, boolean doit, int userId) argument 2149 cancelNotificationWithTag(String pkg, String tag, int id, int userId) argument 2159 cancelAllNotifications(String pkg, int userId) argument 2189 checkCallerIsSystemOrSameApp(String pkg) argument 2261 indexOfNotificationLocked(String pkg, String tag, int id, int userId) argument [all...] |
H A D | StatusBarManagerService.java | 82 String pkg; field in class:StatusBarManagerService.DisableRecord 87 Slog.i(TAG, "binder died for pkg=" + pkg); 88 disableInternal(userId, 0, token, pkg); 96 void onNotificationClick(String pkg, String tag, int id); argument 97 void onNotificationClear(String pkg, String tag, int id); argument 99 void onNotificationError(String pkg, String tag, int id, argument 155 public void disable(int what, IBinder token, String pkg) { argument 156 disableInternal(mCurrentUserId, what, token, pkg); 159 private void disableInternal(int userId, int what, IBinder token, String pkg) { argument 167 disableLocked(int userId, int what, IBinder token, String pkg) argument 468 onNotificationClick(String pkg, String tag, int id) argument 474 onNotificationError(String pkg, String tag, int id, int uid, int initialPid, String message) argument 482 onNotificationClear(String pkg, String tag, int id) argument 547 manageDisableListLocked(int userId, int what, IBinder token, String pkg) argument [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 1307 String pkg = bundle.getString("pkg"); 1309 forceStopPackageLocked(pkg, appid, restart, false, true, false, 4189 * The pkg name and app id have to be specified. 4192 public void killApplicationWithAppId(String pkg, int appid, String reason) { argument 4193 if (pkg == null) { 4198 Slog.w(TAG, "Invalid appid specified for pkg : " + pkg); 4209 bundle.putString("pkg", pkg); 8906 startRunning(String pkg, String cls, String action, String data) argument [all...] |
H A D | ProcessRecord.java | 572 public boolean addPackage(String pkg, ProcessStatsService tracker) { argument 573 if (!pkgList.containsKey(pkg)) { 576 pkg, info.uid, processName); 577 pkgList.put(pkg, state); 582 pkgList.put(pkg, null);
|