/frameworks/av/media/utils/fuzzers/ |
D | BatteryNotifierFuzz.cpp | 31 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 …]
|
D | ServiceUtilitiesFuzz.cpp | 30 uid_t uid = data_provider->ConsumeIntegral<uid_t>(); in __anona68969790102() 45 uid_t uid = data_provider.ConsumeIntegral<uid_t>(); in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/utils/include/mediautils/ |
D | ServiceUtilities.h | 40 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 isAudioServerOrSystemServerOrRootUid(uid_t uid) { in isAudioServerOrSystemServerOrRootUid() 69 static inline bool isAudioServerOrMediaServerUid(uid_t uid) { in isAudioServerOrMediaServerUid() 79 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid); 80 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid); 81 void finishRecording(const String16& opPackageName, uid_t uid); 82 bool captureAudioOutputAllowed(pid_t pid, uid_t uid); [all …]
|
D | BatteryNotifier.h | 40 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/ |
D | BatteryService.h | 33 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()
|
D | SensorService.h | 177 bool isUidActive(uid_t uid); 179 void onUidGone(uid_t uid, bool disabled); 180 void onUidActive(uid_t uid); 181 void onUidIdle(uid_t uid, bool disabled); 182 void onUidStateChanged(uid_t uid __unused, int32_t procState __unused, in onUidStateChanged() 185 void addOverrideUid(uid_t uid, bool active); 186 void removeOverrideUid(uid_t uid); 188 bool isUidActiveLocked(uid_t uid); 189 void updateOverrideUid(uid_t uid, bool active, bool insert); 193 std::unordered_set<uid_t> mActiveUids; [all …]
|
D | BatteryService.cpp | 36 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()
|
D | SensorDirectConnection.h | 39 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/ |
D | BatteryNotifier.cpp | 41 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 …]
|
D | ServiceUtilities.cpp | 42 const String16& opPackageName, uid_t uid) { in resolveCallingPackage() 63 uid_t uid, bool start) { in checkRecordingInternal() 105 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in recordingAllowed() 109 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid) { in startRecording() 113 void finishRecording(const String16& opPackageName, uid_t uid) { in finishRecording() 130 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { in captureAudioOutputAllowed() 138 bool captureMediaOutputAllowed(pid_t pid, uid_t uid) { in captureMediaOutputAllowed() 146 bool captureHotwordAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in captureHotwordAllowed() 181 bool modifyDefaultAudioEffectsAllowed(pid_t pid, uid_t uid) { in modifyDefaultAudioEffectsAllowed() 202 bool modifyPhoneStateAllowed(pid_t pid, uid_t uid) { in modifyPhoneStateAllowed() [all …]
|
/frameworks/native/libs/binder/ |
D | IUidObserver.cpp | 33 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()
|
D | PermissionCache.cpp | 38 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/ |
D | AudioPolicyService.h | 85 uid_t uid, 99 uid_t uid, 224 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices); 226 virtual status_t removeUidDeviceAffinities(uid_t uid); 256 virtual status_t setAssistantUid(uid_t uid); 257 virtual status_t setA11yServicesUids(const std::vector<uid_t>& uids); 284 void removeNotificationClient(uid_t uid, pid_t pid); 325 virtual void setAppState_l(uid_t uid, app_state_t state); 371 bool isUidActive(uid_t uid); 372 int getUidState(uid_t uid); [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | IUidObserver.h | 34 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;
|
D | PermissionCache.h | 46 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);
|
D | IPCThreadState.h | 26 typedef int uid_t; typedef 64 uid_t getCallingUid() const; 70 int64_t setCallingWorkSourceUid(uid_t uid); 72 int64_t setCallingWorkSourceUidWithoutPropagation(uid_t uid); 74 uid_t getCallingWorkSourceUid() const; 182 uid_t mCallingUid;
|
/frameworks/native/include/binder/ |
D | PermissionCache.h | 46 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);
|
D | IPCThreadState.h | 26 typedef int uid_t; typedef 64 uid_t getCallingUid() const; 70 int64_t setCallingWorkSourceUid(uid_t uid); 72 int64_t setCallingWorkSourceUidWithoutPropagation(uid_t uid); 74 uid_t getCallingWorkSourceUid() const; 182 uid_t mCallingUid;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPatch.h | 32 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;
|
D | AudioPolicyMix.h | 73 status_t getOutputForAttr(const audio_attributes_t& attributes, uid_t uid, 104 status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices); 105 status_t removeUidDeviceAffinities(uid_t uid); 106 status_t getDevicesForUid(uid_t uid, Vector<AudioDeviceTypeAddr>& devices) const; 113 const audio_attributes_t& attributes, uid_t uid);
|
/frameworks/av/media/libaaudio/src/binding/ |
D | AAudioStreamRequest.h | 39 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/ |
D | CameraService.h | 252 virtual uid_t getClientUid() const; 270 uid_t clientUid, 287 const uid_t mClientUid; 358 uid_t clientUid, 554 bool isUidActive(uid_t uid, String16 callingPackage); 555 int32_t getProcState(uid_t uid); 557 void onUidGone(uid_t uid, bool disabled); 558 void onUidActive(uid_t uid); 559 void onUidIdle(uid_t uid, bool disabled); 560 void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq); [all …]
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterface.h | 117 uid_t uid, 135 uid_t uid, 209 virtual status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t flags) = 0; 222 uid_t uid) = 0; 224 uid_t uid) = 0; 229 virtual void releaseResourcesForUid(uid_t uid) = 0; 240 virtual status_t setUidDeviceAffinities(uid_t uid, const Vector<AudioDeviceTypeAddr>& devices) 242 virtual status_t removeUidDeviceAffinities(uid_t uid) = 0; 247 uid_t uid) = 0; 267 virtual void setAppState(uid_t uid, app_state_t state) = 0;
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 119 uid_t uid, 132 uid_t uid, 222 status_t setAllowedCapturePolicy(uid_t uid, audio_flags_mask_t capturePolicy) override; 236 uid_t uid) { in createAudioPatch() 241 uid_t uid); 247 virtual void releaseResourcesForUid(uid_t uid); 260 virtual status_t setUidDeviceAffinities(uid_t uid, 262 virtual status_t removeUidDeviceAffinities(uid_t uid); 273 uid_t uid); 290 virtual void setAppState(uid_t uid, app_state_t state); [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioPolicy.h | 75 uid_t mUid; 95 void setExcludeUid(uid_t uid) const; 96 void setMatchUid(uid_t uid) const; 98 bool hasUidRule(bool match, uid_t uid) const;
|