Home
last modified time | relevance | path

Searched refs:mPatch (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/jni/
DNinePatchPeeker.cpp36 free(mPatch); in readChunk()
37 mPatch = patchNew; in readChunk()
76 if (!mPatch) { in scale()
83 mPatch->paddingLeft = int(mPatch->paddingLeft * scaleX + 0.5f); in scale()
84 mPatch->paddingRight = int(mPatch->paddingRight * scaleX + 0.5f); in scale()
85 scaleDivRange(mPatch->getXDivs(), mPatch->numXDivs, scaleX, scaledWidth - 1); in scale()
89 mPatch->paddingTop = int(mPatch->paddingTop * scaleY + 0.5f); in scale()
90 mPatch->paddingBottom = int(mPatch->paddingBottom * scaleY + 0.5f); in scale()
91 scaleDivRange(mPatch->getYDivs(), mPatch->numYDivs, scaleY, scaledHeight - 1); in scale()
DNinePatchPeeker.h30 : mPatch(NULL) in NinePatchPeeker()
40 free(mPatch); in ~NinePatchPeeker()
49 Res_png_9patch* mPatch; variable
DNinePatch.cpp140 if (mPatch) { in getPadding()
142 mPatch->paddingLeft, mPatch->paddingTop, in getPadding()
143 mPatch->paddingRight, mPatch->paddingBottom); in getPadding()
DImageDecoder.cpp155 const bool isNinePatch = peeker->mPatch != nullptr; in native_create()
410 if (peeker->mPatch != nullptr) { in ImageDecoder_nDecodeBitmap()
411 size_t ninePatchArraySize = peeker->mPatch->serializedSize(); in ImageDecoder_nDecodeBitmap()
419 reinterpret_cast<jbyte*>(peeker->mPatch)); in ImageDecoder_nDecodeBitmap()
DBitmapFactory.cpp384 if (peeker.mPatch && kRGB_565_SkColorType == prefColorType) { in doDecode()
536 if (peeker.mPatch != NULL) { in doDecode()
541 size_t ninePatchArraySize = peeker.mPatch->serializedSize(); in doDecode()
552 memcpy(array, peeker.mPatch, peeker.mPatchSize); in doDecode()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp31 mPatch(*patch), in AudioPatch()
57 dumpPatchEndpoints(dst, spaces, "src ", mPatch.num_sources, mPatch.sources); in dump()
58 dumpPatchEndpoints(dst, spaces, "sink", mPatch.num_sinks, mPatch.sinks); in dump()
73 handle, patch->getAfHandle(), patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
74 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
111 for (size_t srcIndex = 0; srcIndex < patch->mPatch.num_sources && !skip; srcIndex++) { in listAudioPatches()
112 if (patch->mPatch.sources[srcIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
113 patch->mPatch.sources[srcIndex].ext.device.type == AUDIO_DEVICE_IN_STUB) { in listAudioPatches()
117 for (size_t sinkIndex = 0; sinkIndex < patch->mPatch.num_sinks && !skip; sinkIndex++) { in listAudioPatches()
118 if (patch->mPatch.sinks[sinkIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h50 mIoHandle(ioHandle), mPatch(patch), mPortId(portId) {} in AudioIoDescriptor()
57 mIoHandle(ioHandle), mPatch(patch), mIsInput(isInput), in mIoHandle()
63 const audio_patch& getPatch() const { return mPatch; } in getPatch()
73 if (mPatch.num_sources != 0 && mPatch.num_sinks != 0) { in getDeviceId()
75 return mIsInput ? mPatch.sources[0].id : mPatch.sinks[0].id; in getDeviceId()
79 void setPatch(const audio_patch& patch) { mPatch = patch; } in setPatch()
97 struct audio_patch mPatch = {}; variable
/frameworks/av/media/libmedia/include/media/
DPatchBuilder.h40 const struct audio_patch* patch() const { return &mPatch; } in patch()
95 PortCfgs sinks() { return PortCfgs(&mPatch.num_sinks, mPatch.sinks); } in sinks()
96 PortCfgs sources() { return PortCfgs(&mPatch.num_sources, mPatch.sources); } in sources()
98 struct audio_patch mPatch = {}; variable
/frameworks/av/services/audioflinger/
DPatchCommandThread.h97 : mHandle(handle), mPatch(patch) {} in CreateAudioPatchData()
100 const IAfPatchPanel::Patch mPatch; variable
116 : mOldHandle(oldHandle), mNewHandle(newHandle), mPatch(patch) {} in UpdateAudioPatchData()
120 const IAfPatchPanel::Patch mPatch; variable
DPatchCommandThread.cpp97 spListener->onCreateAudioPatch(data->mHandle, data->mPatch); in threadLoop()
126 data->mNewHandle, data->mPatch); in threadLoop()
DThreads.cpp648 memset(&mPatch, 0, sizeof(struct audio_patch)); in ThreadBase()
901 event->mStatus = createAudioPatch_l(&data->mPatch, &data->mHandle); in processConfigEvents_l()
2957 track->logBeginInterval(patchSinksToString(&mPatch)); // log to MediaMetrics in addTrack_l()
3049 const struct audio_patch patch = isMsdDevice() ? mDownStreamPatch : mPatch; in ioConfigChanged_l()
4977 bool configChanged = (mPatch.num_sinks == 0) || in createAudioPatch_l()
4978 (mPatch.sinks[0].id != sinkPortId); in createAudioPatch_l()
4979 mPatch = *patch; in createAudioPatch_l()
5032 mPatch = audio_patch{}; in releaseAudioPatch_l()
9166 recordTrack->logBeginInterval(patchSourcesToString(&mPatch)); // log to MediaMetrics in start()
9710 desc = sp<AudioIoDescriptor>::make(mId, mPatch, true /*isInput*/, in ioConfigChanged_l()
[all …]
DThreads.h207 mPatch(patch), mHandle(handle) {} in CreateAudioPatchConfigEventData()
213 const struct audio_patch mPatch; variable
714 struct audio_patch mPatch; variable
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp929 &cleanups, &config, &mMixPortConfig, &mPatch)); in SetUp()
931 ASSERT_NE(0, mPatch.id); in SetUp()
934 mMapper->addStream(mStream, mMixPortConfig.id, mPatch.id); in SetUp()
938 ASSERT_EQ(1UL, mPatch.sourcePortConfigIds.size()); in SetUp()
939 ASSERT_EQ(mMixPortConfig.id, mPatch.sourcePortConfigIds[0]); in SetUp()
940 ASSERT_EQ(1UL, mPatch.sinkPortConfigIds.size()); in SetUp()
941 ASSERT_EQ(mDevicePortConfig.id, mPatch.sinkPortConfigIds[0]); in SetUp()
989 AudioPatch mPatch; member in Hal2AidlMapperTest
1020 EXPECT_EQ(0, mMapper->findFwkPatch(mPatch.id)); in TEST_F()
1027 EXPECT_EQ(0, mMapper->findFwkPatch(mPatch.id)); in TEST_F()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPatch.h46 struct audio_patch mPatch; variable
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1796 for (size_t j = 0; j < patch->mPatch.num_sources; ++j) { in getMsdOutputPatches()
1797 const struct audio_port_config *source = &patch->mPatch.sources[j]; in getMsdOutputPatches()
1818 const struct audio_port_config *sink = &patch->mPatch.sinks[0]; in isMsdPatch()
1994 if (audio_patches_are_equal(it->patch(), &patchesToRemove[i]->mPatch)) { in setMsdOutputPatches()
2039 for (size_t j = 0; j < patch->mPatch.num_sinks; ++j) { in releaseMsdOutputPatches()
2040 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in releaseMsdOutputPatches()
2056 for (size_t j = 0; j < patch->mPatch.num_sinks; ++j) { in msdHasPatchesToAllDevices()
2057 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in msdHasPatchesToAllDevices()
5200 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
5202 __func__, patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatchInternal()
[all …]
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp723 ASSERT_EQ(1, patch->mPatch.num_sources); in TEST_P()
724 ASSERT_EQ(1, patch->mPatch.num_sinks); in TEST_P()
725 ASSERT_EQ(AUDIO_PORT_ROLE_SOURCE, patch->mPatch.sources[0].role); in TEST_P()
726 ASSERT_EQ(AUDIO_PORT_ROLE_SINK, patch->mPatch.sinks[0].role); in TEST_P()
727 ASSERT_EQ(AUDIO_FORMAT_IEC60958, patch->mPatch.sources[0].format); in TEST_P()
728 ASSERT_EQ(AUDIO_FORMAT_IEC60958, patch->mPatch.sinks[0].format); in TEST_P()
729 ASSERT_EQ(AUDIO_CHANNEL_INDEX_MASK_24, patch->mPatch.sources[0].channel_mask); in TEST_P()
730 ASSERT_EQ(AUDIO_CHANNEL_INDEX_MASK_24, patch->mPatch.sinks[0].channel_mask); in TEST_P()
731 ASSERT_EQ(k48000SamplingRate, patch->mPatch.sources[0].sample_rate); in TEST_P()
732 ASSERT_EQ(k48000SamplingRate, patch->mPatch.sinks[0].sample_rate); in TEST_P()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1866 command->mStatus = af->createAudioPatch(&data->mPatch, &data->mHandle); in threadLoop()
2207 data->mPatch = *patch; in createAudioPatchCommand()
2478 patch = ((CreateAudioPatchData *)command->mParam.get())->mPatch; in insertCommand_l()
2487 patch2 = ((CreateAudioPatchData *)command2->mParam.get())->mPatch; in insertCommand_l()
DAudioPolicyService.h710 struct audio_patch mPatch; variable