Home
last modified time | relevance | path

Searched defs:permission (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/core/java/android/content/
DPermissionChecker.java124 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForDataDelivery()
161 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForPreflight()
195 @NonNull String permission) { in checkSelfPermissionForDataDelivery()
230 @NonNull String permission) { in checkSelfPermissionForPreflight()
263 @NonNull String permission, @Nullable String packageName) { in checkCallingPermissionForDataDelivery()
301 @NonNull String permission, @Nullable String packageName) { in checkCallingPermissionForPreflight()
335 @NonNull String permission) { in checkCallingOrSelfPermissionForDataDelivery()
370 @NonNull String permission) { in checkCallingOrSelfPermissionForPreflight()
377 private static int checkPermissionCommon(@NonNull Context context, @NonNull String permission, in checkPermissionCommon()
/frameworks/native/libs/binder/
DPermissionCache.cpp38 const String16& permission, uid_t uid) const { in check() argument
51 void PermissionCache::cache(const String16& permission, in cache()
77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission()
82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission()
DIPermissionController.cpp37 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
82 virtual bool isRuntimePermission(const String16& permission) in isRuntimePermission()
117 String16 permission = data.readString16(); in onTransact() local
153 String16 permission = data.readString16(); in onTransact() local
DPermissionController.cpp56 bool PermissionController::checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
76 bool PermissionController::isRuntimePermission(const String16& permission) in isRuntimePermission()
DIServiceManager.cpp125 bool checkCallingPermission(const String16& permission) in checkCallingPermission()
133 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission()
143 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission()
/frameworks/base/tests/testables/src/android/testing/
DTestablePermissions.java38 public void setPermission(String permission, int value) { in setPermission()
52 boolean wantsCall(String permission) { in wantsCall()
60 int check(String permission) { in check()
69 public void enforce(String permission) { in enforce()
DTestableContext.java316 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
324 public int checkCallingPermission(String permission) { in checkCallingPermission()
332 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
340 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission()
348 public int checkSelfPermission(String permission) { in checkSelfPermission()
356 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
365 public void enforceCallingPermission(String permission, String message) { in enforceCallingPermission()
374 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission()
/frameworks/base/test-base/src/android/test/
DAndroidTestCase.java99 String packageName, String className, String permission) { in assertActivityRequiresPermission()
122 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission()
141 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java196 public int grantInstallPermission(BasePermission permission) { in grantInstallPermission()
208 public int revokeInstallPermission(BasePermission permission) { in revokeInstallPermission()
221 public int grantRuntimePermission(BasePermission permission, int userId) { in grantRuntimePermission()
238 public int revokeRuntimePermission(BasePermission permission, int userId) { in revokeRuntimePermission()
336 String permission = mPermissions.keyAt(i); in getPermissions() local
422 public boolean updatePermissionFlags(BasePermission permission, int userId, in updatePermissionFlags()
477 final PermissionData permission = mPermissions.valueAt(i); in hasPermissionRequiringReview() local
524 String permission = mPermissions.keyAt(i); in computeGids() local
608 private int grantPermission(BasePermission permission, int userId) { in grantPermission()
632 private int revokePermission(BasePermission permission, int userId) { in revokePermission()
[all …]
DPermissionSettings.java211 void putPermissionLocked(@NonNull String permName, @NonNull BasePermission permission) { in putPermissionLocked()
216 void putPermissionTreeLocked(@NonNull String permName, @NonNull BasePermission permission) { in putPermissionTreeLocked()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java32 void onPermissionCheck(String permission, boolean granted); in onPermissionCheck()
62 public static int checkPermission(Context context, String permission) { in checkPermission()
/frameworks/base/core/java/android/os/
DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid); in checkPermission()
25 boolean isRuntimePermission(String permission); in isRuntimePermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockLockSettingsContext.java71 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
76 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
/frameworks/base/core/java/android/app/
DActivityManagerNative.java68 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { in broadcastStickyIntent()
78 static public void broadcastStickyIntent(Intent intent, String permission, int appOp, in broadcastStickyIntent()
DUiAutomation.java1005 public void grantRuntimePermission(String packageName, String permission) { in grantRuntimePermission()
1016 public boolean grantRuntimePermission(String packageName, String permission, in grantRuntimePermission()
1028 public void grantRuntimePermissionAsUser(String packageName, String permission, in grantRuntimePermissionAsUser()
1051 public void revokeRuntimePermission(String packageName, String permission) { in revokeRuntimePermission()
1062 public boolean revokeRuntimePermission(String packageName, String permission, in revokeRuntimePermission()
1074 public void revokeRuntimePermissionAsUser(String packageName, String permission, in revokeRuntimePermissionAsUser()
DIUiAutomationConnection.aidl49 void grantRuntimePermission(String packageName, String permission, int userId); in grantRuntimePermission()
50 void revokeRuntimePermission(String packageName, String permission, int userId); in revokeRuntimePermission()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java166 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
171 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission()
/frameworks/base/core/xsd/vts/
DValidatePermission.cpp48 TEST(CheckConfig, permission) { in TEST() argument
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java128 public int uidPermission(@NonNull final String permission, final int uid) { in uidPermission()
178 Boolean permission = mApps.get(uid); in startMonitoring() local
223 boolean hasPermission(@NonNull final String permission, final int uid) { in hasPermission()
368 final Boolean permission = highestPermissionForUid(mApps.get(uid), packageName, uid); in onPackageAdded() local
420 Boolean permission = null; in onPackageRemoved() local
/frameworks/base/services/core/java/com/android/server/firewall/
DSenderPermissionFilter.java31 private SenderPermissionFilter(String permission) { in SenderPermissionFilter()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java71 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission() local
87 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid); in checkChangePermission() local
103 int permission = mWifiPermissionsWrapper.getAccessWifiStatePermission(uid); in checkWifiAccessPermission() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DServiceListing.java57 String setting, String intentAction, String permission, String noun) { in ServiceListing()
209 public Builder setPermission(String permission) { in setPermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java155 private static int checkUidPermission(IPackageManager packageManager, String permission, in checkUidPermission()
/frameworks/native/services/vr/hardware_composer/
Dvr_composer.cpp14 const bool permission = PermissionCache::checkPermission( in CheckPermission() local
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java500 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
510 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission()
515 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
527 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
746 public void addCallingOrSelfPermission(String permission) { in addCallingOrSelfPermission()
755 public void removeCallingOrSelfPermission(String permission) { in removeCallingOrSelfPermission()

123456