/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 | 142 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()
|
D | android_media_ExifInterface.cpp | 115 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()
|
D | android_media_MediaCrypto.cpp | 140 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()
|
D | android_media_Utils.cpp | 538 jbyteArray byteArray = in ConvertKeyValueArraysToMessage() local 540 CHECK(byteArray != NULL); in ConvertKeyValueArraysToMessage() 543 byteArray, in ConvertKeyValueArraysToMessage() 548 env->DeleteLocalRef(byteArray); byteArray = NULL; in ConvertKeyValueArraysToMessage()
|
D | android_media_MediaDrm.cpp | 430 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/ |
D | Movie.cpp | 95 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()
|
D | BitmapRegionDecoder.cpp | 57 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, in nativeNewInstanceFromByteArray() argument 63 AutoJavaByteArray ar(env, byteArray); in nativeNewInstanceFromByteArray()
|
D | BitmapFactory.cpp | 618 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/ |
D | StringUtil.java | 25 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/ |
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() 78 jobject istream, jbyteArray byteArray) { in nativeDecodeStream() argument 79 JavaInputStream stream(env, istream, byteArray); in nativeDecodeStream()
|
D | Stream.h | 76 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/ |
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_GnssLocationProvider.cpp | 303 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/ |
D | FrameSequence.java | 78 byte[] byteArray = buffer.array(); in decodeByteBuffer() 79 return decodeByteArray(byteArray, buffer.position(), buffer.remaining()); in decodeByteBuffer()
|
/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 | 185 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()
|
D | android_hardware_camera2_CameraMetadata.cpp | 313 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/ |
D | NdkMediaDrm.cpp | 575 Vector<uint8_t> byteArray; in AMediaDrm_setPropertyByteArray() local 576 byteArray.appendArray(value, valueSize); in AMediaDrm_setPropertyByteArray() 579 byteArray)); in AMediaDrm_setPropertyByteArray()
|