HomeSort by relevance Sort by last modified time
    Searched defs:callingPackage (Results 1 - 25 of 51) sorted by null

1 2 3

  /frameworks/base/core/java/android/content/pm/
InstantAppRequest.java 34 public final String callingPackage;
45 String resolvedType, String callingPackage, int userId, Bundle verificationBundle,
50 this.callingPackage = callingPackage;
  /packages/providers/TvProvider/tests/src/com/android/providers/tv/
TvProviderForTesting.java 27 String callingPackage;
34 if (callingPackage != null) {
35 return callingPackage;
  /frameworks/native/libs/binder/
AppOpsManager.cpp 88 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage)
92 ? service->checkOperation(op, uid, callingPackage)
96 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) {
99 ? service->noteOperation(op, uid, callingPackage)
103 int32_t AppOpsManager::startOp(int32_t op, int32_t uid, const String16& callingPackage) {
106 ? service->startOperation(getToken(service), op, uid, callingPackage)
110 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) {
113 service->finishOperation(getToken(service), op, uid, 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/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DeviceChooserActivity.java 107 String callingPackage = Preconditions.checkStringNotEmpty(
111 packageManager.getApplicationInfo(callingPackage, 0));
  /frameworks/base/services/core/java/com/android/server/am/
VrController.java 164 ComponentName callingPackage;
172 callingPackage = record.info.getComponentName();
184 vrService.setVrMode(vrMode, requestedPackage, userId, processId, callingPackage);
  /packages/apps/DocumentsUI/src/com/android/documentsui/base/
Shared.java 191 String callingPackage = activity.getCallingPackage();
195 activity.getPackageManager().getApplicationInfo(callingPackage, 0);
200 callingPackage = extra;
209 return callingPackage;
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
InstallStart.java 56 String callingPackage = getCallingPackage();
61 if (callingPackage == null && sessionId != -1) {
64 callingPackage = (sessionInfo != null) ? sessionInfo.getInstallerPackageName() : null;
67 final ApplicationInfo sourceInfo = getSourceInfo(callingPackage);
99 nextActivity.putExtra(PackageInstallerActivity.EXTRA_CALLING_PACKAGE, callingPackage);
171 private ApplicationInfo getSourceInfo(@Nullable String callingPackage) {
172 if (callingPackage != null) {
174 return getPackageManager().getApplicationInfo(callingPackage, 0);
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
SQLiteContentProvider.java 305 String callingPackage = getCallingPackage();
306 mCallingPackage.set(callingPackage);
  /packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
UserDictionaryProvider.java 325 String callingPackage = getCallingPackage();
333 && imeInfo.getPackageName().equals(callingPackage)) {
343 && scInfo.getPackageName().equals(callingPackage)) {
  /frameworks/base/services/companion/java/com/android/server/companion/
CompanionDeviceManagerService.java 214 String callingPackage) throws RemoteException {
217 + ", callingPackage = " + callingPackage + ")");
221 checkCallerIsSystemOr(callingPackage);
223 checkUsesFeature(callingPackage, userId);
228 createServiceConnection(request, callback, callingPackage),
239 String callingPackage) {
242 && Objects.equals(callingPackage, mCallingPackage)) {
248 public List<String> getAssociations(String callingPackage, int userId)
250 checkCallerIsSystemOr(callingPackage, userId)
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
UiccSmsController.java 61 updateMessageOnIccEfForSubscriber(int subId, String callingPackage, int index, int status,
65 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu);
74 public boolean copyMessageToIccEfForSubscriber(int subId, String callingPackage, int status,
78 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc);
87 public List<SmsRawData> getAllMessagesFromIccEfForSubscriber(int subId, String callingPackage)
91 return iccSmsIntMgr.getAllMessagesFromIccEf(callingPackage);
100 public void sendDataForSubscriber(int subId, String callingPackage, String destAddr,
105 iccSmsIntMgr.sendData(callingPackage, destAddr, scAddr, destPort, data,
115 public void sendDataForSubscriberWithSelfPermissions(int subId, String callingPackage,
120 iccSmsIntMgr.sendDataWithSelfPermissions(callingPackage, destAddr, scAddr, destPort, data
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
TelephonyRegistryMock.java 40 String callingPackage;
67 return "{callingPackage=" + callingPackage + " binder=" + binder
108 public void addOnSubscriptionsChangedListener(String callingPackage,
129 r.callingPackage = callingPackage;
  /packages/services/Telecomm/src/com/android/server/telecom/
TelecomServiceImpl.java 86 String callingPackage) {
90 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) {
153 boolean includeDisabledAccounts, String callingPackage) {
156 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) {
178 public List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage) {
181 if (!canReadPhoneState(callingPackage, "Requires READ_PHONE_STATE permission.")) {
204 String callingPackage) {
212 "getPhoneAccountsSupportingScheme: " + callingPackage);
504 String callingPackage) {
508 if (!canReadPhoneState(callingPackage, "isVoiceMailNumber"))
    [all...]
  /frameworks/base/services/usage/java/com/android/server/usage/
StorageStatsService.java 139 private void enforcePermission(int callingUid, String callingPackage) {
141 callingUid, callingPackage);
150 throw new SecurityException("Package " + callingPackage + " from UID " + callingUid
156 public boolean isQuotaSupported(String volumeUuid, String callingPackage) {
157 enforcePermission(Binder.getCallingUid(), callingPackage);
167 public long getTotalBytes(String volumeUuid, String callingPackage) {
183 public long getFreeBytes(String volumeUuid, String callingPackage) {
198 if (isQuotaSupported(volumeUuid, callingPackage)) {
199 final long cacheTotal = getCacheBytes(volumeUuid, callingPackage);
213 public long getCacheBytes(String volumeUuid, String 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) ==
  /frameworks/base/services/core/java/com/android/server/pm/
LauncherAppsService.java 154 public void addOnAppsChangedListener(String callingPackage, IOnAppsChangedListener listener)
156 verifyCallingPackage(callingPackage);
169 callingPackage));
221 String callingPackage, UserHandle targetUser, String message) {
222 return canAccessProfile(callingPackage, targetUser.getIdentifier(), message);
235 private boolean canAccessProfile(String callingPackage, int targetUserId, String message) {
244 Slog.w(TAG, message + " by " + callingPackage + " for another profile "
262 void verifyCallingPackage(String callingPackage) {
265 packageUid = AppGlobals.getPackageManager().getPackageUid(callingPackage,
273 Log.e(TAG, "Package not found: " + callingPackage);
    [all...]
  /frameworks/base/tests/net/java/com/android/server/net/
NetworkStatsServiceTest.java     [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
WifiAwareServiceImplTest.java 154 String callingPackage = "com.google.somePackage";
156 mDut.connect(mBinderMock, callingPackage, mCallbackMock,
160 eq(callingPackage), eq(mCallbackMock), eq(configRequest), eq(false));
623 String callingPackage = "com.google.somePackage";
625 mDut.connect(mBinderMock, callingPackage, mCallbackMock, null, false);
629 eq(callingPackage), eq(mCallbackMock), eq(new ConfigRequest.Builder().build()),
WifiAwareDataPathStateManagerTest.java     [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
EuiccController.java 173 String callingPackage, PendingIntent callbackIntent) {
175 subscription, false /* forceDeactivateSim */, callingPackage, callbackIntent);
179 boolean forceDeactivateSim, String callingPackage, PendingIntent callbackIntent) {
183 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage);
189 token, subscription, callingPackage, callbackIntent));
204 String callingPackage,
208 mCallingPackage = callingPackage;
255 boolean switchAfterDownload, String callingPackage, PendingIntent callbackIntent) {
256 downloadSubscription(subscription, switchAfterDownload, callingPackage,
261 boolean switchAfterDownload, String callingPackage, boolean forceDeactivateSim
    [all...]
  /packages/apps/Settings/src/com/android/settings/
DeviceAdminAdd.java 168 String callingPackage = getCallingPackage();
169 if (callingPackage == null || !callingPackage.equals(who.getPackageName())) {
175 PackageInfo packageInfo = packageManager.getPackageInfo(callingPackage, 0);
182 Log.e(TAG, "Cannot find the package " + callingPackage);
  /frameworks/base/wifi/java/android/net/wifi/p2p/
WifiP2pManager.java     [all...]
  /frameworks/base/services/core/java/com/android/server/
TelephonyRegistry.java 89 String callingPackage;
116 return "{callingPackage=" + callingPackage + " binder=" + binder
352 public void addOnSubscriptionsChangedListener(String callingPackage,
356 log("listen oscl: E pkg=" + callingPackage + " myUserId=" + UserHandle.myUserId()
372 callingPackage) != AppOpsManager.MODE_ALLOWED) {
397 r.callingPackage = callingPackage;
466 private void listen(String callingPackage, IPhoneStateListener callback, int events,
470 log("listen: E pkg=" + callingPackage + " events=0x" + Integer.toHexString(events
    [all...]
  /frameworks/base/services/core/java/com/android/server/vr/
VrManagerService.java 343 final ComponentName callingPackage;
348 int processId, ComponentName callingPackage) {
354 this.callingPackage = callingPackage;
360 int processId, ComponentName callingPackage, boolean defaultPermissionsGranted) {
366 this.callingPackage = callingPackage;
388 sb.append((callingPackage == null) ? "None" : callingPackage.flattenToString());
673 ComponentName callingPackage) {
    [all...]

Completed in 1071 milliseconds

1 2 3