Home
last modified time | relevance | path

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

12345678910>>...27

/frameworks/base/core/java/android/content/pm/
DIShortcutService.aidl26 boolean setDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in setDynamicShortcuts() argument
29 ParceledListSlice getDynamicShortcuts(String packageName, int userId); in getDynamicShortcuts() argument
31 ParceledListSlice getManifestShortcuts(String packageName, int userId); in getManifestShortcuts() argument
33 boolean addDynamicShortcuts(String packageName, in ParceledListSlice shortcutInfoList, in addDynamicShortcuts() argument
36 void removeDynamicShortcuts(String packageName, in List shortcutIds, int userId); in removeDynamicShortcuts() argument
38 void removeAllDynamicShortcuts(String packageName, int userId); in removeAllDynamicShortcuts() argument
40 ParceledListSlice getPinnedShortcuts(String packageName, int userId); in getPinnedShortcuts() argument
42 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument
44 void disableShortcuts(String packageName, in List shortcutIds, CharSequence disabledMessage, in disableShortcuts() argument
47 void enableShortcuts(String packageName, in List shortcutIds, int userId); in enableShortcuts() argument
[all …]
DIPackageManager.aidl63 void checkPackageStartable(String packageName, int userId); in checkPackageStartable() argument
64 boolean isPackageAvailable(String packageName, int userId); in isPackageAvailable() argument
65 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument
66 int getPackageUid(String packageName, int flags, int userId); in getPackageUid() argument
67 int[] getPackageGids(String packageName, int flags, int userId); in getPackageGids() argument
80 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument
101 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
103 void revokeRuntimePermission(String packageName, String permissionName, int userId); in revokeRuntimePermission() argument
107 int getPermissionFlags(String permissionName, String packageName, int userId); in getPermissionFlags() argument
109 void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
[all …]
DLauncherApps.java92 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument
103 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument
113 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument
182 public void onShortcutsChanged(@NonNull String packageName, in onShortcutsChanged() argument
286 public ShortcutQuery setPackage(@Nullable String packageName) { in setPackage() argument
287 mPackage = packageName; in setPackage()
350 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument
353 activities = mService.getLauncherActivities(packageName, user); in getActivityList()
439 public boolean isPackageEnabled(String packageName, UserHandle user) { in isPackageEnabled() argument
441 return mService.isPackageEnabled(packageName, user); in isPackageEnabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java72 public void setPackageSelected(String packageName, boolean selected) { in setPackageSelected() argument
73 mSelectedPackages.put(packageName, selected); in setPackageSelected()
76 public boolean isPackageSelected(String packageName) { in isPackageSelected() argument
77 return mSelectedPackages.get(packageName); in isPackageSelected()
95 String packageName = entry.getKey(); in applyUserAppsStates() local
97 applyUserAppState(packageName, enabled, listener); in applyUserAppsStates()
101 public void applyUserAppState(String packageName, boolean enabled, in applyUserAppState() argument
107 ApplicationInfo info = mIPm.getApplicationInfo(packageName, in applyUserAppState()
111 mIPm.installExistingPackageAsUser(packageName, mUser.getIdentifier()); in applyUserAppState()
113 Log.d(TAG, "Installing " + packageName); in applyUserAppState()
[all …]
/frameworks/support/compat/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
78 public void notify(String packageName, int id, String tag, Notification notification) in notify() argument
80 checkPermission(getCallingUid(), packageName); in notify() local
83 … NotificationCompatSideChannelService.this.notify(packageName, id, tag, notification); in notify()
90 public void cancel(String packageName, int id, String tag) throws RemoteException { in cancel() argument
91 checkPermission(getCallingUid(), packageName); in cancel() local
94 NotificationCompatSideChannelService.this.cancel(packageName, id, tag); in cancel()
101 public void cancelAll(String packageName) { in cancelAll() argument
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCompatModePackages.java147 private int getPackageFlags(String packageName) { in getPackageFlags() argument
148 Integer flags = mPackages.get(packageName); in getPackageFlags()
152 public void handlePackageDataClearedLocked(String packageName) { in handlePackageDataClearedLocked() argument
154 removePackage(packageName); in handlePackageDataClearedLocked()
157 public void handlePackageUninstalledLocked(String packageName) { in handlePackageUninstalledLocked() argument
160 removePackage(packageName); in handlePackageUninstalledLocked()
163 private void removePackage(String packageName) { in removePackage() argument
164 if (mPackages.containsKey(packageName)) { in removePackage()
165 mPackages.remove(packageName); in removePackage()
170 public void handlePackageAddedLocked(String packageName, boolean updated) { in handlePackageAddedLocked() 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
68 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
84 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
89 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
94 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument
99 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument
104 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument
109 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser() argument
114 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() argument
146 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java61 public void killPackageDependents(String packageName) {} in killPackageDependents() argument
74 public void uninstallAndDisablePackageForAllUsers(Context context, String packageName) { in uninstallAndDisablePackageForAllUsers() argument
75 enablePackageForAllUsers(context, packageName, false); in uninstallAndDisablePackageForAllUsers()
79 public void enablePackageForAllUsers(Context context, String packageName, boolean enable) { in enablePackageForAllUsers() argument
80 enablePackageForUser(packageName, enable, 0); in enablePackageForAllUsers()
84 public void enablePackageForUser(String packageName, boolean enable, int userId) { in enablePackageForUser() argument
85 PackageInfo packageInfo = mPackages.get(packageName); in enablePackageForUser()
87 throw new IllegalArgumentException("There is no package called " + packageName); in enablePackageForUser()
99 PackageInfo ret = mPackages.get(info.packageName); in getPackageInfoForProvider()
100 if (ret == null) throw new NameNotFoundException(info.packageName); in getPackageInfoForProvider()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DProtectedPackages.java73 private synchronized boolean hasDeviceOwnerOrProfileOwner(int userId, String packageName) { in hasDeviceOwnerOrProfileOwner() argument
74 if (packageName == null) { in hasDeviceOwnerOrProfileOwner()
79 && (packageName.equals(mDeviceOwnerPackage))) { in hasDeviceOwnerOrProfileOwner()
84 if (packageName.equals(mProfileOwnerPackages.get(userId))) { in hasDeviceOwnerOrProfileOwner()
97 private synchronized boolean isProtectedPackage(String packageName) { in isProtectedPackage() argument
98 return packageName != null && packageName.equals(mDeviceProvisioningPackage); in isProtectedPackage()
107 public boolean isPackageStateProtected(@UserIdInt int userId, String packageName) { in isPackageStateProtected() argument
108 return hasDeviceOwnerOrProfileOwner(userId, packageName) in isPackageStateProtected()
109 || isProtectedPackage(packageName); in isPackageStateProtected()
116 public boolean isPackageDataProtected(@UserIdInt int userId, String packageName) { in isPackageDataProtected() argument
[all …]
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()
DShortcutService.java1177 @NonNull String packageName, @UserIdInt int userId) { in getPackageShortcutsLocked()
1178 return getUserShortcutsLocked(userId).getPackageShortcuts(packageName); in getPackageShortcutsLocked()
1185 @NonNull String packageName, @UserIdInt int userId) { in getPackageShortcutsForPublisherLocked()
1186 final ShortcutPackage ret = getUserShortcutsLocked(userId).getPackageShortcuts(packageName); in getPackageShortcutsForPublisherLocked()
1187 ret.getUser().onCalledByPublisher(packageName); in getPackageShortcutsForPublisherLocked()
1194 @NonNull String packageName, @UserIdInt int ownerUserId, in getLauncherShortcutsLocked()
1197 .getLauncherShortcuts(packageName, launcherUserId); in getLauncherShortcutsLocked()
1210 public void cleanupBitmapsForPackage(@UserIdInt int userId, String packageName) { in cleanupBitmapsForPackage() argument
1211 final File packagePath = new File(getUserBitmapFilePath(userId), packageName); in cleanupBitmapsForPackage()
1237 final String packageName = child.getName(); in cleanupDanglingBitmapDirectoriesLocked() local
[all …]
DShortcutUser.java72 final String packageName; field in ShortcutUser.PackageWithUser
74 private PackageWithUser(int userId, String packageName) { in PackageWithUser() argument
76 this.packageName = Preconditions.checkNotNull(packageName); in PackageWithUser()
79 public static PackageWithUser of(int userId, String packageName) { in of() argument
80 return new PackageWithUser(userId, packageName); in of()
89 return packageName.hashCode() ^ userId; in hashCode()
99 return userId == that.userId && packageName.equals(that.packageName); in equals()
104 return String.format("[Package: %d, %s]", userId, packageName); in toString()
165 public boolean hasPackage(@NonNull String packageName) { in hasPackage() argument
166 return mPackages.containsKey(packageName); in hasPackage()
[all …]
DCompilerStats.java56 private final String packageName; field in CompilerStats.PackageStats
67 public PackageStats(String packageName) { in PackageStats() argument
68 this.packageName = packageName; in PackageStats()
74 return packageName; in getPackageName()
128 public PackageStats getPackageStats(String packageName) { in getPackageStats() argument
130 return packageStats.get(packageName); in getPackageStats()
134 public void setPackageStats(String packageName, PackageStats stats) { in setPackageStats() argument
136 packageStats.put(packageName, stats); in setPackageStats()
140 public PackageStats createPackageStats(String packageName) { in createPackageStats() argument
142 PackageStats newStats = new PackageStats(packageName); in createPackageStats()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java71 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument
77 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
93 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
98 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
103 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids() argument
108 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument
113 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument
119 public int getPackageUidAsUser(String packageName, int flags, int userHandle) in getPackageUidAsUser() argument
126 public int getPackageUidAsUser(String packageName, int userHandle) in getPackageUidAsUser() argument
161 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsApplication.java129 public SmsApplicationData(String packageName, int uid) { in SmsApplicationData() argument
130 mPackageName = packageName; in SmsApplicationData()
235 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local
236 if (!receivers.containsKey(packageName)) { in getApplicationCollectionInternal()
237 final SmsApplicationData smsApplicationData = new SmsApplicationData(packageName, in getApplicationCollectionInternal()
240 receivers.put(packageName, smsApplicationData); in getApplicationCollectionInternal()
257 final String packageName = activityInfo.packageName; in getApplicationCollectionInternal() local
258 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
277 final String packageName = serviceInfo.packageName; in getApplicationCollectionInternal() local
278 final SmsApplicationData smsApplicationData = receivers.get(packageName); in getApplicationCollectionInternal()
[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/core/java/android/app/
DWallpaperInfo.java151 "Unable to create context for: " + si.packageName); in WallpaperInfo()
180 return mService.serviceInfo.packageName; in getPackageName()
203 return new ComponentName(mService.serviceInfo.packageName, in getComponent()
236 return pm.getDrawable(mService.serviceInfo.packageName, in loadThumbnail()
246 String packageName = mService.resolvePackageName; in loadAuthor() local
248 if (packageName == null) { in loadAuthor()
249 packageName = mService.serviceInfo.packageName; in loadAuthor()
252 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor()
259 String packageName = mService.resolvePackageName; in loadDescription() local
261 if (packageName == null) { in loadDescription()
[all …]
DApplicationPackageManager.java130 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument
132 return getPackageInfoAsUser(packageName, flags, mContext.getUserId()); in getPackageInfo()
136 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
139 PackageInfo pi = mPM.getPackageInfo(packageName, flags, userId); in getPackageInfoAsUser()
147 throw new NameNotFoundException(packageName); in getPackageInfoAsUser()
169 public Intent getLaunchIntentForPackage(String packageName) { in getLaunchIntentForPackage() argument
175 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
183 intentToResolve.setPackage(packageName); in getLaunchIntentForPackage()
191 intent.setClassName(ris.get(0).activityInfo.packageName, in getLaunchIntentForPackage()
197 public Intent getLeanbackLaunchIntentForPackage(String packageName) { in getLeanbackLaunchIntentForPackage() argument
[all …]
DAppOpsManager.java1099 public PackageOps(String packageName, int uid, List<OpEntry> entries) { in PackageOps() argument
1100 mPackageName = packageName; in PackageOps()
1250 public void onOpChanged(String op, String packageName); in onOpChanged() argument
1259 public void onOpChanged(String op, String packageName) { } in onOpChanged() argument
1260 public void onOpChanged(int op, String packageName) { } in onOpChanged() argument
1290 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, int[] ops) { in getOpsForPackage() argument
1292 return mService.getOpsForPackage(uid, packageName, ops); in getOpsForPackage()
1357 public void setMode(int code, int uid, String packageName, int mode) { in setMode() argument
1359 mService.setMode(code, uid, packageName, mode); in setMode()
1419 public void startWatchingMode(String op, String packageName, in startWatchingMode() argument
[all …]
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java50 public static boolean setDefaultDialerApplication(Context context, String packageName) { in setDefaultDialerApplication() argument
51 return setDefaultDialerApplication(context, packageName, ActivityManager.getCurrentUser()); in setDefaultDialerApplication()
64 public static boolean setDefaultDialerApplication(Context context, String packageName, in setDefaultDialerApplication() argument
70 if (packageName != null && oldPackageName != null && packageName.equals(oldPackageName)) { in setDefaultDialerApplication()
78 if (packageNames.contains(packageName)) { in setDefaultDialerApplication()
81 Settings.Secure.DIALER_DEFAULT_APPLICATION, packageName, user); in setDefaultDialerApplication() local
166 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
167 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
192 public static boolean isDefaultOrSystemDialer(Context context, String packageName) { in isDefaultOrSystemDialer() argument
193 if (TextUtils.isEmpty(packageName)) { in isDefaultOrSystemDialer()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateServiceImpl.java53 void packageStateChanged(String packageName, int changedState, int userId) { in packageStateChanged() argument
57 updateFallbackStateOnPackageChange(packageName, changedState); in packageStateChanged()
58 mWebViewUpdater.packageStateChanged(packageName, changedState); in packageStateChanged()
93 mSystemInterface.enablePackageForUser(fallbackProvider.packageName, in handleNewUser()
146 if (provider.packageName.equals(changedPackage)) { in updateFallbackStateOnPackageChange()
178 fallbackProvider.packageName); in updateFallbackState()
185 fallbackProvider.packageName, true); in updateFallbackState()
201 boolean isFallbackPackage(String packageName) { in isFallbackPackage() argument
202 if (packageName == null || !mSystemInterface.isFallbackLogicEnabled()) return false; in isFallbackPackage()
207 && packageName.equals(fallbackProvider.packageName)); in isFallbackPackage()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java197 String packageName, @UserIdInt int userId) { in injectGetActivitiesWithMetadata() argument
198 … return BaseShortcutManagerTest.this.injectGetActivitiesWithMetadata(packageName, userId); in injectGetActivitiesWithMetadata()
272 int injectGetPackageUid(String packageName, int userId) { in injectGetPackageUid() argument
273 return getInjectedPackageInfo(packageName, userId, false).applicationInfo.uid; in injectGetPackageUid()
307 PackageInfo injectPackageInfoWithUninstalled(String packageName, @UserIdInt int userId, in injectPackageInfoWithUninstalled() argument
309 return getInjectedPackageInfo(packageName, userId, getSignatures); in injectPackageInfoWithUninstalled()
314 String packageName, @UserIdInt int userId) { in injectApplicationInfoWithUninstalled() argument
316 packageName, userId, /* getSignatures= */ false); in injectApplicationInfoWithUninstalled()
353 List<ResolveInfo> injectGetMainActivities(@NonNull String packageName, int userId) { in injectGetMainActivities() argument
355 packageName, userId); in injectGetMainActivities()
[all …]
/frameworks/base/core/java/android/os/
DEnvironment.java118 public File[] buildExternalStorageAppDataDirs(String packageName) { in buildExternalStorageAppDataDirs() argument
119 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_DATA, packageName); in buildExternalStorageAppDataDirs()
122 public File[] buildExternalStorageAppMediaDirs(String packageName) { in buildExternalStorageAppMediaDirs() argument
123 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_MEDIA, packageName); in buildExternalStorageAppMediaDirs()
126 public File[] buildExternalStorageAppObbDirs(String packageName) { in buildExternalStorageAppObbDirs() argument
127 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_OBB, packageName); in buildExternalStorageAppObbDirs()
130 public File[] buildExternalStorageAppFilesDirs(String packageName) { in buildExternalStorageAppFilesDirs() argument
131 return buildPaths(getExternalDirs(), DIR_ANDROID, DIR_DATA, packageName, DIR_FILES); in buildExternalStorageAppFilesDirs()
134 public File[] buildExternalStorageAppCacheDirs(String packageName) { in buildExternalStorageAppCacheDirs() argument
135 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/services/usage/java/com/android/server/usage/
DUsageStatsService.java338 String packageName = pi.packageName; in initializeDefaultsForSystemApps() local
340 mAppIdleHistory.reportUsageLocked(packageName, userId, elapsedRealtime); in initializeDefaultsForSystemApps()
345 void clearAppIdleForPackage(String packageName, int userId) { in clearAppIdleForPackage() argument
347 mAppIdleHistory.clearUsageLocked(packageName, userId); in clearAppIdleForPackage()
489 final String packageName = pi.packageName; in checkIdleStates() local
490 final boolean isIdle = isAppIdleFiltered(packageName, in checkIdleStates()
494 userId, isIdle ? 1 : 0, packageName)); in checkIdleStates()
497 mAppIdleHistory.setIdle(packageName, userId, elapsedRealtime); in checkIdleStates()
525 private void notifyBatteryStats(String packageName, int userId, boolean idle) { in notifyBatteryStats() argument
527 final int uid = mPackageManager.getPackageUidAsUser(packageName, in notifyBatteryStats()
[all …]

12345678910>>...27