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

Commit e865c9de authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add comment to native ADA creator method." into main

parents 9f13b8d5 4497a820
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;