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.cpp39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
84 virtual bool isRuntimePermission(const String16& permission) in isRuntimePermission()
119 String16 permission = data.readString16(); in onTransact() local
155 String16 permission = data.readString16(); in onTransact() local
DIServiceManager.cpp57 bool checkCallingPermission(const String16& permission) in checkCallingPermission()
65 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission()
75 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission()
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()
/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/native/services/nativeperms/android/os/
DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid); in checkPermission()
24 boolean isRuntimePermission(String permission); in isRuntimePermission()
/frameworks/base/test-base/src/android/test/
DAndroidTestCase.java100 String packageName, String className, String permission) { in assertActivityRequiresPermission()
123 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission()
142 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/native/services/nativeperms/
Dnativeperms.cpp37 ::android::binder::Status checkPermission( in checkPermission()
57 ::android::binder::Status isRuntimePermission( 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.java63 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { in broadcastStickyIntent()
73 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/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java108 int permission = 0; in getPermissionForUid() local
175 Boolean permission = mApps.get(uid); in startMonitoring() local
227 boolean hasPermission(@NonNull final PackageInfo app, @NonNull final String permission) { in hasPermission()
371 final Boolean permission = highestPermissionForUid(mApps.get(uid), packageName); in onPackageAdded() local
419 Boolean permission = null; in onPackageRemoved() local
/frameworks/base/core/xsd/vts/
DValidatePermission.cpp48 TEST(CheckConfig, permission) { in TEST() argument
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java470 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission()
480 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission()
485 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission()
497 public int checkPermission(String permission, int pid, int uid) { in checkPermission()
704 public void addCallingOrSelfPermission(String permission) { in addCallingOrSelfPermission()
713 public void removeCallingOrSelfPermission(String permission) { in removeCallingOrSelfPermission()

123456