/frameworks/base/services/core/jni/gnss/ |
D | AGnssCallback.cpp | 47 jbyteArray byteArray = nullptr; in agnssStatusIpV6Cb() local 49 byteArray = env->NewByteArray(16); in agnssStatusIpV6Cb() 50 if (byteArray != nullptr) { in agnssStatusIpV6Cb() 51 env->SetByteArrayRegion(byteArray, 0, 16, (const jbyte*)(agps_status.ipV6Addr.data())); in agnssStatusIpV6Cb() 63 jsize byteArrayLength = byteArray != nullptr ? env->GetArrayLength(byteArray) : 0; in agnssStatusIpV6Cb() 66 agps_status.status, byteArray); in agnssStatusIpV6Cb() 70 if (byteArray) { in agnssStatusIpV6Cb() 71 env->DeleteLocalRef(byteArray); in agnssStatusIpV6Cb() 80 jbyteArray byteArray = nullptr; in agnssStatusIpV4Cb() local 83 byteArray = convertToIpV4(ipAddr); in agnssStatusIpV4Cb() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbMidiBlockParser.java | 147 byte[] byteArray = new byte[MIDI_BLOCK_HEADER_SIZE]; in calculateMidiType() 157 byteArray, in calculateMidiType() 161 if (byteArray[1] != CS_GR_TRM_BLOCK) { in calculateMidiType() 162 Log.e(TAG, "Incorrect descriptor type: " + byteArray[1]); in calculateMidiType() 165 if (byteArray[2] != GR_TRM_BLOCK_HEADER) { in calculateMidiType() 166 Log.e(TAG, "Incorrect descriptor subtype: " + byteArray[2]); in calculateMidiType() 169 int newSize = (((int) byteArray[3]) & (0xff)) in calculateMidiType() 170 + ((((int) byteArray[4]) & (0xff)) << 8); in calculateMidiType() 175 byteArray = new byte[newSize]; in calculateMidiType() 182 byteArray, in calculateMidiType() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaMuxer.cpp | 90 jbyteArray byteArray = NULL; in android_media_MediaMuxer_writeSampleData() local 94 byteArray = in android_media_MediaMuxer_writeSampleData() 97 if (byteArray == NULL) { in android_media_MediaMuxer_writeSampleData() 104 dst = env->GetByteArrayElements(byteArray, &isCopy); in android_media_MediaMuxer_writeSampleData() 106 dstSize = env->GetArrayLength(byteArray); in android_media_MediaMuxer_writeSampleData() 114 if (byteArray != NULL) { in android_media_MediaMuxer_writeSampleData() 115 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in android_media_MediaMuxer_writeSampleData() 126 if (byteArray != NULL) { in android_media_MediaMuxer_writeSampleData() 127 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in android_media_MediaMuxer_writeSampleData()
|
D | android_media_MediaDescrambler.cpp | 111 jbyteArray byteArray = NULL; in getBufferAndSize() local 121 byteArray = in getBufferAndSize() 124 if (byteArray == NULL) { in getBufferAndSize() 129 ptr = env->GetByteArrayElements(byteArray, &isCopy); in getBufferAndSize() 133 if (byteArray != NULL) { in getBufferAndSize() 134 env->ReleaseByteArrayElements(byteArray, (jbyte *)ptr, 0); in getBufferAndSize() 141 *outByteArray = byteArray; in getBufferAndSize()
|
D | android_media_MediaExtractor.cpp | 174 jbyteArray byteArray = NULL; in readSampleData() local 184 byteArray = in readSampleData() 187 if (byteArray == NULL) { in readSampleData() 192 dst = env->GetByteArrayElements(byteArray, &isCopy); in readSampleData() 194 dstSize = (size_t) env->GetArrayLength(byteArray); in readSampleData() 202 if (byteArray != NULL) { in readSampleData() 203 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData() 209 if (byteArray != NULL) { in readSampleData() 210 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0); in readSampleData() 222 if (byteArray != NULL) { in readSampleData() [all …]
|
D | android_media_Streams.cpp | 475 jbyteArray byteArray = in ConvertKeyValueArraysToMessage() local 477 CHECK(byteArray != NULL); in ConvertKeyValueArraysToMessage() 480 byteArray, in ConvertKeyValueArraysToMessage() 485 env->DeleteLocalRef(byteArray); byteArray = NULL; in ConvertKeyValueArraysToMessage()
|
D | android_media_MediaCrypto.cpp | 129 static Vector<uint8_t> JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) { in JByteArrayToVector() argument 131 size_t length = env->GetArrayLength(byteArray); in JByteArrayToVector() 133 env->GetByteArrayRegion(byteArray, 0, length, (jbyte *)vector.editArray()); in JByteArrayToVector()
|
/frameworks/av/drm/mediacas/plugins/mock/ |
D | MockSessionLibrary.cpp | 48 uint8_t *byteArray = (uint8_t *) &mNextSessionId; in addSession() local 49 sessionId->push_back(byteArray[3]); in addSession() 50 sessionId->push_back(byteArray[2]); in addSession() 51 sessionId->push_back(byteArray[1]); in addSession() 52 sessionId->push_back(byteArray[0]); in addSession()
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
D | ClearKeySessionLibrary.cpp | 61 uint8_t *byteArray = (uint8_t *) &mNextSessionId; in addSession() local 62 sessionId->push_back(byteArray[3]); in addSession() 63 sessionId->push_back(byteArray[2]); in addSession() 64 sessionId->push_back(byteArray[1]); in addSession() 65 sessionId->push_back(byteArray[0]); in addSession()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | RuimRecordsTest.java | 67 byte[] byteArray = new byte[]{0, 19, 3, 75, 68, 88, 99, (byte)128, (byte)209, 0}; in testCsimImsiLoaded() 68 AsyncResult ar2 = new AsyncResult(null, byteArray, null); in testCsimImsiLoaded() 80 byte[] byteArray = new byte[]{0, 19, 3, 75, 68, 88, 99, (byte)128, (byte)209, 0}; in testCsimImsiDecode() 81 String imsi = efCsimImsimLoaded.decodeImsi(byteArray); in testCsimImsiDecode()
|
/frameworks/base/libs/hwui/jni/ |
D | Movie.cpp | 93 jbyteArray byteArray = env->NewByteArray(16*1024); in movie_decodeStream() local 94 ScopedLocalRef<jbyteArray> scoper(env, byteArray); in movie_decodeStream() 95 SkStream* strm = CreateJavaInputStreamAdaptor(env, istream, byteArray); in movie_decodeStream() 112 jbyteArray byteArray, in movie_decodeByteArray() argument 115 NPE_CHECK_RETURN_ZERO(env, byteArray); in movie_decodeByteArray() 117 int totalLength = env->GetArrayLength(byteArray); in movie_decodeByteArray() 123 AutoJavaByteArray ar(env, byteArray); in movie_decodeByteArray()
|
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/ |
D | InitialLockSetupHelper.java | 64 byte[] byteArray = new byte[chars.length()]; in charSequenceToByteArray() 66 byteArray[i] = (byte) chars.charAt(i); in charSequenceToByteArray() 68 return byteArray; in charSequenceToByteArray()
|
/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/base/core/java/android/view/displayhash/ |
D | DisplayHash.java | 160 private String byteArrayToString(byte[] byteArray) { in byteArrayToString() argument 161 if (byteArray == null) { in byteArrayToString() 164 int iMax = byteArray.length - 1; in byteArrayToString() 172 String formatted = String.format("%02X", byteArray[i] & 0xFF); in byteArrayToString()
|
D | VerifiedDisplayHash.java | 60 private String byteArrayToString(byte[] byteArray) { in byteArrayToString() argument 61 if (byteArray == null) { in byteArrayToString() 64 int iMax = byteArray.length - 1; in byteArrayToString() 72 String formatted = String.format("%02X", byteArray[i] & 0xFF); in byteArrayToString()
|
/frameworks/base/media/tests/MtpTests/src/android/mtp/ |
D | MtpDatabaseTest.java | 212 byte[] byteArray; in testThumbnail() 218 byteArray = mMtpDatabase.getThumbnailData(fileHandle); in testThumbnail() 221 Assert.assertNotNull("Fail to generate thumbnail:" + imgFile.getPath(), byteArray); in testThumbnail() 223 Bitmap testBitmap = decodeBitmapFromBytes(byteArray, 4); in testThumbnail() 225 } else Assert.assertNull("Bad image should return null:" + imgFile.getPath(), byteArray); in testThumbnail()
|
/frameworks/base/media/java/android/media/ |
D | MediaDescrambler.java | 161 ArrayList<Byte> byteArray = new ArrayList<>(); in setMediaCasSession() local 165 byteArray = new ArrayList<Byte>(length); in setMediaCasSession() 167 byteArray.add(Byte.valueOf(sessionId[i])); in setMediaCasSession() 172 mHidlDescrambler.setMediaCasSession(byteArray)); in setMediaCasSession()
|
/frameworks/base/telephony/common/com/google/android/mms/pdu/ |
D | PduPart.java | 160 byte[] byteArray = new byte[mPartData.length]; in getData() 161 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); in getData() 162 return byteArray; in getData()
|
D | EncodedStringValue.java | 115 byte[] byteArray = new byte[mData.length]; in getTextString() 117 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString() 118 return byteArray; in getTextString()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleViewDebug.java | 469 byte[] byteArray = new byte[arrayLength]; in deserializeMethodParameters() 470 in.get(byteArray); in deserializeMethodParameters() 473 args[i] = byteArray; in deserializeMethodParameters() 543 byte[] byteArray = (byte[]) value; in serializeReturnValue() 546 dos.writeInt(byteArray.length); in serializeReturnValue() 547 dos.write(byteArray); in serializeReturnValue()
|
/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/tests/vcn/java/com/android/server/vcn/util/ |
D | PersistableBundleUtilsTest.java | 198 final byte[] byteArray = "testByteArrayConversionLossless".getBytes(); in testByteArrayConversionLossless() 200 PersistableBundle bundle = PersistableBundleUtils.fromByteArray(byteArray); in testByteArrayConversionLossless() 203 assertArrayEquals(byteArray, result); in testByteArrayConversionLossless()
|
/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()
|