Home
last modified time | relevance | path

Searched refs:uid_t (Results 1 – 25 of 190) sorted by relevance

12345678

/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h40 static inline bool isServiceUid(uid_t uid) { in isServiceUid()
45 static inline bool isAudioServerUid(uid_t uid) { in isAudioServerUid()
51 static inline bool isAudioServerOrRootUid(uid_t uid) { in isAudioServerOrRootUid()
57 static inline bool isAudioServerOrSystemServerUid(uid_t uid) { in isAudioServerOrSystemServerUid()
63 static inline bool isAudioServerOrMediaServerUid(uid_t uid) { in isAudioServerOrMediaServerUid()
73 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid);
74 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid);
75 void finishRecording(const String16& opPackageName, uid_t uid);
76 bool captureAudioOutputAllowed(pid_t pid, uid_t uid);
77 bool captureMediaOutputAllowed(pid_t pid, uid_t uid);
[all …]
DBatteryNotifier.h40 void noteStartVideo(uid_t uid);
41 void noteStopVideo(uid_t uid);
43 void noteStartAudio(uid_t uid);
44 void noteStopAudio(uid_t uid);
46 void noteFlashlightOn(const String8& id, uid_t uid);
47 void noteFlashlightOff(const String8& id, uid_t uid);
49 void noteStartCamera(const String8& id, uid_t uid);
50 void noteStopCamera(const String8& id, uid_t uid);
61 std::map<uid_t, int> mVideoRefCounts;
62 std::map<uid_t, int> mAudioRefCounts;
[all …]
/frameworks/native/services/sensorservice/
DBatteryService.h33 void enableSensorImpl(uid_t uid, int handle);
34 void disableSensorImpl(uid_t uid, int handle);
35 void cleanupImpl(uid_t uid);
38 uid_t uid;
42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
50 bool addSensor(uid_t uid, int handle);
51 bool removeSensor(uid_t uid, int handle);
55 static void enableSensor(uid_t uid, int handle) { in enableSensor()
58 static void disableSensor(uid_t uid, int handle) { in disableSensor()
61 static void cleanup(uid_t uid) { in cleanup()
DSensorService.h118 bool isUidActive(uid_t uid);
120 void onUidGone(uid_t uid, bool disabled);
121 void onUidActive(uid_t uid);
122 void onUidIdle(uid_t uid, bool disabled);
123 void onUidStateChanged(uid_t uid __unused, int32_t procState __unused, in onUidStateChanged()
126 void addOverrideUid(uid_t uid, bool active);
127 void removeOverrideUid(uid_t uid);
129 bool isUidActiveLocked(uid_t uid);
130 void updateOverrideUid(uid_t uid, bool active, bool insert);
134 std::unordered_set<uid_t> mActiveUids;
[all …]
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()
DSensorDirectConnection.h39 SensorDirectConnection(const sp<SensorService>& service, uid_t uid,
43 uid_t getUid() const { return mUid; } in getUid()
69 const uid_t mUid;
/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()
117 std::pair<String8, uid_t> k = std::make_pair(id, uid); in noteFlashlightOn()
126 void BatteryNotifier::noteFlashlightOff(const String8& id, uid_t uid) { in noteFlashlightOff()
130 std::pair<String8, uid_t> k = std::make_pair(id, uid); in noteFlashlightOff()
148 void BatteryNotifier::noteStartCamera(const String8& id, uid_t uid) { in noteStartCamera()
151 std::pair<String8, uid_t> k = std::make_pair(id, uid); in noteStartCamera()
[all …]
DServiceUtilities.cpp42 const String16& opPackageName, uid_t uid) { in resolveCallingPackage()
63 uid_t uid, bool start) { in checkRecordingInternal()
102 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in recordingAllowed()
106 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid) { in startRecording()
110 void finishRecording(const String16& opPackageName, uid_t uid) { in finishRecording()
127 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { in captureAudioOutputAllowed()
135 bool captureMediaOutputAllowed(pid_t pid, uid_t uid) { in captureMediaOutputAllowed()
143 bool captureHotwordAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in captureHotwordAllowed()
203 bool modifyPhoneStateAllowed(pid_t pid, uid_t uid) { in modifyPhoneStateAllowed()
210 bool bypassInterruptionPolicyAllowed(pid_t pid, uid_t uid) { in bypassInterruptionPolicyAllowed()
[all …]
/frameworks/native/libs/binder/
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()
82 uid_t uid = data.readInt32(); in onTransact()
90 uid_t uid = data.readInt32(); in onTransact()
97 uid_t uid = data.readInt32(); in onTransact()
104 uid_t uid = data.readInt32(); in onTransact()
DPermissionCache.cpp38 const String16& permission, uid_t uid) const { in check()
52 uid_t uid, bool granted) { in cache()
85 uid_t uid = ipcState->getCallingUid(); in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h83 uid_t uid,
97 uid_t uid,
222 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices);
224 virtual status_t removeUidDeviceAffinities(uid_t uid);
245 virtual status_t setAssistantUid(uid_t uid);
246 virtual status_t setA11yServicesUids(const std::vector<uid_t>& uids);
272 void removeNotificationClient(uid_t uid, pid_t pid);
313 virtual void setAppState_l(uid_t uid, app_state_t state);
359 bool isUidActive(uid_t uid);
360 int getUidState(uid_t uid);
[all …]
/frameworks/native/libs/binder/include/binder/
DIUidObserver.h34 virtual void onUidGone(uid_t uid, bool disabled) = 0;
35 virtual void onUidActive(uid_t uid) = 0;
36 virtual void onUidIdle(uid_t uid, bool disabled) = 0;
37 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq) = 0;
DPermissionCache.h46 uid_t uid;
63 const String16& permission, uid_t uid) const;
65 void cache(const String16& permission, uid_t uid, bool granted);
76 pid_t pid, uid_t uid);
DIPCThreadState.h26 typedef int uid_t; typedef
50 uid_t getCallingUid() const;
56 int64_t setCallingWorkSourceUid(uid_t uid);
58 int64_t setCallingWorkSourceUidWithoutPropagation(uid_t uid);
60 uid_t getCallingWorkSourceUid() const;
184 uid_t mCallingUid;
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamRequest.h39 uid_t getUserId() const { in getUserId()
43 void setUserId(uid_t userId) { in setUserId()
89 uid_t mUserId = (uid_t) -1;
/frameworks/av/services/camera/libcameraservice/
DCameraService.h249 virtual uid_t getClientUid() const;
267 uid_t clientUid,
284 const uid_t mClientUid;
355 uid_t clientUid,
544 bool isUidActive(uid_t uid, String16 callingPackage);
545 int32_t getProcState(uid_t uid);
547 void onUidGone(uid_t uid, bool disabled);
548 void onUidActive(uid_t uid);
549 void onUidIdle(uid_t uid, bool disabled);
550 void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq);
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h72 status_t getOutputForAttr(const audio_attributes_t& attributes, uid_t uid,
103 status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices);
104 status_t removeUidDeviceAffinities(uid_t uid);
105 status_t getDevicesForUid(uid_t uid, Vector<AudioDeviceTypeAddr>& devices) const;
112 const audio_attributes_t& attributes, uid_t uid);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h111 uid_t uid,
129 uid_t uid,
203 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
216 uid_t uid) = 0;
218 uid_t uid) = 0;
223 virtual void releaseResourcesForUid(uid_t uid) = 0;
234 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices)
236 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
241 uid_t uid) = 0;
261 virtual void setAppState(uid_t uid, app_state_t state) = 0;
/frameworks/native/cmds/servicemanager/
Dservice_manager.c28 uid_t uid;
64 static bool check_mac_perms(pid_t spid, const char* sid, uid_t uid, const char *tctx, const char *p… in check_mac_perms()
91 static bool check_mac_perms_from_getcon(pid_t spid, const char* sid, uid_t uid, const char *perm) in check_mac_perms_from_getcon()
96 static bool check_mac_perms_from_lookup(pid_t spid, const char* sid, uid_t uid, const char *perm, c… in check_mac_perms_from_lookup()
116 …int svc_can_register(const uint16_t *name, size_t name_len, pid_t spid, const char* sid, uid_t uid) in svc_can_register()
127 static int svc_can_list(pid_t spid, const char* sid, uid_t uid) in svc_can_list()
133 static int svc_can_find(const uint16_t *name, size_t name_len, pid_t spid, const char* sid, uid_t u… in svc_can_find()
182 uint32_t do_find_service(const uint16_t *s, size_t len, uid_t uid, pid_t spid, const char* sid) in do_find_service()
193 uid_t appid = uid % AID_USER; in do_find_service()
207uid_t uid, int allow_isolated, uint32_t dumpsys_priority, pid_t spid, const char* sid) { in do_add_service()
/frameworks/av/include/media/
DAudioPolicy.h87 uid_t mUid;
107 void setExcludeUid(uid_t uid) const;
108 void setMatchUid(uid_t uid) const;
110 bool hasUidRule(bool match, uid_t uid) const;
DIAudioPolicyService.h65 uid_t uid,
79 uid_t uid,
140 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
189 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices)
192 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
212 virtual status_t setAssistantUid(uid_t uid) = 0;
213 virtual status_t setA11yServicesUids(const std::vector<uid_t>& uids) = 0;
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicy.h87 uid_t mUid;
107 void setExcludeUid(uid_t uid) const;
108 void setMatchUid(uid_t uid) const;
110 bool hasUidRule(bool match, uid_t uid) const;
DIAudioPolicyService.h65 uid_t uid,
79 uid_t uid,
140 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0;
189 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices)
192 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0;
212 virtual status_t setAssistantUid(uid_t uid) = 0;
213 virtual status_t setA11yServicesUids(const std::vector<uid_t>& uids) = 0;
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h120 uid_t uid,
133 uid_t uid,
223 status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) override;
237 uid_t uid);
239 uid_t uid);
245 virtual void releaseResourcesForUid(uid_t uid);
258 virtual status_t setUidDeviceAffinities(uid_t uid,
260 virtual status_t removeUidDeviceAffinities(uid_t uid);
265 uid_t uid);
282 virtual void setAppState(uid_t uid, app_state_t state);
[all …]
/frameworks/av/services/audioflinger/
DRecordTracks.h28 static sp<OpRecordAudioMonitor> createIfNeeded(uid_t uid, const String16& opPackageName);
31 OpRecordAudioMonitor(uid_t uid, const String16& opPackageName);
51 const uid_t mUid;
69 uid_t uid,
150 uid_t mUid;

12345678