Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 153) sorted by relevance

1234567

/hardware/google/gfxstream/host/
DRingStream.cpp38 mContext(context), in RingStream()
43 return mContext.ring_config->flush_interval; in getNeededFreeTailSize()
63 mContext.from_host_large_xfer.ring, in commitBuffer()
64 &mContext.from_host_large_xfer.view); in commitBuffer()
68 if (*(mContext.host_state) == ASG_HOST_STATE_EXIT) { in commitBuffer()
84 mContext.from_host_large_xfer.ring, in commitBuffer()
85 &mContext.from_host_large_xfer.view, in commitBuffer()
111 *(mContext.host_state) = ASG_HOST_STATE_CAN_CONSUME; in readRaw()
132 *(mContext.host_state) = ASG_HOST_STATE_CAN_CONSUME; in readRaw()
145 ring_buffer_available_read(mContext.to_host, 0); in readRaw()
[all …]
/hardware/google/aemu/host-common/
Daddress_space_graphics_unittests.cpp82 mContext = asg_context_create(mRingStorage, mBuffer, mBufferSize); in Client()
84 EXPECT_EQ(mBuffer, mContext.buffer); in Client()
90 mContext.ring_config->flush_interval); in Client()
94 mContext.ring_config->transfer_mode = 1; in Client()
95 mContext.ring_config->host_consumed_pos = 0; in Client()
96 mContext.ring_config->guest_write_pos = 0; in Client()
109 return 1 == mContext.ring_config->in_error; in isInError()
113 mContext.ring_config->in_error = 1; in abort()
117 if (size > mContext.ring_config->flush_interval) { in allocBuffer()
136 mContext.ring_config->transfer_size = size; in writeFully()
[all …]
/hardware/qcom/sm7150/gps/core/
DSystemStatusOsObserver.cpp65 ObserverContext& mContext; in setSubscriptionObj() member
68 mContext(context), mSubsObj(subscriptionObj) {} in setSubscriptionObj()
70 mContext.mSubscriptionObj = mSubsObj; in setSubscriptionObj()
72 if (!mContext.mSSObserver->mDataItemToClients.empty()) { in setSubscriptionObj()
75 mContext.mSSObserver->mDataItemToClients.getKeys())); in setSubscriptionObj()
76 mContext.mSubscriptionObj->subscribe(dis, mContext.mSSObserver); in setSubscriptionObj()
77 mContext.mSubscriptionObj->requestData(dis, mContext.mSSObserver); in setSubscriptionObj()
85 mContext.mMsgTask->sendMsg(new SetSubsObj(mContext, subscriptionObj)); in setSubscriptionObj()
111 if (nullptr != mParent->mContext.mSubscriptionObj) { in subscribe()
114 mParent->mContext.mSubscriptionObj->requestData(diItemlist, mParent); in subscribe()
[all …]
DLocContext.cpp42 ContextBase* LocContext::mContext = NULL; member in loc_core::LocContext
72 if (NULL == mContext) { in getLocContext()
75 mContext = new LocContext(msgTask); in getLocContext()
80 mContext->sendMsg(firstMsg); in getLocContext()
83 return mContext; in getLocContext()
/hardware/qcom/sm8150p/gps/core/
DSystemStatusOsObserver.cpp65 ObserverContext& mContext; in setSubscriptionObj() member
68 mContext(context), mSubsObj(subscriptionObj) {} in setSubscriptionObj()
70 mContext.mSubscriptionObj = mSubsObj; in setSubscriptionObj()
72 if (!mContext.mSSObserver->mDataItemToClients.empty()) { in setSubscriptionObj()
75 mContext.mSSObserver->mDataItemToClients.getKeys())); in setSubscriptionObj()
76 mContext.mSubscriptionObj->subscribe(dis, mContext.mSSObserver); in setSubscriptionObj()
77 mContext.mSubscriptionObj->requestData(dis, mContext.mSSObserver); in setSubscriptionObj()
85 mContext.mMsgTask->sendMsg(new SetSubsObj(mContext, subscriptionObj)); in setSubscriptionObj()
111 if (nullptr != mParent->mContext.mSubscriptionObj) { in subscribe()
114 mParent->mContext.mSubscriptionObj->requestData(diItemlist, mParent); in subscribe()
[all …]
DLocContext.cpp42 ContextBase* LocContext::mContext = NULL; member in loc_core::LocContext
72 if (NULL == mContext) { in getLocContext()
75 mContext = new LocContext(msgTask); in getLocContext()
80 mContext->sendMsg(firstMsg); in getLocContext()
83 return mContext; in getLocContext()
DContextBase.h193 ContextBase& mContext;
203 mContext(context), mProcImpl(procImpl) {} in LocApiResponse()
207 mContext.sendMsg(this); in returnToSender()
213 ContextBase& mContext;
223 mContext(context), mProcImpl(procImpl) {} in LocApiCollectiveResponse()
229 mContext.sendMsg(this); in returnToSender()
237 ContextBase& mContext;
248 mContext(context), mProcImpl(procImpl) {} in LocApiResponseData()
253 mContext.sendMsg(this); in returnToSender()
/hardware/qcom/sm8150/gps/core/
DSystemStatusOsObserver.cpp65 ObserverContext& mContext; in setSubscriptionObj() member
68 mContext(context), mSubsObj(subscriptionObj) {} in setSubscriptionObj()
71 mContext.mSubscriptionObj = mSubsObj; in setSubscriptionObj()
73 if (!mContext.mSSObserver->mDataItemToClients.empty()) { in setSubscriptionObj()
76 mContext.mSSObserver->mDataItemToClients.getKeys())); in setSubscriptionObj()
77 mContext.mSubscriptionObj->subscribe(dis, mContext.mSSObserver); in setSubscriptionObj()
78 mContext.mSubscriptionObj->requestData(dis, mContext.mSSObserver); in setSubscriptionObj()
87 mContext.mMsgTask->sendMsg(new SetSubsObj(mContext, subscriptionObj)); in setSubscriptionObj()
113 if (nullptr != mParent->mContext.mSubscriptionObj) { in subscribe()
116 mParent->mContext.mSubscriptionObj->requestData(diItemlist, mParent); in subscribe()
[all …]
/hardware/qcom/sm7250/gps/core/
DSystemStatusOsObserver.cpp65 ObserverContext& mContext; in setSubscriptionObj() member
68 mContext(context), mSubsObj(subscriptionObj) {} in setSubscriptionObj()
71 mContext.mSubscriptionObj = mSubsObj; in setSubscriptionObj()
73 if (!mContext.mSSObserver->mDataItemToClients.empty()) { in setSubscriptionObj()
76 mContext.mSSObserver->mDataItemToClients.getKeys())); in setSubscriptionObj()
77 mContext.mSubscriptionObj->subscribe(dis, mContext.mSSObserver); in setSubscriptionObj()
78 mContext.mSubscriptionObj->requestData(dis, mContext.mSSObserver); in setSubscriptionObj()
87 mContext.mMsgTask->sendMsg(new SetSubsObj(mContext, subscriptionObj)); in setSubscriptionObj()
113 if (nullptr != mParent->mContext.mSubscriptionObj) { in subscribe()
116 mParent->mContext.mSubscriptionObj->requestData(diItemlist, mParent); in subscribe()
[all …]
/hardware/interfaces/audio/aidl/default/envReverb/
DEnvReverbSw.cpp106 RETURN_IF(mContext->setErRoomLevel(erParam.get<EnvironmentalReverb::roomLevelMb>()) != in setParameterSpecific()
113 mContext->setErRoomHfLevel(erParam.get<EnvironmentalReverb::roomHfLevelMb>()) != in setParameterSpecific()
119 RETURN_IF(mContext->setErDecayTime(erParam.get<EnvironmentalReverb::decayTimeMs>()) != in setParameterSpecific()
126 mContext->setErDecayHfRatio( in setParameterSpecific()
132 RETURN_IF(mContext->setErReflectionsLevel( in setParameterSpecific()
139 RETURN_IF(mContext->setErReflectionsDelay( in setParameterSpecific()
146 RETURN_IF(mContext->setErLevel(erParam.get<EnvironmentalReverb::levelMb>()) != in setParameterSpecific()
152 RETURN_IF(mContext->setErDelay(erParam.get<EnvironmentalReverb::delayMs>()) != in setParameterSpecific()
158 RETURN_IF(mContext->setErDiffusion(erParam.get<EnvironmentalReverb::diffusionPm>()) != in setParameterSpecific()
164 RETURN_IF(mContext->setErDensity(erParam.get<EnvironmentalReverb::densityPm>()) != in setParameterSpecific()
[all …]
/hardware/interfaces/audio/aidl/default/visualizer/
DVisualizerSw.cpp97 RETURN_IF(mContext->setVsCaptureSize(vsParam.get<Visualizer::captureSamples>()) != in setParameterSpecific()
103 RETURN_IF(mContext->setVsScalingMode(vsParam.get<Visualizer::scalingMode>()) != in setParameterSpecific()
109 RETURN_IF(mContext->setVsMeasurementMode(vsParam.get<Visualizer::measurementMode>()) != in setParameterSpecific()
115 RETURN_IF(mContext->setVsLatency(vsParam.get<Visualizer::latencyMs>()) != in setParameterSpecific()
145 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterVisualizer()
150 vsParam.set<Visualizer::captureSamples>(mContext->getVsCaptureSize()); in getParameterVisualizer()
154 vsParam.set<Visualizer::scalingMode>(mContext->getVsScalingMode()); in getParameterVisualizer()
158 vsParam.set<Visualizer::measurementMode>(mContext->getVsMeasurementMode()); in getParameterVisualizer()
162 vsParam.set<Visualizer::measurement>(mContext->getVsMeasurement()); in getParameterVisualizer()
166 vsParam.set<Visualizer::captureSampleBuffer>(mContext->getVsCaptureSampleBuffer()); in getParameterVisualizer()
[all …]
/hardware/interfaces/renderscript/1.0/default/
DContext.cpp44 mContext = Device::getHal().ContextCreateVendor(_dev, _version, _sdkVersion, in Context()
85 RsAllocation _subAlloc = Device::getHal().AllocationAdapterCreate(mContext, _type, _baseAlloc); in allocationAdapterCreate()
92 …Device::getHal().AllocationAdapterOffset(mContext, _alloc, _offsets.data(), _offsets.size() * size… in allocationAdapterOffset()
98 const void* _type = Device::getHal().AllocationGetType(mContext, _allocation); in allocationGetType()
107 …RsAllocation _allocation = Device::getHal().AllocationCreateTyped(mContext, _type, _amips, _usage,… in allocationCreateTyped()
116 …RsAllocation _allocation = Device::getHal().AllocationCreateFromBitmap(mContext, _type, _amips, _b… in allocationCreateFromBitmap()
125 …RsAllocation _allocation = Device::getHal().AllocationCubeCreateFromBitmap(mContext, _type, _amips… in allocationCubeCreateFromBitmap()
131 RsNativeWindow _nativeWindow = Device::getHal().AllocationGetSurface(mContext, _allocation); in allocationGetNativeWindow()
138 Device::getHal().AllocationSetSurface(mContext, _allocation, _nativewindow); in allocationSetNativeWindow()
145 Device::getHal().AllocationSetupBufferQueue(mContext, _alloc, _numBuffer); in allocationSetupBufferQueue()
[all …]
/hardware/interfaces/audio/aidl/default/automaticGainControlV2/
DAutomaticGainControlV2Sw.cpp92 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
99 RETURN_IF(mContext->setDigitalGain( in setParameterSpecific()
106 RETURN_IF(mContext->setLevelEstimator( in setParameterSpecific()
113 RETURN_IF(mContext->setSaturationMargin( in setParameterSpecific()
146 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterAutomaticGainControlV2()
150 param.set<AutomaticGainControlV2::fixedDigitalGainMb>(mContext->getDigitalGain()); in getParameterAutomaticGainControlV2()
154 param.set<AutomaticGainControlV2::levelEstimator>(mContext->getLevelEstimator()); in getParameterAutomaticGainControlV2()
158 param.set<AutomaticGainControlV2::saturationMarginMb>(mContext->getSaturationMargin()); in getParameterAutomaticGainControlV2()
174 if (mContext) { in createContext()
177 mContext = in createContext()
[all …]
/hardware/interfaces/audio/aidl/default/automaticGainControlV1/
DAutomaticGainControlV1Sw.cpp88 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
95 RETURN_IF(mContext->setTargetPeakLevel( in setParameterSpecific()
102 RETURN_IF(mContext->setMaxCompressionGain( in setParameterSpecific()
110 mContext->setEnableLimiter( in setParameterSpecific()
142 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterAutomaticGainControlV1()
146 param.set<AutomaticGainControlV1::targetPeakLevelDbFs>(mContext->getTargetPeakLevel()); in getParameterAutomaticGainControlV1()
151 mContext->getMaxCompressionGain()); in getParameterAutomaticGainControlV1()
155 param.set<AutomaticGainControlV1::enableLimiter>(mContext->getEnableLimiter()); in getParameterAutomaticGainControlV1()
171 if (mContext) { in createContext()
174 mContext = in createContext()
[all …]
/hardware/google/gfxstream/host/gl/
DDisplaySurfaceGl.cpp52 mContext(context) { in DisplaySurfaceGlContextHelper()
61 if (mContext == EGL_NO_CONTEXT) { in DisplaySurfaceGlContextHelper()
74 bool needsUpdate = (currentContext != mContext || in setupContext()
81 "current=%p, needed=%p, thread=%p", currentContext, mContext, &sThreadState); in setupContext()
85 if (!s_egl.eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in setupContext()
134 EGLContext mContext = EGL_NO_CONTEXT; member in gfxstream::gl::__anonde5edafa0111::DisplaySurfaceGlContextHelper
190 if (!s_egl.eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in bindContext()
202 mContext(context), in DisplaySurfaceGl()
210 if (mContext) { in ~DisplaySurfaceGl()
211 s_egl.eglDestroyContext(mDisplay, mContext); in ~DisplaySurfaceGl()
/hardware/qcom/gps/msm8909w_3100/core/
DSystemStatusOsObserver.cpp47 mContext.mMsgTask = msgTask; in SystemStatusOsObserver()
69 mContext.mSubscriptionObj = subscriptionObj; in setSubscriptionObj()
114 if (nullptr == mContext.mSubscriptionObj) { in subscribe()
146 mParent->mContext.mSubscriptionObj->subscribe(yetToSubscribeDataItemsList, mParent); in subscribe()
155 mContext.mMsgTask->sendMsg(new (nothrow) HandleSubscribeReq(this, l, client)); in subscribe()
161 if (nullptr == mContext.mSubscriptionObj) { in updateSubscription()
198 mParent->mContext.mSubscriptionObj->subscribe( in updateSubscription()
214 mParent->mContext.mSubscriptionObj->unsubscribe(unsubscribeList, mParent); in updateSubscription()
223 mContext.mMsgTask->sendMsg(new (nothrow) HandleUpdateSubscriptionReq(this, l, client)); in updateSubscription()
229 if (nullptr == mContext.mSubscriptionObj) { in requestData()
[all …]
/hardware/interfaces/audio/aidl/default/hapticGenerator/
DHapticGeneratorSw.cpp83 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
90 RETURN_IF(mContext->setHgHapticScales(hgParam.get<HapticGenerator::hapticScales>()) != in setParameterSpecific()
96 RETURN_IF(mContext->setHgVibratorInformation( in setParameterSpecific()
128 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterHapticGenerator()
133 hgParam.set<HapticGenerator::hapticScales>(mContext->getHgHapticScales()); in getParameterHapticGenerator()
137 hgParam.set<HapticGenerator::vibratorInfo>(mContext->getHgVibratorInformation()); in getParameterHapticGenerator()
152 if (mContext) { in createContext()
155 mContext = std::make_shared<HapticGeneratorSwContext>(1 /* statusFmqDepth */, common); in createContext()
158 return mContext; in createContext()
162 if (mContext) { in releaseContext()
[all …]
/hardware/interfaces/audio/aidl/default/noiseSuppression/
DNoiseSuppressionSw.cpp83 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
90 RETURN_IF(mContext->setLevel(param.get<NoiseSuppression::level>()) != RetCode::SUCCESS, in setParameterSpecific()
95 RETURN_IF(mContext->setType(param.get<NoiseSuppression::type>()) != RetCode::SUCCESS, in setParameterSpecific()
127 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterNoiseSuppression()
131 param.set<NoiseSuppression::level>(mContext->getLevel()); in getParameterNoiseSuppression()
135 param.set<NoiseSuppression::type>(mContext->getType()); in getParameterNoiseSuppression()
150 if (mContext) { in createContext()
153 mContext = std::make_shared<NoiseSuppressionSwContext>(1 /* statusFmqDepth */, common); in createContext()
155 return mContext; in createContext()
159 if (mContext) { in releaseContext()
[all …]
/hardware/interfaces/audio/aidl/default/equalizer/
DEqualizerSw.cpp109 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
116 RETURN_IF(mContext->setEqPreset(eqParam.get<Equalizer::preset>()) != RetCode::SUCCESS, in setParameterSpecific()
121 RETURN_IF(mContext->setEqBandLevels(eqParam.get<Equalizer::bandLevels>()) != in setParameterSpecific()
156 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterEqualizer()
161 eqParam.set<Equalizer::bandLevels>(mContext->getEqBandLevels()); in getParameterEqualizer()
165 eqParam.set<Equalizer::preset>(mContext->getEqPreset()); in getParameterEqualizer()
169 eqParam.set<Equalizer::centerFreqMh>(mContext->getCenterFreqs()); in getParameterEqualizer()
192 if (mContext) { in createContext()
195 mContext = std::make_shared<EqualizerSwContext>(1 /* statusFmqDepth */, common); in createContext()
198 return mContext; in createContext()
[all …]
/hardware/interfaces/audio/aidl/default/loudnessEnhancer/
DLoudnessEnhancerSw.cpp82 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
89 RETURN_IF(mContext->setLeGainMb(leParam.get<LoudnessEnhancer::gainMb>()) != in setParameterSpecific()
121 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterLoudnessEnhancer()
126 leParam.set<LoudnessEnhancer::gainMb>(mContext->getLeGainMb()); in getParameterLoudnessEnhancer()
141 if (mContext) { in createContext()
144 mContext = std::make_shared<LoudnessEnhancerSwContext>(1 /* statusFmqDepth */, common); in createContext()
147 return mContext; in createContext()
151 if (mContext) { in releaseContext()
152 mContext.reset(); in releaseContext()
/hardware/interfaces/audio/aidl/default/downmix/
DDownmixSw.cpp82 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
89 RETURN_IF(mContext->setDmType(dmParam.get<Downmix::type>()) != RetCode::SUCCESS, in setParameterSpecific()
119 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterDownmix()
123 dmParam.set<Downmix::type>(mContext->getDmType()); in getParameterDownmix()
138 if (mContext) { in createContext()
141 mContext = std::make_shared<DownmixSwContext>(1 /* statusFmqDepth */, common); in createContext()
144 return mContext; in createContext()
148 if (mContext) { in releaseContext()
149 mContext.reset(); in releaseContext()
/hardware/interfaces/audio/aidl/default/volume/
DVolumeSw.cpp95 RETURN_IF(mContext->setVolLevel(volParam.get<Volume::levelDb>()) != RetCode::SUCCESS, in setParameterSpecific()
100 RETURN_IF(mContext->setVolMute(volParam.get<Volume::mute>()) != RetCode::SUCCESS, in setParameterSpecific()
130 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterVolume()
135 volParam.set<Volume::levelDb>(mContext->getVolLevel()); in getParameterVolume()
139 volParam.set<Volume::mute>(mContext->getVolMute()); in getParameterVolume()
154 if (mContext) { in createContext()
157 mContext = std::make_shared<VolumeSwContext>(1 /* statusFmqDepth */, common); in createContext()
160 return mContext; in createContext()
164 if (mContext) { in releaseContext()
165 mContext.reset(); in releaseContext()
/hardware/interfaces/audio/aidl/default/extension/
DExtensionEffect.cpp85 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
92 RETURN_IF(mContext->setParams(defaultExt->bytes) != RetCode::SUCCESS, EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
110 defaultExt.bytes = mContext->getParams(defaultIdExt->bytes); in getParameterSpecific()
118 if (mContext) { in createContext()
121 mContext = std::make_shared<ExtensionEffectContext>(1 /* statusFmqDepth */, common); in createContext()
123 return mContext; in createContext()
127 if (mContext) { in releaseContext()
128 mContext.reset(); in releaseContext()
/hardware/interfaces/audio/aidl/default/dynamicProcessing/
DDynamicsProcessingSw.cpp113 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
120 RETURN_IF(mContext->setEngineArchitecture( in setParameterSpecific()
127 RETURN_IF(mContext->setPreEqChannelCfgs(dpParam.get<DynamicsProcessing::preEq>()) != in setParameterSpecific()
133 RETURN_IF(mContext->setPostEqChannelCfgs(dpParam.get<DynamicsProcessing::postEq>()) != in setParameterSpecific()
139 RETURN_IF(mContext->setMbcChannelCfgs(dpParam.get<DynamicsProcessing::mbc>()) != in setParameterSpecific()
145 RETURN_IF(mContext->setPreEqBandCfgs(dpParam.get<DynamicsProcessing::preEqBand>()) != in setParameterSpecific()
151 RETURN_IF(mContext->setPostEqBandCfgs(dpParam.get<DynamicsProcessing::postEqBand>()) != in setParameterSpecific()
157 RETURN_IF(mContext->setMbcBandCfgs(dpParam.get<DynamicsProcessing::mbcBand>()) != in setParameterSpecific()
163 RETURN_IF(mContext->setLimiterCfgs(dpParam.get<DynamicsProcessing::limiter>()) != in setParameterSpecific()
169 RETURN_IF(mContext->setInputGainCfgs(dpParam.get<DynamicsProcessing::inputGain>()) != in setParameterSpecific()
[all …]
/hardware/interfaces/audio/aidl/default/bassboost/
DBassBoostSw.cpp88 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific()
97 RETURN_IF(mContext->setBbStrengthPm(strength) != RetCode::SUCCESS, EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
127 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterBassBoost()
131 bbParam.set<BassBoost::strengthPm>(mContext->getBbStrengthPm()); in getParameterBassBoost()
146 if (mContext) { in createContext()
149 mContext = std::make_shared<BassBoostSwContext>(1 /* statusFmqDepth */, common); in createContext()
151 return mContext; in createContext()
155 if (mContext) { in releaseContext()
156 mContext.reset(); in releaseContext()

1234567