Home
last modified time | relevance | path

Searched refs:mBytes (Results 1 – 24 of 24) sorted by relevance

/aosp12/art/test/027-arithmetic/src/
H A DMain.java24 final int[] mBytes = { in shiftTest1() local
30 i1 = mBytes[0] | mBytes[1] << 8 | mBytes[2] << 16 | mBytes[3] << 24; in shiftTest1()
31 i2 = mBytes[4] | mBytes[5] << 8 | mBytes[6] << 16 | mBytes[7] << 24; in shiftTest1()
39 l = (long)mBytes[0] in shiftTest1()
40 | (long)mBytes[1] << 8 in shiftTest1()
41 | (long)mBytes[2] << 16 in shiftTest1()
42 | (long)mBytes[3] << 24 in shiftTest1()
43 | (long)mBytes[4] << 32 in shiftTest1()
44 | (long)mBytes[5] << 40 in shiftTest1()
45 | (long)mBytes[6] << 48 in shiftTest1()
[all …]
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DByteStream.java35 private final byte[] mBytes; // this is never null. field in ByteStream
65 mBytes = bytes; in ByteStream()
89 return mBytes[mIndex + 1]; in peekByte()
104 return mBytes[mIndex++]; in getByte()
118 return mBytes[mIndex++] & 0x000000FF; in getUnsignedByte()
190 if (longNewIndex <= (long) mBytes.length) { in advance()
195 mIndex = mBytes.length; in advance()
224 return mBytes.length - mIndex; in available()
/aosp12/packages/modules/StatsD/framework/java/android/util/
H A DStatsEvent.java722 return mBytes; in getBytes()
727 if (mBytes.length <= MAX_PUSH_PAYLOAD_SIZE) { in release()
768 if (mBytes.length < mMaxSize && totalBytesNeeded > mBytes.length) { in hasEnoughSpace()
769 int newSize = mBytes.length; in hasEnoughSpace()
778 mBytes = Arrays.copyOf(mBytes, newSize); in hasEnoughSpace()
793 mBytes[index] = (byte) (value); in putByte()
820 mBytes[index] = (byte) (value); in putInt()
821 mBytes[index + 1] = (byte) (value >> 8); in putInt()
822 mBytes[index + 2] = (byte) (value >> 16); in putInt()
839 mBytes[index] = (byte) (value); in putLong()
[all …]
/aosp12/packages/apps/Gallery2/jni_jpegstream/src/
H A Dstream_wrapper.cpp25 mBytes(NULL), in StreamWrapper()
62 mBytes = env->GetByteArrayElements(mByteArray, NULL); in init()
63 if (mBytes == NULL || env->ExceptionCheck()){ in init()
77 if (mBytes != NULL) { in cleanup()
78 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_ABORT); in cleanup()
79 mBytes = NULL; in cleanup()
84 mBytes = NULL; in cleanup()
96 return mBytes; in getBufferPtr()
H A Dinputstream_wrapper.cpp28 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in read()
29 mBytes = NULL; in read()
38 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in read()
39 if (mBytes == NULL || mEnv->ExceptionCheck()) { in read()
60 mBytes[0] = (jbyte) 0xFF; in forceReadEOI()
61 mBytes[1] = (jbyte) 0xD9; in forceReadEOI()
H A Doutputstream_wrapper.cpp26 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in write()
27 mBytes = NULL; in write()
40 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in write()
41 if (mBytes == NULL || mEnv->ExceptionCheck()) { in write()
H A Dstream_wrapper.h40 jbyte* mBytes; variable
/aosp12/frameworks/base/services/core/java/com/android/server/integrity/parser/
H A DRandomAccessObject.java95 private final ByteBuffer mBytes; field in RandomAccessObject.RandomAccessByteArrayObject
98 mBytes = ByteBuffer.wrap(bytes); in RandomAccessByteArrayObject()
103 mBytes.position(position); in seek()
108 if (!mBytes.hasRemaining()) { in read()
112 return mBytes.get() & 0xFF; in read()
117 int bytesToCopy = Math.min(len, mBytes.remaining()); in read()
121 mBytes.get(bytes, off, len); in read()
130 return mBytes.capacity(); in length()
/aosp12/art/test/107-int-math2/src/
H A DMain.java204 final int[] mBytes = { in shiftTest1() local
219 i1 = mBytes[0] | mBytes[1] << 8 | mBytes[2] << 16 | mBytes[3] << 24; in shiftTest1()
220 i2 = mBytes[4] | mBytes[5] << 8 | mBytes[6] << 16 | mBytes[7] << 24; in shiftTest1()
227 l = (long)mBytes[0] in shiftTest1()
228 | (long)mBytes[1] << 8 in shiftTest1()
229 | (long)mBytes[2] << 16 in shiftTest1()
230 | (long)mBytes[3] << 24 in shiftTest1()
231 | (long)mBytes[4] << 32 in shiftTest1()
232 | (long)mBytes[5] << 40 in shiftTest1()
233 | (long)mBytes[6] << 48 in shiftTest1()
[all …]
/aosp12/packages/modules/NetworkStack/src/android/net/dhcp/
H A DDhcpPacketListener.java38 protected final byte[] mBytes = new byte[DhcpPacket.MAX_LENGTH]; field in DhcpPacketListener.Payload
49 return buffer.mBytes.length; in recvBufSize()
59 final DhcpPacket packet = DhcpPacket.decodeFullPacket(recvbuf.mBytes, length, in handlePacket()
63 logParseError(recvbuf.mBytes, length, e); in handlePacket()
74 fd, packetBuffer.mBytes, 0, packetBuffer.mBytes.length, 0 /* flags */, addr); in readPacket()
/aosp12/art/test/003-omnibus-opcodes/src/
H A DIntMath.java25 final int[] mBytes = { in shiftTest1() local
31 i1 = mBytes[0] | mBytes[1] << 8 | mBytes[2] << 16 | mBytes[3] << 24; in shiftTest1()
32 i2 = mBytes[4] | mBytes[5] << 8 | mBytes[6] << 16 | mBytes[7] << 24; in shiftTest1()
39 l = (long)mBytes[0] in shiftTest1()
40 | (long)mBytes[1] << 8 in shiftTest1()
41 | (long)mBytes[2] << 16 in shiftTest1()
42 | (long)mBytes[3] << 24 in shiftTest1()
43 | (long)mBytes[4] << 32 in shiftTest1()
44 | (long)mBytes[5] << 40 in shiftTest1()
45 | (long)mBytes[6] << 48 in shiftTest1()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaBytes.java23 private final byte[] mBytes; field in MediaBytes
27 mBytes = bytes; in MediaBytes()
31 return mBytes; in getMediaBytes()
36 return mBytes.length; in getMediaSize()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DFastPrintWriter.java67 final private ByteBuffer mBytes; field in FastPrintWriter
128 mBytes = ByteBuffer.allocate(mBufferLen); in FastPrintWriter()
197 mBytes = null; in FastPrintWriter()
240 mBytes = null; in FastPrintWriter()
352 if ((position = mBytes.position()) > 0) { in flushBytesLocked()
353 mBytes.flip(); in flushBytesLocked()
354 mOutputStream.write(mBytes.array(), 0, position); in flushBytesLocked()
355 mBytes.clear(); in flushBytesLocked()
365 CoderResult result = mCharset.encode(charBuffer, mBytes, true); in flushLocked()
371 result = mCharset.encode(charBuffer, mBytes, true); in flushLocked()
H A DFastXmlSerializer.java66 private ByteBuffer mBytes; field in FastXmlSerializer
88 mBytes = ByteBuffer.allocate(mBufferLen); in FastXmlSerializer()
251 if ((position = mBytes.position()) > 0) { in flushBytes()
252 mBytes.flip(); in flushBytes()
253 mOutputStream.write(mBytes.array(), 0, position); in flushBytes()
254 mBytes.clear(); in flushBytes()
263 CoderResult result = mCharset.encode(charBuffer, mBytes, true); in flush()
269 result = mCharset.encode(charBuffer, mBytes, true); in flush()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DImagePersistTask.java44 private final byte[] mBytes; field in ImagePersistTask
64 mBytes = bytes; in ImagePersistTask()
84 exifInterface.readExif(mBytes); in doInBackgroundTimed()
96 bitmap = BitmapFactory.decodeByteArray(mBytes, 0, mBytes.length); in doInBackgroundTimed()
129 outputStream.write(mBytes); in doInBackgroundTimed()
/aosp12/frameworks/base/core/java/android/bluetooth/le/
H A DScanRecord.java82 private final byte[] mBytes; field in ScanRecord
171 return mBytes; in getBytes()
182 while (pos < mBytes.length) { in matchesAnyField()
183 final int length = mBytes[pos] & 0xFF; in matchesAnyField()
187 if (matcher.test(Arrays.copyOfRange(mBytes, pos, pos + length + 1))) { in matchesAnyField()
208 mBytes = bytes; in ScanRecord()
/aosp12/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DSpamActivity.java23 byte[] mBytes; field in SpamActivity
29 mBytes = new byte[8*1024*1024]; in onCreate()
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DCarVendorExtensionManagerTest.java296 private byte[] mBytes = null; field in CarVendorExtensionManagerTest.VendorExtMockedVehicleHal
301 mBytes = toByteArray(propValue.value.bytes); in set()
318 if (requestedPropValue.prop == CUSTOM_BYTES_PROP_ID_2 && mBytes != null) { in get()
319 Log.d(TAG, "Returning byte array property, value size " + mBytes.length); in get()
320 result.value.bytes.ensureCapacity(mBytes.length); in get()
321 for (byte b : mBytes) { in get()
/aosp12/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java311 mUnconsumedBytes -= entry.mBytes.length; in take()
317 return entry.mBytes; in take()
324 final byte[] mBytes; field in SynthesisPlaybackQueueItem.ListEntry
327 mBytes = bytes; in ListEntry()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DDownloadsDeletionType.java45 private long mBytes; field in DownloadsDeletionType
135 mBytes = data.totalSize; in onLoadFinished()
204 mListener.onFreeableChanged(mFiles.size(), mBytes); in maybeUpdateListener() local
/aosp12/packages/modules/NetworkStack/src/android/net/util/
H A DConnectivityPacketSummary.java80 private final byte[] mBytes; field in ConnectivityPacketSummary
113 mBytes = buffer; in ConnectivityPacketSummary()
114 mLength = Math.min(length, mBytes.length); in ConnectivityPacketSummary()
115 mPacket = ByteBuffer.wrap(mBytes, 0, mLength); in ConnectivityPacketSummary()
388 dhcpPacket = DhcpPacket.decodeFullPacket(mBytes, mLength, DhcpPacket.ENCAP_L2); in parseDHCPv4()
/aosp12/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntry.java993 private final byte[] mBytes; field in VCardEntry.PhotoData
999 mBytes = photoBytes; in PhotoData()
1010 builder.withValue(Photo.PHOTO, mBytes); in constructInsertOperation()
1019 return mBytes == null || mBytes.length == 0; in isEmpty()
1032 && Arrays.equals(mBytes, photoData.mBytes) in equals()
1044 if (mBytes != null) { in hashCode()
1045 for (byte b : mBytes) { in hashCode()
1057 return String.format("format: %s: size: %d, isPrimary: %s", mFormat, mBytes.length, in toString()
1071 return mBytes; in getBytes()
/aosp12/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
H A DNetworkMonitorTest.java2552 private final byte[] mBytes = repeatedString.getBytes(StandardCharsets.UTF_8);
2557 mPosition = (mPosition + 1) % mBytes.length;
2558 return mBytes[mPosition];
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt12460 Landroid/bluetooth/le/ScanRecord;->mBytes:[B
88518 Lcom/android/internal/util/FastPrintWriter;->mBytes:Ljava/nio/ByteBuffer;