Home
last modified time | relevance | path

Searched refs:getCallingPackage (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/java/android/provider/
DDocumentsProvider.java872 context.grantUriPermission(getCallingPackage(), narrowUri, modeFlags); in canonicalize()
961 enforceWritePermissionInner(rootUri, getCallingPackage(), null); in callUnchecked()
982 enforceReadPermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
994 enforceWritePermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
1008 enforceWritePermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
1016 enforceWritePermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
1030 context.grantUriPermission(getCallingPackage(), newDocumentUri, modeFlags); in callUnchecked()
1040 enforceWritePermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
1050 enforceReadPermissionInner(documentUri, getCallingPackage(), null); in callUnchecked()
1051 enforceWritePermissionInner(targetUri, getCallingPackage(), null); in callUnchecked()
[all …]
/frameworks/base/core/java/android/companion/
DCompanionDeviceManager.java149 getCallingPackage()); in associate()
168 return mService.getAssociations(getCallingPackage(), mContext.getUserId()); in getAssociations()
193 mService.disassociate(deviceMacAddress, getCallingPackage()); in disassociate()
263 private String getCallingPackage() { in getCallingPackage() method in CompanionDeviceManager
295 mService.stopScan(mRequest, this, getCallingPackage()); in onActivityDestroyed()
/frameworks/base/telephony/java/android/telephony/
DClientRequestStats.java61 mCallingPackage = clientRequestStats.getCallingPackage(); in ClientRequestStats()
73 public String getCallingPackage() { in getCallingPackage() method in ClientRequestStats
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceChooserActivity.java107 getCallingPackage(), in getCallingAppName()
147 getCallingPackage(), getDeviceMacAddress(selectedDevice.device)); in onPairTapped()
/frameworks/support/compat/java/android/support/v4/app/
DShareCompat.java96 public static String getCallingPackage(Activity calledActivity) { in getCallingPackage() method in ShareCompat
97 String result = calledActivity.getCallingPackage(); in getCallingPackage()
613 mCallingPackage = ShareCompat.getCallingPackage(activity); in IntentReader()
836 public String getCallingPackage() { in getCallingPackage() method in ShareCompat.IntentReader
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DManageDialog.java57 if (getCallingPackage() != null) { in onCreate()
58 Log.e(TAG, getCallingPackage() + " cannot start this activity"); in onCreate()
DConfirmDialog.java50 mPackage = getCallingPackage(); in onCreate()
/frameworks/base/media/java/android/media/session/
DISession.aidl54 String getCallingPackage(); in getCallingPackage() method
DMediaSession.java530 public String getCallingPackage() { in getCallingPackage() method in MediaSession
532 return mBinder.getCallingPackage(); in getCallingPackage()
/frameworks/support/media-compat/api24/android/support/v4/media/session/
DMediaSessionCompatApi24.java36 public static String getCallingPackage(Object sessionObj) { in getCallingPackage() method in MediaSessionCompatApi24
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java994 getCallingPackage(), forceNotify, CRITICAL_GLOBAL_SETTINGS); in mutateGlobalSetting()
1005 getCallingPackage(), forceNotify, CRITICAL_GLOBAL_SETTINGS); in mutateGlobalSetting()
1010 UserHandle.USER_SYSTEM, getCallingPackage(), mode, tag); in mutateGlobalSetting()
1020 return mPackageManager.getPackageInfo(getCallingPackage(), in getCallingPackageInfo()
1023 throw new IllegalStateException("Package " + getCallingPackage() + " doesn't exist"); in getCallingPackageInfo()
1275 getCallingPackage(), forceNotify, CRITICAL_SECURE_SETTINGS);
1286 getCallingPackage(), forceNotify, CRITICAL_SECURE_SETTINGS);
1291 UserHandle.USER_SYSTEM, getCallingPackage(), mode, tag);
1383 Binder.getCallingUid(), getCallingPackage(), true)) {
1423 owningUserId, name, value, null, false, getCallingPackage(),
[all …]
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java85 final String callingPackage = getCallingPackage(); in checkUserCreationRequirements()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java63 mPackageName = getCallingPackage(); in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1196 protected String getCallingPackage() { in getCallingPackage() method in BaseShortcutManagerTest
1402 String origCaller = getCallingPackage(); in makePackageShortcut()
1737 getCallingPackage(), getCallingUserId());
1754 return getPackageShortcut(getCallingPackage(), shortcutId, getCallingUserId());
2136 new ComponentName(getCallingPackage(), ShortcutActivity.class.getName()),
2138 updatePackageVersion(getCallingPackage(), 1);
2140 genPackageAddIntent(getCallingPackage(), getCallingUserId()));
DShortcutManagerTest1.java377 .setActivity(new ComponentName(getCallingPackage(), "abc")) in testPublishWithNoActivity()
391 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
401 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
405 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
416 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
420 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
433 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
444 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
448 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
460 assertEquals(new ComponentName(getCallingPackage(), in testPublishWithNoActivity()
[all …]
/frameworks/support/media-compat/java/android/support/v4/media/session/
DMediaSessionCompat.java781 public String getCallingPackage() { in getCallingPackage() method in MediaSessionCompat
782 return mImpl.getCallingPackage(); in getCallingPackage()
1798 String getCallingPackage(); in getCallingPackage() method
2221 public String getCallingPackage() { in getCallingPackage() method in MediaSessionCompat.MediaSessionImplBase
3410 public String getCallingPackage() { in getCallingPackage() method in MediaSessionCompat.MediaSessionImplApi21
3414 return MediaSessionCompatApi24.getCallingPackage(mSessionObj); in getCallingPackage()
/frameworks/base/core/java/android/content/
DContentProvider.java745 public final @Nullable String getCallingPackage() { in getCallingPackage() method in ContentProvider
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java910 public String getCallingPackage() { in getCallingPackage() method in MediaSessionRecord.SessionStub
/frameworks/base/core/java/android/app/
DIActivityManager.aidl118 String getCallingPackage(in IBinder token); in getCallingPackage() method
DActivity.java5355 public String getCallingPackage() { in getCallingPackage() method in Activity
5357 return ActivityManager.getService().getCallingPackage(mToken); in getCallingPackage()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java346 public String getCallingPackage() { in getCallingPackage() method in VoiceInteractionSession.Request
/frameworks/support/api/
D22.0.0.txt2175 method public static java.lang.String getCallingPackage(android.app.Activity);
2210 method public java.lang.String getCallingPackage();
D22.1.0.txt2317 method public static java.lang.String getCallingPackage(android.app.Activity);
2352 method public java.lang.String getCallingPackage();
D22.2.0.txt2685 method public static java.lang.String getCallingPackage(android.app.Activity);
2720 method public java.lang.String getCallingPackage();
D22.2.1.txt2714 method public static java.lang.String getCallingPackage(android.app.Activity);
2749 method public java.lang.String getCallingPackage();

12