Home
last modified time | relevance | path

Searched refs:mHandle (Results 1 – 25 of 46) sorted by relevance

12

/hardware/qcom/audio/legacy/alsa_sound/
DAudioStreamOutALSA.cpp87 if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER) || in setVolume()
88 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LPA)) { in setVolume()
91 mHandle->module->setLpaVolume(vol); in setVolume()
94 else if(!strcmp(mHandle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL) || in setVolume()
95 !strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_TUNNEL)) { in setVolume()
98 mHandle->module->setCompressedVolume(vol); in setVolume()
101 else if(!strncmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, in setVolume()
102 sizeof(mHandle->useCase)) || !strncmp(mHandle->useCase, in setVolume()
103 SND_USE_CASE_MOD_PLAY_VOIP, sizeof(mHandle->useCase))) { in setVolume()
123 if((mHandle->handle == NULL) && (mHandle->rxHandle == NULL) && in write()
[all …]
DAudioStreamInALSA.cpp138 if((mHandle->handle == NULL) && (mHandle->rxHandle == NULL) && in read()
139 (strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) && in read()
140 (strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in read()
142 snd_use_case_get(mHandle->ucMgr, "_verb", (const char **)&use_case); in read()
144 if ((mHandle->devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in read()
152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
153 sizeof(mHandle->useCase)); in read()
158 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in read()
159 sizeof(mHandle->useCase)); in read()
165 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in read()
[all …]
DALSAControl.cpp45 mHandle = mixer_open(device); in ALSAControl()
46 ALOGV("ALSAControl: ctor mixer %p", mHandle); in ALSAControl()
51 if (mHandle) mixer_close(mHandle); in ~ALSAControl()
58 if (!mHandle) { in get()
63 ctl = mixer_get_control(mHandle, name, index); in get()
76 if (!mHandle) { in set()
82 ctl = mixer_get_control(mHandle, name, 0); in set()
97 if (!mHandle) { in set()
102 ctl = mixer_get_control(mHandle, name, 0); in set()
116 if (!mHandle) { in setext()
[all …]
DALSAStreamOps.cpp50 mHandle(handle) in ALSAStreamOps()
58 if((!strcmp(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in ~ALSAStreamOps()
59 (!strcmp(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in ~ALSAStreamOps()
74 if (mHandle == &(*it)) { in ~ALSAStreamOps()
101 if (mHandle->channels != popCount(*channels)) in set()
104 if (mHandle->devices & AudioSystem::DEVICE_OUT_ALL) { in set()
135 if (mHandle->sampleRate != *rate) in set()
138 *rate = mHandle->sampleRate; in set()
141 snd_pcm_format_t iformat = mHandle->format; in set()
170 if (mHandle->format != iformat) in set()
[all …]
/hardware/google/gfxstream/common/end2end/
DGfxstreamEnd2EndTests.h247 (mGlDispatch->*mGlGenFunc)(1, &mHandle); in ScopedGlType()
257 mHandle(rhs.mHandle) { in ScopedGlType()
258 rhs.mHandle = 0; in ScopedGlType()
265 std::swap(mHandle, rhs.mHandle);
270 if (mHandle != 0) { in ~ScopedGlType()
271 (mGlDispatch->*mGlDelFunc)(1, &mHandle); in ~ScopedGlType()
272 mHandle = 0; in ~ScopedGlType()
276 operator GLuint() { return mHandle; } in GLuint()
277 operator GLuint() const { return mHandle; } in GLuint()
283 GLuint mHandle = 0; variable
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraThermalAdapter.cpp57 mHandle(NULL), in QCameraThermalAdapter()
71 mHandle = dlopen("/vendor/lib/libthermalclient.so", RTLD_NOW); in init()
72 if (!mHandle) { in init()
79 *(void **)&mRegister = dlsym(mHandle, "thermal_client_register_callback"); in init()
87 *(void **)&mUnregister = dlsym(mHandle, "thermal_client_unregister_callback"); in init()
122 dlclose(mHandle); in init()
123 mHandle = NULL; in init()
142 if (mHandle) in deinit()
143 dlclose(mHandle); in deinit()
145 mHandle = NULL; in deinit()
DQCameraStream.cpp354 mHandle(0), in QCameraStream()
460 if (mHandle > 0) { in ~QCameraStream()
461 mCamOps->delete_stream(mCamHandle, mChannelHandle, mHandle); in ~QCameraStream()
462 mHandle = 0; in ~QCameraStream()
487 mHandle, in unmapStreamInfoBuf()
560 if (mHandle > 0) { in deleteStream()
564 mCamOps->delete_stream(mCamHandle, mChannelHandle, mHandle); in deleteStream()
595 rc = mCamOps->unmap_stream_buf(mCamHandle, mChannelHandle, mHandle, in unMapBuf()
633 uint32_t activeHandle = mHandle; in mapBufs()
647 activeHandle = get_aux_camera_handle(mHandle); in mapBufs()
[all …]
/hardware/google/gfxstream/host/vulkan/
DColorBufferVk.cpp44 stream->putBe32(static_cast<uint32_t>(getColorBufferCurrentLayout(mHandle))); in onSave()
47 ColorBufferVk::ColorBufferVk(uint32_t handle) : mHandle(handle) {} in ColorBufferVk()
50 if (!teardownVkColorBuffer(mHandle)) { in ~ColorBufferVk()
51 ERR("Failed to destroy ColorBufferVk:%d", mHandle); in ~ColorBufferVk()
56 return readColorBufferToBytes(mHandle, outBytes); in readToBytes()
60 return readColorBufferToBytes(mHandle, x, y, w, h, outBytes); in readToBytes()
64 return updateColorBufferFromBytes(mHandle, bytes); in updateFromBytes()
69 return updateColorBufferFromBytes(mHandle, x, y, w, h, bytes); in updateFromBytes()
78 return importExtMemoryHandleToVkColorBuffer(mHandle, type, extMemoryHandle); in importExtMemoryHandle()
DBufferVk.cpp32 BufferVk::BufferVk(uint32_t handle) : mHandle(handle) {} in BufferVk()
35 if (!teardownVkBuffer(mHandle)) { in ~BufferVk()
36 ERR("Failed to destroy BufferVk:%d", mHandle); in ~BufferVk()
41 readBufferToBytes(mHandle, offset, size, outBytes); in readToBytes()
45 return updateBufferFromBytes(mHandle, offset, size, bytes); in updateFromBytes()
DBufferVk.h34 const uint32_t mHandle; variable
/hardware/google/aemu/host-common/
DRefcountPipe.cpp32 mHandle = loadStream->getBe32(); in RefcountPipe()
34 mHandle = 0; in RefcountPipe()
41 func(mHandle); in ~RefcountPipe()
72 memcpy(&mHandle, forRecv, arraySize(forRecv)); in onGuestSend()
79 stream->putBe32(mHandle); in onSave()
Daddress_space_graphics_unittests.cpp59 mHandle(mDevice->open()) { in Client()
67 EXPECT_EQ(0, mDevice->claimShared(mHandle, mRingOffset, mRingSize)); in Client()
77 EXPECT_EQ(0, mDevice->claimShared(mHandle, mBufferOffset, mBufferSize)); in Client()
103 mDevice->unclaimShared(mHandle, mBufferOffset); in ~Client()
104 mDevice->unclaimShared(mHandle, mRingOffset); in ~Client()
105 mDevice->close(mHandle); in ~Client()
346 mDevice->ping(mHandle, &info); in ping()
351 uint32_t mHandle; member in android::emulation::asg::AddressSpaceGraphicsTest::Client
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraPerf.cpp398 mHandle(0), in QCameraPerfLock()
420 if (mHandle > 0) { in ~QCameraPerfLock()
421 (*mPerfLockIntf->perfLockRel())(mHandle); in ~QCameraPerfLock()
511 mHandle = 0; in acquirePerfLock()
516 mHandle = (*mPerfLockIntf->perfLockAcq())( in acquirePerfLock()
517 mHandle, timer, in acquirePerfLock()
521 if (mHandle > 0) { in acquirePerfLock()
525 mHandle, mRefCount, mPerfLockType); in acquirePerfLock()
576 if (mHandle > 0) { in releasePerfLock()
578 mHandle, mRefCount, mPerfLockType); in releasePerfLock()
[all …]
/hardware/google/gfxstream/host/gl/
DEmulatedEglImage.h42 HandleType getHandle() const { return mHandle; } in getHandle()
49 const HandleType mHandle = 0; variable
DBufferGl.h38 HandleType getHndl() const { return mHandle; } in getHndl()
58 const HandleType mHandle; variable
DBufferGl.cpp21 : mSize(size), mHandle(handle), mContextHelper(helper) {} in BufferGl()
101 stream->putBe32(mHandle); in onSave()
/hardware/interfaces/media/bufferpool/aidl/default/include/bufferpool2/
DBufferPoolTypes.h80 const native_handle_t *mHandle; member
83 return mHandle; in handle()
86 BufferPoolAllocation(const native_handle_t *handle) : mHandle(handle) {} in BufferPoolAllocation()
/hardware/interfaces/audio/effect/all-versions/default/
DEffect.cpp312 : mIsInput(isInput), mHandle(handle), mEfGroup(nullptr), mStopProcessThread(false) { in Effect()
440 ALOGW("Effect %p %s %s %s: %s", mHandle, funcName, subFuncName, contextDescription, in analyzeStatus()
462 if (mHandle == kInvalidEffectHandle) { \
466 if (mHandle == kInvalidEffectHandle) { \
477 (*mHandle)->command(mHandle, commandCode, 0, NULL, &halResultSize, &halConfig); in getConfigImpl()
567 mProcessThread = new ProcessThread(&mStopProcessThread, mHandle, &mHalInBufferPtr, in prepareForProcessing()
579 (*mHandle)->get_descriptor(mHandle, &halDescriptor) == NO_ERROR && in prepareForProcessing()
618 status_t status = (*mHandle)->command(mHandle, commandCode, size, data, 0, NULL); in sendCommand()
631 status_t status = (*mHandle)->command(mHandle, commandCode, size, data, replySize, replyData); in sendCommandReturningData()
655 status_t status = (*mHandle)->command(mHandle, commandCode, size, data, replySize, replyData); in sendCommandReturningStatusAndData()
[all …]
/hardware/google/gfxstream/host/
DBuffer.h55 HandleType getHndl() const { return mHandle; } in getHndl()
65 const HandleType mHandle; variable
DColorBuffer.cpp46 : mHandle(handle), in ColorBuffer()
336 if (!vk::readColorBufferToBytes(mHandle, &contents)) { in flushFromVk()
337 ERR("Failed to get VK contents for ColorBuffer:%d", mHandle); in flushFromVk()
347 ERR("Failed to set GL contents for ColorBuffer:%d", mHandle); in flushFromVk()
367 ERR("Failed to update ColorBuffer:%d GL backing from VK bytes.", mHandle); in flushFromVkBytes()
402 ERR("Failed to get GL contents size for ColorBuffer:%d", mHandle); in invalidateForVk()
409 ERR("Failed to get GL contents for ColorBuffer:%d", mHandle); in invalidateForVk()
414 ERR("Failed to set VK contents for ColorBuffer:%d", mHandle); in invalidateForVk()
DBuffer.cpp30 Buffer::Buffer(HandleType handle, uint64_t size) : mHandle(handle), mSize(size) {} in Buffer()
93 stream->putBe32(mHandle); in onSave()
/hardware/interfaces/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/
DComposerResources.h196 if (mHandle) {
198 mImporter->freeBuffer(mHandle);
200 mImporter->freeStream(mHandle);
205 mHandle = handle;
211 const native_handle_t* mHandle = nullptr; variable
/hardware/interfaces/media/bufferpool/aidl/default/tests/
Dallocator.cpp86 : mHandle(ashmemFd, capacity), in AllocationAshmem()
98 native_handle_close(&mHandle); in ~AllocationAshmem()
103 return &mHandle; in handle()
107 HandleAshmem mHandle; member in __anon8535dd720211::AllocationAshmem
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Stream.cpp285 mHandle(0), in QCamera3Stream()
334 mChannelHandle, mHandle, CAM_MAPPING_BUF_TYPE_STREAM_INFO, 0, -1); in ~QCamera3Stream()
343 if (mHandle > 0) { in ~QCamera3Stream()
344 mCamOps->delete_stream(mCamHandle, mChannelHandle, mHandle); in ~QCamera3Stream()
345 mHandle = 0; in ~QCamera3Stream()
390 mHandle = mCamOps->add_stream(mCamHandle, mChannelHandle); in init()
391 if (!mHandle) { in init()
438 mChannelHandle, mHandle, CAM_MAPPING_BUF_TYPE_STREAM_INFO, in init()
498 mChannelHandle, mHandle, &stream_config); in init()
511 mChannelHandle, mHandle, CAM_MAPPING_BUF_TYPE_STREAM_INFO, 0, -1); in init()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/EGL/
DEglOsApi_darwin.cpp110 mHandle(handle), in MacPixelFormat()
116 return new MacPixelFormat(mHandle, mRedSize, mGreenSize, mBlueSize); in clone()
119 int handle() const { return mHandle; } in handle()
132 int mHandle = 0; member in __anon19379e4b0111::MacPixelFormat

12