/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 113 public CallerIdentity(int uid, int pid, String packageName, String featureId) { in CallerIdentity() 154 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() 166 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() 218 int uid = attributionSource.getUid(); in enforceNearbyDevicesPermission() local 372 int uid, boolean coarseForTargetSdkLessThanQ, @Nullable String message) { in checkCallersLocationPermission() 427 int uid) { in enforceFineLocationPermission() 446 int uid, boolean hideFromAppOps, boolean ignoreLocationSettings) { in checkCallersFineLocationPermission() 475 int uid) { in enforceCoarseLocationPermission() 494 int uid, @Nullable String message) { in checkCallersCoarseLocationPermission() 519 public boolean checkCallersHardwareLocationPermission(int uid) { in checkCallersHardwareLocationPermission() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 69 public static boolean checkPermissionSelf(@NonNull Context context, int pid, int uid) { in checkPermissionSelf() 73 public static boolean checkPermissionShell(@NonNull Context context, int pid, int uid) { in checkPermissionShell() 88 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() 106 public static boolean checkPermissionDelegator(@NonNull Context context, int pid, int uid) { in checkPermissionDelegator() 111 public static boolean checkPermissionWriteStorage(@NonNull Context context, int pid, int uid, in checkPermissionWriteStorage() 118 public static boolean checkPermissionReadStorage(@NonNull Context context, int pid, int uid, in checkPermissionReadStorage() 130 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionAccessMediaLocation() 139 public static boolean checkPermissionManageMedia(@NonNull Context context, int pid, int uid, in checkPermissionManageMedia() 145 public static boolean checkIsLegacyStorageGranted(@NonNull Context context, int uid, in checkIsLegacyStorageGranted() 158 int uid, in checkPermissionReadAudio() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 179 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned() 189 public boolean setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) { in setNotificationsEnabledForPackage() 205 public boolean canShowBadge(String pkg, int uid) { in canShowBadge() 214 public boolean setShowBadge(String pkg, int uid, boolean showBadge) { in setShowBadge() 224 public int getBubblePreference(String pkg, int uid) { in getBubblePreference() 233 public boolean setAllowBubbles(String pkg, int uid, int preference) { in setAllowBubbles() 243 public NotificationChannel getChannel(String pkg, int uid, String channelId) { in getChannel() 247 public NotificationChannel getChannel(String pkg, int uid, String channelId, in getChannel() 260 public NotificationChannelGroup getGroup(String pkg, int uid, String groupId) { in getGroup() 272 public ParceledListSlice<NotificationChannelGroup> getGroups(String pkg, int uid) { in getGroups() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/ |
D | StorageAccessMetrics.java | 73 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()
|
D | MPUiEventLoggerImpl.java | 39 public void log(@NonNull UiEventEnum event, int uid, @Nullable String packageName) { in log() 51 public void logWithInstanceId(@NonNull UiEventEnum event, int uid, @Nullable String packageName, in logWithInstanceId() 66 public void logWithPosition(@NonNull UiEventEnum event, int uid, @Nullable String packageName, in logWithPosition() 80 public void logWithInstanceIdAndPosition(@NonNull UiEventEnum event, int uid, in logWithInstanceIdAndPosition()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataSaverBackend.java | 81 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/modules/Connectivity/framework-t/src/android/net/ |
D | TrafficStats.java | 283 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd() 288 public int uid = -1; field in TrafficStats.UidTag 421 public static void setThreadStatsUid(int uid) { in setThreadStatsUid() 590 final int uid = android.os.Process.myUid(); in incrementOperationCount() local 933 public static long getUidTxBytes(int uid) { in getUidTxBytes() 959 public static long getUidRxBytes(int uid) { in getUidRxBytes() 985 public static long getUidTxPackets(int uid) { in getUidTxPackets() 1011 public static long getUidRxPackets(int uid) { in getUidRxPackets() 1026 public static long getUidTcpTxBytes(int uid) { in getUidTcpTxBytes() 1037 public static long getUidTcpRxBytes(int uid) { in getUidTcpRxBytes() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ForegroundUtils.java | 59 void onUidToBackground(int uid); in onUidToBackground() 86 public boolean registerUidToBackgroundCallback(Callback callback, int uid) { in registerUidToBackgroundCallback() 104 public boolean isInForeground(int uid) { in isInForeground() 126 private boolean isInForegroundLocked(int uid) { in isInForegroundLocked() 137 private void handleUidToBackground(int uid) { in handleUidToBackground() 156 public void onUidImportance(int uid, int importance) { in onUidImportance()
|
/packages/services/Car/service/src/com/android/car/ |
D | SystemActivityMonitoringService.java | 92 public boolean isInForeground(int pid, int uid) { in isInForeground() 105 private void handleForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in handleForegroundActivitiesChanged() 120 private void handleProcessDied(int pid, int uid) { in handleProcessDied() 127 private void doHandlePidGoneLocked(int pid, int uid) { in doHandlePidGoneLocked() 139 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in onForegroundActivitiesChanged() 149 public void onProcessDied(int pid, int uid) { in onProcessDied() 167 private void requestForegroundActivitiesChanged(int pid, int uid, in requestForegroundActivitiesChanged() 174 private void requestProcessDied(int pid, int uid) { in requestProcessDied()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | BpfNetMaps.java | 82 public void addNaughtyApp(final int uid) { in addNaughtyApp() 94 public void removeNaughtyApp(final int uid) { in removeNaughtyApp() 106 public void addNiceApp(final int uid) { in addNiceApp() 118 public void removeNiceApp(final int uid) { in removeNiceApp() 167 public void setUidRule(final int childChain, final int uid, final int firewallRule) { in setUidRule() 265 private native int native_addNaughtyApp(int uid); in native_addNaughtyApp() 266 private native int native_removeNaughtyApp(int uid); in native_removeNaughtyApp() 267 private native int native_addNiceApp(int uid); in native_addNiceApp() 268 private native int native_removeNiceApp(int uid); in native_removeNiceApp() 271 private native int native_setUidRule(int childChain, int uid, int firewallRule); in native_setUidRule()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | EventLogHelper.java | 147 public static void writeCarUserServiceSetLifecycleListener(int uid, in writeCarUserServiceSetLifecycleListener() 153 public static void writeCarUserServiceResetLifecycleListener(int uid, in writeCarUserServiceResetLifecycleListener() 194 public static void writeCarUserServiceGetUserAuthReq(int uid, int userId, int numberTypes) { in writeCarUserServiceGetUserAuthReq() 209 public static void writeCarUserServiceSwitchUserFromHalReq(int requestId, int uid) { in writeCarUserServiceSwitchUserFromHalReq() 214 public static void writeCarUserServiceSetUserAuthReq(int uid, int userId, in writeCarUserServiceSetUserAuthReq() 266 public static void writeCarUserServiceNotifyAppLifecycleListener(int uid, in writeCarUserServiceNotifyAppLifecycleListener() 408 public static void writeCarUserManagerAddListener(int uid, @Nullable String packageName, in writeCarUserManagerAddListener() 415 public static void writeCarUserManagerRemoveListener(int uid, @Nullable String packageName) { in writeCarUserManagerRemoveListener() 420 public static void writeCarUserManagerDisconnected(int uid) { in writeCarUserManagerDisconnected() 425 public static void writeCarUserManagerSwitchUserReq(int uid, int userId) { in writeCarUserManagerSwitchUserReq() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 133 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs() 153 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() 171 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which) { in getScreenUsageTimeMs() 176 private long getProcessBackgroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessBackgroundTimeMs() 186 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessForegroundTimeMs() 216 final int uid = consumer.getUid(); in shouldHideUidBatteryConsumerUnconditionally() local 281 public String getPackageName(int uid) { in getPackageName() 308 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, in isBackgroundRestrictionEnabled() 357 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() 380 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | FileOpenResult.java | 24 public final int uid; field in FileOpenResult 29 public FileOpenResult(int status, int uid, int transformsUid, long[] redactionRanges) { in FileOpenResult() 33 public FileOpenResult(int status, int uid, int transformsUid, int nativeFd, in FileOpenResult() 42 public static FileOpenResult createError(int errorCode, int uid) { in createError()
|
D | TranscodeHelperNoOp.java | 32 public void onAnrDelayStarted(String packageName, int uid, int tid, int reason) {} in onAnrDelayStarted() 34 public boolean transcode(String src, String dst, int uid, int reason) { in transcode() 38 public String prepareIoPath(String path, int uid) { in prepareIoPath() 42 public int shouldTranscode(String path, int uid, Bundle bundle) { in shouldTranscode() 52 public void onFileOpen(String path, String ioPath, int uid, int transformsReason) {} in onFileOpen()
|
D | TranscodeHelper.java | 28 public void onAnrDelayStarted(String packageName, int uid, int tid, int reason); in onAnrDelayStarted() 30 public boolean transcode(String src, String dst, int uid, int reason); in transcode() 32 public String prepareIoPath(String path, int uid); in prepareIoPath() 34 public int shouldTranscode(String path, int uid, Bundle bundle); in shouldTranscode() 40 public void onFileOpen(String path, String ioPath, int uid, int transformsReason); in onFileOpen()
|
D | FileLookupResult.java | 26 public final int uid; field in FileLookupResult 31 public FileLookupResult(int transforms, int uid, String ioPath) { in FileLookupResult() 36 public FileLookupResult(int transforms, int transformsReason, int uid, in FileLookupResult()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 186 int uid = getMockableCallingUid(); in enableInstantCommunicationMode() local 213 int uid = getMockableCallingUid(); in setAwareParams() local 228 final int uid = getMockableCallingUid(); in connect() local 308 int uid = getMockableCallingUid(); in disconnect() local 333 int uid = getMockableCallingUid(); in terminateSession() local 350 int uid = getMockableCallingUid(); in publish() local 387 int uid = getMockableCallingUid(); in updatePublish() local 404 int uid = getMockableCallingUid(); in subscribe() local 441 int uid = getMockableCallingUid(); in updateSubscribe() local 471 int uid = getMockableCallingUid(); in sendMessage() local [all …]
|
/packages/providers/MediaProvider/jni/ |
D | MediaProviderWrapper.cpp | 53 inline bool shouldBypassMediaProvider(uid_t uid) { in shouldBypassMediaProvider() 80 const string& path, uid_t uid) { in insertFileInternal() 91 const string& path, uid_t uid) { in deleteFileInternal() 102 jmethodID mid_is_diraccess_allowed, const string& path, uid_t uid, in isDirAccessAllowedInternal() 115 jmethodID mid_is_uid_allowed_path_access_, uid_t uid, in isUidAllowedAccessToDataOrObbPathInternal() 128 JNIEnv* env, jobject media_provider_object, jmethodID mid_get_files_in_dir, uid_t uid, in getFilesInDirectoryInternal() 175 const string& old_path, const string& new_path, uid_t uid) { in renameInternal() 282 int MediaProviderWrapper::InsertFile(const string& path, uid_t uid) { in InsertFile() 291 int MediaProviderWrapper::DeleteFile(const string& path, uid_t uid) { in DeleteFile() 302 const string& io_path, uid_t uid, in OnFileOpen() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/ |
D | UidMapTests.java | 53 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/ |
D | MacAddressUtil.java | 91 private Mac obtainMacRandHashFunctionInternal(int uid, String alias) { in obtainMacRandHashFunctionInternal() 125 public Mac obtainMacRandHashFunction(int uid) { in obtainMacRandHashFunction() 134 public Mac obtainMacRandHashFunctionForSap(int uid) { in obtainMacRandHashFunctionForSap() 143 private SecretKey generateAndPersistNewMacRandomizationSecret(int uid, String alias) { in generateAndPersistNewMacRandomizationSecret()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | UpdateInteractAcrossProfilesAppOpTask.java | 98 final int uid = mPackageManager.getPackageUid( in grantNewConfigurableDefaultCrossProfilePackages() local 162 private void reapplyCrossProfileAppsPermissionForUid(int uid) { in reapplyCrossProfileAppsPermissionForUid() 170 private int getConsolidatedModeForPackagesInUid(int uid, String[] packages, String op) { in getConsolidatedModeForPackagesInUid() 197 int uid, String[] packages, @AppOpsManager.Mode int mode) { in setAppOpForPackagesInUid() 207 int uid, String packageName, @AppOpsManager.Mode int mode) { in setInteractAcrossProfilesAppOpForPackage() 214 private boolean appOpIsChangedFromDefault(String op, int uid, String packageName) { in appOpIsChangedFromDefault()
|
/packages/services/Car/service/src/com/android/car/telemetry/ |
D | UidPackageMapper.java | 121 public List<String> getPackagesForUid(int uid) { in getPackagesForUid() 135 private AppInfo getAppInfo(int uid, @NonNull String packageName) { in getAppInfo() 150 private void onAppAddedOrUpdated(int uid, @NonNull String packageName) { in onAppAddedOrUpdated() 161 private void onAppRemoved(int uid, @NonNull String packageName) { in onAppRemoved() 264 int uid = extra.getInt(Intent.EXTRA_UID, -1); in onReceive() local 295 AppInfo(int uid, @NonNull String packageName) { in AppInfo()
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | ClusterNavigationService.java | 144 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired() 149 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned() 154 int uid = Binder.getCallingUid(); in assertNavigationFocus() local 170 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner() 220 final int uid; field in ClusterNavigationService.ContextOwner 223 ContextOwner(int uid, int pid) { in ContextOwner()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | PackageInfoResolver.cpp | 56 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 213 for (const auto& uid : uids) { in getPackageNamesForUids() local 232 for (const auto& uid : uids) { in getPackageInfosForUids() local
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | UidStatsMapKey.java | 28 public final long uid; field in UidStatsMapKey 30 public UidStatsMapKey(final long uid) { in UidStatsMapKey()
|