Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp87 jbyteArray byteArray = NULL; in android_media_MediaMuxer_writeSampleData() local
91 byteArray = in android_media_MediaMuxer_writeSampleData()
94 if (byteArray == NULL) { in android_media_MediaMuxer_writeSampleData()
101 dst = env->GetByteArrayElements(byteArray, &isCopy); in android_media_MediaMuxer_writeSampleData()
103 dstSize = env->GetArrayLength(byteArray); in android_media_MediaMuxer_writeSampleData()
111 if (byteArray != NULL) { in android_media_MediaMuxer_writeSampleData()
112 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in android_media_MediaMuxer_writeSampleData()
123 if (byteArray != NULL) { in android_media_MediaMuxer_writeSampleData()
124 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in android_media_MediaMuxer_writeSampleData()
Dandroid_media_MediaExtractor.cpp142 jbyteArray byteArray = NULL; in readSampleData() local
152 byteArray = in readSampleData()
155 if (byteArray == NULL) { in readSampleData()
160 dst = env->GetByteArrayElements(byteArray, &isCopy); in readSampleData()
162 dstSize = (size_t) env->GetArrayLength(byteArray); in readSampleData()
168 if (byteArray != NULL) { in readSampleData()
169 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData()
179 if (byteArray != NULL) { in readSampleData()
180 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData()
Dandroid_media_ExifInterface.cpp115 jbyteArray byteArray = env->NewByteArray(jthumbnailLength); in ExifInterface_getThumbnailFromAsset() local
116 env->SetByteArrayRegion(byteArray, 0, jthumbnailLength, thumbnailData.get()); in ExifInterface_getThumbnailFromAsset()
117 return byteArray; in ExifInterface_getThumbnailFromAsset()
400 jbyteArray byteArray = env->NewByteArray(8*1024); in ExifInterface_getRawAttributesFromInputStream() local
401 ScopedLocalRef<jbyteArray> scoper(env, byteArray); in ExifInterface_getRawAttributesFromInputStream()
Dandroid_media_MediaCrypto.cpp140 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) { in JByteArrayToVector() argument
142 size_t length = env->GetArrayLength(byteArray); in JByteArrayToVector()
144 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); in JByteArrayToVector()
Dandroid_media_Utils.cpp538 jbyteArray byteArray = in ConvertKeyValueArraysToMessage() local
540 CHECK(byteArray != NULL); in ConvertKeyValueArraysToMessage()
543 byteArray, in ConvertKeyValueArraysToMessage()
548 env->DeleteLocalRef(byteArray); byteArray = NULL; in ConvertKeyValueArraysToMessage()
Dandroid_media_MediaDrm.cpp430 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) { in JByteArrayToVector() argument
432 size_t length = env->GetArrayLength(byteArray); in JByteArrayToVector()
434 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); in JByteArrayToVector()
540 jbyteArray byteArray = VectorToJByteArray(env, *iter); in ListOfVectorsToArrayListOfByteArray() local
541 env->CallBooleanMethod(arrayList, gFields.arraylist.add, byteArray); in ListOfVectorsToArrayListOfByteArray()
542 env->DeleteLocalRef(byteArray); in ListOfVectorsToArrayListOfByteArray()
/frameworks/base/core/jni/android/graphics/
DMovie.cpp95 jbyteArray byteArray = env->NewByteArray(16*1024); in movie_decodeStream() local
96 ScopedLocalRef<jbyteArray> scoper(env, byteArray); in movie_decodeStream()
97 SkStream* strm = CreateJavaInputStreamAdaptor(env, istream, byteArray); in movie_decodeStream()
115 jbyteArray byteArray, in movie_decodeByteArray() argument
118 NPE_CHECK_RETURN_ZERO(env, byteArray); in movie_decodeByteArray()
120 int totalLength = env->GetArrayLength(byteArray); in movie_decodeByteArray()
126 AutoJavaByteArray ar(env, byteArray); in movie_decodeByteArray()
DBitmapRegionDecoder.cpp57 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, in nativeNewInstanceFromByteArray() argument
63 AutoJavaByteArray ar(env, byteArray); in nativeNewInstanceFromByteArray()
DBitmapFactory.cpp618 static jobject nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, in nativeDecodeByteArray() argument
621 AutoJavaByteArray ar(env, byteArray); in nativeDecodeByteArray()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DStringUtil.java25 public static boolean isAsciiPrintable(byte[] byteArray) { in isAsciiPrintable() argument
26 if (byteArray == null) { in isAsciiPrintable()
30 for (byte b : byteArray) { in isAsciiPrintable()
/frameworks/ex/framesequence/jni/
DFrameSequenceJNI.cpp49 jbyteArray byteArray, jint offset, jint length) { in nativeDecodeByteArray() argument
50 jbyte* bytes = reinterpret_cast<jbyte*>(env->GetPrimitiveArrayCritical(byteArray, NULL)); in nativeDecodeByteArray()
58 env->ReleasePrimitiveArrayCritical(byteArray, bytes, 0); in nativeDecodeByteArray()
78 jobject istream, jbyteArray byteArray) { in nativeDecodeStream() argument
79 JavaInputStream stream(env, istream, byteArray); in nativeDecodeStream()
DStream.h76 JavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray byteArray) : in JavaInputStream() argument
79 mByteArray(byteArray), in JavaInputStream()
80 mByteArrayLength(env->GetArrayLength(byteArray)) {} in JavaInputStream()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduPart.java155 byte[] byteArray = new byte[mPartData.length]; in getData()
156 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); in getData()
157 return byteArray; in getData()
DEncodedStringValue.java107 byte[] byteArray = new byte[mData.length]; in getTextString()
109 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
110 return byteArray; in getTextString()
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp303 jbyteArray byteArray = env->NewByteArray(4); in convert_to_ipv4() local
304 if (byteArray == NULL) { in convert_to_ipv4()
322 env->SetByteArrayRegion(byteArray, 0, 4, (const jbyte*) ipv4); in convert_to_ipv4()
323 return byteArray; in convert_to_ipv4()
329 jbyteArray byteArray = NULL; in agps_status_callback() local
341 byteArray = convert_to_ipv4(ipAddr, true /* net_order */); in agps_status_callback()
342 if (ipAddr == INADDR_NONE || byteArray != NULL) { in agps_status_callback()
356 byteArray = env->NewByteArray(16); in agps_status_callback()
357 if (byteArray != NULL) { in agps_status_callback()
358 env->SetByteArrayRegion(byteArray, 0, 16, (const jbyte *)&(in6->sin6_addr)); in agps_status_callback()
[all …]
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequence.java78 byte[] byteArray = buffer.array(); in decodeByteBuffer()
79 return decodeByteArray(byteArray, buffer.position(), buffer.remaining()); in decodeByteBuffer()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiRecordSources.java750 private static int shortToByteArray(short value, byte[] byteArray, int index) { in shortToByteArray() argument
751 byteArray[index] = (byte) ((value >>> 8) & 0xFF); in shortToByteArray()
752 byteArray[index + 1] = (byte) (value & 0xFF); in shortToByteArray()
/frameworks/base/drm/jni/
Dandroid_drm_DrmManagerClient.cpp53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
99 jbyteArray byteArray = (jbyteArray) env->GetObjectField(object, fieldID); in getByteArrayValue() local
100 return Utility::getByteArrayValue(env, byteArray, dataLength); in getByteArrayValue()
105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { in getByteArrayValue() argument
107 if (NULL != byteArray) { in getByteArrayValue()
108 jint length = env->GetArrayLength(byteArray); in getByteArrayValue()
113 env->GetByteArrayRegion(byteArray, (jint)0, length, (jbyte *) data); in getByteArrayValue()
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp185 jbyteArray byteArray = env->NewByteArray(size); in nativeGetBlob() local
186 if (!byteArray) { in nativeGetBlob()
191 env->SetByteArrayRegion(byteArray, 0, size, static_cast<const jbyte*>(value)); in nativeGetBlob()
192 return byteArray; in nativeGetBlob()
Dandroid_hardware_camera2_CameraMetadata.cpp313 jbyteArray byteArray = env->NewByteArray(byteCount); in CameraMetadata_readValues() local
317 ScopedByteArrayRW arrayWriter(env, byteArray); in CameraMetadata_readValues()
320 return byteArray; in CameraMetadata_readValues()
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp575 Vector<uint8_t> byteArray; in AMediaDrm_setPropertyByteArray() local
576 byteArray.appendArray(value, valueSize); in AMediaDrm_setPropertyByteArray()
579 byteArray)); in AMediaDrm_setPropertyByteArray()