• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.jni_zero.samples;
6 
7 import org.jni_zero.NativeMethods;
8 
9 class SampleModule {
test()10     void test() {
11         if (SampleForAnnotationProcessorJni.get().bar(1)) {
12             SampleForAnnotationProcessorJni.get().foo();
13         }
14     }
15 
16     @NativeMethods("module")
17     interface Natives {
foo()18         void foo();
bar(int a)19         boolean bar(int a);
20     }
21 }
22