Home
last modified time | relevance | path

Searched defs:pkg (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DAndroidPackageUtils.java59 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePathsExcludingResourceOnly() local
79 PackageImpl pkg = (PackageImpl) aPkg; in getAllCodePaths() local
90 public static SharedLibraryInfo createSharedLibraryForSdk(AndroidPackage pkg) { in createSharedLibraryForSdk()
101 public static SharedLibraryInfo createSharedLibraryForStatic(AndroidPackage pkg) { in createSharedLibraryForStatic()
112 public static SharedLibraryInfo createSharedLibraryForDynamic(AndroidPackage pkg, String name) { in createSharedLibraryForDynamic()
127 public static Map<String, String> getPackageDexMetadata(AndroidPackage pkg) { in getPackageDexMetadata()
137 public static void validatePackageDexMetadata(AndroidPackage pkg) in validatePackageDexMetadata()
153 public static NativeLibraryHelper.Handle createNativeLibraryHandle(AndroidPackage pkg) in createNativeLibraryHandle()
163 public static boolean canHaveOatDir(AndroidPackage pkg, boolean isUpdatedSystemApp) { in canHaveOatDir()
176 public static boolean hasComponentClassName(AndroidPackage pkg, String className) { in hasComponentClassName()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DGroupHelperTest.java67 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn()
79 private StatusBarNotification getSbn(String pkg, int id, String tag, in getSbn()
86 final String pkg = "package"; in testNoGroup_postingUnderLimit() local
100 final String pkg = "package"; in testNoGroup_multiPackage() local
117 final String pkg = "package"; in testNoGroup_multiUser() local
133 final String pkg = "package"; in testNoGroup_someAreGrouped() local
149 final String pkg = "package"; in testPostingOverLimit() local
162 final String pkg = "package"; in testPostingOverLimit_addsOngoingFlag() local
178 final String pkg = "package"; in testAutoGroupCount_addingNoGroupSBN() local
203 final String pkg = "package"; in testAutoGroupCount_UpdateNotification() local
[all …]
/frameworks/base/core/java/android/nfc/
DINfcAdapterExtras.aidl27 Bundle open(in String pkg, IBinder b); in open()
29 Bundle close(in String pkg, IBinder b); in close()
31 Bundle transceive(in String pkg, in byte[] data_in); in transceive()
33 int getCardEmulationRoute(in String pkg); in getCardEmulationRoute()
35 void setCardEmulationRoute(in String pkg, int route); in setCardEmulationRoute()
37 void authenticate(in String pkg, in byte[] token); in authenticate()
39 String getDriverName(in String pkg); in getDriverName()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSELinuxMMACTest.java55 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoOptInToLatest() local
65 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoOptInToR() local
75 AndroidPackage pkg = makePackage(Build.VERSION_CODES.P); in getSeInfoNoOptIn() local
85 AndroidPackage pkg = makePackage(LATEST_OPT_IN_VERSION); in getSeInfoNoOptInButAlreadyLatest() local
95 AndroidPackage pkg = makePackage(Build.VERSION_CODES.CUR_DEVELOPMENT); in getSeInfoTargetingCurDevelopment() local
105 AndroidPackage pkg = makePackage(R_OPT_IN_VERSION); in getSeInfoNoOptInButAlreadyR() local
115 AndroidPackage pkg = makePackage(R_OPT_IN_VERSION + 1); in getSeInfoOptInRButLater() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesUserState.java48 public void addOp(String pkg, int op) { in addOp()
55 public boolean removeOp(String pkg, int op) { in removeOp()
69 public void addImportantNotification(String pkg, String key) { in addImportantNotification()
73 public boolean removeImportantNotification(String pkg, String key) { in removeImportantNotification()
77 public void addStandardLayoutNotification(String pkg, String key) { in addStandardLayoutNotification()
81 public boolean removeStandardLayoutNotification(String pkg, String key) { in removeStandardLayoutNotification()
85 public boolean removeNotification(String pkg, String key) { in removeNotification()
92 public void addNotification(ArrayMap<String, ArraySet<String>> map, String pkg, in addNotification() argument
101 String pkg, String key) { in removeNotification()
135 public ArraySet<Integer> getFeatures(String pkg) { in getFeatures()
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl47 void cancelAllNotifications(String pkg, int userId); in cancelAllNotifications()
49 void clearData(String pkg, int uid, boolean fromApp); in clearData()
50 …void enqueueTextToast(String pkg, IBinder token, CharSequence text, int duration, int displayId, @… in enqueueTextToast()
51 …void enqueueToast(String pkg, IBinder token, ITransientNotification callback, int duration, int di… in enqueueToast()
52 void cancelToast(String pkg, IBinder token); in cancelToast()
53 void finishToken(String pkg, IBinder token); in finishToken()
55 void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id, in enqueueNotificationWithTag()
58 void cancelNotificationWithTag(String pkg, String opPkg, String tag, int id, int userId); in cancelNotificationWithTag()
60 boolean isInCall(String pkg, int uid); in isInCall()
61 void setShowBadge(String pkg, int uid, boolean showBadge); in setShowBadge()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java140 private static void validatePackageDexMetadata(AndroidPackage pkg, boolean requireManifest) in validatePackageDexMetadata()
157 private static void validatePackageDexMetatadataVaryingRequireManifest(ParsedPackage pkg) in validatePackageDexMetatadataVaryingRequireManifest()
167 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileValid() local
186 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileValid() local
208 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsNoBaseWithDmFileValid() local
227 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalid() local
235 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalid() local
253 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileInvalid() local
261 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageSplitsWithDmFileInvalid() local
276 ParsedPackage pkg = new TestPackageParser2().parsePackage(mTmpDir, /*flags=*/0, false); in testParsePackageWithDmFileInvalidManifest() local
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerInternal.java26 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); in getNotificationChannel()
27 NotificationChannelGroup getNotificationChannelGroup(String pkg, int uid, String channelId); in getNotificationChannelGroup()
28 void enqueueNotification(String pkg, String basePkg, int callingUid, int callingPid, in enqueueNotification()
30 void cancelNotification(String pkg, String basePkg, int callingUid, int callingPid, in cancelNotification()
34 boolean isNotificationShown(String pkg, String tag, int notificationId, int userId); in isNotificationShown()
36 void removeForegroundServiceFlagFromNotification(String pkg, int notificationId, int userId); in removeForegroundServiceFlagFromNotification()
38 void onConversationRemoved(String pkg, int uid, Set<String> shortcuts); in onConversationRemoved()
41 int getNumNotificationChannelsForPackage(String pkg, int uid, boolean includeDeleted); in getNumNotificationChannelsForPackage()
44 boolean areNotificationsEnabledForPackage(String pkg, int uid); in areNotificationsEnabledForPackage()
DRankingConfig.java39 Collection<NotificationChannelGroup> getNotificationChannelGroups(String pkg, in getNotificationChannelGroups()
41 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup()
43 ParceledListSlice<NotificationChannelGroup> getNotificationChannelGroups(String pkg, in getNotificationChannelGroups()
45 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel()
47 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel, in updateNotificationChannel()
49 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, in getNotificationChannel()
51 NotificationChannel getConversationNotificationChannel(String pkg, int uid, String channelId, in getConversationNotificationChannel()
54 boolean deleteNotificationChannel(String pkg, int uid, String channelId); in deleteNotificationChannel()
55 void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId); in permanentlyDeleteNotificationChannel()
56 void permanentlyDeleteNotificationChannels(String pkg, int uid); in permanentlyDeleteNotificationChannels()
[all …]
DNotificationChannelLogger.java45 String pkg) { in logNotificationChannelCreated()
48 channel, uid, pkg, 0, getLoggingImportance(channel)); in logNotificationChannelCreated() local
58 String pkg) { in logNotificationChannelDeleted()
61 channel, uid, pkg, getLoggingImportance(channel), 0); in logNotificationChannelDeleted() local
73 String pkg, int oldLoggingImportance, boolean byUser) { in logNotificationChannelModified()
75 channel, uid, pkg, oldLoggingImportance, getLoggingImportance(channel)); in logNotificationChannelModified() local
87 int uid, String pkg, boolean isNew, boolean wasBlocked) { in logNotificationChannelGroup()
89 channelGroup, uid, pkg, wasBlocked); in logNotificationChannelGroup() local
99 int uid, String pkg) { in logNotificationChannelGroupDeleted()
110 default void logAppNotificationsAllowed(int uid, String pkg, boolean enabled) { in logAppNotificationsAllowed()
[all …]
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
DInstallOverlayTests.java199 private void installPackage(String pkg) throws Exception { in installPackage()
204 private void installInstantPackage(String pkg) throws Exception { in installInstantPackage()
209 private void installConvertExistingInstantPackageToFull(String pkg) throws Exception { in installConvertExistingInstantPackageToFull()
213 private void setPackageEnabled(String pkg, boolean enabled) throws Exception { in setPackageEnabled()
218 private void setOverlayEnabled(String pkg, boolean enabled) throws Exception { in setOverlayEnabled()
223 private boolean overlayManagerContainsPackage(String pkg) throws Exception { in overlayManagerContainsPackage()
227 private boolean isOverlayMutable(String pkg) throws Exception { in isOverlayMutable()
/frameworks/base/core/java/android/app/slice/
DISliceManager.aidl24 void pinSlice(String pkg, in Uri uri, in SliceSpec[] specs, in IBinder token); in pinSlice()
25 void unpinSlice(String pkg, in Uri uri, in IBinder token); in unpinSlice()
26 boolean hasSliceAccess(String pkg); in hasSliceAccess()
27 SliceSpec[] getPinnedSpecs(in Uri uri, String pkg); in getPinnedSpecs()
28 Uri[] getPinnedSlices(String pkg); in getPinnedSlices()
36 int checkSlicePermission(in Uri uri, String callingPkg, String pkg, int pid, int uid, in checkSlicePermission()
38 void grantPermissionFromUser(in Uri uri, String pkg, String callingPkg, boolean allSlices); in grantPermissionFromUser()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageParserTest.java143 ParsedPackage pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_noCache() local
167 ParsedPackage pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_withCache() local
189 AndroidPackage pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in test_serializePackage() local
206 ParsingPackage pkg = PackageImpl.forTesting("foo"); in test_roundTripKnownFields() local
219 ParsingPackage pkg = PackageImpl.forTesting("foo"); in test_stringInterning() local
269 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsDefault() local
283 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsConstant() local
297 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseIsolatedSplitsResource() local
404 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseApplicationProperties() local
436 final ParsedPackage pkg = new TestPackageParser2().parsePackage(testFile, 0, false); in testParseActivityProperties() local
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCollectorTest.kt56 val pkg = mockPkg(useV2 = false, autoVerify = true) in verifyV1() constant
68 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1NoAutoVerify() constant
78 val pkg = mockPkg(useV2 = false, autoVerify = false) in verifyV1ForceAutoVerify() constant
90 val pkg = mockThrowOnUnmocked<AndroidPackage> { in verifyV1NoValidIntentFilter() constant
149 val pkg = mockPkg(useV2 = true, autoVerify = true) in verifyV2() constant
162 val pkg = mockPkg(useV2 = true, autoVerify = false) in verifyV2NoAutoVerify() constant
173 val pkg = mockPkg(useV2 = true, autoVerify = false) in verifyV2ForceAutoVerifyIgnored() constant
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java146 public Uri[] getPinnedSlices(String pkg) { in getPinnedSlices()
165 public void pinSlice(String pkg, Uri uri, SliceSpec[] specs, IBinder token) in pinSlice()
184 public void unpinSlice(String pkg, Uri uri, IBinder token) throws RemoteException { in unpinSlice()
199 public boolean hasSliceAccess(String pkg) throws RemoteException { in hasSliceAccess()
205 public SliceSpec[] getPinnedSpecs(Uri uri, String pkg) throws RemoteException { in getPinnedSpecs()
213 public void grantSlicePermission(String pkg, String toPkg, Uri uri) throws RemoteException { in grantSlicePermission()
221 public void revokeSlicePermission(String pkg, String toPkg, Uri uri) throws RemoteException { in revokeSlicePermission()
229 public int checkSlicePermission(Uri uri, String callingPkg, String pkg, int pid, int uid, in checkSlicePermission()
265 public void grantPermissionFromUser(Uri uri, String pkg, String callingPkg, boolean allSlices) { in grantPermissionFromUser()
346 private void enforceOwner(String pkg, Uri uri, int user) { in enforceOwner()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerAllowlistBackend.java72 public boolean isSysAllowlisted(String pkg) { in isSysAllowlisted()
79 public boolean isAllowlisted(String pkg) { in isAllowlisted()
94 public boolean isDefaultActiveApp(String pkg) { in isDefaultActiveApp()
115 public boolean isAllowlistedExceptIdle(String pkg) { in isAllowlistedExceptIdle()
146 public void addApp(String pkg) { in addApp()
159 public void removeApp(String pkg) { in removeApp()
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/
DPackageInfoWithoutStateUtils.java80 public static PackageInfo generate(ParsingPackageRead pkg, int[] gids, in generate()
89 public static PackageInfo generate(ParsingPackageRead pkg, ApexInfo apexInfo, int flags) { in generate()
95 private static PackageInfo generateWithComponents(ParsingPackageRead pkg, int[] gids, in generateWithComponents()
195 public static PackageInfo generateWithoutComponents(ParsingPackageRead pkg, int[] gids, in generateWithoutComponents()
215 public static PackageInfo generateWithoutComponentsUnchecked(ParsingPackageRead pkg, int[] gids, in generateWithoutComponentsUnchecked()
370 public static ApplicationInfo generateApplicationInfo(ParsingPackageRead pkg, in generateApplicationInfo()
398 public static ApplicationInfo generateApplicationInfoUnchecked(@NonNull ParsingPackageRead pkg, in generateApplicationInfoUnchecked()
490 public static ActivityInfo generateActivityInfo(ParsingPackageRead pkg, ParsedActivity a, in generateActivityInfo()
559 public static ActivityInfo generateActivityInfo(ParsingPackageRead pkg, ParsedActivity a, in generateActivityInfo()
566 public static ServiceInfo generateServiceInfo(ParsingPackageRead pkg, ParsedService s, in generateServiceInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageAbiHelper.java42 NativeLibraryPaths deriveNativeLibraryPaths(AndroidPackage pkg, boolean isUpdatedSystemApp, in deriveNativeLibraryPaths()
50 Abis getBundledAppAbis(AndroidPackage pkg); in getBundledAppAbis()
58 Pair<Abis, NativeLibraryPaths> derivePackageAbi(AndroidPackage pkg, boolean isUpdatedSystemApp, in derivePackageAbi()
101 public void applyTo(ParsedPackage pkg) { in applyTo()
122 Abis(AndroidPackage pkg, PackageSetting pkgSetting) { in Abis()
127 public void applyTo(ParsedPackage pkg) { in applyTo()
DAppDataHelper.java91 public void prepareAppDataAfterInstallLIF(AndroidPackage pkg) { in prepareAppDataAfterInstallLIF()
100 public void prepareAppDataPostCommitLIF(AndroidPackage pkg, int previousAppId) { in prepareAppDataPostCommitLIF()
166 @Nullable AndroidPackage pkg, int previousAppId, int userId, in prepareAppData()
180 @NonNull AndroidPackage pkg, int userId, @StorageManager.StorageFlags int flags, in prepareAppDataAndMigrate()
197 @NonNull AndroidPackage pkg, int previousAppId, int userId, int flags) { in prepareAppDataLeaf()
266 mArtManagerService.prepareAppProfiles(pkg, userId, in prepareAppDataLeaf() argument
277 prepareAppDataContentsLeafLIF(pkg, ps, userId, flags); in prepareAppDataLeaf() argument
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationCollector.java95 public ArraySet<String> collectAllWebDomains(@NonNull AndroidPackage pkg) { in collectAllWebDomains()
104 public ArraySet<String> collectValidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectValidAutoVerifyDomains()
113 public ArraySet<String> collectInvalidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectInvalidAutoVerifyDomains()
117 public boolean containsWebDomain(@NonNull AndroidPackage pkg, @NonNull String targetDomain) { in containsWebDomain()
/frameworks/native/libs/incidentcompanion/binder/android/os/
DIIncidentCompanion.aidl63 oneway void sendReportReadyBroadcast(String pkg, String cls); in sendReportReadyBroadcast()
88 List<String> getIncidentReportList(String pkg, String cls); in getIncidentReportList()
93 IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id); in getIncidentReport()
98 void deleteIncidentReports(String pkg, String cls, String id); in deleteIncidentReports()
104 void deleteAllIncidentReports(String pkg); in deleteAllIncidentReports()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java86 public static PackageInfo generate(AndroidPackage pkg, int[] gids, in generate()
98 public static PackageInfo generate(AndroidPackage pkg, ApexInfo apexInfo, int flags, in generate()
107 private static PackageInfo generateWithComponents(AndroidPackage pkg, int[] gids, in generateWithComponents()
218 public static ApplicationInfo generateApplicationInfo(AndroidPackage pkg, in generateApplicationInfo()
265 public static ActivityInfo generateActivityInfo(AndroidPackage pkg, ParsedActivity a, in generateActivityInfo()
276 private static ActivityInfo generateActivityInfo(AndroidPackage pkg, ParsedActivity a, in generateActivityInfo()
302 public static ServiceInfo generateServiceInfo(AndroidPackage pkg, ParsedService s, in generateServiceInfo()
312 private static ServiceInfo generateServiceInfo(AndroidPackage pkg, ParsedService s, in generateServiceInfo()
337 public static ProviderInfo generateProviderInfo(AndroidPackage pkg, ParsedProvider p, in generateProviderInfo()
365 AndroidPackage pkg, @PackageManager.ComponentInfoFlagsBits long flags, int userId, in generateInstrumentationInfo()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceClientPermissionsTest.java58 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testRemoveBasic() local
84 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testRemoveSubtrees() local
115 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testAddConsolidate_addFirst() local
142 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testAddConsolidate_addSecond() local
169 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testDirty_addAuthority() local
180 PkgUser pkg = new PkgUser("com.android.pkg", 0); in testDirty_addPkg() local
257 PkgUser pkg = new PkgUser("com.android.pkg", 2); in createClient() local
/frameworks/base/core/java/android/os/
DIIncidentManager.aidl78 List<String> getIncidentReportList(String pkg, String cls); in getIncidentReportList()
83 IncidentManager.IncidentReport getIncidentReport(String pkg, String cls, String id); in getIncidentReport()
90 void deleteIncidentReports(String pkg, String cls, String id); in deleteIncidentReports()
95 void deleteAllIncidentReports(String pkg); in deleteAllIncidentReports()
/frameworks/base/core/java/android/content/
DComponentName.java59 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative()
90 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative()
102 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName()
117 public ComponentName(@NonNull Context pkg, @NonNull String cls) { in ComponentName()
131 public ComponentName(@NonNull Context pkg, @NonNull Class<?> cls) { in ComponentName()
280 String pkg = str.substring(0, sep); in unflattenFromString() local
384 String pkg = in.readString(); in readFromParcel() local
418 private ComponentName(String pkg, Parcel in) { in ComponentName()

12345678910>>...18