Home
last modified time | relevance | path

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

12345678910

/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/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java84 public void setIsWhitelisted(int uid, String packageName, boolean whitelisted) { in setIsWhitelisted()
94 public boolean isWhitelisted(int uid) { in isWhitelisted()
114 public void setIsBlacklisted(int uid, String packageName, boolean blacklisted) { in setIsBlacklisted()
124 public boolean isBlacklisted(int uid) { in isBlacklisted()
145 private void handleWhitelistChanged(int uid, boolean isWhitelisted) { in handleWhitelistChanged()
151 private void handleBlacklistChanged(int uid, boolean isBlacklisted) { in handleBlacklistChanged()
157 private void handleUidPoliciesChanged(int uid, int newPolicy) { in handleUidPoliciesChanged()
214 void onWhitelistStatusChanged(int uid, boolean isWhitelisted); in onWhitelistStatusChanged()
216 void onBlacklistStatusChanged(int uid, boolean isBlacklisted); in onBlacklistStatusChanged()
DDataSaverPreference.java51 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged()
55 public void onBlacklistStatusChanged(int uid, boolean isBlacklisted) { in onBlacklistStatusChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataSaverBackend.java84 public void setIsWhitelisted(int uid, String packageName, boolean whitelisted) { in setIsWhitelisted()
94 public boolean isWhitelisted(int uid) { in isWhitelisted()
114 public void setIsBlacklisted(int uid, String packageName, boolean blacklisted) { in setIsBlacklisted()
124 public boolean isBlacklisted(int uid) { in isBlacklisted()
145 private void handleWhitelistChanged(int uid, boolean isWhitelisted) { in handleWhitelistChanged()
151 private void handleBlacklistChanged(int uid, boolean isBlacklisted) { in handleBlacklistChanged()
157 private void handleUidPoliciesChanged(int uid, int newPolicy) { in handleUidPoliciesChanged()
214 void onWhitelistStatusChanged(int uid, boolean isWhitelisted); in onWhitelistStatusChanged()
216 void onBlacklistStatusChanged(int uid, boolean isBlacklisted); in onBlacklistStatusChanged()
DDataSaverPreference.java51 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged()
55 public void onBlacklistStatusChanged(int uid, boolean isBlacklisted) { in onBlacklistStatusChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java134 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned()
144 public boolean setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) { in setNotificationsEnabledForPackage()
160 public boolean canShowBadge(String pkg, int uid) { in canShowBadge()
169 public boolean setShowBadge(String pkg, int uid, boolean showBadge) { in setShowBadge()
179 public boolean canBubble(String pkg, int uid) { in canBubble()
188 public boolean setAllowBubbles(String pkg, int uid, boolean allow) { in setAllowBubbles()
199 public NotificationChannel getChannel(String pkg, int uid, String channelId) { in getChannel()
211 public NotificationChannelGroup getGroup(String pkg, int uid, String groupId) { in getGroup()
223 public ParceledListSlice<NotificationChannelGroup> getGroups(String pkg, int uid) { in getGroups()
236 int uid) { in getNotificationChannelsBypassingDnd()
[all …]
DBubbleWarningDialogFragment.java37 public BubbleWarningDialogFragment setPkgInfo(String pkg, int uid) { in setPkgInfo()
50 final int uid = args.getInt(KEY_UID); in onCreateDialog() local
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java142 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned()
152 public boolean setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled) { in setNotificationsEnabledForPackage()
168 public boolean canShowBadge(String pkg, int uid) { in canShowBadge()
177 public boolean setShowBadge(String pkg, int uid, boolean showBadge) { in setShowBadge()
187 public boolean canBubble(String pkg, int uid) { in canBubble()
196 public boolean setAllowBubbles(String pkg, int uid, boolean allow) { in setAllowBubbles()
207 public NotificationChannel getChannel(String pkg, int uid, String channelId) { in getChannel()
219 public NotificationChannelGroup getGroup(String pkg, int uid, String groupId) { in getGroup()
231 public ParceledListSlice<NotificationChannelGroup> getGroups(String pkg, int uid) { in getGroups()
244 int uid) { in getNotificationChannelsBypassingDnd()
[all …]
DBubbleWarningDialogFragment.java37 public BubbleWarningDialogFragment setPkgInfo(String pkg, int uid) { in setPkgInfo()
50 final int uid = args.getInt(KEY_UID); in onCreateDialog() local
/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/services/Car/car-lib/src/android/car/trust/
DICarTrustAgentEnrollment.aidl35 boolean isEscrowTokenActive(in long handle, int uid); in isEscrowTokenActive()
36 void removeEscrowToken(in long handle, int uid); in removeEscrowToken()
37 void removeAllTrustedDevices(int uid); in removeAllTrustedDevices()
40 List<TrustedDeviceInfo> getEnrolledDeviceInfosForUser(in int uid); in getEnrolledDeviceInfosForUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java109 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
129 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs()
147 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which) { in getScreenUsageTimeMs()
152 private long getProcessBackgroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessBackgroundTimeMs()
162 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessForegroundTimeMs()
213 final BatteryStats.Uid uid = sippers.get(i).uidObj; in smearScreenBatterySipper() local
301 public String getPackageName(int uid) { in getPackageName()
328 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, in isBackgroundRestrictionEnabled()
395 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby()
418 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java114 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs()
134 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs()
152 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which) { in getScreenUsageTimeMs()
157 private long getProcessBackgroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessBackgroundTimeMs()
167 private long getProcessForegroundTimeMs(BatteryStats.Uid uid, int which) { in getProcessForegroundTimeMs()
220 final BatteryStats.Uid uid = sippers.get(i).uidObj; in smearScreenBatterySipper() local
328 public String getPackageName(int uid) { in getPackageName()
355 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, in isBackgroundRestrictionEnabled()
422 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby()
445 public boolean isForceAppStandbyEnabled(int uid, String packageName) { in isForceAppStandbyEnabled()
[all …]
/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/services/Car/service/src/com/android/car/trust/
DCarTrustAgentEnrollmentService.java251 int uid = mTrustedDeviceService.getSharedPrefs().getInt(String.valueOf(handle), -1); in terminateEnrollmentHandshake() local
267 public boolean isEscrowTokenActive(long handle, int uid) { in isEscrowTokenActive()
283 public void removeEscrowToken(long handle, int uid) { in removeEscrowToken()
296 public void removeAllTrustedDevices(int uid) { in removeAllTrustedDevices()
299 removeEscrowToken(device.getHandle(), uid); in removeAllTrustedDevices() local
347 public List<TrustedDeviceInfo> getEnrolledDeviceInfosForUser(int uid) { in getEnrolledDeviceInfosForUser()
396 void onEscrowTokenAdded(byte[] token, long handle, int uid) { in onEscrowTokenAdded()
421 void onEscrowTokenRemoved(long handle, int uid) { in onEscrowTokenRemoved()
463 void onEscrowTokenActiveStateChanged(long handle, boolean isTokenActive, int uid) { in onEscrowTokenActiveStateChanged()
484 removeEscrowToken(sharedPrefs.getLong(mClientDeviceId, -1), uid); in onEscrowTokenActiveStateChanged() local
[all …]
DCarBleTrustAgent.java100 int uid = ActivityManager.getCurrentUser(); in onDeviceLocked() local
207 private boolean hasTrustedDevice(int uid) { in hasTrustedDevice()
216 private void unlockUserInternally(int uid, byte[] token, long handle) { in unlockUserInternally()
251 int uid = ActivityManager.getCurrentUser(); in onBluetoothStateChanged() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
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/apps/Settings/src/com/android/settings/applications/
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/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DFrontendAppIdentifier.java20 private final int uid; field in FrontendAppIdentifier
23 public FrontendAppIdentifier(int uid, int subscriptionId) { in FrontendAppIdentifier()
/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/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java187 final int uid = android.os.Process.myUid(); in cleanOrphans() local
189 fromDisk.addAll(listFilesRecursive(getCacheDir(), null, uid)); in cleanOrphans() local
190 fromDisk.addAll(listFilesRecursive(getFilesDir(), null, uid)); in cleanOrphans() local
191 fromDisk.addAll(listFilesRecursive(Environment.getDownloadCacheDirectory(), null, uid)); in cleanOrphans() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java41 protected void setMode(int code, int uid, String packageName, int mode) { in setMode()
47 public int getMode(int code, int uid, String packageName) { in getMode()
82 InternalKey(int uid, String packageName) { in InternalKey()
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java193 public boolean isInForeground(int pid, int uid) { in isInForeground()
347 private void handleForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in handleForegroundActivitiesChanged()
362 private void handleProcessDied(int pid, int uid) { in handleProcessDied()
368 private void doHandlePidGoneLocked(int pid, int uid) { in doHandlePidGoneLocked()
424 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in onForegroundActivitiesChanged()
434 public void onForegroundServicesChanged(int pid, int uid, int fgServiceTypes) { in onForegroundServicesChanged()
438 public void onProcessDied(int pid, int uid) { in onProcessDied()
468 private void requestForegroundActivitiesChanged(int pid, int uid, in requestForegroundActivitiesChanged()
475 private void requestProcessDied(int pid, int uid) { in requestProcessDied()
/packages/services/Car/procfs-inspector/client/src/com/android/car/procfsinspector/
DProcessInfo.java35 public final int uid; field in ProcessInfo
37 public ProcessInfo(int pid, int uid) { in ProcessInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreferenceControllerTest.java93 final int uid = Process.FIRST_APPLICATION_UID + 10; in shouldAddPreference_forApps_shouldBeTrue() local
100 final int uid = Process.FIRST_APPLICATION_UID - 10; in shouldAddPreference_forNonApps_shouldBeFalse() local
182 private AppEntry createAppEntry(int uid) { in createAppEntry()

12345678910