Home
last modified time | relevance | path

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

123

/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneSubInfo.aidl28 String getDeviceId(String callingPackage); in getDeviceId() argument
33 String getNaiForSubscriber(int subId, String callingPackage); in getNaiForSubscriber() argument
39 String getDeviceIdForPhone(int phoneId, String callingPackage); in getDeviceIdForPhone() argument
44 String getImeiForSubscriber(int subId, String callingPackage); in getImeiForSubscriber() argument
50 String getDeviceSvn(String callingPackage); in getDeviceSvn() argument
56 String getDeviceSvnUsingSubId(int subId, String callingPackage); in getDeviceSvnUsingSubId() argument
61 String getSubscriberId(String callingPackage); in getSubscriberId() argument
66 String getSubscriberIdForSubscriber(int subId, String callingPackage); in getSubscriberIdForSubscriber() argument
71 String getGroupIdLevel1(String callingPackage); in getGroupIdLevel1() argument
76 String getGroupIdLevel1ForSubscriber(int subId, String callingPackage); in getGroupIdLevel1ForSubscriber() argument
[all …]
DITelephony.aidl62 void call(String callingPackage, String number); in call() argument
130 boolean isOffhook(String callingPackage); in isOffhook() argument
139 boolean isOffhookForSubscriber(int subId, String callingPackage); in isOffhookForSubscriber() argument
149 boolean isRingingForSubscriber(int subId, String callingPackage); in isRingingForSubscriber() argument
156 boolean isRinging(String callingPackage); in isRinging() argument
163 boolean isIdle(String callingPackage); in isIdle() argument
172 boolean isIdleForSubscriber(int subId, String callingPackage); in isIdleForSubscriber() argument
179 boolean isRadioOn(String callingPackage); in isRadioOn() argument
187 boolean isRadioOnForSubscriber(int subId, String callingPackage); in isRadioOnForSubscriber() argument
394 int getCdmaEriIconIndex(String callingPackage); in getCdmaEriIconIndex() argument
[all …]
DISub.aidl29 List<SubscriptionInfo> getAllSubInfoList(String callingPackage); in getAllSubInfoList() argument
36 int getAllSubInfoCount(String callingPackage); in getAllSubInfoCount() argument
44 SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage); in getActiveSubscriptionInfo() argument
52 SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage); in getActiveSubscriptionInfoForIccId() argument
60 SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIdx, String callingPackage); in getActiveSubscriptionInfoForSimSlotIndex() argument
83 List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage); in getActiveSubscriptionInfoList() argument
89 int getActiveSubInfoCount(String callingPackage); in getActiveSubInfoCount() argument
177 String getSubscriptionProperty(int subId, String propKey, String callingPackage); in getSubscriptionProperty() argument
DCarrierAppUtils.java72 public synchronized static void disableCarrierAppsUntilPrivileged(String callingPackage, in disableCarrierAppsUntilPrivileged() argument
83 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, in disableCarrierAppsUntilPrivileged()
99 public synchronized static void disableCarrierAppsUntilPrivileged(String callingPackage, in disableCarrierAppsUntilPrivileged() argument
109 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, in disableCarrierAppsUntilPrivileged()
116 public static void disableCarrierAppsUntilPrivileged(String callingPackage, in disableCarrierAppsUntilPrivileged() argument
159 callingPackage); in disableCarrierAppsUntilPrivileged()
177 callingPackage); in disableCarrierAppsUntilPrivileged()
197 callingPackage); in disableCarrierAppsUntilPrivileged()
218 callingPackage); in disableCarrierAppsUntilPrivileged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSubInfoController.java59 public String getDeviceId(String callingPackage) { in getDeviceId() argument
61 callingPackage); in getDeviceId()
64 public String getDeviceIdForPhone(int phoneId, String callingPackage) { in getDeviceIdForPhone() argument
65 if (!checkReadPhoneState(callingPackage, "getDeviceId")) { in getDeviceIdForPhone()
80 public String getNaiForSubscriber(int subId, String callingPackage) { in getNaiForSubscriber() argument
83 if (!checkReadPhoneState(callingPackage, "getNai")) { in getNaiForSubscriber()
93 public String getImeiForSubscriber(int subId, String callingPackage) { in getImeiForSubscriber() argument
96 if (!checkReadPhoneState(callingPackage, "getImei")) { in getImeiForSubscriber()
106 public String getDeviceSvn(String callingPackage) { in getDeviceSvn() argument
107 return getDeviceSvnUsingSubId(getDefaultSubscription(), callingPackage); in getDeviceSvn()
[all …]
DUiccSmsController.java57 updateMessageOnIccEfForSubscriber(int subId, String callingPackage, int index, int status, in updateMessageOnIccEfForSubscriber() argument
61 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu); in updateMessageOnIccEfForSubscriber()
70 public boolean copyMessageToIccEfForSubscriber(int subId, String callingPackage, int status, in copyMessageToIccEfForSubscriber() argument
74 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc); in copyMessageToIccEfForSubscriber()
83 public List<SmsRawData> getAllMessagesFromIccEfForSubscriber(int subId, String callingPackage) in getAllMessagesFromIccEfForSubscriber() argument
87 return iccSmsIntMgr.getAllMessagesFromIccEf(callingPackage); in getAllMessagesFromIccEfForSubscriber()
96 public void sendDataForSubscriber(int subId, String callingPackage, String destAddr, in sendDataForSubscriber() argument
101 iccSmsIntMgr.sendData(callingPackage, destAddr, scAddr, destPort, data, in sendDataForSubscriber()
111 public void sendDataForSubscriberWithSelfPermissions(int subId, String callingPackage, in sendDataForSubscriberWithSelfPermissions() argument
116 … iccSmsIntMgr.sendDataWithSelfPermissions(callingPackage, destAddr, scAddr, destPort, data, in sendDataForSubscriberWithSelfPermissions()
[all …]
DIccSmsInterfaceManager.java194 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) { in updateMessageOnIccEf() argument
200 callingPackage) != AppOpsManager.MODE_ALLOWED) { in updateMessageOnIccEf()
247 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) { in copyMessageToIccEf() argument
254 callingPackage) != AppOpsManager.MODE_ALLOWED) { in copyMessageToIccEf()
285 public List<SmsRawData> getAllMessagesFromIccEf(String callingPackage) { in getAllMessagesFromIccEf() argument
292 callingPackage) != AppOpsManager.MODE_ALLOWED) { in getAllMessagesFromIccEf()
320 public void sendDataWithSelfPermissions(String callingPackage, String destAddr, String scAddr, in sendDataWithSelfPermissions() argument
325 sendDataInternal(callingPackage, destAddr, scAddr, destPort, data, sentIntent, in sendDataWithSelfPermissions()
333 public void sendData(String callingPackage, String destAddr, String scAddr, int destPort, in sendData() argument
338 sendDataInternal(callingPackage, destAddr, scAddr, destPort, data, sentIntent, in sendData()
[all …]
/frameworks/base/telecomm/java/com/android/internal/telecom/
DITelecomService.aidl38 void showInCallScreen(boolean showDialpad, String callingPackage); in showInCallScreen() argument
43 PhoneAccountHandle getDefaultOutgoingPhoneAccount(in String uriScheme, String callingPackage); in getDefaultOutgoingPhoneAccount() argument
59 boolean includeDisabledAccounts, String callingPackage); in getCallCapablePhoneAccounts() argument
65 String callingPackage); in getPhoneAccountsSupportingScheme() argument
121 String callingPackage); in isVoiceMailNumber() argument
126 String getVoiceMailNumber(in PhoneAccountHandle accountHandle, String callingPackage); in getVoiceMailNumber() argument
131 String getLine1Number(in PhoneAccountHandle accountHandle, String callingPackage); in getLine1Number() argument
160 void silenceRinger(String callingPackage); in silenceRinger() argument
165 boolean isInCall(String callingPackage); in isInCall() argument
170 boolean isRinging(String callingPackage); in isRinging() argument
[all …]
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl36 ParceledListSlice startListening(IAppWidgetHost host, String callingPackage, int hostId, in startListening() argument
38 void stopListening(String callingPackage, int hostId); in stopListening() argument
39 int allocateAppWidgetId(String callingPackage, int hostId); in allocateAppWidgetId() argument
40 void deleteAppWidgetId(String callingPackage, int appWidgetId); in deleteAppWidgetId() argument
43 RemoteViews getAppWidgetViews(String callingPackage, int appWidgetId); in getAppWidgetViews() argument
44 int[] getAppWidgetIdsForHost(String callingPackage, int hostId); in getAppWidgetIdsForHost() argument
45 IntentSender createAppWidgetConfigIntentSender(String callingPackage, int appWidgetId, in createAppWidgetConfigIntentSender() argument
51 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds() argument
52 void updateAppWidgetOptions(String callingPackage, int appWidgetId, in Bundle extras); in updateAppWidgetOptions() argument
53 Bundle getAppWidgetOptions(String callingPackage, int appWidgetId); in getAppWidgetOptions() argument
[all …]
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java55 public float[] getDeviceTemperatures(String callingPackage, int type, int source) in getDeviceTemperatures() argument
57 enforceHardwarePropertiesRetrievalAllowed(callingPackage); in getDeviceTemperatures()
64 public CpuUsageInfo[] getCpuUsages(String callingPackage) throws SecurityException { in getCpuUsages() argument
65 enforceHardwarePropertiesRetrievalAllowed(callingPackage); in getCpuUsages()
72 public float[] getFanSpeeds(String callingPackage) throws SecurityException { in getFanSpeeds() argument
73 enforceHardwarePropertiesRetrievalAllowed(callingPackage); in getFanSpeeds()
89 private void enforceHardwarePropertiesRetrievalAllowed(String callingPackage) in enforceHardwarePropertiesRetrievalAllowed() argument
94 uid = pm.getPackageUid(callingPackage, 0); in enforceHardwarePropertiesRetrievalAllowed()
105 if (!dpm.isDeviceOwnerApp(callingPackage) && !dpm.isProfileOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
106 && !vrService.isCurrentVrListener(callingPackage, userId) in enforceHardwarePropertiesRetrievalAllowed()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentProvider.java43 public ContentProviderResult[] applyBatch(String callingPackage, in applyBatch() argument
51 public int bulkInsert(String callingPackage, Uri arg0, ContentValues[] arg1) in bulkInsert() argument
58 public Bundle call(String callingPackage, String arg0, String arg1, Bundle arg2) in call() argument
65 public int delete(String callingPackage, Uri arg0, String arg1, String[] arg2) in delete() argument
78 public Uri insert(String callingPackage, Uri arg0, ContentValues arg1) throws RemoteException { in insert() argument
85 String callingPackage, Uri arg0, String arg1, ICancellationSignal signal) in openAssetFile() argument
93 String callingPackage, Uri arg0, String arg1, ICancellationSignal signal, IBinder token) in openFile() argument
100 public Cursor query(String callingPackage, Uri arg0, String[] arg1, String arg2, String[] arg3, in query() argument
107 public int update(String callingPackage, Uri arg0, ContentValues arg1, String arg2, in update() argument
126 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri arg0, String arg1, in openTypedAssetFile() argument
/frameworks/base/test-runner/src/android/test/mock/
DMockIContentProvider.java44 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) { in bulkInsert() argument
49 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
59 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
65 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile() argument
71 String callingPackage, Uri uri, String mode, ICancellationSignal signal) { in openAssetFile() argument
75 public ContentProviderResult[] applyBatch(String callingPackage, in applyBatch() argument
80 public Cursor query(String callingPackage, Uri url, String[] projection, String selection, in query() argument
91 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update() argument
96 public Bundle call(String callingPackage, String method, String request, Bundle args) in call() argument
109 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, String mimeType, in openTypedAssetFile() argument
DMockContentProvider.java56 public ContentProviderResult[] applyBatch(String callingPackage, in applyBatch() argument
63 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) in bulkInsert() argument
69 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) in delete() argument
80 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) in insert() argument
87 String callingPackage, Uri url, String mode, ICancellationSignal signal) in openAssetFile() argument
94 String callingPackage, Uri url, String mode, ICancellationSignal signal, in openFile() argument
100 public Cursor query(String callingPackage, Uri url, String[] projection, String selection, in query() argument
108 public int update(String callingPackage, Uri url, ContentValues values, String selection, in update() argument
114 public Bundle call(String callingPackage, String method, String request, Bundle args) in call() argument
130 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, in openTypedAssetFile() argument
/frameworks/base/core/java/android/app/
DIWallpaperManager.aidl45 ParcelFileDescriptor setWallpaper(String name, in String callingPackage, in setWallpaper() argument
52 void setWallpaperComponentChecked(in ComponentName name, in String callingPackage, int userId); in setWallpaperComponentChecked() argument
80 void clearWallpaper(in String callingPackage, int which, int userId); in clearWallpaper() argument
91 void setDimensionHints(in int width, in int height, in String callingPackage); in setDimensionHints() argument
106 void setDisplayPadding(in Rect padding, in String callingPackage); in setDisplayPadding() argument
121 boolean isWallpaperSupported(in String callingPackage); in isWallpaperSupported() argument
126 boolean isSetWallpaperAllowed(in String callingPackage); in isSetWallpaperAllowed() argument
/frameworks/base/core/java/android/content/pm/
DShortcutServiceInternal.java43 @NonNull String callingPackage, long changedSince, in getShortcuts() argument
49 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, in isPinnedByCaller() argument
53 @NonNull String callingPackage, @NonNull String packageName, in pinShortcuts() argument
57 int launcherUserId, @NonNull String callingPackage, in createShortcutIntents() argument
62 public abstract int getShortcutIconResId(int launcherUserId, @NonNull String callingPackage, in getShortcutIconResId() argument
66 @NonNull String callingPackage, in getShortcutIconFd() argument
70 @NonNull String callingPackage); in hasShortcutHostPermission() argument
DILauncherApps.aidl38 void addOnAppsChangedListener(String callingPackage, in IOnAppsChangedListener listener); in addOnAppsChangedListener() argument
50 ParceledListSlice getShortcuts(String callingPackage, long changedSince, String packageName, in getShortcuts() argument
52 void pinShortcuts(String callingPackage, String packageName, in List<String> shortcutIds, in pinShortcuts() argument
54 boolean startShortcut(String callingPackage, String packageName, String id, in startShortcut() argument
57 int getShortcutIconResId(String callingPackage, String packageName, String id, in getShortcutIconResId() argument
59 ParcelFileDescriptor getShortcutIconFd(String callingPackage, String packageName, String id, in getShortcutIconFd() argument
62 boolean hasShortcutHostPermission(String callingPackage); in hasShortcutHostPermission() argument
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractor.aidl29 IVoiceInteractorRequest startConfirmation(String callingPackage, in startConfirmation() argument
31 IVoiceInteractorRequest startPickOption(String callingPackage, in startPickOption() argument
34 IVoiceInteractorRequest startCompleteVoice(String callingPackage, in startCompleteVoice() argument
36 IVoiceInteractorRequest startAbortVoice(String callingPackage, in startAbortVoice() argument
38 IVoiceInteractorRequest startCommand(String callingPackage, in startCommand() argument
40 boolean[] supportsCommands(String callingPackage, in String[] commands); in supportsCommands() argument
/frameworks/base/core/java/android/content/
DIClipboard.aidl29 void setPrimaryClip(in ClipData clip, String callingPackage); in setPrimaryClip() argument
31 ClipDescription getPrimaryClipDescription(String callingPackage); in getPrimaryClipDescription() argument
32 boolean hasPrimaryClip(String callingPackage); in hasPrimaryClip() argument
34 String callingPackage); in addPrimaryClipChangedListener() argument
40 boolean hasClipboardText(String callingPackage); in hasClipboardText() argument
/frameworks/native/libs/binder/
DAppOpsManager.cpp68 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp() argument
71 return service != NULL ? service->checkOperation(op, uid, callingPackage) : MODE_IGNORED; in checkOp()
74 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() argument
76 return service != NULL ? service->noteOperation(op, uid, callingPackage) : MODE_IGNORED; in noteOp()
79 int32_t AppOpsManager::startOp(int32_t op, int32_t uid, const String16& callingPackage) { in startOp() argument
81 return service != NULL ? service->startOperation(getToken(service), op, uid, callingPackage) in startOp()
85 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) { in finishOp() argument
88 service->finishOperation(getToken(service), op, uid, callingPackage); in finishOp()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java152 public void addOnAppsChangedListener(String callingPackage, IOnAppsChangedListener listener) in addOnAppsChangedListener() argument
154 verifyCallingPackage(callingPackage); in addOnAppsChangedListener()
167 callingPackage)); in addOnAppsChangedListener()
244 void verifyCallingPackage(String callingPackage) { in verifyCallingPackage() argument
247 packageUid = mPm.getPackageUidAsUser(callingPackage, in verifyCallingPackage()
253 Log.e(TAG, "Package not found: " + callingPackage); in verifyCallingPackage()
360 private void ensureShortcutPermission(@NonNull String callingPackage, UserHandle user) { in ensureShortcutPermission() argument
361 ensureShortcutPermission(callingPackage, user.getIdentifier()); in ensureShortcutPermission()
364 private void ensureShortcutPermission(@NonNull String callingPackage, int userId) { in ensureShortcutPermission() argument
365 verifyCallingPackage(callingPackage); in ensureShortcutPermission()
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl43 String callingPackage, String caller); in adjustSuggestedStreamVolume() argument
45 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument
47 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument
55 void setMasterMute(boolean mute, int flags, String callingPackage, int userId); in setMasterMute() argument
65 void setMicrophoneMute(boolean on, String callingPackage, int userId); in setMicrophoneMute() argument
83 void setMode(int mode, IBinder cb, String callingPackage); in setMode() argument
148 void disableSafeMediaVolume(String callingPackage); in disableSafeMediaVolume() argument
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java106 Context context, int callingUid, String callingPackage) { in checkAccessLevel() argument
112 tm.checkCarrierPrivilegesForPackage(callingPackage) == in checkAccessLevel()
123 boolean hasAppOpsPermission = hasAppOpsPermission(context, callingUid, callingPackage); in checkAccessLevel()
172 Context context, int callingUid, String callingPackage) { in hasAppOpsPermission() argument
173 if (callingPackage != null) { in hasAppOpsPermission()
178 callingUid, callingPackage); in hasAppOpsPermission()
/frameworks/base/core/java/android/os/
DIHardwarePropertiesManager.aidl25 float[] getDeviceTemperatures(String callingPackage, int type, int source); in getDeviceTemperatures() argument
26 CpuUsageInfo[] getCpuUsages(String callingPackage); in getCpuUsages() argument
27 float[] getFanSpeeds(String callingPackage); in getFanSpeeds() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java112 public SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage) { in getActiveSubscriptionInfo() argument
116 public SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage) { in getActiveSubscriptionInfoForIccId() argument
124 public List<SubscriptionInfo> getAllSubInfoList(String callingPackage) { in getAllSubInfoList() argument
128 public List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage) { in getActiveSubscriptionInfoList() argument
132 public int getActiveSubInfoCount(String callingPackage) { in getActiveSubInfoCount() argument
136 public int getAllSubInfoCount(String callingPackage) { in getAllSubInfoCount() argument
251 String callingPackage) { in getSubInfoUsingSlotIdWithCheck() argument
275 public String getSubscriptionProperty(int subId, String propKey, String callingPackage) { in getSubscriptionProperty() argument
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DPackageValidator.java94 public boolean isCallerAllowed(Context context, String callingPackage, int callingUid) { in isCallerAllowed() argument
103 callingPackage, PackageManager.GET_SIGNATURES); in isCallerAllowed()
105 Log.w(TAG, "Package manager can't find package: " + callingPackage, e); in isCallerAllowed()
118 Log.v(TAG, "Signature for caller " + callingPackage + " is not valid: \n" + signature); in isCallerAllowed()
130 if (callingPackage.equals(info.packageName)) { in isCallerAllowed()
139 + "package for the given certificate. Caller's package is " + callingPackage in isCallerAllowed()

123