Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/frameworks/support/v4/java/android/support/v4/app/
DNotificationCompatSideChannelService.java61 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/content/pm/
DIPackageManager.aidl62 boolean isPackageFrozen(String packageName); in isPackageFrozen() argument
63 boolean isPackageAvailable(String packageName, int userId); in isPackageAvailable() argument
64 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument
65 int getPackageUid(String packageName, int userId); in getPackageUid() argument
66 int[] getPackageGids(String packageName, int userId); in getPackageGids() argument
79 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument
100 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
102 void revokeRuntimePermission(String packageName, String permissionName, int userId); in revokeRuntimePermission() argument
106 int getPermissionFlags(String permissionName, String packageName, int userId); in getPermissionFlags() argument
108 void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
[all …]
DLauncherApps.java76 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument
87 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument
97 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument
144 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument
147 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 …]
DPackageCleanItem.java25 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()
DVerifierInfo.java32 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/opt/telephony/src/java/com/android/internal/telephony/
DSmsApplication.java114 public SmsApplicationData(String applicationName, String packageName, int uid) { in SmsApplicationData() argument
116 mPackageName = packageName; in SmsApplicationData()
191 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local
192 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal()
195 applicationName, packageName, activityInfo.applicationInfo.uid); in getApplicationCollectionInternal()
197 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal()
214 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local
215 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
234 final String packageName = serviceInfo.packageName; in getApplicationCollectionInternal() local
235 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
[all …]
DCarrierAppUtils.java87 String packageName = ai.packageName; in disableCarrierAppsUntilPrivileged() local
89 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) == in disableCarrierAppsUntilPrivileged()
99 Slog.i(TAG, "Update state(" + packageName + "): ENABLED for user " in disableCarrierAppsUntilPrivileged()
101 packageManager.setApplicationEnabledSetting(packageName, in disableCarrierAppsUntilPrivileged()
107 Slog.i(TAG, "Update state(" + packageName in disableCarrierAppsUntilPrivileged()
109 packageManager.setApplicationEnabledSetting(packageName, in disableCarrierAppsUntilPrivileged()
117 enabledCarrierPackages.add(ai.packageName); in disableCarrierAppsUntilPrivileged()
153 String packageName = ai.packageName; in getDefaultCarrierApps() local
155 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) == in getDefaultCarrierApps()
194 for (String packageName : systemCarrierAppsDisabledUntilUsed) { in getDefaultCarrierAppCandidatesHelper()
[all …]
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java102 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); in testAppStability() local
103 if (packageName != null) { in testAppStability()
104 Log.d(TAG, "Launching app " + packageName); in testAppStability()
105 Intent intent = getLaunchIntentForPackage(packageName); in testAppStability()
107 Log.w(TAG, String.format("Skipping %s; no launch intent", packageName)); in testAppStability()
110 ProcessErrorStateInfo err = launchActivity(packageName, intent); in testAppStability()
116 assertTrue("App crashed after launch.", processStillUp(packageName)); in testAppStability()
146 private String getProcessName(String packageName) { in getProcessName() argument
148 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in getProcessName()
151 return packageName; in getProcessName()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DIntentFilterVerificationKey.java27 public String packageName; field in IntentFilterVerificationKey
30 public IntentFilterVerificationKey(String[] domains, String packageName, String className) { in IntentFilterVerificationKey() argument
36 this.packageName = packageName; in IntentFilterVerificationKey()
50 if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null) in equals()
59 result = 31 * result + (packageName != null ? packageName.hashCode() : 0); in hashCode()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java49 public static boolean setDefaultDialerApplication(Context context, String packageName) { in setDefaultDialerApplication() argument
50 return setDefaultDialerApplication(context, packageName, ActivityManager.getCurrentUser()); in setDefaultDialerApplication()
63 public static boolean setDefaultDialerApplication(Context context, String packageName, in setDefaultDialerApplication() argument
69 if (packageName != null && oldPackageName != null && packageName.equals(oldPackageName)) { in setDefaultDialerApplication()
77 if (packageNames.contains(packageName)) { in setDefaultDialerApplication()
80 Settings.Secure.DIALER_DEFAULT_APPLICATION, packageName, user); in setDefaultDialerApplication() local
164 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
165 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
186 public static boolean isDefaultOrSystemDialer(Context context, String packageName) { in isDefaultOrSystemDialer() argument
187 if (TextUtils.isEmpty(packageName)) { in isDefaultOrSystemDialer()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCompatModePackages.java144 private int getPackageFlags(String packageName) { in getPackageFlags() argument
145 Integer flags = mPackages.get(packageName); in getPackageFlags()
149 public void handlePackageAddedLocked(String packageName, boolean updated) { in handlePackageAddedLocked() argument
152 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked()
165 if (!mayCompat && mPackages.containsKey(packageName)) { in handlePackageAddedLocked()
166 mPackages.remove(packageName); in handlePackageAddedLocked()
177 (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0); in compatibilityInfoForPackageLocked()
183 boolean enabled = (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0; in computeCompatModeLocked()
202 return getPackageAskCompatModeLocked(r.packageName); in getFrontActivityAskCompatModeLocked()
205 public boolean getPackageAskCompatModeLocked(String packageName) { in getPackageAskCompatModeLocked() argument
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java66 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument
82 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
87 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
93 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument
99 public int getPackageUid(String packageName, int userHandle) in getPackageUid() argument
128 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() argument
207 public void grantRuntimePermission(String packageName, String permissionName, in grantRuntimePermission() argument
214 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
221 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
227 public void updatePermissionFlags(String permissionName, String packageName, in updatePermissionFlags() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java63 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument
78 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
83 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
88 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument
93 public int getPackageUid(String packageName, int userHandle) throws NameNotFoundException { in getPackageUid() argument
120 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() argument
194 public void grantRuntimePermission(String packageName, String permissionName, UserHandle user) { in grantRuntimePermission() argument
198 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
203 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
208 public void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManager.java1050 public PackageOps(String packageName, int uid, List<OpEntry> entries) { in PackageOps() argument
1051 mPackageName = packageName; in PackageOps()
1201 public void onOpChanged(String op, String packageName); in onOpChanged() argument
1210 public void onOpChanged(String op, String packageName) { } in onOpChanged() argument
1211 public void onOpChanged(int op, String packageName) { } in onOpChanged() argument
1241 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, int[] ops) { in getOpsForPackage() argument
1243 return mService.getOpsForPackage(uid, packageName, ops); in getOpsForPackage()
1258 public void setMode(int code, int uid, String packageName, int mode) { in setMode() argument
1260 mService.setMode(code, uid, packageName, mode); in setMode()
1315 public void startWatchingMode(String op, String packageName, in startWatchingMode() argument
[all …]
DApplicationPackageManager.java126 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument
129 PackageInfo pi = mPM.getPackageInfo(packageName, flags, mContext.getUserId()); in getPackageInfo()
137 throw new NameNotFoundException(packageName); in getPackageInfo()
159 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
165 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
173 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
181 intent.setClassName(ris.get(0).activityInfo.packageName, in getLaunchIntentForPackage()
187 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
191 intentToResolve.setPackage(packageName); in getLeanbackLaunchIntentForPackage()
199 intent.setClassName(ris.get(0).activityInfo.packageName, in getLeanbackLaunchIntentForPackage()
[all …]
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java71 public NetworkScorerAppData(String packageName, int packageUid, CharSequence scorerName, in NetworkScorerAppData() argument
74 mPackageName = packageName; in NetworkScorerAppData()
111 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) != in getAllValidScorers()
121 intent.setPackage(receiverInfo.packageName); in getAllValidScorers()
132 scorers.add(new NetworkScorerAppData(receiverInfo.packageName, in getAllValidScorers()
163 public static boolean setActiveScorer(Context context, String packageName) { in setActiveScorer() argument
166 if (TextUtils.equals(oldPackageName, packageName)) { in setActiveScorer()
171 Log.i(TAG, "Changing network scorer from " + oldPackageName + " to " + packageName); in setActiveScorer()
173 if (packageName == null) { in setActiveScorer()
179 if (getScorer(context, packageName) != null) { in setActiveScorer()
[all …]
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java174 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 …]
/frameworks/base/core/java/android/os/
DEnvironment.java114 public File[] buildExternalStorageAppDataDirs(String packageName) { in buildExternalStorageAppDataDirs() argument
115 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_DATA, packageName); in buildExternalStorageAppDataDirs()
118 public File[] buildExternalStorageAppMediaDirs(String packageName) { in buildExternalStorageAppMediaDirs() argument
119 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_MEDIA, packageName); in buildExternalStorageAppMediaDirs()
122 public File[] buildExternalStorageAppObbDirs(String packageName) { in buildExternalStorageAppObbDirs() argument
123 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_OBB, packageName); in buildExternalStorageAppObbDirs()
126 public File[] buildExternalStorageAppFilesDirs(String packageName) { in buildExternalStorageAppFilesDirs() argument
127 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_DATA, packageName, DIR_FILES); in buildExternalStorageAppFilesDirs()
130 public File[] buildExternalStorageAppCacheDirs(String packageName) { in buildExternalStorageAppCacheDirs() argument
131 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_DATA, packageName, DIR_CACHE); in buildExternalStorageAppCacheDirs()
[all …]
/frameworks/native/libs/binder/
DIAppOpsService.cpp39 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/
DIAppOpsService.aidl26 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
38 int checkPackage(int uid, String packageName); in checkPackage() argument
40 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); in getOpsForPackage() argument
42 void setMode(int code, int uid, String packageName, int mode); in setMode() argument
44 int checkAudioOperation(int code, int usage, int uid, String packageName); in checkAudioOperation() argument
/frameworks/base/services/core/java/com/android/server/location/
DLocationRequestStatistics.java27 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/
DAuthenticatorDescription.java45 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/cmds/appops/src/com/android/commands/appops/
DAppOpsCommand.java107 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/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java164 public void onPackageRemovedLocked(String packageName) { in onPackageRemovedLocked() argument
176 if (packageName.equals(setting.packageName)) { in onPackageRemovedLocked()
207 public boolean updateSettingLocked(String name, String value, String packageName) { in updateSettingLocked() argument
212 return insertSettingLocked(name, value, packageName); in updateSettingLocked()
216 public boolean insertSettingLocked(String name, String value, String packageName) { in insertSettingLocked() argument
225 if (!oldState.update(value, packageName)) { in insertSettingLocked()
229 Setting state = new Setting(name, value, packageName); in insertSettingLocked()
233 updateMemoryUsagePerPackageLocked(packageName, oldValue, value); in insertSettingLocked()
254 updateMemoryUsagePerPackageLocked(oldState.packageName, oldState.value, null); in deleteSettingLocked()
275 private void updateMemoryUsagePerPackageLocked(String packageName, String oldValue, in updateMemoryUsagePerPackageLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingConfig.java19 int getPackagePriority(String packageName, int uid); in getPackagePriority() argument
21 void setPackagePriority(String packageName, int uid, int priority); in setPackagePriority() argument
23 boolean getPackagePeekable(String packageName, int uid); in getPackagePeekable() argument
25 void setPackagePeekable(String packageName, int uid, boolean peekable); in setPackagePeekable() argument
27 int getPackageVisibilityOverride(String packageName, int uid); in getPackageVisibilityOverride() argument
29 void setPackageVisibilityOverride(String packageName, int uid, int visibility); in setPackageVisibilityOverride() argument

12345678910>>...21