Home
last modified time | relevance | path

Searched defs:uid (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java82 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission()
94 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission()
145 int uid, boolean coarseForTargetSdkLessThanQ, @Nullable String message) { in checkCallersLocationPermission()
200 int uid) { in enforceFineLocationPermission()
218 int uid, boolean hideFromAppOps) { in checkCallersFineLocationPermission()
239 public boolean checkCallersHardwareLocationPermission(int uid) { in checkCallersHardwareLocationPermission()
253 public void enforceCanAccessScanResults(String pkgName, @Nullable String featureId, int uid, in enforceCanAccessScanResults()
328 @Nullable String featureId, int uid, boolean ignoreLocationSettings, in enforceCanAccessScanResultsForWifiScanner()
365 public boolean checkCanAccessWifiDirect(String pkgName, @Nullable String featureId, int uid, in checkCanAccessWifiDirect()
403 public void checkPackage(int uid, String pkgName) throws SecurityException { in checkPackage()
[all …]
DWifiPermissionsWrapper.java48 public int getUidPermission(String permissionType, int uid) { in getUidPermission()
64 public int getOverrideWifiConfigPermission(int uid) { in getOverrideWifiConfigPermission()
74 public int getLocalMacAddressPermission(int uid) { in getLocalMacAddressPermission()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java63 public static boolean checkPermissionSelf(@NonNull Context context, int pid, int uid) { in checkPermissionSelf()
67 public static boolean checkPermissionShell(@NonNull Context context, int pid, int uid) { in checkPermissionShell()
82 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager()
100 public static boolean checkPermissionDelegator(@NonNull Context context, int pid, int uid) { in checkPermissionDelegator()
105 public static boolean checkPermissionWriteStorage(@NonNull Context context, int pid, int uid, in checkPermissionWriteStorage()
112 public static boolean checkPermissionReadStorage(@NonNull Context context, int pid, int uid, in checkPermissionReadStorage()
124 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionAccessMediaLocation()
133 public static boolean checkPermissionManageMedia(@NonNull Context context, int pid, int uid, in checkPermissionManageMedia()
139 public static boolean checkIsLegacyStorageGranted(@NonNull Context context, int uid, in checkIsLegacyStorageGranted()
149 public static boolean checkPermissionReadAudio(@NonNull Context context, int pid, int uid, in checkPermissionReadAudio()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java58 void onUidToBackground(int uid); in onUidToBackground()
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid) { in registerUidToBackgroundCallback()
94 public boolean isInForeground(int uid) { in isInForeground()
114 private boolean isInForegroundLocked(int uid) { in isInForegroundLocked()
128 private void handleUidToBackground(int uid) { in handleUidToBackground()
147 public void onForegroundActivitiesChanged(int pid, int uid, in onForegroundActivitiesChanged()
189 public void onForegroundServicesChanged(int pid, int uid, int fgServiceTypes) { in onForegroundServicesChanged()
193 public void onProcessDied(int pid, int uid) throws RemoteException { in onProcessDied()
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/
DStorageAccessMetrics.java73 void logMimeType(int uid, @NonNull String mimeType) { in logMimeType()
89 void logAccessViaFuse(int uid, @NonNull String file) { in logAccessViaFuse()
106 void logAccessViaMediaProvider(int uid, @NonNull String volumeName) { in logAccessViaMediaProvider()
120 private void logGeneralExternalStorageAccess(int uid, @NonNull String volumeName) { in logGeneralExternalStorageAccess()
140 private void logMimeTypeFromFile(int uid, @Nullable String file) { in logMimeTypeFromFile()
144 private void incrementTotalAccesses(int uid) { in incrementTotalAccesses()
150 private void incrementFilePathAccesses(int uid) { in incrementFilePathAccesses()
156 private void incrementSecondaryStorageAccesses(int uid) { in incrementSecondaryStorageAccesses()
163 private PackageStorageAccessStats getOrGeneratePackageStatsObjectLocked(int uid) { in getOrGeneratePackageStatsObjectLocked()
229 PackageStorageAccessStats(int uid) { in PackageStorageAccessStats()
DPulledMetrics.java79 public static void logMimeTypeAccess(int uid, @NonNull String mimeType) { in logMimeTypeAccess()
92 public static void logFileAccessViaFuse(int uid, @NonNull String file) { in logFileAccessViaFuse()
105 public static void logVolumeAccessViaMediaProvider(int uid, @NonNull String volumeName) { in logVolumeAccessViaMediaProvider()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java81 public void setIsAllowlisted(int uid, String packageName, boolean allowlisted) { in setIsAllowlisted()
91 public boolean isAllowlisted(int uid) { in isAllowlisted()
111 public void setIsDenylisted(int uid, String packageName, boolean denylisted) { in setIsDenylisted()
121 public boolean isDenylisted(int uid) { in isDenylisted()
142 private void handleAllowlistChanged(int uid, boolean isAllowlisted) { in handleAllowlistChanged()
148 private void handleDenylistChanged(int uid, boolean isDenylisted) { in handleDenylistChanged()
154 private void handleUidPoliciesChanged(int uid, int newPolicy) { in handleUidPoliciesChanged()
196 void onAllowlistStatusChanged(int uid, boolean isAllowlisted); in onAllowlistStatusChanged()
198 void onDenylistStatusChanged(int uid, boolean isDenylisted); in onDenylistStatusChanged()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java187 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned()
197 public boolean setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) { in setNotificationsEnabledForPackage()
213 public boolean canShowBadge(String pkg, int uid) { in canShowBadge()
222 public boolean setShowBadge(String pkg, int uid, boolean showBadge) { in setShowBadge()
232 public int getBubblePreference(String pkg, int uid) { in getBubblePreference()
241 public boolean setAllowBubbles(String pkg, int uid, int preference) { in setAllowBubbles()
251 public NotificationChannel getChannel(String pkg, int uid, String channelId) { in getChannel()
255 public NotificationChannel getChannel(String pkg, int uid, String channelId, in getChannel()
268 public NotificationChannelGroup getGroup(String pkg, int uid, String groupId) { in getGroup()
280 public ParceledListSlice<NotificationChannelGroup> getGroups(String pkg, int uid) { in getGroups()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java98 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in androidPackagesIgnored() local
111 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in selfPackageIgnored() local
124 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in packagesNotRequestingPermissionIgnored() local
140 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in unavailablePackageIgnored() local
155 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() local
170 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeDefault_isPermissible() local
185 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible() local
256 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in appEntryNotIncluded_extraInfoCleared() local
266 private PackageInfo createPackageInfo(String packageName, int uid) { in createPackageInfo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java108 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
128 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs()
146 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which) { in getScreenUsageTimeMs()
151 private long getProcessBackgroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessBackgroundTimeMs()
161 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessForegroundTimeMs()
253 public String getPackageName(int uid) { in getPackageName()
280 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, in isBackgroundRestrictionEnabled()
329 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby()
352 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled()
358 final int uid = getPackageUid(packageName); in clearForceAppStandby() local
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DTranscodeHelperNoOp.java29 public void onAnrDelayStarted(String packageName, int uid, int tid, int reason) {} in onAnrDelayStarted()
31 public boolean transcode(String src, String dst, int uid, int reason) { in transcode()
35 public String getIoPath(String path, int uid) { in getIoPath()
39 public int shouldTranscode(String path, int uid, Bundle bundle) { in shouldTranscode()
49 public void onFileOpen(String path, String ioPath, int uid, int transformsReason) {} in onFileOpen()
DTranscodeHelper.java27 public void onAnrDelayStarted(String packageName, int uid, int tid, int reason); in onAnrDelayStarted()
29 public boolean transcode(String src, String dst, int uid, int reason); in transcode()
31 public String getIoPath(String path, int uid); in getIoPath()
33 public int shouldTranscode(String path, int uid, Bundle bundle); in shouldTranscode()
39 public void onFileOpen(String path, String ioPath, int uid, int transformsReason); in onFileOpen()
DFileOpenResult.java24 public final int uid; field in FileOpenResult
28 public FileOpenResult(int status, int uid, int transformsUid, long[] redactionRanges) { in FileOpenResult()
/packages/providers/MediaProvider/jni/
DMediaProviderWrapper.cpp46 inline bool shouldBypassMediaProvider(uid_t uid) { in shouldBypassMediaProvider()
73 const string& path, uid_t uid) { in insertFileInternal()
84 const string& path, uid_t uid) { in deleteFileInternal()
96 uid_t uid, bool forCreate) { in isMkdirOrRmdirAllowedInternal()
108 jmethodID mid_is_opendir_allowed, const string& path, uid_t uid, in isOpendirAllowedInternal()
121 jmethodID mid_is_uid_allowed_path_access_, uid_t uid, in isUidAllowedAccessToDataOrObbPathInternal()
134 JNIEnv* env, jobject media_provider_object, jmethodID mid_get_files_in_dir, uid_t uid, in getFilesInDirectoryInternal()
181 const string& old_path, const string& new_path, uid_t uid) { in renameInternal()
300 int MediaProviderWrapper::InsertFile(const string& path, uid_t uid) { in InsertFile()
309 int MediaProviderWrapper::DeleteFile(const string& path, uid_t uid) { in DeleteFile()
[all …]
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/
DUidMapTests.java53 private boolean hasMatchingChange(UidMapping uidmap, int uid, boolean expectDeletion) { in hasMatchingChange()
81 int uid = getUid(); in testChangeFromInstallation() local
105 int uid = getUid(); in testChangeFromReinstall() local
119 int uid = getUid(); in testChangeFromUninstall() local
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMacAddressUtil.java88 private Mac obtainMacRandHashFunctionInternal(int uid, String alias) { in obtainMacRandHashFunctionInternal()
115 public Mac obtainMacRandHashFunction(int uid) { in obtainMacRandHashFunction()
124 public Mac obtainMacRandHashFunctionForSap(int uid) { in obtainMacRandHashFunctionForSap()
133 private SecretKey generateAndPersistNewMacRandomizationSecret(int uid, String alias) { in generateAndPersistNewMacRandomizationSecret()
/packages/services/Car/service/src/com/android/car/cluster/
DClusterNavigationService.java131 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired()
136 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned()
141 int uid = Binder.getCallingUid(); in assertNavigationFocus() local
157 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner()
184 final int uid; field in ClusterNavigationService.ContextOwner
187 ContextOwner(int uid, int pid) { in ContextOwner()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java199 final int uid = getMockableCallingUid(); in connect() local
274 int uid = getMockableCallingUid(); in disconnect() local
299 int uid = getMockableCallingUid(); in terminateSession() local
315 int uid = getMockableCallingUid(); in publish() local
349 int uid = getMockableCallingUid(); in updatePublish() local
365 int uid = getMockableCallingUid(); in subscribe() local
399 int uid = getMockableCallingUid(); in updateSubscribe() local
429 int uid = getMockableCallingUid(); in sendMessage() local
442 public void requestMacAddresses(int uid, List peerIds, IWifiAwareMacAddressProvider callback) { in requestMacAddresses()
474 private void enforceClientValidity(int uid, int clientId) { in enforceClientValidity()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java96 final int uid = mPackageManager.getPackageUid( in grantNewConfigurableDefaultCrossProfilePackages() local
150 private void reapplyCrossProfileAppsPermissionForUid(int uid) { in reapplyCrossProfileAppsPermissionForUid()
158 private int getConsolidatedModeForPackagesInUid(int uid, String[] packages, String op) { in getConsolidatedModeForPackagesInUid()
185 int uid, String[] packages, @AppOpsManager.Mode int mode) { in setAppOpForPackagesInUid()
195 int uid, String packageName, @AppOpsManager.Mode int mode) { in setInteractAcrossProfilesAppOpForPackage()
202 private boolean appOpIsChangedFromDefault(String op, int uid, String packageName) { in appOpIsChangedFromDefault()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DProviderUtil.java46 public static boolean isAccessRestricted(Context context, String packageName, int uid) { in isAccessRestricted()
59 public static boolean shouldSetCreator(ContentValues values, int uid) { in shouldSetCreator()
72 public static boolean shouldRemoveCreator(ContentValues values, int uid) { in shouldRemoveCreator()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateManageExternalStorageBridge.java47 protected void updateExtraInfo(ApplicationsState.AppEntry app, String pkg, int uid) { in updateExtraInfo()
64 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo()
74 public PermissionState getManageExternalStoragePermState(String pkg, int uid) { in getManageExternalStoragePermState()
DAppStateInstallAppsBridge.java54 protected void updateExtraInfo(AppEntry app, String packageName, int uid) { in updateExtraInfo()
78 private boolean hasPermission(String permission, int uid) { in hasPermission()
88 private int getAppOpMode(int appOpCode, int uid, String packageName) { in getAppOpMode()
92 public InstallAppsState createInstallAppsStateFor(String packageName, int uid) { in createInstallAppsStateFor()
/packages/services/Car/cpp/watchdog/server/src/
DPackageInfoResolver.cpp56 ComponentType getComponentTypeForNativeUid(uid_t uid, std::string_view packageName, in getComponentTypeForNativeUid()
76 uid_t uid, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfoForNativeUid()
139 for (const uid_t uid : uids) { in updatePackageInfos() local
199 for (const auto& uid : uids) { in getPackageNamesForUids() local
218 for (const auto& uid : uids) { in getPackageInfosForUids() local
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java67 public String getNameForUid(int uid) { in getNameForUid()
72 public String[] getPackagesForUid(int uid) { in getPackagesForUid()
87 Integer uid = mReverse.get(packageName); in getApplicationInfo() local
129 public List<ProviderInfo> queryContentProviders(String processName, int uid, int flags, in queryContentProviders()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DBinderUtilTest.java61 final int uid = Binder.getCallingUid(); in setUid() local
83 final int uid = Binder.getCallingUid(); in setUidAndRestoreCallingIdentity() local

12345678910>>...17