Searched refs:pkg (Results 1 - 25 of 333) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/nfc/
H A DINfcAdapterExtras.aidl26 Bundle open(in String pkg, IBinder b);
27 Bundle close(in String pkg, IBinder b);
28 Bundle transceive(in String pkg, in byte[] data_in);
29 int getCardEmulationRoute(in String pkg);
30 void setCardEmulationRoute(in String pkg, int route);
31 void authenticate(in String pkg, in byte[] token);
32 String getDriverName(in String pkg);
/frameworks/base/core/java/android/content/pm/
H A DAndroidTestBaseUpdater.java41 public void updatePackage(Package pkg) { argument
45 if (apkTargetsApiLevelLessThanOrEqualToOMR1(pkg)) {
46 prefixRequiredLibrary(pkg, ANDROID_TEST_BASE);
51 prefixImplicitDependency(pkg, ANDROID_TEST_RUNNER, ANDROID_TEST_BASE);
H A DOrgApacheHttpLegacyUpdater.java40 public void updatePackage(Package pkg) { argument
44 if (apkTargetsApiLevelLessThanOrEqualToOMR1(pkg)) {
45 prefixRequiredLibrary(pkg, ORG_APACHE_HTTP_LEGACY);
H A DPackageSharedLibraryUpdater.java38 * @param pkg the package to update.
40 public abstract void updatePackage(PackageParser.Package pkg); argument
42 static void removeLibrary(PackageParser.Package pkg, String libraryName) { argument
43 pkg.usesLibraries = ArrayUtils.remove(pkg.usesLibraries, libraryName);
44 pkg.usesOptionalLibraries =
45 ArrayUtils.remove(pkg.usesOptionalLibraries, libraryName);
63 static boolean apkTargetsApiLevelLessThanOrEqualToOMR1(PackageParser.Package pkg) { argument
64 int targetSdkVersion = pkg.applicationInfo.targetSdkVersion;
74 * @param pkg th
78 prefixImplicitDependency(PackageParser.Package pkg, String existingLibrary, String implicitDependency) argument
95 prefixRequiredLibrary(PackageParser.Package pkg, String libraryName) argument
[all...]
H A DPackageBackwardCompatibility.java134 * @param pkg the {@link Package} to modify.
137 public static void modifySharedLibraries(Package pkg) { argument
138 INSTANCE.updatePackage(pkg);
142 public void updatePackage(Package pkg) { argument
144 packageUpdater.updatePackage(pkg);
177 public void updatePackage(Package pkg) { argument
180 prefixImplicitDependency(pkg, ANDROID_TEST_RUNNER, ANDROID_TEST_MOCK);
193 public void updatePackage(Package pkg) { argument
194 removeLibrary(pkg, ORG_APACHE_HTTP_LEGACY);
208 public void updatePackage(Package pkg) { argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageSharedLibraryUpdaterTest.java27 PackageParser.Package pkg = before.build();
28 updaterSupplier.get().updatePackage(pkg);
29 after.check(pkg);
H A DPackageBuilder.java42 PackageParser.Package pkg = new PackageParser.Package("org.package.name");
43 pkg.applicationInfo.targetSdkVersion = mTargetSdkVersion;
44 pkg.usesLibraries = mRequiredLibraries;
45 pkg.usesOptionalLibraries = mOptionalLibraries;
46 return pkg;
72 * @param pkg the instance to compare with this.
74 public void check(PackageParser.Package pkg) { argument
77 pkg.applicationInfo.targetSdkVersion);
80 pkg.usesLibraries);
83 pkg
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DRankingConfig.java34 Collection<NotificationChannelGroup> getNotificationChannelGroups(String pkg, argument
36 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, argument
38 ParceledListSlice<NotificationChannelGroup> getNotificationChannelGroups(String pkg, argument
40 void createNotificationChannel(String pkg, int uid, NotificationChannel channel, argument
42 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, boolean fromUser); argument
43 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeDeleted); argument
44 void deleteNotificationChannel(String pkg, int uid, String channelId); argument
45 void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId); argument
46 void permanentlyDeleteNotificationChannels(String pkg, int uid); argument
47 ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, in argument
[all...]
H A DNotificationManagerInternal.java23 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); argument
24 void enqueueNotification(String pkg, String basePkg, int callingUid, int callingPid, argument
27 void removeForegroundServiceFlagFromNotification(String pkg, int notificationId, int userId); argument
/frameworks/base/core/java/android/app/
H A DINotificationManager.aidl43 void cancelAllNotifications(String pkg, int userId);
45 void clearData(String pkg, int uid, boolean fromApp);
46 void enqueueToast(String pkg, ITransientNotification callback, int duration);
47 void cancelToast(String pkg, ITransientNotification callback);
48 void finishToken(String pkg, ITransientNotification callback);
50 void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id,
52 void cancelNotificationWithTag(String pkg, String tag, int id, int userId);
54 void setShowBadge(String pkg, int uid, boolean showBadge);
55 boolean canShowBadge(String pkg, int uid);
56 void setNotificationsEnabledForPackage(String pkg, in
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
H A DSuggestionCategory.java21 public String pkg; field in class:SuggestionCategory
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
H A DFullBackupEntry.java24 public FullBackupEntry(String pkg, long when) { argument
25 packageName = pkg;
H A DFullBackupPreflight.java31 * @param pkg The name of the package being proposed for full-data backup
36 int preflightFullBackup(PackageInfo pkg, IBackupAgent agent); argument
/frameworks/base/core/java/android/app/slice/
H A DISliceManager.aidl24 void pinSlice(String pkg, in Uri uri, in SliceSpec[] specs, in IBinder token);
25 void unpinSlice(String pkg, in Uri uri, in IBinder token);
26 boolean hasSliceAccess(String pkg);
27 SliceSpec[] getPinnedSpecs(in Uri uri, String pkg);
28 Uri[] getPinnedSlices(String pkg);
36 int checkSlicePermission(in Uri uri, String pkg, int pid, int uid,
38 void grantPermissionFromUser(in Uri uri, String pkg, String callingPkg, boolean allSlices);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
H A DPowerWhitelistBackend.java68 public boolean isSysWhitelisted(String pkg) { argument
69 return mSysWhitelistedApps.contains(pkg);
72 public boolean isWhitelisted(String pkg) { argument
73 if (mWhitelistedApps.contains(pkg)) {
77 // Additionally, check if pkg is default dialer/sms. They are considered essential apps and
85 if (defaultSms != null && TextUtils.equals(pkg, defaultSms.getPackageName())) {
90 if (TextUtils.equals(pkg, defaultDialer)) {
96 if (devicePolicyManager.packageHasActiveAdmins(pkg)) {
107 for (String pkg : pkgs) {
108 if (isWhitelisted(pkg)) {
116 isSysWhitelistedExceptIdle(String pkg) argument
133 addApp(String pkg) argument
142 removeApp(String pkg) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageParserTest.java70 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */,
72 assertNotNull(pkg);
75 pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */,
77 assertNotNull(pkg);
94 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */,
96 assertEquals("cache_android", pkg.packageName);
100 pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, false /* useCaches */);
101 assertEquals("android", pkg.packageName);
106 pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, true /* useCaches */);
107 assertEquals("android", pkg
181 toCacheEntry(Package pkg) argument
429 setKnownFields(PackageParser.Package pkg) argument
545 assertAllFieldsExist(PackageParser.Package pkg) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServiceControllerImpl.java63 public boolean isSystemAlertWarningNeeded(int userId, String pkg) { argument
67 return services.getStandardLayoutKey(pkg) == null;
72 public String getStandardLayoutKey(int userId, String pkg) { argument
76 return services.getStandardLayoutKey(pkg);
81 public ArraySet<Integer> getAppOps(int userId, String pkg) { argument
87 return services.getFeatures(pkg);
202 public void addOp(String pkg, int op) { argument
203 if (mAppOps.get(pkg) == null) {
204 mAppOps.put(pkg, new ArraySet<>(3));
206 mAppOps.get(pkg)
209 removeOp(String pkg, int op) argument
223 addImportantNotification(String pkg, String key) argument
227 removeImportantNotification(String pkg, String key) argument
231 addStandardLayoutNotification(String pkg, String key) argument
235 removeStandardLayoutNotification(String pkg, String key) argument
239 removeNotification(String pkg, String key) argument
246 addNotification(ArrayMap<String, ArraySet<String>> map, String pkg, String key) argument
254 removeNotification(ArrayMap<String, ArraySet<String>> map, String pkg, String key) argument
283 getFeatures(String pkg) argument
287 getStandardLayoutKey(String pkg) argument
[all...]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java81 PackageLite pkg = null;
84 pkg = PackageParser.parsePackageLite(packageFile, 0);
85 return copyPackageInner(pkg, target);
112 final PackageParser.PackageLite pkg;
115 pkg = PackageParser.parsePackageLite(packageFile, 0);
116 sizeBytes = PackageHelper.calculateInstalledSize(pkg, abiOverride);
133 pkg.packageName, pkg.installLocation, sizeBytes, flags);
138 ret.packageName = pkg.packageName;
139 ret.splitNames = pkg
242 copyPackageInner(PackageLite pkg, IParcelFileDescriptorFactory target) argument
[all...]
/frameworks/base/tests/backup/
H A Dtest_backup.sh27 for pkg in $b_pkgs; do
28 a shell bmgr wipe "$pkg"
/frameworks/base/core/java/android/content/pm/split/
H A DSplitDependencyLoader.java153 PackageParser.PackageLite pkg) throws IllegalDependencyException {
164 for (int splitIdx = 0; splitIdx < pkg.splitNames.length; splitIdx++) {
165 if (!pkg.isFeatureSplits[splitIdx]) {
172 final String splitDependency = pkg.usesSplitNames[splitIdx];
174 final int depIdx = Arrays.binarySearch(pkg.splitNames, splitDependency);
176 throw new IllegalDependencyException("Split '" + pkg.splitNames[splitIdx]
191 for (int splitIdx = 0; splitIdx < pkg.splitNames.length; splitIdx++) {
192 if (pkg.isFeatureSplits[splitIdx]) {
199 final String configForSplit = pkg.configForSplit[splitIdx];
201 final int depIdx = Arrays.binarySearch(pkg
152 createDependenciesFromPackage( PackageParser.PackageLite pkg) argument
[all...]
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
H A DInstallOverlayTests.java50 for (String pkg : ALL_PACKAGES) {
51 assertFalse(pkg + " should not be installed", isPackageInstalled(pkg));
52 assertFalse(pkg + " should not be registered with overlay manager service",
53 overlayManagerContainsPackage(pkg));
64 for (String pkg : ALL_PACKAGES) {
65 uninstallPackage(pkg);
158 private void setPackageEnabled(String pkg, boolean enabled) throws Exception { argument
159 getDevice().executeShellCommand("cmd package " + (enabled ? "enable " : "disable ") + pkg);
162 private void setOverlayEnabled(String pkg, boolea argument
166 overlayManagerContainsPackage(String pkg) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java90 final Package pkg = mPackages.remove(packageName);
91 if (pkg != null) {
92 for (int i = 0; i < pkg.mMap.size(); i++) {
93 final ArrayMap<int[], Entry> map = pkg.mMap.valueAt(i);
99 final Resources res = pkg.context.getResources();
121 Package pkg = mPackages.get(packageName);
124 if (pkg != null) {
125 map = pkg.mMap.get(resId);
143 pkg = new Package(context);
144 mPackages.put(packageName, pkg);
[all...]
/frameworks/base/core/java/android/content/
H A DComponentName.java52 * @param pkg the name of the package the component exists in
53 * @param cls the name of the class inside of <var>pkg</var> that implements
57 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { argument
65 fullName = pkg + cls;
70 return new ComponentName(pkg, fullName);
83 * @param pkg a Context for the package implementing the component
84 * @param cls the name of the class inside of <var>pkg</var> that implements
88 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { argument
89 return createRelative(pkg.getPackageName(), cls);
95 * @param pkg Th
100 ComponentName(@onNull String pkg, @NonNull String cls) argument
115 ComponentName(@onNull Context pkg, @NonNull String cls) argument
129 ComponentName(@onNull Context pkg, @NonNull Class<?> cls) argument
395 ComponentName(String pkg, Parcel in) argument
[all...]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DGroupHelperTest.java62 private StatusBarNotification getSbn(String pkg, int id, String tag, argument
70 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null,
74 private StatusBarNotification getSbn(String pkg, int id, String tag, argument
76 return getSbn(pkg, id, tag, user, null);
81 final String pkg = "package";
83 mGroupHelper.onNotificationPosted(getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM),
87 eq(UserHandle.USER_SYSTEM), eq(pkg), anyString());
95 final String pkg = "package";
98 mGroupHelper.onNotificationPosted(getSbn(pkg,
[all...]
/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java33 private final String pkg; field in class:StatusBarNotification
50 public StatusBarNotification(String pkg, String opPkg, int id, argument
53 if (pkg == null) throw new NullPointerException();
56 this.pkg = pkg;
74 public StatusBarNotification(String pkg, String opPkg, int id, String tag, int uid, argument
77 if (pkg == null) throw new NullPointerException();
80 this.pkg = pkg;
94 this.pkg
[all...]

Completed in 609 milliseconds

1234567891011>>