Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/av/media/utils/fuzzers/
DBatteryNotifierFuzz.cpp31 uid_t /*video_id*/, uid_t /*audio_id*/, uid_t /*light_id*/,
32 uid_t /*camera_id*/)>>
34 [](std::string, std::string, uid_t, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470102()
37 [](std::string, std::string, uid_t, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470202()
40 [](std::string, std::string, uid_t, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470302()
43 [](std::string, std::string, uid_t, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470402()
46 [](std::string, std::string, uid_t video_id, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470502()
49 [](std::string, std::string, uid_t video_id, uid_t, uid_t, uid_t) -> void { in __anoneb7c61470602()
52 [](std::string, std::string, uid_t, uid_t audio_id, uid_t, uid_t) -> void { in __anoneb7c61470702()
55 [](std::string, std::string, uid_t, uid_t audio_id, uid_t, uid_t) -> void { in __anoneb7c61470802()
[all …]
/frameworks/av/media/utils/include/mediautils/
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 …]
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()
65 static inline bool isAudioServerOrSystemServerUid(uid_t uid) { in isAudioServerOrSystemServerUid()
71 static inline bool isAudioServerOrMediaServerOrSystemServerOrRootUid(uid_t uid) { in isAudioServerOrMediaServerOrSystemServerOrRootUid()
78 static inline bool isAudioServerOrMediaServerUid(uid_t uid) { in isAudioServerOrMediaServerUid()
125 bool allowPlaybackCapture(uid_t uid) { in allowPlaybackCapture()
135 std::optional<bool> doIsAllowed(uid_t uid);
144 std::map<uid_t, Packages> mDebugLog;
156 uid_t uid = -1; // uid used for lookup.
[all …]
/frameworks/av/media/module/libmediatranscoding/include/media/
DTranscodingUidPolicy.h43 bool isUidOnTop(uid_t uid) override;
44 void registerMonitorUid(uid_t uid) override;
45 void unregisterMonitorUid(uid_t uid) override;
46 std::unordered_set<uid_t> getTopUids() const override;
51 void onUidStateChanged(uid_t uid, int32_t procState);
54 int32_t getProcState_l(uid_t uid) NO_THREAD_SAFETY_ANALYSIS;
57 static void OnUidImportance(uid_t uid, int32_t uidImportance, void* cookie);
65 std::unordered_map<uid_t, int32_t> mUidStateMap GUARDED_BY(mUidLock);
66 std::map<int32_t, std::unordered_set<uid_t>> mStateUidMap GUARDED_BY(mUidLock);
DUidPolicyInterface.h30 virtual void registerMonitorUid(uid_t uid) = 0;
32 virtual void unregisterMonitorUid(uid_t uid) = 0;
34 virtual bool isUidOnTop(uid_t uid) = 0;
36 virtual std::unordered_set<uid_t> getTopUids() const = 0;
49 virtual void onTopUidsChanged(const std::unordered_set<uid_t>& uids) = 0;
52 virtual void onUidGone(uid_t goneUid) = 0;
DTranscodingSessionController.h51 bool submit(ClientIdType clientId, SessionIdType sessionId, uid_t callingUid, uid_t clientUid,
57 bool addClientUid(ClientIdType clientId, SessionIdType sessionId, uid_t clientUid) override;
75 void onTopUidsChanged(const std::unordered_set<uid_t>& uids) override;
76 void onUidGone(uid_t goneUid) override;
127 uid_t callingUid;
128 std::unordered_set<uid_t> allClientUids;
160 std::map<uid_t, SessionQueueType> mSessionQueues;
164 std::list<uid_t> mUidSortedList;
165 std::list<uid_t>::iterator mOfflineUidIterator;
166 std::map<uid_t, std::string> mUidPackageNames;
[all …]
/frameworks/native/services/sensorservice/
DBatteryService.h36 void enableSensorImpl(uid_t uid, int handle);
37 void disableSensorImpl(uid_t uid, int handle);
38 void noteWakeupSensorEventImpl(int64_t elapsedNanos, uid_t uid, int handle);
41 uid_t uid;
45 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
54 bool addSensor(uid_t uid, int handle);
55 bool removeSensor(uid_t uid, int handle);
59 static void enableSensor(uid_t uid, int handle) { in enableSensor()
62 static void disableSensor(uid_t uid, int handle) { in disableSensor()
65 static void noteWakeupSensorEvent(int64_t elapsed, uid_t uid, int handle) { in noteWakeupSensorEvent()
DSensorService.h298 bool isUidActive(uid_t uid);
300 void onUidGone(uid_t uid, bool disabled) override;
301 void onUidActive(uid_t uid) override;
302 void onUidIdle(uid_t uid, bool disabled) override;
303 void onUidStateChanged(uid_t uid __unused, int32_t procState __unused, in onUidStateChanged()
306 void onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) override {} in onUidProcAdjChanged()
308 void addOverrideUid(uid_t uid, bool active);
309 void removeOverrideUid(uid_t uid);
311 bool isUidActiveLocked(uid_t uid);
312 void updateOverrideUid(uid_t uid, bool active, bool insert);
[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::noteWakeupSensorEventImpl(int64_t elapsedNanos, uid_t uid, int handle) { in noteWakeupSensorEventImpl()
/frameworks/av/services/mediaresourcemanager/
DUidObserver.h31 using OnProcessTerminated = std::function<void(int32_t pid, uid_t)>;
62 void add(int pid, uid_t uid);
72 void onUidGone(uid_t uid, bool disabled) override;
73 void onUidActive(uid_t uid) override;
74 void onUidIdle(uid_t uid, bool disabled) override;
75 void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq,
77 void onUidProcAdjChanged(uid_t uid, int32_t adj) override;
109 std::map<uid_t, std::set<int32_t>> mUids;
DUidObserver.cpp66 void UidObserver::add(int pid, uid_t uid) { in add()
70 std::map<uid_t, std::set<int32_t>>::iterator found = mUids.find(uid); in add()
128 void UidObserver::onUidGone(uid_t uid, bool /*disabled*/) { in onUidGone()
132 std::map<uid_t, std::set<int32_t>>::iterator found = mUids.find(uid); in onUidGone()
161 void UidObserver::onUidActive(uid_t /*uid*/) { in onUidActive() argument
164 void UidObserver::onUidIdle(uid_t /*uid*/, bool /*disabled*/) { in onUidIdle() argument
167 void UidObserver::onUidStateChanged(uid_t /*uid*/, in onUidStateChanged() argument
173 void UidObserver::onUidProcAdjChanged(uid_t /*uid*/, int32_t /*adj*/) { in onUidProcAdjChanged() argument
/frameworks/base/native/android/
Dactivity_manager.cpp43 void onUidGone(uid_t uid, bool disabled) override;
44 void onUidActive(uid_t uid) override;
45 void onUidIdle(uid_t uid, bool disabled) override;
46 void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq,
48 void onUidProcAdjChanged(uid_t uid, int32_t adj) override;
112 void UidObserver::onUidGone(uid_t uid, bool disabled __unused) { in onUidGone()
120 void UidObserver::onUidActive(uid_t uid __unused) {} in onUidActive()
122 void UidObserver::onUidIdle(uid_t uid __unused, bool disabled __unused) {} in onUidIdle()
124 void UidObserver::onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) {} in onUidProcAdjChanged()
126 void UidObserver::onUidStateChanged(uid_t uid, int32_t procState, in onUidStateChanged()
[all …]
/frameworks/av/media/module/libmediatranscoding/
DTranscodingUidPolicy.cpp32 constexpr static uid_t OFFLINE_UID = -1;
44 void TranscodingUidPolicy::OnUidImportance(uid_t uid, int32_t uidImportance, void* cookie) { in OnUidImportance()
81 void TranscodingUidPolicy::registerMonitorUid(uid_t uid) { in registerMonitorUid()
101 mUidStateMap.emplace(std::pair<uid_t, int32_t>(uid, state)); in registerMonitorUid()
107 void TranscodingUidPolicy::unregisterMonitorUid(uid_t uid) { in unregisterMonitorUid()
128 bool TranscodingUidPolicy::isUidOnTop(uid_t uid) { in isUidOnTop()
134 std::unordered_set<uid_t> TranscodingUidPolicy::getTopUids() const { in getTopUids()
138 return std::unordered_set<uid_t>(); in getTopUids()
144 void TranscodingUidPolicy::onUidStateChanged(uid_t uid, int32_t procState) { in onUidStateChanged()
149 std::unordered_set<uid_t> topUids; in onUidStateChanged()
[all …]
DTranscodingSessionController.cpp36 constexpr static uid_t OFFLINE_UID = -1;
199 bool onSessionStarted(uid_t uid, uid_t callingUid);
200 void onSessionCompleted(uid_t uid, std::chrono::microseconds runningTime);
201 void onSessionCancelled(uid_t uid);
217 std::map<uid_t, UidHistoryEntry> mUidHistoryMap;
218 std::unordered_set<uid_t> mMtpUids;
219 std::unordered_set<uid_t> mNonMtpUids;
221 bool isSubjectToQuota(uid_t uid, uid_t callingUid);
224 bool TranscodingSessionController::Pacer::isSubjectToQuota(uid_t uid, uid_t callingUid) { in isSubjectToQuota()
254 bool TranscodingSessionController::Pacer::onSessionStarted(uid_t uid, uid_t callingUid) { in onSessionStarted()
[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()
70 virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) { in onUidProcAdjChanged()
91 uid_t uid = data.readInt32(); in onTransact()
99 uid_t uid = data.readInt32(); in onTransact()
106 uid_t uid = data.readInt32(); in onTransact()
114 uid_t uid = data.readInt32(); in onTransact()
124 uid_t uid = data.readInt32(); in onTransact()
/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.cpp52 const std::optional<String16> opPackageName, uid_t uid) { in resolveCallingPackage()
94 const uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(nextAttributionSource.uid)); in resolveAttributionSource()
126 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in checkRecordingInternal()
181 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in finishRecording()
200 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in captureAudioOutputAllowed()
214 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in captureMediaOutputAllowed()
224 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in captureTunerAudioInputAllowed()
234 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in captureVoiceCommunicationOutputAllowed()
235 uid_t pid = VALUE_OR_FATAL(aidl2legacy_int32_t_pid_t(attributionSource.pid)); in captureVoiceCommunicationOutputAllowed()
245 uid_t uid = VALUE_OR_FATAL(aidl2legacy_int32_t_uid_t(attributionSource.uid)); in accessUltrasoundAllowed()
[all …]
/frameworks/native/libs/binder/include_activitymanager/binder/
DIUidObserver.h32 virtual void onUidGone(uid_t uid, bool disabled) = 0;
33 virtual void onUidActive(uid_t uid) = 0;
34 virtual void onUidIdle(uid_t uid, bool disabled) = 0;
35 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq,
37 virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) = 0;
/frameworks/av/services/audiopolicy/permission/include/media/
DNativePermissionController.h41 uid_t uid) const final;
43 uid_t uid, const std::string& packageName) const final;
45 uid_t uid) const final;
50 std::unordered_map<uid_t, std::vector<std::string>> package_map_ GUARDED_BY(m_);
53 std::array<std::vector<uid_t>, static_cast<size_t>(PermissionEnum::ENUM_SIZE)> permission_map_
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h90 uid_t uid,
101 uid_t uid,
127 status_t setUidDeviceAffinities(uid_t uid, const AudioDeviceTypeAddrVector& devices);
128 status_t removeUidDeviceAffinities(uid_t uid);
129 status_t getDevicesForUid(uid_t uid, Vector<AudioDeviceTypeAddr>& devices) const;
151 uid_t uid,
156 const uid_t uid);
DAudioPatch.h32 AudioPatch(const struct audio_patch *patch, uid_t uid);
40 uid_t getUid() const { return mUid; } in getUid()
42 void setUid(uid_t uid) { mUid = uid; } in setUid()
50 uid_t mUid;
/frameworks/native/libs/binder/include/binder/
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 uid_t uid);
/frameworks/native/include/binder/
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 uid_t uid);
/frameworks/base/native/android/tests/activitymanager/nativeTests/src/
DActivityManagerNativeTest.cpp52 void onUidImportanceChanged(uid_t uid, int32_t uidImportance) { in onUidImportanceChanged()
62 static void OnUidImportance(uid_t uid, int32_t uidImportance, void* cookie) { in OnUidImportance()
68 uid_t mTestAppUid;
74 static bool getUidForPackage(const char* packageName, /*inout*/ uid_t& uid) { in getUidForPackage()
107 uid_t selfUid = ::getuid(); in TEST_F()
109 uid_t testAppUid; in TEST_F()
/frameworks/av/media/ndk/include_platform/media/
DNdkMediaCodecPlatform.h58 uid_t uid) __INTRODUCED_IN(31);
74 uid_t uid) __INTRODUCED_IN(31);
90 uid_t uid) __INTRODUCED_IN(31);

12345678910>>...12