summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author James Dong <jdong@google.com> 2011-01-24 17:12:36 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-24 17:12:36 -0800
commit9807a7b27047c4108e3b2f802a814d4f746898cc (patch)
tree6fba8d7152a48ae829ac15130f2ed34bc889be76
parent50d4de21ee6a2ee62c7ad89dfdfd82d1045e7a58 (diff)
parent98dcca909a44e527ca3a187b13cd1e49a328cbfb (diff)
Merge "Reduce the JNI native method visibility" into honeycomb
-rwxr-xr-xmedia/java/android/media/videoeditor/MediaArtistNativeHelper.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
index 54db8cda367b..77b7dc884616 100755
--- a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
+++ b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
@@ -3946,8 +3946,7 @@ class MediaArtistNativeHelper {
nativeClearSurface(surface,width,height);
}
/** Native Methods */
-
- public native Properties getMediaProperties(String file) throws IllegalArgumentException,
+ native Properties getMediaProperties(String file) throws IllegalArgumentException,
IllegalStateException, RuntimeException, Exception;
/**
@@ -3957,7 +3956,7 @@ class MediaArtistNativeHelper {
* @throws RuntimeException if an error occurred
* @see Version
*/
- public static native Version getVersion() throws RuntimeException;
+ private static native Version getVersion() throws RuntimeException;
/**
* Returns the video thumbnail in an array of integers. Output format is
@@ -3974,10 +3973,10 @@ class MediaArtistNativeHelper {
* negative
* @throws RuntimeException on runtime errors in native code
*/
- public native int nativeGetPixels(String fileName, int[] pixelArray, int width, int height,
+ private native int nativeGetPixels(String fileName, int[] pixelArray, int width, int height,
long timeMS);
- public native int nativeGetPixelsList(String fileName, int[] pixelArray, int width, int height,
+ private native int nativeGetPixelsList(String fileName, int[] pixelArray, int width, int height,
int timeMS, int nosofTN, long startTimeMs, long endTimeMs);
/**
@@ -3986,7 +3985,7 @@ class MediaArtistNativeHelper {
*
* @throws IllegalStateException if the method could not be called
*/
- public native void release() throws IllegalStateException, RuntimeException;
+ private native void release() throws IllegalStateException, RuntimeException;
/*
* Clear the preview surface
@@ -4000,7 +3999,7 @@ class MediaArtistNativeHelper {
*
* @throws IllegalStateException if the method could not be called
*/
- public native void stopEncoding() throws IllegalStateException, RuntimeException;
+ private native void stopEncoding() throws IllegalStateException, RuntimeException;
@@ -4026,12 +4025,12 @@ class MediaArtistNativeHelper {
private native void nativeStopPreview();
- public native int nativeGenerateAudioGraph(String pcmFilePath, String outGraphPath,
+ private native int nativeGenerateAudioGraph(String pcmFilePath, String outGraphPath,
int frameDuration, int channels, int sampleCount);
- public native int nativeGenerateRawAudio(String InFileName, String PCMFileName);
+ private native int nativeGenerateRawAudio(String InFileName, String PCMFileName);
- public native int nativeGenerateClip(EditSettings editSettings)
+ private native int nativeGenerateClip(EditSettings editSettings)
throws IllegalArgumentException, IllegalStateException, RuntimeException;
}