Searched refs:pkg (Results 1 - 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/app/
H A DINotificationManager.aidl28 void enqueueNotification(String pkg, int id, in Notification notification, inout int[] idReceived);
30 void cancelNotification(String pkg, int id);
31 void cancelAllNotifications(String pkg);
33 void enqueueToast(String pkg, ITransientNotification callback, int duration);
34 void cancelToast(String pkg, ITransientNotification callback);
35 void enqueueNotificationWithTag(String pkg, String tag, int id, in Notification notification, inout int[] idReceived);
36 void cancelNotificationWithTag(String pkg, String tag, int id);
H A DNotificationManager.java107 String pkg = mContext.getPackageName();
108 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")");
110 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut);
136 String pkg = mContext.getPackageName();
137 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")");
139 service.cancelNotificationWithTag(pkg, tag, id);
151 String pkg = mContext.getPackageName();
152 if (localLOGV) Log.v(TAG, pkg + ": cancelAll()");
154 service.cancelAllNotifications(pkg);
H A DIActivityController.aidl33 boolean activityStarting(in Intent intent, String pkg);
39 boolean activityResuming(String pkg);
H A DIStatusBar.aidl25 void disable(int what, IBinder token, String pkg);
/frameworks/base/tests/backup/
H A Dtest_backup.sh27 for pkg in $b_pkgs; do
28 a shell bmgr wipe "$pkg"
/frameworks/base/services/java/com/android/server/status/
H A DNotificationData.java23 public String pkg; field in class:NotificationData
38 return "NotificationData(package=" + pkg + " id=" + id + " tickerText=" + tickerText
H A DNotificationViewList.java94 } else if (snb.data.pkg != null && snb.data.pkg.equals(packageName)) {
213 s += that.data.pkg + "/" + that.data.id + "/" + that.view;
231 s += that.data.pkg + "/" + that.data.id + "/" + that.view;
/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/core/java/com/android/internal/content/
H A DPackageMonitor.java185 String pkg = uri != null ? uri.getSchemeSpecificPart() : null;
186 return pkg;
198 String pkg = getPackageName(intent);
204 if (pkg != null) {
206 mTempArray[0] = pkg;
210 onPackageUpdateFinished(pkg, uid);
211 onPackageModified(pkg);
214 onPackageAdded(pkg, uid);
216 onPackageAppeared(pkg, mChangeType);
219 mUpdatingPackages.remove(pkg);
[all...]
/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 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;
H A DActivityInstrumentationTestCase2.java50 * @param pkg ignored - no longer in use.
57 public ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass) { argument
/frameworks/base/services/java/com/android/server/
H A DAttributeCache.java99 Package pkg = mPackages.get(packageName);
102 if (pkg != null) {
103 map = pkg.mMap.get(resId);
120 pkg = new Package(context);
121 mPackages.put(packageName, pkg);
126 pkg.mMap.put(resId, map);
130 ent = new Entry(pkg.context,
131 pkg.context.obtainStyledAttributes(resId, styleable));
H A DNotificationManagerService.java149 String pkg;
163 final String pkg; field in class:NotificationManagerService.NotificationRecord
171 NotificationRecord(String pkg, String tag, int id, Notification notification) argument
173 this.pkg = pkg;
182 + " / " + idDebugString(baseContext, this.pkg, notification.icon));
201 + " pkg=" + pkg
210 final String pkg; field in class:NotificationManagerService.ToastRecord
214 ToastRecord(int pid, String pkg, ITransientNotificatio argument
473 enqueueToast(String pkg, ITransientNotification callback, int duration) argument
512 cancelToast(String pkg, ITransientNotification callback) argument
601 indexOfToastLocked(String pkg, ITransientNotification callback) argument
651 enqueueNotification(String pkg, int id, Notification notification, int[] idOut) argument
656 enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification, int[] idOut) argument
910 cancelNotification(String pkg, String tag, int id, int mustHaveFlags, int mustNotHaveFlags) argument
938 cancelAllNotificationsInt(String pkg, int mustHaveFlags, int mustNotHaveFlags, boolean doit) argument
971 cancelNotification(String pkg, int id) argument
975 cancelNotificationWithTag(String pkg, String tag, int id) argument
983 cancelAllNotifications(String pkg) argument
991 checkIncomingCall(String pkg) argument
1096 indexOfNotificationLocked(String pkg, String tag, int id) argument
[all...]
H A DPackageManagerService.java589 res.pkg.applicationInfo.packageName,
593 res.pkg.applicationInfo.packageName,
1030 PackageParser.Package pkg = mPackages.get(ps.name);
1031 File dataDir = new File(pkg.applicationInfo.dataDir);
1374 if((ps == null) || (ps.pkg == null) || (ps.pkg.applicationInfo == null)) {
1377 p = ps.pkg;
1465 if(ps.pkg == null) {
1472 return PackageParser.generateApplicationInfo(ps.pkg, flags);
1480 if(ps.pkg
2516 collectCertificatesLI(PackageParser pp, PackageSetting ps, PackageParser.Package pkg, File srcFile, int parseFlags) argument
2651 setApplicationInfoPaths(PackageParser.Package pkg, String destCodePath, String destResPath) argument
2666 verifySignaturesLP(PackageSetting pkgSetting, PackageParser.Package pkg) argument
2713 performDexOptLI(PackageParser.Package pkg, boolean forceDex) argument
2762 getDataPathForPackage(PackageParser.Package pkg) argument
2766 scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode) argument
3547 getNativeBinaryDirForPackage(PackageParser.Package pkg) argument
3559 cachePackageSharedLibsForAbiLI(PackageParser.Package pkg, File scanFile, String cpuAbi) argument
3655 cachePackageGdbServerLI(PackageParser.Package pkg, File scanFile, String cpuAbi) argument
3702 cachePackageSharedLibsLI(PackageParser.Package pkg, File scanFile) argument
3758 cacheNativeBinaryLI(PackageParser.Package pkg, ZipFile zipFile, ZipEntry entry, File binaryDir, File binaryFile) argument
3787 removeNativeBinariesLI(PackageParser.Package pkg) argument
3816 removePackageLI(PackageParser.Package pkg, boolean chatty) argument
4072 grantPermissionsLP(PackageParser.Package pkg, boolean replace) argument
4561 sendPackageBroadcast(String action, String pkg, Bundle extras, IIntentReceiver finishedReceiver) argument
5561 PackageParser.Package pkg; field in class:PackageManagerService.PackageInstalledInfo
5569 installNewPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5624 replacePackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5648 replaceNonSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5725 replaceSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, String installerPackageName, PackageInstalledInfo res) argument
5992 isForwardLocked(PackageParser.Package pkg) argument
5996 isExternal(PackageParser.Package pkg) argument
7773 PackageParser.Package pkg; field in class:PackageManagerService.PackageSetting
7912 getPackageLP(PackageParser.Package pkg, PackageSetting origPackage, String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, int pkgFlags, boolean create, boolean add) argument
8191 insertPackageSettingLP(PackageSetting p, PackageParser.Package pkg) argument
8566 writeDisabledSysPackage(XmlSerializer serializer, final PackageSetting pkg) argument
8607 writePackage(XmlSerializer serializer, final PackageSetting pkg) argument
[all...]
H A DPackageManagerBackupAgent.java162 for (PackageInfo pkg : mAllPackages) {
163 String packName = pkg.packageName;
226 if (DEBUG) Slog.v(TAG, "- removing metadata for deleted pkg " + app);
379 String pkg = in.readUTF();
380 if (pkg.equals(GLOBAL_METADATA_KEY)) {
391 pkg = in.readUTF();
393 mExisting.add(pkg);
394 mStateVersions.put(pkg, new Metadata(versionCode, null));
416 for (PackageInfo pkg : pkgs) {
417 out.writeUTF(pkg
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DClassTest.java251 String pkg = (clazz.getPackage() == null ? "" : clazz.getPackage().getName() + ".");
255 assertEquals("Top-level class name must be correct", pkg + "ClassTest", clazz.getName());
257 assertEquals("Top-level class canonical name must be correct", pkg + "ClassTest", clazz.getCanonicalName());
261 assertEquals("Member class name must be correct", pkg + "ClassTest$MemberClass", clazz.getName());
263 assertEquals("Member class canonical name must be correct", pkg + "ClassTest.MemberClass", clazz.getCanonicalName());
271 assertEquals("Local class name must be correct", pkg + "ClassTest$1LocalClass", clazz.getName());
277 assertEquals("Anonymous class name must be correct", pkg + "ClassTest$1", clazz.getName());
285 assertEquals("Top-level class name must be correct", pkg + "Mou$$aka", clazz.getName());
287 assertEquals("Top-level class canonical name must be correct", pkg + "Mou$$aka", clazz.getCanonicalName());
291 assertEquals("Member class name must be correct", pkg
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java265 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, metrics, 0);
267 return pkg;
353 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { argument
355 String pkgName = pkg.packageName;
402 PackageParser.Package pkg; field in class:PackageManagerTests.InstallParams
404 this.pkg = getParsedPackage(outFileName, rawResId);
405 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
407 InstallParams(PackageParser.Package pkg) { argument
408 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
409 this.pkg
[all...]
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
H A DBmgr.java155 String pkg = nextArg();
156 if ("-f".equals(pkg)) {
158 pkg = nextArg();
161 if (pkg == null || pkg.startsWith("-")) {
168 mBmgr.dataChanged(pkg);
192 String pkg = nextArg();
193 if (pkg == null) {
199 mBmgr.clearBackupData(pkg);
200 System.out.println("Wiped backup data for " + pkg);
337 doRestorePackage(String pkg) argument
[all...]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java126 PackageParser.PackageLite pkg = packageParser.parsePackageLite(
128 ret.packageName = pkg.packageName;
129 ret.installLocation = pkg.installLocation;
133 if (pkg == null) {
138 ret.packageName = pkg.packageName;
139 ret.recommendedInstallLocation = recommendAppInstallLocation(pkg.installLocation, archiveFilePath, flags);
158 String pkg = null;
160 while ((pkg=pm.nextPackageToClean(pkg)) != null) {
161 eraseFiles(Environment.getExternalStorageAppDataDirectory(pkg));
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DITelephonyRegistry.aidl26 void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow);
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java411 Package pkg = null;
416 pkg = parsePackage(res, parser, flags, errorText);
423 if (pkg == null) {
443 pkg.mPath = destCodePath;
444 pkg.mScanPath = mArchiveSourcePath;
445 //pkg.applicationInfo.sourceDir = destCodePath;
446 //pkg.applicationInfo.publicSourceDir = destRes;
447 pkg.mSignatures = null;
449 return pkg;
452 public boolean collectCertificates(Package pkg, in argument
1149 buildClassName(String pkg, CharSequence clsSeq, String[] outError) argument
1173 buildCompoundName(String pkg, CharSequence procSeq, String type, String[] outError) argument
1201 buildProcessName(String pkg, String defProc, CharSequence procSeq, int flags, String[] separateProcesses, String[] outError) argument
1221 buildTaskAffinityName(String pkg, String defProc, CharSequence procSeq, String[] outError) argument
[all...]
/frameworks/base/core/java/android/accounts/
H A DGrantCredentialsPermissionActivity.java79 for (String pkg : packages) {
82 packageLabel = pm.getApplicationLabel(pm.getApplicationInfo(pkg, 0)).toString();
84 packageLabel = pkg;
/frameworks/base/core/java/android/server/search/
H A DSearchables.java135 String pkg = activity.getPackageName();
138 referredActivity = new ComponentName(pkg, pkg + refActivityName);
140 referredActivity = new ComponentName(pkg, refActivityName);
/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

Completed in 414 milliseconds

123