Skip to content

Commit 796ca3a

Browse files
committed
Test
1 parent a44c581 commit 796ca3a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/android/hardware/audio/effect/IEffect.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Using: /home/iscle/Android/Sdk/build-tools/35.0.1/aidl --lang=ndk -o generated -h generated/include --structured --stability=vintf --min_sdk_version=31 -I hardware_interfaces/common/aidl/aidl_api/android.hardware.common/current/ -I hardware_interfaces/common/fmq/aidl/aidl_api/android.hardware.common.fmq/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.common/current/ -I hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.effect/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.common.types/current/ -I system_hardware_interfaces/media/aidl_api/android.media.audio.eraser.types/current/ hardware_interfaces/audio/aidl/aidl_api/android.hardware.audio.effect/current/android/hardware/audio/effect/IEffect.aidl
44
*/
55
#include "aidl/android/hardware/audio/effect/IEffect.h"
6+
#include "log/log.h"
67

78
#include <android/binder_parcel_utils.h>
89
#include <aidl/android/hardware/audio/effect/BnEffect.h>
@@ -19,7 +20,7 @@ namespace effect {
1920
static binder_status_t _aidl_android_hardware_audio_effect_IEffect_onTransact(AIBinder* _aidl_binder, transaction_code_t _aidl_code, const AParcel* _aidl_in, AParcel* _aidl_out) {
2021
(void)_aidl_in;
2122
(void)_aidl_out;
22-
printf("aidl_android_hardware_audio_effect_IEffect_onTransact\n");
23+
ALOGD("aidl_android_hardware_audio_effect_IEffect_onTransact");
2324
binder_status_t _aidl_ret_status = STATUS_UNKNOWN_TRANSACTION;
2425
std::shared_ptr<BnEffect> _aidl_impl = std::static_pointer_cast<BnEffect>(::ndk::ICInterface::asInterface(_aidl_binder));
2526
switch (_aidl_code) {
@@ -458,6 +459,7 @@ ::ndk::ScopedAStatus BpEffect::reopen(::aidl::android::hardware::audio::effect::
458459
BnEffect::BnEffect() {}
459460
BnEffect::~BnEffect() {}
460461
::ndk::SpAIBinder BnEffect::createBinder() {
462+
ALOGD("createBinder");
461463
AIBinder* binder = AIBinder_new(_g_aidl_android_hardware_audio_effect_IEffect_clazz, static_cast<void*>(this));
462464
#ifdef BINDER_STABILITY_SUPPORT
463465
AIBinder_markVintfStability(binder);
@@ -471,6 +473,7 @@ IEffect::~IEffect() {}
471473

472474

473475
std::shared_ptr<IEffect> IEffect::fromBinder(const ::ndk::SpAIBinder& binder) {
476+
ALOGD("fromBinder");
474477
if (!AIBinder_associateClass(binder.get(), _g_aidl_android_hardware_audio_effect_IEffect_clazz)) {
475478
#if __ANDROID_API__ >= 31
476479
const AIBinder_Class* originalClass = AIBinder_getClass(binder.get());
@@ -489,9 +492,11 @@ std::shared_ptr<IEffect> IEffect::fromBinder(const ::ndk::SpAIBinder& binder) {
489492
}
490493

491494
binder_status_t IEffect::writeToParcel(AParcel* parcel, const std::shared_ptr<IEffect>& instance) {
495+
ALOGD("writeToParcel");
492496
return AParcel_writeStrongBinder(parcel, instance ? instance->asBinder().get() : nullptr);
493497
}
494498
binder_status_t IEffect::readFromParcel(const AParcel* parcel, std::shared_ptr<IEffect>* instance) {
499+
ALOGD("readFromParcel");
495500
::ndk::SpAIBinder binder;
496501
binder_status_t status = AParcel_readStrongBinder(parcel, binder.getR());
497502
if (status != STATUS_OK) return status;
@@ -510,6 +515,7 @@ bool IEffect::setDefaultImpl(const std::shared_ptr<IEffect>& impl) {
510515
return false;
511516
}
512517
const std::shared_ptr<IEffect>& IEffect::getDefaultImpl() {
518+
ALOGD("getDefaultImpl");
513519
return IEffect::default_impl;
514520
}
515521
std::shared_ptr<IEffect> IEffect::default_impl = nullptr;

0 commit comments

Comments
 (0)