/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE)) in toByteArray() local 177 byteBuffer.putInt((Integer)value); in toByteArray() 179 byteBuffer.putFloat((Float)value); in toByteArray() 181 byteBuffer.putDouble((Double)value); in toByteArray() 183 byteBuffer.putShort((Short)value); in toByteArray() 185 byteBuffer.putLong((Long)value); in toByteArray() 187 byteBuffer.put((Byte)value); in toByteArray() 197 if (numbers.length != 0 && byteBuffer.position() < numbers.length) { in toByteArray() 200 numbers.length, byteBuffer.position())); in toByteArray() 203 byteBuffer.flip(); in toByteArray() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | MockScrypt.java | 34 ByteBuffer byteBuffer = ByteBuffer.allocate( in scrypt() local 36 byteBuffer.order(ByteOrder.LITTLE_ENDIAN); in scrypt() 37 byteBuffer.putInt(password.length); in scrypt() 38 byteBuffer.put(password); in scrypt() 39 byteBuffer.putInt(salt.length); in scrypt() 40 byteBuffer.put(salt); in scrypt() 41 byteBuffer.putInt(n); in scrypt() 42 byteBuffer.putInt(r); in scrypt() 43 byteBuffer.putInt(p); in scrypt() 44 byteBuffer.putInt(outLen); in scrypt() [all …]
|
D | KeySyncUtilsTest.java | 448 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesCounterIdAsSecondParam() local 450 byteBuffer.position(PUBLIC_KEY_LENGTH_BYTES); in packVaultParams_encodesCounterIdAsSecondParam() 451 assertEquals(counterId, byteBuffer.getLong()); in packVaultParams_encodesCounterIdAsSecondParam() 464 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesMaxAttemptsAsThirdParam() local 466 byteBuffer.position(PUBLIC_KEY_LENGTH_BYTES + Long.BYTES); in packVaultParams_encodesMaxAttemptsAsThirdParam() 467 assertEquals(maxAttempts, byteBuffer.getInt()); in packVaultParams_encodesMaxAttemptsAsThirdParam() 478 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesVaultHandleAsLastParam() local 480 byteBuffer.position(PUBLIC_KEY_LENGTH_BYTES + Long.BYTES + Integer.BYTES); in packVaultParams_encodesVaultHandleAsLastParam() 482 byteBuffer.get(vaultHandle); in packVaultParams_encodesVaultHandleAsLastParam() 495 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesVaultHandleWithLength8AsLastParam() local [all …]
|
/frameworks/base/core/java/android/net/ |
D | UriCodec.java | 100 ByteBuffer byteBuffer = ByteBuffer.allocate(s.length()); in appendDecoded() local 108 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded() 123 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded() 136 builder, decoder, byteBuffer, throwOnFailure); in appendDecoded() 143 byteBuffer.put(hexValue); in appendDecoded() 146 flushDecodingByteAccumulator(builder, decoder, byteBuffer, throwOnFailure); in appendDecoded() 150 flushDecodingByteAccumulator(builder, decoder, byteBuffer, throwOnFailure); in appendDecoded() 156 ByteBuffer byteBuffer, in flushDecodingByteAccumulator() argument 158 if (byteBuffer.position() == 0) { in flushDecodingByteAccumulator() 161 byteBuffer.flip(); in flushDecodingByteAccumulator() [all …]
|
/frameworks/base/core/jni/ |
D | android_net_LocalSocketImpl.cpp | 276 jbyte* byteBuffer; in socket_readba() local 300 byteBuffer = env->GetByteArrayElements(buffer, NULL); in socket_readba() 302 if (NULL == byteBuffer) { in socket_readba() 308 fd, byteBuffer + off, len); in socket_readba() 312 env->ReleaseByteArrayElements(buffer, byteBuffer, 0); in socket_readba() 344 jbyte* byteBuffer; in socket_writeba() local 362 byteBuffer = env->GetByteArrayElements(buffer,NULL); in socket_writeba() 364 if (NULL == byteBuffer) { in socket_writeba() 370 byteBuffer + off, len); in socket_writeba() 374 env->ReleaseByteArrayElements(buffer, byteBuffer, JNI_ABORT); in socket_writeba()
|
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/ |
D | BTtraffic.java | 218 ByteBuffer byteBuffer = ByteBuffer.allocate(maxbuffersize); in doListening() local 221 readBytesIntoBuffer(inputStream, byteBuffer, 4); in doListening() 222 byteBuffer.flip(); in doListening() 223 int length = byteBuffer.getInt(); in doListening() 226 readBytesIntoBuffer(inputStream, byteBuffer, length); in doListening() 233 void readBytesIntoBuffer(InputStream inputStream, ByteBuffer byteBuffer, int numToRead) in readBytesIntoBuffer() argument 235 byteBuffer.clear(); in readBytesIntoBuffer() 237 int position = byteBuffer.position(); in readBytesIntoBuffer() 242 int count = inputStream.read(byteBuffer.array(), position, remaining); in readBytesIntoBuffer() 246 byteBuffer.position(position + count); in readBytesIntoBuffer()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_UsbDescriptorParser.cpp | 86 jbyte* byteBuffer = NULL; in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getDescriptorString_1native() local 91 (void**)&byteBuffer, &numUSC2Bytes); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getDescriptorString_1native() 96 j_str = env->NewString((jchar*)byteBuffer, numUSC2Bytes/2); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getDescriptorString_1native() 97 free(byteBuffer); in Java_com_android_server_usb_descriptors_UsbDescriptorParser_getDescriptorString_1native()
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyServer.java | 228 int byteBuffer = inputStream.read(); in getLine() local 229 if (byteBuffer < 0) return ""; in getLine() 231 if (byteBuffer != '\r') { in getLine() 232 buffer.append((char)byteBuffer); in getLine() 234 byteBuffer = inputStream.read(); in getLine() 235 } while ((byteBuffer != '\n') && (byteBuffer >= 0)); in getLine()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
D | InputStreamSource.java | 64 ByteBuffer byteBuffer = null; in process() local 75 byteBuffer = ByteBuffer.wrap(byteStream.toByteArray()); in process() 84 output.setData(byteBuffer); in process()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ColorfulnessFilter.java | 58 ByteBuffer byteBuffer = histogramFrame.lockBytes(Frame.MODE_READ); in onProcess() local 59 byteBuffer.order(ByteOrder.nativeOrder()); in onProcess() 60 FloatBuffer histogramBuffer = byteBuffer.asFloatBuffer(); in onProcess()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifModifier.java | 47 protected ExifModifier(ByteBuffer byteBuffer, ExifInterface iRef) throws IOException, in ExifModifier() argument 49 mByteBuffer = byteBuffer; in ExifModifier() 50 mOffsetBase = byteBuffer.position(); in ExifModifier() 54 is = new ByteBufferInputStream(byteBuffer); in ExifModifier()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncTask.java | 498 ByteBuffer byteBuffer = ByteBuffer.allocate( in hashCredentialsBySaltedSha256() local 500 byteBuffer.order(ByteOrder.LITTLE_ENDIAN); in hashCredentialsBySaltedSha256() 501 byteBuffer.putInt(salt.length); in hashCredentialsBySaltedSha256() 502 byteBuffer.put(salt); in hashCredentialsBySaltedSha256() 503 byteBuffer.putInt(credentialsBytes.length); in hashCredentialsBySaltedSha256() 504 byteBuffer.put(credentialsBytes); in hashCredentialsBySaltedSha256() 505 byte[] bytes = byteBuffer.array(); in hashCredentialsBySaltedSha256()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 455 jobject byteBuffer = NULL; in getBuffers() local 457 env, !input /* readOnly */, true /* clearBuffer */, buffer, &byteBuffer); in getBuffers() 461 if (byteBuffer != NULL) { in getBuffers() 463 *bufArray, i, byteBuffer); in getBuffers() 465 env->DeleteLocalRef(byteBuffer); in getBuffers() 466 byteBuffer = NULL; in getBuffers() 491 jobject byteBuffer = in createByteBufferFromABuffer() local 493 if (readOnly && byteBuffer != NULL) { in createByteBufferFromABuffer() 495 byteBuffer, mByteBufferAsReadOnlyBufferMethodID); in createByteBufferFromABuffer() 496 env->DeleteLocalRef(byteBuffer); in createByteBufferFromABuffer() [all …]
|
D | android_media_ImageReader.cpp | 729 jobject byteBuffer = NULL; in Image_createSurfacePlanes() local 764 byteBuffer = env->NewDirectByteBuffer(pData, dataSize); in Image_createSurfacePlanes() 765 if ((byteBuffer == NULL) && (env->ExceptionCheck() == false)) { in Image_createSurfacePlanes() 773 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
|
D | android_media_ImageWriter.cpp | 914 jobject byteBuffer; in Image_createSurfacePlanes() local 946 byteBuffer = env->NewDirectByteBuffer(pData, dataSize); in Image_createSurfacePlanes() 947 if ((byteBuffer == NULL) && (env->ExceptionCheck() == false)) { in Image_createSurfacePlanes() 955 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalPlay.cpp | 212 uint8_t *byteBuffer = (uint8_t *) buffer; in writeNowWithConversion() local 229 mFlowGraph.process((void *)byteBuffer, in writeNowWithConversion() 233 byteBuffer += numBytes; in writeNowWithConversion()
|
/frameworks/native/opengl/libs/EGL/ |
D | BlobCache.cpp | 193 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); in flatten() local 208 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]); in flatten() 252 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); in unflatten() local 263 &byteBuffer[byteOffset]); in unflatten()
|
/frameworks/ml/nn/driver/cache/BlobCache/ |
D | BlobCache.cpp | 246 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); in flatten() local 261 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]); in flatten() 304 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); in unflatten() local 314 const EntryHeader* eheader = reinterpret_cast<const EntryHeader*>(&byteBuffer[byteOffset]); in unflatten()
|
/frameworks/base/media/java/android/media/ |
D | MediaSync.java | 177 public AudioBuffer(@NonNull ByteBuffer byteBuffer, int bufferId, in AudioBuffer() argument 179 mByteBuffer = byteBuffer; in AudioBuffer()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | VisualVoicemailSmsFilter.java | 302 ByteBuffer byteBuffer = ByteBuffer.wrap(message.getUserData()); in getFullMessage() local 304 body = decoder.decode(byteBuffer).toString(); in getFullMessage()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardUtils.java | 838 final ByteBuffer byteBuffer = charset.encode(originalString); in convertStringCharset() local 841 final byte[] bytes = new byte[byteBuffer.remaining()]; in convertStringCharset() 842 byteBuffer.get(bytes); in convertStringCharset()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterface.java | 274 final ByteBuffer byteBuffer = ByteBuffer.wrap(msg); in sendNetlinkMessage() local 279 nlh.pack(byteBuffer); in sendNetlinkMessage()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLLogWrapper.java | 1030 ByteBuffer byteBuffer = toByteBuffer(count, indices); in toCharIndices() local 1031 byte[] array = byteBuffer.array(); in toCharIndices() 1032 int offset = byteBuffer.arrayOffset(); in toCharIndices() 1043 ByteBuffer byteBuffer = toByteBuffer(count * 2, indices); in toCharIndices() local 1044 charBuffer = byteBuffer.asCharBuffer(); in toCharIndices() 1077 ByteBuffer byteBuffer = pointer.mTempByteBuffer; in doArrayElement() local 1088 byte d = byteBuffer.get(byteOffset); in doArrayElement() 1093 byte d = byteBuffer.get(byteOffset); in doArrayElement() 1098 ShortBuffer shortBuffer = byteBuffer.asShortBuffer(); in doArrayElement() 1104 IntBuffer intBuffer = byteBuffer.asIntBuffer(); in doArrayElement() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHal.java | 2115 ByteBuffer byteBuffer = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN); in setWpsDeviceType() local 2116 byteBuffer.putShort(categ); in setWpsDeviceType() 2117 byteBuffer.put(oui); in setWpsDeviceType() 2118 byteBuffer.putShort(subCateg); in setWpsDeviceType()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaIfaceHal.java | 1400 ByteBuffer byteBuffer = ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN); in setWpsDeviceType() local 1401 byteBuffer.putShort(categ); in setWpsDeviceType() 1402 byteBuffer.put(oui); in setWpsDeviceType() 1403 byteBuffer.putShort(subCateg); in setWpsDeviceType()
|