1 package com.example.hellohalideopenglcompute;
2 
3 import android.app.Activity;
4 import android.os.Bundle;
5 import android.hardware.Camera;
6 import android.util.Log;
7 import android.widget.FrameLayout;
8 import android.view.SurfaceView;
9 
10 public class HalideOpenGLComputeActivity extends Activity {
11     private static final String TAG = "HalideOpenGLComputeActivity";
12 
13     static {
14         System.loadLibrary("oglc");
15         System.loadLibrary("oglc_two_kernels");
16     }
runTest()17     private static native void runTest();
runTwoKernelsTest()18     private static native void runTwoKernelsTest();
19 
20     @Override
onCreate(Bundle b)21     public void onCreate(Bundle b) {
22         super.onCreate(b);
23         Log.d(TAG, "Starting the tests:");
24         runTest();
25         Log.d(TAG, "Done with first test");
26         runTwoKernelsTest();
27         Log.d(TAG, "Done");
28         finish();
29    }
30 }
31