Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4497a820 authored by Vlad Popa's avatar Vlad Popa
Browse files

Add comment to native ADA creator method.

Test: trivial
Flag: EXEMPT bugfix
Bug: 393657380
Change-Id: I9b590f45075b524ff9b5bb1c9200e587b6aa0337
parent 4db37c84
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -32,6 +32,12 @@ static struct {

namespace android {

// Populates the AudioDeviceAttributes with internal type and address. This is important when
// using AudioDeviceAttributes equals / hashCode (e.g.: when inserting as a key in a map)
// to identify the correct device based on type and address alone, and not other features, such
// as name, audio descriptors or profile.
// Note: if other elements are needed as part of AudioDeviceAttributes please create a
// different method.
jint createAudioDeviceAttributesFromNative(JNIEnv *env, jobject *jAudioDeviceAttributes,
                                 const AudioDeviceTypeAddr *devTypeAddr) {
    jint jStatus = (jint)AUDIO_JAVA_SUCCESS;