• 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 class SampleUniqueAnnotations {
8     // Poorly spaced intentionally
do_not_match()9     private void do_not_match();
10 
11     @VisibleForTesting
12     @NativeMethods
13     @Generated("Test")
14     interface Natives {
15         @NativeClassQualifiedName("FooAndroid::BarDelegate")
16 
foo(long nativePtr)17         void foo(long nativePtr);
bar(int x, int y)18         int bar(int x, int y);
19     }
20 
21     @CalledByNative
useBar1(Bar1.Inner inner)22     static void useBar1(Bar1.Inner inner) {}
23 
24     @NativeClassQualifiedName("Foo::Bar")
nativeCallWithQualifiedObject(long nativePtr)25     native void nativeCallWithQualifiedObject(long nativePtr);
26 }
27