/frameworks/base/test-runner/src/android/test/mock/ |
MockContentProvider.java | 56 public ContentProviderResult[] applyBatch(String callingPackage, 63 public int bulkInsert(String callingPackage, Uri url, ContentValues[] initialValues) 69 public int delete(String callingPackage, Uri url, String selection, String[] selectionArgs) 80 public Uri insert(String callingPackage, Uri url, ContentValues initialValues) 87 String callingPackage, Uri url, String mode, ICancellationSignal signal) 94 String callingPackage, Uri url, String mode, ICancellationSignal signal, 100 public Cursor query(String callingPackage, Uri url, String[] projection, String selection, 108 public int update(String callingPackage, Uri url, ContentValues values, String selection, 114 public Bundle call(String callingPackage, String method, String request, Bundle args) 130 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url [all...] |
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 92 public boolean isCallerAllowed(Context context, String callingPackage, int callingUid) { 101 callingPackage, PackageManager.GET_SIGNATURES); 103 LogHelper.w(TAG, e, "Package manager can't find package: ", callingPackage); 116 LogHelper.v(TAG, "Signature for caller ", callingPackage, " is not valid: \n" 129 if (callingPackage.equals(info.packageName)) { 138 "expected package for the given certificate. Caller's package is ", callingPackage,
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 92 public boolean isCallerAllowed(Context context, String callingPackage, int callingUid) { 101 callingPackage, PackageManager.GET_SIGNATURES); 103 LogHelper.w(TAG, e, "Package manager can't find package: ", callingPackage); 116 LogHelper.v(TAG, "Signature for caller ", callingPackage, " is not valid: \n" 129 if (callingPackage.equals(info.packageName)) { 138 "expected package for the given certificate. Caller's package is ", callingPackage,
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
PackageValidator.java | 92 public boolean isCallerAllowed(Context context, String callingPackage, int callingUid) { 101 callingPackage, PackageManager.GET_SIGNATURES); 103 LogHelper.w(TAG, e, "Package manager can't find package: ", callingPackage); 116 LogHelper.v(TAG, "Signature for caller ", callingPackage, " is not valid: \n" 129 if (callingPackage.equals(info.packageName)) { 138 "expected package for the given certificate. Caller's package is ", callingPackage,
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsAccess.java | 106 Context context, int callingUid, String callingPackage) { 112 tm.checkCarrierPrivilegesForPackage(callingPackage) == 123 boolean hasAppOpsPermission = hasAppOpsPermission(context, callingUid, callingPackage); 172 Context context, int callingUid, String callingPackage) { 173 if (callingPackage != null) { 178 callingUid, callingPackage);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
PackageValidator.java | 94 public boolean isCallerAllowed(Context context, String callingPackage, int callingUid) { 103 callingPackage, PackageManager.GET_SIGNATURES); 105 Log.w(TAG, "Package manager can't find package: " + callingPackage, e); 118 Log.v(TAG, "Signature for caller " + callingPackage + " is not valid: \n" + signature); 130 if (callingPackage.equals(info.packageName)) { 139 + "package for the given certificate. Caller's package is " + callingPackage
|
/packages/services/Telephony/src/com/android/phone/ |
PhoneInterfaceManager.java | [all...] |
VisualVoicemailSmsFilterConfig.java | 43 public static void enableVisualVoicemailSmsFilter(Context context, String callingPackage, 46 new Editor(context, callingPackage, subId) 54 public static void disableVisualVoicemailSmsFilter(Context context, String callingPackage, 56 new Editor(context, callingPackage, subId)
|
/frameworks/base/core/java/android/app/ |
IAlarmManager.aidl | 32 void set(String callingPackage, int type, long triggerAtTime, long windowLength,
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
SubscriptionControllerMock.java | 112 public SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage) { 116 public SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage) { 124 public List<SubscriptionInfo> getAllSubInfoList(String callingPackage) { 128 public List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage) { 132 public int getActiveSubInfoCount(String callingPackage) { 136 public int getAllSubInfoCount(String callingPackage) { 251 String callingPackage) { 275 public String getSubscriptionProperty(int subId, String propKey, String callingPackage) {
|
TelephonyRegistryMock.java | 40 String callingPackage; 67 return "{callingPackage=" + callingPackage + " binder=" + binder 108 public void addOnSubscriptionsChangedListener(String callingPackage, 129 r.callingPackage = callingPackage;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
LauncherAppsService.java | 152 public void addOnAppsChangedListener(String callingPackage, IOnAppsChangedListener listener) 154 verifyCallingPackage(callingPackage); 167 callingPackage)); 244 void verifyCallingPackage(String callingPackage) { 247 packageUid = mPm.getPackageUidAsUser(callingPackage, 253 Log.e(TAG, "Package not found: " + callingPackage); 360 private void ensureShortcutPermission(@NonNull String callingPackage, UserHandle user) { 361 ensureShortcutPermission(callingPackage, user.getIdentifier()); 364 private void ensureShortcutPermission(@NonNull String callingPackage, int userId) { 365 verifyCallingPackage(callingPackage); [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CarrierAppUtils.java | 72 public synchronized static void disableCarrierAppsUntilPrivileged(String callingPackage, 83 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, 99 public synchronized static void disableCarrierAppsUntilPrivileged(String callingPackage, 109 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, 116 public static void disableCarrierAppsUntilPrivileged(String callingPackage, 159 callingPackage); 177 callingPackage); 197 callingPackage); 218 callingPackage);
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
ProviderUtil.java | 83 * @param callingPackage The package name of the provider caller 86 public static void notifyIfNotDefaultSmsApp(final Uri uri, final String callingPackage, 88 if (TextUtils.equals(callingPackage, Telephony.Sms.getDefaultSmsPackage(context))) { 110 Log.d(TAG, "notifyIfNotDefaultSmsApp - called from " + callingPackage + ", notifying");
|
/frameworks/base/core/java/android/net/ |
INetworkPolicyManager.aidl | 49 NetworkPolicy[] getNetworkPolicies(String callingPackage);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
IccSmsInterfaceManager.java | 194 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) { 200 callingPackage) != AppOpsManager.MODE_ALLOWED) { 247 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) { 254 callingPackage) != AppOpsManager.MODE_ALLOWED) { 285 public List<SmsRawData> getAllMessagesFromIccEf(String callingPackage) { 292 callingPackage) != AppOpsManager.MODE_ALLOWED) { 320 public void sendDataWithSelfPermissions(String callingPackage, String destAddr, String scAddr, 325 sendDataInternal(callingPackage, destAddr, scAddr, destPort, data, sentIntent, 333 public void sendData(String callingPackage, String destAddr, String scAddr, int destPort, 338 sendDataInternal(callingPackage, destAddr, scAddr, destPort, data, sentIntent [all...] |
SubscriptionController.java | 208 * @param callingPackage The package claiming to make the IPC. 213 private boolean canReadPhoneState(String callingPackage, String message) { 226 callingPackage) == AppOpsManager.MODE_ALLOWED; 366 * @param callingPackage The package making the IPC. 369 private int getUnusedColor(String callingPackage) { 370 List<SubscriptionInfo> availableSubInfos = getActiveSubscriptionInfoList(callingPackage); 394 * @param callingPackage The package making the IPC. 398 public SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage) { 399 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfo")) { 433 * @param callingPackage The package making the IPC [all...] |
/frameworks/base/services/core/java/com/android/server/clipboard/ |
ClipboardService.java | 160 public void setPrimaryClip(ClipData clip, String callingPackage) { 167 callingPackage) != AppOpsManager.MODE_ALLOWED) { 266 public ClipDescription getPrimaryClipDescription(String callingPackage) { 269 callingPackage) != AppOpsManager.MODE_ALLOWED) { 277 public boolean hasPrimaryClip(String callingPackage) { 280 callingPackage) != AppOpsManager.MODE_ALLOWED) { 288 String callingPackage) { 291 new ListenerInfo(Binder.getCallingUid(), callingPackage)); 301 public boolean hasClipboardText(String callingPackage) { 304 callingPackage) != AppOpsManager.MODE_ALLOWED) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
Utils.java | 280 String callingPackage) { 283 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { 289 && isAppOppAllowed(appOps, AppOpsManager.OP_COARSE_LOCATION, callingPackage)) { 293 if (isMApp(context, callingPackage)) { 303 if (isForegroundApp(context, callingPackage)) { 345 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) { 346 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage)
|
/frameworks/base/core/java/com/android/internal/app/ |
ConfirmUserCreationActivity.java | 85 final String callingPackage = getCallingPackage(); 86 if (callingPackage == null) { 92 appInfo = getPackageManager().getApplicationInfo(callingPackage, 0);
|
/frameworks/base/services/core/java/com/android/server/vr/ |
VrManagerService.java | 164 final ComponentName callingPackage; 169 ComponentName callingPackage) { 173 this.callingPackage = callingPackage; 179 ComponentName callingPackage, boolean defaultPermissionsGranted) { 183 this.callingPackage = callingPackage; 376 ComponentName callingPackage) { 377 VrManagerService.this.setVrMode(enabled, packageName, userId, callingPackage, false); 382 ComponentName callingPackage) { [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
ActivityStartInterceptor.java | 89 String callingPackage) { 94 mCallingPackage = callingPackage; 210 ActivityInfo aInfo, String callingPackage, int userId) { 220 INTENT_SENDER_ACTIVITY, callingPackage,
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/uiflows/ |
PreProvisioningController.java | 175 public void initiateProvisioning(Intent intent, String callingPackage) { 192 verifyCaller(callingPackage); 221 private void verifyCaller(@NonNull String callingPackage) 223 checkNotNull(callingPackage, 225 if (!callingPackage.equals(mParams.inferDeviceAdminPackageName())) {
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
AppWidgetServiceImpl.java | 745 String callingPackage, int hostId, int[] appWidgetIds) { 753 mSecurityPolicy.enforceCallFromPackage(callingPackage); 760 HostId id = new HostId(Binder.getCallingUid(), hostId, callingPackage); 782 public void stopListening(String callingPackage, int hostId) { 790 mSecurityPolicy.enforceCallFromPackage(callingPackage); [all...] |
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
BlockedNumberProvider.java | 484 final String callingPackage = getCallingPackage(); 485 if (TextUtils.isEmpty(callingPackage)) { 486 Log.w(TAG, "callingPackage not accessible"); 490 if (callingPackage.equals(telecom.getDefaultDialerPackage()) 491 || callingPackage.equals(telecom.getSystemDialerPackage())) { 496 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) { 502 return telephonyManager.checkCarrierPrivilegesForPackage(callingPackage) ==
|