Home
last modified time | relevance | path

Searched refs:callingPackage (Results 1 – 25 of 184) sorted by relevance

12345678

/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneSubInfo.aidl29 String getDeviceId(String callingPackage); in getDeviceId() argument
34 String getDeviceIdWithFeature(String callingPackage, String callingFeatureId); in getDeviceIdWithFeature() argument
39 String getNaiForSubscriber(int subId, String callingPackage, String callingFeatureId); in getNaiForSubscriber() argument
45 String getDeviceIdForPhone(int phoneId, String callingPackage, String callingFeatureId); in getDeviceIdForPhone() argument
50 String getImeiForSubscriber(int subId, String callingPackage, String callingFeatureId); in getImeiForSubscriber() argument
56 String getDeviceSvn(String callingPackage, String callingFeatureId); in getDeviceSvn() argument
62 String getDeviceSvnUsingSubId(int subId, String callingPackage, String callingFeatureId); in getDeviceSvnUsingSubId() argument
66 String getSubscriberId(String callingPackage); in getSubscriberId() argument
71 String getSubscriberIdWithFeature(String callingPackage, String callingComponenId); in getSubscriberIdWithFeature() argument
76 String getSubscriberIdForSubscriber(int subId, String callingPackage, in getSubscriberIdForSubscriber() argument
[all …]
DITelephony.aidl95 void call(String callingPackage, String number); in call() argument
99 boolean isRadioOn(String callingPackage); in isRadioOn() argument
107 boolean isRadioOnWithFeature(String callingPackage, String callingFeatureId); in isRadioOnWithFeature() argument
113 boolean isRadioOnForSubscriber(int subId, String callingPackage); in isRadioOnForSubscriber() argument
122 …boolean isRadioOnForSubscriberWithFeature(int subId, String callingPackage, String callingFeatureI… in isRadioOnForSubscriberWithFeature() argument
356 int getCdmaEriIconIndex(String callingPackage, String callingFeatureId); in getCdmaEriIconIndex() argument
364 int getCdmaEriIconIndexForSubscriber(int subId, String callingPackage, in getCdmaEriIconIndexForSubscriber() argument
374 int getCdmaEriIconMode(String callingPackage, String callingFeatureId); in getCdmaEriIconMode() argument
384 int getCdmaEriIconModeForSubscriber(int subId, String callingPackage, in getCdmaEriIconModeForSubscriber() argument
392 String getCdmaEriText(String callingPackage, String callingFeatureId); in getCdmaEriText() argument
[all …]
DISub.aidl30 List<SubscriptionInfo> getAllSubInfoList(String callingPackage, String callingFeatureId); in getAllSubInfoList() argument
38 int getAllSubInfoCount(String callingPackage, String callingFeatureId); in getAllSubInfoCount() argument
47 SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage, in getActiveSubscriptionInfo() argument
57 SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage, in getActiveSubscriptionInfoForIccId() argument
67 SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex, String callingPackage, in getActiveSubscriptionInfoForSimSlotIndex() argument
92 List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage, in getActiveSubscriptionInfoList() argument
100 int getActiveSubInfoCount(String callingPackage, String callingFeatureId); in getActiveSubInfoCount() argument
110 List<SubscriptionInfo> getAvailableSubscriptionInfoList(String callingPackage, in getAvailableSubscriptionInfoList() argument
116 List<SubscriptionInfo> getAccessibleSubscriptionInfoList(String callingPackage); in getAccessibleSubscriptionInfoList() argument
191 int setOpportunistic(boolean opportunistic, int subId, String callingPackage); in setOpportunistic() argument
[all …]
DIOns.aidl41 boolean setEnable(boolean enable, String callingPackage); in setEnable() argument
55 boolean isEnabled(String callingPackage); in isEnabled() argument
74 ISetOpportunisticDataCallback callbackStub, String callingPackage); in setPreferredDataSubscriptionId() argument
86 int getPreferredDataSubscriptionId(String callingPackage, String callingFeatureId); in getPreferredDataSubscriptionId() argument
105 IUpdateAvailableNetworksCallback callbackStub, String callingPackage); in updateAvailableNetworks() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSubInfoController.java64 public String getDeviceId(String callingPackage) { in getDeviceId() argument
65 return getDeviceIdWithFeature(callingPackage, null); in getDeviceId()
68 public String getDeviceIdWithFeature(String callingPackage, String callingFeatureId) { in getDeviceIdWithFeature() argument
70 callingPackage, callingFeatureId); in getDeviceIdWithFeature()
73 public String getDeviceIdForPhone(int phoneId, String callingPackage, in getDeviceIdForPhone() argument
75 return callPhoneMethodForPhoneIdWithReadDeviceIdentifiersCheck(phoneId, callingPackage, in getDeviceIdForPhone()
79 public String getNaiForSubscriber(int subId, String callingPackage, String callingFeatureId) { in getNaiForSubscriber() argument
80 return callPhoneMethodForSubIdWithReadSubscriberIdentifiersCheck(subId, callingPackage, in getNaiForSubscriber()
84 public String getImeiForSubscriber(int subId, String callingPackage, in getImeiForSubscriber() argument
86 return callPhoneMethodForSubIdWithReadDeviceIdentifiersCheck(subId, callingPackage, in getImeiForSubscriber()
[all …]
DSmsController.java85 public boolean updateMessageOnIccEfForSubscriber(int subId, String callingPackage, int index, in updateMessageOnIccEfForSubscriber() argument
87 if (callingPackage == null) { in updateMessageOnIccEfForSubscriber()
88 callingPackage = getCallingPackage(); in updateMessageOnIccEfForSubscriber()
92 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu); in updateMessageOnIccEfForSubscriber()
102 public boolean copyMessageToIccEfForSubscriber(int subId, String callingPackage, int status, in copyMessageToIccEfForSubscriber() argument
104 if (callingPackage == null) { in copyMessageToIccEfForSubscriber()
105 callingPackage = getCallingPackage(); in copyMessageToIccEfForSubscriber()
109 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc); in copyMessageToIccEfForSubscriber()
119 public List<SmsRawData> getAllMessagesFromIccEfForSubscriber(int subId, String callingPackage) { in getAllMessagesFromIccEfForSubscriber() argument
120 if (callingPackage == null) { in getAllMessagesFromIccEfForSubscriber()
[all …]
DSmsPermissions.java61 boolean persistMessageForNonDefaultSmsApp, String callingPackage, in checkCallingCanSendText() argument
74 return checkCallingCanSendSms(callingPackage, callingAttributionTag, message); in checkCallingCanSendText()
101 public boolean checkCallingCanSendSms(String callingPackage, String callingAttributionTag, in checkCallingCanSendSms() argument
104 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingCanSendSms()
115 public boolean checkCallingOrSelfCanSendSms(String callingPackage, String callingAttributionTag, in checkCallingOrSelfCanSendSms() argument
118 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingOrSelfCanSendSms()
132 public boolean checkCallingOrSelfCanGetSmscAddress(String callingPackage, String message) { in checkCallingOrSelfCanGetSmscAddress() argument
134 if (!isCallerDefaultSmsPackage(callingPackage)) { in checkCallingOrSelfCanGetSmscAddress()
151 public boolean checkCallingOrSelfCanSetSmscAddress(String callingPackage, String message) { in checkCallingOrSelfCanSetSmscAddress() argument
153 if (!isCallerDefaultSmsPackage(callingPackage)) { in checkCallingOrSelfCanSetSmscAddress()
/frameworks/base/core/java/android/app/usage/
DIUsageStatsManager.aidl33 String callingPackage); in queryUsageStats() argument
36 String callingPackage); in queryConfigurationStats() argument
38 String callingPackage); in queryEventStats() argument
39 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument
40 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage() argument
41 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser() argument
42 …entsForPackageForUser(long beginTime, long endTime, int userId, String pkg, String callingPackage); in queryEventsForPackageForUser() argument
46 boolean isAppInactive(String packageName, int userId, String callingPackage); in isAppInactive() argument
50 int getAppStandbyBucket(String packageName, String callingPackage, int userId); in getAppStandbyBucket() argument
52 ParceledListSlice getAppStandbyBuckets(String callingPackage, int userId); in getAppStandbyBuckets() argument
[all …]
DIStorageStatsManager.aidl26 boolean isQuotaSupported(String volumeUuid, String callingPackage); in isQuotaSupported() argument
27 boolean isReservedSupported(String volumeUuid, String callingPackage); in isReservedSupported() argument
28 long getTotalBytes(String volumeUuid, String callingPackage); in getTotalBytes() argument
29 long getFreeBytes(String volumeUuid, String callingPackage); in getFreeBytes() argument
30 long getCacheBytes(String volumeUuid, String callingPackage); in getCacheBytes() argument
31 long getCacheQuotaBytes(String volumeUuid, int uid, String callingPackage); in getCacheQuotaBytes() argument
32 …ats queryStatsForPackage(String volumeUuid, String packageName, int userId, String callingPackage); in queryStatsForPackage() argument
33 StorageStats queryStatsForUid(String volumeUuid, int uid, String callingPackage); in queryStatsForUid() argument
34 StorageStats queryStatsForUser(String volumeUuid, int userId, String callingPackage); in queryStatsForUser() argument
35 …ternalStorageStats queryExternalStatsForUser(String volumeUuid, int userId, String callingPackage); in queryExternalStatsForUser() argument
[all …]
/frameworks/base/telecomm/java/com/android/internal/telecom/
DITelecomService.aidl38 void showInCallScreen(boolean showDialpad, String callingPackage, String callingFeatureId); in showInCallScreen() argument
43 PhoneAccountHandle getDefaultOutgoingPhoneAccount(in String uriScheme, String callingPackage, in getDefaultOutgoingPhoneAccount() argument
49 PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(String callingPackage); in getUserSelectedOutgoingPhoneAccount() argument
60 boolean includeDisabledAccounts, String callingPackage, String callingFeatureId); in getCallCapablePhoneAccounts() argument
65 List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage, in getSelfManagedPhoneAccounts() argument
72 String callingPackage); in getPhoneAccountsSupportingScheme() argument
128 String callingPackage, String callingFeatureId); in isVoiceMailNumber() argument
133 String getVoiceMailNumber(in PhoneAccountHandle accountHandle, String callingPackage, in getVoiceMailNumber() argument
139 String getLine1Number(in PhoneAccountHandle accountHandle, String callingPackage, in getLine1Number() argument
174 void silenceRinger(String callingPackage); in silenceRinger() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DILauncherApps.aidl46 void addOnAppsChangedListener(String callingPackage, in IOnAppsChangedListener listener); in addOnAppsChangedListener() argument
49 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities() argument
51 String callingPackage, in ComponentName component, in UserHandle user); in resolveActivity() argument
52 void startSessionDetailsActivityAsUser(in IApplicationThread caller, String callingPackage, in startSessionDetailsActivityAsUser() argument
55 void startActivityAsUser(in IApplicationThread caller, String callingPackage, in startActivityAsUser() argument
58 void showAppDetailsAsUser(in IApplicationThread caller, String callingPackage, in showAppDetailsAsUser() argument
61 boolean isPackageEnabled(String callingPackage, String packageName, in UserHandle user); in isPackageEnabled() argument
64 String callingPackage, in ComponentName component, in UserHandle user); in isActivityEnabled() argument
66 String callingPackage, String packageName, int flags, in UserHandle user); in getApplicationInfo() argument
68 LauncherApps.AppUsageLimit getAppUsageLimit(String callingPackage, String packageName, in getAppUsageLimit() argument
[all …]
DShortcutServiceInternal.java48 @NonNull String callingPackage, long changedSince, in getShortcuts() argument
54 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, in isPinnedByCaller() argument
58 @NonNull String callingPackage, @NonNull String packageName, in pinShortcuts() argument
62 int launcherUserId, @NonNull String callingPackage, in createShortcutIntents() argument
71 public abstract int getShortcutIconResId(int launcherUserId, @NonNull String callingPackage, in getShortcutIconResId() argument
75 @NonNull String callingPackage, in getShortcutIconFd() argument
79 @NonNull String callingPackage, int callingPid, int callingUid); in hasShortcutHostPermission() argument
84 public abstract boolean requestPinAppWidget(@NonNull String callingPackage, in requestPinAppWidget() argument
90 public abstract boolean isForegroundDefaultLauncher(@NonNull String callingPackage, in isForegroundDefaultLauncher() argument
94 @NonNull String callingPackage, @NonNull String packageName, in cacheShortcuts() argument
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/
DIEuiccCardController.aidl44 oneway void getAllProfiles(String callingPackage, String cardId, in getAllProfiles() argument
46 oneway void getProfile(String callingPackage, String cardId, String iccid, in getProfile() argument
48 oneway void disableProfile(String callingPackage, String cardId, String iccid, boolean refresh, in disableProfile() argument
50 oneway void switchToProfile(String callingPackage, String cardId, String iccid, boolean refresh, in switchToProfile() argument
52 oneway void setNickname(String callingPackage, String cardId, String iccid, String nickname, in setNickname() argument
54 oneway void deleteProfile(String callingPackage, String cardId, String iccid, in deleteProfile() argument
56 …oneway void resetMemory(String callingPackage, String cardId, int options, in IResetMemoryCallback… in resetMemory() argument
57 oneway void getDefaultSmdpAddress(String callingPackage, String cardId, in getDefaultSmdpAddress() argument
59 oneway void getSmdsAddress(String callingPackage, String cardId, in getSmdsAddress() argument
61 oneway void setDefaultSmdpAddress(String callingPackage, String cardId, String address, in setDefaultSmdpAddress() argument
[all …]
DIEuiccController.aidl32 String callingPackage, in PendingIntent callbackIntent); in getDownloadableSubscriptionMetadata() argument
34 String callingPackage, in PendingIntent callbackIntent); in getDefaultDownloadableSubscriptionList() argument
35 String getEid(int cardId, String callingPackage); in getEid() argument
38 boolean switchAfterDownload, String callingPackage, in Bundle resolvedBundle, in downloadSubscription() argument
41 oneway void deleteSubscription(int cardId, int subscriptionId, String callingPackage, in deleteSubscription() argument
43 oneway void switchToSubscription(int cardId, int subscriptionId, String callingPackage, in switchToSubscription() argument
46 String callingPackage, in PendingIntent callbackIntent); in updateSubscriptionNickname() argument
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl38 ParceledListSlice startListening(IAppWidgetHost host, String callingPackage, int hostId, in startListening() argument
40 void stopListening(String callingPackage, int hostId); in stopListening() argument
41 int allocateAppWidgetId(String callingPackage, int hostId); in allocateAppWidgetId() argument
42 void deleteAppWidgetId(String callingPackage, int appWidgetId); in deleteAppWidgetId() argument
46 RemoteViews getAppWidgetViews(String callingPackage, int appWidgetId); in getAppWidgetViews() argument
47 int[] getAppWidgetIdsForHost(String callingPackage, int hostId); in getAppWidgetIdsForHost() argument
48 IntentSender createAppWidgetConfigIntentSender(String callingPackage, int appWidgetId, in createAppWidgetConfigIntentSender() argument
54 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument
55 void updateAppWidgetOptions(String callingPackage, int appWidgetId, in Bundle extras); in updateAppWidgetOptions() argument
56 Bundle getAppWidgetOptions(String callingPackage, int appWidgetId); in getAppWidgetOptions() argument
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java91 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState() argument
94 callingPackage, callingFeatureId, message); in checkCallingOrSelfReadPhoneState()
99 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow() argument
102 return checkCallingOrSelfReadPhoneState(context, subId, callingPackage, in checkCallingOrSelfReadPhoneStateNoThrow()
131 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() argument
157 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneState()
189 String callingPackage, @Nullable String callingFeatureId, String message) { in checkReadPhoneStateOnAnyActiveSub() argument
210 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage, in checkReadPhoneStateOnAnyActiveSub()
232 String callingPackage, @Nullable String callingFeatureId, String message) { in checkCallingOrSelfReadDeviceIdentifiers() argument
234 SubscriptionManager.INVALID_SUBSCRIPTION_ID, callingPackage, callingFeatureId, in checkCallingOrSelfReadDeviceIdentifiers()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java193 public String getEid(int cardId, String callingPackage) { in getEid() argument
196 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getEid() local
204 && !canManageSubscriptionOnTargetSim(cardId, callingPackage)) { in getEid()
267 DownloadableSubscription subscription, String callingPackage, in getDownloadableSubscriptionMetadata() argument
270 subscription, false /* forceDeactivateSim */, callingPackage, callbackIntent); in getDownloadableSubscriptionMetadata()
369 boolean forceDeactivateSim, String callingPackage, PendingIntent callbackIntent) { in getDownloadableSubscriptionMetadata() argument
373 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDownloadableSubscriptionMetadata() local
379 token, subscription, callingPackage, callbackIntent)); in getDownloadableSubscriptionMetadata()
394 String callingPackage, in GetMetadataCommandCallback() argument
398 mCallingPackage = callingPackage; in GetMetadataCommandCallback()
[all …]
DEuiccOperation.java116 DownloadableSubscription subscription, String callingPackage) { in forGetMetadataDeactivateSim() argument
119 callingPackage); in forGetMetadataDeactivateSim()
129 String callingPackage) { in forDownloadDeactivateSim() argument
131 subscription, 0 /* subscriptionId */, switchAfterDownload, callingPackage); in forDownloadDeactivateSim()
140 String callingPackage) { in forDownloadNoPrivileges() argument
142 subscription, 0 /* subscriptionId */, switchAfterDownload, callingPackage); in forDownloadNoPrivileges()
151 String callingPackage) { in forDownloadNoPrivilegesOrDeactivateSimCheckMetadata() argument
154 switchAfterDownload, callingPackage); in forDownloadNoPrivilegesOrDeactivateSimCheckMetadata()
168 String callingPackage) { in forDownloadConfirmationCode() argument
170 subscription, 0 /* subscriptionId */, switchAfterDownload, callingPackage); in forDownloadConfirmationCode()
[all …]
DEuiccCardController.java189 private void checkCallingPackage(String callingPackage) { in checkCallingPackage() argument
191 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in checkCallingPackage() local
192 mCallingPackage = callingPackage; in checkCallingPackage()
221 public void getAllProfiles(String callingPackage, String cardId, in getAllProfiles() argument
224 checkCallingPackage(callingPackage); in getAllProfiles()
270 public void getProfile(String callingPackage, String cardId, String iccid, in getProfile() argument
273 checkCallingPackage(callingPackage); in getProfile()
318 public void disableProfile(String callingPackage, String cardId, String iccid, boolean refresh, in disableProfile() argument
321 checkCallingPackage(callingPackage); in disableProfile()
366 public void switchToProfile(String callingPackage, String cardId, String iccid, boolean refresh, in switchToProfile() argument
[all …]
/frameworks/native/libs/binder/
DAppOpsManager.cpp77 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp() argument
81 ? service->checkOperation(op, uid, callingPackage) in checkOp()
86 const String16& callingPackage) { in checkAudioOpNoThrow() argument
89 ? service->checkAudioOperation(op, usage, uid, callingPackage) in checkAudioOpNoThrow()
93 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() argument
94 return noteOp(op, uid, callingPackage, std::unique_ptr<String16>(), in noteOp()
98 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage, in noteOp() argument
102 ? service->noteOperation(op, uid, callingPackage, attributionTag, in noteOp()
109 int32_t AppOpsManager::startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage, in startOpNoThrow() argument
111 return startOpNoThrow(op, uid, callingPackage, startIfModeDefault, std::unique_ptr<String16>(), in startOpNoThrow()
[all …]
/frameworks/base/core/java/android/content/
DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage, int userId); in setPrimaryClip() argument
30 void clearPrimaryClip(String callingPackage, int userId); in clearPrimaryClip() argument
32 ClipDescription getPrimaryClipDescription(String callingPackage, int userId); in getPrimaryClipDescription() argument
33 boolean hasPrimaryClip(String callingPackage, int userId); in hasPrimaryClip() argument
35 String callingPackage, int userId); in addPrimaryClipChangedListener() argument
37 String callingPackage, int userId); in removePrimaryClipChangedListener() argument
42 boolean hasClipboardText(String callingPackage, int userId); in hasClipboardText() argument
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java206 public void addOnAppsChangedListener(String callingPackage, IOnAppsChangedListener listener) in addOnAppsChangedListener() argument
208 verifyCallingPackage(callingPackage); in addOnAppsChangedListener()
221 callingPackage, injectBinderCallingPid(), injectBinderCallingUid())); in addOnAppsChangedListener()
246 public void registerPackageInstallerCallback(String callingPackage, in registerPackageInstallerCallback() argument
248 verifyCallingPackage(callingPackage); in registerPackageInstallerCallback()
256 public ParceledListSlice<SessionInfo> getAllSessions(String callingPackage) { in getAllSessions() argument
257 verifyCallingPackage(callingPackage); in getAllSessions()
344 void verifyCallingPackage(String callingPackage) { in verifyCallingPackage() argument
347 packageUid = AppGlobals.getPackageManager().getPackageUid(callingPackage, in verifyCallingPackage()
355 Log.e(TAG, "Package not found: " + callingPackage); in verifyCallingPackage()
[all …]
DCrossProfileAppsServiceImpl.java93 public List<UserHandle> getTargetUserProfiles(String callingPackage) { in getTargetUserProfiles() argument
94 Objects.requireNonNull(callingPackage); in getTargetUserProfiles()
96 verifyCallingPackage(callingPackage); in getTargetUserProfiles()
100 .setStrings(new String[] {callingPackage}) in getTargetUserProfiles()
104 callingPackage, mInjector.getCallingUserId()); in getTargetUserProfiles()
110 String callingPackage, in startActivityAsUser() argument
115 Objects.requireNonNull(callingPackage); in startActivityAsUser()
118 verifyCallingPackage(callingPackage); in startActivityAsUser()
122 .setStrings(new String[] {callingPackage}) in startActivityAsUser()
130 callingPackage, callerUserId); in startActivityAsUser()
[all …]
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java270 private boolean isInternalSysWindowAppWithWindowFocus(String callingPackage) { in isInternalSysWindowAppWithWindowFocus() argument
273 callingPackage) == PackageManager.PERMISSION_GRANTED) { in isInternalSysWindowAppWithWindowFocus()
352 public void setPrimaryClip(ClipData clip, String callingPackage, @UserIdInt int userId) { in setPrimaryClip() argument
357 final int intendingUid = getIntendingUid(callingPackage, userId); in setPrimaryClip()
359 if (!clipboardAccessAllowed(AppOpsManager.OP_WRITE_CLIPBOARD, callingPackage, in setPrimaryClip()
369 public void clearPrimaryClip(String callingPackage, @UserIdInt int userId) { in clearPrimaryClip() argument
371 final int intendingUid = getIntendingUid(callingPackage, userId); in clearPrimaryClip()
373 if (!clipboardAccessAllowed(AppOpsManager.OP_WRITE_CLIPBOARD, callingPackage, in clearPrimaryClip()
397 public ClipDescription getPrimaryClipDescription(String callingPackage, in getPrimaryClipDescription() argument
400 final int intendingUid = getIntendingUid(callingPackage, userId); in getPrimaryClipDescription()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java166 private void enforceStatsPermission(int callingUid, String callingPackage) { in enforceStatsPermission() argument
167 final String errMsg = checkStatsPermission(callingUid, callingPackage, true); in enforceStatsPermission()
173 private String checkStatsPermission(int callingUid, String callingPackage, boolean noteOp) { in checkStatsPermission() argument
176 mode = mAppOps.noteOp(AppOpsManager.OP_GET_USAGE_STATS, callingUid, callingPackage); in checkStatsPermission()
178 mode = mAppOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, callingUid, callingPackage); in checkStatsPermission()
189 + "; callingPackage=" + callingPackage + ", callingUid=" + callingUid; in checkStatsPermission()
192 return "Package " + callingPackage + " from UID " + callingUid in checkStatsPermission()
198 public boolean isQuotaSupported(String volumeUuid, String callingPackage) { in isQuotaSupported() argument
207 public boolean isReservedSupported(String volumeUuid, String callingPackage) { in isReservedSupported() argument
217 public long getTotalBytes(String volumeUuid, String callingPackage) { in getTotalBytes() argument
[all …]

12345678