summaryrefslogtreecommitdiffstats
path: root/media/libdrm/mobile1/include/jni/drm1_jni.h
blob: 64e78ada82cda40874bd9bc36f5f8b5501979be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __DRM1_JNI_H__
#define __DRM1_JNI_H__

#ifdef __cplusplus
extern "C" {
#endif

/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class android_drm_mobile1_DrmRawContent */

#undef android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK
#define android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK 1L
#undef android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY
#define android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY 2L
#undef android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY
#define android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY 3L
#undef android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM
#define android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM 4L
#undef android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE
#define android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE 1L
#undef android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT
#define android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT 2L
#undef android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS
#define android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS 0L
#undef android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE
#define android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE -1L
#undef android_drm_mobile1_DrmRawContent_JNI_DRM_EOF
#define android_drm_mobile1_DrmRawContent_JNI_DRM_EOF -2L
#undef android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN
#define android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN -3L
/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeConstructDrmContent
 * Signature: (Ljava/io/InputStream;II)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeConstructDrmContent
  (JNIEnv *, jobject, jobject, jint, jint);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeGetRightsAddress
 * Signature: ()Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetRightsAddress
  (JNIEnv *, jobject);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeGetDeliveryMethod
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetDeliveryMethod
  (JNIEnv *, jobject);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeReadPieceOfContent
 * Signature: ([BIII)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeReadContent
  (JNIEnv *, jobject, jbyteArray, jint, jint, jint);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeGetContentType
 * Signature: ()Ljava/lang/String;
 */
JNIEXPORT jstring JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetContentType
  (JNIEnv *, jobject);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    nativeGetContentLength
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetContentLength
  (JNIEnv *, jobject);

/*
 * Class:     android_drm_mobile1_DrmRawContent
 * Method:    finalize
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_android_drm_mobile1_DrmRawContent_finalize
  (JNIEnv *, jobject);

/* Header for class android_drm_mobile1_DrmRights */

#undef android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY
#define android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY 1L
#undef android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY
#define android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY 2L
#undef android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE
#define android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE 3L
#undef android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT
#define android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT 4L
#undef android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_SUCCESS
#define android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_SUCCESS 0L
#undef android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_FAILURE
#define android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_FAILURE -1L
#undef android_drm_mobile1_DrmRights_JNI_DRM_SUCCESS
#define android_drm_mobile1_DrmRights_JNI_DRM_SUCCESS 0L
#undef android_drm_mobile1_DrmRights_JNI_DRM_FAILURE
#define android_drm_mobile1_DrmRights_JNI_DRM_FAILURE -1L
/*
 * Class:     android_drm_mobile1_DrmRights
 * Method:    nativeGetConstraintInfo
 * Signature: (ILandroid/drm/mobile1/DrmConstraintInfo;)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRights_nativeGetConstraintInfo
  (JNIEnv *, jobject, jint, jobject);

/*
 * Class:     android_drm_mobile1_DrmRights
 * Method:    nativeConsumeRights
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRights_nativeConsumeRights
  (JNIEnv *, jobject, jint);

/* Header for class android_drm_mobile1_DrmRightsManager */

#undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML
#define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML 3L
#undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML
#define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML 4L
#undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_MESSAGE
#define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_MESSAGE 1L
#undef android_drm_mobile1_DrmRightsManager_JNI_DRM_SUCCESS
#define android_drm_mobile1_DrmRightsManager_JNI_DRM_SUCCESS 0L
#undef android_drm_mobile1_DrmRightsManager_JNI_DRM_FAILURE
#define android_drm_mobile1_DrmRightsManager_JNI_DRM_FAILURE -1L
/* Inaccessible static: singleton */
/*
 * Class:     android_drm_mobile1_DrmRightsManager
 * Method:    nativeInstallDrmRights
 * Signature: (Ljava/io/InputStream;IILandroid/drm/mobile1/DrmRights;)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeInstallDrmRights
  (JNIEnv *, jobject, jobject, jint, jint, jobject);

/*
 * Class:     android_drm_mobile1_DrmRightsManager
 * Method:    nativeQueryRights
 * Signature: (Landroid/drm/mobile1/DrmRawContent;Landroid/drm/mobile1/DrmRights;)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeQueryRights
  (JNIEnv *, jobject, jobject, jobject);

/*
 * Class:     android_drm_mobile1_DrmRightsManager
 * Method:    nativeGetRightsNumber
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeGetNumOfRights
  (JNIEnv *, jobject);

/*
 * Class:     android_drm_mobile1_DrmRightsManager
 * Method:    nativeGetRightsList
 * Signature: ([Landroid/drm/mobile1/DrmRights;I)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeGetRightsList
  (JNIEnv *, jobject, jobjectArray, jint);

/*
 * Class:     android_drm_mobile1_DrmRightsManager
 * Method:    nativeDeleteRights
 * Signature: (Landroid/drm/mobile1/DrmRights;)I
 */
JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeDeleteRights
  (JNIEnv *, jobject, jobject);

/**
 * DRM return value defines
 */
#define JNI_DRM_SUCCESS \
    android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS   /**< Successful operation */
#define JNI_DRM_FAILURE \
    android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE   /**< General failure */
#define JNI_DRM_EOF \
    android_drm_mobile1_DrmRawContent_JNI_DRM_EOF       /**< Indicates the end of the DRM content is reached */
#define JNI_DRM_UNKNOWN_DATA_LEN \
    android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN  /**< Indicates the data length is unknown */

/**
 * DRM MIME type defines
 */
#define JNI_DRM_MIMETYPE_MESSAGE \
    android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE          /**< The "application/vnd.oma.drm.message" MIME type */
#define JNI_DRM_MIMETYPE_CONTENT \
    android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT          /**< The "application/vnd.oma.drm.content" MIME type */
#define JNI_DRM_MIMETYPE_RIGHTS_XML \
    android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML    /**< The "application/vnd.oma.drm.rights+xml" MIME type */
#define JNI_DRM_MIMETYPE_RIGHTS_WBXML \
    android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML  /**< The "application/vnd.oma.drm.rights+wbxml" MIME type */

/**
 * DRM permission defines
 */
#define JNI_DRM_PERMISSION_PLAY \
    android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY       /**< The permission to play */
#define JNI_DRM_PERMISSION_DISPLAY \
    android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY    /**< The permission to display */
#define JNI_DRM_PERMISSION_EXECUTE \
    android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE    /**< The permission to execute */
#define JNI_DRM_PERMISSION_PRINT \
    android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT      /**< The permission to print */

/**
 * DRM delivery type defines
 */
#define JNI_DRM_FORWARD_LOCK \
    android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK          /**< forward lock */
#define JNI_DRM_COMBINED_DELIVERY \
    android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY     /**< combined delivery */
#define JNI_DRM_SEPARATE_DELIVERY \
    android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY     /**< separate delivery */
#define JNI_DRM_SEPARATE_DELIVERY_DM \
    android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM  /**< separate delivery DRM message */
#ifdef __cplusplus
}
#endif
#endif /* __DRM1_JNI_H__ */