Home
last modified time | relevance | path

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

12345678910>>...36

/frameworks/native/libs/binder/
DIBatteryStats.cpp35 virtual void noteStartSensor(int uid, int sensor) { in noteStartSensor()
43 virtual void noteStopSensor(int uid, int sensor) { in noteStopSensor()
51 virtual void noteStartVideo(int uid) { in noteStartVideo()
58 virtual void noteStopVideo(int uid) { in noteStopVideo()
65 virtual void noteStartAudio(int uid) { in noteStartAudio()
72 virtual void noteStopAudio(int uid) { in noteStopAudio()
91 virtual void noteFlashlightOn(int uid) { in noteFlashlightOn()
98 virtual void noteFlashlightOff(int uid) { in noteFlashlightOff()
105 virtual void noteStartCamera(int uid) { in noteStartCamera()
112 virtual void noteStopCamera(int uid) { in noteStopCamera()
[all …]
DIUidObserver.cpp33 virtual void onUidGone(uid_t uid, bool disabled) in onUidGone()
42 virtual void onUidActive(uid_t uid) in onUidActive()
50 virtual void onUidIdle(uid_t uid, bool disabled) in onUidIdle()
59 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq, in onUidStateChanged()
85 uid_t uid = data.readInt32(); in onTransact() local
93 uid_t uid = data.readInt32(); in onTransact() local
100 uid_t uid = data.readInt32(); in onTransact() local
107 uid_t uid = data.readInt32(); in onTransact() local
DIPermissionController.cpp37 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission()
50 virtual int32_t noteOp(const String16& op, int32_t uid, const String16& packageName) in noteOp()
63 virtual void getPackagesForUid(const uid_t uid, Vector<String16>& packages) in getPackagesForUid()
119 int32_t uid = data.readInt32(); in onTransact() local
129 int32_t uid = data.readInt32(); in onTransact() local
139 int32_t uid = data.readInt32(); in onTransact() local
164 const int uid = getPackageUid(package, flags); in onTransact() local
/frameworks/base/media/java/android/media/session/
DISessionCallback.aidl28 void onCommand(String packageName, int pid, int uid, String command, in Bundle args, in onCommand()
30 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent, in onMediaButton()
32 void onMediaButtonFromController(String packageName, int pid, int uid, in onMediaButtonFromController()
36 void onPrepare(String packageName, int pid, int uid); in onPrepare()
37 void onPrepareFromMediaId(String packageName, int pid, int uid, String mediaId, in onPrepareFromMediaId()
39 void onPrepareFromSearch(String packageName, int pid, int uid, String query, in Bundle extras); in onPrepareFromSearch()
40 void onPrepareFromUri(String packageName, int pid, int uid, in Uri uri, in Bundle extras); in onPrepareFromUri()
41 void onPlay(String packageName, int pid, int uid); in onPlay()
42 void onPlayFromMediaId(String packageName, int pid, int uid, String mediaId, in Bundle extras); in onPlayFromMediaId()
43 void onPlayFromSearch(String packageName, int pid, int uid, String query, in Bundle extras); in onPlayFromSearch()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingConfig.java27 void setImportance(String packageName, int uid, int importance); in setImportance()
28 int getImportance(String packageName, int uid); in getImportance()
29 void setShowBadge(String packageName, int uid, boolean showBadge); in setShowBadge()
30 boolean canShowBadge(String packageName, int uid); in canShowBadge()
32 int getBubblePreference(String packageName, int uid); in getBubblePreference()
37 boolean isGroupBlocked(String packageName, int uid, String groupId); in isGroupBlocked()
42 int uid); in getNotificationChannelGroups()
43 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup()
46 int uid, boolean includeDeleted, boolean includeNonGrouped, boolean includeEmpty); in getNotificationChannelGroups()
47 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel()
[all …]
DNotificationChannelLogger.java44 default void logNotificationChannelCreated(@NonNull NotificationChannel channel, int uid, in logNotificationChannelCreated()
48 channel, uid, pkg, 0, getLoggingImportance(channel)); in logNotificationChannelCreated() local
57 default void logNotificationChannelDeleted(@NonNull NotificationChannel channel, int uid, in logNotificationChannelDeleted()
61 channel, uid, pkg, getLoggingImportance(channel), 0); in logNotificationChannelDeleted() local
72 default void logNotificationChannelModified(@NonNull NotificationChannel channel, int uid, in logNotificationChannelModified()
75 channel, uid, pkg, oldLoggingImportance, getLoggingImportance(channel)); in logNotificationChannelModified() local
87 int uid, String pkg, boolean isNew, boolean wasBlocked) { in logNotificationChannelGroup()
89 channelGroup, uid, pkg, wasBlocked); in logNotificationChannelGroup() local
99 int uid, String pkg) { in logNotificationChannelGroupDeleted()
110 default void logAppNotificationsAllowed(int uid, String pkg, boolean enabled) { in logAppNotificationsAllowed()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java82 int uid = 10009; in insertKey_replacesOldKey() local
141 int uid = 60001; in removeKey_removesAKey() local
166 int uid = 1009; in getKey_returnsInsertedKey() local
189 int uid = 1009; in getAllKeys_getsKeysWithUserIdAndGenerationId() local
227 int uid = 6000; in getAllKeys_doesNotReturnKeysWithBadGenerationId() local
245 int uid = 10009; in getAllKeys_doesNotReturnKeysWithBadUserId() local
336 int uid = 1009; in setPlatformKeyGenerationId_invalidatesExistingKeysForUser() local
363 int uid = 10009; in removeUserFromAllTables_removesData() local
384 int uid = 1009; in setRecoveryStatus_withSingleKey() local
409 int uid = 1009; in getStatusForAllKeys_with3Keys() local
[all …]
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h47 static inline bool isServiceUid(uid_t uid) { in isServiceUid()
52 static inline bool isAudioServerUid(uid_t uid) { in isAudioServerUid()
58 static inline bool isAudioServerOrRootUid(uid_t uid) { in isAudioServerOrRootUid()
64 static inline bool isAudioServerOrSystemServerUid(uid_t uid) { in isAudioServerOrSystemServerUid()
70 static inline bool isAudioServerOrMediaServerOrSystemServerOrRootUid(uid_t uid) { in isAudioServerOrMediaServerOrSystemServerOrRootUid()
77 static inline bool isAudioServerOrMediaServerUid(uid_t uid) { in isAudioServerOrMediaServerUid()
117 bool allowPlaybackCapture(uid_t uid) { in allowPlaybackCapture()
148 uid_t uid = -1; // uid used for lookup. member
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java270 int uid, @NonNull String packageName) { in onRunAnyAppOpsChanged()
287 private void onUidActiveStateChanged(AppStateTrackerImpl sender, int uid) { in onUidActiveStateChanged()
358 public void updateJobsForUid(int uid, boolean isNowActive) { in updateJobsForUid()
365 public void updateJobsForUidPackage(int uid, String packageName, boolean isNowActive) { in updateJobsForUidPackage()
372 public void stopForegroundServicesForUidPackage(int uid, String packageName) { in stopForegroundServicesForUidPackage()
385 public void updateAlarmsForUid(int uid) { in updateAlarmsForUid()
398 public void unblockAlarmsForUid(int uid) { in unblockAlarmsForUid()
404 public void unblockAlarmsForUidPackage(int uid, String packageName) { in unblockAlarmsForUidPackage()
410 public void removeAlarmsForUid(int uid) { in removeAlarmsForUid()
609 private int findForcedAppStandbyUidPackageIndexLocked(int uid, @NonNull String packageName) { in findForcedAppStandbyUidPackageIndexLocked()
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DLocationPermissionChecker.java91 int uid, @Nullable String message) { in checkLocationPermission()
113 String pkgName, @Nullable String featureId, int uid, @Nullable String message) { in checkLocationPermissionWithDetailInfo()
139 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid, in enforceLocationPermission()
152 int uid, @Nullable String message) { in checkLocationPermissionInternal()
190 int uid, boolean coarseForTargetSdkLessThanQ, @Nullable String message) { in checkCallersLocationPermission()
251 int uid, @Nullable String message) { in noteAppOpAllowed()
256 private void checkPackage(int uid, String pkgName) in checkPackage()
269 private int getUidPermission(String permissionType, int uid) { in getUidPermission()
277 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission()
285 public boolean checkNetworkSetupWizardPermission(int uid) { in checkNetworkSetupWizardPermission()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java210 int uid = Binder.getCallingUid(); in importKey_storesTheKey() local
243 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nullMetadata_storesTheKey() local
256 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() local
292 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nullMetadata_storesTheKey() local
303 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey() local
314 int uid = Binder.getCallingUid(); in removeKey_removesAKey() local
324 int uid = Binder.getCallingUid(); in removeKey_updatesShouldCreateSnapshot() local
337 int uid = Binder.getCallingUid(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() local
348 int uid = Binder.getCallingUid(); in initRecoveryService_succeedsWithCertFile() local
369 int uid = Binder.getCallingUid(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() local
[all …]
/frameworks/base/core/java/android/app/
DIUidObserver.aidl33 void onUidGone(int uid, boolean disabled); in onUidGone()
38 void onUidActive(int uid); in onUidActive()
44 void onUidIdle(int uid, boolean disabled); in onUidIdle()
55 void onUidStateChanged(int uid, int procState, long procStateSeq, int capability); in onUidStateChanged()
67 void onUidCachedChanged(int uid, boolean cached); in onUidCachedChanged()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorage.java81 public synchronized void put(int uid, KeyChainSnapshot snapshot) { in put()
97 public synchronized KeyChainSnapshot get(int uid) { in get()
114 public synchronized void remove(int uid) { in remove()
124 private void writeToDisk(int uid, KeyChainSnapshot snapshot) in writeToDisk()
147 private KeyChainSnapshot readFromDisk(int uid) in readFromDisk()
163 private File getSnapshotFile(int uid) { in getSnapshotFile()
169 private String getSnapshotFileName(int uid) { in getSnapshotFileName()
DApplicationKeyStorage.java73 public @Nullable String getGrantAlias(int userId, int uid, String alias) { in getGrantAlias()
79 public void setSymmetricKeyEntry(int userId, int uid, String alias, byte[] secretKey) in setSymmetricKeyEntry()
98 public void deleteEntry(int userId, int uid, String alias) { in deleteEntry()
118 private String getInternalAlias(int userId, int uid, String alias) { in getInternalAlias()
122 private String makeKeystoreEngineGrantString(int uid, String alias) { in makeKeystoreEngineGrantString()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl38 void noteStartSensor(int uid, int sensor); in noteStartSensor()
39 void noteStopSensor(int uid, int sensor); in noteStopSensor()
40 void noteStartVideo(int uid); in noteStartVideo()
41 void noteStopVideo(int uid); in noteStopVideo()
42 void noteStartAudio(int uid); in noteStartAudio()
43 void noteStopAudio(int uid); in noteStopAudio()
46 void noteFlashlightOn(int uid); in noteFlashlightOn()
47 void noteFlashlightOff(int uid); in noteFlashlightOff()
48 void noteStartCamera(int uid); in noteStartCamera()
49 void noteStopCamera(int uid); in noteStopCamera()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DMirrorActiveUids.java34 synchronized void onUidActive(int uid, int procState) { in onUidActive()
43 synchronized void onUidInactive(int uid) { in onUidInactive()
47 synchronized void onUidProcStateChanged(int uid, int procState) { in onUidProcStateChanged()
54 synchronized @ProcessState int getUidState(int uid) { in getUidState()
60 synchronized void onNonAppSurfaceVisibilityChanged(int uid, boolean visible) { in onNonAppSurfaceVisibilityChanged()
72 synchronized boolean hasNonAppVisibleWindow(int uid) { in hasNonAppVisibleWindow()
/frameworks/base/services/core/java/com/android/server/am/
DFgsTempAllowList.java76 public void add(int uid, long durationMs, @Nullable E entry) { in add()
110 public Pair<Long, E> get(int uid) { in get()
128 public boolean isAllowed(int uid) { in isAllowed()
136 public void removeUid(int uid) { in removeUid()
149 final int uid = mTempAllowList.keyAt(i); in removeAppId() local
163 final int uid = mTempAllowList.keyAt(i); in forEach() local
DPendingStartActivityUids.java47 synchronized void add(int uid, int pid) { in add()
53 synchronized void delete(int uid) { in delete()
66 synchronized boolean isPendingTopPid(int uid, int pid) { in isPendingTopPid()
75 synchronized boolean isPendingTopUid(int uid) { in isPendingTopUid()
/frameworks/base/core/java/com/android/internal/logging/testing/
DUiEventLoggerFake.java36 public final int uid; field in UiEventLoggerFake.FakeUiEvent
41 FakeUiEvent(int eventId, int uid, String packageName) { in FakeUiEvent()
49 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId) { in FakeUiEvent()
57 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId, int position) { in FakeUiEvent()
91 public void log(UiEventEnum event, int uid, String packageName) { in log()
99 public void logWithInstanceId(UiEventEnum event, int uid, String packageName, in logWithInstanceId()
108 public void logWithPosition(UiEventEnum event, int uid, String packageName, int position) { in logWithPosition()
116 public void logWithInstanceIdAndPosition(UiEventEnum event, int uid, String packageName, in logWithInstanceIdAndPosition()
/frameworks/base/core/java/android/os/storage/
DStorageManagerInternal.java39 public abstract int getExternalStorageMountMode(int uid, String packageName); in getExternalStorageMountMode()
50 public abstract boolean hasExternalStorageAccess(int uid, String packageName); in hasExternalStorageAccess()
88 public abstract void onAppOpsChanged(int code, int uid, in onAppOpsChanged()
104 public abstract boolean hasLegacyExternalStorage(int uid); in hasLegacyExternalStorage()
114 public abstract void prepareAppDataAfterInstall(@NonNull String packageName, int uid); in prepareAppDataAfterInstall()
120 public abstract boolean isExternalStorageService(int uid); in isExternalStorageService()
/frameworks/base/core/java/android/net/
DTrafficStats.java305 public static void setThreadStatsUid(int uid) { in setThreadStatsUid()
474 final int uid = android.os.Process.myUid(); in incrementOperationCount() local
817 public static long getUidTxBytes(int uid) { in getUidTxBytes()
843 public static long getUidRxBytes(int uid) { in getUidRxBytes()
869 public static long getUidTxPackets(int uid) { in getUidTxPackets()
895 public static long getUidRxPackets(int uid) { in getUidRxPackets()
910 public static long getUidTcpTxBytes(int uid) { in getUidTcpTxBytes()
921 public static long getUidTcpRxBytes(int uid) { in getUidTcpRxBytes()
932 public static long getUidUdpTxBytes(int uid) { in getUidUdpTxBytes()
943 public static long getUidUdpRxBytes(int uid) { in getUidUdpRxBytes()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java141 public void onPackageAdded(String packageName, int uid) { in onPackageAdded()
148 public void onPackageRemoved(String packageName, int uid) { in onPackageRemoved()
155 public void onPackageRemovedAllUsers(String packageName, int uid) { in onPackageRemovedAllUsers()
158 public void onPackageUpdateStarted(String packageName, int uid) { in onPackageUpdateStarted()
161 public void onPackageUpdateFinished(String packageName, int uid) { in onPackageUpdateFinished()
182 public boolean onPackageChanged(String packageName, int uid, String[] components) { in onPackageChanged()
193 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { in onHandleForceStop()
200 public void onUidRemoved(int uid) { in onUidRemoved()
307 public void onPackageDataCleared(String packageName, int uid) { in onPackageDataCleared()
315 public void onPackageStateChanged(String packageName, int uid) {} in onPackageStateChanged()
[all …]
/frameworks/av/media/utils/
DBatteryNotifier.cpp41 void BatteryNotifier::noteStartVideo(uid_t uid) { in noteStartVideo()
50 void BatteryNotifier::noteStopVideo(uid_t uid) { in noteStopVideo()
77 void BatteryNotifier::noteStartAudio(uid_t uid) { in noteStartAudio()
86 void BatteryNotifier::noteStopAudio(uid_t uid) { in noteStopAudio()
113 void BatteryNotifier::noteFlashlightOn(const String8& id, uid_t uid) { in noteFlashlightOn()
126 void BatteryNotifier::noteFlashlightOff(const String8& id, uid_t uid) { in noteFlashlightOff()
148 void BatteryNotifier::noteStartCamera(const String8& id, uid_t uid) { in noteStartCamera()
160 void BatteryNotifier::noteStopCamera(const String8& id, uid_t uid) { in noteStopCamera()
/frameworks/native/services/sensorservice/
DBatteryService.cpp36 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor()
48 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor()
58 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl()
67 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl()
77 void BatteryService::cleanupImpl(uid_t uid) { in cleanupImpl()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java64 public static int setThreadSocketStatsUid(int uid) { in setThreadSocketStatsUid()
88 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { in tagSocketFd()
126 public static void setKernelCounterSet(int uid, int counterSet) { in setKernelCounterSet()
136 public static void resetKernelUidStats(int uid) { in resetKernelUidStats()
158 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd()
160 private static native int native_setCounterSet(int uid, int counterSetNum); in native_setCounterSet()
161 private static native int native_deleteTagData(int tag, int uid); in native_deleteTagData()

12345678910>>...36