Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/services/java/com/android/server/
DNotificationManagerService.java129 String pkg; in idDebugString() local
143 final String pkg; field in NotificationManagerService.NotificationRecord
152 NotificationRecord(String pkg, String tag, int id, int uid, int initialPid, int priority, in NotificationRecord() argument
155 this.pkg = pkg; in NotificationRecord()
167 + " / " + idDebugString(baseContext, this.pkg, notification.icon)); in dump()
186 + " pkg=" + pkg in toString()
197 final String pkg; field in NotificationManagerService.ToastRecord
201 ToastRecord(int pid, String pkg, ITransientNotification callback, int duration) in ToastRecord() argument
204 this.pkg = pkg; in ToastRecord()
222 + " pkg=" + pkg in toString()
[all …]
DClipboardService.java109 public ClipData getPrimaryClip(String pkg) { in getPrimaryClip() argument
111 addActiveOwnerLocked(Binder.getCallingUid(), pkg); in getPrimaryClip() local
182 private final void grantUriLocked(Uri uri, String pkg) { in grantUriLocked() argument
185 mAm.grantUriPermissionFromOwner(mPermissionOwner, Process.myUid(), pkg, uri, in grantUriLocked()
193 private final void grantItemLocked(ClipData.Item item, String pkg) { in grantItemLocked() argument
195 grantUriLocked(item.getUri(), pkg); in grantItemLocked() local
199 grantUriLocked(intent.getData(), pkg); in grantItemLocked() local
203 private final void addActiveOwnerLocked(int uid, String pkg) { in addActiveOwnerLocked() argument
206 pi = mPm.getPackageInfo(pkg, 0); in addActiveOwnerLocked()
209 + " does not own package " + pkg); in addActiveOwnerLocked()
[all …]
DAttributeCache.java99 Package pkg = mPackages.get(packageName); in get() local
102 if (pkg != null) { in get()
103 map = pkg.mMap.get(resId); in get()
120 pkg = new Package(context); in get()
121 mPackages.put(packageName, pkg); in get()
126 pkg.mMap.put(resId, map); in get()
130 ent = new Entry(pkg.context, in get()
131 pkg.context.obtainStyledAttributes(resId, styleable)); in get()
DStatusBarManagerService.java80 String pkg; field in StatusBarManagerService.DisableRecord
85 Slog.i(TAG, "binder died for pkg=" + pkg); in binderDied()
86 disable(0, token, pkg); in binderDied()
94 void onNotificationClick(String pkg, String tag, int id); in onNotificationClick() argument
95 void onNotificationClear(String pkg, String tag, int id); in onNotificationClear() argument
97 void onNotificationError(String pkg, String tag, int id, in onNotificationError() argument
142 public void disable(int what, IBinder token, String pkg) { in disable() argument
146 disableLocked(what, token, pkg); in disable()
150 private void disableLocked(int what, IBinder token, String pkg) { in disableLocked() argument
155 manageDisableListLocked(what, token, pkg); in disableLocked()
[all …]
DPackageManagerBackupAgent.java162 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()
DBackupManagerService.java910 String pkg = in.readUTF(); in initPackageTracking() local
912 info = mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking()
913 mEverStoredApps.add(pkg); in initPackageTracking()
914 temp.writeUTF(pkg); in initPackageTracking()
915 if (MORE_DEBUG) Slog.v(TAG, " + " + pkg); in initPackageTracking()
918 if (MORE_DEBUG) Slog.v(TAG, " - " + pkg); in initPackageTracking()
1374 for (PackageInfo pkg : targetPkgs) { in addPackageParticipantsLockedInner()
1375 if (packageName == null || pkg.packageName.equals(packageName)) { in addPackageParticipantsLockedInner()
1376 int uid = pkg.applicationInfo.uid; in addPackageParticipantsLockedInner()
1382 set.add(pkg.applicationInfo); in addPackageParticipantsLockedInner()
[all …]
/frameworks/base/core/java/android/content/
DComponentName.java45 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/app/
DINotificationManager.aidl28 …void enqueueNotification(String pkg, int id, in Notification notification, inout int[] idReceived); in enqueueNotification() argument
30 void cancelNotification(String pkg, int id); in cancelNotification() argument
31 void cancelAllNotifications(String pkg); in cancelAllNotifications() argument
33 void enqueueToast(String pkg, ITransientNotification callback, int duration); in enqueueToast() argument
34 void cancelToast(String pkg, ITransientNotification callback); in cancelToast() argument
35 …void enqueueNotificationWithTag(String pkg, String tag, int id, in Notification notification, inou… in enqueueNotificationWithTag() argument
36 …void enqueueNotificationWithTagPriority(String pkg, String tag, int id, int priority, in Notificat… in enqueueNotificationWithTagPriority() argument
37 void cancelNotificationWithTag(String pkg, String tag, int id); in cancelNotificationWithTag() argument
DNotificationManager.java121 String pkg = mContext.getPackageName(); in notify() local
122 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify()
124 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut); in notify()
150 String pkg = mContext.getPackageName(); in cancel() local
151 if (localLOGV) Log.v(TAG, pkg + ": cancel(" + id + ")"); in cancel()
153 service.cancelNotificationWithTag(pkg, tag, id); in cancel()
165 String pkg = mContext.getPackageName(); in cancelAll() local
166 if (localLOGV) Log.v(TAG, pkg + ": cancelAll()"); in cancelAll()
168 service.cancelAllNotifications(pkg); in cancelAll()
DIActivityController.aidl33 boolean activityStarting(in Intent intent, String pkg); in activityStarting() argument
39 boolean activityResuming(String pkg); in activityResuming() argument
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java185 String pkg = uri != null ? uri.getSchemeSpecificPart() : null; in getPackageName() local
186 return pkg; in getPackageName()
198 String pkg = getPackageName(intent); in onReceive() local
204 if (pkg != null) { in onReceive()
206 mTempArray[0] = pkg; in onReceive()
210 onPackageUpdateFinished(pkg, uid); in onReceive()
211 onPackageModified(pkg); in onReceive()
214 onPackageAdded(pkg, uid); in onReceive()
216 onPackageAppeared(pkg, mChangeType); in onReceive()
219 mUpdatingPackages.remove(pkg); in onReceive()
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarNotification.java43 public String pkg; field in StatusBarNotification
54 public StatusBarNotification(String pkg, int id, String tag, in StatusBarNotification() argument
56 if (pkg == null) throw new NullPointerException(); in StatusBarNotification()
59 this.pkg = pkg; in StatusBarNotification()
74 this.pkg = in.readString(); in readFromParcel()
88 out.writeString(this.pkg); in writeToParcel()
121 return new StatusBarNotification(this.pkg, this.id, this.tag, in clone()
126 return "StatusBarNotification(package=" + pkg + " id=" + id + " tag=" + tag in toString()
DIStatusBarService.aidl29 void disable(int what, IBinder token, String pkg); in disable() argument
42 void onNotificationClick(String pkg, String tag, int id); in onNotificationClick() argument
43 void onNotificationError(String pkg, String tag, int id, in onNotificationError() argument
46 void onNotificationClear(String pkg, String tag, int id); in onNotificationClear() argument
/frameworks/base/services/java/com/android/server/pm/
DSettings.java162 PackageSetting getPackageLPw(PackageParser.Package pkg, PackageSetting origPackage, in getPackageLPw() argument
165 final String name = pkg.packageName; in getPackageLPw()
167 resourcePath, nativeLibraryPathString, pkg.mVersionCode, pkgFlags, create, add); in getPackageLPw()
225 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in disableSystemPackageLPw()
226 p.pkg.applicationInfo.flags |= ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in disableSystemPackageLPw()
248 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { in enableSystemPackageLPw()
249 p.pkg.applicationInfo.flags &= ~ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in enableSystemPackageLPw()
448 void insertPackageSettingLPw(PackageSetting p, PackageParser.Package pkg) { in insertPackageSettingLPw() argument
449 p.pkg = pkg; in insertPackageSettingLPw()
450 pkg.mSetEnabled = p.enabled; in insertPackageSettingLPw()
[all …]
DPackageManagerService.java674 res.pkg.applicationInfo.packageName, in doHandleMessage()
678 res.pkg.applicationInfo.packageName, in doHandleMessage()
682 res.pkg.applicationInfo.packageName, null); in doHandleMessage()
1547 if((ps == null) || (ps.pkg == null) || (ps.pkg.applicationInfo == null)) { in getPackageUid()
1550 p = ps.pkg; in getPackageUid()
1642 if (ps.pkg == null) { in generateApplicationInfoFromSettingsLPw()
1649 return PackageParser.generateApplicationInfo(ps.pkg, flags); in generateApplicationInfoFromSettingsLPw()
1657 if (ps.pkg == null) { in generatePackageInfoFromSettingsLPw()
1658 ps.pkg = new PackageParser.Package(packageName); in generatePackageInfoFromSettingsLPw()
1659 ps.pkg.applicationInfo.packageName = packageName; in generatePackageInfoFromSettingsLPw()
[all …]
DPackageSetting.java28 PackageParser.Package pkg; field in PackageSetting
45 pkg = orig.pkg; in PackageSetting()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java268 … PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, metrics, 0); in parsePackage() local
270 return pkg; in parsePackage()
356 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { in assertInstall() argument
358 String pkgName = pkg.packageName; in assertInstall()
442 PackageParser.Package pkg; field in PackageManagerTests.InstallParams
444 this.pkg = getParsedPackage(outFileName, rawResId); in InstallParams()
445 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); in InstallParams()
447 InstallParams(PackageParser.Package pkg) { in InstallParams() argument
448 this.packageURI = Uri.fromFile(new File(pkg.mScanPath)); in InstallParams()
449 this.pkg = pkg; in InstallParams()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DClassTest.java251 String pkg = (clazz.getPackage() == null ? "" : clazz.getPackage().getName() + "."); in testVariousClassNames() local
255 assertEquals("Top-level class name must be correct", pkg + "ClassTest", clazz.getName()); in testVariousClassNames()
257 …assertEquals("Top-level class canonical name must be correct", pkg + "ClassTest", clazz.getCanonic… in testVariousClassNames()
261 … assertEquals("Member class name must be correct", pkg + "ClassTest$MemberClass", clazz.getName()); in testVariousClassNames()
263 …assertEquals("Member class canonical name must be correct", pkg + "ClassTest.MemberClass", clazz.g… in testVariousClassNames()
271 … assertEquals("Local class name must be correct", pkg + "ClassTest$1LocalClass", clazz.getName()); in testVariousClassNames()
277 assertEquals("Anonymous class name must be correct", pkg + "ClassTest$1", clazz.getName()); in testVariousClassNames()
285 assertEquals("Top-level class name must be correct", pkg + "Mou$$aka", clazz.getName()); in testVariousClassNames()
287 …assertEquals("Top-level class canonical name must be correct", pkg + "Mou$$aka", clazz.getCanonica… in testVariousClassNames()
291 … assertEquals("Member class name must be correct", pkg + "ClassTest$Mi$o$oup", clazz.getName()); in testVariousClassNames()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DClientTest.java62 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/core/java/android/content/pm/
DPackageParser.java440 Package pkg = null; in parsePackage() local
444 pkg = parsePackage(res, parser, flags, errorText); in parsePackage()
451 if (pkg == null) { in parsePackage()
475 pkg.mPath = destCodePath; in parsePackage()
476 pkg.mScanPath = mArchiveSourcePath; in parsePackage()
479 pkg.mSignatures = null; in parsePackage()
481 return pkg; in parsePackage()
484 public boolean collectCertificates(Package pkg, int flags) { in collectCertificates() argument
485 pkg.mSignatures = null; in collectCertificates()
514 Slog.e(TAG, "Package " + pkg.packageName in collectCertificates()
[all …]
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java154 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/
DActivityInstrumentationTestCase.java49 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/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java144 PackageParser.PackageLite pkg = PackageParser.parsePackageLite(archiveFilePath, 0);
145 if (pkg == null) {
157 ret.packageName = pkg.packageName;
158 ret.installLocation = pkg.installLocation;
159 ret.verifiers = pkg.verifiers;
161 ret.recommendedInstallLocation = recommendAppInstallLocation(pkg.installLocation,
218 String pkg = null; in onHandleIntent() local
220 while ((pkg=pm.nextPackageToClean(pkg)) != null) { in onHandleIntent()
221 eraseFiles(Environment.getExternalStorageAppDataDirectory(pkg)); in onHandleIntent()
222 eraseFiles(Environment.getExternalStorageAppMediaDirectory(pkg)); in onHandleIntent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTicker.java185 if (n.pkg.equals(seg.notification.pkg) in addEntry()
195 new StatusBarIcon(n.pkg, n.notification.icon, n.notification.iconLevel, 0, in addEntry()
202 if (n.id == seg.notification.id && n.pkg.equals(seg.notification.pkg)) { in addEntry()
230 if (n.id == seg.notification.id && n.pkg.equals(seg.notification.pkg)) { in removeEntry()
/frameworks/base/tests/backup/
Dtest_backup.sh27 for pkg in $b_pkgs; do
28 a shell bmgr wipe "$pkg"

123