/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
ClearDataPreference.java | 35 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName); 57 private static final String ARG_PACKAGE_NAME = "packageName"; 59 private static void prepareArgs(@NonNull Bundle args, String packageName) { 60 args.putString(ARG_PACKAGE_NAME, packageName);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ApplicationUtils.java | 57 final String packageName = context.getPackageName(); 58 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); 75 final String packageName = context.getPackageName(); 76 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
AppWorkaroundsTests.java | 39 packageNameOfAppBeforeJellyBean = ai.packageName; 41 packageNameOfAppAfterJellyBean = ai.packageName; 56 ei.packageName = packageNameOfAppBeforeJellyBean; 58 ei.packageName = packageNameOfAppAfterJellyBean;
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
CarPackageManager.java | 96 * @param packageName Package name of the client. If wrong package name is passed, exception 107 public void setAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, 116 mService.setAppBlockingPolicy(packageName, policy, flags); 126 * @param packageName 130 public boolean isActivityAllowedWhileDriving(String packageName, String className) 133 return mService.isActivityAllowedWhileDriving(packageName, className); 144 * @param packageName 148 public boolean isServiceAllowedWhileDriving(String packageName, String className) 151 return mService.isServiceAllowedWhileDriving(packageName, className);
|
/packages/services/Car/service/src/com/android/car/pm/ |
CarAppMetadataReader.java | 50 public static CarAppMetadataInfo parseMetadata(Context context, String packageName) { 54 metadataId = getMetadataId(context, packageName); 59 resources = pm.getResourcesForApplication(packageName); 61 Log.w(CarLog.TAG_PACKAGE, "Cannot read mta data, package:" + packageName, e); 70 Log.w(CarLog.TAG_PACKAGE, "Resource not found [" + packageName + "]"); 87 " for pavkage:" + packageName); 111 Log.w(CarLog.TAG_PACKAGE, "Resource not parsable [" + packageName + "]"); 125 private static int getMetadataId(Context context, String packageName) 129 appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA /*flags*/);
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
CommonLauncherHelper.java | 121 * @param packageName 125 String packageName) { 126 return launchApp(launcherStrategy, app, packageName, MAX_SCROLL_ATTEMPTS); 134 * @param packageName 139 String packageName, int maxScrollAttempts) { 142 if (isAppOpen(packageName)) { 176 if (packageName != null) { 178 "No UI element with package name %s detected.", packageName)); 180 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
AppIdleHistory.java | 177 public void reportUsageLocked(String packageName, int userId, long elapsedRealtime) { 179 PackageHistory packageHistory = getPackageHistoryLocked(userHistory, packageName, 190 public void setIdle(String packageName, int userId, long elapsedRealtime) { 192 PackageHistory packageHistory = getPackageHistoryLocked(userHistory, packageName, 236 String packageName, long elapsedRealtime) { 237 PackageHistory packageHistory = userHistory.get(packageName); 242 userHistory.put(packageName, packageHistory); 251 public boolean isIdleLocked(String packageName, int userId, long elapsedRealtime) { 254 getPackageHistoryLocked(userHistory, packageName, elapsedRealtime); 266 public void setIdleLocked(String packageName, int userId, boolean idle, long elapsedRealtime) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
AppOpsState.java | 294 mLabel = mInfo.packageName; 298 mLabel = label != null ? label.toString() : mInfo.packageName; 505 final String packageName, ApplicationInfo appInfo) { 506 AppEntry appEntry = appEntries.get(packageName); 510 appInfo = mPm.getApplicationInfo(packageName, 514 Log.w(TAG, "Unable to find info for package " + packageName); 520 appEntries.put(packageName, appEntry); 525 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName) { 526 return buildState(tpl, uid, packageName, RECENCY_COMPARATOR); 529 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName, [all...] |
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/ |
AppSmokeTest.java | 77 public String packageName; 80 private LaunchParameter(String appName, String packageName, String activityName) { 82 this.packageName = packageName; 97 return String.format("%s [activity: %s/%s]", appName, packageName, activityName); 115 if (processName.startsWith(mAppInfo.packageName)) { 132 if (processName.startsWith(mAppInfo.packageName)) { 143 if (pkg.equals(mAppInfo.packageName)) { 197 .getApplicationInfo().packageName, info.getName())); 221 mAppInfo.packageName, UserHandle.USER_ALL) [all...] |
/packages/apps/MusicFX/src/com/android/musicfx/ |
ControlPanelEffect.java | 153 * @param packageName 157 public static void initEffectsPreferences(final Context context, final String packageName, 159 final SharedPreferences prefs = context.getSharedPreferences(packageName, 350 * @param packageName 356 public static void setParameterBoolean(final Context context, final String packageName, 359 final SharedPreferences prefs = context.getSharedPreferences(packageName, 377 setParameterInt(context, packageName, 386 setParameterInt(context, packageName, 394 packageName, audioSession, Key.eq_band_level); 398 setParameterInt(context, packageName, [all...] |
/external/jacoco/org.jacoco.report/src/org/jacoco/report/ |
ISourceFileLocator.java | 26 * @param packageName 34 public Reader getSourceFile(String packageName, String fileName)
|
MultiSourceFileLocator.java | 53 public Reader getSourceFile(final String packageName, final String fileName) 56 final Reader reader = d.getSourceFile(packageName, fileName);
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/csv/ |
CSVGroupHandler.java | 44 final String packageName = p.getName(); 46 writer.writeRow(name, packageName, c);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowActivityManager.java | 37 public void killBackgroundProcesses(String packageName) { 38 backgroundPackage = packageName;
|
/frameworks/base/core/java/android/content/pm/ |
PackageStats.java | 29 public String packageName; 86 sb.append(packageName); 124 packageName = pkgName; 130 this.packageName = pkgName; 135 packageName = source.readString(); 148 packageName = pStats.packageName; 165 dest.writeString(packageName);
|
/frameworks/base/core/java/com/android/server/ |
WidgetBackupProvider.java | 30 public byte[] getWidgetState(String packageName, int userId); 32 public void restoreWidgetState(String packageName, byte[] restoredState, int userId);
|
/frameworks/base/media/java/android/media/projection/ |
IMediaProjectionManager.aidl | 27 boolean hasProjectionPermission(int uid, String packageName); 28 IMediaProjection createProjection(int uid, String packageName, int type,
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
PackageReceiver.java | 40 final String packageName = data.getSchemeSpecificPart(); 42 packageName, null);
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
AppIdleController.java | 53 String packageName = jobStatus.getSourcePackageName(); 54 final boolean appIdle = !mAppIdleParoleOn && mUsageStatsInternal.isAppIdle(packageName, 57 Slog.d(LOG_TAG, "Setting idle state of " + packageName + " to " + appIdle); 115 String packageName = jobStatus.getSourcePackageName(); 116 final boolean appIdle = !mAppIdleParoleOn && mUsageStatsInternal.isAppIdle(packageName, 120 + packageName + " to " + appIdle); 176 public void onAppIdleStateChanged(String packageName, int userId, boolean idle) { 182 PackageUpdateFunc update = new PackageUpdateFunc(userId, packageName, idle);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
EphemeralApplicationRegistry.java | 97 public byte[] getEphemeralApplicationCookieLPw(String packageName, int userId) { 103 File cookieFile = peekEphemeralCookieFile(packageName, userId); 114 public boolean setEphemeralApplicationCookieLPw(String packageName, 121 PackageParser.Package pkg = mService.mPackages.get(packageName); 130 File appDir = getEphemeralApplicationDir(pkg.packageName, userId); 149 public Bitmap getEphemeralApplicationIconLPw(String packageName, int userId) { 155 File iconFile = new File(getEphemeralApplicationDir(packageName, userId), 186 if (mService.mPackages.get(pkg.packageName) == null || !ps.getInstalled(userId)) { 203 .getPackageName().equals(pkg.packageName)) { 212 File ephemeralAppDir = getEphemeralApplicationDir(pkg.packageName, userId) [all...] |
PreferredIntentResolver.java | 31 protected boolean isPackageForFilter(String packageName, PreferredActivity filter) { 32 return packageName.equals(filter.mPref.mComponent.getPackageName());
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
PartnerTest.java | 111 private ResolveInfo createResolveInfo(String packageName, boolean isSystem) { 113 info.resolvePackageName = packageName; 117 appInfo.packageName = packageName; 119 activityInfo.packageName = packageName; 120 activityInfo.name = packageName; 179 if (app != null && "com.android.setupwizardlib.test".equals(app.packageName)) {
|
/frameworks/support/compat/api23/android/support/v4/app/ |
AppOpsManagerCompat23.java | 30 public static int noteOp(Context context, String op, int uid, String packageName) { 32 return appOpsManager.noteOp(op, uid, packageName);
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
PendingAddShortcutInfo.java | 35 componentName = new ComponentName(activityInfo.packageName, activityInfo.name); 42 activityInfo.packageName, activityInfo.name);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
WearPackageIconProvider.java | 122 public static Uri getUriForPackage(final String packageName) { 123 return Uri.parse("content://" + AUTHORITY + "/icons/" + packageName + ".icon"); 131 String packageName = pathSegments.get(pathSegments.size() - 1); 133 if (packageName.endsWith(".icon")) { 134 packageName = packageName.substring(0, packageName.lastIndexOf(".")); 136 return packageName;
|