/frameworks/av/services/audioflinger/ |
D | PatchPanel.cpp | 65 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument 69 return mPatchPanel.createAudioPatch(patch, handle); in createAudioPatch() 113 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument 116 if (handle == NULL || patch == NULL) { in createAudioPatch() 120 __func__, patch->num_sources, patch->num_sinks, *handle); in createAudioPatch() 124 if (!audio_patch_is_valid(patch) || (patch->num_sinks == 0 && patch->num_sources != 2)) { in createAudioPatch() 129 if (patch->num_sources > 2) { in createAudioPatch() 151 (patch->sources[0].type != AUDIO_PORT_TYPE_DEVICE || in createAudioPatch() 153 patch->sources[0].ext.device.hw_module)) { in createAudioPatch() 155 } else if (patch->num_sinks == 0 || in createAudioPatch() [all …]
|
D | DeviceEffectManager.cpp | 34 const PatchPanel::Patch& patch) { in createAudioPatch() argument 36 __func__, handle, patch.mHalHandle, in createAudioPatch() 37 patch.mAudioPatch.num_sinks, in createAudioPatch() 38 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in createAudioPatch() 40 mCommandThread->createAudioPatchCommand(handle, patch); in createAudioPatch() 44 const PatchPanel::Patch& patch) { in onCreateAudioPatch() argument 46 __func__, handle, patch.mHalHandle, in onCreateAudioPatch() 47 patch.mAudioPatch.num_sinks > 0 ? patch.mAudioPatch.sinks[0].ext.device.type : 0); in onCreateAudioPatch() 50 status_t status = effect.second->onCreatePatch(handle, patch); in onCreateAudioPatch() 249 audio_patch_handle_t handle, const PatchPanel::Patch& patch) in createAudioPatchCommand() argument [all …]
|
D | DeviceEffectManager.h | 40 void createAudioPatch(audio_patch_handle_t handle, const PatchPanel::Patch& patch); 85 const PatchPanel::Patch& patch); 109 CreateAudioPatchData(audio_patch_handle_t handle, const PatchPanel::Patch& patch) in CreateAudioPatchData() argument 110 : mHandle(handle), mPatch(patch) {} in CreateAudioPatchData() 132 void onCreateAudioPatch(audio_patch_handle_t handle, const PatchPanel::Patch& patch);
|
D | PatchPanel.h | 58 status_t createAudioPatch(const struct audio_patch *patch, 163 explicit Patch(const struct audio_patch &patch) : mAudioPatch(patch) {} in Patch() argument
|
D | Threads.cpp | 629 const struct audio_patch *patch, in sendCreateAudioPatchConfigEvent() argument 633 sp<ConfigEvent> configEvent = (ConfigEvent *)new CreateAudioPatchConfigEvent(*patch, *handle); in sendCreateAudioPatchConfigEvent() 4050 status_t AudioFlinger::MixerThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument 4058 status = PlaybackThread::createAudioPatch_l(patch, handle); in createAudioPatch_l() 4060 status = PlaybackThread::createAudioPatch_l(patch, handle); in createAudioPatch_l() 4065 status_t AudioFlinger::PlaybackThread::createAudioPatch_l(const struct audio_patch *patch, in createAudioPatch_l() argument 4073 for (unsigned int i = 0; i < patch->num_sinks; i++) { in createAudioPatch_l() 4074 LOG_ALWAYS_FATAL_IF(popcount(patch->sinks[i].ext.device.type) > 1 in createAudioPatch_l() 4078 patch->sinks[i].ext.device.type); in createAudioPatch_l() 4079 type |= patch->sinks[i].ext.device.type; in createAudioPatch_l() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPatch.cpp | 28 AudioPatch::AudioPatch(const struct audio_patch *patch, uid_t uid) : in AudioPatch() argument 29 mPatch(*patch), in AudioPatch() 59 const sp<AudioPatch>& patch) in addAudioPatch() argument 67 add(handle, patch); in addAudioPatch() 70 handle, patch->getAfHandle(), patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch() 71 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch() 106 const sp<AudioPatch> patch = valueAt(patchIndex); in listAudioPatches() local 108 for (size_t srcIndex = 0; srcIndex < patch->mPatch.num_sources && !skip; srcIndex++) { in listAudioPatches() 109 if (patch->mPatch.sources[srcIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches() 110 patch->mPatch.sources[srcIndex].ext.device.type == AUDIO_DEVICE_IN_STUB) { in listAudioPatches() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 125 public NinePatch(NinePatch patch) { in NinePatch() argument 126 mBitmap = patch.mBitmap; in NinePatch() 127 mSrcName = patch.mSrcName; in NinePatch() 128 if (patch.mPaint != null) { in NinePatch() 129 mPaint = new Paint(patch.mPaint); in NinePatch() 133 mNativeChunk = patch.mNativeChunk; in NinePatch()
|
D | BaseCanvas.java | 302 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch() argument 303 Bitmap bitmap = patch.getBitmap(); in drawPatch() 307 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch() 309 mDensity, patch.getDensity()); in drawPatch() 312 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch() argument 313 Bitmap bitmap = patch.getBitmap(); in drawPatch() 317 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch() 319 mDensity, patch.getDensity()); in drawPatch()
|
/frameworks/av/services/audiopolicy/tests/ |
D | audiopolicymanager_tests.cpp | 108 static audio_port_handle_t getDeviceIdFromPatch(const struct audio_patch* patch); 237 const struct audio_patch* patch) { in getDeviceIdFromPatch() argument 241 if (patch->num_sources != 0 && patch->num_sinks != 0) { in getDeviceIdFromPatch() 242 if (patch->sources[0].type == AUDIO_PORT_TYPE_MIX) { in getDeviceIdFromPatch() 243 return patch->sinks[0].id; in getDeviceIdFromPatch() 245 return patch->sources[0].id; in getDeviceIdFromPatch() 261 audio_patch patch{}; in TEST_F() local 265 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, nullptr, 0)); in TEST_F() 266 ASSERT_EQ(BAD_VALUE, mManager->createAudioPatch(&patch, &handle, 0)); in TEST_F() 267 patch.num_sources = AUDIO_PATCH_PORTS_MAX + 1; in TEST_F() [all …]
|
D | AudioPolicyManagerTestClient.h | 75 status_t createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument 83 mActivePatches.insert(std::make_pair(*handle, *patch)); in createAudioPatch()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | DeviceInfoUtils.java | 157 String patch = Build.VERSION.SECURITY_PATCH; in getSecurityPatch() local 158 if (!"".equals(patch)) { in getSecurityPatch() 161 Date patchDate = template.parse(patch); in getSecurityPatch() 163 patch = DateFormat.format(format, patchDate).toString(); in getSecurityPatch() 167 return patch; in getSecurityPatch()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.cpp | 623 createAudioPatchInternal(patchBuilder.patch(), &patchHandle, mUidCached, delayMs); in createTelephonyPatch() 1185 const auto& patch = msdPatches[i]; in getOutputForDevices() local 1186 for (size_t j = 0; j < patch->mPatch.num_sinks; ++j) { in getOutputForDevices() 1187 const struct audio_port_config *sink = &patch->mPatch.sinks[j]; in getOutputForDevices() 1192 releaseAudioPatch(patch->getHandle(), mUidCached); in getOutputForDevices() 1274 sp<AudioPatch> patch = mAudioPatches.valueAt(i); in getMsdPatches() local 1275 for (size_t j = 0; j < patch->mPatch.num_sources; ++j) { in getMsdPatches() 1276 const struct audio_port_config *source = &patch->mPatch.sources[j]; in getMsdPatches() 1279 msdPatches.addAudioPatch(patch->getHandle(), patch); in getMsdPatches() 1370 audio_port_config sourceConfig = patchBuilder.patch()->sources[0]; in buildMsdPatch() [all …]
|
D | AudioPolicyManager.h | 234 virtual status_t createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument 237 return createAudioPatchInternal(patch, handle, uid); in createAudioPatch() 625 virtual status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch) in addAudioPatch() argument 627 return mAudioPatches.addAudioPatch(handle, patch); in addAudioPatch() 892 status_t createAudioPatchInternal(const struct audio_patch *patch, 907 const struct audio_patch *patch, 912 const struct audio_patch *patch,
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatchPeeker.cpp | 26 Res_png_9patch* patch = (Res_png_9patch*) data; in readChunk() local 27 size_t patchSize = patch->serializedSize(); in readChunk() 33 memcpy(patchNew, patch, patchSize); in readChunk()
|
D | NinePatch.cpp | 83 int8_t* patch = reinterpret_cast<int8_t*>(patchHandle); in finalize() local 84 delete[] patch; in finalize()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/ |
D | device_for_product_strategy_patch.pfw | 5 component: /Policy/policy/product_strategies/patch/selected_output_devices/mask 34 /Policy/policy/product_strategies/patch/device_address =
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPatch.h | 32 AudioPatch(const struct audio_patch *patch, uid_t uid); 57 status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch);
|
/frameworks/native/opengl/libs/EGL/ |
D | egldefs.h | 27 #define EGL_MAKE_VERSION(major, minor, patch) (((major) << 22) | ((minor) << 12) | (patch)) argument
|
/frameworks/av/media/libaudiohal/impl/ |
D | DeviceHalLocal.cpp | 162 audio_patch_handle_t *patch) { in createAudioPatch() argument 165 mDev, num_sources, sources, num_sinks, sinks, patch); in createAudioPatch() 171 status_t DeviceHalLocal::releaseAudioPatch(audio_patch_handle_t patch) { in releaseAudioPatch() argument 173 return mDev->release_audio_patch(mDev, patch); in releaseAudioPatch()
|
D | DeviceHalLocal.h | 95 audio_patch_handle_t *patch); 98 virtual status_t releaseAudioPatch(audio_patch_handle_t patch);
|
D | DeviceHalHidl.h | 102 audio_patch_handle_t *patch); 105 virtual status_t releaseAudioPatch(audio_patch_handle_t patch);
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | volumes.pfw | 16 /Policy/policy/streams/patch/applicable_volume_profile/volume_profile = patch
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | DeviceHalInterface.h | 101 audio_patch_handle_t *patch) = 0; 104 virtual status_t releaseAudioPatch(audio_patch_handle_t patch) = 0;
|
/frameworks/base/native/webview/plat_support/ |
D | draw_sw.h | 51 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch);
|
/frameworks/base/media/java/android/media/ |
D | AudioRecordingConfiguration.java | 250 final AudioPatch patch = patches.get(i); in getAudioDevice() local 251 if (patch.id() == mPatchHandle) { in getAudioDevice() 252 final AudioPortConfig[] sources = patch.sources(); in getAudioDevice()
|