/frameworks/base/media/jni/ |
D | android_media_MediaMuxer.cpp | 87 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()
|
D | android_media_MediaExtractor.cpp | 209 jbyteArray byteArray = NULL; in readSampleData() local 219 byteArray = in readSampleData() 222 if (byteArray == NULL) { in readSampleData() 227 dst = env->GetByteArrayElements(byteArray, &isCopy); in readSampleData() 229 dstSize = (size_t) env->GetArrayLength(byteArray); in readSampleData() 235 if (byteArray != NULL) { in readSampleData() 236 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData() 246 if (byteArray != NULL) { in readSampleData() 247 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData()
|
D | android_media_Utils.cpp | 394 jbyteArray byteArray = in ConvertKeyValueArraysToMessage() local 396 CHECK(byteArray != NULL); in ConvertKeyValueArraysToMessage() 399 byteArray, in ConvertKeyValueArraysToMessage() 404 env->DeleteLocalRef(byteArray); byteArray = NULL; in ConvertKeyValueArraysToMessage()
|
D | android_media_MediaDrm.cpp | 401 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) { in JByteArrayToVector() argument 403 size_t length = env->GetArrayLength(byteArray); in JByteArrayToVector() 405 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); in JByteArrayToVector() 503 jbyteArray byteArray = VectorToJByteArray(env, *iter); in ListOfVectorsToArrayListOfByteArray() local 504 env->CallBooleanMethod(arrayList, gFields.arraylist.add, byteArray); in ListOfVectorsToArrayListOfByteArray() 505 env->DeleteLocalRef(byteArray); in ListOfVectorsToArrayListOfByteArray()
|
/frameworks/base/core/jni/android/graphics/ |
D | Movie.cpp | 98 jbyteArray byteArray = env->NewByteArray(16*1024); in movie_decodeStream() local 99 ScopedLocalRef<jbyteArray> scoper(env, byteArray); in movie_decodeStream() 100 SkStream* strm = CreateJavaInputStreamAdaptor(env, istream, byteArray); in movie_decodeStream() 118 jbyteArray byteArray, in movie_decodeByteArray() argument 121 NPE_CHECK_RETURN_ZERO(env, byteArray); in movie_decodeByteArray() 123 int totalLength = env->GetArrayLength(byteArray); in movie_decodeByteArray() 129 AutoJavaByteArray ar(env, byteArray); in movie_decodeByteArray()
|
D | BitmapRegionDecoder.cpp | 103 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, in nativeNewInstanceFromByteArray() argument 109 AutoJavaByteArray ar(env, byteArray); in nativeNewInstanceFromByteArray()
|
D | BitmapFactory.cpp | 537 static jobject nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, in nativeDecodeByteArray() argument 540 AutoJavaByteArray ar(env, byteArray); in nativeDecodeByteArray()
|
/frameworks/ex/framesequence/jni/ |
D | FrameSequenceJNI.cpp | 49 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() 63 jobject istream, jbyteArray byteArray) { in nativeDecodeStream() argument 64 JavaInputStream stream(env, istream, byteArray); in nativeDecodeStream()
|
D | Stream.h | 68 JavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray byteArray) : in JavaInputStream() argument 71 mByteArray(byteArray), in JavaInputStream() 72 mByteArrayLength(env->GetArrayLength(byteArray)) {} in JavaInputStream()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduPart.java | 155 byte[] byteArray = new byte[mPartData.length]; in getData() 156 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); in getData() 157 return byteArray; in getData()
|
D | EncodedStringValue.java | 107 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/ |
D | com_android_server_location_GpsLocationProvider.cpp | 186 jbyteArray byteArray = env->NewByteArray(4); in convert_to_ipv4() local 187 if (byteArray == NULL) { in convert_to_ipv4() 205 env->SetByteArrayRegion(byteArray, 0, 4, (const jbyte*) ipv4); in convert_to_ipv4() 206 return byteArray; in convert_to_ipv4() 212 jbyteArray byteArray = NULL; in agps_status_callback() local 224 byteArray = convert_to_ipv4(*pAddr, true /* net_order */); in agps_status_callback() 225 if (byteArray != NULL) { in agps_status_callback() 239 byteArray = env->NewByteArray(16); in agps_status_callback() 240 if (byteArray != NULL) { in agps_status_callback() 241 env->SetByteArrayRegion(byteArray, 0, 16, (const jbyte *)&(in6->sin6_addr)); in agps_status_callback() [all …]
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiRecordSources.java | 750 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/ |
D | android_drm_DrmManagerClient.cpp | 53 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/ |
D | android_database_CursorWindow.cpp | 183 jbyteArray byteArray = env->NewByteArray(size); in nativeGetBlob() local 184 if (!byteArray) { in nativeGetBlob() 189 env->SetByteArrayRegion(byteArray, 0, size, static_cast<const jbyte*>(value)); in nativeGetBlob() 190 return byteArray; in nativeGetBlob()
|
D | android_hardware_camera2_CameraMetadata.cpp | 296 jbyteArray byteArray = env->NewByteArray(byteCount); in CameraMetadata_readValues() local 300 ScopedByteArrayRW arrayWriter(env, byteArray); in CameraMetadata_readValues() 303 return byteArray; in CameraMetadata_readValues()
|
/frameworks/av/media/ndk/ |
D | NdkMediaDrm.cpp | 578 Vector<uint8_t> byteArray; in AMediaDrm_setPropertyByteArray() local 579 byteArray.appendArray(value, valueSize); in AMediaDrm_setPropertyByteArray() 582 byteArray)); in AMediaDrm_setPropertyByteArray()
|