/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 167 final String packageName = WearPackageUtil.getSanitizedPackageName(packageUri); in onStartCommand() local 168 if (packageName == null) { in onStartCommand() 183 WearPackageArgs.setPackageName(intentBundle, packageName); in onStartCommand() 198 final String packageName = WearPackageArgs.getPackageName(argsBundle); in installPackage() local 208 Log.d(TAG, "Installing package: " + packageName + ", assetUri: " + assetUri + in installPackage() 222 existingPkgInfo = pm.getPackageInfo(packageName, in installPackage() 233 Log.d(TAG, "Replacing package:" + packageName); in installPackage() 239 parcelFd, packageName, compressionAlg); in installPackage() 241 Log.e(TAG, "Could not create a temp file from FD for " + packageName); in installPackage() 246 Log.e(TAG, "Could not parse apk information for " + packageName); in installPackage() [all …]
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | DynamicIndexableContentMonitor.java | 73 String packageName = (String) msg.obj; 74 handlePackageAvailable(packageName); 78 String packageName = (String) msg.obj; 79 handlePackageUnavailable(packageName); 92 private static Intent getAccessibilityServiceIntent(String packageName) { in getAccessibilityServiceIntent() argument 94 intent.setPackage(packageName); in getAccessibilityServiceIntent() 98 private static Intent getIMEServiceIntent(String packageName) { in getIMEServiceIntent() argument 100 intent.setPackage(packageName); in getIMEServiceIntent() 132 mAccessibilityServices.add(resolveInfo.serviceInfo.packageName); in register() 149 mImeServices.add(serviceInfo.packageName); in register() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | InstallPackageTask.java | 73 public void addInstallIfNecessary(String packageName, String packageLocation) { in addInstallIfNecessary() argument 74 if (!TextUtils.isEmpty(packageName)) { in addInstallIfNecessary() 75 mPackagesToInstall.add(new InstallInfo(packageName, packageLocation)); in addInstallIfNecessary() 100 } else if (packageContentIsCorrect(info.packageName, info.location)) { in run() 119 private boolean packageContentIsCorrect(String packageName, String packageLocation) { in packageContentIsCorrect() argument 126 if (!pi.packageName.equals(packageName)) { in packageContentIsCorrect() 127 ProvisionLogger.loge("Package name in apk (" + pi.packageName in packageContentIsCorrect() 129 + packageName + ")."); in packageContentIsCorrect() 154 public void packageInstalled(String packageName, int returnCode) { in packageInstalled() argument 155 if (packageName != null && !packageName.equals(mInstallInfo.packageName)) { in packageInstalled() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 91 public void setAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, int flags) { in setAppBlockingPolicy() argument 93 Log.i(CarLog.TAG_PACKAGE, "policy setting from binder call, client:" + packageName); in setAppBlockingPolicy() 95 doSetAppBlockingPolicy(packageName, policy, flags, true /*setNow*/); in setAppBlockingPolicy() 98 private void doSetAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, int flags, in doSetAppBlockingPolicy() argument 105 CarServiceUtils.assertPakcageName(mContext, packageName); in doSetAppBlockingPolicy() 114 mHandler.requestUpdatingPolicy(packageName, policy, flags); in doSetAppBlockingPolicy() 129 public boolean isActivityAllowedWhileDriving(String packageName, String className) { in isActivityAllowedWhileDriving() argument 130 assertPackageAndClassName(packageName, className); in isActivityAllowedWhileDriving() 136 AppBlockingPackageInfo info = searchFromBlacklistsLocked(packageName); in isActivityAllowedWhileDriving() 140 return isActivityInWhitelistsLocked(packageName, className); in isActivityAllowedWhileDriving() [all …]
|
D | CarAppMetadataReader.java | 50 public static CarAppMetadataInfo parseMetadata(Context context, String packageName) { in parseMetadata() argument 54 metadataId = getMetadataId(context, packageName); in parseMetadata() 59 resources = pm.getResourcesForApplication(packageName); in parseMetadata() 61 Log.w(CarLog.TAG_PACKAGE, "Cannot read mta data, package:" + packageName, e); in parseMetadata() 70 Log.w(CarLog.TAG_PACKAGE, "Resource not found [" + packageName + "]"); in parseMetadata() 87 " for pavkage:" + packageName); in parseMetadata() 111 Log.w(CarLog.TAG_PACKAGE, "Resource not parsable [" + packageName + "]"); in parseMetadata() 125 private static int getMetadataId(Context context, String packageName) in getMetadataId() argument 129 appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA /*flags*/); in getMetadataId()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 292 String packageName = intent.getData().getSchemeSpecificPart(); in onPackageChanged() local 295 findPreference(getKeyForPackage(packageName)); in onPackageChanged() 309 public void onDisableUiForPackage(String packageName) { in onDisableUiForPackage() argument 311 getKeyForPackage(packageName)); in onDisableUiForPackage() 360 String packageName = app.packageName; in populateApps() local 361 if (packageName == null) continue; in populateApps() 362 final boolean isSettingsApp = packageName.equals(context.getPackageName()); in populateApps() 364 final boolean hasSettings = resolveInfoListHasPackage(receivers, packageName); in populateApps() 368 mHelper.setPackageSelected(packageName, true); in populateApps() 373 pi = ipm.getPackageInfo(packageName, in populateApps() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockPackageManager.java | 49 public void addPackage(int packageUid, String packageName) { in addPackage() argument 50 mForward.put(packageUid, packageName); in addPackage() 51 mReverse.put(packageName, packageUid); in addPackage() 55 final String packageName = mForward.remove(packageUid); in removePackage() local 56 if (packageName != null) { in removePackage() 57 mReverse.remove(packageName); in removePackage() 68 final String packageName = mForward.get(uid); in getPackagesForUid() local 69 if (packageName != null) { in getPackagesForUid() 70 return new String[] {packageName}; in getPackagesForUid() 72 return new String[] { mPackages.get(0).packageName }; in getPackagesForUid() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 325 String packageName = intent.getData().getSchemeSpecificPart(); in onPackageChanged() local 328 findPreference(getKeyForPackage(packageName)); in onPackageChanged() 342 public void onDisableUiForPackage(String packageName) { in onDisableUiForPackage() argument 344 getKeyForPackage(packageName)); in onDisableUiForPackage() 393 String packageName = app.packageName; in populateApps() local 394 if (packageName == null) continue; in populateApps() 395 final boolean isSettingsApp = packageName.equals(context.getPackageName()); in populateApps() 398 final boolean hasSettings = resolveInfoListHasPackage(receivers, packageName); in populateApps() 401 mHelper.setPackageSelected(packageName, true); in populateApps() 406 pi = mIPm.getPackageInfo(packageName, in populateApps() [all …]
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | InjectedSetting.java | 39 public final String packageName; field in InjectedSetting 68 private InjectedSetting(String packageName, String className, in InjectedSetting() argument 70 this.packageName = Preconditions.checkNotNull(packageName, "packageName"); in InjectedSetting() 81 public static InjectedSetting newInstance(String packageName, String className, in newInstance() argument 83 if (packageName == null || className == null || in newInstance() 87 + packageName + ", class=" + className in newInstance() 92 return new InjectedSetting(packageName, className, title, iconId, userHandle, in newInstance() 99 "mPackageName='" + packageName + '\'' + in toString() 113 intent.setClassName(packageName, className); in getServiceIntent() 124 return packageName.equals(that.packageName) && className.equals(that.className) in equals() [all …]
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
D | AppBlockingPackageInfo.java | 37 public final String packageName; field in AppBlockingPackageInfo 84 public AppBlockingPackageInfo(String packageName, int minRevisionCode, int maxRevisionCode, in AppBlockingPackageInfo() argument 87 if (packageName == null) { in AppBlockingPackageInfo() 90 this.packageName = packageName; in AppBlockingPackageInfo() 100 packageName = in.readString(); in AppBlockingPackageInfo() 116 dest.writeString(packageName); in writeToParcel() 169 result = prime * result + ((packageName == null) ? 0 : packageName.hashCode()); in hashCode() 198 if (packageName == null) { in equals() 199 if (other.packageName != null) in equals() 201 } else if (!packageName.equals(other.packageName)) in equals() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppVpnInfo.java | 15 public final String packageName; field in AppVpnInfo 17 public AppVpnInfo(int userId, @NonNull String packageName) { in AppVpnInfo() argument 19 this.packageName = Preconditions.checkNotNull(packageName); in AppVpnInfo() 26 int result = packageName.compareTo(that.packageName); in compareTo() 37 return userId == that.userId && Objects.equals(packageName, that.packageName); in equals() 44 return Objects.hash(packageName, userId); in hashCode()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactDirectoryManager.java | 60 String packageName; field in ContactDirectoryManager.DirectoryInfo 130 String packageName = cursor.getString(1); in areTypeResourceIdsValid() local 132 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid() 149 private String getResourceNameById(String packageName, int resourceId) { in getResourceNameById() argument 151 Resources resources = mPackageManager.getResourcesForApplication(packageName); in getResourceNameById() 212 Log.d(TAG, "package=" + packageInfo.packageName); in getDirectoryProviderPackages() 223 ret.add(provider.packageName); in getDirectoryProviderPackages() 254 for (String packageName : getDirectoryProviderPackages(mPackageManager)) { in scanAllPackages() 255 if (DEBUG) Log.d(TAG, "package=" + packageName); in scanAllPackages() 259 if (mContext.getPackageName().equals(packageName)) { in scanAllPackages() [all …]
|
D | VoicemailPermissions.java | 92 public boolean packageHasOwnVoicemailAccess(String packageName) { in packageHasOwnVoicemailAccess() argument 93 return packageHasPermission(packageName, in packageHasOwnVoicemailAccess() 98 public boolean packageHasReadAccess(String packageName) { in packageHasReadAccess() argument 99 return packageHasPermission(packageName, android.Manifest.permission.READ_VOICEMAIL); in packageHasReadAccess() 103 public boolean packageHasWriteAccess(String packageName) { in packageHasWriteAccess() argument 104 return packageHasPermission(packageName, android.Manifest.permission.WRITE_VOICEMAIL); in packageHasWriteAccess() 108 private boolean packageHasPermission(String packageName, String permission) { in packageHasPermission() argument 109 return ContactsPermissions.hasPackagePermission(mContext, permission, packageName); in packageHasPermission()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultBrowserPreference.java | 72 final CharSequence packageName = (CharSequence) newValue; in persistString() local 73 if (TextUtils.isEmpty(packageName)) { in persistString() 77 packageName.toString(), mUserId); in persistString() 95 String packageName = pm.getDefaultBrowserPackageNameAsUser(mUserId); in updateDefaultBrowserPreference() local 96 if (!TextUtils.isEmpty(packageName)) { in updateDefaultBrowserPreference() 99 intent.setPackage(packageName); in updateDefaultBrowserPreference() 106 setValue(packageName); in updateDefaultBrowserPreference() 133 if (info.activityInfo == null || result.contains(info.activityInfo.packageName) in resolveBrowserApps() 138 result.add(info.activityInfo.packageName); in resolveBrowserApps() 153 public void onPackageAdded(String packageName, int uid) { [all …]
|
D | AppOpsState.java | 294 mLabel = mInfo.packageName; in loadLabel() 298 mLabel = label != null ? label.toString() : mInfo.packageName; in loadLabel() 505 final String packageName, ApplicationInfo appInfo) { in getAppEntry() argument 506 AppEntry appEntry = appEntries.get(packageName); in getAppEntry() 510 appInfo = mPm.getApplicationInfo(packageName, in getAppEntry() 514 Log.w(TAG, "Unable to find info for package " + packageName); in getAppEntry() 520 appEntries.put(packageName, appEntry); in getAppEntry() 525 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName) { in buildState() argument 526 return buildState(tpl, uid, packageName, RECENCY_COMPARATOR); in buildState() 529 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName, in buildState() argument [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatV16.java | 59 public List<LauncherActivityInfoCompat> getActivityList(String packageName, in getActivityList() argument 63 mainIntent.setPackage(packageName); in getActivityList() 92 String packageName = component.getPackageName(); in showAppDetailsForProfile() local 94 Uri.fromParts("package", packageName, null)); in showAppDetailsForProfile() 116 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument 117 return PackageManagerHelper.isAppEnabled(mPm, packageName); in isPackageEnabledForProfile() 129 public boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user) { in isPackageSuspendedForProfile() argument 161 final String packageName = intent.getData().getSchemeSpecificPart(); in onReceive() local 164 if (packageName == null || packageName.length() == 0) { in onReceive() 170 callback.onPackageChanged(packageName, user); in onReceive() [all …]
|
D | LauncherAppsCompatVL.java | 49 public List<LauncherActivityInfoCompat> getActivityList(String packageName, in getActivityList() argument 51 List<LauncherActivityInfo> list = mLauncherApps.getActivityList(packageName, in getActivityList() 101 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument 102 return mLauncherApps.isPackageEnabled(packageName, user.getUser()); in isPackageEnabledForProfile() 109 public boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user) { in isPackageSuspendedForProfile() argument 120 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument 121 mCallback.onPackageRemoved(packageName, UserHandleCompat.fromUser(user)); in onPackageRemoved() 124 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument 125 mCallback.onPackageAdded(packageName, UserHandleCompat.fromUser(user)); in onPackageAdded() 128 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() argument [all …]
|
D | PackageInstallerCompat.java | 55 public final String packageName; field in PackageInstallerCompat.PackageInstallInfo 60 public PackageInstallInfo(String packageName) { in PackageInstallInfo() argument 61 this.packageName = packageName; in PackageInstallInfo() 64 public PackageInstallInfo(String packageName, int state, int progress) { in PackageInstallInfo() argument 65 this.packageName = packageName; in PackageInstallInfo()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 157 public static void initEffectsPreferences(final Context context, final String packageName, in initEffectsPreferences() argument 159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() 356 public static void setParameterBoolean(final Context context, final String packageName, in setParameterBoolean() argument 359 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean() 377 setParameterInt(context, packageName, in setParameterBoolean() 386 setParameterInt(context, packageName, in setParameterBoolean() 394 packageName, audioSession, Key.eq_band_level); in setParameterBoolean() 398 setParameterInt(context, packageName, in setParameterBoolean() 527 public static Boolean getParameterBoolean(final Context context, final String packageName, in getParameterBoolean() argument 529 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean() [all …]
|
D | ControlPanelReceiver.java | 43 final String packageName = intent.getStringExtra(AudioEffect.EXTRA_PACKAGE_NAME); in onReceive() local 48 Log.v(TAG, "Package name: " + packageName); in onReceive() 52 if (packageName == null) { in onReceive() 67 final boolean isGlobalEnabled = context.getSharedPreferences(packageName, in onReceive() 72 ControlPanelEffect.openSession(context, packageName, audioSession); in onReceive() 78 ControlPanelEffect.closeSession(context, packageName, audioSession); in onReceive() 87 ControlPanelEffect.setParameterBoolean(context, packageName, audioSession, in onReceive() 97 final Boolean value = ControlPanelEffect.getParameterBoolean(context, packageName, in onReceive()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PackageManagerHelper.java | 35 public static boolean isAppOnSdcard(PackageManager pm, String packageName) { in isAppOnSdcard() argument 36 return isAppEnabled(pm, packageName, PackageManager.GET_UNINSTALLED_PACKAGES); in isAppOnSdcard() 39 public static boolean isAppEnabled(PackageManager pm, String packageName) { in isAppEnabled() argument 40 return isAppEnabled(pm, packageName, 0); in isAppEnabled() 43 public static boolean isAppEnabled(PackageManager pm, String packageName, int flags) { in isAppEnabled() argument 45 ApplicationInfo info = pm.getApplicationInfo(packageName, flags); in isAppEnabled() 52 public static boolean isAppSuspended(PackageManager pm, String packageName) { in isAppSuspended() argument 54 ApplicationInfo info = pm.getApplicationInfo(packageName, 0); in isAppSuspended()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | TargetPackageInfoGetterTask.java | 32 public static PackageInfo getCachedPackageInfo(final String packageName) { in getCachedPackageInfo() argument 33 if (null == packageName) return null; in getCachedPackageInfo() 34 return sCache.get(packageName); in getCachedPackageInfo() 37 public static void removeCachedPackageInfo(final String packageName) { in removeCachedPackageInfo() argument 38 sCache.remove(packageName); in removeCachedPackageInfo() 51 protected PackageInfo doInBackground(final String... packageName) { in doInBackground() argument 55 final PackageInfo packageInfo = pm.getPackageInfo(packageName[0], 0 /* flags */); in doInBackground() 56 sCache.put(packageName[0], packageInfo); in doInBackground()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/service/ |
D | RuntimePermissionPresenterServiceImpl.java | 40 public List<RuntimePermissionPresentationInfo> onGetAppPermissions(String packageName) { in onGetAppPermissions() argument 43 packageInfo = getPackageManager().getPackageInfo(packageName, in onGetAppPermissions() 46 Log.e(LOG_TAG, "Error getting package:" + packageName, e); in onGetAppPermissions() 54 if (Utils.shouldShowPermission(group, packageName)) { in onGetAppPermissions() 78 final String packageName = appInfo.packageName; in onGetAppsUsingPermissions() local 82 packageName, PackageManager.GET_PERMISSIONS); in onGetAppsUsingPermissions() 84 Log.e(LOG_TAG, "Error getting package info for:" + packageName, e); in onGetAppsUsingPermissions() 94 if (Utils.shouldShowPermission(group, packageName)) { in onGetAppsUsingPermissions()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AllAppsList.java | 98 public void addPackage(Context context, String packageName, UserHandleCompat user) { in addPackage() argument 100 final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, in addPackage() 111 public void removePackage(String packageName, UserHandleCompat user) { in removePackage() argument 116 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage() 151 public void updatePackage(Context context, String packageName, UserHandleCompat user) { in updatePackage() argument 153 final List<LauncherActivityInfoCompat> matches = launcherApps.getActivityList(packageName, in updatePackage() 162 && packageName.equals(component.getPackageName())) { in updatePackage() 189 && packageName.equals(component.getPackageName())) { in updatePackage() 216 static boolean packageHasActivities(Context context, String packageName, in packageHasActivities() argument 219 return launcherApps.getActivityList(packageName, user).size() > 0; in packageHasActivities() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SmsDefaultDialog.java | 54 String packageName = intent.getStringExtra(Intents.EXTRA_PACKAGE_NAME); in onCreate() local 57 if (!buildDialog(packageName)) { in onCreate() 75 String packageName = adapter.getPackageName(which); in onClick() local 76 if (!TextUtils.isEmpty(packageName)) { in onClick() 77 SmsApplication.setDefaultApplication(packageName, this); in onClick() 86 private boolean buildDialog(String packageName) { in buildDialog() argument 94 mNewSmsApplicationData = SmsApplication.getSmsApplicationData(packageName, this); in buildDialog() 146 public Item(String label, Drawable icon, String packageName) { in Item() argument 149 this.packgeName = packageName; in Item() 233 String packageName = app.mPackageName; in getItems() local [all …]
|