Searched defs:pkg (Results 1 - 25 of 59) sorted by path

123

/frameworks/base/cmds/am/src/com/android/commands/am/
H A DAm.java1122 String pkg = nextArgRequired();
1123 mAm.setDebugApp(pkg, wait, persistent);
1200 public boolean activityResuming(String pkg) { argument
1202 System.out.println("** Activity resuming: " + pkg);
1208 public boolean activityStarting(Intent intent, String pkg) { argument
1210 System.out.println("** Activity starting: " + pkg);
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
H A DBmgr.java160 String pkg = nextArg();
161 if (pkg == null) {
167 mBmgr.dataChanged(pkg);
177 String pkg;
179 while ((pkg = nextArg()) != null) {
180 allPkgs.add(pkg);
220 String pkg = nextArg();
221 if (pkg == null) {
227 mBmgr.clearBackupData(transport, pkg);
228 System.out.println("Wiped backup data for " + pkg
379 doRestorePackage(String pkg) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManagerNative.java1547 String pkg = data.readString();
1550 killApplicationWithAppId(pkg, appid, reason);
1811 String pkg = data.readString();
1812 int mode = getPackageScreenCompatMode(pkg);
1821 String pkg = data.readString();
1823 setPackageScreenCompatMode(pkg, mode);
1913 String pkg = data.readString();
1914 boolean ask = getPackageAskScreenCompat(pkg);
1923 String pkg = data.readString();
1925 setPackageAskScreenCompat(pkg, as
4280 killApplicationWithAppId(String pkg, int appid, String reason) argument
[all...]
H A DActivityThread.java537 String pkg; field in class:ActivityThread.UpdateCompatibilityData
1091 public void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) { argument
1093 ucd.pkg = pkg;
2222 + ", pkg=" + r.packageInfo.getPackageName()
2329 String pkgName = SystemProperties.get("debug.second-display.pkg");
2572 + ", pkg=" + packageInfo.getPackageName()
3512 LoadedApk apk = peekPackageInfo(data.pkg, false);
3516 apk = peekPackageInfo(data.pkg, true);
H A DApplicationThreadNative.java499 String pkg = data.readString();
501 updatePackageCompatibilityInfo(pkg, compat);
1193 public void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) argument
1197 data.writeString(pkg);
H A DIActivityManager.java308 public void killApplicationWithAppId(String pkg, int appid, String reason) argument
H A DIApplicationThread.java130 void updatePackageCompatibilityInfo(String pkg, CompatibilityInfo info) throws RemoteException; argument
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java390 * @param pkg If entering, the authorized package using lock task mode, otherwise null.
392 public void onLockTaskModeEntering(Context context, Intent intent, String pkg) { argument
435 String pkg = intent.getStringExtra(EXTRA_LOCK_TASK_PACKAGE);
436 onLockTaskModeEntering(context, intent, pkg);
H A DDevicePolicyManager.java3235 * @param pkg The package to check
3237 public boolean isLockTaskPermitted(String pkg) { argument
3240 return mService.isLockTaskPermitted(pkg);
/frameworks/base/core/java/android/content/
H A DComponentName.java42 * @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 DPackageParser.java776 final Package pkg = parseBaseApk(baseApk, assets, flags);
777 if (pkg == null) {
784 pkg.splitNames = lite.splitNames;
785 pkg.splitCodePaths = lite.splitCodePaths;
786 pkg.splitFlags = new int[num];
789 parseSplitApk(pkg, i, assets, flags);
793 pkg.codePath = packageDir.getAbsolutePath();
794 return pkg;
822 final Package pkg = parseBaseApk(apkFile, assets, flags);
823 pkg
889 parseSplitApk(Package pkg, int splitIndex, AssetManager assets, int flags) argument
933 parseSplitApk(Package pkg, Resources res, XmlResourceParser parser, int flags, int splitIndex, String[] outError) argument
1004 collectManifestDigest(Package pkg) argument
1029 collectCertificates(Package pkg, int flags) argument
1043 collectCertificates(Package pkg, File apkFile, int flags) argument
1889 parseUsesPermission(Package pkg, Resources res, XmlResourceParser parser, AttributeSet attrs, String[] outError) argument
1936 buildClassName(String pkg, CharSequence clsSeq, String[] outError) argument
1960 buildCompoundName(String pkg, CharSequence procSeq, String type, String[] outError) argument
1988 buildProcessName(String pkg, String defProc, CharSequence procSeq, int flags, String[] separateProcesses, String[] outError) argument
2008 buildTaskAffinityName(String pkg, String defProc, CharSequence procSeq, String[] outError) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DCondition.java162 public static boolean isValidId(Uri id, String pkg) { argument
163 return id != null && id.getScheme().equals(SCHEME) && id.getAuthority().equals(pkg);
H A DNotificationListenerService.java264 * @param pkg Package of the notifying app.
275 public final void cancelNotification(String pkg, String tag, int id) { argument
279 mWrapper, pkg, tag, id);
H A DStatusBarNotification.java29 private final String pkg; field in class:StatusBarNotification
45 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, argument
47 this(pkg, opPkg, id, tag, uid, initialPid, score, notification, user,
51 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, argument
54 if (pkg == null) throw new NullPointerException();
57 this.pkg = pkg;
72 this.pkg = in.readString();
91 return user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid;
101 return user.getIdentifier() + "|" + pkg
[all...]
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java80 * <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 DProcessStats.java276 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid
294 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid
2059 if (DEBUG) Slog.d(TAG, "GETPROC also using for pkg " + commonProc);
2077 if (DEBUG) Slog.d(TAG, "GETPROC setting clone to pkg " + commonProc.mPackage
2098 if (DEBUG) Slog.d(TAG, "GETPROC created new pkg " + ps);
2105 if (DEBUG) Slog.d(TAG, "GETPROC created new pkg " + ps);
2108 if (DEBUG) Slog.d(TAG, "GETPROC adding new pkg " + ps);
2142 pw.print(" pkg="); pw.println(proc.mCommonProcess.mPackage);
2933 public ProcessState(ProcessStats processStats, String pkg, int uid, int vers, String name) { argument
2936 mPackage = pkg;
2946 ProcessState(ProcessState commonProcess, String pkg, int uid, int vers, String name, long now) argument
2957 clone(String pkg, long now) argument
3495 ServiceState(ProcessStats processStats, String pkg, String name, String processName, ProcessState proc) argument
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DNativeLibraryHelper.java87 public static Handle create(Package pkg) throws IOException { argument
88 return create(pkg.getAllCodePaths(),
89 (pkg.applicationInfo.flags & ApplicationInfo.FLAG_MULTIARCH) != 0);
H A DPackageHelper.java430 public static long calculateInstalledSize(PackageLite pkg, boolean isForwardLocked, argument
434 handle = NativeLibraryHelper.Handle.create(pkg);
435 return calculateInstalledSize(pkg, handle, isForwardLocked, abiOverride);
441 public static long calculateInstalledSize(PackageLite pkg, NativeLibraryHelper.Handle handle, argument
446 for (String codePath : pkg.getAllCodePaths()) {
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java4935 Uid.Pkg pkg = pkgEntry.getValue();
4936 pkg.writeToParcelLocked(out);
5075 Uid.Pkg pkg = new Pkg();
5076 pkg.readFromParcelLocked(in);
5077 mPackageStats.put(packageName, pkg);
6148 public Pkg.Serv getServiceStatsLocked(String pkg, String serv) { argument
6149 Pkg ps = getPackageStatsLocked(pkg);
7474 public Uid.Pkg getPackageStatsLocked(int uid, String pkg) { argument
7477 return u.getPackageStatsLocked(pkg);
7484 public Uid.Pkg.Serv getServiceStatsLocked(int uid, String pkg, Strin argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java315 PackageParser.Package pkg = packageParser.parseMonolithicPackage(sourceFile, 0);
317 return pkg;
403 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { argument
405 String pkgName = pkg.packageName;
582 PackageParser.Package pkg; field in class:PackageManagerTests.InstallParams
585 this.pkg = getParsedPackage(outFileName, rawResId);
586 this.packageURI = Uri.fromFile(new File(pkg.codePath));
589 InstallParams(PackageParser.Package pkg) { argument
590 this.packageURI = Uri.fromFile(new File(pkg.codePath));
591 this.pkg
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp2929 Package* pkg = packages[i]; local
2930 if (pkg->owner == owner) {
2931 delete pkg;
3678 printf("Found value: pkg=%d, type=%d, str=%s, int=%d\n",
5581 status_t ResTable::parsePackage(const ResTable_package* const pkg, argument
5584 const uint8_t* base = (const uint8_t*)pkg;
5585 status_t err = validate_chunk(&pkg->header, sizeof(*pkg) - sizeof(pkg->typeIdOffset),
5591 const uint32_t pkgSize = dtohl(pkg
6251 print_value(const Package* pkg, const Res_value& value) const argument
6330 const Package* pkg = pg->packages[pkgIndex]; local
[all...]
/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java86 String pkg; field in class:MediaBrowserService.ConnectionRecord
156 public void connect(final String pkg, final Bundle rootHints, argument
160 if (!isValidPackage(pkg, uid)) {
162 + " package=" + pkg);
174 connection.pkg = pkg;
178 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints);
182 Log.i(TAG, "No root for client " + pkg + " from service "
188 + "pkg=" + pkg);
371 isValidPackage(String pkg, int uid) argument
[all...]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java102 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, isForwardLocke
310 copyPackageToContainerInner(PackageLite pkg, NativeLibraryHelper.Handle handle, String newCid, String key, boolean isExternal, boolean isForwardLocked, String abiOverride) argument
364 copyPackageInner(PackageLite pkg, IParcelFileDescriptorFactory target) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DIntentTile.java124 private Drawable getPackageDrawable(String pkg, int id) { argument
126 return mContext.createPackageContext(pkg, 0).getDrawable(id);
128 Log.w(TAG, "Error loading package drawable pkg=" + pkg + " id=" + id, t);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DImmersiveModeConfirmation.java118 public void immersiveModeChanged(String pkg, boolean isImmersiveMode, argument
122 final boolean disabled = PolicyControl.disableImmersiveConfirmation(pkg);

Completed in 856 milliseconds

123