/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.h | 178 android::InputDispatcherConfiguration mConfig GUARDED_BY(mLock); 180 mutable std::mutex mLock; variable 186 std::unique_ptr<trace::InputTracerInterface> mTracer GUARDED_BY(mLock); 190 std::shared_ptr<const EventEntry> mPendingEvent GUARDED_BY(mLock); 191 std::deque<std::shared_ptr<const EventEntry>> mInboundQueue GUARDED_BY(mLock); 192 std::deque<std::shared_ptr<const EventEntry>> mRecentQueue GUARDED_BY(mLock); 212 std::deque<Command> mCommandQueue GUARDED_BY(mLock); 214 DropReason mLastDropReason GUARDED_BY(mLock); 216 const IdGenerator mIdGenerator GUARDED_BY(mLock); 218 int64_t mWindowInfosVsyncId GUARDED_BY(mLock); [all …]
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 125 REQUIRES(mLock); 140 void disableVirtualKeysUntil(nsecs_t time) REQUIRES(mReader->mLock) override; 142 REQUIRES(mReader->mLock) override; 143 void requestTimeoutAtTime(nsecs_t when) REQUIRES(mReader->mLock) override; 146 REQUIRES(mReader->mLock) override; 148 REQUIRES(mReader->mLock) override; 149 InputReaderPolicyInterface* getPolicy() REQUIRES(mReader->mLock) override; 150 EventHubInterface* getEventHub() REQUIRES(mReader->mLock) override; 152 void updateLedMetaState(int32_t metaState) REQUIRES(mReader->mLock) override; 153 int32_t getLedMetaState() REQUIRES(mReader->mLock) REQUIRES(mLock) override; [all …]
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceStreamBase.h | 86 aaudio_result_t close() EXCLUDES(mLock); 94 aaudio_result_t start() EXCLUDES(mLock); 102 aaudio_result_t pause() EXCLUDES(mLock); 111 aaudio_result_t stop() EXCLUDES(mLock); 118 aaudio_result_t flush() EXCLUDES(mLock); 123 aaudio_result_t exitStandby(AudioEndpointParcelable *parcelable) EXCLUDES(mLock); 137 aaudio_result_t registerAudioThread(pid_t clientThreadId, int priority) EXCLUDES(mLock); 139 aaudio_result_t unregisterAudioThread(pid_t clientThreadId) EXCLUDES(mLock); 148 aaudio_result_t getDescription(AudioEndpointParcelable &parcelable) EXCLUDES(mLock); 164 void disconnect() EXCLUDES(mLock); [all …]
|
D | AAudioServiceStreamMMAP.h | 71 aaudio_result_t pause_l() REQUIRES(mLock) override; 73 aaudio_result_t stop_l() REQUIRES(mLock) override; 75 aaudio_result_t standby_l() REQUIRES(mLock) override; 80 aaudio_result_t exitStandby_l(AudioEndpointParcelable* parcelable) REQUIRES(mLock) override; 83 AudioEndpointParcelable* parcelable) REQUIRES(mLock) override; 86 int64_t *timeNanos) REQUIRES(mLock) override; 89 int64_t *positionFrames, int64_t *timeNanos) REQUIRES(mLock) override; 91 int64_t nextDataReportTime_l() REQUIRES(mLock) override; 93 void reportData_l() REQUIRES(mLock) override; 99 aaudio_result_t startDevice_l() REQUIRES(mLock) override; [all …]
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | ThreadSafeFuzzedDataProvider.h | 24 std::mutex mLock; 32 std::scoped_lock _l(mLock); in ConsumeBytes() 38 std::scoped_lock _l(mLock); in ConsumeBytesWithTerminator() 44 std::scoped_lock _l(mLock); in ConsumeRemainingBytes() 49 std::scoped_lock _l(mLock); in ConsumeBytesAsString() 54 std::scoped_lock _l(mLock); in ConsumeRandomLengthString() 59 std::scoped_lock _l(mLock); in ConsumeRandomLengthString() 64 std::scoped_lock _l(mLock); in ConsumeRemainingBytesAsString() 70 std::scoped_lock _l(mLock); in ConsumeIntegral() 76 std::scoped_lock _l(mLock); in ConsumeIntegralInRange() [all …]
|
/frameworks/native/services/inputflinger/ |
D | PointerChoreographer.h | 122 [[nodiscard]] PointerDisplayChange updatePointerControllersLocked() REQUIRES(mLock); 123 [[nodiscard]] PointerDisplayChange calculatePointerDisplayChangeToNotify() REQUIRES(mLock); 125 REQUIRES(mLock); 127 REQUIRES(mLock); 129 ensureMouseControllerLocked(ui::LogicalDisplayId associatedDisplayId) REQUIRES(mLock); 130 InputDeviceInfo* findInputDeviceLocked(DeviceId deviceId) REQUIRES(mLock); 131 bool canUnfadeOnDisplay(ui::LogicalDisplayId displayId) REQUIRES(mLock); 135 NotifyMotionArgs processMouseEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock); 136 NotifyMotionArgs processTouchpadEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock); 137 void processDrawingTabletEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock); [all …]
|
/frameworks/av/services/audioflinger/datapath/ |
D | TrackMetrics.h | 56 std::lock_guard l(mLock); in ~TrackMetrics() 65 std::lock_guard l(mLock); in logBeginInterval() 110 std::lock_guard l(mLock); in logEndInterval() 142 std::lock_guard l(mLock); in logLatencyAndStartup() 148 REQUIRES(mLock) { in updateMinMaxVolume_l() 165 std::lock_guard l(mLock); in logVolume() 171 std::lock_guard l(mLock); in logUnderruns() 188 void logVolume_l(float volume) REQUIRES(mLock) { in logVolume_l() 205 void deliverCumulativeMetrics(const char *eventName) const REQUIRES(mLock) { in deliverCumulativeMetrics() 233 void resetIntervalGroupMetrics() REQUIRES(mLock) { in resetIntervalGroupMetrics() [all …]
|
D | ThreadMetrics.h | 50 std::lock_guard l(mLock); in ~ThreadMetrics() 61 std::lock_guard l(mLock); in logBeginInterval() 87 std::lock_guard l(mLock); in logCreatePatch() 99 std::lock_guard l(mLock); in logEndInterval() 119 std::lock_guard l(mLock); in logLatency() 124 std::lock_guard l(mLock); in logUnderrunFrames() 146 void deliverCumulativeMetrics(const char *eventName) const REQUIRES(mLock) { in deliverCumulativeMetrics() 171 void resetIntervalGroupMetrics() REQUIRES(mLock) { in resetIntervalGroupMetrics() 189 mutable std::mutex mLock; variable 192 std::string mDevices GUARDED_BY(mLock); // last input or output devices based on mIsOut. [all …]
|
/frameworks/base/services/print/java/com/android/server/print/ |
D | RemotePrintSpooler.java | 77 private final Object mLock = new Object(); field in RemotePrintSpooler 142 synchronized (mLock) { in increasePriority() 147 mLock.wait(); in increasePriority() 165 synchronized (mLock) { in getPrintJobInfos() 178 synchronized (mLock) { in getPrintJobInfos() 180 mLock.notifyAll(); in getPrintJobInfos() 188 synchronized (mLock) { in createPrintJob() 200 synchronized (mLock) { in createPrintJob() 202 mLock.notifyAll(); in createPrintJob() 209 synchronized (mLock) { in writePrintJobData() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeInputDispatcherPolicy.cpp | 53 std::scoped_lock lock(mLock); in assertFilterInputEventWasNotCalled() 58 std::scoped_lock lock(mLock); in assertNotifyConfigurationChangedWasCalled() 65 std::scoped_lock lock(mLock); in assertNotifySwitchWasCalled() 76 std::scoped_lock lock(mLock); in assertOnPointerDownEquals() 82 std::scoped_lock lock(mLock); in assertOnPointerDownWasNotCalled() 90 std::unique_lock lock(mLock); in assertNotifyNoFocusedWindowAnrWasCalled() 91 android::base::ScopedLockAssertion assumeLocked(mLock); in assertNotifyNoFocusedWindowAnrWasCalled() 108 std::unique_lock lock(mLock); in assertNotifyWindowUnresponsiveWasCalled() 109 android::base::ScopedLockAssertion assumeLocked(mLock); in assertNotifyWindowUnresponsiveWasCalled() 118 std::unique_lock lock(mLock); in getUnresponsiveWindowToken() [all …]
|
/frameworks/base/media/jni/soundpool/ |
D | Stream.h | 161 std::vector<std::any>& garbage, int playerIId) REQUIRES(mLock); 162 void stop_l() REQUIRES(mLock); 163 void setVolume_l(float leftVolume, float rightVolume) REQUIRES(mLock); 172 mutable std::mutex mLock; variable 173 std::atomic_int32_t mStreamID GUARDED_BY(mLock) = 0; // Valid streamIDs are always positive. 174 int mState GUARDED_BY(mLock) = IDLE; 175 std::shared_ptr<Sound> mSound GUARDED_BY(mLock); // Non-null if playing. 176 int32_t mSoundID GUARDED_BY(mLock) = 0; // SoundID associated with AudioTrack. 177 float mLeftVolume GUARDED_BY(mLock) = 0.f; 178 float mRightVolume GUARDED_BY(mLock) = 0.f; [all …]
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraSessionContext.h | 43 EXCLUDES(mLock); 46 void closeAllStreams() EXCLUDES(mLock); 51 cachesToRemove) EXCLUDES(mLock); 56 streamConfiguration) EXCLUDES(mLock); 61 captureRequest) EXCLUDES(mLock); 66 getStreamConfig(int streamId) const EXCLUDES(mLock); 72 EXCLUDES(mLock); 83 const EGLDisplay eglDisplay, int streamId, int bufferId) EXCLUDES(mLock); 86 std::set<int> getStreamIds() const EXCLUDES(mLock); 89 mutable std::mutex mLock; [all …]
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | AudioPowerUsage.h | 94 REQUIRES(mLock); 100 REQUIRES(mLock); 111 mutable std::mutex mLock; variable 112 std::deque<std::shared_ptr<mediametrics::Item>> mItems GUARDED_BY(mLock); 114 double mVoiceVolume GUARDED_BY(mLock) = 0.; 115 double mDeviceVolume GUARDED_BY(mLock) = 0.; 116 double mMaxVoiceVolume GUARDED_BY(mLock) = AMEDIAMETRICS_INITIAL_MAX_VOLUME; 117 double mMinVoiceVolume GUARDED_BY(mLock) = AMEDIAMETRICS_INITIAL_MIN_VOLUME; 118 int64_t mMaxVoiceVolumeDurationNs GUARDED_BY(mLock) = 0; 119 int64_t mMinVoiceVolumeDurationNs GUARDED_BY(mLock) = 0; [all …]
|
/frameworks/native/include/input/ |
D | BlockingQueue.h | 48 std::unique_lock lock(mLock); in pop() 49 android::base::ScopedLockAssertion assumeLock(mLock); in pop() 50 mHasElements.wait(lock, [this]() REQUIRES(mLock) { return !this->mQueue.empty(); }); in pop() 62 std::unique_lock lock(mLock); in popWithTimeout() 63 android::base::ScopedLockAssertion assumeLock(mLock); in popWithTimeout() 65 [this]() REQUIRES(mLock) { return !this->mQueue.empty(); })) { in popWithTimeout() 81 std::scoped_lock lock(mLock); in push() 100 std::scoped_lock lock(mLock); in emplace() 111 std::scoped_lock lock(mLock); in erase_if() 120 std::scoped_lock lock(mLock); in clear() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateSelector.h | 132 SetPolicyResult setPolicy(const PolicyVariant&) EXCLUDES(mLock) REQUIRES(kMainThreadContext); 138 Policy getCurrentPolicy() const EXCLUDES(mLock); 140 Policy getDisplayManagerPolicy() const EXCLUDES(mLock); 143 bool isModeAllowed(const FrameRateMode&) const EXCLUDES(mLock); 260 Fps pacesetterFps = {}) const EXCLUDES(mLock); 262 FpsRange getSupportedRefreshRateRange() const EXCLUDES(mLock) { in getSupportedRefreshRateRange() 263 std::lock_guard lock(mLock); in getSupportedRefreshRateRange() 269 bool timerExpired) const EXCLUDES(mLock); 271 void setActiveMode(DisplayModeId, Fps renderFrameRate) EXCLUDES(mLock); 274 FrameRateMode getActiveMode() const EXCLUDES(mLock); [all …]
|
D | LayerHistory.h | 94 void updateGameModeFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock); 97 void updateGameDefaultFrameRateOverride(FrameRateOverride frameRateOverride) EXCLUDES(mLock); 99 std::pair<Fps, Fps> getGameFrameRateOverride(uid_t uid) const EXCLUDES(mLock); 100 std::pair<Fps, Fps> getGameFrameRateOverrideLocked(uid_t uid) const REQUIRES(mLock); 111 std::string dumpGameFrameRateOverridesLocked() const REQUIRES(mLock); 119 void partitionLayers(nsecs_t now, bool isVrrDevice) REQUIRES(mLock); 129 std::pair<LayerStatus, LayerPair*> findLayer(int32_t id) REQUIRES(mLock); 131 std::pair<LayerStatus, const LayerPair*> findLayer(int32_t id) const REQUIRES(mLock) { in findLayer() 135 mutable std::mutex mLock; variable 142 LayerInfos mActiveLayerInfos GUARDED_BY(mLock); [all …]
|
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/ |
D | Mutexed.h | 107 mLock(from.mLock), in Locked() 123 inline status_t waitForCondition(Condition &cond) { return cond.wait(mLock); } in waitForCondition() 127 return cond.waitRelative(mLock, reltime); in waitForConditionRelative() 137 Mutex &mLock; 162 Mutex mLock; variable 172 : mLock(mParent.mLock), in Locked() 175 mLock.lock(); in Locked() 181 mLock.unlock(); in ~Locked() 189 mLock.unlock(); in unlock() 196 mLock.lock(); in lock()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/ |
D | MMTelFeature.java | 50 private final Object mLock = new Object(); field in MMTelFeature 61 synchronized (mLock) { 68 synchronized (mLock) { 76 synchronized (mLock) { 83 synchronized (mLock) { 90 synchronized (mLock) { 98 synchronized (mLock) { 106 synchronized (mLock) { 114 synchronized (mLock) { 122 synchronized (mLock) { [all …]
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | VirtualDeviceCameraIdMapper.h | 35 const std::string& mappedCameraId) EXCLUDES(mLock); 37 void removeCamera(const std::string& cameraId) EXCLUDES(mLock); 49 const std::string& mappedCameraId) const EXCLUDES(mLock); 61 const std::string& cameraId) const EXCLUDES(mLock); 67 int getNumberOfCameras(int32_t deviceId) const EXCLUDES(mLock); 74 const EXCLUDES(mLock); 77 mutable std::mutex mLock; 81 mDeviceIdMappedCameraIdPairToCameraIdMap GUARDED_BY(mLock); 84 mCameraIdToDeviceIdMappedCameraIdPairMap GUARDED_BY(mLock);
|
/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
D | ComponentResolverLocked.java | 40 protected final PackageManagerTracedLock mLock = new PackageManagerTracedLock(); field in ComponentResolverLocked 48 synchronized (mLock) { in componentExists() 56 synchronized (mLock) { in getActivity() 64 synchronized (mLock) { in getProvider() 72 synchronized (mLock) { in getReceiver() 80 synchronized (mLock) { in getService() 87 synchronized (mLock) { in isActivityDefined() 96 synchronized (mLock) { in queryActivities() 106 synchronized (mLock) { in queryActivities() 115 synchronized (mLock) { in queryProvider() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
D | PublishProcessorState.java | 43 private final Object mLock = new Object(); field in PublishProcessorState.PendingRequest 51 synchronized (mLock) { in setPendingRequest() 59 synchronized (mLock) { in clearPendingRequest() 67 synchronized (mLock) { in hasPendingRequest() 74 synchronized (mLock) { in getPendingRequestTriggerType() 253 private final Object mLock = new Object(); field in PublishProcessorState 264 synchronized (mLock) { in generatePublishTaskId() 274 synchronized (mLock) { in getCurrentTaskId() 328 synchronized (mLock) { in setLastPublishedTime() 337 synchronized (mLock) { in increaseRetryCount() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaRecorderClient.cpp | 61 Mutex::Autolock lock(mLock); in setInputSurface() 72 Mutex::Autolock lock(mLock); in querySurfaceMediaSource() 86 Mutex::Autolock lock(mLock); in setCamera() 97 Mutex::Autolock lock(mLock); in setPreviewSurface() 112 Mutex::Autolock lock(mLock); in setVideoSource() 140 Mutex::Autolock lock(mLock); in setAudioSource() 151 Mutex::Autolock lock(mLock); in setPrivacySensitive() 161 Mutex::Autolock lock(mLock); in isPrivacySensitive() 174 Mutex::Autolock lock(mLock); in setOutputFormat() 185 Mutex::Autolock lock(mLock); in setVideoEncoder() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | RemoteMemoryIntArrayService.java | 29 private final Object mLock = new Object(); field in RemoteMemoryIntArrayService 39 synchronized (mLock) { in onBind() 50 synchronized (mLock) { in onBind() 57 synchronized (mLock) { in onBind() 64 synchronized (mLock) { in onBind() 75 synchronized (mLock) { in onBind() 86 synchronized (mLock) { in onBind() 93 synchronized (mLock) { in onBind() 104 synchronized (mLock) { in onBind()
|
/frameworks/av/media/libheadtracking/include/media/ |
D | VectorRecorder.h | 122 std::mutex mLock; variable 126 std::chrono::duration<double> mRecordThreshold GUARDED_BY(mLock); 129 std::chrono::duration<double> mNumberOfSecondsSinceFirstSample GUARDED_BY(mLock); 132 std::chrono::time_point<std::chrono::steady_clock> mFirstSampleTimestamp GUARDED_BY(mLock); 135 size_t mNumberOfSamples GUARDED_BY(mLock) = 0; 137 std::vector<double> mSum GUARDED_BY(mLock); 138 std::vector<float> mMax GUARDED_BY(mLock); 139 std::vector<float> mMin GUARDED_BY(mLock); 142 bool shouldRecordLog_l() REQUIRES(mLock); 145 void resetRecord_l() REQUIRES(mLock); [all …]
|
/frameworks/av/services/audioflinger/afutils/ |
D | AudioWatchdog.h | 68 mutable std::mutex mLock; // Thread::mLock is private variable 70 bool mPaused GUARDED_BY(mLock) = false; // whether thread is currently paused 71 bool mOldTsValid GUARDED_BY(mLock) = false; // whether mOldTs is valid 72 struct timespec mOldTs GUARDED_BY(mLock); // monotonic time when threadLoop last ran 73 struct timespec mLogTs GUARDED_BY(mLock); // time since last log (ctor init). 74 uint32_t mUnderruns GUARDED_BY(mLock) = 0; // total number of underruns 75 uint32_t mLogs GUARDED_BY(mLock) = 0; // total number of logs 78 AudioWatchdogDump* mDump GUARDED_BY(mLock) = &mDummyDump;
|