Searched defs:byteArray (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp103 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, argument
109 AutoJavaByteArray ar(env, byteArray);
H A DMovie.cpp99 jbyteArray byteArray = env->NewByteArray(16*1024); local
100 ScopedLocalRef<jbyteArray> scoper(env, byteArray);
101 SkStream* strm = CreateJavaInputStreamAdaptor(env, istream, byteArray);
119 jbyteArray byteArray,
122 NPE_CHECK_RETURN_ZERO(env, byteArray);
124 int totalLength = env->GetArrayLength(byteArray);
130 AutoJavaByteArray ar(env, byteArray);
118 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, int offset, int length) argument
H A DBitmapFactory.cpp593 static jobject nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, argument
602 AutoJavaByteArray ar(env, byteArray);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp88 jbyteArray byteArray = NULL; local
92 byteArray =
95 if (byteArray == NULL) {
97 "byteArray is null");
102 dst = env->GetByteArrayElements(byteArray, &isCopy);
104 dstSize = env->GetArrayLength(byteArray);
112 if (byteArray != NULL) {
113 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0);
124 if (byteArray != NULL) {
125 env->ReleaseByteArrayElements(byteArray, (jbyt
[all...]
H A Dandroid_media_Utils.cpp394 jbyteArray byteArray = local
396 CHECK(byteArray != NULL);
399 byteArray,
404 env->DeleteLocalRef(byteArray); byteArray = NULL;
H A Dandroid_media_MediaExtractor.cpp202 jbyteArray byteArray = NULL; local
212 byteArray =
215 if (byteArray == NULL) {
220 dst = env->GetByteArrayElements(byteArray, &isCopy);
222 dstSize = env->GetArrayLength(byteArray);
228 if (byteArray != NULL) {
229 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0);
239 if (byteArray != NULL) {
240 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0);
H A Dandroid_media_MediaDrm.cpp367 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) { argument
369 size_t length = env->GetArrayLength(byteArray);
371 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray());
472 jbyteArray byteArray = VectorToJByteArray(env, *iter); local
473 env->CallBooleanMethod(arrayList, gFields.arraylist.add, byteArray);
474 env->DeleteLocalRef(byteArray);
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp182 jbyteArray byteArray = env->NewByteArray(size); local
183 if (!byteArray) {
188 env->SetByteArrayRegion(byteArray, 0, size, static_cast<const jbyte*>(value));
189 return byteArray;
H A Dandroid_hardware_camera2_CameraMetadata.cpp257 jbyteArray byteArray = env->NewByteArray(byteCount); local
261 ScopedByteArrayRW arrayWriter(env, byteArray);
264 return byteArray;
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
99 jbyteArray byteArray = (jbyteArray) env->GetObjectField(object, fieldID); local
100 return Utility::getByteArrayValue(env, byteArray, dataLength);
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { argument
107 if (NULL != byteArray) {
108 jint length = env->GetArrayLength(byteArray);
113 env->GetByteArrayRegion(byteArray, (jint)0, length, (jbyte *) data);

Completed in 623 milliseconds