Searched defs:pkg (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/
H A DActivityInstrumentationTestCase.java45 * @param pkg ignored - no longer in use.
49 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass) { argument
50 this(pkg, activityClass, false);
56 * @param pkg ignored - no longer in use.
61 public ActivityInstrumentationTestCase(String pkg, Class<T> activityClass, argument
H A DActivityInstrumentationTestCase2.java50 * @param pkg ignored - no longer in use.
57 public ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass) { argument
H A DSingleLaunchActivityTestCase.java40 * <b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the
44 * @param pkg The package hosting the activity to be launched.
47 public SingleLaunchActivityTestCase(String pkg, Class<T> activityClass) { argument
48 mPackage = pkg;
/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/statusbar/
H A DStatusBarNotification.java38 public String pkg; field in class:StatusBarNotification
48 public StatusBarNotification(String pkg, int id, String tag, argument
50 if (pkg == null) throw new NullPointerException();
53 this.pkg = pkg;
66 this.pkg = in.readString();
79 out.writeString(this.pkg);
111 return new StatusBarNotification(this.pkg, this.id, this.tag,
116 return "StatusBarNotification(package=" + pkg + " id=" + id + " tag=" + tag
/frameworks/base/core/java/android/content/
H A DComponentName.java40 * @param pkg The name of the package that the component exists in. Can
42 * @param cls The name of the class inside of <var>pkg</var> that
45 public ComponentName(String pkg, String cls) { argument
46 if (pkg == null) throw new NullPointerException("package name is null");
48 mPackage = pkg;
55 * @param pkg A Context for the package implementing the component,
57 * @param cls The name of the class inside of <var>pkg</var> that
60 public ComponentName(Context pkg, String cls) { argument
62 mPackage = pkg.getPackageName();
69 * @param pkg
74 ComponentName(Context pkg, Class<?> cls) argument
286 ComponentName(String pkg, Parcel in) argument
[all...]
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
H A DBmgr.java154 String pkg = nextArg();
155 if ("-f".equals(pkg)) {
157 pkg = nextArg();
160 if (pkg == null || pkg.startsWith("-")) {
167 mBmgr.dataChanged(pkg);
196 String pkg = nextArg();
197 if (pkg == null) {
203 mBmgr.clearBackupData(pkg);
204 System.out.println("Wiped backup data for " + pkg);
349 doRestorePackage(String pkg) argument
[all...]
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java615 String pkg = nextArg();
616 if (pkg == null) {
621 displayPackageFilePath(pkg);
802 String pkg = nextArg();
803 if (pkg == null) {
808 boolean result = deletePackage(pkg, unInstallFlags);
816 private boolean deletePackage(String pkg, int unInstallFlags) { argument
819 mPm.deletePackage(pkg, obs, unInstallFlags);
852 String pkg = nextArg();
853 if (pkg
[all...]
/frameworks/base/core/java/android/widget/
H A DAppSecurityPermissions.java117 public AppSecurityPermissions(Context context, PackageParser.Package pkg) { argument
122 if(pkg == null) {
126 if (pkg.requestedPermissions != null) {
127 ArrayList<String> strList = pkg.requestedPermissions;
134 if(pkg.mSharedUserId != null) {
137 sharedUid = mPm.getUidForSharedUser(pkg.mSharedUserId);
140 Log.w(TAG, "Could'nt retrieve shared user id for:"+pkg.packageName);
/frameworks/base/services/java/com/android/server/
H A DStatusBarManagerService.java72 String pkg; field in class:StatusBarManagerService.DisableRecord
77 Slog.i(TAG, "binder died for pkg=" + pkg);
78 disable(0, token, pkg);
86 void onNotificationClick(String pkg, String tag, int id); argument
88 void onNotificationError(String pkg, String tag, int id, argument
147 public void disable(int what, IBinder token, String pkg) { argument
155 manageDisableListLocked(what, token, pkg);
290 public void onNotificationClick(String pkg, String tag, int id) { argument
293 mNotificationCallbacks.onNotificationClick(pkg, ta
296 onNotificationError(String pkg, String tag, int id, int uid, int initialPid, String message) argument
362 manageDisableListLocked(int what, IBinder token, String pkg) argument
[all...]
H A DNotificationManagerService.java155 String pkg;
169 final String pkg; field in class:NotificationManagerService.NotificationRecord
179 NotificationRecord(String pkg, String tag, int id, int uid, int initialPid, argument
182 this.pkg = pkg;
193 + " / " + idDebugString(baseContext, this.pkg, notification.icon));
212 + " pkg=" + pkg
221 final String pkg; field in class:NotificationManagerService.ToastRecord
225 ToastRecord(int pid, String pkg, ITransientNotificatio argument
490 enqueueToast(String pkg, ITransientNotification callback, int duration) argument
529 cancelToast(String pkg, ITransientNotification callback) argument
618 indexOfToastLocked(String pkg, ITransientNotification callback) argument
668 enqueueNotification(String pkg, int id, Notification notification, int[] idOut) argument
673 enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification, int[] idOut) argument
682 enqueueNotificationInternal(String pkg, int callingUid, int callingPid, String tag, int id, Notification notification, int[] idOut) argument
932 cancelNotification(String pkg, String tag, int id, int mustHaveFlags, int mustNotHaveFlags) argument
960 cancelAllNotificationsInt(String pkg, int mustHaveFlags, int mustNotHaveFlags, boolean doit) argument
993 cancelNotification(String pkg, int id) argument
997 cancelNotificationWithTag(String pkg, String tag, int id) argument
1005 cancelAllNotifications(String pkg) argument
1013 checkIncomingCall(String pkg) argument
1126 indexOfNotificationLocked(String pkg, String tag, int id) argument
[all...]
H A DPackageManagerService.java612 res.pkg.applicationInfo.packageName,
616 res.pkg.applicationInfo.packageName,
1056 boolean useSecureFS = useEncryptedFilesystemForPackage(ps.pkg);
1064 PackageParser.Package pkg = mPackages.get(ps.name);
1065 File dataDir = new File(pkg.applicationInfo.dataDir);
1388 if((ps == null) || (ps.pkg == null) || (ps.pkg.applicationInfo == null)) {
1391 p = ps.pkg;
1479 if(ps.pkg == null) {
1486 return PackageParser.generateApplicationInfo(ps.pkg, flag
2601 collectCertificatesLI(PackageParser pp, PackageSetting ps, PackageParser.Package pkg, File srcFile, int parseFlags) argument
2736 setApplicationInfoPaths(PackageParser.Package pkg, String destCodePath, String destResPath) argument
2751 verifySignaturesLP(PackageSetting pkgSetting, PackageParser.Package pkg) argument
2798 performDexOptLI(PackageParser.Package pkg, boolean forceDex) argument
2832 useEncryptedFilesystemForPackage(PackageParser.Package pkg) argument
2852 getDataPathForPackage(PackageParser.Package pkg) argument
2863 scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, long currentTime) argument
3673 getNativeBinaryDirForPackage(PackageParser.Package pkg) argument
3683 removePackageLI(PackageParser.Package pkg, boolean chatty) argument
3928 grantPermissionsLP(PackageParser.Package pkg, boolean replace) argument
4427 sendPackageBroadcast(String action, String pkg, Bundle extras, IIntentReceiver finishedReceiver) argument
5497 PackageParser.Package pkg; field in class:PackageManagerService.PackageInstalledInfo
5505 installNewPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5561 replacePackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5585 replaceNonSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5672 replaceSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5953 isForwardLocked(PackageParser.Package pkg) argument
5957 isExternal(PackageParser.Package pkg) argument
5961 isSystemApp(PackageParser.Package pkg) argument
5969 isUpdatedSystemApp(PackageParser.Package pkg) argument
7900 PackageParser.Package pkg; field in class:PackageManagerService.PackageSetting
8059 getPackageLP(PackageParser.Package pkg, PackageSetting origPackage, String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, String nativeLibraryPathString, int pkgFlags, boolean create, boolean add) argument
8355 insertPackageSettingLP(PackageSetting p, PackageParser.Package pkg) argument
8764 writeDisabledSysPackage(XmlSerializer serializer, final PackageSetting pkg) argument
8810 writePackage(XmlSerializer serializer, final PackageSetting pkg) argument
[all...]
/frameworks/base/cmds/am/src/com/android/commands/am/
H A DAm.java466 public boolean activityResuming(String pkg) throws RemoteException { argument
468 System.out.println("** Activity resuming: " + pkg);
474 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { argument
476 System.out.println("** Activity starting: " + pkg);
/frameworks/base/services/java/com/android/server/am/
H A DProcessRecord.java324 public boolean addPackage(String pkg) { argument
325 if (!pkgList.contains(pkg)) {
326 pkgList.add(pkg);
/frameworks/base/tools/aapt/
H A DAaptAssets.h520 void setSymbolsPrivatePackage(const String8& pkg) { mSymbolsPrivatePackage = pkg; } argument
H A DCommand.cpp521 String8 pkg = getAttribute(tree, NULL, "package", NULL); local
522 printf("package: %s\n", pkg.string());
614 String8 pkg; local
627 const char *aName = getComponentName(pkg, activityName);
674 pkg = getAttribute(tree, NULL, "package", NULL);
675 printf("package: name='%s' ", pkg.string());
H A DResource.cpp1803 String8 pkg(package);
1804 const char* last = pkg.string();
1874 const char* pkg, const String8& srcName, int line)
1877 if (pkg != NULL) {
1884 className = pkg;
1887 className = pkg;
1918 String8 pkg; local
1962 pkg = getAttribute(tree, NULL, "package", NULL);
1971 addProguardKeepRule(keep, agent, pkg.string(),
1991 addProguardKeepRule(keep, name, pkg
1873 addProguardKeepRule(ProguardKeepSet* keep, const String8& inClassName, const char* pkg, const String8& srcName, int line) argument
[all...]
H A DResourceTable.cpp216 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg,
226 outTable->appendTypeComment(pkg, typeName, ident, fullMsg);
232 outTable->appendTypeComment(pkg, typeName, ident,
1039 String16 pkg; local
1046 pkg = String16(block.getAttributeStringValue(pkgIdx, &len));
1048 assets->setSymbolsPrivatePackage(String8(pkg));
2964 sp<Package> pkg = mPackages.valueFor(package); local
2965 if (pkg != NULL) {
2966 const size_t NT = pkg->getOrderedTypes().size();
2968 sp<Type> t = pkg
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManagerNative.java1016 String pkg = data.readString();
1020 startRunning(pkg, cls, action, indata);
1194 String pkg = data.readString();
1196 killApplicationWithUid(pkg, uid);
2520 public void startRunning(String pkg, String cls, String action, argument
2525 data.writeString(pkg);
2735 public void killApplicationWithUid(String pkg, int uid) throws RemoteException { argument
2739 data.writeString(pkg);
H A DIActivityManager.java251 public void startRunning(String pkg, String cls, String action, argument
299 public void killApplicationWithUid(String pkg, int uid) throws RemoteException; argument
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java416 Package pkg = null;
421 pkg = parsePackage(res, parser, flags, errorText);
428 if (pkg == null) {
448 pkg.mPath = destCodePath;
449 pkg.mScanPath = mArchiveSourcePath;
450 //pkg.applicationInfo.sourceDir = destCodePath;
451 //pkg.applicationInfo.publicSourceDir = destRes;
452 pkg.mSignatures = null;
454 return pkg;
457 public boolean collectCertificates(Package pkg, in argument
1174 buildClassName(String pkg, CharSequence clsSeq, String[] outError) argument
1198 buildCompoundName(String pkg, CharSequence procSeq, String type, String[] outError) argument
1226 buildProcessName(String pkg, String defProc, CharSequence procSeq, int flags, String[] separateProcesses, String[] outError) argument
1246 buildTaskAffinityName(String pkg, String defProc, CharSequence procSeq, String[] outError) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarService.java442 notification.pkg, notification.tag, notification.id));
445 final StatusBarIcon ic = new StatusBarIcon(notification.pkg,
517 content.setOnClickListener(new Launcher(contentIntent, notification.pkg,
530 String ident = notification.pkg + "/0x" + Integer.toHexString(notification.id);
564 notification.pkg + "/0x" + Integer.toHexString(notification.id));
565 final StatusBarIcon ic = new StatusBarIcon(notification.pkg, notification.notification.icon,
1012 Launcher(PendingIntent intent, String pkg, String tag, int id) { argument
1014 mPkg = pkg;
1076 mBarService.onNotificationError(n.pkg, n.tag, n.id, n.uid, n.initialPid, message);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java266 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, metrics, 0);
268 return pkg;
354 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { argument
356 String pkgName = pkg.packageName;
440 PackageParser.Package pkg; field in class:PackageManagerTests.InstallParams
442 this.pkg = getParsedPackage(outFileName, rawResId);
443 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
445 InstallParams(PackageParser.Package pkg) { argument
446 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
447 this.pkg
[all...]
/frameworks/base/libs/utils/
H A DResourceTypes.cpp1301 Package* pkg = packages[i]; local
1302 if (pkg->owner == owner) {
1303 delete pkg;
1311 Package* pkg = packages[0]; local
1315 const Type* type = pkg->getType(i);
1994 printf("Found value: pkg=%d, type=%d, str=%s, int=%d\n",
2178 LOGV("Getting entry pkg=%p, t=%d, e=%d\n", package, t, e);
2534 LOGW("ResTable_entry at %d (pkg=%d type=%d ent=%d) is not on an integer boundary when looking for %s:%s/%s",
3630 const ResTable_package* const pkg = package->package; local
3761 status_t ResTable::parsePackage(const ResTable_package* const pkg, argument
4041 print_value(const Package* pkg, const Res_value& value) const argument
4110 const Package* pkg = pg->packages[pkgIndex]; local
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java2673 Uid.Pkg pkg = pkgEntry.getValue();
2674 pkg.writeToParcelLocked(out);
2766 Uid.Pkg pkg = new Pkg();
2767 pkg.readFromParcelLocked(in);
2768 mPackageStats.put(packageName, pkg);
3731 public Pkg.Serv getServiceStatsLocked(String pkg, String serv) { argument
3732 Pkg ps = getPackageStatsLocked(pkg);
4507 public Uid.Pkg getPackageStatsLocked(int uid, String pkg) { argument
4509 return u.getPackageStatsLocked(pkg);
4516 public Uid.Pkg.Serv getServiceStatsLocked(int uid, String pkg, Strin argument
[all...]

Completed in 434 milliseconds

12