/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
BackupRequest.java | 26 public BackupRequest(String pkgName) { 27 packageName = pkgName;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
WifiPermissionsUtil.java | 109 String pkgName = context.getOpPackageName(); 110 ConnectivityManager.enforceTetherChangePermission(context, pkgName); 116 * @param pkgName PackageName of the application requesting access 119 public void enforceLocationPermission(String pkgName, int uid) { 120 if (!checkCallersLocationPermission(pkgName, uid)) { 130 * @param pkgName PackageName of the application requesting access 133 public boolean checkCallersLocationPermission(String pkgName, int uid) { 138 && checkAppOpAllowed(AppOpsManager.OP_COARSE_LOCATION, pkgName, uid)) { 147 * @param pkgName package name of the application requesting access 152 public boolean canAccessScanResults(String pkgName, int uid [all...] |
/packages/services/Telephony/src/com/android/phone/ |
LocationAccessPolicy.java | 46 * @param pkgName Package name of the application requesting access 51 static boolean canAccessCellLocation(@NonNull Context context, @NonNull String pkgName, 53 context.getSystemService(AppOpsManager.class).checkPackage(uid, pkgName); 64 .noteOp(opCode, uid, pkgName) != AppOpsManager.MODE_ALLOWED) { 68 && !isLegacyForeground(context, pkgName)) { 82 private static boolean isLegacyForeground(@NonNull Context context, @NonNull String pkgName) { 83 return isLegacyVersion(context, pkgName) && isForegroundApp(context, pkgName); 86 private static boolean isLegacyVersion(@NonNull Context context, @NonNull String pkgName) { 88 if (context.getPackageManager().getApplicationInfo(pkgName, 0 [all...] |
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
PackageManagerHostTestUtils.java | 111 * @param pkgName Android application package for tests 121 private CollectingTestListener doRunTests(String pkgName, String className, 124 IRemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, runnerName, 147 * @param pkgName Android application package for tests 156 public boolean runDeviceTestsDidAllTestsPass(String pkgName, String className, 159 CollectingTestListener listener = doRunTests(pkgName, className, methodName, 168 * @param pkgName Android application package for tests 172 public boolean runDeviceTestsDidAllTestsPass(String pkgName) 174 CollectingTestListener listener = doRunTests(pkgName, null, null, null, null); 291 * @param pkgName the name of the packag [all...] |
PackageManagerStressHostTests.java | 181 String pkgName = LARGE_APPS[i][APK.PACKAGENAME.ordinal()]; 183 mPMHostUtils.uninstallApp(pkgName); 189 assertTrue(mPMHostUtils.doesAppExistOnSDCard(pkgName)); 190 assertTrue(mPMHostUtils.doesPackageExist(pkgName)); 197 String pkgName = LARGE_APPS[i][APK.PACKAGENAME.ordinal()]; 200 mPMHostUtils.uninstallApp(pkgName); 201 assertFalse(mPMHostUtils.doesAppExistOnSDCard(pkgName));
|
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/ |
EventStore.java | 52 * @param pkgName: Package for which this event is reported. 55 public void writeEvent(String pkgName, String eventType) { 60 final String lastTimePrefKey = getPrefKey(pkgName, eventType, METRIC_LAST_EVENT_TIME); 61 final String countPrefKey = getPrefKey(pkgName, eventType, METRIC_COUNT); 68 * @param pkgName: Package for which this metric is queried. 73 public long readMetric(String pkgName, String eventType, String metricType) { 81 return readPref(getPrefKey(pkgName, eventType, metricType), (long) 0); 92 private String getPrefKey(String pkgName, String eventType, String statType) { 95 .append(pkgName)
|
SuggestionFeaturizer.java | 67 for (String pkgName : pkgNames) { 69 features.put(pkgName, featureMap); 71 .readMetric(pkgName, EventStore.EVENT_SHOWN, EventStore.METRIC_LAST_EVENT_TIME); 72 Long lastDismissedTime = mEventStore.readMetric(pkgName, EventStore.EVENT_DISMISSED, 74 Long lastClickedTime = mEventStore.readMetric(pkgName, EventStore.EVENT_CLICKED, 86 .readMetric(pkgName, EventStore.EVENT_SHOWN, EventStore.METRIC_COUNT))); 88 .readMetric(pkgName, EventStore.EVENT_DISMISSED, EventStore.METRIC_COUNT))); 90 .readMetric(pkgName, EventStore.EVENT_CLICKED, EventStore.METRIC_COUNT)));
|
/device/sample/apps/LeanbackCustomizer/src/com/google/android/leanbacklauncher/partnercustomizer/ |
PartnerReceiver.java | 81 private void postNotification(String pkgName) { 88 switch (pkgName) { 107 postNotification(sort, resId, backupResId, titleId, backupTitleId, pkgName); 111 int titleId, int backupTitleId, String pkgName) { 113 Intent intent = mPkgMan.getLeanbackLaunchIntentForPackage(pkgName); 118 intent = getBackupIntent(pkgName); 123 extras.putString(BLACKLIST_PACKAGE, pkgName); 138 private Intent getBackupIntent(String pkgName) { 140 intent.setData(Uri.parse("market://details?id=" + pkgName));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/ |
DefaultHomePreferenceControllerTest.java | 97 final String pkgName = "test.pkg"; 98 final ComponentName defaultHome = new ComponentName(pkgName, "class"); 102 assertThat(DefaultHomePreferenceController.isHomeDefault(pkgName, mPackageManager)) 108 final String pkgName = "test.pkg"; 109 final ComponentName defaultHome = new ComponentName("not" + pkgName, "class"); 113 assertThat(DefaultHomePreferenceController.isHomeDefault(pkgName, mPackageManager))
|
/external/jdiff/src/jdiff/ |
HTMLReportGenerator.java | 192 String pkgName = pkgAPI.name_; 193 if (trace) System.out.println("Package " + pkgName + " was removed."); 194 writePackageTableEntry(pkgName, 0, pkgAPI.doc_, false); 205 String pkgName = pkgAPI.name_; 206 if (trace) System.out.println("Package " + pkgName + " was added."); 207 writePackageTableEntry(pkgName, 1, pkgAPI.doc_, false); 220 String pkgName = pkgDiff.name_; 221 if (trace) System.out.println("Package " + pkgName + " was changed."); 222 writePackageTableEntry(pkgName, 2, null, false); 261 String pkgName = pkgDiff.name_ [all...] |
DiffOutput.java | 30 public DiffOutput(String pkgName, String className, String id, 32 pkgName_ = pkgName;
|
/frameworks/base/core/java/android/service/notification/ |
INotificationListener.aidl | 40 void onNotificationChannelModification(String pkgName, in UserHandle user, in NotificationChannel channel, int modificationType); 41 void onNotificationChannelGroupModification(String pkgName, in UserHandle user, in NotificationChannelGroup group, int modificationType);
|
/frameworks/base/services/core/java/com/android/server/job/ |
JobSchedulerShellCommand.java | 88 private boolean printError(int errCode, String pkgName, int userId, int jobId) { 94 pw.print(pkgName); 104 pw.print(pkgName); 114 pw.print(pkgName); 150 final String pkgName = getNextArgRequired(); 155 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force); 156 if (printError(ret, pkgName, userId, jobId)) { 196 final String pkgName = getNextArg(); 202 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId); 284 final String pkgName = getNextArgRequired() [all...] |
/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/ |
ManifestGenerator.java | 41 String pkgName = null; 51 pkgName = args[++i]; 67 if (pkgName == null) { 80 generate(out, pkgName, instrumentName, minSdk, targetSdk, permissions, activities); 94 /*package*/ static void generate(OutputStream out, String pkgName, String instrumentName, 104 serializer.attribute(ns, "package", pkgName); 125 serializer.attribute(ns, "android:targetPackage", pkgName);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
RecentAppsPreferenceController.java | 222 final String pkgName = stat.getPackageName(); 224 mApplicationsState.getEntry(pkgName, mUserId); 230 Preference pref = appPreferences.remove(pkgName); 235 pref.setKey(pkgName); 245 R.string.application_info_label, pkgName, appEntry.info.uid, mHost, 268 final String pkgName = pkgStats.getPackageName(); 269 final UsageStats existingStats = map.get(pkgName); 271 map.put(pkgName, pkgStats); 300 final String pkgName = stat.getPackageName(); 302 Log.d(TAG, "Invalid timestamp, skipping " + pkgName); [all...] |
/tools/tradefederation/core/prod-tests/src/com/android/monkey/ |
AppPkgInjector.java | 78 String pkgName = aapt.getPackageName(); 79 if (pkgName == null) { 85 mConfig.injectOptionValue("package", pkgName);
|
/cts/tests/core/runner/src/com/android/cts/core/runner/ |
TestClassFinder.java | 135 ExcludePackageNameFilter(String pkgName) { 136 if (!pkgName.endsWith(".")) { 137 mPkgName = String.format("%s.", pkgName); 139 mPkgName = pkgName;
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/ |
CompatibilityHostTestBase.java | 154 * @param pkgName the Android package to uninstall 158 protected String uninstallPackage(String pkgName) throws DeviceNotAvailableException { 159 return mDevice.uninstallPackage(pkgName); 192 * @param pkgName the name of the package containing tests 200 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName) 202 return runDeviceTests(pkgName, testClassName, null /*testMethodName*/); 207 * @param pkgName the name of the package containing tests 217 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName, 220 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); 230 String pkgName, String testClassName [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
IObbBackupService.aidl | 42 void restoreObbFile(in String pkgName, in ParcelFileDescriptor data,
|
/packages/apps/Settings/src/com/android/settings/search/ |
CursorToSearchResultConverter.java | 129 final String pkgName = cursor.getString(COLUMN_INDEX_INTENT_ACTION_TARGET_PACKAGE); 148 .setIcon(getIconForPackage(contextMap, pkgName, className, iconResStr)) 153 private Drawable getIconForPackage(Map<String, Context> contextMap, String pkgName, 162 if (TextUtils.isEmpty(className) && !TextUtils.isEmpty(pkgName)) { 163 packageContext = contextMap.get(pkgName); 166 packageContext = mContext.createPackageContext(pkgName, 0); 168 Log.e(TAG, "Cannot create Context for package: " + pkgName); 171 contextMap.put(pkgName, packageContext);
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
PackageInfo.java | 40 PackageInfo(String pkgName) { 41 mPackageName = pkgName;
|
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/ |
ActivityHelper.java | 67 * @param pkgName 71 public int getTaskIdForActivity(String pkgName, String activityName) { 75 String.format("taskId=(\\d+): %s/%s", pkgName, activityName)); 80 taskId, pkgName, activityName)); 193 * @param pkgName 196 public void launchPackage(String pkgName) throws InterruptedException { 198 .getLaunchIntentForPackage(pkgName);
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
KeySetHostTest.java | 152 * @param pkgName Android application package for tests 156 private boolean runDeviceTests(String pkgName) throws DeviceNotAvailableException { 157 return runDeviceTests(pkgName, null, null); 163 * @param pkgName Android application package for tests 167 private boolean runDeviceTests(String pkgName, String testClassName, String testMethodName) 169 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); 176 * @param pkgName Android application package for tests 180 private TestRunResult doRunTests(String pkgName, String testClassName, 183 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, 196 * @param pkgName - package name of apk [all...] |
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
ServiceCreator.java | 48 final String pkgName = context.getPackageName(); 50 intent.setComponent(new ComponentName(pkgName, pkgName+".ExternalService"));
|
/external/doclava/src/com/google/doclava/ |
TodoFile.java | 158 String pkgName = pkg != null ? pkg.name() : ""; 159 PackageStats ps = packageStats.get(pkgName); 162 ps.name = pkgName; 163 packageStats.put(pkgName, ps);
|