1 /* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __DRM1_JNI_H__ 18 #define __DRM1_JNI_H__ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /* DO NOT EDIT THIS FILE - it is machine generated */ 25 #include <jni.h> 26 /* Header for class android_drm_mobile1_DrmRawContent */ 27 28 #undef android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK 29 #define android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK 1L 30 #undef android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY 31 #define android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY 2L 32 #undef android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY 33 #define android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY 3L 34 #undef android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM 35 #define android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM 4L 36 #undef android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE 37 #define android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE 1L 38 #undef android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT 39 #define android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT 2L 40 #undef android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS 41 #define android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS 0L 42 #undef android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE 43 #define android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE -1L 44 #undef android_drm_mobile1_DrmRawContent_JNI_DRM_EOF 45 #define android_drm_mobile1_DrmRawContent_JNI_DRM_EOF -2L 46 #undef android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN 47 #define android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN -3L 48 /* 49 * Class: android_drm_mobile1_DrmRawContent 50 * Method: nativeConstructDrmContent 51 * Signature: (Ljava/io/InputStream;II)I 52 */ 53 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeConstructDrmContent 54 (JNIEnv *, jobject, jobject, jint, jint); 55 56 /* 57 * Class: android_drm_mobile1_DrmRawContent 58 * Method: nativeGetRightsAddress 59 * Signature: ()Ljava/lang/String; 60 */ 61 JNIEXPORT jstring JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetRightsAddress 62 (JNIEnv *, jobject); 63 64 /* 65 * Class: android_drm_mobile1_DrmRawContent 66 * Method: nativeGetDeliveryMethod 67 * Signature: ()I 68 */ 69 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetDeliveryMethod 70 (JNIEnv *, jobject); 71 72 /* 73 * Class: android_drm_mobile1_DrmRawContent 74 * Method: nativeReadPieceOfContent 75 * Signature: ([BIII)I 76 */ 77 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeReadContent 78 (JNIEnv *, jobject, jbyteArray, jint, jint, jint); 79 80 /* 81 * Class: android_drm_mobile1_DrmRawContent 82 * Method: nativeGetContentType 83 * Signature: ()Ljava/lang/String; 84 */ 85 JNIEXPORT jstring JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetContentType 86 (JNIEnv *, jobject); 87 88 /* 89 * Class: android_drm_mobile1_DrmRawContent 90 * Method: nativeGetContentLength 91 * Signature: ()I 92 */ 93 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRawContent_nativeGetContentLength 94 (JNIEnv *, jobject); 95 96 /* 97 * Class: android_drm_mobile1_DrmRawContent 98 * Method: finalize 99 * Signature: ()V 100 */ 101 JNIEXPORT void JNICALL Java_android_drm_mobile1_DrmRawContent_finalize 102 (JNIEnv *, jobject); 103 104 /* Header for class android_drm_mobile1_DrmRights */ 105 106 #undef android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY 107 #define android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY 1L 108 #undef android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY 109 #define android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY 2L 110 #undef android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE 111 #define android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE 3L 112 #undef android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT 113 #define android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT 4L 114 #undef android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_SUCCESS 115 #define android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_SUCCESS 0L 116 #undef android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_FAILURE 117 #define android_drm_mobile1_DrmRights_DRM_CONSUME_RIGHTS_FAILURE -1L 118 #undef android_drm_mobile1_DrmRights_JNI_DRM_SUCCESS 119 #define android_drm_mobile1_DrmRights_JNI_DRM_SUCCESS 0L 120 #undef android_drm_mobile1_DrmRights_JNI_DRM_FAILURE 121 #define android_drm_mobile1_DrmRights_JNI_DRM_FAILURE -1L 122 /* 123 * Class: android_drm_mobile1_DrmRights 124 * Method: nativeGetConstraintInfo 125 * Signature: (ILandroid/drm/mobile1/DrmConstraintInfo;)I 126 */ 127 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRights_nativeGetConstraintInfo 128 (JNIEnv *, jobject, jint, jobject); 129 130 /* 131 * Class: android_drm_mobile1_DrmRights 132 * Method: nativeConsumeRights 133 * Signature: (I)I 134 */ 135 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRights_nativeConsumeRights 136 (JNIEnv *, jobject, jint); 137 138 /* Header for class android_drm_mobile1_DrmRightsManager */ 139 140 #undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML 141 #define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML 3L 142 #undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML 143 #define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML 4L 144 #undef android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_MESSAGE 145 #define android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_MESSAGE 1L 146 #undef android_drm_mobile1_DrmRightsManager_JNI_DRM_SUCCESS 147 #define android_drm_mobile1_DrmRightsManager_JNI_DRM_SUCCESS 0L 148 #undef android_drm_mobile1_DrmRightsManager_JNI_DRM_FAILURE 149 #define android_drm_mobile1_DrmRightsManager_JNI_DRM_FAILURE -1L 150 /* Inaccessible static: singleton */ 151 /* 152 * Class: android_drm_mobile1_DrmRightsManager 153 * Method: nativeInstallDrmRights 154 * Signature: (Ljava/io/InputStream;IILandroid/drm/mobile1/DrmRights;)I 155 */ 156 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeInstallDrmRights 157 (JNIEnv *, jobject, jobject, jint, jint, jobject); 158 159 /* 160 * Class: android_drm_mobile1_DrmRightsManager 161 * Method: nativeQueryRights 162 * Signature: (Landroid/drm/mobile1/DrmRawContent;Landroid/drm/mobile1/DrmRights;)I 163 */ 164 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeQueryRights 165 (JNIEnv *, jobject, jobject, jobject); 166 167 /* 168 * Class: android_drm_mobile1_DrmRightsManager 169 * Method: nativeGetRightsNumber 170 * Signature: ()I 171 */ 172 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeGetNumOfRights 173 (JNIEnv *, jobject); 174 175 /* 176 * Class: android_drm_mobile1_DrmRightsManager 177 * Method: nativeGetRightsList 178 * Signature: ([Landroid/drm/mobile1/DrmRights;I)I 179 */ 180 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeGetRightsList 181 (JNIEnv *, jobject, jobjectArray, jint); 182 183 /* 184 * Class: android_drm_mobile1_DrmRightsManager 185 * Method: nativeDeleteRights 186 * Signature: (Landroid/drm/mobile1/DrmRights;)I 187 */ 188 JNIEXPORT jint JNICALL Java_android_drm_mobile1_DrmRightsManager_nativeDeleteRights 189 (JNIEnv *, jobject, jobject); 190 191 /** 192 * DRM return value defines 193 */ 194 #define JNI_DRM_SUCCESS \ 195 android_drm_mobile1_DrmRawContent_JNI_DRM_SUCCESS /**< Successful operation */ 196 #define JNI_DRM_FAILURE \ 197 android_drm_mobile1_DrmRawContent_JNI_DRM_FAILURE /**< General failure */ 198 #define JNI_DRM_EOF \ 199 android_drm_mobile1_DrmRawContent_JNI_DRM_EOF /**< Indicates the end of the DRM content is reached */ 200 #define JNI_DRM_UNKNOWN_DATA_LEN \ 201 android_drm_mobile1_DrmRawContent_JNI_DRM_UNKNOWN_DATA_LEN /**< Indicates the data length is unknown */ 202 203 /** 204 * DRM MIME type defines 205 */ 206 #define JNI_DRM_MIMETYPE_MESSAGE \ 207 android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_MESSAGE /**< The "application/vnd.oma.drm.message" MIME type */ 208 #define JNI_DRM_MIMETYPE_CONTENT \ 209 android_drm_mobile1_DrmRawContent_DRM_MIMETYPE_CONTENT /**< The "application/vnd.oma.drm.content" MIME type */ 210 #define JNI_DRM_MIMETYPE_RIGHTS_XML \ 211 android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_XML /**< The "application/vnd.oma.drm.rights+xml" MIME type */ 212 #define JNI_DRM_MIMETYPE_RIGHTS_WBXML \ 213 android_drm_mobile1_DrmRightsManager_DRM_MIMETYPE_RIGHTS_WBXML /**< The "application/vnd.oma.drm.rights+wbxml" MIME type */ 214 215 /** 216 * DRM permission defines 217 */ 218 #define JNI_DRM_PERMISSION_PLAY \ 219 android_drm_mobile1_DrmRights_DRM_PERMISSION_PLAY /**< The permission to play */ 220 #define JNI_DRM_PERMISSION_DISPLAY \ 221 android_drm_mobile1_DrmRights_DRM_PERMISSION_DISPLAY /**< The permission to display */ 222 #define JNI_DRM_PERMISSION_EXECUTE \ 223 android_drm_mobile1_DrmRights_DRM_PERMISSION_EXECUTE /**< The permission to execute */ 224 #define JNI_DRM_PERMISSION_PRINT \ 225 android_drm_mobile1_DrmRights_DRM_PERMISSION_PRINT /**< The permission to print */ 226 227 /** 228 * DRM delivery type defines 229 */ 230 #define JNI_DRM_FORWARD_LOCK \ 231 android_drm_mobile1_DrmRawContent_DRM_FORWARD_LOCK /**< forward lock */ 232 #define JNI_DRM_COMBINED_DELIVERY \ 233 android_drm_mobile1_DrmRawContent_DRM_COMBINED_DELIVERY /**< combined delivery */ 234 #define JNI_DRM_SEPARATE_DELIVERY \ 235 android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY /**< separate delivery */ 236 #define JNI_DRM_SEPARATE_DELIVERY_DM \ 237 android_drm_mobile1_DrmRawContent_DRM_SEPARATE_DELIVERY_DM /**< separate delivery DRM message */ 238 #ifdef __cplusplus 239 } 240 #endif 241 #endif /* __DRM1_JNI_H__ */ 242 243