• 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 android.graphics.Bitmap;
8 import android.view.View;
9 
10 public class SampleNonProxy {
11     interface OnFrameAvailableListener {}
nativeInit()12     private native int nativeInit();
nativeDestroy(int nativeChromeBrowserProvider)13     private native void nativeDestroy(int nativeChromeBrowserProvider);
nativeAddBookmark(int nativeChromeBrowserProvider, String url, String title, boolean isFolder, long parentId)14     private native long nativeAddBookmark(int nativeChromeBrowserProvider, String url, String title,
15             boolean isFolder, long parentId);
nativeGetDomainAndRegistry(String url)16     private static native String nativeGetDomainAndRegistry(String url);
nativeCreateHistoricalTabFromState(byte[] state, int tabIndex)17     private static native void nativeCreateHistoricalTabFromState(byte[] state, int tabIndex);
nativeGetStateAsByteArray(View view)18     private native byte[] nativeGetStateAsByteArray(View view);
nativeGetAutofillProfileGUIDs()19     private static native String[] nativeGetAutofillProfileGUIDs();
nativeSetRecognitionResults(int sessionId, String[] results)20     private native void nativeSetRecognitionResults(int sessionId, String[] results);
nativeAddBookmarkFromAPI(int nativeChromeBrowserProvider, String url, Long created, Boolean isBookmark, Long date, byte[] favicon, String title, Integer visits)21     private native long nativeAddBookmarkFromAPI(int nativeChromeBrowserProvider, String url,
22             Long created, Boolean isBookmark, Long date, byte[] favicon, String title,
23             Integer visits);
nativeFindAll(String find)24     native int nativeFindAll(String find);
nativeGetInnerClass()25     private static native OnFrameAvailableListener nativeGetInnerClass();
nativeQueryBitmap(int nativeChromeBrowserProvider, String[] projection, String selection, String[] selectionArgs, String sortOrder)26     private native Bitmap nativeQueryBitmap(int nativeChromeBrowserProvider, String[] projection,
27             String selection, String[] selectionArgs, String sortOrder);
nativeGotOrientation( int nativeDataFetcherImplAndroid, double alpha, double beta, double gamma)28     private native void nativeGotOrientation(
29             int nativeDataFetcherImplAndroid, double alpha, double beta, double gamma);
nativeMessWithJavaException(Throwable e)30     private static native Throwable nativeMessWithJavaException(Throwable e);
31     class MyInnerClass {
nativeInit()32         private native int nativeInit();
33     }
34 }
35