/frameworks/support/v4/java/android/support/v4/app/ |
D | NotificationCompatSideChannelService.java | 61 public abstract void notify(String packageName, int id, String tag, Notification notification); in notify() argument 66 public abstract void cancel(String packageName, int id, String tag); in cancel() argument 71 public abstract void cancelAll(String packageName); in cancelAll() argument 75 public void notify(String packageName, int id, String tag, Notification notification) in notify() argument 77 checkPermission(getCallingUid(), packageName); in notify() local 80 … NotificationCompatSideChannelService.this.notify(packageName, id, tag, notification); in notify() 87 public void cancel(String packageName, int id, String tag) throws RemoteException { in cancel() argument 88 checkPermission(getCallingUid(), packageName); in cancel() local 91 NotificationCompatSideChannelService.this.cancel(packageName, id, tag); in cancel() 98 public void cancelAll(String packageName) { in cancelAll() argument [all …]
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 799 public PackageOps(String packageName, int uid, List<OpEntry> entries) { in PackageOps() argument 800 mPackageName = packageName; in PackageOps() 933 public void onOpChanged(String op, String packageName); in onOpChanged() argument 942 public void onOpChanged(String op, String packageName) { } in onOpChanged() argument 943 public void onOpChanged(int op, String packageName) { } in onOpChanged() argument 973 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, int[] ops) { in getOpsForPackage() argument 975 return mService.getOpsForPackage(uid, packageName, ops); in getOpsForPackage() 982 public void setMode(int code, int uid, String packageName, int mode) { in setMode() argument 984 mService.setMode(code, uid, packageName, mode); in setMode() 1023 public void startWatchingMode(String op, String packageName, in startWatchingMode() argument [all …]
|
D | ApplicationPackageManager.java | 103 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument 106 PackageInfo pi = mPM.getPackageInfo(packageName, flags, mContext.getUserId()); in getPackageInfo() 114 throw new NameNotFoundException(packageName); in getPackageInfo() 136 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument 142 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage() 150 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage() 158 intent.setClassName(ris.get(0).activityInfo.packageName, in getLaunchIntentForPackage() 164 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument 168 intentToResolve.setPackage(packageName); in getLeanbackLaunchIntentForPackage() 176 intent.setClassName(ris.get(0).activityInfo.packageName, in getLeanbackLaunchIntentForPackage() [all …]
|
D | WallpaperInfo.java | 134 "Unable to create context for: " + si.packageName); in WallpaperInfo() 157 return mService.serviceInfo.packageName; in getPackageName() 180 return new ComponentName(mService.serviceInfo.packageName, in getComponent() 213 return pm.getDrawable(mService.serviceInfo.packageName, in loadThumbnail() 223 String packageName = mService.resolvePackageName; in loadAuthor() local 225 if (packageName == null) { in loadAuthor() 226 packageName = mService.serviceInfo.packageName; in loadAuthor() 229 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor() 236 String packageName = mService.resolvePackageName; in loadDescription() local 238 if (packageName == null) { in loadDescription() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | LauncherApps.java | 77 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument 88 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument 98 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument 145 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument 148 activities = mService.getLauncherActivities(packageName, user); in getActivityList() 160 firstInstallTime = mPm.getPackageInfo(ri.activityInfo.packageName, in getActivityList() 177 return new ComponentName(ri.activityInfo.packageName, ri.activityInfo.name); in getComponentName() 194 firstInstallTime = mPm.getPackageInfo(ri.activityInfo.packageName, in resolveActivity() 255 public boolean isPackageEnabled(String packageName, UserHandle user) { in isPackageEnabled() argument 257 return mService.isPackageEnabled(packageName, user); in isPackageEnabled() [all …]
|
D | IPackageManager.aidl | 59 boolean isPackageAvailable(String packageName, int userId); in isPackageAvailable() argument 60 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument 61 int getPackageUid(String packageName, int userId); in getPackageUid() argument 62 int[] getPackageGids(String packageName); in getPackageGids() argument 75 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument 96 void grantPermission(String packageName, String permissionName); in grantPermission() argument 98 void revokePermission(String packageName, String permissionName); in revokePermission() argument 217 void deletePackageAsUser(in String packageName, IPackageDeleteObserver observer, in deletePackageAsUser() argument 228 …void deletePackage(in String packageName, IPackageDeleteObserver2 observer, int userId, int flags); in deletePackage() argument 230 String getInstallerPackageName(in String packageName); in getInstallerPackageName() argument [all …]
|
D | PackageCleanItem.java | 25 public final String packageName; field in PackageCleanItem 28 public PackageCleanItem(int userId, String packageName, boolean andCode) { in PackageCleanItem() argument 30 this.packageName = packageName; in PackageCleanItem() 42 return userId == other.userId && packageName.equals(other.packageName) in equals() 54 result = 31 * result + packageName.hashCode(); in hashCode() 65 dest.writeString(packageName); in writeToParcel() 82 packageName = source.readString(); in PackageCleanItem()
|
D | VerifierInfo.java | 32 public final String packageName; field in VerifierInfo 46 public VerifierInfo(String packageName, PublicKey publicKey) { in VerifierInfo() argument 47 if (packageName == null || packageName.length() == 0) { in VerifierInfo() 53 this.packageName = packageName; in VerifierInfo() 58 packageName = source.readString(); in VerifierInfo() 69 dest.writeString(packageName); in writeToParcel()
|
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
D | AppCompatibility.java | 97 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); in testAppStability() local 98 if (packageName != null) { in testAppStability() 99 Log.d(TAG, "Launching app " + packageName); in testAppStability() 100 ProcessErrorStateInfo err = launchActivity(packageName); in testAppStability() 105 assertTrue("App crashed after launch.", processStillUp(packageName)); in testAppStability() 132 private String getProcessName(String packageName) { in getProcessName() argument 134 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in getProcessName() 137 return packageName; in getProcessName() 149 private ProcessErrorStateInfo launchActivity(String packageName) { in launchActivity() argument 158 Log.d(TAG, "Leanback and relax! " + packageName); in launchActivity() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | CompatModePackages.java | 141 private int getPackageFlags(String packageName) { in getPackageFlags() argument 142 Integer flags = mPackages.get(packageName); in getPackageFlags() 146 public void handlePackageAddedLocked(String packageName, boolean updated) { in handlePackageAddedLocked() argument 149 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked() 162 if (!mayCompat && mPackages.containsKey(packageName)) { in handlePackageAddedLocked() 163 mPackages.remove(packageName); in handlePackageAddedLocked() 174 (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0); in compatibilityInfoForPackageLocked() 180 boolean enabled = (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0; in computeCompatModeLocked() 199 return getPackageAskCompatModeLocked(r.packageName); in getFrontActivityAskCompatModeLocked() 202 public boolean getPackageAskCompatModeLocked(String packageName) { in getPackageAskCompatModeLocked() argument [all …]
|
/frameworks/native/libs/binder/ |
D | IAppOpsService.cpp | 39 virtual int32_t checkOperation(int32_t code, int32_t uid, const String16& packageName) { in checkOperation() argument 44 data.writeString16(packageName); in checkOperation() 51 virtual int32_t noteOperation(int32_t code, int32_t uid, const String16& packageName) { in noteOperation() argument 56 data.writeString16(packageName); in noteOperation() 64 const String16& packageName) { in startOperation() argument 70 data.writeString16(packageName); in startOperation() 78 const String16& packageName) { in finishOperation() argument 84 data.writeString16(packageName); in finishOperation() 88 virtual void startWatchingMode(int32_t op, const String16& packageName, in startWatchingMode() argument 93 data.writeString16(packageName); in startWatchingMode() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IAppOpsService.aidl | 26 int checkOperation(int code, int uid, String packageName); in checkOperation() argument 27 int noteOperation(int code, int uid, String packageName); in noteOperation() argument 28 int startOperation(IBinder token, int code, int uid, String packageName); in startOperation() argument 29 void finishOperation(IBinder token, int code, int uid, String packageName); in finishOperation() argument 30 void startWatchingMode(int op, String packageName, IAppOpsCallback callback); in startWatchingMode() argument 35 int checkPackage(int uid, String packageName); in checkPackage() argument 37 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); in getOpsForPackage() argument 38 void setMode(int code, int uid, String packageName, int mode); in setMode() argument 40 int checkAudioOperation(int code, int usage, int uid, String packageName); in checkAudioOperation() argument
|
/frameworks/base/core/java/android/net/ |
D | NetworkScorerAppManager.java | 67 public NetworkScorerAppData(String packageName, CharSequence scorerName, in NetworkScorerAppData() argument 70 mPackageName = packageName; in NetworkScorerAppData() 106 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) != in getAllValidScorers() 116 intent.setPackage(receiverInfo.packageName); in getAllValidScorers() 127 scorers.add(new NetworkScorerAppData(receiverInfo.packageName, in getAllValidScorers() 157 public static boolean setActiveScorer(Context context, String packageName) { in setActiveScorer() argument 160 if (TextUtils.equals(oldPackageName, packageName)) { in setActiveScorer() 165 Log.i(TAG, "Changing network scorer from " + oldPackageName + " to " + packageName); in setActiveScorer() 167 if (packageName == null) { in setActiveScorer() 173 if (getScorer(context, packageName) != null) { in setActiveScorer() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DeviceOwner.java | 98 static DeviceOwner createWithDeviceOwner(String packageName, String ownerName) { in createWithDeviceOwner() argument 100 owner.mDeviceOwner = new OwnerInfo(ownerName, packageName); in createWithDeviceOwner() 108 static DeviceOwner createWithProfileOwner(String packageName, String ownerName, int userId) { in createWithProfileOwner() argument 110 owner.mProfileOwners.put(userId, new OwnerInfo(ownerName, packageName)); in createWithProfileOwner() 124 return mDeviceOwner != null ? mDeviceOwner.packageName : null; in getDeviceOwnerPackageName() 131 void setDeviceOwner(String packageName, String ownerName) { in setDeviceOwner() argument 132 mDeviceOwner = new OwnerInfo(ownerName, packageName); in setDeviceOwner() 142 void setProfileOwner(String packageName, String ownerName, int userId) { in setProfileOwner() argument 143 mProfileOwners.put(userId, new OwnerInfo(ownerName, packageName)); in setProfileOwner() 161 return profileOwner != null ? profileOwner.packageName : null; in getProfileOwnerPackageName() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | ServiceWatcher.java | 174 String packageName = rInfo.serviceInfo.packageName; in bindBestPackageLocked() local 179 pInfo = mPm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in bindBestPackageLocked() 181 Log.w(mTag, packageName + " resolves service " + mAction in bindBestPackageLocked() 201 bestPackage = packageName; in bindBestPackageLocked() 235 private void bindToPackageLocked(String packageName, int version, boolean isMultiuser) { in bindToPackageLocked() argument 238 intent.setPackage(packageName); in bindToPackageLocked() 239 mPackageName = packageName; in bindToPackageLocked() 242 if (D) Log.d(mTag, "binding " + packageName + " (version " + version + ") (" in bindToPackageLocked() 276 public void onPackageUpdateFinished(String packageName, int uid) { 278 if (packageName.equals(mPackageName)) { [all …]
|
D | AppOpsService.java | 104 public final String packageName; field in AppOpsService.Ops 109 packageName = _packageName; in Ops() 117 public final String packageName; field in AppOpsService.Op 127 packageName = _packageName; in Op() 225 curUid = mContext.getPackageManager().getPackageUid(ops.packageName, in systemReady() 231 Slog.i(TAG, "Pruning old package " + ops.packageName in systemReady() 247 public void packageRemoved(int uid, String packageName) { in packageRemoved() argument 251 if (pkgs.remove(packageName) != null) { in packageRemoved() 323 pkgOps.packageName, pkgOps.uid, resOps); in getPackagesForOps() 333 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in getOpsForPackage() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsApplication.java | 115 public SmsApplicationData(String applicationName, String packageName, int uid) { in SmsApplicationData() argument 117 mPackageName = packageName; in SmsApplicationData() 192 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local 193 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal() 196 applicationName, packageName, activityInfo.applicationInfo.uid); in getApplicationCollectionInternal() 198 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal() 215 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local 216 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() 235 final String packageName = serviceInfo.packageName; in getApplicationCollectionInternal() local 236 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal() [all …]
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 64 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument 80 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument 85 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument 91 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument 97 public int getPackageUid(String packageName, int userHandle) in getPackageUid() argument 126 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() argument 194 public void grantPermission(String packageName, String permissionName) { in grantPermission() argument 200 public void revokePermission(String packageName, String permissionName) { in revokePermission() argument 334 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() argument 371 public Drawable getApplicationBanner(String packageName) throws NameNotFoundException { in getApplicationBanner() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationRequestStatistics.java | 27 public void startRequesting(String packageName, String providerName, long intervalMs) { in startRequesting() argument 28 PackageProviderKey key = new PackageProviderKey(packageName, providerName); in startRequesting() 43 public void stopRequesting(String packageName, String providerName) { in stopRequesting() argument 44 PackageProviderKey key = new PackageProviderKey(packageName, providerName); in stopRequesting() 61 public final String packageName; field in LocationRequestStatistics.PackageProviderKey 67 public PackageProviderKey(String packageName, String providerName) { in PackageProviderKey() argument 68 this.packageName = packageName; in PackageProviderKey() 79 return packageName.equals(otherKey.packageName) in equals() 85 return packageName.hashCode() + 31 * providerName.hashCode(); in hashCode()
|
/frameworks/base/core/java/android/accounts/ |
D | AuthenticatorDescription.java | 45 final public String packageName; field in AuthenticatorDescription 51 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument 54 if (packageName == null) throw new IllegalArgumentException("packageName cannot be null"); in AuthenticatorDescription() 56 this.packageName = packageName; in AuthenticatorDescription() 64 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, in AuthenticatorDescription() argument 66 this(type, packageName, labelId, iconId, smallIconId, prefId, false); in AuthenticatorDescription() 81 this.packageName = null; in AuthenticatorDescription() 91 this.packageName = source.readString(); in AuthenticatorDescription() 124 dest.writeString(packageName); in writeToParcel()
|
/frameworks/base/core/java/android/os/ |
D | Environment.java | 182 public File[] buildExternalStorageAppDataDirs(String packageName) { in buildExternalStorageAppDataDirs() argument 183 return buildPaths(mExternalDirsForApp, DIR_ANDROID, DIR_DATA, packageName); in buildExternalStorageAppDataDirs() 186 public File[] buildExternalStorageAppDataDirsForVold(String packageName) { in buildExternalStorageAppDataDirsForVold() argument 187 return buildPaths(mExternalDirsForVold, DIR_ANDROID, DIR_DATA, packageName); in buildExternalStorageAppDataDirsForVold() 190 public File[] buildExternalStorageAppMediaDirs(String packageName) { in buildExternalStorageAppMediaDirs() argument 191 return buildPaths(mExternalDirsForApp, DIR_ANDROID, DIR_MEDIA, packageName); in buildExternalStorageAppMediaDirs() 194 public File[] buildExternalStorageAppMediaDirsForVold(String packageName) { in buildExternalStorageAppMediaDirsForVold() argument 195 return buildPaths(mExternalDirsForVold, DIR_ANDROID, DIR_MEDIA, packageName); in buildExternalStorageAppMediaDirsForVold() 198 public File[] buildExternalStorageAppObbDirs(String packageName) { in buildExternalStorageAppObbDirs() argument 199 return buildPaths(mExternalDirsForApp, DIR_ANDROID, DIR_OBB, packageName); in buildExternalStorageAppObbDirs() [all …]
|
/frameworks/base/cmds/appops/src/com/android/commands/appops/ |
D | AppOpsCommand.java | 107 String packageName = null; in runSet() local 115 if (packageName == null) { in runSet() 116 packageName = argument; in runSet() 128 if (packageName == null) { in runSet() 171 final int uid = pm.getPackageUid(packageName, userId); in runSet() 173 System.err.println("Error: No UID for " + packageName + " in user " + userId); in runSet() 176 appOpsService.setMode(opInt, uid, packageName, modeInt); in runSet() 180 String packageName = null; in runGet() local 187 if (packageName == null) { in runGet() 188 packageName = argument; in runGet() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRules.java | 123 public String packageName; field in UiccCarrierPrivilegeRules.AccessRule 126 AccessRule(byte[] certificateHash, String packageName, long accessType) { in AccessRule() argument 128 this.packageName = packageName; in AccessRule() 132 boolean matches(byte[] certHash, String packageName) { in matches() argument 134 (this.packageName == null || this.packageName.equals(packageName)); in matches() 140 packageName + " access: " + accessType; in toString() 240 public int getCarrierPrivilegeStatus(Signature signature, String packageName) { in getCarrierPrivilegeStatus() argument 241 Rlog.d(LOG_TAG, "hasCarrierPrivileges: " + signature + " : " + packageName); in getCarrierPrivilegeStatus() 254 … Rlog.d(LOG_TAG, "Checking SHA1: " + IccUtils.bytesToHexString(certHash) + " : " + packageName); in getCarrierPrivilegeStatus() 255 …log.d(LOG_TAG, "Checking SHA256: " + IccUtils.bytesToHexString(certHash256) + " : " + packageName); in getCarrierPrivilegeStatus() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | RecentsPackageMonitor.java | 35 public void onPackagesChanged(RecentsPackageMonitor monitor, String packageName, in onPackagesChanged() argument 68 public void onPackageRemoved(String packageName, int uid) { in onPackageRemoved() argument 73 mCb.onPackagesChanged(this, packageName, eventUserId); in onPackageRemoved() 77 public boolean onPackageChanged(String packageName, int uid, String[] components) { in onPackageChanged() argument 78 onPackageModified(packageName); in onPackageChanged() 83 public void onPackageModified(String packageName) { in onPackageModified() argument 88 mCb.onPackagesChanged(this, packageName, eventUserId); in onPackageModified() 96 String packageName, int userId) { in computeComponentsRemoved() argument 106 if (cn.getPackageName().equals(packageName)) { in computeComponentsRemoved()
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfo.java | 33 private final String packageName; field in ClassPathPackageInfo 37 ClassPathPackageInfo(ClassPathPackageInfoSource source, String packageName, in ClassPathPackageInfo() argument 40 this.packageName = packageName; in ClassPathPackageInfo() 70 return (this.packageName).equals(that.packageName); in equals() 77 return packageName.hashCode(); in hashCode()
|