summaryrefslogtreecommitdiff
path: root/libs/bufferstreams/examples/app/java/com/android/graphics/bufferstreamsdemoapp/BufferStreamJNI.kt
blob: ede77938de3dc6c26a4c6e33507fd1ca7fe5f593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.android.graphics.bufferstreamsdemoapp

class BufferStreamJNI {
    // Used to load the 'bufferstreamsdemoapp' library on application startup.
    init {
        System.loadLibrary("bufferstreamdemoapp")
    }

    /**
     * A native method that is implemented by the 'bufferstreamsdemoapp' native library, which is
     * packaged with this application.
     */
    external fun stringFromJNI(): String;
    external fun testBufferQueueCreation();

    companion object {
        fun companion_stringFromJNI(): String {
            val instance = BufferStreamJNI()
            return instance.stringFromJNI()
        }

        fun companion_testBufferQueueCreation() {
            val instance = BufferStreamJNI()
            return instance.testBufferQueueCreation()
        }
    }
}